:root {
  color-scheme: light;
  --canvas: #f3f5f8;
  --surface: #fff;
  --text: #192a40;
  --muted: #57687c;
  --line: #dce3eb;
  --line-soft: #e8edf2;
  --brand: #205dc4;
  --brand-dark: #18499d;
  --brand-soft: #eaf2ff;
  --red: #aa3044;
  --red-soft: #fff0f1;
  --green: #18744f;
  --green-soft: #e8f6ee;
  --amber: #8a5a0c;
  --amber-soft: #fff4d8;
  --shadow: 0 16px 56px rgb(20 38 65 / 16%);
  --side-width: 214px;
  font-family: "Inter", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--canvas); line-height: 1.5; }
h1, h2, p, dl { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid #367cdd; outline-offset: 3px; }
.icon { width: 1.12em; height: 1.12em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.loading-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }

.workspace { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-height: 0; background: #122338; color: #e8f0fb; }
.brand { display: flex; min-height: 84px; align-items: center; padding: 0 21px; gap: 12px; border-bottom: 1px solid #ffffff13; color: #fff; }
.brand-name strong { display: block; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { display: inline-grid; position: relative; flex: none; width: 37px; height: 37px; place-items: center; border-radius: 9px; background: #2e6be0; color: #fff; }
.brand-mark::before { position: absolute; inset: 22% 19%; background: currentColor; clip-path: polygon(0 100%, 0 16%, 21% 0, 75% 64%, 75% 15%, 100% 0, 100% 84%, 77% 100%, 25% 36%, 25% 85%); content: ""; }
#navigation { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 15px 11px 24px; scrollbar-width: thin; scrollbar-color: #4b5c71 transparent; }
.nav-section + .nav-section { margin-top: 16px; }
.nav-section h2 { margin: 0 0 5px; padding: 0 13px; color: #9aafc6; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .08em; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 35px; margin: 2px 0; padding: 4px 13px; border: 1px solid transparent; border-radius: 6px; color: #d5e1ee; font-size: 13px; }
.nav-link .icon { width: 17px; height: 17px; color: #a9bdd4; }
.nav-link:hover { color: #fff; background: #20364d; }
.nav-link[aria-current="page"] { color: #fff; background: #244565; border-color: #426287; font-weight: 650; }
.nav-link[aria-current="page"] .icon { color: #a7d3ff; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; background: #79bfff; border-radius: 2px; }
#nav-backdrop, .menu-toggle { display: none !important; }
.workspace-body { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(18px, 2.15vw, 36px); border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumbs, .account-menu { display: flex; min-width: 0; align-items: center; gap: 11px; font-size: 13px; }
.breadcrumb-home { color: var(--muted); }
.breadcrumb-separator { color: #9aa8b9; }
#breadcrumb { font-weight: 650; }
.account-avatar { display: grid; width: 33px; height: 33px; flex: none; place-items: center; border: 1px solid #cedef3; border-radius: 9px; color: #305b8d; background: #edf3fa; font-weight: 700; }
.account-info { display: grid; max-width: 170px; line-height: 1.35; }
#account-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#account-role { color: var(--muted); font-size: 11px; }
.account-menu .logout { min-height: 31px; margin-left: 2px; font-size: 12px; }
.content { margin: 0 auto; padding: clamp(19px, 2.05vw, 32px) clamp(18px, 2.15vw, 36px) 40px; width: 100%; max-width: 1700px; min-width: 0; outline: none; }
.page-heading { display: flex; min-height: 47px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 19px; gap: 12px; }
.page-heading h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 680; line-height: 1.25; letter-spacing: -.035em; }
.page-heading p { margin-top: 5px; color: var(--muted); }
.page-actions, .row-actions, .list-tools, .filter-actions, .modal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #cbd5e0; border-radius: 6px; padding: 6px 12px; color: #34465c; background: var(--surface); font-size: 13px; font-weight: 530; line-height: 1.3; white-space: nowrap; }
.button:hover:not(:disabled) { border-color: #91aac9; background: #f3f7fc; color: #194f99; }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 600; }
.button.primary:hover:not(:disabled) { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }
.button.subtle { color: var(--muted); border-color: transparent; background: transparent; }
.button.danger { color: var(--red); }
.button.small { min-height: 29px; padding: 4px 9px; font-size: 12px; }
.button.close-button { min-height: 31px; width: 31px; padding: 0; border: 0; background: #f0f3f7; font-size: 16px; }

.panel { min-width: 0; overflow: hidden; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 2px 5px rgb(21 41 72 / 3%); }
.panel-heading { display: flex; min-height: 52px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 19px; }
.panel-heading h2 { color: #23354d; font-size: 16px; font-weight: 650; }
.panel-content { padding: 16px 19px; }
.list-name { display: flex; align-items: baseline; gap: 11px; }
.result-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.list-tools { margin-left: auto; gap: 5px; }
.list-tools .button { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.list-tools .button:not(.filter-toggle) { border-color: transparent; color: #475970; }
.list-tools .filter-toggle { gap: 5px; }
.filter-toggle .icon:last-child { width: 12px; height: 12px; }
.filter-toggle[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.filter-toggle.has-filters { border-color: #adcaef; color: var(--brand-dark); background: var(--brand-soft); }
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 14px; padding: 15px 19px 18px; }
.list-heading + .filters { padding-top: 2px; }
.filters > label { min-width: 118px; max-width: 100%; }
.filters .wide { width: min(232px, 100%); }
.filters label { font-size: 12px; }
.filters input, .filters select { min-height: 35px; padding-block: 6px; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b4c3d4 #f5f7fa; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; white-space: nowrap; font-size: 13px; }
th, td { padding: 11px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { border-top: 1px solid var(--line-soft); padding-block: 9px; color: #53647a; background: #f5f7fa; font-size: 12px; font-weight: 600; }
th:first-child, td:first-child { padding-left: 19px; }
td { background: var(--surface); }
td:first-child:not(:has(input)) { color: #20334b; font-weight: 550; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f6faff; }
td.wrap { min-width: 130px; max-width: 270px; white-space: normal; overflow-wrap: anywhere; }
td.numeric, .bar-cell, .pagination { font-variant-numeric: tabular-nums; }
.action-column { position: sticky; right: 0; box-shadow: -1px 0 var(--line-soft); }
td.action-column .button { border-color: transparent; background: transparent; color: var(--brand-dark); min-height: 27px; padding: 2px 5px; font-size: 12px; }
td.action-column .button:hover { background: var(--brand-soft); }
td.action-column .button.danger { color: var(--red); }
.empty { padding: 32px 20px; color: var(--muted); text-align: center; }
.empty-records { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 165px; font-size: 13px; }
.empty-illustration { display: grid; place-items: center; width: 49px; height: 43px; border-radius: 12px; color: #809cbb; background: #f0f5fa; }
.empty-illustration .icon { width: 30px; height: 30px; stroke-width: 1.2; }
.empty .button { margin-top: 8px; }
.modal-body .empty-records { min-height: 90px; padding: 14px; gap: 7px; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; color: #55677e; background: #eff2f6; font-size: 12px; line-height: 1.65; }
.badge::before { width: 5px; height: 5px; flex: none; border-radius: 50%; content: ""; background: currentColor; }
.badge.good { color: var(--green); background: var(--green-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.bad { color: var(--red); background: var(--red-soft); }
.badge.info { color: var(--brand-dark); background: var(--brand-soft); }
.pagination, .batch-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 10px 19px; font-size: 12px; }
.pagination { justify-content: flex-end; border-top: 1px solid var(--line-soft); }
.batch-toolbar { border-top: 1px solid var(--line-soft); background: #fafbfd; }
.batch-toolbar > .muted { margin-right: 6px; }
label { display: grid; align-content: start; gap: 6px; min-width: 0; color: #42526a; font-size: 13px; font-weight: 540; }
.field-label.required::after { margin-inline-start: 3px; color: var(--red); content: "*"; }
input, select, textarea { min-width: 0; width: 100%; min-height: 37px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 400; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #728296; }
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe2fe; outline-offset: 0; border-color: #578bd5; }
textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
input.row-selection, .checkbox-field input { width: 16px; height: 16px; min-height: auto; padding: 0; margin: 0; vertical-align: middle; accent-color: var(--brand); }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.form-layout { display: grid; gap: 16px; }
.form-layout .two-columns, .form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.form-columns > :not(label), .form-columns > label:has(textarea), .form-columns > .checkbox-field { grid-column: 1 / -1; }
.form-error { color: var(--red); line-height: 1.55; }
.modal { width: min(620px, calc(100vw - 36px)); max-height: min(88vh, 960px); max-height: min(88dvh, 960px); padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d3deea; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.modal.wide { width: min(1020px, calc(100vw - 36px)); }
.modal::backdrop { background: rgb(13 28 47 / 51%); }
.modal-heading { position: sticky; z-index: 2; top: 0; display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-heading h2 { overflow-wrap: anywhere; font-size: 18px; font-weight: 660; }
.modal-body { padding: 19px 22px; }
.modal-footer { justify-content: flex-end; gap: 9px; margin-top: 7px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.modal video { display: block; width: 100%; max-height: 60vh; border-radius: 7px; background: #101e2e; }
.video-preview .form-error, .video-preview .modal-footer { margin-top: 14px; }
.capture-timeline { margin-top: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.timeline-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; margin-bottom: 4px; }
.timeline-heading h3 { margin: 0; color: var(--text); font-size: 15px; }
.timeline-position, .timeline-offset, .timeline-absolute { font-variant-numeric: tabular-nums; }
.timeline-position, .timeline-absolute { color: var(--muted); font-size: 12px; }
.timeline-source-duration { margin-top: 7px; color: var(--amber); font-size: 12px; }
.timeline-track { position: relative; height: 12px; margin: 14px 2px; border-radius: 3px; background: #e2eaf4; }
.timeline-marker, .timeline-playhead { position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: #526e9a; }
.timeline-marker.segment { bottom: 2px; top: 2px; min-width: 3px; background: #8cb2e6; }
.timeline-playhead { z-index: 1; top: -3px; bottom: -3px; background: var(--brand); }
.timeline-items { max-height: 245px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.timeline-items li { display: grid; grid-template-columns: minmax(130px, 1fr) max-content max-content max-content; align-items: center; gap: 8px 13px; padding: 8px 5px; border-bottom: 1px solid var(--line); }
.timeline-items li:last-child { border-bottom: 0; }
.timeline-items .timeline-active { background: #e9f2ff; }
.timeline-item-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; overflow-wrap: anywhere; }
.timeline-item-label span { color: var(--muted); font-size: 12px; }
.timeline-offset { color: var(--brand-dark); font-size: 12px; }
.timeline-empty { margin-top: 9px; color: var(--muted); }
@media (max-width: 690px) {
  .timeline-items li { grid-template-columns: minmax(0, 1fr) max-content; }
  .timeline-items .button { grid-column: 2; grid-row: 1 / 4; }
}
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-bottom: 16px; }
.detail-grid > div { border-bottom: 1px solid var(--line-soft); padding: 8px 0 10px; }
.detail-grid dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 3px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs .button { position: relative; min-height: 39px; padding: 6px 13px; border: 0; border-radius: 4px 4px 0 0; background: transparent; color: var(--muted); font-weight: 550; }
.tabs .button[aria-pressed="true"] { color: var(--brand-dark); background: transparent; font-weight: 650; }
.tabs .button[aria-pressed="true"]::after { position: absolute; content: ""; bottom: -1px; left: 11px; right: 11px; height: 3px; border-radius: 2px 2px 0 0; background: var(--brand); }
.tabs .button:hover:not(:disabled) { background: #eaf1f9; color: var(--brand-dark); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.stat { min-width: 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stat dt { color: var(--muted); font-size: 12px; }
.stat dd { margin: 7px 0 0; font-size: clamp(21px, 2.4vw, 31px); font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar-cell progress, .bar-cell meter { width: min(120px, 15vw); height: 7px; border: 0; border-radius: 5px; overflow: hidden; accent-color: var(--brand); }
.progress-cell progress { width: 61px; }
progress::-webkit-progress-bar { border-radius: 5px; background: #e6edf5; }
progress::-webkit-progress-value { border-radius: 5px; background: #3880cc; }
.positions-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.position-rows { display: grid; gap: 9px; padding: 0 12px; }
.position-rows:not(:empty) { padding-bottom: 12px; }
.position-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc; }
.position-row label:has(textarea), .position-row button { grid-column: 1 / -1; }
.position-row button { justify-self: end; }
.notifications { position: fixed; z-index: 10; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: min(400px, calc(100vw - 36px)); }
.notification { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.notification .icon { color: var(--green); }
.notification.error, .notification.error .icon { color: var(--red); }

@media (min-width: 761px) and (max-width: 1050px) {
  :root { --side-width: 182px; }
  .brand { padding-inline: 14px; }
  .content, .topbar { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 9; top: 0; left: 0; width: min(260px, 85vw); display: none; }
  .sidebar.open { display: flex; }
  #nav-backdrop:not([hidden]) { display: block !important; position: fixed; z-index: 8; inset: 0; width: 100%; border: 0; border-radius: 0; background: rgb(10 24 42 / 43%); }
  body.nav-open { overflow: hidden; }
  .nav-link { min-height: 40px; }
  .topbar { min-height: 56px; padding: 0 14px; }
  .menu-toggle { display: inline-flex !important; width: 35px; padding: 0; border-color: transparent; font-size: 18px; }
  .breadcrumbs, .account-menu { gap: 7px; }
  .breadcrumb-home, .breadcrumb-separator { display: none; }
  .account-menu .logout { padding: 4px 8px; font-size: 15px; }
  .logout > span { display: none; }
  .account-info { max-width: 104px; }
  .content { padding: 16px 13px 30px; }
  .page-heading { align-items: flex-start; gap: 10px; margin: 4px 0 15px; }
  .page-heading h1 { font-size: 23px; }
  .page-actions { gap: 6px; }
  .panel-heading { padding: 11px 14px; }
  .list-tools { flex-wrap: wrap; }
  .filters { gap: 9px 10px; padding: 12px 14px 14px; }
  .filters > label, .filters .wide { min-width: 0; max-width: 100%; width: auto; flex: 1 1 126px; }
  .filter-actions { flex: 1 1 auto; }
  .list-heading + .filters { padding-top: 4px; }
  .action-column { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat dd { font-size: 22px; }
  .detail-grid { gap: 0 12px; }
  .modal, .modal.wide { width: calc(100vw - 20px); max-height: 92dvh; }
  .modal-heading { min-height: 53px; padding: 9px 14px; }
  .modal-body { padding: 15px 14px; }
}
@media (max-width: 480px) {
  .list-heading:has(.list-tools > :nth-child(3)) { gap: 5px; }
  .list-tools:has(> :nth-child(3)) { width: 100%; margin-left: -4px; }
  .form-columns, .form-layout .two-columns, .position-row { grid-template-columns: minmax(0, 1fr); }
  .account-avatar { width: 29px; height: 29px; }
  .empty-records { min-height: 130px; }
}

.auth-shell {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}

.auth-shell:has(.auth-view:not([hidden])) {
  display: grid;
}

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 47% 41%, #17385f 0%, transparent 59%),
    linear-gradient(145deg, #101f36, #091525 70%);
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(#80aef01a 1px, transparent 1px),
    linear-gradient(90deg, #80aef01a 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(ellipse at 52% 53%, #000 15%, transparent 72%);
}

.auth-visual-frame {
  position: absolute;
  inset: clamp(18px, 3vw, 44px);
  z-index: -1;
  border: 1px solid #91b8ef25;
  border-radius: 20px;
  background: radial-gradient(circle at 49% 51%, #0b172937, transparent 63%);
}

.auth-visual-frame::before,
.auth-visual-frame::after {
  position: absolute;
  width: 24px;
  height: 24px;
  border: solid #79a8ed8c;
  content: "";
}

.auth-visual-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
  border-top-left-radius: 20px;
}

.auth-visual-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: 20px;
}

.auth-visual .robot-particles {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: end;
  padding: 30px clamp(28px, 4.5vw, 72px);
}

.auth-view {
  grid-row: 2;
  width: min(100%, 410px);
  margin-block: 20px;
}

.auth-heading {
  margin-bottom: 34px;
}

.auth-heading .auth-mark {
  display: inline-grid;
  width: 45px;
  height: 45px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #245bd2;
  color: #fff;
  box-shadow: 0 5px 12px #245bd22e;
}

.auth-heading h1 {
  max-width: 100%;
  margin: 0;
  color: #14233a;
  font-size: clamp(26px, 3.4vw, 35px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.auth-platform-name {
  margin-bottom: 9px;
  color: #516783;
  font-size: 14px;
  font-weight: 600;
}

.auth-form {
  gap: 17px;
}

.auth-form label {
  gap: 8px;
  color: #253851;
  font-size: 14px;
}

.auth-form input {
  min-height: 46px;
  padding-inline: 13px;
  border-color: #d3dfed;
  border-radius: 8px;
  color: #162741;
  background: #fbfdff;
}

.auth-form input:focus-visible {
  border-color: #4e83e7;
  outline: 3px solid #e1edff;
  outline-offset: 0;
  background: #fff;
}

.auth-form .button.primary {
  min-height: 47px;
  margin-top: 8px;
  border-radius: 8px;
  border-color: #245bd2;
  background: #245bd2;
  font-size: 15px;
}

.auth-form .button.primary:hover {
  border-color: #194dbd;
  background: #194dbd;
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(162px, 28vw, 232px) 1fr;
  }

  .auth-visual {
    min-height: 0;
  }

  .auth-visual-frame {
    inset: 13px;
    border-radius: 13px;
  }

  .auth-visual-frame::before {
    border-top-left-radius: 13px;
  }

  .auth-visual-frame::after {
    border-bottom-right-radius: 13px;
  }

  .auth-panel {
    grid-template-rows: 1fr;
    align-items: start;
    padding: 25px clamp(20px, 6vw, 46px) 22px;
  }

  .auth-view {
    grid-row: 1;
    margin-block: 8px;
  }

  .auth-heading {
    margin-bottom: 24px;
  }

  .auth-heading .auth-mark {
    margin-bottom: 15px;
  }

}

.overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  min-height: 218px;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 18px;
  border: 1px solid #263e58;
  border-radius: 12px;
  background: linear-gradient(103deg, #0e2035 0%, #111f33 49%, #102640 100%);
  color: #f5f9ff;
}

.overview-hero-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 58% 47%, #214264, transparent 69%);
}

.overview-hero-art::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(#8cb7ef1c 1px, transparent 1px),
    linear-gradient(90deg, #8cb7ef1c 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  mask-image: radial-gradient(ellipse at 58% 50%, #000 10%, transparent 76%);
}

.overview-hero-art .robot-particles {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.overview-hero-body {
  align-self: center;
  min-width: 0;
  padding: 24px clamp(22px, 3vw, 40px);
}

.overview-hero h1 {
  font-size: clamp(25px, 2.8vw, 39px);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.overview-hero-description {
  margin-top: 9px;
  color: #c8d7ea;
  line-height: 1.55;
}

.overview-hero-context {
  margin-top: 14px;
  color: #bad0eb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.overview-hero-actions {
  margin-top: 17px;
}

.overview-hero-actions .button.primary {
  border-color: #3378e5;
  background: #2562cf;
  color: #fff;
}

.overview-hero-actions .button.primary:hover {
  background: #1c51b4;
}

.overview-hero .button:focus-visible {
  outline-color: #a6d2ff;
}

.overview-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.overview-metric {
  --status-dot: #8798ad;
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: start;
  gap: 9px;
  border: 0;
  padding: 15px clamp(12px, 2vw, 24px) 17px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.overview-metric + .overview-metric::after {
  position: absolute;
  inset: 14px auto 14px 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.overview-metric.active { --status-dot: #5f86ae; }
.overview-metric.complete { --status-dot: #598777; }
.overview-metric.review { --status-dot: #9b8152; }

.overview-metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.overview-metric-label::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-dot);
  content: "";
}

.overview-metric-value {
  font-size: clamp(22px, 2.75vw, 32px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.overview-metric:hover { background: #f5f8fc; }

.overview-metric[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 -3px #5a88cc;
}

.overview-metric[aria-pressed="true"] .overview-metric-label { color: var(--brand-dark); }
.overview-metric:focus-visible { z-index: 1; outline-offset: -4px; }

.overview-dashboard-toolbar {
  flex-wrap: wrap;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.overview-dashboard-toolbar .tabs {
  margin-bottom: 0;
}

.overview-dashboard-toolbar .list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@media (max-width: 850px) {
  .overview-hero { min-height: 190px; }
}

@media (max-width: 600px) {
  .overview-hero { min-height: 174px; margin-bottom: 14px; }
  .overview-hero-body { padding: 18px 2px 18px 15px; }
  .overview-hero-description { font-size: 13px; }
  .overview-hero-context { font-size: 11px; }
  .overview-hero-actions { margin-top: 13px; }
  .overview-hero .button { min-height: 40px; }
  .overview-status-strip { margin-bottom: 14px; }
  .overview-metric { gap: 8px; padding: 13px 8px 14px 10px; }
  .overview-metric-label { gap: 5px; font-size: 12px; }
  .overview-metric-label::before { flex-basis: 6px; width: 6px; height: 6px; }
}
