@charset "UTF-8";

:root {
  color-scheme: dark;
  --back: #0b1017;
  --surface: #111922;
  --surface-alt: #151f2a;
  --line: #222e3b;
  --line-dim: #1b2531;
  --ink: #eaf1f6;
  --muted: #8d9daf;
  --quiet: #6f8399;
  --mint: #a0f4d0;
  --mint-strong: #76e3b7;
  --mint-dark: #14332d;
  --rose: #ffa5a9;
  --amber: #ebc38a;
  --blue: #a3bcff;
  --sidebar: 228px;
  font: 15px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--back); color: var(--ink); isolation: isolate; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
a { color: inherit; text-decoration: none; }
input, button, select, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.mono, kbd { font-family: "Cascadia Code", Consolas, monospace; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 9px 14px; border-radius: 8px; background: var(--mint); color: #041712; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
#main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.shell { min-height: 100dvh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 23px 15px 15px; border-right: 1px solid var(--line-dim); background: #0d141d; }
.brand { display: flex; gap: 12px; align-items: center; padding: 1px 9px; width: fit-content; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; position: relative; flex: none; isolation: isolate; border-radius: 12px; background: linear-gradient(145deg,#23463f,#101b25); border: 1px solid #497367; box-shadow: inset 0 0 0 2px #111f24, inset 0 0 0 3px #8ff1cd23, 0 3px 12px #080f1570; color: var(--mint); }
.brand-mark .icon { width: 29px; height: 29px; filter: drop-shadow(0 0 7px #8df6cd65); }
.hat-hit { position: absolute; width: 32px; height: 26px; right: -9px; top: -11px; animation: hat-drop .65s cubic-bezier(.15,.83,.33,1.32) both; }
.hat { position: absolute; width: 24px; height: 17px; right: 4px; top: 3px; transform-origin: 30% 87%; transform: rotate(20deg); }
.winter-off .hat-hit { visibility: hidden; pointer-events: none; }
body:not(.winter-off) .hat-hit:hover .hat, body:not(.winter-off) .brand:focus-visible .hat { animation: hat-wiggle .72s ease-in-out both; }
.brand-name { display: block; width: max-content; color: #edf5f8; font-weight: 850; letter-spacing: .17em; line-height: 1.15; font-size: 16px; transform-origin: left center; }
.brand-name:hover, .brand:focus-visible .brand-name, .brand-name.is-tapped {
  color: transparent;
  background: linear-gradient(104deg,#edf5f8 32%,#8df3c4 46%,#d1fff0 50%,#8df3c4 55%,#edf5f8 68%) 100% 50% / 290% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wordmark-shimmer .77s ease-in-out both;
}
.brand-name.is-tapped { animation: wordmark-tap .42s ease-out both; }
.brand-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.nav-caption { margin: 36px 10px 11px; color: var(--quiet); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.nav-link:hover { color: var(--ink); background: #17212c; }
.nav-link.active { color: var(--mint); background: #142823; border-color: #24463b; }
.nav-link.active::before { content: ""; position: absolute; width: 2px; left: 0; top: 11px; bottom: 11px; border-radius: 4px; background: var(--mint-strong); box-shadow: 0 0 10px #8df6cd90; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.sidebar-bottom .nav-link { font-size: 14px; }
.rail-switch { background: transparent; text-align: left; }
.rail-person { margin-top: 1px; display: flex; align-items: center; gap: 9px; padding: 7px; color: var(--ink); background: #131d28; border: 1px solid var(--line); border-radius: 9px; text-align: left; min-width: 0; }
.rail-person:hover { background: #192532; }
.rail-person .icon:last-child { margin-left: auto; width: 15px; color: var(--quiet); }
.rail-person-text { display: grid; min-width: 0; }
.rail-person-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; }
.rail-person-text small { font-size: 12px; color: var(--muted); }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; flex: none; overflow: hidden; background: linear-gradient(145deg,#204941,#162b2e); color: var(--mint); border: 1px solid #3c6764; font-weight: 750; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.violet { background: #29233d; color: #c8b7ff; border-color: #463a63; }
.avatar.blue { background: #1d3049; color: #b6d2fb; border-color: #304c71; }
.avatar.amber { background: #362d22; color: #eac68c; border-color: #564433; }
.avatar.rose { background: #3a2837; color: #f2b4d8; border-color: #634258; }

.main-shell { margin-left: var(--sidebar); min-height: 100dvh; }
.topbar { height: 67px; display: flex; align-items: center; gap: 13px; padding: 0 30px; border-bottom: 1px solid var(--line-dim); background: #0e151e; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb .icon { width: 13px; color: #526579; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-open { display: flex; align-items: center; gap: 9px; background: #111a24; min-width: 153px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--muted); text-align: left; font-size: 13px; }
.search-open:hover { border-color: #3a5064; }
.search-open kbd { margin-left: auto; color: #8899ab; background: #1b2835; font-size: 11px; padding: 0 4px; border-radius: 4px; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; color: var(--muted); background: #111a24; border: 1px solid var(--line); border-radius: 8px; transition: color .2s, background .2s, border-color .2s; }
.icon-btn:hover { color: var(--mint); background: #172a2a; border-color: #315349; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-toggle, .nav-close, .nav-shade { display: none; }

.content { max-width: 1560px; margin: 0 auto; padding: 25px 30px 35px; }
.page-enter { animation: page-in .38s cubic-bezier(.22,.62,.31,1) both; }
.reveal { animation: page-in .52s cubic-bezier(.22,.62,.31,1) both; animation-delay: calc(var(--order, 0) * 55ms); }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 181px; display: flex; align-items: center; padding: 22px 27px; border: 1px solid #294139; border-radius: 13px; background: linear-gradient(99deg,#13231f 0%,#132520 39%,#112924 72%,#142c26 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 79% 63%,#54ddb033 0%,transparent 48%),linear-gradient(90deg,transparent 25%,#132d2840 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 40%; background-image: linear-gradient(#85e6c415 1px,transparent 1px),linear-gradient(90deg,#85e6c415 1px,transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(90deg,transparent,#0006 38%,#000); }
.hero-content { position: relative; z-index: 1; }
.hero h1, .page-heading h1 { font-size: clamp(29px, 3.2vw, 40px); font-weight: 760; letter-spacing: -.042em; line-height: 1.13; }
.hero p { margin: 7px 0 16px; color: #a0b7ad; font-size: 15px; }
.hero-canvas { position: absolute; right: 0; top: 0; width: 51%; height: 100%; pointer-events: none; }
.hero-index { color: #8cb4a5; position: absolute; bottom: 12px; right: 16px; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.hero-index .icon { width: 14px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 2px 0 21px; }
.page-heading p { color: var(--muted); margin-top: 6px; }

.email-reminder { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 11px 14px; border: 1px solid #33564c; border-radius: 12px; background: #152924; color: var(--mint); transition: background .2s, border-color .2s; }
.email-reminder:hover, .email-reminder:focus-visible { background: #1b362e; border-color: var(--mint-strong); }
.email-reminder > .icon:last-child { flex: 0 0 auto; margin-left: auto; }
.email-mark { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #203c34; color: var(--mint); }
.email-mark .icon { width: 21px; height: 21px; }
.email-copy { min-width: 0; overflow-wrap: anywhere; }
.email-copy strong, .email-copy small { display: block; }
.email-copy small, .email-copy p, .email-delivery { color: var(--muted); font-size: 13px; }
.email-copy h2 { font-size: 17px; }
.email-card { max-width: 520px; padding: clamp(14px, 3vw, 24px); display: grid; gap: 15px; }
.email-card-header, .email-actions { display: flex; align-items: center; gap: 10px; }
.email-form { display: grid; gap: 12px; }
.email-form input { letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.email-actions { flex-wrap: wrap; }
.email-card > .btn { justify-self: start; }
.email-delivery:empty { display: none; }
@media (max-width: 420px) {
  .email-actions > .btn { flex: 1 1 100%; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid transparent; padding: 8px 13px; min-height: 37px; font-weight: 650; font-size: 14px; line-height: 1.25; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .25s, transform .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #09241a; background: var(--mint); border-color: #b6ffdf; box-shadow: 0 2px 13px #8ef5cc1e; }
.btn-primary:hover { background: #b5fbdd; box-shadow: 0 4px 20px #8ef5cc36; }
.btn-outline { color: #d3dee7; background: #151f2a; border-color: #2b3a4a; }
.btn-outline:hover { background: #1c2a36; border-color: #496476; }
.btn-text { padding: 4px 5px; min-height: 32px; color: var(--mint); transition: color .2s; background: none; }
.btn-text:hover { color: #d1ffeb; }
.btn-danger { background: #38252d; color: var(--rose); border-color: #613944; }
.btn-danger:hover { background: #4a2d37; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.metric { min-width: 0; min-height: 111px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px 11px; transition: border-color .22s, background .22s, transform .22s; }
.metric:hover { border-color: #355648; background: #14201f; transform: translateY(-2px); }
.metric-top { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.metric-icon, .event-icon { display: inline-grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 8px; background: #1b3530; color: var(--mint); }
.metric-icon .icon, .event-icon .icon { width: 16px; height: 16px; }
.metric-icon.blue, .event-icon.blue { background: #203047; color: #a7c3ff; }
.metric-icon.violet, .event-icon.violet { background: #2c2844; color: #c6b6ff; }
.metric-icon.amber, .event-icon.amber { background: #3b3023; color: #f2ca91; }
.metric-icon.rose, .event-icon.rose { background: #382831; color: var(--rose); }
.metric-value { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; font-size: clamp(22px,2.1vw,30px); font-weight: 720; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.metric-foot { color: var(--quiet); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-foot .gain { color: var(--mint-strong); margin-right: 5px; font-weight: 650; }

.dash-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(245px,1fr); gap: 14px; margin-bottom: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; padding: 14px 16px 10px; }
.panel-head h2, .card-title { font-size: 16px; font-weight: 690; letter-spacing: -.014em; }
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 1px; }
.segment { display: flex; gap: 1px; padding: 3px; border: 1px solid var(--line); background: #0d151e; border-radius: 8px; }
.segment button { min-width: 38px; min-height: 26px; padding: 3px 7px; border-radius: 5px; border: none; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.segment button[aria-pressed=true] { background: #23332f; color: var(--mint); box-shadow: 0 1px 3px #0005; }
.segment button:hover { color: var(--mint); }
.chart { position: relative; padding: 0 15px 10px; height: 199px; display: grid; grid-template-columns: 35px minmax(0,1fr); grid-template-rows: minmax(0,1fr) 19px; grid-template-areas: "y plot" ". x"; column-gap: 7px; }
.chart.y-large { height: 250px; }
.chart-y { grid-area: y; display: flex; flex-direction: column; justify-content: space-between; color: var(--quiet); font-size: 12px; text-align: right; line-height: 1; padding: 0 0 1px; margin: -4px 0 -4px; font-variant-numeric: tabular-nums; }
.chart-draw { grid-area: plot; position: relative; outline-offset: 1px; touch-action: pan-y; }
.chart-draw svg { height: 100%; width: 100%; display: block; overflow: visible; }
.chart-grid { stroke: #24323e; stroke-dasharray: 4 5; stroke-width: 1; }
.chart-area { animation: appear .7s ease both; }
.chart-line { stroke: #8cf2c9; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 5px #73efb77c); stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 1.1s cubic-bezier(.18,.65,.25,1) both; }
.chart-cursor { stroke: #b9f5d984; stroke-dasharray: 3 4; stroke-width: 1; visibility: hidden; }
.chart-dot { width: 10px; height: 10px; position: absolute; background: var(--mint); border: 2px solid #142525; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; visibility: hidden; }
.chart-x { grid-area: x; display: flex; justify-content: space-between; align-items: end; color: var(--quiet); font-size: 12px; white-space: nowrap; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; color: var(--ink); background: #1e2b37; border: 1px solid #395361; border-radius: 7px; padding: 4px 7px; white-space: nowrap; font-size: 12px; box-shadow: 0 4px 15px #0005; transform: translateX(-50%); }
.chart-tip[hidden] { display: none; }
.activity { display: grid; padding: 0 15px 7px; }
.activity-row { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 6px 0; border-top: 1px solid var(--line-dim); }
.activity-row:first-child { border-top: none; }
.activity-info { flex: 1; min-width: 0; display: grid; line-height: 1.32; }
.activity-info strong { font-size: 13px; font-weight: 640; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.activity-info small, .activity-row time { color: var(--quiet); font-size: 12px; }
.activity-row time { flex: none; white-space: nowrap; }
.activity-row:hover strong { color: var(--mint); }

.table-scroll { overflow-x: auto; }
.mobile-cell-label { display: none; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 10px 15px; border-top: 1px solid var(--line-dim); }
th { color: #94a5b8; font-weight: 600; font-size: 12px; background: #121b25; }
td { font-size: 13px; }
th:first-child, td:first-child { padding-left: 17px; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: #16212b; }
.table-person { display: inline-flex; gap: 8px; align-items: center; }
.table-person .avatar { width: 25px; height: 25px; border-radius: 6px; font-size: 10px; }
.table-actions { width: 1%; }
.table-actions .icon-btn { height: 28px; width: 28px; }
.table-hwid { display: inline-flex; align-items: center; gap: 7px; }
.table-hwid-reset { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; min-height: 25px; border: 1px solid #2e4851; border-radius: 6px; background: #15252c; color: #b7d3cd; font-size: 12px; }
.table-hwid-reset:hover { border-color: #609383; color: var(--mint); background: #1d3831; }
.table-hwid-reset .icon { width: 13px; height: 13px; }
.badge { border-radius: 999px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 5px; background: #203631; color: #a5eacb; font-size: 12px; font-weight: 600; }
.badge .icon { width: 12px; height: 12px; stroke-width: 2; }
.badge.wait { background: #3b3226; color: #f2ce95; }
.badge.stop { background: #382631; color: #f1a9bd; }
.badge.idle { background: #25313d; color: #adbed1; }
.badge.online { background: #193830; color: #a4f6cf; }
.badge.online .icon { filter: drop-shadow(0 0 3px #79ecb975); }
.code-token { color: #c7d7e5; font-size: 12px; letter-spacing: .02em; }
.key-mask { display: inline-flex; gap: 7px; align-items: center; padding: 3px 7px; min-height: 26px; border: 1px solid #344858; border-radius: 6px; background: #152431; color: #b7c8d6; }
.key-mask:hover { background: #1d3139; border-color: #537f71; color: var(--mint); }
.key-mask .icon { width: 13px; height: 13px; }
.key-value { white-space: nowrap; filter: blur(2px); transition: filter .2s ease; font-size: 12px; }
.key-revealed .key-value { filter: none; user-select: text; }
.expiry-time { position: relative; display: inline-grid; place-items: center start; border: 0; background: transparent; padding: 0; color: inherit; text-align: left; cursor: help; text-decoration: underline dotted #637e8a; text-underline-offset: 3px; }
.expiry-tip { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 6px); padding: 5px 8px; border: 1px solid #395665; border-radius: 6px; background: #1a2a37; color: #dcecf4; box-shadow: 0 5px 12px #0005; white-space: nowrap; font-size: 12px; font-weight: 500; text-decoration: none; opacity: 0; visibility: hidden; pointer-events: none; }
.expiry-time:is(:focus-visible, [aria-expanded=true]) .expiry-tip { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .expiry-time:hover .expiry-tip { opacity: 1; visibility: visible; }
}
.text-muted { color: var(--muted); }
.empty { padding: 25px 16px; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters > nexus-select { --choice-height: 36px; min-width: min(174px,100%); font-size: 13px; }
.field-inline { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid #30404e; border-radius: 8px; padding: 0 10px; background: #0d151e; color: var(--muted); }
.field-inline input { outline: none; border: none; background: transparent; color: var(--ink); min-width: 0; width: 155px; padding: 6px 0; }
.field-inline:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }

.profile-grid, .settings-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); gap: 14px; margin-bottom: 15px; }
.profile-card, .settings-card { padding: 17px; }
.profile-card p, .settings-card p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.profile-person { display: flex; gap: 13px; align-items: center; margin: 14px 0; min-width: 0; }
.profile-person > div { min-width: 0; }
.profile-person h3, .profile-person p { overflow-wrap: anywhere; }
.avatar.large { width: 64px; height: 64px; border-radius: 15px; font-size: 22px; }
.avatar-editor { position: relative; display: inline-grid; flex: none; padding: 0; border: 0; border-radius: 15px; color: var(--ink); background: transparent; }
.avatar-upload-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #eefff8;
  background: #07171291;
  box-shadow: inset 0 0 0 1px #b4fddd78;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.avatar-editor:is(:hover, :focus-visible) .avatar-upload-mark { opacity: 1; }
.avatar-upload-mark .icon { width: 23px; height: 23px; filter: drop-shadow(0 1px 3px #0a161c); }
@media (hover: none) {
  .avatar-upload-mark { inset: auto -3px -3px auto; width: 26px; height: 26px; border-radius: 8px; background: #172f2ae8; opacity: 1; }
  .avatar-upload-mark .icon { width: 16px; height: 16px; }
}
.profile-details { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; border-top: 1px solid var(--line-dim); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.profile-details code { overflow-wrap: anywhere; }
.detail-list { display: grid; gap: 9px; margin: 13px 0; }
.detail-list > div { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.detail-list strong { overflow-wrap: anywhere; }
.setting-row { display: flex; gap: 13px; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-dim); }
.appearance-card .setting-row { flex-wrap: wrap; }
.appearance-picker { flex: 0 1 228px; }
.setting-copy { flex: 1; min-width: 0; }
.setting-copy p { overflow-wrap: anywhere; }
.switch { width: 42px; height: 24px; border-radius: 20px; border: 1px solid #405161; background: #25313e; padding: 3px; flex: none; transition: background .22s; }
.switch::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #9dafbc; transition: transform .22s, background .22s; }
.switch[aria-pressed=true] { border-color: #529879; background: #234b3c; }
.switch[aria-pressed=true]::before { transform: translateX(17px); background: var(--mint); }

.auth-shell { min-height: 100dvh; max-width: 1430px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 28px; }
.auth-art { position: relative; isolation: isolate; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid #294139; border-radius: 18px; background: radial-gradient(ellipse at 50% 45%,#23493e,transparent 65%),#11241f; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#8df2d319 1px,transparent 1px),linear-gradient(90deg,#8df2d319 1px,transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse,#000 20%,transparent 77%); }
.auth-art .hero-canvas { width: 100%; height: 69%; top: 8%; }
.auth-art .brand { position: relative; padding: 0; z-index: 1; }
.auth-caption { z-index: 1; }
.auth-caption h2 { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.04em; line-height: 1.15; max-width: 360px; }
.auth-caption p { margin-top: 10px; color: #a9c1b6; }
.auth-side { display: grid; place-items: center; padding: 12px; }
.auth-form { width: min(100%, 397px); }
.auth-form .brand { display: none; }
.auth-form h1 { font-size: 31px; line-height: 1.15; letter-spacing: -.035em; }
.auth-form > p { margin: 6px 0 14px; color: var(--muted); }
.auth-form > form, .modal-form { display: grid; gap: 11px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: #c2d0db; }
.field input, .field select, .filters select { min-width: 0; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #31404e; border-radius: 8px; color: var(--ink); background: #0c141d; }
.filters select { width: auto; min-height: 36px; font-size: 13px; }
.field select, .filters select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2397aabc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7 4.5 4.5L13.5 7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 18px; }
input[type=search]::-webkit-search-cancel-button { appearance: none; width: 14px; height: 14px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2397aabc' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m3.5 3.5 7 7m0-7-7 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.password-input input::-ms-reveal { display: none; }
.field input::placeholder { color: #6f8296; font-weight: 400; }
.login-identity { position: relative; }
.login-identity input { padding-right: 47px; }
.login-avatar { position: absolute; inset: 0 6px 0 auto; display: grid; align-items: center; pointer-events: none; }
.login-avatar .avatar { width: 28px; height: 28px; border-radius: 7px; animation: avatar-in .22s ease-out both; }
.password-input { position: relative; }
.password-input input { padding-right: 44px; }
.password-input button { position: absolute; right: 4px; top: 3px; border-color: transparent; background: transparent; }
.turnstile-slot { min-width: 0; line-height: 0; }
.turnstile-slot:empty { display: none; }
.turnstile-slot iframe { display: block; border: 0; }
.challenge-status { font-size: 13px; line-height: 1.4; color: var(--muted); }
.auth-actions { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.auth-actions a, .auth-actions button { padding: 0; border: 0; background: transparent; color: var(--mint); }
.auth-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-dim); }
.auth-shortcuts .btn { white-space: normal; }
.form-error { color: var(--rose); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }

#modal { width: min(470px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #354858; border-radius: 13px; background: #131e29; color: var(--ink); box-shadow: 0 25px 70px #000a; }
#modal[open] { animation: page-in .22s ease-out both; }
#modal::backdrop { background: #05090cba; backdrop-filter: blur(4px); }
.modal-inner { padding: 18px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { font-size: 21px; line-height: 1.2; }
.modal-text { color: var(--muted); margin-bottom: 10px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.staff-role { display: inline-flex; padding: 3px 8px; border: 1px solid #33594d; border-radius: 6px; background: #19332c; color: var(--mint); font-weight: 650; font-size: 12px; }
.staff-role.owner { border-color: #5c4832; background: #372c20; color: var(--amber); }
.staff-role.support { border-color: #4a3f66; background: #2a243c; color: #c9b8ff; }
.staff-role.license_manager { border-color: #344f76; background: #1d2c43; color: #b6ceff; }
.staff-tabs button { flex: 1; min-height: 33px; font-size: 13px; }
.staff-search { position: relative; }
.staff-search .icon { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.staff-search input { padding-left: 35px; }
.staff-picker { display: grid; align-content: start; gap: 3px; max-height: min(250px, 30dvh); overflow-y: auto; padding: 4px; background: #0e1620; border: 1px solid var(--line); border-radius: 9px; }
.staff-picker-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; }
.staff-picker-item:hover { background: #172432; }
.staff-picker-item[aria-pressed=true] { border-color: #3b6758; background: #1c332d; }
.staff-picker-name { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.staff-picker-name strong, .staff-picker-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.staff-picker-name small { color: var(--muted); font-size: 12px; }
.staff-picker-check { display: grid; place-items: center; width: 21px; height: 21px; flex: none; border: 1px solid #394d5c; border-radius: 6px; color: transparent; }
.staff-picker-check .icon { width: 14px; height: 14px; }
.staff-picker-item[aria-pressed=true] .staff-picker-check { border-color: #6ea48d; background: #2a4d3e; color: var(--mint); }
.staff-credentials { display: grid; gap: 8px; margin: 14px 0; }
.staff-credentials > div { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #334455; border-radius: 8px; background: #0d1620; }
.staff-credentials small { color: var(--muted); }
.staff-credentials code { color: var(--mint); overflow-wrap: anywhere; user-select: all; }
.capture-toolbar { margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.capture-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.capture-card { min-width: 0; display: grid; padding: 0; overflow: hidden; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s, transform .2s; }
.capture-card:hover { border-color: #4a7768; transform: translateY(-2px); }
.capture-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1721; }
.capture-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.capture-latest { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border: 1px solid #698e81; border-radius: 6px; background: #132821e3; color: #bff0d9; font-size: 12px; }
.capture-caption, .capture-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; }
.capture-caption strong { font-size: 14px; font-weight: 650; }
.capture-caption time, .capture-details time, .capture-details > span:last-child { color: var(--muted); font-size: 12px; }
#modal.capture-modal { width: min(940px,calc(100vw - 28px)); }
.capture-viewer { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #0b1119; }
.capture-viewer > img { width: 100%; max-height: 65dvh; object-fit: contain; }
.config-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.config-section + .config-section { margin-top: 21px; }
.config-section > h2 { margin: 0 0 10px; font-size: 17px; font-weight: 680; }
.config-card { display: flex; flex-direction: column; min-width: 0; gap: 14px; padding: 16px; background: radial-gradient(ellipse at 2% 2%,#203b355c,transparent 58%),var(--surface); transition: border-color .2s; }
.config-card:hover { border-color: #3e6659; }
.config-card-heading { display: flex; align-items: center; gap: 10px; flex: 1; }
.config-card-heading h3 { font-size: 17px; font-weight: 720; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.config-mark { width: 41px; height: 41px; display: grid; place-items: center; flex: none; border: 1px solid #426c5e; border-radius: 11px; background: linear-gradient(145deg,#24473d,#172f2c); color: var(--mint); }
.config-mark .icon { width: 23px; height: 23px; }
.config-author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.config-author > div { display: grid; min-width: 0; }
.config-author small, .config-footer time { color: var(--muted); font-size: 12px; }
.config-author strong { font-size: 14px; overflow-wrap: anywhere; }
.config-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-dim); }
.config-modal-actions { margin-top: 12px; }
.field .config-code { color: var(--mint); letter-spacing: .04em; font-weight: 700; }
.lookup-results { display: grid; gap: 5px; max-height: 40vh; margin-top: 10px; overflow: auto; }
.lookup-results > p { color: var(--muted); padding: 6px 0; }
.lookup-hit { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; border: 1px solid transparent; color: var(--muted); }
.lookup-hit:hover { background: #1b2a36; color: var(--mint); border-color: var(--line); }
#notices { z-index: 10; position: fixed; bottom: 16px; right: 16px; display: grid; justify-items: end; gap: 7px; pointer-events: none; }
.notice { display: flex; align-items: center; gap: 8px; background: #192e2a; border: 1px solid #3c6656; color: #d9ffef; border-radius: 9px; padding: 10px 13px; max-width: calc(100vw - 28px); box-shadow: 0 8px 20px #0006; animation: page-in .25s ease both; font-size: 14px; }
.notice.error { background: #35252e; border-color: #6e4250; color: #ffd1d6; }
[data-live-insert]:not(.login-avatar) { animation: live-in .3s cubic-bezier(.22,.62,.31,1) both; }
.login-avatar[data-live-insert] .avatar { animation: none; }
.chart-awaiting-entry :is(.chart-line, .chart-area) { animation: none; opacity: .4; }
#snow { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; opacity: .78; transition: opacity .35s; }
.snow-layer {
  position: absolute;
  inset: calc(0px - var(--tile-height)) -35px 0;
  background-size: var(--tile-width) var(--tile-height);
  animation: snow-fall var(--fall-time) var(--fall-delay) linear infinite;
}
.snow-far {
  --tile-width: 448px;
  --tile-height: 322px;
  --fall-time: 12s;
  --fall-delay: -3s;
  --drift: 11px;
  background-image:
    radial-gradient(circle at 8% 21%, #daedf857 0 .65px, transparent 1.35px),
    radial-gradient(circle at 32% 73%, #bfe0ef56 0 .75px, transparent 1.5px),
    radial-gradient(circle at 59% 41%, #e1f4ff71 0 .75px, transparent 1.6px),
    radial-gradient(circle at 83% 86%, #daedf85e 0 .8px, transparent 1.7px);
}
.snow-mid {
  --tile-width: 574px;
  --tile-height: 417px;
  --fall-time: 12s;
  --fall-delay: -7s;
  --drift: -21px;
  background-image:
    radial-gradient(circle at 13% 64%, #def1fc8c 0 1px, transparent 2px),
    radial-gradient(circle at 36% 17%, #e4f6fc83 0 1.15px, transparent 2.4px),
    radial-gradient(circle at 62% 48%, #d2e7fb85 0 1.1px, transparent 2.35px),
    radial-gradient(circle at 91% 87%, #e1f4ff8a 0 1.1px, transparent 2.25px);
}
.snow-near {
  --tile-width: 692px;
  --tile-height: 516px;
  --fall-time: 10s;
  --fall-delay: -5s;
  --drift: 31px;
  background-image:
    radial-gradient(circle at 17% 49%, #e7f7ff9c 0 1.35px, transparent 3.35px),
    radial-gradient(circle at 48% 84%, #def1ff96 0 1.4px, transparent 3.15px),
    radial-gradient(circle at 80% 16%, #f0fbffad 0 1.45px, transparent 3.05px);
}
.winter-off #snow { opacity: 0; }
.winter-off .snow-layer { animation-play-state: paused; }

#aurora, #fireflies { position: fixed; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .38s; }
#aurora { z-index: -1; }
#fireflies { z-index: 6; }
[data-ambient="aurora"] #aurora, [data-ambient="fireflies"] #fireflies { opacity: 1; }
.aurora-ribbon { position: absolute; inset: -35% -34% -20%; opacity: .8; animation: aurora-drift 19s ease-in-out infinite alternate paused; }
.aurora-ribbon:first-child {
  background: radial-gradient(ellipse at 38% 36%, #419c6640, transparent 37%), radial-gradient(ellipse at 67% 67%, #3a7bae40, transparent 37%);
}
.aurora-ribbon:last-child {
  opacity: .68;
  animation: aurora-drift 24s -9s ease-in-out infinite alternate-reverse paused;
  background: radial-gradient(ellipse at 48% 42%, #5b45994a, transparent 35%), radial-gradient(ellipse at 70% 34%, #39a99542, transparent 31%);
}
[data-ambient="aurora"] .aurora-ribbon, [data-ambient="fireflies"] .firefly-layer { animation-play-state: running; }
.firefly-layer {
  position: absolute;
  inset: -36px -30px -360px;
  background-size: 480px 360px;
  background-image:
    radial-gradient(circle at 8% 29%, #e1ffd9b8 0 1px, #b9f4ad40 2px, transparent 7px),
    radial-gradient(circle at 31% 57%, #afeac8b5 0 1px, #63e3b03b 2px, transparent 6px),
    radial-gradient(circle at 55% 13%, #ffe1a3b8 0 1px, #edbb5e40 2px, transparent 8px),
    radial-gradient(circle at 81% 75%, #f8edb9ad 0 1px, #e8df793e 2px, transparent 6px);
  animation: firefly-rise 22s linear infinite paused;
}
.firefly-layer:last-child { background-position: 240px 130px; animation-delay: -12s; opacity: .55; }
@keyframes aurora-drift {
  from { transform: translate3d(-9%, -5%, 0) rotate(-8deg) scale(1.09); }
  to { transform: translate3d(12%, 12%, 0) rotate(9deg) scale(1.28); }
}
@keyframes firefly-rise {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -360px, 0); }
}
@keyframes ambient-breathe { from { opacity: .46; } to { opacity: .78; } }

@keyframes snow-fall {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--drift), calc(var(--tile-height) / 2), 0); }
  100% { transform: translate3d(0, var(--tile-height), 0); }
}
@keyframes page-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes live-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-page-in { from { opacity: .4; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-card-in { from { opacity: .52; transform: translateY(9px) scale(.989); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: .64; translate: 0 25px; } to { opacity: 1; translate: 0 0; } }
@keyframes gentle-fade { from { opacity: .55; } to { opacity: 1; } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes avatar-in { from { opacity: 0; transform: translateX(3px) scale(.8); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes hat-drop { from { opacity: 0; translate: 0 -11px; rotate: -25deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes hat-wiggle {
  0%, 100% { transform: translateY(0) rotate(20deg); }
  23% { transform: translateY(-6px) rotate(-17deg); }
  53% { transform: translateY(-2px) rotate(42deg); }
  76% { transform: translateY(-1px) rotate(10deg); }
}
@keyframes wordmark-shimmer {
  0% { background-position: 100% 50%; transform: translateY(0); }
  53% { transform: translateY(-2px); }
  100% { background-position: 0 50%; transform: translateY(0); }
}
@keyframes wordmark-tap {
  0% { background-position: 100% 50%; transform: scale(.96); }
  47% { transform: translateY(-2px) scale(1.09); filter: drop-shadow(0 0 7px #78f3ba95); }
  100% { background-position: 0 50%; transform: scale(1); filter: none; }
}
@keyframes wordmark-tap-reduced {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}
@media (max-width: 1220px) {
  :root { --sidebar: 202px; }
  .topbar, .content { padding-left: 21px; padding-right: 21px; }
  .metric { padding-left: 10px; padding-right: 10px; }
  .metric-top { gap: 6px; }
  .capture-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .config-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: minmax(0,1fr); }
  .activity { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .activity-row:nth-child(2) { border-top: none; }
  .profile-grid, .settings-grid { grid-template-columns: 1fr; }
  .hero-canvas { width: 58%; }
}
@media (max-width: 860px) {
  :root { --sidebar: min(292px, calc(100vw - 32px)); }
  .nav-open { overflow: hidden; }
  .main-shell { margin-left: 0; }
  .sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    padding: calc(18px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    transform: translateX(-102%);
    transition: transform .29s cubic-bezier(.22,.62,.31,1), opacity .24s ease, visibility 0s .29s;
  }
  .nav-open .sidebar { visibility: visible; opacity: 1; transform: translateX(0); transition-delay: 0s; }
  .sidebar-bottom { padding-top: 20px; }
  .nav-caption { margin-top: 24px; }
  .nav-link { min-height: 46px; }
  .sidebar-header .brand { min-width: 0; padding-left: 6px; gap: 8px; }
  .sidebar-header .brand-desc { white-space: normal; }
  .nav-shade { display: block; position: fixed; inset: 0; z-index: 4; background: #05090bc2; border: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility 0s .24s; }
  .nav-open .nav-shade { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .mobile-toggle, .nav-close { display: inline-grid; }
  .topbar {
    position: sticky;
    z-index: 3;
    top: 0;
    height: auto;
    min-height: 59px;
    gap: 8px;
    padding-block: calc(7px + env(safe-area-inset-top)) 7px;
  }
  .topbar, .content { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .content { padding-top: 15px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .breadcrumb { min-width: 0; gap: 6px; }
  .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
  .top-actions { gap: 7px; }
  .icon-btn, .table-actions .icon-btn, .search-open { min-height: 44px; }
  .icon-btn, .table-actions .icon-btn { width: 44px; }
  .btn { min-height: 44px; white-space: normal; text-align: center; }
  .segment button { min-height: 38px; min-width: 42px; }
  .field input, .field select, .filters select, .field-inline input { font-size: 16px; }
  .field input, .field select, .filters select, .field-inline, .table-hwid-reset, .expiry-time { min-height: 44px; }
  .table-hwid-reset { padding-inline: 9px; }
  .key-mask { min-height: 44px; }
  .password-input input { padding-right: 50px; }
  .password-input button { top: 0; right: 1px; }
  .hero { min-height: 165px; padding: 17px; }
  .page-enter { animation-name: phone-page-in; animation-duration: .42s; }
  .reveal { animation-name: phone-card-in; animation-duration: .46s; }
  .capture-card:not([data-live-insert], [data-live-insert] *) { animation: phone-card-in .42s cubic-bezier(.22,.62,.31,1) both; }
  :is(.btn, .icon-btn, .nav-link, .capture-card, .key-mask, .avatar-editor):not(:disabled):active { transform: scale(.967); }
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: max(22px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    min-height: 100dvh;
  }
  .auth-art { display: none; }
  .auth-form .brand { display: flex; margin-bottom: 22px; padding-left: 0; }
  .auth-side { padding: 8px; }
  .auth-actions a, .auth-actions button { min-height: 44px; display: inline-flex; align-items: center; }
  #notices { bottom: max(14px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); }
}
@media (max-width: 1024px) {
  .table-scroll { overflow: visible; padding: 9px; }
  .responsive-table { display: block; white-space: normal; }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .responsive-table tbody { display: grid; gap: 9px; }
  .responsive-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 13px;
    row-gap: 10px;
    padding: 12px;
    background: #121b25;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .responsive-table td, .responsive-table td:first-child { display: block; border: 0; padding: 0; min-width: 0; }
  .responsive-table .data-primary, .responsive-table .data-wide { grid-column: 1 / -1; }
  .responsive-table .data-primary { min-height: 44px; display: grid; align-content: center; padding-right: 46px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-weight: 650; }
  .responsive-table .data-primary .data-value { font-size: 15px; }
  .responsive-table .table-actions { position: absolute; top: 7px; right: 9px; width: auto; }
  .mobile-cell-label { display: block; color: var(--muted); font: 600 12px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif; margin-bottom: 3px; }
  .responsive-table .data-primary .mobile-cell-label { display: none; }
  .responsive-table .data-value { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
  .responsive-table .table-person, .responsive-table .table-hwid { flex-wrap: wrap; }
  .responsive-table .staff-role, .responsive-table .badge { max-width: 100%; }
  .responsive-table .data-wide .expiry-tip { right: auto; left: 0; }
}
@media (min-width: 650px) and (max-width: 1024px) {
  .responsive-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #modal, #modal.capture-modal {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)));
    border-radius: 15px 15px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #modal[open] { animation: sheet-in .38s cubic-bezier(.2,.72,.24,1) both; }
  .modal-inner { padding: 15px max(14px, env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .modal-head h2 { overflow-wrap: anywhere; }
  .modal-actions > .btn { flex: 1 1 auto; }
  .capture-viewer > img { max-height: 55dvh; }
}
@media (max-width: 540px) {
  .header-search-label, .search-open kbd, .hero-index { display: none; }
  .search-open { display: grid; min-width: 0; width: 44px; place-items: center; }
  .breadcrumb > span, .breadcrumb > .icon { display: none; }
  .hero-canvas { opacity: .58; width: 73%; }
  .hero p { max-width: 230px; }
  .hero-content { max-width: 100%; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .metric-foot { white-space: normal; }
  .activity { grid-template-columns: 1fr; }
  .activity-row:nth-child(2) { border-top: 1px solid var(--line-dim); }
  .activity-info strong, .activity-info small { white-space: normal; overflow-wrap: anywhere; }
  .panel-head { padding-left: 12px; padding-right: 12px; }
  .chart { padding-left: 8px; padding-right: 12px; }
  .chart-x span:nth-child(even):not(:last-child) { display: none; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 11px; }
  .page-heading > div { flex-basis: 100%; min-width: 0; }
  .page-heading > .btn { width: 100%; }
  .filters { width: 100%; }
  .filters > .field-inline, .filters > nexus-select { flex: 1 1 155px; max-width: 100%; }
  .field-inline input { width: 100%; }
  .profile-details, .setting-row { align-items: flex-start; flex-wrap: wrap; }
  .setting-copy { min-width: min(160px,100%); }
  .capture-grid { grid-template-columns: minmax(0,1fr); }
  .config-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .topbar, .content { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .auth-shell { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .auth-side { padding-inline: 0; }
  .metric-top { font-size: 12px; }
  .metric-icon { width: 28px; height: 28px; }
  .staff-picker-item { padding-inline: 5px; gap: 6px; }
  .staff-picker-item .badge { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.snow-layer), *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body:not(.winter-off) .hat-hit:hover .hat, body:not(.winter-off) .brand:focus-visible .hat { animation-duration: .72s !important; }
  .brand-name:hover, .brand:focus-visible .brand-name { animation-duration: .77s !important; }
  .brand-name.is-tapped { animation-name: wordmark-tap-reduced; animation-duration: .26s !important; }
  .aurora-ribbon, .firefly-layer { animation-name: ambient-breathe; animation-duration: 9s !important; animation-direction: alternate; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  :is(.page-enter, .reveal, .capture-card):not([data-live-insert], [data-live-insert] *) {
    animation-name: gentle-fade;
    animation-duration: .3s !important;
  }
  .login-avatar:not([data-live-insert]) .avatar,
  #modal[open] {
    animation-name: gentle-fade;
    animation-duration: .25s !important;
  }
  .sidebar, .nav-shade { transition-property: opacity, visibility; transition-duration: .2s, 0s !important; transition-delay: 0s, .2s; }
  .switch, .switch::before { transition-duration: .18s !important; }
}
