:root {
  color-scheme: light;
  --yellow: #ffc400;
  --yellow-2: #ffd84a;
  --gold-dark: #9b6900;
  --ink: #171c26;
  --charcoal: #252d3b;
  --slate: #667085;
  --muted: #98a2b3;
  --line: #e5e7eb;
  --cloud: #f5f7fa;
  --white: #fff;
  --green: #16a36a;
  --red: #e23b3b;
  --orange: #ed7d14;
  --blue: #3977d6;
  --shadow: 0 18px 55px rgba(17, 24, 39, .12);
  font-family: "Noto Sans Thai", Inter, "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cloud); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cloud); }
button, input, select { font: inherit; }
button { color: inherit; }
button, [data-nav] { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.login-shell {
  --pointer-x: 0px;
  --pointer-y: 0px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(540px, 44fr);
  background: #111722;
  isolation: isolate;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: url("assets/ntshield-platform-hero.png") center/cover no-repeat;
  filter: saturate(1.24) contrast(1.11) brightness(.96);
  transform: scale(1.045) translate3d(calc(var(--pointer-x) * -.16), calc(var(--pointer-y) * -.16), 0);
  animation: hero-breathe 18s ease-in-out infinite alternate;
  z-index: -1;
}

.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 48%, rgba(255,196,0,.09), transparent 31%),
    linear-gradient(90deg, rgba(7,12,20,.92) 0%, rgba(10,16,26,.84) 51%, rgba(18,24,34,.72) 53%, rgba(232,237,243,.96) 60%, #eef2f6 62%, #eef2f6 100%);
  z-index: -1;
}

.login-atmosphere { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cyber-grid { position: absolute; inset: 0 46% 0 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 62px 62px; transform: perspective(600px) rotateX(63deg) scale(1.35) translateY(31%); transform-origin: center bottom; mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 74%, transparent); animation: grid-travel 12s linear infinite; }
.signal { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 0 rgba(255,196,0,.5); animation: signal-pulse 2.8s ease-out infinite; }
.signal-one { left: 13%; top: 24%; animation-delay: -.6s; }
.signal-two { left: 31%; top: 65%; animation-delay: -1.7s; }
.signal-three { left: 43%; top: 39%; animation-delay: -2.3s; }
.orbit { position: absolute; border: 1px solid rgba(255,215,78,.24); border-radius: 50%; animation: orbit-spin 18s linear infinite; }
.orbit span { position: absolute; top: 50%; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 16px rgba(255,196,0,.8); }
.orbit-one { left: 8%; top: 13%; width: 240px; aspect-ratio: 1; }
.orbit-two { left: 33%; bottom: 8%; width: 150px; aspect-ratio: 1; animation-direction: reverse; animation-duration: 13s; }

.login-story { position: relative; z-index: 2; padding: clamp(42px, 4.5vw, 76px); align-self: center; max-width: 850px; animation: story-enter .9s cubic-bezier(.2,.75,.2,1) both; }
.story-logo { display: block; width: min(284px, 64%); height: auto; margin: 0 0 24px -4px; padding: 7px 13px; background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 12px 35px rgba(0,0,0,.16); backdrop-filter: blur(12px); }
.story-status { width: fit-content; min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(11,16,24,.68); color: #eef2f7; box-shadow: 0 8px 30px rgba(0,0,0,.16); backdrop-filter: blur(14px); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.story-status i, .access-status i, .login-foot > i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #31d68a; box-shadow: 0 0 0 4px rgba(49,214,138,.12), 0 0 13px rgba(49,214,138,.55); animation: status-blink 2.2s ease-in-out infinite; }
.story-status b { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.18); color: var(--yellow); font-size: 10px; }
.eyebrow { color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: .17em; margin: 18px 0 10px; }
.login-story > .eyebrow { color: #ffd440; text-shadow: 0 2px 16px rgba(255,196,0,.28); }
.login-story h1 { margin: 0; color: #fff; font-size: clamp(48px, 5.3vw, 82px); line-height: .98; letter-spacing: -.055em; max-width: 720px; text-shadow: 0 18px 45px rgba(0,0,0,.25); }
.login-story h1 span { position: relative; z-index: 0; display: inline-block; color: #111722; padding: 0 .08em; margin-right: .08em; text-shadow: none; }
.login-story h1 span::before { content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; top: .1em; bottom: -.03em; background: linear-gradient(105deg, var(--yellow), #ffe36c); border-radius: .08em; transform: skewX(-4deg) rotate(-1deg); box-shadow: 0 8px 25px rgba(255,196,0,.2); }
.story-copy { margin: 23px 0 25px; color: #f8fbff; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.7; max-width: 630px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.promise-list { display: grid; gap: 11px; max-width: 600px; margin: 0; padding: 0; list-style: none; perspective: 900px; }
.promise-list > li { position: relative; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(105deg, rgba(16,22,32,.86), rgba(30,38,51,.68)); color: #fff; backdrop-filter: blur(17px); border-radius: 14px; box-shadow: 0 12px 35px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.06); transform: translateZ(0); transition: transform .28s ease, border-color .28s ease, background .28s ease; animation: promise-enter .65s cubic-bezier(.2,.75,.2,1) both; }
.promise-list > li:nth-child(2) { animation-delay: .1s; }
.promise-list > li:nth-child(3) { animation-delay: .2s; }
.promise-list > li:hover { transform: translate3d(9px,-2px,24px); border-color: rgba(255,207,42,.5); background: linear-gradient(105deg, rgba(18,25,36,.9), rgba(39,45,57,.65)); }
.promise-list > li > span { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,210,58,.7); border-radius: 11px; color: var(--yellow); background: rgba(255,196,0,.1); font-size: 11px; letter-spacing: .06em; font-weight: 900; }
.promise-list > li > i { color: rgba(255,255,255,.36); font-style: normal; transition: transform .25s ease, color .25s ease; }
.promise-list > li:hover > i { color: var(--yellow); transform: translateX(3px); }
.promise-list strong, .promise-list small { display: block; }
.promise-list strong { font-size: 15px; letter-spacing: .02em; }
.promise-list small { color: #dce2eb; margin-top: 3px; font-size: 13px; }
.story-metrics { max-width: 600px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.2); list-style: none; }
.story-metrics li, .story-metrics b, .story-metrics small { display: block; }
.story-metrics b { color: #fff; font-size: 18px; }
.story-metrics small { margin-top: 3px; color: #d9e0e9; font-size: 11px; letter-spacing: .06em; }

.login-panel { position: relative; z-index: 3; display: grid; place-items: center; padding: 32px clamp(42px, 3.6vw, 68px) 32px clamp(22px, 2vw, 38px); min-width: 0; animation: panel-enter .75s .05s cubic-bezier(.2,.78,.2,1) both; }
.login-panel::before { content: ""; position: absolute; width: min(650px,92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.17), rgba(255,196,0,.035) 43%, transparent 70%); filter: blur(8px); transform: translate3d(calc(var(--pointer-x) * .2), calc(var(--pointer-y) * .2), 0); animation: halo-breathe 6s ease-in-out infinite; }
.login-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; z-index: 1; width: min(620px, 100%); padding: clamp(34px, 2.7vw, 50px); background: #fff; border: 1px solid #d0d5dd; border-radius: 28px; box-shadow: 0 38px 90px rgba(23,28,38,.22), 0 14px 34px rgba(23,28,38,.13), inset 0 1px #fff; transform: perspective(1300px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .28s ease; }
.login-card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,196,0,.45) 48%, rgba(255,255,255,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.login-card::after { content: ""; position: absolute; z-index: -1; inset: 12% -15% -12% 18%; background: rgba(33,41,53,.14); filter: blur(42px); border-radius: 36px; transform: translateZ(-30px); pointer-events: none; }
.login-card:hover { box-shadow: 0 45px 110px rgba(23,28,38,.2), 0 18px 42px rgba(23,28,38,.11), inset 0 1px rgba(255,255,255,.95); }
.card-edge { position: absolute; inset: 17px auto 17px 0; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, transparent, var(--yellow) 25%, var(--yellow) 75%, transparent); box-shadow: 0 0 18px rgba(255,196,0,.45); }
.access-status { display: flex; justify-content: space-between; align-items: center; margin: -3px 0 20px; padding-bottom: 13px; border-bottom: 1px solid #d0d5dd; color: #344054; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.access-status span { display: flex; align-items: center; gap: 8px; }
.access-status b { color: #7a5600; font-size: 10px; }
.login-logo { display: block; width: min(330px, 72%); margin: 0 auto; transform: translateZ(24px); }
.login-tagline { text-align: center; color: #667085; letter-spacing: .05em; margin: 2px 0 28px; font-size: 13px; font-weight: 650; }
.login-tagline i { color: var(--yellow); font-style: normal; padding: 0 7px; }
.login-heading { margin-bottom: 18px; transform: translateZ(18px); }
.login-heading .eyebrow { margin-bottom: 5px; }
.login-heading h2 { color: #1b2430; font-size: 32px; margin: 0 0 7px; letter-spacing: -.035em; }
.login-heading p:last-child { margin: 0; color: #667085; font-size: 14px; }
.login-heading code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #344054; font-size: .92em; }
.field { display: grid; gap: 8px; margin-top: 16px; font-weight: 750; font-size: 14px; color: #1b2430; transform: translateZ(14px); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > b { position: absolute; left: 16px; width: 19px; height: 19px; color: #667085; z-index: 1; }
.input-wrap svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; min-width: 0; height: 52px; padding: 0 49px; border: 1px solid #d0d5dd; border-radius: 12px; outline: none; background: #fff; color: #1b2430; box-shadow: inset 0 1px 2px rgba(17,24,39,.04); transition: .22s ease; font-size: 14px; }
.input-wrap input:hover { border-color: #c6ccd5; background: #fff; }
.input-wrap input:focus { border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 4px rgba(255,196,0,.14), 0 8px 24px rgba(17,24,39,.06); }
.input-wrap:focus-within > b { color: #ad7900; }
.reveal { position: absolute; right: 8px; width: 39px; height: 39px; padding: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--slate); }
.reveal:hover { background: var(--cloud); }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 17px 1px; font-size: 12px; color: #344054; }
.login-options label, .checkbox-row { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--yellow); }
.link-button { padding: 4px; border: 0; background: transparent; color: var(--gold-dark); cursor: pointer; font-weight: 700; }
.form-message { min-height: 20px; margin: -4px 0 7px; font-size: 12px; color: var(--red); }
.form-message.ok { color: var(--green); }
.primary-login { position: relative; overflow: hidden; width: 100%; height: 56px; border: 1px solid #e0aa00; border-radius: 12px; background: #ffc400; color: #1b2430; box-shadow: 0 13px 28px rgba(155,105,0,.3), inset 0 1px rgba(255,255,255,.42); display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 13px; font-weight: 900; letter-spacing: .075em; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; transform: translateZ(22px); }
.primary-login b { font-size: 18px; transition: transform .22s ease; }
.primary-login:hover { background: #ffd12f; transform: translate3d(0,-2px,24px); box-shadow: 0 18px 36px rgba(155,105,0,.34), inset 0 1px rgba(255,255,255,.5); }
.primary-login:focus-visible { outline: 3px solid rgba(27,36,48,.28); outline-offset: 3px; }
.primary-login:hover b { transform: translateX(4px); }
.primary-login:disabled { opacity: .65; cursor: wait; transform: none; }
.or { height: 40px; display: flex; align-items: center; color: #667085; font-size: 11px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.or span { padding: 0 16px; }
.nt-account { width: 100%; height: 49px; background: #fff; border: 1px solid #d3a800; border-radius: 13px; font-size: 12px; font-weight: 750; cursor: pointer; transition: .22s ease; }
.nt-account:hover { background: #fff9df; border-color: var(--yellow); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.07); }
.nt-account span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border: 1px solid currentColor; border-radius: 9px; }
.login-foot { text-align: center; color: #667085; font-size: 10px; font-weight: 700; letter-spacing: .05em; margin: 23px 0 -11px; }
.login-foot > i { width: 5px; height: 5px; margin-right: 5px; box-shadow: 0 0 8px rgba(49,214,138,.5); }
.login-foot span { color: var(--yellow); padding: 0 7px; }

@keyframes hero-breathe { from { transform: scale(1.045) translate3d(calc(var(--pointer-x) * -.16), calc(var(--pointer-y) * -.16), 0); } to { transform: scale(1.085) translate3d(calc(var(--pointer-x) * -.16), calc(var(--pointer-y) * -.16), 0); } }
@keyframes grid-travel { to { background-position: 0 62px, 62px 0; } }
@keyframes signal-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,196,0,.55); } 75%,100% { box-shadow: 0 0 0 18px rgba(255,196,0,0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes status-blink { 50% { opacity: .62; box-shadow: 0 0 0 6px rgba(49,214,138,0), 0 0 8px rgba(49,214,138,.3); } }
@keyframes story-enter { from { opacity: 0; transform: translate3d(-35px,18px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes promise-enter { from { opacity: 0; transform: translate3d(-24px,14px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes panel-enter { from { transform: translate3d(35px,22px,0) scale(.97); } to { transform: translate3d(0,0,0) scale(1); } }
@keyframes halo-breathe { 50% { opacity: .65; transform: translate3d(calc(var(--pointer-x) * .2), calc(var(--pointer-y) * .2), 0) scale(1.08); } }

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr) 292px;
  grid-template-rows: 72px minmax(0, 1fr);
  background: var(--cloud);
}

.topbar { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 242px minmax(0, 1fr) auto; align-items: center; background: #fff; border-bottom: 1px solid var(--line); padding: 0 22px; position: sticky; top: 0; z-index: 30; }
.top-logo { width: 186px; height: 55px; object-fit: contain; object-position: left center; }
.top-nav { display: flex; height: 100%; justify-content: center; gap: 6px; }
.top-nav button { position: relative; padding: 0 16px; border: 0; background: transparent; color: #4b5565; cursor: pointer; font-size: 13px; font-weight: 700; }
.top-nav button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.top-nav button.active { color: var(--gold-dark); }
.top-nav button.active::after { background: var(--yellow); }
.operator { display: flex; align-items: center; gap: 11px; }
.operator small, .operator strong { display: block; line-height: 1.25; }
.operator small { color: var(--slate); font-size: 11px; }
.operator strong { font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.12); }
.live-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(226,59,59,.12); }
.icon-button, .avatar { border: 0; cursor: pointer; display: grid; place-items: center; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; background: var(--cloud); font-size: 19px; }
.icon-button:hover { background: #eceff3; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--charcoal); color: white; font-size: 12px; font-weight: 800; }
.mobile-only { display: none; }

.sidebar { grid-column: 1; grid-row: 2; position: sticky; top: 72px; height: calc(100vh - 72px); overflow: auto; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); z-index: 20; }
.sidebar nav { display: grid; gap: 5px; padding: 20px 14px; }
.sidebar nav button { width: 100%; border: 0; background: transparent; border-radius: 11px; padding: 12px 13px; display: flex; align-items: center; gap: 11px; cursor: pointer; text-align: left; color: #505969; font-size: 13px; font-weight: 700; }
.sidebar nav button > span { width: 26px; color: #4b5565; font-weight: 900; text-align: center; }
.sidebar nav button > b { margin-left: auto; min-width: 23px; padding: 3px 6px; border-radius: 10px; background: #fff1bb; color: #815800; text-align: center; font-size: 11px; }
.sidebar nav button:hover { background: var(--cloud); }
.sidebar nav button.active { background: linear-gradient(105deg, #fff7d7, #fffaf0); color: #765100; box-shadow: inset 3px 0 var(--yellow); }
.sidebar nav button.active > span { color: #a06c00; }
.sidebar-guardian { margin-top: auto; position: relative; min-height: 250px; overflow: hidden; background: #151c28; color: white; }
.sidebar-guardian > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 9% center; opacity: .72; filter: saturate(.85) contrast(1.08); }
.sidebar-guardian::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,28,40,.05), rgba(21,28,40,.95) 65%); }
.sidebar-guardian > div { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; }
.sidebar-guardian strong, .sidebar-guardian p, .sidebar-guardian small { display: block; }
.sidebar-guardian strong { font-size: 13px; }
.sidebar-guardian strong i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 5px; }
.sidebar-guardian p { margin: 7px 0 18px; font-size: 13px; }
.sidebar-guardian small { color: #bdc5d2; font-size: 10px; }

.workspace { grid-column: 2; grid-row: 2; min-width: 0; padding: 22px; overflow: hidden; }
.dashboard-shell { max-width: 100%; font-size: var(--ui-font-size, 14px); zoom: var(--ui-font-scale, 1); }
.page { display: none; }
.page.active { display: block; }
.dashboard-link-panel { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dashboard-link-panel:hover { border-color: #e9b400; box-shadow: 0 12px 28px rgba(24, 35, 49, .12); transform: translateY(-1px); }
.dashboard-link-panel:focus-visible { outline: 3px solid rgba(234, 180, 0, .42); outline-offset: 3px; }
.local-login-panel { margin-top: 16px; padding: 16px; border: 1px solid #e4b817; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 1px #fff, 0 8px 22px rgba(122,86,0,.08); }
.login-mode-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0dfaa; }
.login-mode-heading div, .login-mode-heading b, .login-mode-heading span { display: block; }
.login-mode-heading b { color: #1b2430; font-size: 12px; letter-spacing: .08em; }
.login-mode-heading span { margin-top: 2px; color: #667085; font-size: 11px; }
.login-mode-heading small { padding: 5px 7px; border-radius: 999px; background: #1b2430; color: #fff; font-size: 9px; font-weight: 800; }
.local-login-panel .field { margin-top: 12px; }
.local-login-panel .primary-login { margin-top: 16px; }
.legacy-login-panel { margin-top: 14px; padding-top: 2px; color: #667085; }
.legacy-login-panel summary { width: fit-content; margin: 0 auto; padding: 6px 8px; color: #805a00; font-size: 11px; font-weight: 750; cursor: pointer; }
.legacy-login-panel[open] summary { margin-bottom: 2px; }
.legacy-login-panel .field { margin-top: 9px; }
.legacy-login-button { margin-top: 12px; }
.page-load-status { position: sticky; z-index: 25; top: 8px; margin: 0 0 12px; padding: 9px 12px; border: 1px solid #dce4ed; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(42,54,70,.08); color: #5d6878; font-size: 10px; }
.page-load-status.loading { border-color: #ead487; color: #876000; }
.page-load-status.warning { border-color: #efc7a2; background: #fff9f3; color: #9b551b; }
[data-nav][aria-current="page"] { position: relative; }
#sidebarStatusDot.offline { background: var(--red); }
.page-heading { min-height: 60px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 2px 18px; }
.page-heading .eyebrow { margin: 0 0 4px; }
.page-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.page-heading p:last-child { color: var(--slate); margin: 5px 0 0; font-size: 13px; }
.incident-drilldown { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 15px 17px; border-left: 4px solid var(--yellow); }
.incident-drilldown[hidden] { display: none; }
.incident-drilldown .eyebrow { margin: 0; }.incident-drilldown h2 { margin: 4px 0 0; font-size: 15px; }.incident-drilldown p:last-child { margin: 4px 0 0; color: var(--slate); font-size: 10px; }
.incident-drilldown > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.incident-title-button { padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.incident-title-button:hover, .incident-title-button:focus-visible { color: #936900; text-decoration: underline; outline: none; }
tr.selected-row td { background: #fffaf0; }
.range-pill, .count-pill { display: inline-flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line); padding: 9px 12px; border-radius: 11px; color: var(--slate); font-size: 11px; font-weight: 700; white-space: nowrap; }
.range-pill #centralVersion { border-left: 1px solid var(--line); padding-left: 9px; }

.overview-grid { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(400px, 1.58fr) minmax(280px, 1fr); gap: 13px; align-items: stretch; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 22px rgba(17,24,39,.045); padding: 16px; }
[data-card-id] { position: relative; }
[data-card-id]::after { content: "ID " attr(data-card-id); position: absolute; z-index: 20; right: 9px; bottom: 7px; padding: 2px 5px; border: 1px solid rgba(151,162,176,.34); border-radius: 4px; background: rgba(247,249,252,.92); color: #7d8998; font: 800 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .045em; pointer-events: none; }
[data-card-id^="OV-"]::after, [data-card-id^="TH-"]::after { border-color: rgba(211,152,0,.42); background: rgba(255,250,232,.94); color: #966c00; }
.card-title { display: flex; justify-content: space-between; align-items: center; min-height: 28px; gap: 10px; }
.card-title h2 { margin: 0; font-size: 14px; }
.card-title h2 em { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 5px; border-radius: 11px; background: var(--yellow); color: var(--ink); font-size: 11px; font-style: normal; }
.card-title > span { color: var(--slate); font-size: 10px; }
.card-title button, .analyst-card button { border: 0; background: transparent; color: var(--gold-dark); font-size: 11px; font-weight: 800; cursor: pointer; }

.posture-card { grid-column: 1; grid-row: span 1; }
.gauge { --score: 0; width: 176px; height: 96px; margin: 16px auto 0; overflow: hidden; position: relative; }
.gauge::before { content: ""; position: absolute; inset: 0; border-radius: 180px 180px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--yellow) calc(var(--score) * .5%), #edf0f4 0 50%, transparent 0); }
.gauge::after { content: ""; position: absolute; inset: 18px 18px -18px; background: #fff; border-radius: 150px 150px 0 0; }
.gauge > div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 2px; text-align: center; }
.gauge strong { font-size: 39px; line-height: 1; }
.gauge small { display: block; color: var(--slate); }
.posture-label { text-align: center; margin: 8px 0 15px; color: var(--green); font-size: 12px; font-weight: 800; }
.mini-metrics { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-metrics span { display: flex; justify-content: space-between; color: var(--slate); font-size: 11px; }
.mini-metrics b { color: var(--ink); }

.attack-card { grid-column: 2; padding-bottom: 0; overflow: hidden; }
.attack-visual { height: 194px; margin: 3px -16px 0; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(255,196,0,.14), transparent 36%), linear-gradient(180deg, #fbfcfd, #f4f6f9); }
.attack-visual::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: radial-gradient(#9ba6b6 1px, transparent 1px); background-size: 8px 8px; mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%); }
.attack-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.attack-visual path { fill: none; stroke: #d1a000; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .7; }
.attack-visual > i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; background: var(--orange); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 0 rgba(237,125,20,.5); animation: pulse 3s var(--delay) infinite; }
.attack-shield { position: absolute; z-index: 2; left: 50%; top: 51%; transform: translate(-50%,-50%); width: 54px; height: 64px; display: grid; place-items: center; border: 3px solid var(--yellow); border-radius: 18px 18px 24px 24px; color: #8e6300; background: rgba(255,255,255,.9); font-size: 25px; box-shadow: 0 8px 22px rgba(166,113,0,.18); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237,125,20,.4); } 50% { box-shadow: 0 0 0 10px rgba(237,125,20,0); } }
.attack-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -16px; border-top: 1px solid var(--line); }
.attack-stats span { text-align: center; padding: 12px 4px; border-right: 1px solid var(--line); }
.attack-stats span:last-child { border-right: 0; }
.attack-stats b, .attack-stats small { display: block; }
.attack-stats b { font-size: 17px; }
.attack-stats small { margin-top: 2px; color: var(--slate); font-size: 9px; }

.active-card { grid-column: 3; }
.incident-list { display: grid; margin-top: 8px; }
.incident-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 1px; border-top: 1px solid #eef0f3; }
.incident-row > i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.incident-row > i.critical { background: var(--red); }
.incident-row > i.high { background: var(--orange); }
.incident-row > i.medium { background: var(--yellow); }
.incident-row > i.low { background: var(--blue); }
.incident-row strong, .incident-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.incident-row strong { font-size: 11px; }
.incident-row small { color: var(--slate); font-size: 9px; margin-top: 3px; }
.incident-row time { color: var(--slate); font-size: 9px; }

.assets-card { grid-column: 1; }
.asset-overview { display: grid; grid-template-columns: 118px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 8px; }
.donut, .severity-donut { --online: 0%; --windows: 0%; --critical: 0%; --high: 0%; --medium: 0%; width: 105px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--yellow) 0 var(--windows), var(--blue) var(--windows) var(--online), #d9dde4 var(--online) 100%); }
.donut::after, .severity-donut::after { content: ""; position: absolute; width: 67%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.donut span, .severity-donut span { position: relative; z-index: 1; text-align: center; }
.donut b, .donut small, .severity-donut b, .severity-donut small { display: block; }
.donut b, .severity-donut b { font-size: 18px; }
.donut small, .severity-donut small { color: var(--slate); font-size: 8px; }
.legend { display: grid; gap: 9px; }
.legend span { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 6px; color: var(--slate); font-size: 9px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.legend i.linux { background: var(--blue); }
.legend i.offline { background: #d9dde4; }
.legend b { color: var(--ink); }

.trend-card { grid-column: 2; }
.trend-wrap { height: 147px; margin-top: 9px; display: grid; grid-template-rows: 1fr 18px; }
.trend-wrap svg { width: 100%; height: 100%; overflow: visible; }
.grid-lines line { stroke: #e8ebef; stroke-width: 1; }
#trendLine { fill: none; stroke: #d09300; stroke-width: 3; vector-effect: non-scaling-stroke; }
#trendArea { fill: rgba(255,196,0,.13); }
.trend-labels { display: grid; grid-template-columns: repeat(7, 1fr); color: var(--slate); font-size: 8px; text-align: center; }

.severity-card { grid-column: 3; }
.severity-wrap { display: grid; grid-template-columns: 122px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 9px; }
.severity-donut { width: 108px; background: conic-gradient(var(--red) 0 var(--critical), var(--orange) var(--critical) var(--high), var(--yellow) var(--high) var(--medium), var(--blue) var(--medium) 100%); }
.severity-legend i.critical { background: var(--red); }.severity-legend i.high { background: var(--orange); }.severity-legend i.medium { background: var(--yellow); }.severity-legend i.low { background: var(--blue); }

.analyst-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; background: linear-gradient(105deg, #fff, #fffaf0); }
.analyst-head { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.analyst-head > span, .ai-orb { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: var(--charcoal); color: var(--yellow); border: 2px solid var(--yellow); border-radius: 15px; font-weight: 900; }
.analyst-head h2, .analyst-head p { margin: 0; }.analyst-head h2 { font-size: 14px; }.analyst-head p { color: var(--slate); font-size: 10px; margin-top: 3px; }
.analyst-card ul { margin: 0; padding-left: 18px; color: #4b5565; font-size: 11px; line-height: 1.7; }

.feed-panel { grid-column: 3; grid-row: 2; position: sticky; top: 72px; height: calc(100vh - 72px); overflow: auto; background: #fff; border-left: 1px solid var(--line); padding: 18px; }
.feed-panel .card-title { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.feed-panel .card-title > span { color: var(--green); font-weight: 800; }.feed-panel .live-dot { width: 7px; height: 7px; }
.feed-list { display: grid; }
.feed-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 13px 0; border-bottom: 1px solid #eef0f3; }
.feed-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff4d1; color: #926400; font-weight: 900; font-size: 11px; }
.feed-item strong, .feed-item small, .feed-item time { display: block; }
.feed-item strong { font-size: 10px; line-height: 1.4; }
.feed-item small { color: var(--slate); font-size: 9px; margin-top: 3px; }
.feed-item time { color: #99a1ae; font-size: 8px; margin-top: 4px; }
.feed-intel { margin: 18px -18px -18px; padding: 18px; background: #fafbfc; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.feed-intel h3 { margin: 0 0 3px; font-size: 13px; }.feed-intel span { display: flex; justify-content: space-between; color: var(--slate); font-size: 10px; }.feed-intel b { color: var(--ink); }

.table-card { padding: 0; overflow: hidden; }
.table-toolbar { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.table-toolbar input { flex: 1; min-width: 180px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; outline: none; }
.table-toolbar input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.12); }
.table-toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 34px 0 12px; background: white; }
.table-toolbar > span { color: var(--green); font-size: 12px; font-weight: 800; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 15px; border-bottom: 1px solid #edf0f3; text-align: left; font-size: 12px; }
th { position: sticky; top: 0; background: #fafbfc; color: var(--slate); font-size: 10px; letter-spacing: .035em; }
tbody tr:hover { background: #fffcf3; }
.severity-badge, .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 9px; font-size: 9px; font-weight: 850; background: #edf4ff; color: var(--blue); }
.severity-badge.critical { background: #ffeaeb; color: var(--red); }.severity-badge.high { background: #fff0e3; color: #bd5b08; }.severity-badge.medium { background: #fff5ce; color: #846000; }.severity-badge.low { background: #eaf2ff; color: var(--blue); }
.status-badge.online { background: #e5f7ef; color: var(--green); }.status-badge.offline { background: #eef0f3; color: #697386; }
.asset-host-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }.asset-host-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-empty { text-align: center; color: var(--slate); padding: 50px !important; }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 13px; }
.threat-card { min-height: 160px; }
.threat-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.threat-card h2 { margin: 0; font-size: 14px; }.threat-card p { color: var(--slate); font-size: 11px; line-height: 1.6; }.threat-card footer { display: flex; gap: 8px; flex-wrap: wrap; }.threat-card footer span { background: var(--cloud); border-radius: 8px; padding: 5px 8px; color: #596273; font-size: 9px; }
.analyst-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-summary { background: linear-gradient(145deg, #171c26, #2b3445); color: white; min-height: 330px; }
.ai-summary h2 { margin-top: 24px; }.ai-summary ul { padding-left: 20px; color: #e3e7ee; line-height: 1.8; }
.guardrail-card h2 { margin-top: 0; }.guardrail-card p { color: var(--slate); line-height: 1.7; }
.guardrail-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }.guardrail-flow span { padding: 10px 12px; background: #fff7d7; border: 1px solid #ffe27b; border-radius: 10px; font-size: 11px; font-weight: 800; }.guardrail-flow b { color: #a66f00; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: start; gap: 14px; }.settings-card { max-width: 720px; display: grid; gap: 15px; }.settings-card h2 { margin: 0; }.settings-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }.settings-card input:not([type="checkbox"]):not([type="range"]) { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }.settings-card p { color: var(--slate); font-size: 11px; line-height: 1.6; }.settings-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.settings-card-heading .eyebrow { margin: 0 0 4px; font-size: 9px; }.settings-card-heading h2 { font-size: 16px; }.settings-card-heading output { padding: 6px 8px; border-radius: 8px; background: #fff5ce; color: var(--gold-dark); font-size: 11px; font-weight: 850; }.settings-font-control { display: grid; grid-template-columns: 15px minmax(0, 1fr) 20px; align-items: center; gap: 9px; }.settings-font-control input { width: 100%; height: auto; padding: 0; accent-color: var(--yellow); cursor: pointer; }.font-size-mark { color: #657080; font-weight: 800; text-align: center; }.font-size-mark.small { font-size: 10px; }.font-size-mark.large { font-size: 18px; }.settings-font-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.settings-font-presets button { padding: 8px 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #657080; font-size: 10px; font-weight: 800; cursor: pointer; }.settings-font-presets button:hover, .settings-font-presets button.active { border-color: #e4ba28; background: #fffaf0; color: var(--gold-dark); }.settings-display-card p { margin-bottom: 0; }
.settings-font-presets { grid-template-columns: repeat(4, 1fr); }
.settings-alias-card { grid-column: 1 / -1; width: 100%; max-width: none; }.settings-alias-lead { margin: 0; }.settings-scope-chip { padding: 6px 9px; border-radius: 999px; background: #eef8f4; color: var(--green); font-size: 9px; font-weight: 850; }.ip-alias-form { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr) auto; align-items: end; gap: 10px; }.ip-alias-form .button-primary { min-height: 44px; }.ip-alias-list { display: grid; gap: 7px; }.ip-alias-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--slate); font-size: 11px; text-align: center; }.ip-alias-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fafbfc; }.ip-alias-identity { min-width: 0; display: grid; gap: 2px; }.ip-alias-identity strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.ip-alias-identity small { color: var(--slate); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }.ip-alias-remove { border: 0; background: transparent; color: var(--red); font-size: 10px; font-weight: 850; cursor: pointer; }
.button-primary { border: 0; border-radius: 10px; padding: 11px 16px; background: var(--yellow); font-weight: 850; cursor: pointer; }
.managed-user-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); align-items: start; gap: 14px; }
.managed-user-table-card { min-width: 0; }
.managed-user-form { display: grid; gap: 14px; position: sticky; top: 86px; }
.managed-user-form h2 { margin: 0; }
.managed-user-form label { display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 800; }
.managed-user-form input:not([type="checkbox"]), .managed-user-form select { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.managed-user-form input:focus, .managed-user-form select:focus { outline: 0; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.12); }
.managed-user-form .checkbox-row { display: flex; align-items: center; }
.managed-user-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.managed-user-identity { display: grid; gap: 3px; min-width: 190px; }
.managed-user-identity strong { color: var(--ink); font-size: 12px; }
.managed-user-identity small { color: var(--slate); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.managed-user-status, .managed-user-role { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.managed-user-status.enabled { background: #eaf8f2; color: var(--green); }
.managed-user-status.disabled { background: #fff0ef; color: var(--red); }
.managed-user-role { background: #fff5ce; color: var(--gold-dark); }
.managed-user-tenants { display: flex; flex-wrap: wrap; gap: 4px; min-width: 130px; }
.managed-user-tenants span { padding: 4px 6px; border-radius: 6px; background: var(--cloud); color: var(--slate); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.managed-user-empty { padding: 34px 16px !important; color: var(--slate); text-align: center; }
.button-primary:disabled, .button-secondary:disabled, .table-action:disabled { opacity: .55; cursor: wait; }
.button-secondary { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; color: var(--gold-dark); font-size: 11px; font-weight: 850; cursor: pointer; }
.button-secondary:hover { border-color: var(--yellow); background: #fffaf0; }
.llm-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 14px; margin-bottom: 14px; }
.llm-route-card, .llm-create-card { display: grid; gap: 15px; }
.llm-route-card .card-title, .llm-create-card .card-title { margin-bottom: 2px; }
.route-diagram { display: grid; grid-template-columns: minmax(90px, 1fr) auto minmax(135px, 1.35fr) auto minmax(90px, 1fr); align-items: center; gap: 10px; padding: 18px 0; }
.route-diagram > b { color: var(--yellow); font-size: 20px; text-align: center; }
.route-node { min-height: 92px; display: grid; align-content: center; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--cloud); }
.route-node.central { border-color: #ffdf67; background: linear-gradient(145deg, #fff8dc, #fff); box-shadow: 0 8px 20px rgba(190,136,0,.09); }
.route-node.upstream { background: #f0f6ff; border-color: #cfe0fb; }
.route-node span { color: var(--gold-dark); font-size: 9px; font-weight: 900; letter-spacing: .08em; }.route-node strong { font-size: 12px; }.route-node small { color: var(--slate); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--slate); font-size: 11px; }.llm-facts span { display: grid; gap: 3px; }.llm-facts b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llm-create-card label { display: grid; gap: 7px; color: #384152; font-size: 12px; font-weight: 750; }.llm-create-card input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }.llm-create-card input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.12); }
.form-note { margin: 0; color: var(--slate); font-size: 10px; line-height: 1.6; }.llm-token-card .table-toolbar { justify-content: space-between; }.llm-token-card .table-toolbar > div { display: grid; gap: 3px; }.llm-token-card .table-toolbar small { color: var(--slate); font-size: 10px; }.llm-token-card .table-toolbar > span { color: var(--slate); }.llm-token-identity { min-width: 220px; }.llm-token-name { display: block; }.token-prefix { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--gold-dark); font-size: 11px; }.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }.table-action { border: 1px solid currentColor; border-radius: 7px; background: #fff; color: var(--red); font-size: 11px; font-weight: 850; cursor: pointer; padding: 5px 7px; }.table-action:hover { background: var(--cloud); }.table-action-view { color: var(--gold-dark); }.table-action-edit { color: var(--blue); }.table-action-danger { color: var(--red); }.table-action-reissue { color: #7d5b00; }.token-edit-actions { display: flex; justify-content: flex-end; gap: 9px; }
.token-reveal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(10,15,23,.58); backdrop-filter: blur(8px); }.token-reveal-card { position: relative; width: min(560px, 100%); display: grid; gap: 13px; padding: 28px; border: 1px solid #ffe27b; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }.token-reveal-card .eyebrow { margin: 0; }.token-reveal-card h2 { margin: 0; }.token-reveal-card p:not(.eyebrow) { margin: 0; color: var(--slate); font-size: 12px; }.token-reveal-card label { display: grid; gap: 7px; color: #384152; font-size: 12px; font-weight: 750; }.token-reveal-card input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }.token-reveal-card code { display: block; overflow: auto; padding: 13px; border-radius: 9px; background: #171c26; color: #ffe27b; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; }.token-close { position: absolute; top: 11px; right: 13px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--cloud); color: var(--slate); font-size: 20px; cursor: pointer; }

/* Explainable AI Analyst */
.analyst-page-heading { align-items: center; }
.analyst-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.analyst-heading-actions .count-pill { color: var(--green); }
.analyst-primary-action { min-width: 172px; box-shadow: 0 10px 24px rgba(168,118,0,.18); }
.analyst-command-center { display: grid; grid-template-columns: minmax(265px, 1.15fr) minmax(430px, 1.8fr) minmax(180px, .65fr); align-items: center; gap: 20px; margin-bottom: 14px; padding: 18px; border-color: #303845; background: #171c26; color: #fff; box-shadow: 0 14px 30px rgba(17,23,33,.14); }
.analyst-agent-intro { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; }
.analyst-agent-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #ffd84d; border-radius: 14px; background: #242b36; color: var(--yellow); font: 900 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.04em; box-shadow: inset 0 0 0 4px rgba(255,196,0,.06); }
.analyst-agent-intro .eyebrow { margin: 0 0 4px; color: var(--yellow); font-size: 8px; }
.analyst-agent-intro h2 { margin: 0; overflow: hidden; color: #fff; font-size: 15px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.analyst-agent-intro p:last-child { margin: 5px 0 0; color: #aeb7c5; font-size: 9px; line-height: 1.5; }
.analyst-investigation-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.analyst-investigation-flow > span { min-width: 0; display: grid; gap: 3px; padding: 9px 8px; border: 1px solid #343d4b; border-radius: 10px; background: #202733; color: #9fa9b8; }
.analyst-investigation-flow b { color: #6f7a8a; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.analyst-investigation-flow strong { overflow: hidden; color: #d6dce5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analyst-investigation-flow small { overflow: hidden; color: #818c9c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.analyst-investigation-flow > span.complete { border-color: #315e4d; background: #1c302a; }.analyst-investigation-flow > span.complete b, .analyst-investigation-flow > span.complete strong { color: #72d5a9; }
.analyst-investigation-flow > span.active { border-color: #e0b52c; background: #332b17; box-shadow: 0 0 0 2px rgba(255,196,0,.08); }.analyst-investigation-flow > span.active b, .analyst-investigation-flow > span.active strong { color: var(--yellow); }
.analyst-control-boundary { min-width: 0; display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #394454; border-radius: 11px; background: #202733; }
.analyst-control-boundary small { color: #7f8a9b; font-size: 7px; font-weight: 900; letter-spacing: .1em; }.analyst-control-boundary strong { color: #fff; font-size: 10px; }.analyst-control-boundary span { color: #72d5a9; font-size: 8px; line-height: 1.45; }
.analyst-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.analyst-architecture { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-color: #e5ce73; background: linear-gradient(90deg, #fffdf4, #fff); }.analyst-architecture span { display: grid; gap: 2px; min-width: 110px; }.analyst-architecture b { font-size: 10px; }.analyst-architecture small { color: var(--slate); font-size: 8px; }.analyst-architecture i { color: #bd9300; font-style: normal; }.analyst-architecture em { margin-left: auto; color: var(--green); font-size: 8px; font-style: normal; font-weight: 850; }
.analyst-feedback-card { padding: 15px 17px; }.analyst-feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; }.analyst-feedback-actions button { min-width: 120px; }
.analyst-kpi { display: flex; align-items: center; gap: 11px; padding: 13px 15px; }
.analyst-kpi > div { min-width: 0; display: grid; gap: 2px; }
.analyst-kpi small { color: var(--slate); font-size: 10px; white-space: nowrap; }
.analyst-kpi b { font-size: 21px; letter-spacing: -.03em; }
.kpi-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #fff4cc; color: #9a6a00; font-size: 19px; font-weight: 850; }
.kpi-icon.amber { background: #fff0e1; color: var(--orange); }.kpi-icon.blue { background: #eaf2ff; color: var(--blue); }.kpi-icon.green { background: #e5f7ef; color: var(--green); }
.analyst-safety-kpi { background: linear-gradient(105deg, #fff, #f8fffb); }.analyst-safety-kpi .kpi-note { margin-left: auto; color: var(--green); font-size: 9px; white-space: nowrap; }
.analyst-workbench { display: grid; grid-template-columns: minmax(235px, .66fr) minmax(0, 2.34fr); gap: 14px; align-items: start; }
.analyst-inbox { position: sticky; top: 88px; padding: 0; overflow: hidden; }
.analyst-inbox .card-title { padding: 15px 16px 11px; border-bottom: 1px solid var(--line); }.analyst-inbox .card-title > span { color: var(--gold-dark); }
.analyst-filter-row { display: grid; grid-template-columns: 1fr 100px; gap: 7px; padding: 11px 12px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.analyst-filter-row input, .analyst-filter-row select { min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 9px; outline: none; color: var(--ink); font-size: 10px; }.analyst-filter-row input:focus, .analyst-filter-row select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.12); }
.analyst-incident-list { max-height: calc(100vh - 250px); overflow: auto; }
.analyst-incident-item { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px; border: 0; border-bottom: 1px solid #eef0f3; background: #fff; text-align: left; cursor: pointer; }.analyst-incident-item:hover { background: #fffaf0; }.analyst-incident-item.active { background: linear-gradient(105deg, #fff6d5, #fffdf7); box-shadow: inset 3px 0 var(--yellow); }
.analyst-incident-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }.analyst-incident-marker.critical { background: var(--red); }.analyst-incident-marker.high { background: var(--orange); }.analyst-incident-marker.medium { background: var(--yellow); }
.analyst-incident-copy { min-width: 0; }.analyst-incident-copy b, .analyst-incident-copy small, .analyst-incident-copy time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.analyst-incident-copy b { font-size: 10px; }.analyst-incident-copy small { margin-top: 3px; color: var(--slate); font-size: 8px; }.analyst-incident-copy time { margin-top: 4px; color: #9aa2ae; font-size: 8px; }
.analyst-incident-item .severity-badge { padding: 4px 5px; font-size: 8px; }
.analyst-main { min-width: 0; display: grid; gap: 14px; }
.analyst-verdict-card { position: relative; overflow: hidden; padding: 20px; background: radial-gradient(circle at 92% 12%, rgba(255,196,0,.16), transparent 23%), linear-gradient(135deg, #fff, #fffdf5); border-color: #e8c84f; border-top-width: 3px; box-shadow: 0 14px 30px rgba(139,99,0,.09); }
.analyst-verdict-card::after { content: ""; position: absolute; right: -30px; bottom: -52px; width: 170px; height: 170px; border: 1px solid rgba(255,196,0,.22); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,196,0,.04), 0 0 0 38px rgba(255,196,0,.025); pointer-events: none; }
.analyst-verdict-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }.analyst-verdict-head .eyebrow { margin: 0 0 6px; font-size: 9px; }.analyst-verdict-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }.analyst-verdict-head p { margin: 5px 0 0; color: var(--slate); font-size: 11px; }
.analyst-verdict-badge { min-width: 100px; padding: 10px 12px; border-radius: 11px; background: #edf4ff; color: var(--blue); text-align: center; font-size: 11px; font-weight: 900; }.analyst-verdict-badge.critical { background: #ffeaeb; color: var(--red); }.analyst-verdict-badge.high { background: #fff0e3; color: #bd5b08; }.analyst-verdict-badge.medium { background: #fff5ce; color: #846000; }.analyst-verdict-badge.low { background: #eaf2ff; color: var(--blue); }
.analyst-verdict-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(210px, .78fr) minmax(0, 1.5fr); gap: 22px; align-items: center; margin-top: 19px; padding-top: 17px; border-top: 1px solid rgba(213,184,85,.28); }
.analyst-confidence { display: flex; align-items: center; gap: 13px; }.confidence-ring { --confidence: 0%; width: 78px; height: 78px; display: grid; place-items: center; position: relative; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--yellow) var(--confidence), #edf0f3 0); }.confidence-ring[data-confidence-level="1"] { --confidence: 10%; }.confidence-ring[data-confidence-level="2"] { --confidence: 20%; }.confidence-ring[data-confidence-level="3"] { --confidence: 30%; }.confidence-ring[data-confidence-level="4"] { --confidence: 40%; }.confidence-ring[data-confidence-level="5"] { --confidence: 50%; }.confidence-ring[data-confidence-level="6"] { --confidence: 60%; }.confidence-ring[data-confidence-level="7"] { --confidence: 70%; }.confidence-ring[data-confidence-level="8"] { --confidence: 80%; }.confidence-ring[data-confidence-level="9"] { --confidence: 90%; }.confidence-ring[data-confidence-level="10"] { --confidence: 100%; }.confidence-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fffdf4; }.confidence-ring strong, .confidence-ring small { position: relative; z-index: 1; display: block; text-align: center; }.confidence-ring strong { font-size: 16px; }.confidence-ring small { margin-top: -2px; color: var(--slate); font-size: 7px; }.analyst-confidence > div:last-child { display: grid; gap: 4px; }.analyst-confidence b { font-size: 12px; }.analyst-confidence span { color: var(--slate); font-size: 9px; line-height: 1.5; }
.fact-label { color: var(--gold-dark); font-size: 9px; letter-spacing: .12em; font-weight: 900; }.analyst-summary-copy p { max-width: 620px; margin: 5px 0 0; color: #485365; font-size: 12px; line-height: 1.7; }
.analyst-brief-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.analyst-brief-grid > div { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 11px; border: 1px solid #eadfb8; border-radius: 10px; background: rgba(255,255,255,.82); }
.analyst-brief-grid > div.next-step { border-color: #d9c15f; background: #fff9df; }
.analyst-brief-grid span { color: #9a7b24; font-size: 7px; font-weight: 900; letter-spacing: .1em; }.analyst-brief-grid b { overflow: hidden; color: #313b4a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.analyst-brief-grid small { color: var(--slate); font-size: 8px; line-height: 1.45; }
.analyst-verdict-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }.analyst-verdict-meta span { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.72); border: 1px solid rgba(221,207,156,.72); color: var(--slate); font-size: 9px; }.analyst-verdict-meta span:first-child { color: var(--gold-dark); font-weight: 800; }
.analyst-copilot-card { padding: 0; overflow: hidden; border-color: #e1c85d; }
.analyst-copilot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 17px 12px; border-bottom: 1px solid #ece2bb; background: #fffdf4; }
.analyst-copilot-head .eyebrow { margin: 0 0 4px; font-size: 8px; }.analyst-copilot-head h2 { margin: 0; font-size: 15px; }.analyst-copilot-head p:last-child { margin: 4px 0 0; color: var(--slate); font-size: 9px; }
.analyst-copilot-head > span { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #bfe4d1; border-radius: 8px; background: #f4fcf8; color: var(--green); font-size: 8px; font-weight: 850; }
.analyst-question-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 16px 0; }
.analyst-question-chips button { padding: 7px 9px; border: 1px solid #dfe3e8; border-radius: 8px; background: #fff; color: #536072; font-size: 9px; font-weight: 750; cursor: pointer; }.analyst-question-chips button:hover, .analyst-question-chips button:focus-visible { border-color: #e1bd35; background: #fffaf0; color: #7e5a00; outline: none; }
.analyst-investigation-answer { display: grid; gap: 5px; margin: 10px 16px; padding: 13px 14px; border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; background: #f7f9fb; }
.analyst-investigation-answer > span { color: var(--gold-dark); font-size: 8px; font-weight: 900; letter-spacing: .09em; }.analyst-investigation-answer p { margin: 0; color: #394657; font-size: 11px; line-height: 1.65; }.analyst-investigation-answer small { color: var(--slate); font-size: 8px; line-height: 1.5; }
.analyst-question-form { display: grid; gap: 6px; padding: 0 16px 15px; }.analyst-question-form label { color: #566276; font-size: 9px; font-weight: 800; }.analyst-question-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }.analyst-question-form input { min-width: 0; height: 39px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 9px; color: var(--ink); outline: none; }.analyst-question-form input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.12); }.analyst-question-form button { padding: 9px 15px; }
.analyst-detail-grid, .analyst-lower-grid, .analyst-unknown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.analyst-detail-card, .analyst-evidence-card, .analyst-response-card, .analyst-unknown-grid .card { min-height: 220px; }.analyst-detail-card .card-title, .analyst-evidence-card .card-title, .analyst-response-card .card-title, .analyst-unknown-grid .card-title { margin-bottom: 10px; }.analyst-detail-card .card-title > span, .analyst-evidence-card .card-title > span, .analyst-response-card .card-title > span, .analyst-unknown-grid .card-title > span { font-size: 9px; }
.analyst-chain { display: grid; }.analyst-chain-step { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 9px; min-height: 49px; }.chain-node { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #e8ca64; border-radius: 9px; background: #fff7d4; color: var(--gold-dark); font-size: 9px; font-weight: 900; }.chain-node.hop { background: #eaf2ff; border-color: #c9dbf8; color: var(--blue); }.chain-node.process { background: #f3ecff; border-color: #dcc8fb; color: #7954ad; }.chain-node.service { background: #e5f7ef; border-color: #bce6d0; color: var(--green); }.analyst-chain-copy { min-width: 0; padding-bottom: 12px; }.analyst-chain-copy b { display: block; font-size: 11px; }.analyst-chain-copy p { margin: 3px 0 4px; color: var(--slate); font-size: 10px; line-height: 1.45; }.citation-row { color: var(--gold-dark); font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }.chain-line { position: absolute; left: 13px; top: 27px; bottom: 0; width: 1px; background: #e8ca64; }
.analyst-signals { display: grid; gap: 8px; }.analyst-signal { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 10px; background: #fafbfc; border: 1px solid #edf0f3; }.analyst-signal > span { align-self: start; padding: 4px 3px; border-radius: 6px; text-align: center; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }.signal-positive { background: #e5f7ef; color: var(--green); }.signal-negative { background: #ffeaeb; color: var(--red); }.analyst-signal b { display: block; font-size: 10px; }.analyst-signal p { margin: 2px 0 3px; color: var(--slate); font-size: 9px; line-height: 1.45; }
.analyst-lower-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }.analyst-evidence-list { display: grid; gap: 7px; max-height: 310px; overflow: auto; }.analyst-evidence-row { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 9px; background: #fafbfc; border: 1px solid #edf0f3; }.evidence-ref { align-self: start; padding: 4px 5px; border-radius: 6px; background: #fff4cc; color: var(--gold-dark); font-size: 9px; }.analyst-evidence-row b { display: block; font-size: 10px; }.analyst-evidence-row p { margin: 2px 0; color: #4c5868; font-size: 9px; line-height: 1.45; }.analyst-evidence-row small { color: var(--slate); font-size: 8px; }
.approval-lock { color: var(--orange); font-style: normal; }.response-intro { margin: 0 0 11px; color: var(--slate); font-size: 10px; line-height: 1.55; }.analyst-recommendations { display: grid; gap: 9px; }.analyst-recommendation { padding: 10px; border: 1px solid #f0df9b; border-radius: 11px; background: #fffdf5; }.analyst-recommendation.approved { border-color: #bce6d0; background: #f7fffa; }.analyst-recommendation.dismissed { opacity: .55; }.recommendation-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }.recommendation-type { padding: 4px 6px; border-radius: 6px; background: #171c26; color: var(--yellow); font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; }.recommendation-head b { flex: 1; font-size: 10px; }.recommendation-status { color: var(--orange); font-size: 8px; font-weight: 850; }.recommendation-status.approved { color: var(--green); }.recommendation-status.dismissed { color: var(--slate); }.recommendation-body p { margin: 8px 0 3px; color: #4c5868; font-size: 9px; line-height: 1.45; }.recommendation-body small { display: block; color: var(--slate); font-size: 8px; line-height: 1.45; }.recommendation-actions { display: flex; gap: 6px; margin-top: 9px; }.recommendation-actions button { padding: 7px 9px; font-size: 9px; }
.analyst-unknown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.analyst-plain-list { display: grid; gap: 8px; }.analyst-plain-item { padding: 8px 9px; border-left: 3px solid #e8ca64; background: #fafbfc; border-radius: 0 8px 8px 0; }.analyst-plain-item b { display: block; font-size: 10px; }.analyst-plain-item p { margin: 3px 0; color: var(--slate); font-size: 9px; line-height: 1.45; }.analyst-plain-item small { color: var(--orange); font-size: 8px; }
.forensics-heading, .forensics-heading-actions, .forensics-panel-title, .forensics-purpose-row, .forensics-payload-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.forensics-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
#captureHealth[data-tone="healthy"] { border-color: #9bd5b8; background: #eefaf4; color: #147044; }
#captureHealth[data-tone="degraded"] { border-color: #efc28c; background: #fff4e7; color: #9b4b08; }
#captureHealth[data-tone="unknown"], #captureHealth[data-tone="loading"] { color: var(--slate); }
.forensics-filter-card { display: grid; gap: 13px; padding: 16px; }
.forensics-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.forensics-filter-grid label, .forensics-purpose-row label, .forensics-payload-actions label { display: grid; min-width: 0; gap: 5px; color: #556174; font-size: 9px; font-weight: 800; }
.forensics-filter-grid input, .forensics-purpose-row input, .forensics-payload-actions select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #dfe3e8; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.forensics-filter-grid input:focus, .forensics-purpose-row input:focus, .forensics-payload-actions select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.13); }
.forensics-purpose-row label { flex: 1 1 420px; }
.forensics-purpose-row button { flex: 0 0 auto; align-self: end; }
.forensics-filter-card .form-note { margin: 0; color: var(--slate); font-size: 9px; line-height: 1.55; }
.forensics-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(390px, 1.18fr); gap: 14px; align-items: start; }
.forensics-session-panel, .forensics-preview-panel { min-width: 0; padding: 16px; }
.forensics-panel-title { align-items: flex-start; padding-bottom: 11px; border-bottom: 1px solid #edf0f3; }
.forensics-panel-title .eyebrow { margin: 0 0 4px; font-size: 8px; }
.forensics-panel-title h2 { margin: 0; font-size: 15px; }
.forensics-panel-title > span { color: var(--slate); font-size: 9px; }
.forensics-session-list { display: grid; gap: 7px; max-height: 610px; margin-top: 10px; overflow: auto; }
.forensics-session-item { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid #e2e6eb; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.forensics-session-item:hover, .forensics-session-item:focus-visible { border-color: #d2ad22; background: #fffaf0; outline: none; }
.forensics-session-item.active { border-color: #d2ad22; background: linear-gradient(105deg, #fff7d9, #fffdf7); box-shadow: inset 3px 0 var(--yellow); }
.forensics-session-route, .forensics-session-route strong, .forensics-session-route small, .forensics-session-stats, .forensics-session-stats b, .forensics-session-stats small { display: block; min-width: 0; }
.forensics-session-route strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.forensics-session-route small { margin-top: 4px; overflow: hidden; color: var(--slate); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.forensics-session-stats { text-align: right; }
.forensics-session-stats b { font-size: 10px; }
.forensics-session-stats small { margin-top: 3px; color: var(--slate); font-size: 7px; }
.forensics-session-stats small.payload-ready { color: var(--green); font-weight: 850; }
.forensics-preview { min-height: 250px; margin-top: 10px; }
.forensics-fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid #edf0f3; border-radius: 10px; overflow: hidden; }
.forensics-fact-list > div { min-width: 0; padding: 9px 10px; border-bottom: 1px solid #edf0f3; background: #fafbfc; }
.forensics-fact-list > div:nth-child(odd) { border-right: 1px solid #edf0f3; }
.forensics-fact-list dt { color: var(--slate); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.forensics-fact-list dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #344052; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.45; }
.forensics-preview-note { margin: 10px 0 0; padding: 10px 11px; border-left: 3px solid var(--yellow); border-radius: 0 8px 8px 0; background: #fffaf0; color: #596576; font-size: 9px; line-height: 1.55; }
.forensics-payload-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.forensics-payload-actions label { grid-template-columns: auto 110px; align-items: center; }
.forensics-payload-actions button:disabled { cursor: wait; opacity: .58; }

.empty-state { min-height: 90px; display: grid; place-items: center; color: var(--slate); font-size: 11px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 13px 16px; border-radius: 11px; background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .22s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1380px) {
  .dashboard-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .topbar { grid-template-columns: 218px minmax(0,1fr) auto; }
  .feed-panel { display: none; }
  .top-nav button { padding: 0 11px; }
  .overview-grid { grid-template-columns: minmax(205px,.72fr) minmax(390px,1.5fr) minmax(250px,1fr); }
}

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(470px, .9fr); }
  .login-story { padding: 50px 32px; }
  .story-copy, .promise-list { max-width: 440px; }
  .login-story h1 { font-size: clamp(44px, 6vw, 64px); }
  .story-metrics { display: none; }
  .dashboard-shell { grid-template-columns: 82px minmax(0,1fr); }
  .topbar { grid-template-columns: 82px minmax(0,1fr) auto; padding: 0 14px; }
  .top-logo { width: 62px; object-fit: cover; object-position: left; }
  .sidebar nav { padding: 14px 9px; }
  .sidebar nav button { justify-content: center; padding: 12px 8px; font-size: 0; }
  .sidebar nav button > span { font-size: 13px; }
  .sidebar nav button > b { display: none; }
  .sidebar-guardian { min-height: 180px; }
  .sidebar-guardian > div { display: none; }
  .top-nav [data-nav="assets"], .top-nav [data-nav="topology"], .top-nav [data-nav="customers"], .top-nav [data-nav="reports"], .top-nav [data-nav="analyst"], .top-nav [data-nav="llm"] { display: none; }
  .overview-grid { grid-template-columns: 1fr 1.5fr; }
  .active-card { grid-column: 1 / -1; }
  .severity-card { grid-column: 1; }
  .trend-card { grid-column: 2; }
  .assets-card { grid-column: 1; }
  .forensics-layout { grid-template-columns: 1fr; }
  .forensics-session-list { max-height: 390px; }
}

@media (min-width: 781px) and (max-height: 850px) {
  .login-story { padding-block: 28px; }
  .story-logo { width: min(220px, 55%); margin-bottom: 12px; }
  .story-status { min-height: 29px; font-size: 9px; }
  .login-story > .eyebrow { margin-block: 12px 7px; }
  .login-story h1 { font-size: clamp(42px, 4.7vw, 66px); }
  .story-copy { margin-block: 14px 16px; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.55; }
  .promise-list { gap: 7px; }
  .promise-list > li { grid-template-columns: 40px minmax(0,1fr) auto; gap: 11px; padding: 8px 12px; }
  .promise-list > li > span { width: 37px; height: 37px; }
  .promise-list strong { font-size: 13px; }
  .promise-list small { font-size: 11px; }
  .story-metrics { margin-top: 12px; padding-top: 12px; }
  .story-metrics b { font-size: 15px; }
  .story-metrics small { font-size: 9px; }
  .login-panel { padding-block: 18px; }
  .login-card { padding: 24px 34px; }
  .access-status { margin-bottom: 10px; padding-bottom: 9px; }
  .login-logo { width: min(230px, 60%); }
  .login-tagline { margin-bottom: 14px; font-size: 11px; }
  .login-heading { margin-bottom: 10px; }
  .login-heading .eyebrow { margin-top: 10px; }
  .login-heading h2 { font-size: 27px; }
  .login-heading p:last-child { font-size: 12px; }
  .field { gap: 6px; margin-top: 10px; font-size: 12px; }
  .input-wrap input { height: 48px; font-size: 12px; }
  .login-options { margin-block: 10px; font-size: 11px; }
  .form-message { min-height: 16px; margin-bottom: 5px; }
  .primary-login { height: 50px; font-size: 12px; }
  .or { height: 32px; }
  .nt-account { height: 44px; }
  .login-foot { margin: 16px 0 -5px; font-size: 8px; }
}

@media (max-width: 780px) {
  .login-shell { display: block; min-height: 100dvh; overflow: auto; background: #eef1f5; }
  .login-shell::before { position: fixed; inset: -2%; background-position: 21% center; filter: saturate(1.18) contrast(1.08) brightness(.96); transform: scale(1.04); animation: none; }
  .login-shell::after { position: fixed; background: linear-gradient(180deg, rgba(8,13,21,.8) 0%, rgba(14,20,30,.63) 19%, rgba(229,235,242,.9) 42%, #eef2f6 68%); }
  .login-atmosphere { position: fixed; }
  .cyber-grid { inset: 0; opacity: .08; }
  .orbit, .signal-two, .signal-three { display: none; }
  .signal-one { left: 82%; top: 8%; }
  .login-story { position: absolute; z-index: 4; top: 19px; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: none; padding: 0; animation: story-enter .7s ease both; }
  .story-logo { width: min(184px, 52vw); margin: 0; padding: 5px 9px; border-radius: 11px; }
  .story-status { min-height: 27px; font-size: 0; padding: 0 9px; }
  .story-status span { font-size: 8px; }
  .story-status b { display: none; }
  .login-story > .eyebrow, .login-story h1, .story-copy, .promise-list, .story-metrics { display: none; }
  .login-panel { min-height: 100dvh; place-items: start center; padding: 92px 13px 24px; animation-duration: .75s; }
  .login-panel::before { position: fixed; top: 25%; width: 115%; }
  .login-card { width: min(520px,100%); padding: 23px 19px 27px; border-radius: 23px; transform: none; }
  .login-card:hover { transform: none; }
  .card-edge { inset-block: 14px; }
  .access-status { margin-bottom: 14px; }
  .login-logo { width: min(235px,72%); }
  .login-tagline { margin-bottom: 19px; font-size: 10px; }
  .login-heading { margin-bottom: 14px; }
  .login-heading h2 { font-size: 25px; }
  .login-heading p:last-child { font-size: 10px; line-height: 1.55; }
  .field { margin-top: 13px; }
  .input-wrap input { height: 51px; font-size: 12px; }
  .login-options { margin: 14px 0; font-size: 10px; }
  .primary-login { height: 52px; font-size: 10px; }
  .login-foot { margin-top: 19px; }
  .dashboard-shell { display: block; padding-top: 64px; }
  .topbar { height: 64px; position: fixed; inset: 0 0 auto; grid-template-columns: 42px 1fr auto; padding: 0 10px; }
  .mobile-only { display: grid; }
  .top-logo { width: 148px; height: 48px; object-fit: contain; }
  .top-nav, .operator > .live-dot, .operator > div, #refreshButton { display: none; }
  .sidebar { position: fixed; z-index: 40; top: 64px; bottom: 0; left: 0; width: 242px; height: auto; transform: translateX(-105%); transition: .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar nav button { justify-content: flex-start; padding: 12px 13px; font-size: 13px; }
  .sidebar nav button > span { font-size: 13px; }.sidebar nav button > b { display: inline-block; }
  .sidebar-guardian { min-height: 250px; }.sidebar-guardian > div { display: block; }
  .workspace { padding: 17px 12px 32px; }
  .page-heading { align-items: flex-end; }
  .page-heading h1 { font-size: 22px; }
  .overview-grid { display: grid; grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .managed-user-layout { grid-template-columns: 1fr; }
  .managed-user-form { position: static; }
  .ip-alias-form { grid-template-columns: 1fr; }
  .posture-card, .attack-card, .active-card, .assets-card, .trend-card, .severity-card, .analyst-card { grid-column: 1; }
  .analyst-card { grid-template-columns: 1fr; }.analyst-card > button { justify-self: start; }
  .attack-visual { height: 170px; }
  .analyst-layout { grid-template-columns: 1fr; }
  .llm-overview-grid { grid-template-columns: 1fr; }
  .route-diagram { gap: 6px; }
  .route-node { padding: 9px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }.table-toolbar input, .table-toolbar select { width: 100%; }
  .forensics-heading, .forensics-purpose-row { align-items: stretch; flex-direction: column; }
  .forensics-heading-actions { justify-content: flex-start; }
  .forensics-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forensics-purpose-row label { flex-basis: auto; }
  .forensics-purpose-row button { width: 100%; }
}

@media (max-width: 390px) {
  .story-status span { display: none; }
  .story-status::after { content: "ONLINE"; font-size: 8px; color: #e7ebf1; }
  .login-panel { padding-inline: 9px; }
  .login-card { padding-inline: 16px; }
  .access-status b { display: none; }
  .login-options { align-items: flex-start; }
  .login-foot span:last-of-type, .login-foot span:last-of-type + * { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 1120px) {
  .analyst-workbench { grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr); }
  .analyst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analyst-command-center { grid-template-columns: minmax(250px, .9fr) minmax(420px, 1.6fr); }.analyst-control-boundary { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; }.analyst-control-boundary span { text-align: right; }
}

@media (max-width: 820px) {
  .analyst-workbench, .analyst-detail-grid, .analyst-lower-grid, .analyst-unknown-grid { grid-template-columns: 1fr; }
  .analyst-command-center { grid-template-columns: 1fr; }.analyst-investigation-flow { order: 3; }.analyst-control-boundary { grid-column: auto; grid-template-columns: 1fr; }.analyst-control-boundary span { text-align: left; }
  .analyst-inbox { position: static; }
  .analyst-incident-list { max-height: 300px; }
  .analyst-verdict-grid { grid-template-columns: 1fr; gap: 14px; }
  .analyst-brief-grid { grid-template-columns: 1fr; }
  .analyst-safety-kpi .kpi-note { display: none; }
}

@media (max-width: 520px) {
  .analyst-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .analyst-kpi { padding: 10px; }
  .analyst-kpi small { white-space: normal; line-height: 1.3; }
  .analyst-kpi b { font-size: 17px; }
  .analyst-heading-actions { justify-content: flex-start; }
  .analyst-heading-actions .count-pill { display: none; }
  .analyst-verdict-head { display: grid; }
  .analyst-verdict-badge { width: fit-content; }
  .analyst-investigation-flow { grid-template-columns: repeat(5, minmax(104px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .analyst-copilot-head { display: grid; }.analyst-copilot-head > span { width: fit-content; }.analyst-question-form > div { grid-template-columns: 1fr; }.analyst-question-form button { width: 100%; }
  .analyst-filter-row { grid-template-columns: 1fr; }
  .analyst-incident-item { grid-template-columns: 9px minmax(0, 1fr); }
  .analyst-incident-item .severity-badge { display: none; }
  .forensics-filter-grid, .forensics-fact-list { grid-template-columns: 1fr; }
  .forensics-fact-list > div:nth-child(odd) { border-right: 0; }
  .forensics-session-item { grid-template-columns: 1fr; }
  .forensics-session-stats { display: flex; justify-content: space-between; text-align: left; }
  .forensics-payload-actions { align-items: stretch; flex-direction: column; }
  .forensics-payload-actions button, .forensics-payload-actions label { width: 100%; }
}
