:root {
  color-scheme: light; --canvas: #f8f9fb; --paper: #fff; --ink: #182230;
  --muted: #68758a; --line: #e5e8ee; --accent: #203b65; --soft: #eef2f8;
  --green: #26785a; --red: #b13b3b; --amber: #94631c;
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.6;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
button, input, select, textarea { border: 1px solid var(--line); }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid #597db3; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea { border-radius: 7px; padding: 10px 12px; color: var(--ink); background: var(--paper); min-width: 0; }
input::placeholder, textarea::placeholder { color: #8993a2; }
input:focus, textarea:focus, select:focus { border-color: #8da1bf; }
input[type="datetime-local"] { color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-weight: 620; font-size: 32px; line-height: 1.3; letter-spacing: -1.3px; margin-bottom: 12px; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; margin-bottom: 0; }
h3 { font-size: 15px; font-weight: 550; margin-bottom: 8px; }
.muted { color: var(--muted); }
.mono { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.accent { color: var(--accent); }
.eyebrow { display: block; color: var(--muted); font-size: 10px; letter-spacing: 2.2px; font-weight: 600; margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 76px; padding: 0 max(32px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 54px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; white-space: nowrap; font-size: 17px; font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-en { margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .4px; }
nav { display: flex; align-self: stretch; gap: 28px; }
.nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 0 1px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.divider { height: 12px; width: 1px; background: var(--line); }
main { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.login-layout { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 110px; padding: 70px 55px 100px; }
.login-intro h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.35; letter-spacing: -2px; margin-bottom: 24px; }
.login-intro p { color: var(--muted); line-height: 1.9; }
.link-example { margin-top: 48px; color: #7c899b; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font: 12px/1.8 "Cascadia Code", Consolas, monospace; }
.link-example > span:first-child { max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.example-arrow { margin: 0 0 0 9px; font-size: 22px; color: #b1bdcc; }
.link-example .example-short { font-size: 23px; letter-spacing: -1px; color: var(--accent); }
.login-card { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 34px; box-shadow: 0 12px 38px #18223004; }
.login-card h2 { font-size: 22px; margin-bottom: 8px; }
.login-card > p.muted { font-size: 12px; margin-bottom: 28px; }
.login-card input { width: 100%; margin-bottom: 20px; }
.login-card input#tenant { margin-bottom: 0; }
.field-help { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 18px; border-radius: 7px; white-space: nowrap; font-size: 13px; font-weight: 550; transition: background .15s; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #2b4d7f; }
.secondary { color: var(--ink); background: var(--paper); }
.secondary:hover:not(:disabled) { background: var(--canvas); }
.login-submit { width: 100%; justify-content: space-between; margin-top: 25px; }
.login-note { text-align: center; color: var(--muted); font-size: 10px; margin: 20px -8px 0; }
.text-button { background: transparent; border: 0; padding: 5px 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 3px 8px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 18px; }
.icon-button:hover:not(:disabled) { background: var(--soft); color: var(--accent); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 55px 0 30px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading p { margin-bottom: 0; font-size: 13px; }
.quota { min-width: 190px; padding-bottom: 2px; font-size: 12px; }
.quota strong { font: 19px "Cascadia Code", Consolas, monospace; margin-left: 10px; color: var(--ink); }
progress { appearance: none; width: 100%; height: 3px; border: none; border-radius: 3px; display: block; overflow: hidden; margin-top: 14px; background: var(--line); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--accent); }
.create-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 26px 28px; margin-bottom: 34px; }
.create-row { display: flex; gap: 12px; }
.create-row > input { flex: 1; padding: 12px 14px; background: #fbfcfd; }
.create-row .button { min-width: 140px; }
.expiry-option { margin-top: 12px; color: var(--muted); font-size: 11px; }
.expiry-option summary { cursor: pointer; width: fit-content; }
.expiry-option input { margin-top: 10px; font-size: 12px; }
.create-result { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; font-size: 12px; flex-wrap: wrap; }
.create-result a { overflow-wrap: anywhere; }
.create-result button { margin-left: auto; color: var(--accent); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list-toolbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; gap: 20px; }
.count { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.filters { display: flex; align-items: center; gap: 10px; }
.filters input { width: 235px; font-size: 11px; background: #fbfcfd; padding: 8px 12px; }
.filters select { font-size: 11px; padding: 8px 10px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 12px; }
th { color: var(--muted); font-size: 10px; font-weight: 500; background: #fbfcfd; padding: 11px 20px; border-block: 1px solid var(--line); }
td { padding: 20px; border-bottom: 1px solid #eff1f5; height: 77px; }
th:first-child, td:first-child { padding-left: 24px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
.link-cell { min-width: 155px; }
.short-link { font-weight: 550; display: inline-block; font-size: 14px; }
.link-sub { display: block; font-size: 10px; color: #8490a2; margin-top: 3px; }
.target-cell a { max-width: 310px; width: min(26vw, 310px); display: block; overflow: hidden; text-overflow: ellipsis; color: #536177; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; border-radius: 20px; padding: 4px 9px; color: var(--green); background: #eff8f3; }
.badge.disabled { color: var(--muted); background: #f0f2f5; }
.badge.disabled .status-dot { background: #8894a6; }
.badge.expired, .badge.warning { color: var(--amber); background: #fcf5e9; }
.badge.expired .status-dot, .badge.warning .status-dot { background: #b58a3c; }
.badge.failed { color: var(--red); background: #fbeeee; }
.badge.failed .status-dot { background: var(--red); }
.date-cell { color: var(--muted); font-size: 11px; }
.align-right { text-align: right; }
.row-actions { display: flex; justify-content: end; gap: 12px; }
.row-actions .text-button { font-size: 11px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 10px; }
.pagination { display: flex; gap: 22px; }
.pagination button { font-size: 11px; }
.empty { text-align: center; padding: 58px 20px; color: var(--muted); }
.empty p { font-size: 12px; margin: 0; }
.empty-symbol { font-size: 28px; line-height: 1.5; display: block; margin-bottom: 16px; color: #9baac0; }
.page-footer { display: flex; justify-content: space-between; color: #8c96a5; font-size: 10px; padding: 28px 2px 36px; }
.notice { padding: 14px 18px; border-radius: 7px; background: var(--soft); color: #536177; font-size: 12px; }
.form-error { color: var(--red); font-size: 12px; margin: 12px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.padded { padding: 0 24px 18px; }
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0; box-shadow: 0 24px 100px #18223022; }
dialog::backdrop { background: #1822304d; backdrop-filter: blur(3px); }
.dialog-content { padding: 30px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }
.dialog-heading .eyebrow { margin-bottom: 8px; }
.dialog-heading h2 { font-size: 22px; }
.dialog-content > input, .dialog-content > select { width: 100%; margin-bottom: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 12px; }
.checkbox-label input { accent-color: var(--accent); width: 15px; height: 15px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 22px; border-radius: 8px; box-shadow: 0 8px 30px #18223018; max-width: calc(100% - 32px); width: max-content; font-size: 12px; z-index: 100; }
.small { font-size: 11px; }
.label-row, .batch-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.label-row span { font: 11px "Cascadia Code", Consolas, monospace; }
textarea { resize: vertical; width: 100%; line-height: 2; font: 12px/2 "Cascadia Code", Consolas, monospace; background: #fbfcfd; }
.batch-bottom { margin-top: 14px; } .batch-bottom p { font-size: 11px; margin: 0; }
.wide-dialog { width: min(820px, calc(100% - 32px)); }
.job-id { font-size: 11px; overflow-wrap: anywhere; }
.job-status-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-counts { display: flex; justify-content: space-between; margin-top: 24px; color: var(--muted); font-size: 11px; }
.job-counts strong { font: 22px "Cascadia Code", Consolas, monospace; color: var(--ink); margin-left: 8px; }
.job-items { margin-top: 24px; max-height: 320px; }
.job-items td { font-size: 11px; padding: 14px; height: auto; }
.job-items .item-url { max-width: 270px; overflow: hidden; text-overflow: ellipsis; }
.item-reason { max-width: 260px; white-space: normal; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.stats-selector { display: flex; justify-content: space-between; align-items: end; padding: 26px 28px; border-bottom: 1px solid var(--line); gap: 20px; }
.stats-selector > div { width: min(100%, 450px); }
.stats-selector select { width: 100%; font-size: 12px; }
.stat-totals { display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px; }
.stat-totals > div { border-right: 1px solid var(--line); padding-left: 32px; }
.stat-totals > div:first-child { padding-left: 0; } .stat-totals > div:last-child { border: none; }
.stat-totals span { font-size: 11px; } .stat-totals strong { display: block; font: 33px "Cascadia Code", Consolas, monospace; font-weight: 400; color: var(--ink); margin-top: 12px; }
.chart-heading { display: flex; justify-content: space-between; padding: 10px 28px 20px; }
.chart-heading h2 { font-size: 13px; } .chart-legend { display: flex; gap: 20px; font-size: 10px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; } .chart-legend i { width: 12px; height: 2px; }
.legend-pv { background: #3e628e; } .legend-uv { background: #a4b4c7; }
.chart { padding: 0 20px; } .chart svg { width: 100%; height: auto; display: block; }
.chart-notes { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; padding: 16px 28px 24px; font-size: 10px; color: var(--muted); }
.anomaly-surface { margin-top: 24px; }
.anomaly-item { display: flex; justify-content: space-between; padding: 15px 24px; border-top: 1px solid var(--line); gap: 16px; font-size: 11px; }
.anomaly-empty { padding: 0 24px 24px; color: var(--muted); font-size: 12px; }
@media (min-width: 1500px) { main { max-width: 1248px; } .topbar { padding-inline: max(32px, calc((100% - 1200px) / 2)); } }
@media (max-width: 1050px) { .topbar { gap: 30px; padding-inline: 24px; } nav { gap: 20px; } .brand-en { display: none; } .login-layout { gap: 50px; padding-inline: 20px; } .target-cell a { max-width: 235px; } }
@media (max-width: 760px) {
  .topbar { padding: 16px 20px 0; flex-wrap: wrap; min-height: 72px; gap: 12px; }
  .topbar:has(#navigation[hidden]) { padding-bottom: 16px; }
  .brand { font-size: 16px; } .brand img { width: 26px; height: 26px; }
  .account { gap: 8px; font-size: 10px; } #account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  nav { order: 3; width: 100%; overflow-x: auto; gap: 25px; min-height: 48px; }
  .nav-link { min-height: 48px; font-size: 12px; }
  main { padding-inline: 18px; } .login-layout { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 48px 0; max-width: 410px; margin: auto; }
  .login-intro h1 { font-size: 37px; } .login-intro h1 br { display: none; }
  .login-intro p { font-size: 12px; } .link-example { display: none; } .login-card { padding: 26px; }
  .page-heading { margin-top: 34px; margin-bottom: 24px; align-items: start; flex-direction: column; }
  h1 { font-size: 28px; } .quota { width: 100%; } .quota progress { width: 150px; display: inline-block; margin: 0 0 3px 16px; }
  .create-panel { padding: 20px; margin-bottom: 24px; } .create-row { flex-direction: column; } .create-row input { min-height: 46px; } .create-row .button { min-height: 42px; }
  .list-toolbar { align-items: start; flex-direction: column; gap: 16px; padding: 20px; } .filters { width: 100%; gap: 7px; } .filters input { width: 100%; flex: 1; } .filters select { max-width: 95px; }
  th, td { padding-inline: 14px; } .target-cell a { width: 200px; } .table-footer { padding-inline: 18px; } .pagination { gap: 14px; }
  .page-footer { flex-direction: column; gap: 6px; } .page-footer > span:last-child { display: none; } .dialog-content { padding: 24px; }
  .batch-bottom { align-items: start; flex-direction: column; gap: 12px; } .batch-bottom button { align-self: end; }
  .stats-selector { padding: 20px; flex-direction: column; align-items: start; gap: 12px; }
  .stat-totals { padding: 24px 20px; } .stat-totals > div { padding-left: 14px; } .stat-totals strong { font-size: 27px; } .stat-totals span { font-size: 9px; }
  .chart-heading { padding-inline: 20px; } .chart-legend { gap: 10px; } .chart { padding-inline: 6px; } .chart-notes { padding-inline: 20px; font-size: 9px; }
  .job-counts strong { font-size: 19px; } .anomaly-item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
