@font-face { font-family: Manrope; src: url("Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("Manrope-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  font: 400 14px/1.55 Manrope, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --bg: #0c0d13;
  --menu: #101118;
  --layer: #151620;
  --raised: #1b1c28;
  --input: #10111b;
  --line: #272939;
  --line-hot: #4c426c;
  --text: #f1eff9;
  --muted: #a6a7ba;
  --accent: #bcabfe;
  --accent-strong: #9b82ef;
  --hot: #c3b4ff;
  --mint: #8fdfbf;
  --coral: #ffa7b8;
  --amber: #edd19a;
  --ease: cubic-bezier(.2,.8,.2,1);
  --rail: clamp(184px, 16vw, 226px);
  --header: 62px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3, strong, button { font-weight: 600; }
h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.058em; }
h2 { font-size: 18px; letter-spacing: -.024em; }
h3 { font-size: 15px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px;
  color: #100b20; background: var(--accent); cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
button:hover { background: #d1c5ff; }
button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
button:disabled { opacity: .46; cursor: default; }
button.quiet { color: var(--text); background: var(--raised); border-color: var(--line); }
button.quiet:hover { background: #28263a; border-color: var(--line-hot); }
button[aria-pressed="true"].quiet { background: #2b2342; color: #e2d7ff; border-color: var(--line-hot); }
input, select {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--input); color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder { color: #9294aa; opacity: 1; }
input:hover, select:hover { border-color: #3b3c54; }
input:focus-visible, select:focus-visible { outline: 0; border-color: var(--accent-strong); box-shadow: 0 0 0 3px #9b82ef26; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.search-field { position: relative; }
.search-field::before {
  content: ""; width: 9px; height: 9px; position: absolute; top: 12px; left: 12px;
  border: 1px solid var(--muted); border-radius: 50%; pointer-events: none;
}
.search-field::after { content: ""; width: 5px; height: 1px; position: absolute; top: 23px; left: 20px; background: var(--muted); transform: rotate(45deg); pointer-events: none; }
.search-field input { padding-left: 30px; }
.muted, .message { color: var(--muted); }
.foot { font-size: 12px; }
.message:empty { display: none; }
.message { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--layer); }

.top {
  position: sticky; z-index: 5; top: 0; min-height: var(--header); padding: 0 25px;
  display: grid; grid-template-columns: calc(var(--rail) - 25px) minmax(0, 1fr) auto; align-items: center;
  background: #101118ed; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.025em; }
.brand b {
  display: grid; width: 37px; height: 30px; place-items: center; border: 1px solid #5e4d86;
  border-radius: 8px; color: #e8dfff; background: linear-gradient(140deg,#362455,#211b38);
  font: 500 11px/1 var(--mono); letter-spacing: -.02em; box-shadow: 0 0 18px #925dff24;
}
.top #current-view { padding-left: 24px; font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); }
.top #logout { grid-column: 3; min-height: 32px; color: var(--muted); font-size: 12px; }
.login {
  display: grid; grid-template-columns: 1.2fr 1fr; width: min(940px, calc(100% - 40px));
  margin: clamp(38px, 14vh, 150px) auto 40px; overflow: hidden; box-shadow: 0 26px 90px #0303097d;
}
.login-art {
  position: relative; min-height: 324px; border-right: 1px solid var(--line); overflow: hidden;
  background: #09070c url("skt-banner-poster.webp?v=15") center / contain no-repeat;
}
.login-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(156deg,#18122988,transparent 53%,#18122990);
}
.login-art video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s var(--ease); }
.login-art video.playing { opacity: 1; }
.login-art .banner-toggle {
  position: absolute; z-index: 1; inset: auto 12px 12px auto;
  min-width: 33px; min-height: 31px; padding: 0 7px; color: #e1d6fb; background: #161320d9;
  border-color: #625477; font-size: 12px;
}
.login-content { padding: clamp(24px, 4vw, 48px); }
.login-content h1 { font-size: clamp(28px, 4vw, 42px); }
#login-form { display: grid; gap: 14px; margin-top: 25px; }
#login-form input, #login-form button { height: 42px; }

#dashboard { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); align-items: start; }
.cabinet-rail {
  position: sticky; top: var(--header); height: calc(100svh - var(--header));
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px 12px 14px;
  border-right: 1px solid var(--line); background: linear-gradient(125deg,#161525,var(--menu) 66%);
}
#dashboard-nav { display: grid; gap: 5px; }
#dashboard-nav button {
  justify-content: flex-start; width: 100%; min-height: 40px; padding: 0 10px;
  color: var(--muted); background: transparent; text-align: left; border-color: transparent;
}
#dashboard-nav button:hover { color: var(--text); background: var(--raised); }
#dashboard-nav button[aria-pressed="true"] {
  color: #ede8ff; border-color: #3c3354; background: linear-gradient(100deg,#2c2341,#1d192d);
  box-shadow: inset 2px 0 var(--accent-strong);
}
.nav-symbol { position: relative; display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #252235; color: var(--accent); }
.nav-symbol::before, .nav-symbol::after { content: ""; position: absolute; }
.symbol-pin::before { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; transform: rotate(45deg); }
.symbol-pin::after, .symbol-detect::after { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.symbol-detect::before { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 3px #252235; }
.symbol-stats::before { width: 12px; height: 11px; background: linear-gradient(0deg,currentColor 50%,transparent 50%) left/2px 100% no-repeat, linear-gradient(0deg,currentColor 78%,transparent 78%) center/2px 100% no-repeat, linear-gradient(0deg,currentColor, currentColor) right/2px 100% no-repeat; }
.rail-owner { padding: 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cabinet-content {
  min-width: 0; min-height: calc(100vh - var(--header)); padding: 27px clamp(19px, 3.1vw, 54px) 52px;
  background: radial-gradient(ellipse at 84% -28%,#30234d 0,transparent 52%), radial-gradient(circle,#af9af517 1px,transparent 1px) 0 0/24px 24px, var(--bg);
}
.cabinet-content > section { max-width: 1440px; margin-inline: auto; }
.cabinet-hero, .report-view-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; }
.cabinet-hero { margin-bottom: 22px; }
.cabinet-hero h1 span { color: var(--accent); }
.cabinet-hero .foot { margin-top: 7px; }
#create-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
#create-form > button { padding-inline: 15px; height: 40px; background: linear-gradient(110deg,#c7b8ff,#a68df4); box-shadow: 0 4px 24px #9b70f43b; }
#create-form > button:hover { box-shadow: 0 6px 26px #ab83ff61; }
#create-form > button span { font-size: 19px; line-height: 1; }
.release-picker { position: relative; display: grid; gap: 5px; width: 148px; }
.release-picker-trigger {
  width: 100%; min-height: 40px; justify-content: space-between; padding: 0 12px;
  color: var(--text); background: var(--input); border-color: #3b304e; font-size: 13px; font-weight: 600;
}
.release-picker-trigger:hover, .release-picker-trigger[aria-expanded="true"] {
  background: #1c1629; border-color: #8f72c4;
}
.release-picker-trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px #9b82ef20; }
.release-picker-trigger:active:not(:disabled) { transform: none; }
.release-picker-arrow {
  flex: none; display: grid; width: 19px; height: 19px; place-items: center;
  transform: rotate(0); color: var(--accent); transition: transform .27s var(--ease);
}
.release-picker-arrow::before {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.release-picker-trigger[aria-expanded="true"] .release-picker-arrow { transform: rotate(-180deg); }
.release-picker-popup {
  position: absolute; z-index: 1; inset: calc(100% + 6px) 0 auto; display: grid;
  grid-template-rows: 0fr; opacity: 0; transform: translateY(-5px); pointer-events: none;
  filter: drop-shadow(0 10px 15px #080510a6);
  transition: grid-template-rows .26s var(--ease), transform .26s var(--ease), opacity .18s ease;
}
.release-picker[data-open] .release-picker-popup {
  grid-template-rows: 1fr; opacity: 1; transform: translateY(0); pointer-events: auto;
}
.release-picker-options {
  min-height: 0; overflow: hidden; padding: 4px; border: 1px solid #524065; border-radius: 10px;
  color: var(--text); background: #191423;
}
.release-picker-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 34px; padding: 0 9px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.release-picker-option[aria-selected="true"] { color: #eee4ff; background: #2a1f3d; }
.release-picker-option[data-active] { background: #37284f; }
.release-picker-option[aria-selected="true"]::after {
  content: ""; flex: none; width: 8px; height: 4px; margin: -3px 1px 0 0;
  border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg);
}
.release-picker-option[aria-disabled="true"] { color: var(--muted); cursor: default; }
#create-message { flex-basis: 100%; color: var(--coral); }
.network { margin-bottom: 14px; padding: 9px 12px; border: 1px solid #634d40; border-radius: 8px; background: #251b1c; }

.pins-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(222px, .35fr); gap: 17px; align-items: start; }
.overview { grid-column: 2; grid-row: 1; min-width: 0; display: grid; gap: 12px; }
.latest-check { position: relative; isolation: isolate; overflow: hidden; min-height: 162px; padding: 15px; background: #181624; }
.latest-check::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 87% 10%,#3c2c5e99,transparent 73%);
}
.latest-check h2 { padding-bottom: 9px; color: #c5b5ed; font-size: 13px; }
.latest-row, .latest-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.latest-row { flex-direction: column; align-items: start; gap: 13px; }
.latest-facts strong { font-size: 13px; font-family: var(--mono); overflow-wrap: anywhere; }
.latest-facts time { flex-basis: 100%; font-size: 12px; }
.latest-row button { min-height: 32px; font-size: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sponsors-card { padding: 15px; background: linear-gradient(150deg,#211a2b,#151620 65%); }
.sponsors-card h2 { font-size: 14px; color: #ead6ad; margin-bottom: 12px; }
.sponsors-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sponsors-table th { padding-bottom: 7px; color: var(--muted); font-size: 10px; text-align: left; font-weight: 400; }
.sponsors-table th:last-child, .sponsors-table td:last-child { text-align: right; width: 44%; }
.sponsors-table td { padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.sponsor-name { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; overflow-wrap: anywhere; }
.sponsor-crown { width: 17px; height: 13px; background: linear-gradient(135deg,#fae7b9,#c29a55);
  clip-path: polygon(0 10%,27% 39%,50% 0,73% 39%,100% 10%,88% 86%,12% 86%,12% 100%,88% 100%,88% 90%,12% 90%); }
.sponsor-balance { font-family: var(--mono); color: #ead6ad; overflow-wrap: anywhere; }
#sponsor-management { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
#sponsor-management > summary { color: var(--accent); cursor: pointer; font-size: 12px; }
#sponsor-form { display: grid; gap: 9px; margin-top: 12px; }
#sponsor-form button { min-height: 34px; font-size: 12px; }
#sponsor-message[data-error] { color: var(--coral); }
.metric { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--layer); }
.metric:first-child { grid-column: span 2; }
.metric dt { color: var(--muted); font-size: 12px; }
.metric dd { margin: 3px 0 0; font: 500 clamp(19px, 2.2vw, 26px)/1.1 var(--mono); }
.metric[data-metric="Завершено"] dd { color: var(--mint); }
.metric[data-metric="Банов"] dd { color: var(--coral); }

.pin-table { --pin-cols: minmax(0, 1.05fr) minmax(0, 1fr) minmax(95px, .64fr) 12px; grid-column: 1; grid-row: 1; overflow: hidden; }
.pin-table-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 15px; padding: 13px 15px; }
.pin-table-title { display: flex; align-items: center; gap: 8px; }
.pin-table-title h2 { font-size: 16px; }
.history-filters { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(118px, .8fr); align-items: end; gap: 8px; }
.history-filters input, .history-filters select { font-size: 12px; }
.history-filters select { max-width: 162px; }
.row-count, .category-count { padding: 1px 6px; border-radius: 5px; background: #242333; color: #cecbe1; font: 500 11px/1.7 var(--mono); }
.pin-table-head, .check { display: grid; grid-template-columns: var(--pin-cols); align-items: center; gap: 9px 14px; }
.pin-table-head { padding: 7px 15px; color: var(--muted); background: #11121b; border-block: 1px solid var(--line); font-size: 11px; }
#checks > p { padding: 16px; font-size: 13px; }
.check {
  position: relative; border: 0; border-radius: 0; border-bottom: 1px solid #222434; background: transparent;
  width: 100%; min-height: 46px; padding: 7px 15px; color: var(--text); text-align: left;
}
.check:nth-child(even) { background: #191a24; }
.check:last-child { border-bottom: 0; }
.check:hover, .check.active { background: #222037; }
.check:hover { box-shadow: inset 2px 0 var(--accent-strong); }
.check:focus-visible { outline-offset: -3px; }
.check:active:not(:disabled) { transform: none; }
.check::after, details .evidence-summary::after, .module-title::after {
  content: ""; width: 6px; height: 6px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg); opacity: .68; transition: transform .19s var(--ease), opacity .18s;
}
.check:hover::after { transform: translateX(2px) rotate(-45deg); opacity: 1; }
.pin-number { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pin-number strong { font: 500 12px/1.4 var(--mono); overflow-wrap: anywhere; }
.pin-mark { display: grid; width: 23px; height: 23px; place-items: center; flex: none; border-radius: 6px; background: #2a263c; color: var(--accent); font: 500 12px var(--mono); }
.check-mode-label, .check time { color: var(--muted); font-size: 11px; font-weight: 400; }
.check time { font-family: var(--mono); }
.pill, .history-status {
  --tone: #c4b6e9; justify-self: start; max-width: 100%;
  display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid color-mix(in srgb,var(--tone) 19%,transparent);
  border-radius: 6px; background: color-mix(in srgb,var(--tone) 11%,var(--input)); color: var(--tone);
  font-size: 11px; line-height: 1.3; font-weight: 600;
}
.check .pill::before, .history-status::before { content: ""; width: 5px; height: 5px; flex: none; margin-right: 5px; border-radius: 50%; background: currentColor; }
.pill[data-verdict="matched"] { --tone: var(--coral); }
.pill[data-verdict="clear"] { --tone: var(--mint); }
.pill[data-verdict="incomplete"], .history-status[data-state="retry"] { --tone: var(--amber); }
.history-status[data-state="expired"], .pill.neutral { --tone: #b8b8ca; }
.history-status[data-state="running"]::before { animation: signal 1.9s ease-out infinite; }
.history-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font: 500 11px var(--mono); }
.pin-table .history-pages { padding: 10px 15px; border-top: 1px solid var(--line); margin: 0; }
.history-pages button { min-height: 30px; padding-inline: 9px; }

.report-view-header { justify-content: flex-start; margin-bottom: 15px; }
.report-view-header h1 { font-size: clamp(29px, 3.5vw, 43px); }
.report-view-header > button { min-height: 32px; font-size: 12px; }
#detail, #cabinet-title, #statistics { scroll-margin-top: calc(var(--header) + 14px); }
.report-empty { border: 1px dashed var(--line-hot); border-radius: 12px; padding: 45px 20px; text-align: center; background: var(--layer); }
.report-empty p { margin-top: 4px; }
.check-summary {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .49fr); align-items: start; gap: 7px 20px;
  padding: clamp(15px, 2vw, 23px); border: 1px solid var(--line); border-radius: 12px; background: #181a25;
}
.check-summary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 79% 50%,#51396938,transparent 63%),
    radial-gradient(circle,#c0a6ed18 .7px,transparent 1px) right top/19px 19px,
    linear-gradient(115deg,#171620,#13121d);
}
.check-summary::after {
  content: ""; position: absolute; z-index: -1; inset: -30% -45%; pointer-events: none;
  background: linear-gradient(112deg,transparent 44%,#b99ae210 49%,#d8c0ff1c 50%,transparent 55%);
  animation: report-light-pass 10s ease-in-out infinite;
}
.check-summary h2 { font-size: clamp(20px, 3.4vw, 36px); letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.check-summary > :not(.verdict-card) { grid-column: 1; }
.eyebrow { font-size: 12px; color: var(--accent); }
.info { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.check-duration { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; padding-top: 6px; }
.check-duration dt { color: var(--muted); font-size: 12px; }
.check-duration dd { margin: 0; font: 500 14px var(--mono); }
.verdict-card {
  --verdict: var(--accent); grid-column: 2; grid-row: 1 / span 5; align-self: stretch; min-width: 0;
  display: grid; grid-template-columns: minmax(0,1fr) clamp(72px,8vw,100px); align-items: center; gap: 5px;
  padding: 13px; border: 1px solid color-mix(in srgb,var(--verdict) 35%,var(--line));
  border-radius: 9px; background: color-mix(in srgb,var(--verdict) 10%,var(--input));
}
.verdict-card[data-verdict="matched"] { --verdict: var(--coral); }
.verdict-card[data-verdict="clear"] { --verdict: var(--mint); }
.verdict-card[data-verdict="incomplete"] { --verdict: var(--amber); }
.verdict-card h2, .verdict-card .eyebrow { color: var(--verdict); }
.verdict-card h2 { margin-block: 4px; font-size: clamp(16px,1.8vw,22px); }
.verdict-text { min-width: 0; }
.verdict-visual {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1.12;
  color: var(--verdict); pointer-events: none;
  background: radial-gradient(ellipse at 57% 47%,color-mix(in srgb,currentColor 19%,transparent),transparent 66%);
}
.verdict-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle,color-mix(in srgb,currentColor 43%,transparent) .7px,transparent 1.2px) 50% 50%/8px 8px;
  mask-image: radial-gradient(ellipse,#000 12%,transparent 72%);
}
.optic-target, .optic-orbit, .optic-lens { position: absolute; display: block; }
.optic-target {
  inset: 15% 11% 15% 12%; opacity: .57;
  background: linear-gradient(currentColor 0 0) left top/10px 1px, linear-gradient(currentColor 0 0) left top/1px 10px,
    linear-gradient(currentColor 0 0) right top/10px 1px, linear-gradient(currentColor 0 0) right top/1px 10px,
    linear-gradient(currentColor 0 0) left bottom/10px 1px, linear-gradient(currentColor 0 0) left bottom/1px 10px,
    linear-gradient(currentColor 0 0) right bottom/10px 1px, linear-gradient(currentColor 0 0) right bottom/1px 10px;
  background-repeat: no-repeat;
}
.optic-orbit {
  width: 83%; height: 39%; left: 8%; top: 36%; border: 1px solid color-mix(in srgb,currentColor 47%,transparent);
  border-radius: 50%; transform: rotate(-23deg);
}
.optic-orbit::after {
  content: ""; position: absolute; top: 17%; right: 9%; width: 10px; aspect-ratio: 1; background: currentColor;
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  animation: report-orbit-spark 7s ease-in-out infinite;
}
.optic-lens {
  top: 23%; left: 30%; width: 39%; aspect-ratio: 1; z-index: 1;
  border: 2px solid currentColor; border-radius: 50%;
  background: radial-gradient(circle at 34% 23%,#ffffff21,transparent 50%),color-mix(in srgb,currentColor 17%,#101219);
  box-shadow: 0 0 14px color-mix(in srgb,currentColor 36%,transparent);
  animation: report-lens-drift 7s ease-in-out infinite;
}
.optic-lens::after {
  content: ""; position: absolute; top: 83%; left: 76%; width: 52%; height: 13%; border-radius: 9px;
  background: currentColor; transform: rotate(43deg); transform-origin: left center;
  box-shadow: 0 0 6px color-mix(in srgb,currentColor 38%,transparent);
}
.optic-reflection {
  position: absolute; inset: 8%; overflow: hidden; border-radius: 50%; border-top: 1px solid #ffffff6a; transform: rotate(-33deg);
}
.optic-reflection::before, .optic-reflection::after { content: ""; position: absolute; }
.optic-reflection::before {
  width: 19%; aspect-ratio: 1; left: 35%; top: 35%; transform: rotate(33deg);
  background: currentColor; opacity: .64; box-shadow: 8px 0 0 #ffffff57, 0 8px 0 #ffffff57, 8px 8px 0 #ffffff21;
  animation: report-pixels 7s ease-in-out infinite;
}
.optic-reflection::after {
  inset: -10% 0; background: linear-gradient(180deg,transparent 39%,#ffffff80 50%,transparent 61%);
  animation: report-glass-scan 7s ease-in-out infinite;
}
.invitation { margin-top: 13px; padding: 15px; border: 1px solid var(--line-hot); border-radius: 11px; background: var(--layer); }
.invite-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin: 8px 0; }
.invite-link input { font-family: var(--mono); font-size: 12px; }
.report-sections { display: flex; gap: 5px; margin: 13px 0; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--layer); }
.report-sections button { min-height: 31px; border-color: transparent; background: transparent; font-size: 13px; }
.report-body h2 { margin-bottom: 8px; }
.report-detections { display: grid; grid-template-columns: minmax(144px, .24fr) minmax(0,1fr); align-items: start; gap: 13px; }
.detect-categories { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--layer); }
.detect-categories h2 { padding: 1px 5px; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.evidence-tabs { display: grid; gap: 3px; }
.evidence-tabs button { justify-content: space-between; min-height: 31px; width: 100%; gap: 5px; padding: 0 6px; border-color: transparent; background: transparent; font-size: 12px; }
.evidence-tabs button[data-group="ban"] > span:first-child { color: var(--coral); }
.evidence-tabs button[data-group="review"] > span:first-child { color: var(--amber); }
.detect-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.detect-toolbar h2 { margin: 0; }
.detect-toolbar label { min-width: min(228px, 100%); }
.detect-toolbar input { font-size: 12px; }
.evidence-list { display: grid; gap: 5px; }
.evidence-row { --detect: var(--accent); min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--layer); transition: border-color .18s; }
.evidence-row:nth-child(even) { background: #191a24; }
.evidence-row[data-finding="Ban"], .evidence-row[data-finding="Error"] { --detect: var(--coral); }
.evidence-row[data-finding="Clean"] { --detect: var(--mint); }
.evidence-row[data-finding="NeedsReview"], .evidence-row[data-finding="Suspicious"] { --detect: var(--amber); }
.evidence-row[open] { border-color: var(--line-hot); }
.evidence-summary {
  display: grid; grid-template-columns: 23px minmax(105px,1.1fr) minmax(0,.85fr) auto 8px;
  align-items: center; gap: 6px 9px; padding: 8px; min-height: 44px; list-style: none;
}
details .evidence-summary, .module-title { cursor: pointer; border-radius: 7px; transition: background .16s; }
details .evidence-summary:hover, .module-title:hover { background: #252237; }
.evidence-summary::-webkit-details-marker, .module-title::-webkit-details-marker { display: none; }
details[open] > .evidence-summary::after, details[open] > .module-title::after { transform: rotate(45deg); }
.detect-mark {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 600 13px var(--mono);
  color: var(--detect); background: color-mix(in srgb,var(--detect) 13%,var(--input));
}
.detect-badge { --tone: var(--detect); }
.detect-title { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; font-size: 12px; }
.detect-title > span { font-size: 10px; }
.detect-preview, .evidence-path { font: 500 11px/1.65 var(--mono); }
.detect-preview { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.detect-content { padding: 10px; border-top: 1px solid var(--line); }
.evidence-detail, .evidence-path { white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-filename { margin: 6px 0; overflow-wrap: anywhere; font-weight: 600; }
.evidence-location { margin-top: 8px; padding: 6px 8px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--input); }
.evidence-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 11px; }
.evidence-caption .copy { min-height: 26px; padding-inline: 7px; font-size: 11px; }
.evidence-path { display: block; color: #d3c9f1; }
.module-report { margin: 6px 0; border: 1px solid var(--line); background: var(--layer); border-radius: 8px; }
.module-title { display: grid; grid-template-columns: minmax(0,1fr) auto 8px; align-items: center; gap: 8px; padding: 9px 11px; list-style: none; }
.module-title strong { overflow-wrap: anywhere; }
.module-metadata { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: 11px; }
.module-report[data-state="error"] .module-title::after { border-color: var(--amber); }
.module-reason, .module-report > ul, .module-report .evidence { margin: 0; padding: 4px 10px 10px; }
.module-report > ul { padding-left: 27px; }
.statistics { padding: clamp(16px,3vw,30px); }
.statistics-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 21px; }
.key-chart { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.key-chart li { display: grid; grid-template-columns: minmax(96px,.85fr) minmax(34px,1fr) 3ch; align-items: center; gap: 8px; font-size: 12px; }
.key-chart strong { text-align: right; font-family: var(--mono); }
.key-chart meter { width: 100%; height: 10px; accent-color: var(--accent); }
.key-chart meter::-webkit-meter-bar { background: #2e2942; border: 0; }
.key-chart meter::-webkit-meter-optimum-value { background: linear-gradient(90deg,#8762d5,#b9a7fa); }
.key-chart meter::-moz-meter-bar { background: #b9a7fa; }
.families { border-left: 1px solid var(--line); padding-left: 20px; }
.families ul { display: flex; flex-wrap: wrap; list-style: none; gap: 7px; margin: 8px 0 0; padding: 0; }

@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes expand-note { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes report-light-pass {
  0%,12% { transform: translateX(-30%); opacity: 0; }
  20% { opacity: 1; }
  68% { transform: translateX(30%); opacity: 1; }
  78%,100% { transform: translateX(30%); opacity: 0; }
}
@keyframes report-lens-drift {
  0%,100% { transform: translate(-4%,3%) rotate(-4deg); }
  28% { transform: translate(5%,-6%) rotate(4deg); }
  61% { transform: translate(-6%,-1%) rotate(-3deg); }
  81% { transform: translate(2%,4%) rotate(1deg); }
}
@keyframes report-orbit-spark {
  0%,100% { transform: scale(.7); opacity: .5; }
  50% { transform: scale(1.15); opacity: .94; }
}
@keyframes report-pixels {
  0%,100% { opacity: .28; transform: rotate(33deg) scale(.9); }
  52% { opacity: .7; transform: rotate(33deg) scale(1); }
}
@keyframes report-glass-scan {
  0%,18% { transform: translateY(-80%); opacity: 0; }
  28% { opacity: .7; }
  63% { transform: translateY(80%); opacity: .55; }
  74%,100% { transform: translateY(80%); opacity: 0; }
}
@keyframes signal { 0% { box-shadow: 0 0 0 0 #c9b7ff78; } 75%,100% { box-shadow: 0 0 0 6px #c9b7ff00; } }
.cabinet-content > section:not([hidden]), .login:not([hidden]) { animation: panel-in .32s var(--ease) both; }
.evidence-row[open] > .detect-content, .module-report[open] > .evidence { animation: expand-note .19s var(--ease) both; }

@media (max-width: 1110px) {
  .pin-table-top { align-items: flex-start; }
  .history-filters { width: 100%; }
  .history-filters select { max-width: none; }
}
@media (max-width: 920px) {
  :root { --rail: 157px; }
  .pins-grid { grid-template-columns: minmax(0,1fr); }
  .overview { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
  .latest-check { min-height: 0; }
  .pin-table { grid-row: 2; }
  .pin-table-top { align-items: center; }
  .history-filters { width: auto; }
}
@media (max-width: 720px) {
  :root { --header: 54px; }
  #dashboard { grid-template-columns: minmax(0,1fr); }
  .top { padding-inline: 14px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .top #current-view { padding-left: 8px; }
  .cabinet-rail { z-index: 4; height: auto; padding: 5px 9px; border: 0; border-bottom: 1px solid var(--line); background: #151520; }
  #dashboard-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
  #dashboard-nav button { justify-content: center; padding-inline: 5px; min-height: 36px; font-size: 12px; }
  #dashboard-nav button[aria-pressed="true"] { box-shadow: inset 0 -1px var(--accent-strong); }
  .rail-owner { display: none; }
  .cabinet-content { padding: 17px 12px 35px; }
  #detail, #cabinet-title, #statistics { scroll-margin-top: calc(var(--header) + 57px); }
}
@media (max-width: 510px) {
  .top #current-view { display: none; }
  .brand span { font-size: 12px; }
  .login { grid-template-columns: minmax(0,1fr); margin-top: 25px; }
  .login-art { min-height: 128px; border: 0; border-bottom: 1px solid var(--line); }
  .cabinet-hero { margin-bottom: 14px; }
  #create-form > button { padding-inline: 10px; height: 36px; font-size: 12px; }
  .overview { grid-template-columns: minmax(0,1fr); }
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric:first-child { grid-column: auto; }
  .metric { padding: 8px; }
  .latest-row { flex-direction: row; justify-content: space-between; }
  .latest-facts { flex: 1; }
  .latest-check { padding: 10px; }
  .pin-table { --pin-cols: minmax(94px,1fr) minmax(68px,.78fr) minmax(55px,.65fr) 7px; }
  .check, .pin-table-head { gap: 5px; padding-inline: 7px; }
  .pin-mark, .check-mode-label { display: none; }
  .check .pill, .check .history-status { padding: 3px; font-size: 10px; }
  .check .pin-number strong, .check time { font-size: 10px; }
  .history-filters { width: 100%; grid-template-columns: minmax(0,1fr) minmax(105px,.75fr); }
  .check-summary { grid-template-columns: minmax(0,1fr); }
  .verdict-card { grid-column: 1; grid-row: auto; }
  .verdict-card { grid-template-columns: minmax(0,1fr) 87px; }
  .invite-link { grid-template-columns: minmax(0,1fr); }
  .report-detections { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .evidence-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .evidence-tabs button { padding-inline: 3px; font-size: 10px; }
  .evidence-summary { grid-template-columns: 22px minmax(0,1fr) auto 7px; gap: 5px; }
  .detect-preview { display: none; }
  .module-title { grid-template-columns: minmax(0,1fr) 8px; }
  .module-metadata { grid-row: 2; grid-column: 1; }
  .module-title::after { grid-row: 1; grid-column: 2; }
  .statistics-grid { grid-template-columns: minmax(0,1fr); }
  .families { padding: 11px 0 0; border: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .login-art video, .login-art .banner-toggle { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* The pin header carries the brand motion behind its usable controls. */
.cabinet-hero {
  position: relative; z-index: 1; isolation: isolate; min-height: 180px;
  padding: 26px 24px 42px; border: 1px solid #392c4c; border-radius: 16px;
  background: radial-gradient(ellipse at 32% -60%,#43266180,transparent 70%),#100d18;
}
.cabinet-hero > div, .cabinet-hero > form { position: relative; z-index: 1; }
#pin-wave { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
button.pin-wave-control {
  position: absolute; right: 10px; bottom: 7px; z-index: 2; min-height: 24px; width: 28px;
  padding: 0; background: #171020ba; color: #a99bbf; border-color: #b89de126; font-size: 11px;
}
.pin-number { flex-wrap: wrap; }
.pin-number .pill { font-size: 9px; padding: 2px 5px; }
.pin-number .pill::before { display: none; }
.check { position: relative; transition: background .22s ease, box-shadow .22s ease, border-color .22s ease; }
.check:hover { box-shadow: inset 3px 0 #ae89e5; }
.check.active { box-shadow: inset 3px 0 #b598ec; }
#create-form > button { position: relative; overflow: hidden; }
#create-form[aria-busy="true"] > button::after {
  content: ""; position: absolute; inset: -70% -40%; pointer-events: none;
  background: linear-gradient(110deg,transparent 40%,#ffffff6b 50%,transparent 60%);
  animation: pin-create-shine 1.2s ease-in-out infinite;
}
.history-status[data-state="running"]::before { animation: pin-running 2s ease-in-out infinite; }
@keyframes pin-create-shine { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes pin-running { 50% { box-shadow: 0 0 0 4px #ba9cef1a,0 0 12px #a881e780; } }
@media(max-width:510px) {
  .cabinet-hero { padding: 21px 15px 38px; gap: 17px; }
  #create-form { width: 100%; }
  #create-form > label, #create-form > .release-picker { flex: 1; min-width: 140px; }
  .release-picker-trigger { min-height: 38px; }
}
@media(prefers-reduced-motion:reduce) {
  button.pin-wave-control { display: none; }
}


.report-view-header { justify-content: flex-start; }
#report-motion-control { margin-left: auto; color: var(--muted); }
.check-summary { border-color: #3b304d; box-shadow: 0 9px 32px #00000018; }
.verdict-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(130deg,color-mix(in srgb,var(--verdict) 11%,#17121c),#17131f 86%);
}
.verdict-card::before {
  content: ""; position: absolute; z-index: -1; width: 190px; height: 190px;
  top: -90px; right: -80px; border-radius: 50%;
  background: radial-gradient(circle,color-mix(in srgb,var(--verdict) 12%,transparent),transparent 66%);
  animation: verdict-halo 7s ease-in-out infinite;
}
.verdict-card::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg,transparent,var(--verdict),transparent); opacity: .5;
  animation: verdict-edge 7s ease-in-out infinite;
}
.verdict-times { margin-top: 11px; display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; font-size: 11px; }
.verdict-times dt { color: var(--muted); }
.verdict-times dd { margin: 0 0 5px; font: 500 12px var(--mono); }
.optic-orbit { animation: report-orbit-tilt 14s ease-in-out infinite; }
.optic-target { animation: report-target 7s ease-in-out infinite; }
.verdict-visual::before { animation: report-dots 7s ease-in-out infinite; }
#report-view[hidden] *, #report-view[hidden] *::before, #report-view[hidden] *::after,
#report-view.motion-paused *, #report-view.motion-paused *::before, #report-view.motion-paused *::after {
  animation-play-state: paused !important;
}
.evidence-row { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.evidence-row:hover { border-color: color-mix(in srgb,var(--detect) 40%,var(--line)); }
.evidence-row[open] { box-shadow: inset 2px 0 color-mix(in srgb,var(--detect) 55%,transparent); }
@keyframes report-orbit-tilt { 0%,100% { transform: rotate(-23deg); } 50% { transform: rotate(14deg); } }
@keyframes report-target { 0%,100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes report-dots { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes verdict-halo { 0%,100% { transform: translate(0,0) scale(.9); opacity: .5; } 50% { transform: translate(-18px,15px) scale(1.12); opacity: 1; } }
@keyframes verdict-edge { 0%,100% { transform: scaleX(.6); opacity: .23; } 50% { transform: scaleX(1); opacity: .65; } }
@media(max-width:510px) {
  #report-motion-control { padding-inline: 8px; font-size: 10px; }
  .report-view-header { gap: 10px; }
  .verdict-times { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .verdict-times dd { margin: 0; }
}

#report-title { scroll-margin-top: calc(var(--header) + 16px); }
@media(max-width:760px) { #report-title { scroll-margin-top: calc(var(--header) + 72px); } }


.admin-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.admin-totals > div { padding: 16px; background: var(--layer); border: 1px solid var(--line); border-radius: 12px; }
.admin-totals dt { color: var(--muted); font-size: 12px; }
.admin-totals dd { margin: 7px 0 0; font: 500 28px var(--mono); color: var(--accent); }
.admin-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.admin-charts > section, .admin-users, .admin-checks { padding: 20px; }
.admin-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.admin-bars li { display: grid; grid-template-columns: minmax(85px,1fr) minmax(60px,2fr) 3ch; gap: 12px; align-items: center; font-size: 12px; }
.admin-bars meter { width: 100%; height: 10px; accent-color: var(--accent); }
.admin-bars meter::-webkit-meter-bar { background: #282235; border: 0; }
.admin-bars meter::-webkit-meter-optimum-value { background: linear-gradient(90deg,#7956b7,#c5a4ff); }
.admin-table-scroll { overflow-x: auto; margin-top: 15px; }
.admin-users table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-users th { color: var(--muted); font-weight: 400; white-space: nowrap; }
.admin-users td, .admin-users th { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-users td:first-child { min-width: 160px; }
.admin-users td:first-child span { display: block; font-size: 10px; color: var(--accent); }
.admin-users td time { white-space: nowrap; font-size: 11px; color: var(--muted); }
.admin-users button { font-size: 11px; min-height: 30px; }
.admin-checks { margin-top: 18px; }
.admin-checks h2 { margin-bottom: 14px; }
.admin-check-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; padding: 12px; margin-top: 5px; color: var(--text); background: var(--input); text-align: left; border-color: var(--line); }
.admin-check-row:hover { background: var(--raised); border-color: var(--line-hot); }
.admin-check-row > span:first-child { display: grid; gap: 3px; }
.admin-check-row small { color: var(--muted); font-weight: 400; }
#admin-title { scroll-margin-top: calc(var(--header) + 70px); }
@media(max-width:1000px) { .admin-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { #dashboard-nav:has(#admin-nav:not([hidden])) { grid-template-columns: repeat(4,minmax(0,1fr)); } #admin-nav { font-size: 10px !important; } #admin-nav .nav-symbol { display: none; } }
@media(max-width:510px) { .admin-charts { grid-template-columns: minmax(0,1fr); } .admin-users,.admin-checks,.admin-charts > section { padding: 12px; } .admin-totals { gap: 8px; } .admin-totals dd { font-size: 23px; } #admin-title { font-size: 29px; } }
.top-actions { display: flex; grid-column: 3; align-items: center; gap: 9px; justify-content: end; }
#snow-control { width: 32px; min-height: 32px; padding: 0; font-size: 18px; color: #bfaaeb; }
#snow-control[aria-pressed="true"] { opacity: .55; }
#site-snow { position: fixed; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
.brand b.brand-mark {
  position: relative; display: block; width: 36px; height: 36px; border-radius: 11px;
  border: 1px solid #a486d96b;
  background: radial-gradient(circle at 25% 20%,#614283,#1a122c 75%);
  box-shadow: inset 0 1px #e2caff1a,0 0 22px #9660d426; overflow: visible;
}
.brand-lens { position: absolute; left: 9px; top: 8px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #e5d3ff; box-shadow: inset 0 0 6px #b88bf92a; }
.brand-lens::after { content: ""; position: absolute; width: 9px; height: 3px; border-radius: 3px; background: #dbc1ff; right: -6px; bottom: -3px; transform: rotate(45deg); }
.brand-orbit { position: absolute; left: 3px; top: 11px; width: 30px; height: 14px; border: 1px solid #af81e58c; border-radius: 50%; transform: rotate(-33deg); }
.brand-star { position: absolute; left: 27px; top: 4px; width: 7px; height: 7px; background: #e9d6ff; clip-path: polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%); }
.outcome-overview { display: flex; align-items: center; gap: 28px; padding: 22px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg,#1d1629,var(--layer)); }
.outcome-ring { --ban-share: 0%; flex: none; display: grid; place-items: center; width: 154px; height: 154px; border-radius: 50%; background: conic-gradient(var(--coral) var(--ban-share),#9783c3 0); box-shadow: 0 0 30px #af84e310; }
.outcome-ring > div { width: 126px; height: 126px; border-radius: 50%; background: #17131f; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.outcome-ring strong { font: 500 30px var(--mono); }
.outcome-ring span { font-size: 11px; color: var(--muted); }
.outcome-facts { flex: 1; min-width: 0; }
.outcome-facts > p.ban, .outcome-facts > p.no-ban { display: flex; gap: 14px; margin-top: 9px; align-items: center; max-width: 350px; }
.outcome-facts > p.ban { color: var(--coral); }
.outcome-facts > p.no-ban { color: #c4b0ec; }
.outcome-facts > p > strong { margin-left: auto; font: 500 20px var(--mono); }
.outcome-facts > p > span:last-child { min-width: 62px; text-align: right; font-family: var(--mono); }
.outcome-facts .foot { margin-top: 9px; }
.ban-reasons { margin: 18px 0 24px; }
.ban-reasons > p { margin-top: 5px; }
.reason-list { display: grid; gap: 7px; margin-top: 13px; }
.reason-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(60px,.7fr) 100px; gap: 17px; align-items: center; text-align: left; padding: 12px 15px; color: var(--text); background: var(--input); border: 1px solid var(--line); }
.reason-row:hover { background: var(--raised); border-color: var(--line-hot); }
.reason-row > span:last-child { text-align: right; font: 500 12px var(--mono); color: var(--coral); }
.reason-label { display: grid; gap: 4px; font-size: 12px; }
.reason-label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.reason-row meter { width: 100%; height: 7px; }
.reason-row meter::-webkit-meter-bar { border: 0; background: #302532; }
.reason-row meter::-webkit-meter-optimum-value { background: linear-gradient(90deg,#a95d80,#e6a0b1); }
.reason-reports:not(:empty) { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
@media(max-width:510px) {
  .outcome-overview { padding: 15px; gap: 16px; flex-wrap: wrap; }
  .outcome-ring { width: 108px; height: 108px; }
  .outcome-ring > div { width: 86px; height: 86px; }
  .outcome-ring strong { font-size: 23px; }
  .outcome-facts { flex-basis: 180px; }
  .reason-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 11px; }
  .reason-row meter { grid-column: 1 / -1; grid-row: 2; }
  .reason-row > span:last-child { min-width: 75px; }
  .top-actions { gap: 6px; }
}

.browser-filters { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0 20px; }
.browser-filters p { flex-basis:100%; color:var(--muted); }
.browser-filters select { max-width:100%; min-width:180px; }

.browser-filters { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:14px; margin:16px 0 20px; }
.browser-filter { position:relative; min-width:0; }
.browser-filter-label { display:block; font-size:11px; letter-spacing:.04em; color:#aaa4bc; margin:0 0 7px 2px; }
.browser-filter-trigger { width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between; padding:13px 15px; background:#16131f; border:1px solid #393145; border-radius:12px; color:#f0eaf9; font:inherit; }
.browser-filter-trigger::after { content:"⌄"; color:#bca3ed; margin-left:12px; }
.browser-filter-trigger[aria-expanded="true"] { border-color:#a486d8; box-shadow:0 0 0 3px #a486d812; }
.browser-filter-popup { position:absolute; top:calc(100% + 7px); left:0; right:0; z-index:20; background:#1b1726; border:1px solid #493b60; border-radius:12px; padding:6px; box-shadow:0 14px 40px #0008; max-height:260px; overflow:auto; }
.browser-filter-popup[hidden] { display:none; }
.browser-filter-option { display:block; width:100%; text-align:left; background:transparent; border:0; padding:11px 12px; border-radius:8px; color:#d9d1e6; font:inherit; }
.browser-filter-option:hover,.browser-filter-option:focus-visible { background:#30263e; outline:none; }
.browser-filter-option[aria-selected="true"] { background:#49355e; color:#f1e7ff; }
@media(max-width:600px) { .browser-filters { grid-template-columns:minmax(0,1fr); gap:12px; } }

.account-management > header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.account-create-form { display:flex; flex-wrap:wrap; align-items:end; gap:18px; padding:18px 0; border-bottom:1px solid #332c43; }
.account-create-form > label:first-child { flex:1 1 220px; }
.account-check { display:flex; align-items:center; gap:9px; font-size:13px; white-space:nowrap; padding:10px 0; }
.account-check input[type=checkbox] { width:17px; height:17px; margin:0; accent-color:#b194e0; }
.account-row { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:18px 0; border-bottom:1px solid #292333; }
.account-row:last-child { border-bottom:0; }
.account-identity { display:grid; gap:7px; flex:1 1 180px; overflow-wrap:anywhere; }
.account-identity .pill { justify-self:start; }
.account-actions { display:flex; flex-wrap:wrap; gap:8px; }
.account-key-dialog { background:#181320; color:#f4edff; border:1px solid #6d528b; border-radius:20px; padding:28px; max-width:min(520px,calc(100vw - 32px)); box-shadow:0 24px 100px #000b; }
.account-key-dialog::backdrop { background:#08050dc9; backdrop-filter:blur(6px); }
.account-key-dialog input { width:100%; font-family:monospace; font-size:15px; margin:10px 0 14px; }
.account-key-dialog form { margin-top:16px; }
@media(max-width:600px) { .account-row { gap:10px 16px; } .account-identity { flex-basis:100%; } .account-actions { width:100%; } }

.account-management { padding:24px; margin:20px 0; }
@media(max-width:600px) { .account-management { padding:16px; } }

/* Account controls have their own geometry, independent of text-input styles. */
.account-list { display:grid; gap:12px; margin-top:18px; }
.account-row { display:grid; grid-template-columns:minmax(180px,1.3fr) repeat(3,minmax(120px,1fr)); gap:18px; padding:18px; background:#12111b; border:1px solid #302a3f; border-radius:14px; }
.account-row:last-child { border-bottom:1px solid #302a3f; }
.account-identity { min-width:0; align-content:center; }
.account-identity strong { font-size:14px; line-height:1.45; }
.account-row .account-check { padding:8px 10px; justify-content:space-between; border:1px solid #302a3f; border-radius:9px; background:#1a1623; font-size:11px; font-weight:500; gap:10px; }
.account-check input[type=checkbox] { appearance:none; -webkit-appearance:none; position:relative; flex:0 0 34px; width:34px; height:20px; min-height:20px; padding:0; border:1px solid #53485e; border-radius:12px; background:#332b3e; margin:0; box-shadow:none; cursor:pointer; transition:background .18s,border-color .18s; }
.account-check input[type=checkbox]::before { content:""; position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:#a39aac; transition:transform .18s,background .18s; }
.account-check input[type=checkbox]:checked { background:#8662b8; border-color:#ac8bd9; }
.account-check input[type=checkbox]:checked::before { transform:translateX(14px); background:#f4ebff; }
.account-check input[type=checkbox]:focus-visible { outline:2px solid #c7a5ef; outline-offset:3px; }
.account-check input[type=checkbox]:disabled { opacity:.45; cursor:wait; }
.account-row .account-check input { order:1; }
.account-actions { grid-column:1/-1; justify-content:flex-end; padding-top:12px; border-top:1px solid #2b2536; }
.account-actions button { min-height:34px; padding:7px 13px; font-size:12px; }
.account-create-form { gap:16px; }
.account-create-form > .account-check { font-size:12px; }
@media(max-width:1100px) {
  .account-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .account-identity { grid-column:1/-1; }
  .account-row .account-check { white-space:normal; }
}
@media(max-width:600px) {
  .account-row { grid-template-columns:minmax(0,1fr); padding:14px; }
  .account-management > header { align-items:flex-start; }
  .account-management > header .pill { display:none; }
  .account-row .account-check { font-size:12px; padding:10px 12px; }
  .account-actions { justify-content:stretch; }
  .account-actions button { flex:1; }
}
@media(prefers-reduced-motion:reduce) { .account-check input[type=checkbox],.account-check input[type=checkbox]::before { transition:none; } }
