/* Midnight palette and restrained metallic accents, inspired by the reference experience. */
:root {
  color-scheme: dark;
  --ink: #f3f5f8;
  --muted: #9ca9bc;
  --line: rgba(183, 203, 229, .13);
  --canvas: #080d18;
  --surface: #101827;
  --surface-raised: #141e30;
  --surface-soft: #0c1422;
  --gold: #d6bd83;
  --gold-bright: #f1d99f;
  --ice: #9fc9f3;
  --green: #77c7a6;
  --green-dark: #327d68;
  --green-soft: rgba(103, 190, 154, .14);
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 83% 4%, rgba(40, 70, 112, .24), transparent 34%),
    radial-gradient(ellipse at 6% 44%, rgba(37, 61, 97, .12), transparent 31%),
    linear-gradient(180deg, #080d18 0%, #0a101d 56%, #080d18 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 7% 16%, rgba(231, 240, 255, .72) 50%, transparent 100%),
    radial-gradient(1px 1px at 24% 72%, rgba(231, 240, 255, .46) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 61% 22%, rgba(231, 240, 255, .62) 50%, transparent 100%),
    radial-gradient(1px 1px at 81% 64%, rgba(231, 240, 255, .45) 50%, transparent 100%),
    radial-gradient(1px 1px at 94% 31%, rgba(231, 240, 255, .55) 50%, transparent 100%),
    radial-gradient(1px 1px at 43% 39%, rgba(231, 240, 255, .36) 50%, transparent 100%);
  opacity: .52;
  content: "";
}
body > * { position: relative; z-index: 1; }
.app-container { max-width: 1480px; }
.topbar {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 22, .86) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  backdrop-filter: blur(18px);
}
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 131, .4);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(214, 189, 131, .2), rgba(214, 189, 131, .03) 68%);
  box-shadow: 0 0 20px rgba(214, 189, 131, .13), inset 0 0 12px rgba(214, 189, 131, .08);
}
.brand-mark::before, .brand-mark::after { position: absolute; display: block; border: 1px solid rgba(214, 189, 131, .5); border-radius: 50%; content: ""; }
.brand-mark::before { inset: 7px; }
.brand-mark::after { inset: 15px; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-bright); }
.brand-mark span { position: absolute; z-index: 1; display: block; width: 3px; height: 3px; border-radius: 50%; background: #fff2cf; box-shadow: 0 0 6px #f1d99f; }
.brand-mark span:nth-child(1) { top: 5px; left: 16px; }
.brand-mark span:nth-child(2) { top: 21px; left: 6px; }
.brand-mark span:nth-child(3) { top: 24px; right: 6px; }
.brand-name { color: #f3f4f6; font: 800 17px var(--font-display); letter-spacing: -.7px; }
.brand-name > span { color: var(--gold); }
.environment-pill { display: flex; align-items: center; gap: 8px; color: #b1bfd0; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.live-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #7dd8ae; box-shadow: 0 0 0 3px rgba(125, 216, 174, .11), 0 0 12px rgba(125, 216, 174, .8); }
.role-picker .form-select { min-width: 160px; border: 1px solid var(--line); border-radius: 9px; background-color: #111a2a; color: #e9edf4; font-size: 12px; font-weight: 600; padding-top: .5rem; padding-bottom: .5rem; }
.role-picker .form-select:focus, .form-control:focus, .form-select:focus { border-color: rgba(159, 201, 243, .65); box-shadow: 0 0 0 .2rem rgba(116, 163, 211, .14); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(159, 201, 243, .24); border-radius: 50%; background: rgba(159, 201, 243, .1); color: var(--ice); font-size: 11px; font-weight: 700; }
.welcome-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  gap: 18px;
  padding: 31px 36px;
  border: 1px solid rgba(177, 202, 232, .16);
  border-radius: 21px;
  background: linear-gradient(112deg, rgba(18, 28, 45, .97), rgba(13, 22, 38, .96) 48%, rgba(16, 26, 44, .78));
  box-shadow: 0 22px 62px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.welcome-row::before { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 78% 44%, rgba(102, 149, 204, .13), transparent 38%); content: ""; }
.welcome-copy-block { position: relative; z-index: 2; max-width: 670px; }
.eyebrow, .section-kicker { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.eyebrow-line { width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow-separator { color: #66778d; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); }
.welcome-row h1 { max-width: 600px; margin: 0; font-size: clamp(29px, 3.6vw, 43px); font-weight: 700; line-height: 1.12; letter-spacing: -1.7px; }
.welcome-copy { max-width: 510px; margin: 12px 0 0; color: #a9b6c8; font-size: 14px; line-height: 1.65; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 23px; }
.updated-label { display: flex; align-items: center; gap: 9px; color: #9eacc0; font-size: 10px; }
.btn-dark-green { padding: 10px 16px; border: 1px solid #dbc58e; border-radius: 7px; background: linear-gradient(135deg, #e1cb95, #b89b5b); color: #111723; font-weight: 700; font-size: 11px; box-shadow: 0 7px 18px rgba(185, 155, 91, .18); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn-dark-green:hover, .btn-dark-green:focus { border-color: #f1dda9; background: linear-gradient(135deg, #f1dda9, #c4a967); color: #111723; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(185, 155, 91, .25); }
.plus-mark { margin-right: 5px; font-size: 16px; vertical-align: -1px; }
.constellation-art { position: relative; z-index: 1; min-height: 220px; display: grid; place-items: center; }
.constellation-svg { width: min(100%, 430px); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(126, 170, 220, .1)); }
.constellation-orbit { fill: none; stroke: url(#orbitLine); stroke-width: 1; stroke-dasharray: 3 7; opacity: .6; }
.constellation-lines { fill: none; stroke: rgba(161, 198, 239, .52); stroke-width: 1; }
.constellation-lines-soft { stroke: rgba(207, 187, 139, .23); stroke-dasharray: 2 7; }
.star-points circle { fill: #c9e0ff; filter: drop-shadow(0 0 5px rgba(173, 209, 250, .95)); animation: star-breathe 3.8s ease-in-out infinite alternate; }
.star-points circle:nth-child(3n) { animation-delay: -1.4s; }
.star-points circle:nth-child(2n) { animation-delay: -2.3s; }
.star-points .star-main { fill: var(--gold-bright); filter: drop-shadow(0 0 8px rgba(241, 217, 159, .9)); }
.star-sparkles circle { fill: #fff; opacity: .55; }
.constellation-caption { position: absolute; right: 10px; bottom: 1px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.caption-kicker { color: #8094ad; font-size: 8px; font-weight: 700; letter-spacing: 1.55px; }
.constellation-caption strong { color: #e7edf5; font: 600 13px var(--font-display); }
.constellation-caption strong span { color: var(--gold-bright); font-size: 17px; }
.caption-foot { display: flex; align-items: center; gap: 7px; color: #8392a7; font-size: 8px; letter-spacing: .75px; text-transform: uppercase; }
.caption-foot i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
@keyframes star-breathe { from { opacity: .58; } to { opacity: 1; } }
.metric-card { position: relative; min-height: 139px; overflow: hidden; padding: 19px 20px 16px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(20, 30, 48, .96), rgba(13, 21, 35, .98)); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.metric-card::after { position: absolute; top: 0; right: 15%; left: 15%; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 189, 131, .35), transparent); content: ""; }
.metric-open { background: linear-gradient(145deg, rgba(33, 43, 57, .98), rgba(16, 28, 40, .98)); border-color: rgba(214, 189, 131, .24); }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-label { color: #aebacc; font-size: 11px; font-weight: 600; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(159, 201, 243, .18); border-radius: 50%; background: rgba(159, 201, 243, .08); color: var(--ice); font-size: 15px; font-weight: 600; }
.icon-open { border-color: rgba(214, 189, 131, .3); background: rgba(214, 189, 131, .1); color: var(--gold-bright); }
.icon-triage { color: #e8c77b; }.icon-progress { color: #a8c4f3; }.icon-deployed { color: #82d2b0; }
.metric-value { margin-top: 8px; color: #f5f7fb; font: 700 30px var(--font-display); line-height: 1.1; letter-spacing: -1px; }
.metric-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #8391a4; font-size: 9px; }
.metric-dot { width: 5px; height: 5px; border-radius: 50%; }
.dot-open { background: var(--gold); box-shadow: 0 0 7px rgba(214, 189, 131, .7); }.dot-triage { background: #e5c56f; }.dot-progress { background: #9ab8ef; }.dot-deployed { background: #73c99f; }
.content-card { border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(17, 26, 42, .98), rgba(12, 19, 31, .99)); box-shadow: 0 14px 42px rgba(0, 0, 0, .17); }
.reports-card { overflow: hidden; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 23px 18px; }
.card-heading h2 { margin: 5px 0 4px; color: #f0f3f8; font-size: 18px; font-weight: 700; letter-spacing: -.45px; }
.card-heading p { margin: 0; color: #8998ac; font-size: 10px; }
.section-kicker { color: #c9ae70; font-size: 8px; letter-spacing: 1.5px; }
.count-pill { padding: 4px 9px; border: 1px solid rgba(159, 201, 243, .13); border-radius: 20px; background: rgba(159, 201, 243, .07); color: #aebdd0; font-size: 9px; font-weight: 600; }
.table-controls { display: flex; align-items: center; gap: 8px; }
.search-wrap { position: relative; }
.search-wrap .form-control { width: 175px; height: 35px; padding-left: 31px; border-color: rgba(183, 203, 229, .16); border-radius: 8px; background: #0b1320; color: #ebeff5; font-size: 10px; }
.search-wrap .form-control::placeholder { color: #728197; }
.search-icon { position: absolute; z-index: 1; top: 11px; left: 12px; width: 10px; height: 10px; border: 1.5px solid #8fa1b7; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; transform: rotate(45deg); background: #8fa1b7; content: ""; }
.filter-select { width: 130px; height: 35px; padding-top: 0; padding-bottom: 0; border-color: rgba(183, 203, 229, .16); border-radius: 8px; background-color: #0b1320; color: #afbdce; font-size: 9px; }
.report-table-wrap { min-height: 300px; border-top: 1px solid rgba(183, 203, 229, .1); }
.report-table { --bs-table-bg: transparent; --bs-table-color: #d9e0ea; --bs-table-border-color: rgba(183, 203, 229, .09); min-width: 700px; margin-bottom: 0; }
.report-table thead th { padding: 12px 15px; border-bottom: 1px solid rgba(183, 203, 229, .13); color: #75859b; font-size: 8px; font-weight: 700; letter-spacing: .9px; white-space: nowrap; }
.report-table tbody td { padding: 15px; border-bottom-color: rgba(183, 203, 229, .08); color: #b8c3d1; font-size: 10px; white-space: nowrap; }
.report-table tbody tr { transition: background .2s ease; }
.report-table tbody tr:hover { --bs-table-bg: rgba(159, 201, 243, .045); }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-main { display: flex; align-items: flex-start; gap: 10px; }
.report-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(214, 189, 131, .2); border-radius: 50%; background: rgba(214, 189, 131, .075); color: var(--gold-bright); font-size: 9px; font-weight: 700; }
.report-title { max-width: 210px; overflow: hidden; color: #edf1f6; font-size: 10px; font-weight: 600; text-overflow: ellipsis; }
.report-meta { display: flex; gap: 6px; margin-top: 4px; color: #748398; font-size: 8px; }
.report-meta .meta-id { color: #a7b7ca; font-weight: 600; }
.severity-pill, .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid transparent; border-radius: 30px; font-size: 8px; font-weight: 600; }
.severity-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.severity-critical { border-color: rgba(255, 127, 123, .18); background: rgba(255, 111, 105, .1); color: #ff9993; }.severity-high { border-color: rgba(237, 176, 112, .18); background: rgba(237, 176, 112, .1); color: #efbd84; }.severity-medium { border-color: rgba(228, 202, 117, .17); background: rgba(228, 202, 117, .09); color: #e5cf83; }.severity-low { border-color: rgba(121, 202, 159, .16); background: rgba(121, 202, 159, .09); color: #8ed7ae; }
.status-pill { border-color: rgba(177, 198, 225, .12); background: rgba(177, 198, 225, .06); color: #a9b7c9; }
.status-submitted { color: #e8c87c; border-color: rgba(232, 200, 124, .17); background: rgba(232, 200, 124, .08); }.status-triaged { color: #9cc6ee; border-color: rgba(156, 198, 238, .17); background: rgba(156, 198, 238, .08); }.status-progress { color: #b1b9f3; border-color: rgba(177, 185, 243, .17); background: rgba(177, 185, 243, .08); }.status-deployed { color: #8bd4aa; border-color: rgba(139, 212, 170, .17); background: rgba(139, 212, 170, .08); }.status-rejected { color: #bd9e9e; border-color: rgba(189, 158, 158, .13); background: rgba(189, 158, 158, .06); }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.reward-cell { color: #e2d1a4 !important; font-weight: 600; }.reward-pending { color: #d4b976 !important; font-size: 9px !important; font-weight: 500 !important; }
.patch-label { display: inline-flex; align-items: center; gap: 6px; color: #8897a9; font-size: 8px; }
.patch-label > span { width: 5px; height: 5px; border-radius: 50%; background: #65758a; }
.patch-active { color: #a9c1ed; }.patch-active > span { background: #91b5ee; box-shadow: 0 0 7px rgba(145, 181, 238, .65); }
.patch-done { color: #8ed4aa; }.patch-done > span { background: #7bc99c; box-shadow: 0 0 7px rgba(123, 201, 156, .6); }
.workflow-rejected .workflow-step { color: #bf9e9e; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 4px; }
.detail-label { color: #8292a6; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.detail-grid strong { color: #dce4ee; font-size: 10px; font-weight: 600; }
.detail-description { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.detail-description p { margin: 7px 0 0; color: #a5b2c2; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.action-btn { padding: 5px 9px; border: 1px solid rgba(214, 189, 131, .25); border-radius: 6px; background: rgba(214, 189, 131, .07); color: var(--gold-bright); font-size: 9px; font-weight: 600; transition: background .18s ease, border-color .18s ease; }
.action-btn:hover, .action-btn:focus { border-color: rgba(241, 217, 159, .6); background: rgba(214, 189, 131, .15); color: #fff0c6; }
.table-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid rgba(183, 203, 229, .09); color: #75849a; font-size: 8px; }
.privacy-note { display: flex; align-items: center; gap: 5px; color: #8797a9; }
.lock-icon { color: #83c9a6; font-size: 7px; }
.empty-state { min-height: 290px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #8593a6; font-size: 10px; }
.empty-state:not(.d-none) { display: flex; }
.empty-state strong { color: #d5dce6; font-size: 12px; }
.empty-state-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border: 1px solid rgba(159, 201, 243, .16); border-radius: 50%; background: rgba(159, 201, 243, .07); color: var(--ice); font-size: 22px; }
.workflow-card { padding-bottom: 15px; }
.compact-heading { align-items: flex-start; padding-bottom: 17px; }
.workflow-symbol { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(214, 189, 131, .18); border-radius: 50%; background: rgba(214, 189, 131, .07); color: var(--gold-bright); font-size: 18px; }
.workflow-list { padding: 0 22px; }
.workflow-item { display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(183, 203, 229, .07); }
.workflow-item:last-child { border-bottom: 0; }
.workflow-step { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(159, 201, 243, .17); border-radius: 50%; background: rgba(159, 201, 243, .06); color: #a9caed; font-size: 12px; }
.workflow-label { color: #bfc9d7; font-size: 10px; font-weight: 500; }
.workflow-count { color: #8493a7; font-size: 9px; }
.workflow-caption { display: flex; align-items: center; gap: 8px; margin: 14px 22px 0; padding-top: 12px; border-top: 1px solid rgba(183, 203, 229, .09); color: #7e8da2; font-size: 8px; }
.workflow-caption .live-dot { width: 5px; height: 5px; }
.role-card { padding: 21px; border: 1px solid rgba(159, 201, 243, .17); border-radius: 15px; background: radial-gradient(ellipse at 95% 0%, rgba(92, 127, 174, .16), transparent 42%), linear-gradient(145deg, #111d30, #0d1625); box-shadow: 0 14px 38px rgba(0, 0, 0, .17); }
.role-card-top { display: flex; justify-content: space-between; align-items: center; }
.role-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(214, 189, 131, .23); border-radius: 50%; background: rgba(214, 189, 131, .08); color: var(--gold-bright); font-size: 17px; }
.demo-tag { color: #8b9ab0; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.role-card h2 { margin: 15px 0 5px; color: #edf1f6; font-size: 15px; font-weight: 700; }
.role-card p { margin: 0; color: #98a7bb; font-size: 10px; line-height: 1.65; }
.role-permissions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.permission-chip { padding: 5px 8px; border: 1px solid rgba(159, 201, 243, .13); border-radius: 20px; background: rgba(159, 201, 243, .055); color: #afc1d7; font-size: 8px; }
.role-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(183, 203, 229, .1); color: #8190a4; font-size: 8px; line-height: 1.55; }
.role-note > span:first-child { width: 14px; height: 14px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(214, 189, 131, .27); border-radius: 50%; color: var(--gold); font-size: 8px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; padding: 17px 0 4px; border-top: 1px solid rgba(183, 203, 229, .1); color: #718096; font-size: 9px; }
.footer-mark { display: inline-grid; width: 18px; height: 18px; margin-right: 5px; place-items: center; border: 1px solid rgba(214, 189, 131, .35); border-radius: 50%; color: var(--gold); font: 700 10px var(--font-display); }
.footer-divider { padding: 0 5px; color: #526176; }
.modal-content { overflow: hidden; border: 1px solid rgba(183, 203, 229, .16); border-radius: 15px; background: #111a29; color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.modal-header, .modal-footer { border-color: rgba(183, 203, 229, .12); }
.modal-header { align-items: flex-start; }
.modal-header .btn-close { filter: invert(1) grayscale(1); opacity: .72; }
.modal-title { margin-top: 6px; color: #f0f3f7; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.modal-intro { margin: 5px 0 0; color: #94a3b7; font-size: 10px; }
.modal-body { color: #dce3ed; }
.modal-content .form-label { color: #bac6d5; font-size: 10px; font-weight: 600; }
.modal-content .form-control, .modal-content .form-select { border-color: rgba(183, 203, 229, .17); border-radius: 8px; background-color: #0b1320; color: #eef2f7; font-size: 11px; }
.modal-content .form-control::placeholder { color: #6f8095; }
.modal-content .btn-light { border-color: rgba(183, 203, 229, .16); background: #1b2738; color: #d9e1eb; }
.modal-content .btn-light:hover { background: #26364c; color: #fff; }
.required-mark { color: #e3c47b; }
.form-hint { margin-top: 6px; color: #8291a5; font-size: 9px; line-height: 1.55; }
.toast { border: 1px solid rgba(183, 203, 229, .18) !important; border-radius: 10px; background: #172338; color: #f2f5f8; box-shadow: 0 12px 35px rgba(0, 0, 0, .3); }
.toast .btn-close { filter: invert(1) grayscale(1); }

@media (max-width: 1199.98px) {
  .report-table { min-width: 720px; }
  .welcome-row { grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); }
}
@media (max-width: 767.98px) {
  .topbar { min-height: 64px; }
  .welcome-row { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 25px 23px 22px; }
  .welcome-copy-block { max-width: 100%; }
  .welcome-row h1 { max-width: 480px; font-size: clamp(28px, 7vw, 36px); }
  .welcome-copy { max-width: 440px; }
  .constellation-art { position: absolute; right: -50px; bottom: -4px; width: 55%; min-height: 170px; opacity: .45; }
  .constellation-caption { display: none; }
  .welcome-actions { position: relative; z-index: 2; gap: 12px; margin-top: 19px; }
  .updated-label { max-width: 185px; line-height: 1.4; }
  .metric-card { min-height: 125px; padding: 15px; }
  .metric-value { font-size: 27px; }
  .card-heading { align-items: flex-start; flex-direction: column; padding: 19px 17px 15px; }
  .table-controls { width: 100%; }
  .search-wrap { flex: 1; }
  .search-wrap .form-control { width: 100%; }
  .filter-select { width: 135px; flex: 0 0 auto; }
  .table-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding: 11px 16px; }
  .page-footer { flex-direction: column; }
  .modal-header, .modal-body { padding-right: 18px; padding-left: 18px; }
  .modal-footer { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 420px) {
  .role-picker .form-select { min-width: 118px; max-width: 136px; font-size: 9px; }
  .avatar { display: none; }
  .brand-name { font-size: 15px; }
  .environment-pill { font-size: 8px; letter-spacing: .7px; }
  .welcome-row { padding: 22px 18px; }
  .welcome-actions { align-items: flex-start; flex-direction: column; }
  .constellation-art { right: -75px; width: 70%; opacity: .34; }
  .btn-dark-green { padding: 9px 12px; white-space: nowrap; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Scrolling and positioning layers: sticky navigation, local sticky table header,
   an absolutely positioned constellation, and a role-aware fixed quick action. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Main cards and queue stay in normal document flow. */
.content-card,
.reports-card,
.workflow-card,
.role-card {
  position: static;
}

/* The star illustration sits inside the hero without pushing its text around. */
.welcome-row {
  display: block;
}
.welcome-copy-block {
  max-width: 62%;
}
.constellation-art {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 27px;
  bottom: 22px;
  width: 42%;
  min-height: 0;
  pointer-events: none;
}

/* Longer report queues scroll within their own panel; the column labels stay visible. */
.reports-card {
  overflow: visible;
}
.report-table-wrap {
  position: relative;
  max-height: min(62vh, 620px);
  min-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(159, 201, 243, .35) rgba(9, 15, 25, .45);
  scrollbar-width: thin;
}
.report-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #101827;
}

.quick-submit-fab {
  position: fixed;
  right: max(24px, calc((100vw - 1480px) / 2 + 32px));
  bottom: 24px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px 8px 9px;
  border: 1px solid rgba(241, 217, 159, .68);
  border-radius: 999px;
  background: linear-gradient(135deg, #e6d19c, #b89b5b);
  color: #111723;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .42), 0 0 26px rgba(214, 189, 131, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-submit-fab:hover,
.quick-submit-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48), 0 0 30px rgba(214, 189, 131, .3);
  color: #111723;
}
.quick-submit-fab:focus-visible {
  outline: 2px solid #f1d99f;
  outline-offset: 4px;
}
.quick-submit-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 23, 35, .2);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.toast-container {
  z-index: 1090;
}

@media (max-width: 1199.98px) {
  .welcome-copy-block {
    max-width: 62%;
  }
  .constellation-art {
    right: 16px;
    width: 39%;
  }
}

@media (max-width: 767.98px) {
  .welcome-copy-block {
    max-width: 100%;
  }
  .constellation-art {
    top: auto;
    right: -50px;
    bottom: -4px;
    width: 55%;
    min-height: 170px;
    opacity: .42;
  }
  .report-table-wrap {
    max-height: 56vh;
  }
  .quick-submit-fab {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .quick-submit-fab {
    right: 12px;
    bottom: 12px;
    padding-right: 14px;
  }
  .report-table-wrap {
    max-height: 52vh;
  }
}


/* Keep the workflow context beside the report queue on wide screens. */
@media (min-width: 1200px) {
  .row.g-4.align-items-start > aside {
    position: sticky;
    top: 94px;
  }
}


/* Motion inspired by Creative Reference Library: oversized type, block breakup,
   pointer response, and editorial stagger. Effects remain local and lightweight. */
.welcome-row::before {
  background: radial-gradient(ellipse at var(--hero-pointer-x, 78%) var(--hero-pointer-y, 44%), rgba(102, 149, 204, .16), transparent 41%);
  transition: background-position .25s ease-out;
}

.kinetic-glyph {
  --glyph-cell: clamp(24px, 4.15vw, 56px);
  position: fixed;
  z-index: 0;
  top: 50%;
  right: clamp(-48px, 4vw, 58px);
  display: grid;
  grid-template-columns: repeat(5, var(--glyph-cell));
  grid-template-rows: repeat(7, var(--glyph-cell));
  gap: clamp(3px, .55vw, 8px);
  width: max-content;
  pointer-events: none;
  opacity: .13;
  transform: translate3d(var(--glyph-pointer-x, 0px), calc(-50% + var(--glyph-scroll-y, 0px)), 0) rotate(7deg);
  transform-origin: 50% 50%;
  will-change: transform;
}
.glyph-tile {
  border: 1px solid rgba(214, 189, 131, .52);
  border-radius: clamp(3px, .5vw, 8px);
  background: linear-gradient(140deg, rgba(214, 189, 131, .52), rgba(159, 201, 243, .13));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 12px rgba(159, 201, 243, .06);
  transform: translate3d(var(--tile-x, 0px), var(--tile-y, 0px), 0) rotate(var(--tile-rotate, 0deg)) scale(var(--tile-scale, 1));
  transition: transform .68s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, background .3s ease;
  animation: tile-arrive .7s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}
.glyph-tile.is-near-pointer {
  border-color: rgba(241, 217, 159, .86);
  background: linear-gradient(140deg, rgba(241, 217, 159, .75), rgba(159, 201, 243, .25));
}
@keyframes tile-arrive {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}

/* Cards tilt only a few degrees, so information remains easy to scan. */
.metric-card {
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.metric-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
  border-color: rgba(214, 189, 131, .32);
  box-shadow: 0 17px 36px rgba(0, 0, 0, .24), 0 0 22px rgba(159, 201, 243, .045);
}
.content-card, .role-card { transition: border-color .3s ease, box-shadow .35s ease; }
.content-card:hover, .role-card:hover { border-color: rgba(159, 201, 243, .22); }
.action-btn { transition: transform .22s cubic-bezier(.16, 1, .3, 1), background .2s ease, border-color .2s ease; }
.action-btn:hover { transform: translateY(-2px); }

/* Elements enter as they reach the viewport. JavaScript only enables this class after setup. */
html.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .76s cubic-bezier(.16, 1, .3, 1), transform .76s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.report-row-enter {
  animation: report-row-in .56s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--row-delay, 0ms);
}
@keyframes report-row-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.workflow-item {
  animation: workflow-item-in .48s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--step-index, 0) * 70ms);
}
@keyframes workflow-item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.quick-submit-fab {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}
.quick-submit-fab:hover,
.quick-submit-fab:focus-visible {
  transform: translate3d(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 3px), 0);
}

@media (max-width: 767.98px) {
  .kinetic-glyph {
    --glyph-cell: clamp(19px, 7vw, 31px);
    right: -30px;
    opacity: .09;
  }
  .metric-card:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-glyph { transform: translateY(-50%); }
  .glyph-tile,
  .metric-card,
  .content-card,
  .role-card,
  .action-btn,
  .quick-submit-fab,
  .report-row-enter,
  .workflow-item,
  .motion-reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  html.motion-ready .motion-reveal { opacity: 1 !important; }
}


/* Keep the small pointer tilt active after a card finishes its entrance reveal. */
html.motion-ready .metric-card.motion-reveal.is-visible:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
}
html.motion-ready .motion-reveal {
  transform: perspective(900px) translate3d(0, 30px, -45px) rotateX(-8deg);
  transform-style: preserve-3d;
}
html.motion-ready .motion-reveal.is-visible {
  transform: perspective(900px) translate3d(0, 0, 0) rotateX(0deg);
}

/* Layered CSS 3D security visualization inside the report constellation. */
.constellation-art { perspective: 1100px; }
.constellation-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .58;
  transform: perspective(900px) rotateX(16deg) rotateY(-9deg) translateZ(-28px);
  transform-style: preserve-3d;
}
.security-3d {
  --scene-tilt-x: 0deg;
  --scene-tilt-y: 0deg;
  position: absolute;
  z-index: 2;
  inset: 0;
  perspective: 1050px;
  transform: perspective(1050px) rotateX(var(--scene-tilt-y)) rotateY(var(--scene-tilt-x)) translateY(var(--scene-scroll, 0px));
  transform-style: preserve-3d;
  transition: transform .38s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.security-3d-grid {
  position: absolute;
  inset: 4% -10% -24%;
  opacity: .28;
  transform: perspective(380px) rotateX(64deg) translateY(50px) translateZ(-48px);
  transform-origin: center bottom;
  background-image: linear-gradient(rgba(159,201,243,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(159,201,243,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(transparent, #000 34%, transparent 96%);
}
.security-3d::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 275px;
  height: 275px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,160,215,.23), rgba(52,94,143,.09) 40%, transparent 72%);
  content: "";
  filter: blur(3px);
  transform: translate(-50%,-50%) translateZ(20px);
  animation: security-aura 4.8s ease-in-out infinite;
}
.security-orbit {
  position: absolute;
  top: 49%;
  left: 51%;
  border: 1px solid rgba(174,211,250,.43);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.security-orbit::before { position: absolute; inset: 8px; border: 1px dashed rgba(214,189,131,.2); border-radius: 50%; content: ""; }
.security-orbit i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid #eaf4ff;
  border-radius: 50%;
  background: #9fc9f3;
  box-shadow: 0 0 16px 4px rgba(159,201,243,.75);
  transform: translateY(-50%) translateZ(27px);
}
.security-orbit-a { width: 290px; height: 136px; margin: -68px 0 0 -145px; transform: translateZ(12px) rotateX(68deg); animation: security-orbit-a 12s linear infinite; }
.security-orbit-b { width: 236px; height: 132px; margin: -66px 0 0 -118px; border-color: rgba(220,194,128,.47); transform: translateZ(24px) rotateY(69deg); animation: security-orbit-b 17s linear infinite reverse; }
.security-orbit-b i { left: auto; right: 3px; width: 7px; height: 7px; border-color: #fff0c2; background: #e6c77d; box-shadow: 0 0 14px 4px rgba(230,199,125,.72); }
.security-orbit-c { width: 188px; height: 188px; margin: -94px 0 0 -94px; border-color: rgba(122,214,178,.36); transform: translateZ(5px) rotateX(14deg) rotateY(73deg); animation: security-orbit-c 20s linear infinite; }
.security-orbit-c i { top: 2px; left: 50%; width: 6px; height: 6px; border: 0; background: #7dd8ae; box-shadow: 0 0 13px 4px rgba(125,216,174,.76); transform: translateX(-50%) translateZ(18px); }
.security-core { position: absolute; top: 49%; left: 51%; z-index: 3; width: 92px; height: 108px; transform: translate(-50%,-50%) translateZ(56px) rotateY(-18deg) rotateX(6deg); transform-style: preserve-3d; animation: security-core-float 4.1s ease-in-out infinite; }
.security-shield { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; clip-path: polygon(50% 0, 94% 19%, 88% 70%, 50% 100%, 12% 70%, 6% 19%); backface-visibility: hidden; }
.security-shield-back { background: linear-gradient(145deg, #6b6145, #18283b); transform: rotateY(180deg) translateZ(13px); }
.security-shield-front { border: 1px solid rgba(238,218,165,.72); background: linear-gradient(145deg, rgba(98,130,166,.96), rgba(24,47,72,.98) 58%, #17233a); box-shadow: inset 0 0 28px rgba(194,222,249,.24), 0 0 34px rgba(110,162,219,.34); transform: translateZ(13px); }
.security-shield-front::after { position: absolute; inset: 7px; border: 1px solid rgba(235,220,177,.36); clip-path: inherit; content: ""; }
.security-shield-front svg { position: relative; z-index: 1; width: 36px; fill: rgba(206,231,255,.11); stroke: #e0eeff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.3; filter: drop-shadow(0 0 8px rgba(193,223,255,.65)); }
.security-shield-front span { position: relative; z-index: 1; color: #e0edfb; font-size: 6px; font-weight: 700; letter-spacing: 1px; line-height: 1.45; text-align: center; }
.security-float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 9px 10px;
  border: 1px solid rgba(183,211,241,.25);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(24,39,60,.95), rgba(12,22,37,.91));
  box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(9px);
  transform-style: preserve-3d;
  animation: security-card-float 5s ease-in-out infinite;
}
.security-report-card { top: 20%; left: 0; transform: translateZ(78px) rotateY(11deg) rotateZ(-3deg); }
.security-patch-card { right: 0; bottom: 20%; transform: translateZ(95px) rotateY(-12deg) rotateZ(3deg); animation-delay: -2.4s; }
.security-card-mark { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; border: 1px solid rgba(214,189,131,.35); border-radius: 7px; background: rgba(214,189,131,.1); color: #f1d99f; font-size: 8px; font-weight: 700; }
.security-patch-card .security-card-mark { border-color: rgba(125,216,174,.33); background: rgba(125,216,174,.1); color: #99ebc1; }
.security-float-card b, .security-float-card small { display: block; white-space: nowrap; }
.security-float-card b { color: #e7edf5; font-size: 7px; letter-spacing: .75px; }
.security-float-card small { margin-top: 4px; color: #a2b0c2; font-size: 8px; }
.security-float-card > i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #e7c77b; box-shadow: 0 0 9px #e7c77b; }
.security-patch-card > i { background: #7dd8ae; box-shadow: 0 0 9px #7dd8ae; }
.security-coordinate { position: absolute; z-index: 4; color: rgba(196,216,239,.6); font: 700 7px var(--font-body); letter-spacing: 1.15px; }
.security-coordinate-a { top: 13%; right: 9%; }
.security-coordinate-b { bottom: 11%; left: 12%; }
.constellation-caption { z-index: 5; }
.workflow-item { transform-style: preserve-3d; transition: transform .3s ease, color .3s ease; }
.workflow-item:hover { position: relative; z-index: 2; transform: perspective(680px) rotateY(4deg) translate3d(5px,-2px,10px); }
@keyframes security-aura { 50% { opacity: .55; transform: translate(-50%,-50%) translateZ(28px) scale(1.12); } }
@keyframes security-core-float { 0%,100% { transform: translate(-50%,-50%) translateZ(56px) rotateY(-18deg) rotateX(6deg) translateY(0); } 50% { transform: translate(-50%,-50%) translateZ(72px) rotateY(18deg) rotateX(-6deg) translateY(-8px); } }
@keyframes security-orbit-a { from { transform: translateZ(12px) rotateX(68deg) rotateZ(0deg); } to { transform: translateZ(12px) rotateX(68deg) rotateZ(360deg); } }
@keyframes security-orbit-b { from { transform: translateZ(24px) rotateY(69deg) rotateZ(0deg); } to { transform: translateZ(24px) rotateY(69deg) rotateZ(360deg); } }
@keyframes security-orbit-c { from { transform: translateZ(5px) rotateX(14deg) rotateY(73deg) rotateZ(0deg); } to { transform: translateZ(5px) rotateX(14deg) rotateY(73deg) rotateZ(360deg); } }
@keyframes security-card-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (max-width: 767.98px) {
  .constellation-art { opacity: .88; }
  .security-orbit-a, .security-orbit-b { scale: .74; }
  .security-orbit-c { scale: .76; }
  .security-core { scale: .84; }
  .security-float-card { scale: .84; }
  .security-report-card { left: -12%; }
  .security-patch-card { right: -14%; }
}
@media (max-width: 420px) {
  .security-orbit-a, .security-orbit-b, .security-orbit-c { scale: .65; }
  .security-core { scale: .72; }
  .security-float-card { scale: .76; }
  .security-coordinate { display: none; }
}

/* Full-screen opening sequence, then a deliberate handoff into the working dashboard. */
.intro-gate { display: none; }
body.intro-active { overflow: hidden; }
body.intro-active .intro-gate {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: clamp(17px, 3vw, 38px) clamp(20px, 5vw, 72px) 24px;
  border: 1px solid rgba(214,189,131,.18);
  background:
    radial-gradient(ellipse at 68% 43%, rgba(47,83,125,.26), transparent 38%),
    radial-gradient(ellipse at 24% 75%, rgba(125,216,174,.09), transparent 35%),
    linear-gradient(140deg, #070b12 0%, #0c1320 50%, #080d18 100%);
  color: #f4f6f9;
  isolation: isolate;
}
body.intro-active .intro-gate::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(159,201,243,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(159,201,243,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(transparent 2%, #000 30%, transparent 100%);
  content: "";
  opacity: .48;
}
body.intro-active .intro-gate::after { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.4)); content: ""; pointer-events: none; }
.intro-topline { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intro-brand { display: inline-flex; align-items: center; gap: 10px; color: #f1f4f8; font: 800 16px var(--font-display); letter-spacing: -.7px; }
.intro-brand > span:last-child > span { color: var(--gold); }
.intro-brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(214,189,131,.6); border-radius: 50%; background: radial-gradient(circle, rgba(214,189,131,.18), rgba(214,189,131,.02)); box-shadow: 0 0 20px rgba(214,189,131,.16); color: var(--gold-bright); font-size: 14px; }
.intro-project-tag { display: flex; align-items: center; gap: 8px; color: #91a0b5; font-size: 8px; font-weight: 700; letter-spacing: 1.25px; }
.intro-project-tag i, .intro-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #7dd8ae; box-shadow: 0 0 12px rgba(125,216,174,.8); }
.intro-project-tag b { color: #54657b; }
.intro-stage { position: relative; min-height: 240px; perspective: 1100px; transform-style: preserve-3d; }
.intro-giant-word { position: absolute; z-index: 0; top: 50%; left: 50%; color: transparent; font: 800 clamp(100px, 23vw, 330px)/.8 var(--font-display); letter-spacing: -.09em; white-space: nowrap; pointer-events: none; -webkit-text-stroke: 1px rgba(175,204,236,.18); }
.intro-word-back { opacity: 0; transform: translate(-58%,-67%) translateZ(-100px) rotateX(26deg); animation: intro-word-arrive 1.15s .2s cubic-bezier(.16,1,.3,1) forwards; }
.intro-word-front { color: rgba(159,201,243,.055); -webkit-text-stroke-color: rgba(214,189,131,.13); opacity: 0; transform: translate(-42%,-28%) translateZ(50px) rotateX(-22deg); animation: intro-word-arrive 1.1s .74s cubic-bezier(.16,1,.3,1) forwards; }
.intro-light-sweep { position: absolute; z-index: 5; top: -24%; left: -35%; width: 20%; height: 150%; opacity: 0; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(226,238,255,.12), transparent); filter: blur(4px); animation: intro-light-pass 1.35s 1.15s ease-out forwards; pointer-events: none; }
.intro-block-letter { --intro-tile: clamp(19px, 3.05vw, 42px); position: absolute; z-index: 2; top: 49%; left: 33%; display: grid; grid-template-columns: repeat(5, var(--intro-tile)); grid-template-rows: repeat(7, var(--intro-tile)); gap: clamp(3px, .42vw, 6px); transform: translate(-50%,-50%) rotate(-5deg); transform-style: preserve-3d; animation: intro-block-hover 5s 2s ease-in-out infinite; }
.intro-block-tile { border: 1px solid rgba(214,189,131,.72); border-radius: 5px; background: linear-gradient(145deg, rgba(231,211,160,.83), rgba(159,201,243,.19)); box-shadow: inset 0 1px rgba(255,255,255,.32), 0 0 21px rgba(214,189,131,.14); opacity: 0; transform: translate3d(var(--launch-x),var(--launch-y),var(--launch-z)) rotate(var(--launch-angle)) scale(.18); animation: intro-tile-assemble .95s cubic-bezier(.16,1,.3,1) var(--tile-delay) both; }
.intro-block-tile:nth-child(3n) { background: linear-gradient(145deg, rgba(159,201,243,.72), rgba(99,142,194,.2)); border-color: rgba(159,201,243,.64); }
.intro-block-tile:nth-child(4n) { border-radius: 50%; }
.intro-3d-system { --intro-tilt-x: 0deg; --intro-tilt-y: 0deg; position: absolute; z-index: 3; top: 49%; left: 69%; width: min(360px, 47vw); height: min(360px, 47vw); transform: translate(-50%,-50%) perspective(1150px) rotateX(var(--intro-tilt-y)) rotateY(var(--intro-tilt-x)); transform-style: preserve-3d; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.intro-3d-aura { position: absolute; top: 50%; left: 50%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(90,146,207,.29), rgba(67,105,159,.08) 44%, transparent 72%); filter: blur(4px); transform: translate(-50%,-50%) translateZ(14px); animation: intro-aura 4.5s ease-in-out infinite; }
.intro-3d-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(169,207,245,.48); border-radius: 50%; transform-style: preserve-3d; }
.intro-3d-orbit::before { position: absolute; inset: 8px; border: 1px dashed rgba(214,189,131,.23); border-radius: 50%; content: ""; }
.intro-3d-orbit i { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border: 2px solid #e5f1ff; border-radius: 50%; background: #9fc9f3; box-shadow: 0 0 18px 5px rgba(159,201,243,.8); transform: translateY(-50%) translateZ(32px); }
.intro-orbit-a { width: 92%; height: 42%; margin: -21% 0 0 -46%; transform: translateZ(16px) rotateX(68deg); animation: intro-orbit-a 10s linear infinite; }
.intro-orbit-b { width: 78%; height: 48%; margin: -24% 0 0 -39%; border-color: rgba(230,199,125,.48); transform: translateZ(28px) rotateY(67deg); animation: intro-orbit-b 14s linear infinite reverse; }
.intro-orbit-b i { left: auto; right: 2px; width: 7px; height: 7px; border-color: #fff0c2; background: #e6c77d; box-shadow: 0 0 16px 5px rgba(230,199,125,.76); }
.intro-orbit-c { width: 58%; height: 58%; margin: -29% 0 0 -29%; border-color: rgba(125,216,174,.36); transform: translateZ(8px) rotateX(13deg) rotateY(73deg); animation: intro-orbit-c 18s linear infinite; }
.intro-orbit-c i { top: 2px; left: 50%; width: 6px; height: 6px; border: 0; background: #7dd8ae; box-shadow: 0 0 14px 4px rgba(125,216,174,.8); transform: translateX(-50%) translateZ(20px); }
.intro-shield { position: absolute; top: 50%; left: 50%; width: 28%; height: 34%; transform: translate(-50%,-50%) translateZ(72px); transform-style: preserve-3d; animation: intro-shield-float 3.8s ease-in-out infinite; }
.intro-shield-back, .intro-shield-front { position: absolute; inset: 0; display: grid; place-items: center; clip-path: polygon(50% 0, 94% 19%, 88% 70%, 50% 100%, 12% 70%, 6% 19%); backface-visibility: hidden; }
.intro-shield-back { background: linear-gradient(135deg, #766846, #182c42); transform: rotateY(180deg) translateZ(15px); }
.intro-shield-front { border: 1px solid rgba(246,225,173,.8); background: linear-gradient(145deg, rgba(92,136,183,.97), rgba(19,44,70,.98) 58%, #122039); box-shadow: inset 0 0 30px rgba(192,222,250,.28), 0 0 46px rgba(122,177,231,.36); transform: translateZ(15px); }
.intro-shield-front::after { position: absolute; inset: 8px; border: 1px solid rgba(240,222,179,.34); clip-path: inherit; content: ""; }
.intro-shield-front svg { position: relative; z-index: 1; width: 43%; fill: rgba(206,231,255,.1); stroke: #e1efff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.3; filter: drop-shadow(0 0 10px rgba(193,223,255,.68)); }
.intro-float-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(183,211,241,.26); border-radius: 7px; background: linear-gradient(145deg, rgba(24,39,60,.95), rgba(12,22,37,.9)); box-shadow: 0 12px 26px rgba(0,0,0,.38); color: #dce7f5; font: 700 8px var(--font-body); letter-spacing: .55px; white-space: nowrap; backdrop-filter: blur(9px); }
.intro-float-tag span { color: var(--gold-bright); font-size: 7px; }
.intro-tag-report { top: 24%; left: -4%; transform: translateZ(85px) rotateY(11deg) rotateZ(-4deg); animation: intro-tag-float 4.5s ease-in-out infinite; }
.intro-tag-fix { right: -3%; bottom: 23%; transform: translateZ(105px) rotateY(-12deg) rotateZ(3deg); animation: intro-tag-float 5.2s -2s ease-in-out infinite; }
.intro-tag-fix span { color: #8ce4b5; }
.intro-side-note { position: absolute; z-index: 4; color: rgba(193,211,234,.64); font: 700 7px/1.7 var(--font-body); letter-spacing: 1.4px; }
.intro-note-left { top: 22%; left: 5%; animation: intro-note-in .65s 1.2s both; }
.intro-note-right { top: 20%; right: 5%; text-align: right; animation: intro-note-in .65s 1.45s both; }
.intro-sequence-label { position: absolute; bottom: 5%; left: 50%; display: flex; align-items: center; gap: 9px; color: #94a4ba; font-size: 7px; font-weight: 700; letter-spacing: 1.2px; white-space: nowrap; opacity: 0; transform: translate(-50%,14px); animation: intro-sequence-in .7s 2.5s forwards; }
.intro-sequence-label span { color: var(--gold-bright); }
.intro-sequence-label i { color: #6e8caf; font-style: normal; }
.intro-bottom { position: relative; z-index: 6; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.72fr); align-items: end; gap: 35px; padding-top: 12px; }
.intro-message { opacity: 0; transform: translateY(24px) translateZ(-25px); animation: intro-message-in .85s 1.9s cubic-bezier(.16,1,.3,1) forwards; }
.intro-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #b4c5da; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.intro-kicker > span { display: inline-block; }
.intro-message h1 { margin: 0; color: #f4f6f9; font-size: clamp(28px,4vw,47px); font-weight: 700; line-height: 1.03; letter-spacing: -1.9px; }
.intro-message p { max-width: 490px; margin: 12px 0 0; color: #98a7bb; font-size: 10px; line-height: 1.65; }
.intro-continue { justify-self: end; width: min(100%,330px); padding-bottom: 2px; }
.intro-continue > p { min-height: 14px; margin: 0 0 9px; color: #9aabc0; font-size: 9px; letter-spacing: .35px; }
.intro-open-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 11px 12px 11px 16px; border: 1px solid rgba(241,217,159,.78); border-radius: 8px; background: linear-gradient(120deg,#ead7a7,#c5a965); box-shadow: 0 10px 32px rgba(214,189,131,.16); color: #121a26; font: 700 10px var(--font-body); opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none; transition: transform .28s, box-shadow .28s, background .28s; }
.intro-open-button > i { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(18,26,38,.2); border-radius: 50%; font-size: 13px; font-style: normal; }
.intro-open-button:hover:not(:disabled), .intro-open-button:focus-visible { transform: translateY(-3px) scale(1.015); box-shadow: 0 15px 38px rgba(214,189,131,.27); color: #0c1420; }
.intro-open-button:focus-visible { outline: 2px solid #f1d99f; outline-offset: 4px; }
.intro-gate.is-ready .intro-open-button { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; animation: intro-cta-in .65s cubic-bezier(.16,1,.3,1) both; }
.intro-gate.is-ready .intro-open-button:disabled { cursor: wait; }
.intro-continue-hint { display: block; margin-top: 9px; color: #697a91; font-size: 6px; font-weight: 700; letter-spacing: 1.05px; text-align: right; }
.intro-continue-hint b { padding: 0 4px; color: var(--gold); }
.intro-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; overflow: hidden; background: rgba(159,201,243,.08); }
.intro-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#7dd8ae,#9fc9f3,var(--gold-bright)); box-shadow: 0 0 14px rgba(159,201,243,.7); }
.intro-gate.is-running .intro-progress span { animation: intro-progress-run 4.2s linear forwards; }
.intro-gate.is-leaving { pointer-events: none; animation: intro-curtain-out .82s cubic-bezier(.7,0,.2,1) forwards; }
body.portal-entering .topbar { animation: portal-nav-in .62s cubic-bezier(.16,1,.3,1) both; }
body.portal-entering main { animation: portal-page-in .85s .06s cubic-bezier(.16,1,.3,1) both; }
@keyframes intro-word-arrive { to { opacity: 1; transform: translate(-50%,-50%) translateZ(0) rotateX(0); } }
@keyframes intro-light-pass { 0% { left: -35%; opacity: 0; } 20% { opacity: 1; } 100% { left: 115%; opacity: 0; } }
@keyframes intro-tile-assemble { to { opacity: 1; filter: blur(0); transform: translate3d(0,0,var(--tile-depth)) rotate(0deg) scale(1); } }
@keyframes intro-block-hover { 0%,100% { transform: translate(-50%,-50%) rotate(-5deg) translateY(0); } 50% { transform: translate(-50%,-50%) rotate(-2deg) translateY(-8px); } }
@keyframes intro-aura { 50% { opacity: .55; transform: translate(-50%,-50%) translateZ(27px) scale(1.12); } }
@keyframes intro-orbit-a { to { transform: translateZ(16px) rotateX(68deg) rotateZ(360deg); } }
@keyframes intro-orbit-b { to { transform: translateZ(28px) rotateY(67deg) rotateZ(360deg); } }
@keyframes intro-orbit-c { to { transform: translateZ(8px) rotateX(13deg) rotateY(73deg) rotateZ(360deg); } }
@keyframes intro-shield-float { 0%,100% { transform: translate(-50%,-50%) translateZ(72px) rotateY(-16deg) rotateX(5deg) translateY(0); } 50% { transform: translate(-50%,-50%) translateZ(92px) rotateY(16deg) rotateX(-5deg) translateY(-9px); } }
@keyframes intro-tag-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes intro-note-in { from { opacity: 0; transform: translateY(10px) translateZ(-20px); } to { opacity: 1; transform: translateY(0) translateZ(0); } }
@keyframes intro-sequence-in { to { opacity: 1; transform: translate(-50%,0); } }
@keyframes intro-message-in { to { opacity: 1; transform: translateY(0) translateZ(0); } }
@keyframes intro-cta-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes intro-progress-run { to { width: 100%; } }
@keyframes intro-curtain-out { to { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.025); } }
@keyframes portal-nav-in { from { opacity: 0; transform: translateY(-20px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes portal-page-in { from { opacity: 0; transform: perspective(1000px) translateY(20px) translateZ(-35px) rotateX(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (max-width: 767.98px) {
  body.intro-active .intro-gate { grid-template-rows: auto minmax(210px,1fr) auto; padding: 16px 19px 19px; }
  .intro-project-tag { gap: 5px; font-size: 7px; letter-spacing: .65px; }
  .intro-stage { min-height: 230px; }
  .intro-block-letter { --intro-tile: clamp(18px,5vw,30px); left: 26%; }
  .intro-3d-system { top: 47%; left: 72%; width: min(300px,62vw); height: min(300px,62vw); }
  .intro-side-note { font-size: 6px; }
  .intro-note-left { left: 0; }
  .intro-note-right { right: 0; }
  .intro-bottom { grid-template-columns: 1fr; align-items: start; gap: 14px; padding-top: 5px; }
  .intro-message h1 { font-size: clamp(28px,8vw,39px); }
  .intro-message p { max-width: 430px; margin-top: 8px; }
  .intro-continue { justify-self: stretch; width: 100%; }
  .intro-continue > p { display: none; }
  .intro-continue-hint { text-align: left; }
  .intro-sequence-label { bottom: 1%; gap: 6px; font-size: 6px; }
}
@media (max-width: 420px) {
  body.intro-active .intro-gate { padding-right: 15px; padding-left: 15px; }
  .intro-brand { gap: 7px; font-size: 14px; }
  .intro-project-tag { font-size: 6px; }
  .intro-block-letter { left: 24%; }
  .intro-3d-system { left: 72%; width: 62vw; height: 62vw; }
  .intro-tag-report { left: -7%; }
  .intro-tag-fix { right: -8%; }
  .intro-side-note { display: none; }
  .intro-sequence-label { letter-spacing: .65px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-gate *, .intro-gate::before, .intro-gate::after { animation-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro-gate.is-ready .intro-open-button { animation: none !important; opacity: 1; transform: none; }
}

/* Reviewer follow-ups: reset access, scoped role controls, and clearer workflow metadata. */
#pageTitle:focus { outline: none; box-shadow: none; }
.reset-demo-button {
  padding: 6px 9px;
  border: 1px solid rgba(183,203,229,.16);
  border-radius: 7px;
  background: rgba(159,201,243,.06);
  color: #aebbd0;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.reset-demo-button:hover, .reset-demo-button:focus-visible { border-color: rgba(214,189,131,.5); background: rgba(214,189,131,.1); color: #f1d99f; }
.researcher-picker .form-select { min-width: 112px; max-width: 150px; border-color: rgba(183,203,229,.16); border-radius: 8px; background-color: #111a2a; color: #dce5f1; font-size: 10px; }
.overdue-filter { display: inline-flex; align-items: center; gap: 5px; color: #9eacc0; font-size: 9px; white-space: nowrap; cursor: pointer; }
.overdue-filter input { accent-color: #e27b65; }
.approval-subtext, .change-reference, .due-cell small { display: block; margin-top: 4px; font-size: 8px; font-weight: 500; white-space: nowrap; }
.approval-subtext { color: #e2bd70; }
.change-reference { max-width: 145px; overflow: hidden; color: #8294ac; text-overflow: ellipsis; }
.due-cell { color: #acbacd !important; font-size: 9px !important; }
.due-cell.is-overdue, .is-overdue { color: #ff9b86 !important; }
.due-cell small { color: #ff9b86; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.transition-guide { margin: 12px 20px 0; border-top: 1px solid rgba(183,203,229,.09); padding-top: 11px; }
.transition-guide summary { color: #a5b6ca; font-size: 9px; font-weight: 600; cursor: pointer; }
.transition-guide-table { display: grid; gap: 7px; margin-top: 11px; }
.transition-guide-table > div { display: flex; justify-content: space-between; gap: 12px; color: #8394ab; font-size: 8px; }
.transition-guide-table b { color: #c4d1e0; font-weight: 600; }
.policy-card { padding: 22px 24px; border: 1px solid rgba(183,203,229,.13); border-radius: 14px; background: linear-gradient(140deg,rgba(19,29,46,.94),rgba(12,20,34,.97)); }
.policy-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.policy-heading h2 { margin: 5px 0 0; color: #eef3f8; font: 700 16px var(--font-display); }
.policy-label { padding: 5px 8px; border: 1px solid rgba(214,189,131,.22); border-radius: 20px; color: #c5af7c; font-size: 8px; white-space: nowrap; }
.policy-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.policy-grid h3 { margin: 0 0 6px; color: #d5dfeb; font: 700 10px var(--font-display); }
.policy-grid p { margin: 0; color: #8f9fb4; font-size: 9px; line-height: 1.65; }
.page-footer a { color: #a7bbd3; text-decoration-color: rgba(167,187,211,.35); text-underline-offset: 3px; }
.page-footer > span:last-child i { padding: 0 5px; color: #65758b; font-style: normal; }
.detail-description { padding-bottom: 1px; }
.history-list { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.history-list li { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 9px; }
.history-list li:not(:last-child)::after { position: absolute; top: 10px; bottom: -12px; left: 4px; width: 1px; background: rgba(159,201,243,.2); content: ""; }
.history-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid #8bbbe7; border-radius: 50%; background: #142137; }
.history-list li > div > strong { display: block; color: #dce7f3; font-size: 10px; }
.history-list small { display: block; margin-top: 3px; color: #8798ae; font-size: 8px; }
.history-list p { margin: 5px 0 0; color: #a2b0c1; font-size: 9px; }
.approval-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid rgba(214,189,131,.18); border-radius: 8px; background: rgba(214,189,131,.06); color: #aab8ca; font-size: 10px; }
.approval-summary strong { color: #f1d99f; font-size: 13px; }
body.researcher-mode .toast-container { bottom: 76px !important; }
.security-patch-card { right: 11%; bottom: 27%; }
.constellation-caption { right: 18px; bottom: 0; }
.report-table { min-width: 880px; }

@media (max-width: 767.98px) {
  .constellation-art { display: none !important; }
  .topbar .container-fluid { flex-wrap: wrap; gap: 7px; padding-top: 7px; padding-bottom: 7px; }
  .topbar .container-fluid > div:last-child { justify-content: flex-end; flex-wrap: wrap; margin-left: auto; gap: 6px !important; }
  .reset-demo-button { padding: 5px 7px; }
  .researcher-picker .form-select { min-width: 96px; max-width: 112px; }
  .card-heading { align-items: flex-start; }
  .table-controls { flex-wrap: wrap; }
  .overdue-filter { padding: 5px 2px; }
  .policy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .policy-card { padding: 18px; }
  .transition-guide { margin-right: 17px; margin-left: 17px; }
}
@media (max-width: 420px) {
  .role-picker .form-select { min-width: 112px; max-width: 124px; }
  .researcher-picker .form-select { min-width: 87px; max-width: 100px; font-size: 9px; }
  .reset-demo-button { padding: 5px 6px; font-size: 8px; }
  .policy-heading { align-items: flex-start; flex-direction: column; }
  .policy-grid { grid-template-columns: 1fr; gap: 13px; }
}
