:root {
  --canvas: #141518;
  --surface: #1c1d22;
  --paper: var(--surface);
  --surface-soft: #25262d;
  --ink: #f0eef6;
  --navy: var(--ink);
  --graphite: #2a2a32;
  --muted: #aba9b6;
  --line: #393940;
  --divider: #303037;
  --accent: #b5a5ff;
  --on-accent: #201a31;
  --accent-hover: #cabdff;
  --accent-soft: #332e47;
  --blue: var(--accent);
  --blue-soft: var(--accent-soft);
  --blue-line: #514865;
  --purple: var(--accent);
  --purple-soft: var(--accent-soft);
  --purple-line: var(--blue-line);
  --teal: #8bc8c6;
  --teal-soft: #283b3d;
  --green: #99d5b2;
  --green-soft: #24372f;
  --green-line: #3c5949;
  --amber: #e7bd82;
  --amber-soft: #3a3025;
  --amber-line: #5e4b33;
  --red: #efa3ab;
  --red-soft: #402b31;
  --red-line: #62404a;
  --chart-input: #b5a5ff;
  --chart-output: #78a8ae;
  --radius-panel: 18px;
  --radius-control: 9px;
  --ease-out: cubic-bezier(.2,.74,.22,1);
  --ease-slide: cubic-bezier(.22,.9,.34,1);
  color-scheme: dark;
  accent-color: var(--accent);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
  color: var(--navy);
  background: var(--canvas);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.device-row-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.device-row-actions .button { padding:8px 12px; font-size:12px; }
.device-management-summary { margin-top:10px; font-size:12px; color:var(--muted); }
.device-dialog { width:min(720px,calc(100vw - 32px)); max-height:90vh; overflow:auto; padding:26px; border:1px solid var(--line); border-radius:14px; color:var(--navy); background:var(--paper); box-shadow:0 20px 70px #05050773; }
dialog { overscroll-behavior: contain; }
dialog[open] { animation: dialog-arrive .23s var(--ease-out); }
dialog::backdrop { background: #07080bbb; backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: veil-arrive .18s var(--ease-out); }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes veil-arrive { from { opacity: 0; } to { opacity: 1; } }
.device-dialog-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; }
.device-dialog-heading h2 { font-size:20px; overflow-wrap:anywhere; }
.device-dialog-heading label { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.device-dialog select { max-width:100%; min-height:42px; border:1px solid var(--line); border-radius:7px; padding:8px 12px; color:var(--navy); background:var(--paper); font:inherit; }
.device-dialog select:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.device-dialog-message { margin:18px 0; color:var(--muted); }
.device-dialog-message.is-error { color:var(--red); }
.device-dialog-summary { margin-top:12px; font-variant-numeric:tabular-nums; }
.device-dialog-note { margin-top:12px; font-size:12px; color:var(--muted); }
.device-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.device-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:22px 0; }
.device-form-grid label { display:grid; gap:8px; color:var(--muted); font-size:13px; }
.device-form-grid select { width:100%; color:var(--navy); }
.device-config-status { padding:5px 10px; border-radius:6px; font-size:12px; background:var(--blue-soft); color:var(--blue); }
.device-config-status.is-good { background:var(--green-soft); color:var(--green); }
.device-config-status.is-error { background:var(--red-soft); color:var(--red); }
.environment-chart-section { border-top:1px solid var(--line); padding-top:14px; margin-top:18px; }
.environment-chart-section h3 { display:flex; align-items:center; gap:8px; font-size:14px; }
.environment-temperature-key,.environment-humidity-key { display:inline-block; width:20px; height:3px; background:var(--blue); }
.environment-humidity-key { background:var(--teal); }
.environment-chart { display:block; width:100%; height:auto; overflow:visible; }
.environment-temperature-line { stroke:var(--blue); stroke-width:2; stroke-linejoin:round; }
.environment-humidity-line { stroke:var(--teal); stroke-width:2; stroke-linejoin:round; }
.environment-temperature-dot { fill:var(--blue); }
.environment-humidity-dot { fill:var(--teal); }
.environment-chart circle:focus { outline:none; stroke:var(--navy); stroke-width:3; }
@media(max-width:600px) { .device-dialog { padding:18px; } .device-form-grid { gap:14px; } .device-dialog .chart-label { font-size:18px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 650; }
button, input, select, textarea { border-radius: var(--radius-control); }
input:not([type="checkbox"],[type="radio"]),select,textarea { border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); padding: 8px 11px; min-height: 39px; }
input::placeholder,textarea::placeholder { color: #9896a4; }
input[readonly] { color: var(--muted); }
textarea { resize: vertical; }
code,kbd,samp,time,.quota-value,.device-summary strong,.token-total strong,.environment-metric strong,.reset-count strong,.token-ratio strong,.chart-label,.reset-credit-date { font-family: var(--font-mono,monospace); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 10; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.topbar { min-height: 80px; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 48px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; text-decoration: none; flex-shrink: 0; letter-spacing: -.4px; }
.brand-description { font-size: 15px; font-weight: 500; margin-left: 7px; letter-spacing: 0; }
.private-label { display: inline-flex; color: var(--muted); font-size: 12px; gap: 7px; align-items: center; }
.private-label .icon { width: 15px; height: 15px; }
.toolbar { display: flex; align-items: center; gap: 10px; }
.refresh-state { font-size: 12px; color: var(--muted); margin-right: 8px; }
.button { min-height: 39px; padding: 8px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; font-weight: 550; font-size: 13px; line-height: 1.45; transition: transform .15s var(--ease-out), background .16s, border-color .16s, color .16s; }
.button .icon { width: 16px; height: 16px; }
.button:not(:disabled):active { transform: scale(.975); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:not(:disabled):hover { background: var(--accent-hover); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-secondary:not(:disabled):hover { background: var(--surface-soft); border-color: #5a5867; }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:not(:disabled):hover { background: var(--surface-soft); color: var(--ink); }
.button.danger-button:not(:disabled):hover { color: var(--red); background: #4e333b; border-color: var(--red-line); }
main { max-width: 1440px; padding: 0 48px 28px; margin: 0 auto; }
.startup-panel { margin: 17vh auto; max-width: 440px; text-align: center; padding: 40px 20px; }
.startup-panel h1 { font-size: 24px; margin: 18px 0 8px; }
.startup-panel p { color: var(--muted); margin-bottom: 20px; }
.loading-ring { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-layout { display: grid; grid-template-columns: 1.06fr 1fr; overflow: hidden; background: var(--surface); min-height: 536px; max-width: 1000px; margin: clamp(25px,6vh,80px) auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 16px 55px #08080c40; }
.login-story { isolation: isolate; overflow: hidden; padding: clamp(32px,4vw,56px); background: var(--graphite); color: white; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.login-story::before { content: ""; z-index: -1; position: absolute; inset: 0; background: radial-gradient(#a5a4af3a .8px, transparent .95px) 0 0 / 12px 12px; mask-image: linear-gradient(140deg,transparent 10%,#000 68%); }
.login-story h1 { font-size: clamp(36px,4.5vw,57px); font-weight: 570; letter-spacing: -.055em; line-height: 1.17; }
.login-board { margin: 8px -18px; }
.login-board svg { display: block; width: 100%; max-height: 210px; overflow: visible; }
.board-traces { fill: var(--graphite); stroke: #82818f; stroke-width: 1.2; }
.board-shadow { fill: #202126; stroke: #51515e; }
.board-base { fill: #36363f; stroke: #7d7b8d; }
.board-top { fill: #42424d; stroke: #9a97ac; }
.board-edge { fill: none; stroke: #b3a2f0; stroke-width: 2; }
.board-chip { fill: #34343b; stroke: #a6a2b1; }
.board-glyph { fill: #c8baf4; }
.story-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 20px; padding-top: 18px; border-top: 1px solid #53535e; }
.story-topics span { display: flex; align-items: center; gap: 8px; color: #ecebf1; font-size: 13px; }
.story-topics .icon { width: 16px; height: 16px; color: #b9aedf; }
.login-form-wrap { width: 100%; padding: 42px clamp(32px,4.4vw,70px); align-self: center; }
.login-emblem { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.login-heading h2 { font-size: 27px; letter-spacing: -.7px; margin-bottom: 10px; }
.login-heading p { color: var(--muted); line-height: 1.8; margin-bottom: 30px; }
#login-form { display: flex; flex-direction: column; }
#login-form label { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
#login-form input { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 13px; margin-bottom: 20px; font-size: 16px; }
.login-button { width: 100%; margin-top: 4px; height: 46px; }
.form-error { color: var(--red); background: var(--red-soft); padding: 11px 13px; margin-bottom: 14px; border-radius: 6px; font-size: 13px; }
.login-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-top: 21px; line-height: 1.8; }
.login-note .icon { width: 14px; height: 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 0 30px; }
.page-heading h1 { font-size: 32px; font-weight: 650; letter-spacing: -1px; margin-bottom: 7px; }
.page-heading p { color: var(--muted); font-size: 13px; }
.snapshot-time { display: grid; justify-items: end; font-size: 11px; color: var(--muted); line-height: 1.9; flex-shrink: 0; }
.snapshot-time strong { color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.notice { border: 1px solid var(--amber-line); border-left: 4px solid var(--amber); background: var(--amber-soft); color: var(--amber); border-radius: 8px; padding: 13px 17px; margin-bottom: 20px; line-height: 1.75; }
.notice.is-error { background: var(--red-soft); color: var(--red); border-color: var(--red-line); border-left-color: var(--red); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); min-width: 0; overflow: hidden; }
.panel-heading { padding: 22px 25px 19px; margin-bottom: 18px; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-heading h2 { color: var(--ink); font-size: 19px; font-weight: 650; margin-bottom: 3px; letter-spacing: -.035em; line-height: 1.5; }
.panel-heading p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 570; background: var(--surface-soft); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.is-good { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.badge.is-waiting { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.badge.is-waiting::before { background: transparent; }
.badge.is-info { background: var(--purple-soft); color: var(--purple); border-color: var(--purple-line); }
.badge.is-warning { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.badge.is-error { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.quota-windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 26px 25px; gap: 30px; }
.quota-window { min-width: 0; }
.quota-window h3 { font-size: 13px; font-weight: 500; color: var(--muted); }
.quota-value { font-size: 45px; line-height: 1.3; letter-spacing: -1.8px; font-weight: 600; margin-top: 5px; font-variant-numeric: tabular-nums; }
.quota-value .value-unit { font-size: 18px; margin-left: 3px; letter-spacing: 0; font-weight: 450; }
.quota-value.is-unknown { font-size: 29px; line-height: 1.95; letter-spacing: 0; color: var(--muted); }
.quota-window meter { width: 100%; height: 8px; margin: 12px 0 14px; display: block; border: none; background: #3c3c46; border-radius: 4px; }
.quota-window meter::-webkit-meter-bar { border: none; background: #3c3c46; border-radius: 4px; height: 8px; }
.quota-window meter::-webkit-meter-optimum-value { background: var(--teal); border-radius: 4px; }
.quota-window meter::-moz-meter-bar { background: var(--teal); }
.quota-window meter.is-warning::-webkit-meter-optimum-value { background: var(--amber); }
.quota-window meter.is-warning::-moz-meter-bar { background: var(--amber); }
.quota-window meter.is-stale::-webkit-meter-optimum-value { background: #81808d; }
.quota-window meter.is-stale::-moz-meter-bar { background: #81808d; }
.quota-reset { font-size: 11px; color: var(--muted); line-height: 1.8; }
.quota-reset time { display: block; font-variant-numeric: tabular-nums; color: var(--navy); font-size: 12px; }
.reset-cards { border: 1px solid var(--line); margin: 0 26px; padding: 18px; border-radius: 10px; background: var(--surface-soft); }
.reset-count { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.reset-count > span:first-child { flex-basis: 100%; margin-bottom: -5px; }
.reset-count strong { font-size: 28px; color: var(--amber); line-height: 1.4; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.reset-expiry { text-align: right; font-size: 12px; line-height: 1.8; }
.reset-expiry span { font-size: 11px; color: var(--muted); }
.panel-footnote { padding: 16px 26px 19px; color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.panel-footnote span { overflow-wrap: anywhere; }
.device-glyph { width: 28px; height: 22px; border: 2px solid #92909f; border-radius: 4px; position: relative; margin-top: 3px; }
.device-glyph::after { content: ""; position: absolute; width: 12px; height: 2px; background: #92909f; bottom: -6px; left: 6px; }
.device-summary { padding: 0 26px 17px; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 12px; }
.device-summary strong { font-size: 38px; line-height: 1.4; color: var(--navy); font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.device-summary strong.is-good { color: var(--green); }
.device-list { list-style: none; padding: 0 26px; margin: 0; }
.device-row { border-top: 1px solid var(--line); padding: 15px 0; }
.device-row-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.device-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.device-last { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 8px; overflow-wrap: anywhere; }
.device-last time { font-variant-numeric: tabular-nums; }
.device-environment { margin-top: 14px; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.environment-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.environment-title { color: var(--muted); font-size: 11px; font-weight: 550; }
.environment-readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0 10px; }
.environment-metric { min-width: 0; }
.environment-metric dt { color: var(--muted); font-size: 11px; }
.environment-metric dd { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 4px; margin: 3px 0 0; }
.environment-metric strong { color: var(--blue); font-size: clamp(23px, 2vw, 29px); line-height: 1.4; font-variant-numeric: tabular-nums; }
.environment-metric.is-previous strong { color: var(--muted); }
.environment-metric strong.is-unknown { font-size: 20px; color: var(--muted); }
.environment-unit { color: var(--muted); font-size: 10px; }
.environment-sampled, .environment-attempt { color: var(--muted); font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.environment-sampled time { display: block; font-variant-numeric: tabular-nums; }
.environment-attempt { margin-top: 5px; color: var(--amber); }
.environment-explanation { display: block; margin-top: 4px; }
body[data-view="share"] .environment-explanation { display: none; }
.device-explanation { background: var(--surface-soft); color: var(--muted); padding: 14px 26px 17px; font-size: 10px; line-height: 1.9; border-top: 1px solid var(--divider); }
.site-table-wrap { padding: 0 26px; }
.site-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.site-table th { font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; background: var(--surface-soft); padding: 10px; }
.site-table th:first-child { width: 46%; border-radius: 5px 0 0 5px; }
.site-table th:nth-child(2) { width: 29%; }
.site-table th:last-child { width: 25%; border-radius: 0 5px 5px 0; text-align: right; }
.site-table td { padding: 13px 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.site-table tr:last-child td { border-bottom: none; }
.site-table tbody tr:hover { background: var(--surface-soft); }
.site-name { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.site-sampled { font-size: 10px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.site-latency { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-latency span { font-size: 10px; color: var(--muted); margin-left: 3px; }
.table-note { padding: 12px 26px 19px; color: var(--muted); font-size: 10px; }
.token-total { padding: 0 26px 23px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 11px; color: var(--muted); }
.token-total > span:first-child { flex-basis: 100%; }
.token-total strong { font-size: clamp(28px, 3.1vw, 42px); font-weight: 600; line-height: 1.3; letter-spacing: -1px; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.token-breakdown { margin: 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px 15px; font-size: 12px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.token-breakdown dt { color: var(--muted); }.token-breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.token-breakdown dt.is-subset { padding-left: 12px; font-size: 11px; }.token-breakdown dd.is-subset { font-size: 11px; }
.token-breakdown .metric-input_tokens { color: var(--blue); }
.token-breakdown .metric-cached_input_tokens { color: var(--teal); }
.token-breakdown .metric-output_tokens { color: var(--purple); }
.token-breakdown .metric-reasoning_output_tokens { color: var(--amber); }
.token-coverage { padding: 16px 26px 5px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.token-update { padding: 0 26px 21px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.empty-state { color: var(--muted); padding: 18px 0; font-size: 13px; line-height: 1.8; }
.quota-windows > .empty-state { grid-column: 1 / -1; min-height: 145px; display: flex; align-items: center; }
.dashboard-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 1px 0; font-size: 10px; color: var(--muted); }
.details-grid { grid-template-columns: minmax(0, 1fr); }
.panel-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.panel-action { min-height: 33px; font-size: 11px; padding: 6px 11px; white-space: nowrap; }
.device-refresh-notice { margin: 0 26px 14px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 9px 11px; font-size: 10px; line-height: 1.8; }
.device-refresh-notice.is-error { background: var(--red-soft); color: var(--red); }
.site-manager { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--navy); box-shadow: 0 22px 80px #05050773; }
.site-manager-heading { padding: 25px 28px 12px; }.site-manager-heading h2 { font-size: 24px; margin-bottom: 8px; }.site-manager-heading p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.site-manager-message { margin: 0 28px 14px; font-size: 12px; line-height: 1.8; color: var(--muted); }.site-manager-message.is-error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 6px; }
.site-editor-list { list-style: none; padding: 0 28px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.site-editor-row { padding: 15px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.site-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 13px; }
.site-editor-actions { display: flex; gap: 4px; }.site-editor-actions .button { min-height: 30px; padding: 4px 9px; font-size: 11px; }.danger-button { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.danger-button:hover { color: var(--red); background: #4e333b; }
.site-editor-field { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); margin-top: 10px; gap: 6px; }
.site-editor-field input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--navy); min-height: 40px; padding: 8px 11px; font-size: 14px; }
.site-manager-add { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 28px 12px; }.site-manager-add span { font-size: 11px; color: var(--muted); }
.site-manager-help { margin: 0 28px 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }.site-reload { margin: 0 28px 18px; }
.site-manager-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface); position: sticky; bottom: 0; }
@media (max-width: 580px) { .device-refresh-notice { margin-left: 20px; margin-right: 20px; }.site-manager { max-height: calc(100dvh - 24px); width: calc(100% - 24px); border-radius: 11px; }.site-manager-heading { padding: 22px 18px 12px; }.site-manager-heading h2 { font-size: 22px; }.site-manager-message { margin-left: 18px; margin-right: 18px; }.site-editor-list { padding: 0 18px; }.site-editor-row { padding: 12px; }.site-editor-actions .button { padding: 5px 7px; }.site-editor-field input { font-size: 16px; }.site-manager-add { padding: 18px 18px 12px; }.site-manager-add span { font-size: 10px; }.site-manager-help { margin-left: 18px; margin-right: 18px; }.site-manager-footer { padding: 14px 18px; }.site-reload { margin-left: 18px; margin-right: 18px; }.panel-heading-actions { gap: 7px; }.panel-heading-actions { flex-direction: column; align-items: flex-end; } }
.tokens-panel { order: -1; }
.account-panel { order: -2; }
.account-stats { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr .9fr .9fr; margin: 0 26px 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; gap: 20px; }
.account-stat { min-width: 0; border-left: 1px solid var(--line); padding-left: 13px; }
.account-stat dt { font-size: 12px; color: var(--muted); }
.account-stat dd { margin: 9px 0 4px; font: 550 clamp(18px,1.6vw,24px)/1.45 var(--font-mono,monospace); letter-spacing: -.04em; color: var(--ink); overflow-wrap: anywhere; }
.account-stat .account-stat-detail { font-size: 10px; color: var(--muted); font-weight: 400; margin: 0; }
.account-trend-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 26px 17px; }
.account-trend-heading h3 { font-size: 14px; font-weight: 650; }.account-trend-heading p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.account-ranges,.token-windows,.activity-modes { --selection-color: #3a3449; width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #202026; }
.account-range-button,.token-window-button,.activity-mode { position: relative; min-height: 31px; padding: 5px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.55; white-space: nowrap; transition: color .16s,background .16s; }
:is(.account-range-button,.token-window-button,.activity-mode):hover { color: var(--ink); background: #2c2b32; }
:is(.account-range-button,.token-window-button,.activity-mode)[aria-pressed="true"] { background: var(--selection-color); color: #dcd0ff; }
[data-selection-ready] > :is(.account-range-button,.token-window-button,.activity-mode)[aria-pressed="true"] { background: transparent; }
.account-chart-wrap { padding: 0 22px; min-height: 160px; }.account-chart { display: block; width: 100%; overflow: visible; }
.account-chart-bar { fill: var(--blue); }.account-chart-zero { stroke: var(--blue); stroke-width: 2; }
.account-chart-note { font-size: 10px; color: var(--muted); padding: 4px 26px 16px; line-height: 1.9; }
.account-updates { padding: 0 26px 15px; display: flex; flex-wrap: wrap; gap: 5px 24px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.account-daily-details { margin: 0 26px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-daily-details summary { cursor: pointer; width: fit-content; color: var(--blue); font-size: 12px; }
.account-daily-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.account-daily-table-wrap { margin-top: 14px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
.account-daily-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; font-variant-numeric: tabular-nums; }
.account-daily-table th { text-align: left; font-weight: 550; color: var(--muted); background: var(--surface-soft); position: sticky; top: 0; }
.account-daily-table th, .account-daily-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-daily-table th:first-child { width: 38%; }.account-daily-table th:last-child, .account-daily-table td:last-child { text-align: right; }
.account-daily-table tr:last-child td { border-bottom: 0; }
.account-explanation { border-top: 1px solid var(--line); background: var(--surface-soft); padding: 13px 26px 16px; font-size: 10px; color: var(--muted); line-height: 1.9; }
.account-notice { margin: 0 26px 18px; background: var(--amber-soft); color: var(--amber); padding: 10px 13px; font-size: 12px; line-height: 1.8; border-radius: 7px; }
.account-notice.is-error { background: var(--red-soft); color: var(--red); }.account-retry { margin: 0 26px 18px; }
@media (max-width: 1050px) { .account-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }.account-stat { grid-column: span 2; }.account-stat:nth-child(-n+2) { grid-column: span 3; }.account-trend-heading { flex-direction: column; } }
@media (max-width: 580px) { .account-stats { margin: 0 20px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }.account-stat, .account-stat:nth-child(-n+2) { grid-column: auto; }.account-stat:last-child { grid-column: 1 / -1; }.account-stat dd { font-size: 19px; }.account-stat dt { font-size: 11px; }.account-trend-heading { padding: 0 20px 14px; width: 100%; }.account-ranges { width: 100%; }.account-range-button { flex: 1 0 auto; padding: 7px 8px; }.account-chart-wrap { padding: 0 9px; min-height: 130px; }.account-chart { min-height: 130px; }.account-chart-note, .account-updates, .account-explanation { padding-left: 20px; padding-right: 20px; }.account-daily-details { margin-left: 20px; margin-right: 20px; }.account-daily-table td, .account-daily-table th { padding: 10px; }.account-notice { margin-left: 20px; margin-right: 20px; }.account-retry { margin-left: 20px; margin-right: 20px; } }
.token-windows { max-width: calc(100% - 52px); margin: 0 26px 18px; }
.token-history-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); padding: 5px 0 0; }
.token-chart-column { min-width: 0; }
.token-metrics-column { min-width: 0; padding-top: 12px; border-left: 1px solid var(--line); }
.token-chart-wrap { padding: 0 22px; min-height: 140px; }
.token-chart { width: 100%; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-input { fill: var(--chart-input); }
.chart-output { fill: var(--chart-output); }
.chart-zero { stroke: var(--purple); stroke-width: 2; }
.chart-empty { fill: var(--muted); font-size: 13px; }
.chart-legend { display: flex; gap: 18px; padding: 0 26px 12px; font-size: 11px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend span::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 2px; background: var(--chart-input); }
.chart-legend .output-legend::before { background: var(--chart-output); }
.chart-note { font-size: 10px; color: var(--muted); padding: 4px 26px 12px; }
.token-ratios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 26px 0; }
.token-ratio { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px; border-radius: 8px; background: var(--teal-soft); }
.token-ratio strong { color: var(--teal); }
.token-ratio:nth-child(2) { background: var(--purple-soft); }
.token-ratio:nth-child(2) strong { color: var(--purple); }
.token-ratio > span { color: var(--muted); font-size: 11px; }.token-ratio strong { font-size: 25px; font-variant-numeric: tabular-nums; }.token-ratio small { color: var(--muted); font-size: 10px; }
.token-notice { margin: 0 26px 16px; padding: 10px 13px; border-radius: 7px; color: var(--amber); background: var(--amber-soft); font-size: 12px; line-height: 1.8; }
.token-notice.is-error { color: var(--red); background: var(--red-soft); }
.token-retry { margin: 0 26px 17px; }
.tokens-panel .token-update { padding-bottom: 5px; }
.token-retention { color: var(--muted); font-size: 10px; padding: 0 26px 20px; line-height: 1.8; }
.token-source-details { border-top: 1px solid var(--line); padding: 13px 26px 16px; }
.token-source-details summary { cursor: pointer; font-size: 12px; color: var(--muted); width: fit-content; }
.token-source-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.token-sources { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.token-source { padding: 13px 0; border-bottom: 1px solid var(--divider); }
.token-source-heading { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.token-source-heading strong { font-size: 12px; overflow-wrap: anywhere; min-width: 0; }.token-source p { color: var(--muted); font-size: 10px; margin-top: 6px; }
@media (max-width: 800px) { .token-history-grid { grid-template-columns: 1fr; }.token-metrics-column { border-left: none; }.token-ratios { margin-bottom: 12px; }.token-sources { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .token-windows { margin: 0 18px 16px; max-width: calc(100% - 36px); }.token-window-button { font-size: 11px; padding: 4px 7px; flex: 1 0 auto; }.token-chart-wrap { padding: 0 10px; }.token-ratios { margin-left: 20px; margin-right: 20px; }.chart-legend, .chart-note { padding-left: 20px; padding-right: 20px; }.token-notice { margin-left: 20px; margin-right: 20px; }.token-retry { margin-left: 20px; }.token-retention { padding-left: 20px; padding-right: 20px; }.token-source-details { padding-left: 20px; padding-right: 20px; }.token-chart { min-height: 135px; } }
@media (min-width: 1600px) { .topbar, main { max-width: 1500px; } }
@media (max-width: 1050px) { .topbar { padding: 20px 28px; } main { padding-left: 28px; padding-right: 28px; } .overview-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }.details-grid { gap: 18px; }.panel-heading { padding: 22px 22px 18px; }.quota-windows { padding-left: 22px; padding-right: 22px; gap: 20px; }.login-form-wrap { padding: 46px 34px; }.login-story { padding-left: 36px; padding-right: 36px; }.refresh-state { display: none; } }
@media (max-width: 800px) { .overview-grid, .details-grid { grid-template-columns: 1fr; }.details-grid { margin-top: 18px; }.device-summary { padding-bottom: 12px; }.device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }.device-list:has(.device-row:only-child) { grid-template-columns: 1fr; }.login-layout { grid-template-columns: 1fr 1fr; margin-top: 25px; min-height: 500px; }.login-story { padding: 40px 28px 30px; }.login-story h1 { font-size: 28px; }.login-form-wrap { padding: 38px 28px; }.story-topics { gap: 12px; }.token-total strong { font-size: 42px; } }
@media (max-width: 580px) { .topbar { min-height: 72px; padding: 18px 18px; gap: 8px; }.brand { font-size: 18px; gap: 10px; }.brand-description { font-size: 12px; margin-left: 3px; }.toolbar { gap: 3px; }.toolbar .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }.private-label { font-size: 11px; }main { padding: 0 16px 24px; }.page-heading { padding: 18px 2px 22px; align-items: flex-start; flex-direction: column; gap: 16px; }.page-heading h1 { font-size: 28px; }.page-heading p { font-size: 12px; max-width: 290px; line-height: 1.9; }.snapshot-time { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 10px; }.snapshot-time strong { font-size: 11px; }.notice { padding: 11px 13px; font-size: 12px; }.panel-heading { padding: 20px 20px 17px; }.panel-heading h2 { font-size: 17px; }.panel-heading p { font-size: 11px; }.quota-windows { padding: 2px 20px 22px; gap: 20px; }.quota-value { font-size: 38px; }.quota-reset, .quota-reset time { font-size: 10px; }.reset-cards { margin: 0 20px; padding: 14px; gap: 10px; }.reset-expiry { font-size: 10px; }.reset-expiry span { font-size: 10px; }.reset-count { font-size: 10px; flex-shrink: 0; }.reset-count strong { font-size: 26px; }.panel-footnote { padding: 14px 20px 18px; font-size: 9px; }.device-summary { padding-left: 20px; padding-right: 20px; }.device-list { display: block; padding: 0 20px; }.device-explanation { padding-left: 20px; padding-right: 20px; }.site-table-wrap { padding: 0 13px; }.site-table th, .site-table td { padding-left: 7px; padding-right: 7px; }.site-table th:first-child { width: 43%; }.site-table th:nth-child(2) { width: 32%; }.site-name { font-size: 12px; }.site-sampled { font-size: 9px; }.site-latency { font-size: 12px; }.badge { font-size: 10px; gap: 5px; padding: 4px 6px; }.table-note { padding-left: 20px; padding-right: 20px; }.token-total { padding-left: 20px; padding-right: 20px; }.token-breakdown { margin-left: 20px; margin-right: 20px; }.token-coverage, .token-update { padding-left: 20px; padding-right: 20px; }.dashboard-footer { padding: 20px 3px 0; font-size: 9px; }.login-layout { display: flex; flex-direction: column; border-radius: 14px; margin: 16px 0; }.login-story { padding: 29px 28px; }.story-topics { display: none; }.login-story h1 { font-size: 25px; line-height: 1.5; margin-bottom: 12px; }.login-story > p { font-size: 12px; max-width: 280px; }.login-form-wrap { width: 100%; padding: 30px 28px 28px; }.login-heading h2 { font-size: 23px; }.login-heading p { font-size: 12px; margin-bottom: 24px; }.login-note { font-size: 11px; margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* The activity calendar follows the supplied graphite-and-blue reference. */
.token-activity { margin: 0 26px 28px; padding: 24px; background: #202126; border: 1px solid #3a3941; border-radius: 12px; color: #eaf0f7; }
.activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.activity-heading h3 { margin: 0; font-size: 18px; font-weight: 650; color: #f5f7fb; }
.activity-heading p { margin: 8px 0 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.activity-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
.activity-period-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.activity-period-label select { color: #eaf0f7; background: #29282f; border: 1px solid #514d5a; border-radius: 6px; padding: 7px 9px; min-height: 34px; font: inherit; font-size: 12px; }
.activity-scroll { overflow-x: auto; padding: 3px 3px 10px; scrollbar-color: #625d6b #29282f; }
.activity-calendar { --activity-columns: 53; --activity-rows: 7; min-width: 700px; }
.activity-months { display: grid; grid-template-columns: repeat(var(--activity-columns),minmax(0,1fr)); gap: 4px; margin-left: 23px; font-size: 11px; color: var(--muted); margin-bottom: 9px; min-height: 16px; }
.activity-months span { white-space: nowrap; }
.activity-grid { display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 4px; }
.activity-weekdays { display: grid; grid-template-rows: repeat(7,1fr); color: var(--muted); font-size: 9px; text-align: left; align-items: center; }
.activity-cells { display: grid; grid-auto-flow: column; grid-template-columns: repeat(var(--activity-columns),minmax(0,1fr)); grid-template-rows: repeat(var(--activity-rows),1fr); gap: 4px; }
.activity-cell { width: 100%; min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 4px; display: block; cursor: pointer; }
.activity-cell.is-padding { visibility: hidden; pointer-events: none; }.activity-cell.is-missing,.legend-swatch.is-missing { background: #35343a; }
.activity-cell.is-zero,.legend-swatch.is-zero { background: #2b2933; border-color: #98909f; }
.activity-cell.level-1,.legend-swatch.level-1 { background: #504363; }.activity-cell.level-2,.legend-swatch.level-2 { background: #756191; }
.activity-cell.level-3,.legend-swatch.level-3 { background: #a087ba; }.activity-cell.level-4,.legend-swatch.level-4 { background: #d0b8f0; }
.activity-cell:hover { outline: 2px solid #eee7ff; outline-offset: 0; }.activity-cell[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 1px; }
.token-activity :focus-visible { outline: 2px solid #d3c6ff; outline-offset: 3px; }
.activity-calendar.is-weekly .activity-weekdays { visibility: hidden; }
.activity-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 10px; }
.activity-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.activity-footer p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.activity-legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.legend-swatch { display: inline-block; width: 11px; height: 11px; border: 1px solid transparent; border-radius: 3px; }
.activity-selection { margin: 16px 0 0; min-height: 38px; padding: 10px 12px; background: #2b2a32; border-radius: 6px; color: #f0f5fc; font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.activity-explanation { margin: 10px 0 0; font-size: 10px; color: var(--muted); line-height: 1.8; }
@media (max-width: 800px) { .activity-heading { flex-direction: column; gap: 12px; }.activity-controls { justify-content: space-between; width: 100%; gap: 12px; }.token-activity { padding: 20px; }.activity-calendar { min-width: 680px; } }
@media (max-width: 580px) { .token-activity { margin: 0 16px 22px; padding: 16px 14px; border-radius: 9px; }.activity-heading h3 { font-size: 17px; }.activity-controls { align-items: flex-start; flex-direction: column; gap: 8px; }.activity-modes { gap: 2px; }.activity-mode { min-height: 34px; }.activity-period-label select { font-size: 16px; }.activity-heading { margin-bottom: 16px; }.activity-selection { font-size: 11px; }.activity-footer { gap: 10px; } }

.reset-card-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.reset-card-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; max-height: 440px; overflow-y: auto; }
.reset-credit-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 14px; min-width: 0; }
.reset-credit-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; color: var(--ink); font-size: 12px; }
.reset-credit-tag { border-radius: 4px; padding: 3px 6px; background: #37343d; font-size: 10px; line-height: 1.6; color: var(--ink); }
.reset-credit-label { margin: 14px 0 6px; color: var(--muted); font-size: 10px; }
.reset-credit-date { display: block; margin: 0; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; }
.reset-credit-footnote { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.reset-credit-card.is-soon { border-color: var(--amber-line); border-top-color: var(--amber); background: var(--amber-soft); }.reset-credit-card.is-soon .reset-credit-tag { background: #524130; color: var(--amber); }
.reset-credit-card.is-expired { border-color: var(--red-line); border-top-color: var(--red); background: var(--red-soft); }.reset-credit-card.is-expired .reset-credit-tag { color: var(--red); background: var(--red-soft); }
.reset-credit-card.is-never { border-color: var(--green-line); border-top-color: var(--green); }.reset-credit-card.is-never .reset-credit-tag { color: var(--green); background: var(--green-soft); }
.reset-credit-card.is-unknown { border-color: var(--blue-line); border-top-color: var(--blue); }.reset-credit-card.is-unknown .reset-credit-tag { color: var(--blue); background: var(--blue-soft); }
.reset-credit-card.is-stale .reset-credit-footnote { color: var(--amber); }
.reset-credit-placeholder { grid-column: 1/-1; border: 1px dashed #57545c; background: #27282e; color: var(--muted); padding: 18px 14px; border-radius: 7px; font-size: 12px; line-height: 1.8; }
.reset-card-notice { font-size: 11px; color: var(--amber); line-height: 1.8; margin: 0 0 12px; }
.reset-card-source { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 800px) { .reset-card-list { grid-template-columns: 1fr; }.reset-credit-date { font-size: 15px; } }
@media (max-width: 580px) { .reset-cards { padding: 14px; }.reset-card-summary { gap: 10px; }.reset-credit-card { padding: 13px; }.reset-credit-date { font-size: 14px; }.reset-card-list { max-height: 540px; } }

[data-view="share"] #share-manage-button, [data-view="share"] #logout-button, [data-view="share"] #site-manage-button, [data-view="share"] #device-refresh-button { display: none !important; }
.share-view-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 14px; padding: 14px 18px; margin-bottom: 22px; background: var(--purple-soft); color: var(--purple); border: 1px solid var(--purple-line); border-radius: 9px; font-size: 12px; line-height: 1.8; }
.share-view-notice strong { font-size: 14px; }.share-view-notice #share-view-expiry { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.share-manager { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--navy); box-shadow: 0 22px 80px #05050773; }
.share-manager-heading { padding: 25px 28px 16px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }.share-manager-heading h2 { font-size: 24px; color: var(--blue); margin: 0 0 7px; }.share-manager-heading p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.share-scope-note { margin: 19px 28px 17px; border-left: 3px solid var(--purple); padding: 2px 0 2px 13px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.share-manager-message { margin: 0 28px 16px; padding: 10px 12px; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 12px; line-height: 1.8; }.share-manager-message.is-error { color: var(--red); background: var(--red-soft); }
.share-create-form { margin: 0 28px 24px; padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.share-create-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.share-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; font-size: 12px; font-weight: 550; }
.share-field input, .share-field select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--navy); font: inherit; font-size: 14px; font-weight: 400; }
.share-field input:disabled, .share-field select:disabled { background: var(--surface-soft); color: var(--muted); }
.share-field small { font-size: 10px; font-weight: 400; color: var(--muted); line-height: 1.8; }.share-custom-field { margin-top: 16px; max-width: 340px; }
.share-manager select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.share-create-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; }
.share-expiry-preview { color: var(--muted); font-size: 11px; line-height: 1.8; font-variant-numeric: tabular-nums; }.share-create-footer .button { flex-shrink: 0; font-size: 12px; }
.share-list-section { padding: 0 28px 22px; }.share-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }.share-list-heading h3 { font-size: 15px; font-weight: 650; margin-bottom: 5px; }.share-list-heading p { font-size: 11px; color: var(--muted); }
.share-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.share-row { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-width: 0; }
.share-row-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.share-row-heading strong { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.share-row-date { font-size: 11px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.8; }.share-row-remaining { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.8; }
.share-link-input { display: block; width: 100%; min-width: 0; background: var(--surface-soft); border: 1px solid var(--line); color: var(--navy); padding: 10px; font-size: 11px; margin-top: 12px; }
.share-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.share-row-actions .button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.share-preview { text-decoration: none; display: inline-flex; align-items: center; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-line); }.share-preview:hover { background: #403954; }.share-preview[aria-disabled="true"] { opacity: .6; cursor: default; }
.share-manager-footer { display: flex; justify-content: flex-end; padding: 15px 28px; background: var(--surface); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
@media (max-width: 580px) { .toolbar { flex-wrap: wrap; justify-content: flex-end; }.share-view-notice { padding: 12px 14px; gap: 5px 10px; font-size: 11px; }.share-view-notice #share-view-expiry { margin-left: 0; flex-basis: 100%; }.share-manager { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 11px; }.share-manager-heading { padding: 20px 18px 14px; }.share-manager-heading h2 { font-size: 22px; }.share-scope-note { margin: 17px 18px; font-size: 11px; }.share-manager-message { margin-left: 18px; margin-right: 18px; }.share-create-form { margin: 0 18px 22px; padding: 14px; }.share-create-fields { grid-template-columns: 1fr; gap: 14px; }.share-field input, .share-field select { font-size: 16px; }.share-custom-field { max-width: none; }.share-create-footer { align-items: stretch; flex-direction: column; gap: 12px; }.share-create-footer .button { align-self: flex-start; }.share-list-section { padding: 0 18px 20px; }.share-row { padding: 14px; }.share-manager-footer { padding: 13px 18px; } }

.service-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:14px 24px; }
.service-toolbar input { min-width:0; max-width:100%; }
.search-field { display: flex; align-items: center; gap: 7px; flex: 0 1 300px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-soft); color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); outline: 1px solid var(--accent); }
.search-field .icon { width: 15px; height: 15px; }
.search-field input[type="search"] { width: 100%; outline: 0; border: 0; background: transparent; padding: 6px 0; }
.service-fields { display:grid; gap:14px; padding:0 28px 20px; min-width:0; }
.service-fields label { display:grid; gap:6px; min-width:0; }
.service-fields label:has(> input[type="checkbox"]) { display:flex; align-items:center; }
.service-fields input[type="checkbox"] { width:16px; height:16px; }
.service-fields input:not([type=checkbox]), .service-fields textarea { width:100%; min-width:0; box-sizing:border-box; }
.service-screen-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0; }
.service-screen-row span { flex:1 1 120px; overflow-wrap:anywhere; }
.service-row-actions { white-space:nowrap; }
.service-row-actions .button { margin:3px; }
@media (max-width:580px) { .service-fields { padding:0 18px 18px; } .service-toolbar { padding:12px 18px; } }
