
:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-muted: #f3f3f5;
  --ink: #202124;
  --ink-strong: #111214;
  --muted: #6f7178;
  --muted-strong: #56585f;
  --line: #e2e3e6;
  --line-strong: #d2d3d7;
  --accent: #5856d6;
  --accent-hover: #4745bb;
  --accent-soft: #efeffc;
  --green: #18794e;
  --green-soft: #edf8f2;
  --red: #c13c37;
  --red-soft: #fff1f0;
  --amber: #9a6700;
  --amber-soft: #fff7e6;
  --shadow-float: 0 14px 40px rgba(20, 20, 24, .08), 0 2px 8px rgba(20, 20, 24, .04);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; min-width: 0; padding: 18px 12px 14px; border-right: 1px solid var(--line); background: #f2f2f3; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 4px 28px; padding: 4px; color: var(--ink-strong); }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; overflow: hidden; border: 1px solid #24252a; border-radius: 8px; background: #24252a; color: #fff; font-size: 15px; font-weight: 760; letter-spacing: -.04em; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.brand-mark::after { position: absolute; right: -7px; bottom: -8px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); content: ""; transform: rotate(20deg); }
.brand-mark > span { position: relative; z-index: 1; }
.brand-copy { display: grid; min-width: 0; line-height: 1.15; }
.brand-copy strong { color: var(--ink-strong); font-size: 14px; font-weight: 680; letter-spacing: -.01em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 540; letter-spacing: .035em; }
.nav-section { min-width: 0; }
.nav-label { display: block; margin: 0 10px 8px; color: #92949a; font-size: 12px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 6px; color: #5f6168; font-size: 13px; font-weight: 520; transition: background-color .12s ease, color .12s ease; }
.nav a:hover { background: #e8e8eb; color: var(--ink-strong); text-decoration: none; }
.nav a.active { background: #e4e4e8; color: var(--ink-strong); font-weight: 620; }
.nav a.active::before { position: absolute; top: 8px; bottom: 8px; left: -6px; width: 2px; border-radius: 2px; background: var(--accent); content: ""; }
.nav-icon { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: #7d7f87; }
.nav-icon svg { display: block; width: 17px; height: 17px; }
.nav a.active .nav-icon { color: var(--accent); }
.sidebar-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.sidebar-foot form { flex-shrink: 0; white-space: nowrap; }
.operator { display: flex; align-items: center; gap: 9px; min-width: 0; }
.operator-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink-strong); font-size: 12px; font-weight: 700; }
.operator > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.operator small { color: var(--muted); font-size: 12px; }
.operator strong { overflow: hidden; margin-top: 3px; color: var(--muted-strong); font-size: 12px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot form { display: flex; }
.sidebar-foot button { display: grid; min-height: 40px; width: 100%; grid-template-columns: 18px auto; gap: 8px; align-items: center; justify-content: start; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7b7d84; cursor: pointer; }
.sidebar-foot button:hover { border-color: var(--line); background: var(--surface); color: var(--ink-strong); }
.sidebar-foot button svg { width: 16px; height: 16px; }

.main { min-width: 0; overflow-x: hidden; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.topbar-context { display: grid; min-width: 0; line-height: 1.18; }
.topbar-context > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.topbar-context strong { overflow: hidden; margin-top: 4px; color: var(--ink-strong); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.security-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-strong); font-size: 12px; white-space: nowrap; }
.security-chip > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.locale-links { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); }
.locale-links a { min-width: 29px; padding: 3px 6px; border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 650; text-align: center; }
.locale-links a:hover { color: var(--ink); text-decoration: none; }
.locale-links a[aria-current="true"] { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(20,20,24,.08); }

.content { width: min(100%, 1480px); min-width: 0; margin: 0 auto; padding: 30px 32px 56px; }
.page-head { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head > div { min-width: 0; }
.page-head h1, .content > h1 { margin: 0 0 6px; color: var(--ink-strong); font-size: 28px; font-weight: 690; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.content > h1 { margin-bottom: 20px; }
.page-head p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.panel { min-width: 0; overflow: hidden; margin-bottom: 16px; scroll-margin-top: 82px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.panel-head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-head h2 { margin: 0; color: var(--ink-strong); font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.panel-head > span, .panel-head > a { color: var(--muted); font-size: 12px; }
.panel-head > a:hover { color: var(--accent); }
.panel-body { min-width: 0; padding: 16px; }

.table-wrap { min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); scrollbar-width: thin; scrollbar-color: #c8c9cd transparent; }
.table-wrap:focus { outline: 2px solid rgba(88,86,214,.35); outline-offset: 2px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; background: #fafafa; color: var(--muted-strong); font-size: 12px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { background: var(--surface); transition: background-color .1s ease; }
tbody tr:nth-child(even) { background: #fcfcfd; }
tbody tr:hover { background: #fafafe; }
td { color: #37383d; }
td a { font-weight: 560; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 2; background: inherit; box-shadow: 1px 0 0 var(--line); }
th:first-child { z-index: 3; background: #fafafa; }
.table-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-number strong { font-variant-numeric: tabular-nums; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.45; }

.support-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.support-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.support-filters label:first-of-type { flex: 1; min-width: 210px; }
.support-filters input, .support-filters select { max-width: 100%; }
.support-filters button { white-space: nowrap; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted-strong); font-size: 12px; font-weight: 620; }
input, select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease; }
input[type="search"] { width: min(380px, 70vw); }
input:hover, select:hover { border-color: #bbbcc2; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(88,86,214,.12); }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 620; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.button:hover { border-color: var(--accent-hover); background: var(--accent-hover); text-decoration: none; }
.button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: #bbbcc2; background: var(--surface-subtle); }

.empty { padding: 36px 20px; color: var(--muted); text-align: center; }

.service-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.service-strip > span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); color: var(--muted); font-size: 12px; }
.service-strip strong { color: var(--ink); font-weight: 620; }

.pagination { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination a, .pagination span.disabled { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted-strong); }
.pagination a:hover { border-color: var(--line-strong); background: var(--surface-subtle); color: var(--ink); text-decoration: none; }
.pagination span.disabled { opacity: .45; }

.definition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 7px; }
.definition div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.definition div:nth-child(even) { border-right: 0; }
.definition div:nth-last-child(-n + 2) { border-bottom: 0; }
.definition dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.definition dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 580; overflow-wrap: anywhere; }
.callout { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #dadaf3; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--accent-soft); color: #45437e; font-size: 12px; }
.callout.error { border-color: #f1cfcc; border-left-color: var(--red); background: var(--red-soft); color: #8d2c27; }

.operation-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.operation-form strong { grid-column: 1; font-size: 12px; }
.operation-form span { grid-column: 1; color: var(--muted); font-size: 12px; }
.operation-form button { grid-column: 2; grid-row: 1 / 3; }
.operation-form.caution { border-color: #ead9aa; background: var(--amber-soft); }

.workspace-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.workspace-tabs a { position: relative; padding: 8px 11px 9px; color: var(--muted); font-size: 12px; font-weight: 520; }
.workspace-tabs a:hover { color: var(--ink); text-decoration: none; }
.workspace-tabs a[aria-current="page"] { color: var(--ink-strong); font-weight: 630; }
.workspace-tabs a[aria-current="page"]::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); content: ""; }
.workspace-tabs.local { margin-bottom: 14px; }
.workspace-tabs.local a { padding: 6px 10px 8px; font-size: 12px; }

.metric-chart { min-width: 0; margin: 4px 0 0; }
.metric-chart figcaption { display: grid; gap: 3px; margin-bottom: 12px; }
.metric-chart figcaption strong { color: var(--ink-strong); font-size: 12px; font-weight: 630; }
.metric-chart figcaption span { color: var(--muted); font-size: 12px; font-weight: 500; }
.metric-chart__plot { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.metric-chart svg { display: block; width: 100%; min-width: 620px; height: auto; color: #a1a2a8; font-family: inherit; }
.metric-chart__grid { stroke: #e5e5e8; stroke-width: 1; }
.metric-chart__axis { stroke: #aeb0b6; stroke-width: 1; }
.metric-chart__axis-tick { stroke: #aeb0b6; stroke-width: 1; }
.metric-chart__tick { fill: #777980; font-size: 12px; font-variant-numeric: tabular-nums; }
.metric-chart__axis-label { fill: #56585f; font-size: 12px; font-weight: 620; }
.metric-chart__bar { fill: var(--accent); transition: opacity .12s ease; }
.metric-chart__bar--provisional { fill: var(--amber); stroke: #775000; stroke-width: 1; stroke-dasharray: 3 2; }
.metric-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.metric-chart__point { fill: var(--surface); stroke: var(--accent); stroke-width: 2.25; transition: r .12s ease, fill .12s ease; }
.metric-chart__point--provisional { fill: var(--amber-soft); stroke: var(--amber); }
.metric-chart__marker { stroke: #686a70; stroke-width: 1.25; stroke-dasharray: 4 4; }
.metric-chart a:hover .metric-chart__bar { opacity: .74; }
.metric-chart a:hover .metric-chart__point, .metric-chart a:focus .metric-chart__point { r: 5.5px; fill: var(--accent-soft); }
.metric-chart__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 2px 0; color: var(--muted-strong); font-size: 12px; }
.metric-chart__legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.metric-chart__legend small { margin-left: auto; color: var(--muted); font-size: 12px; }
.metric-chart__legend i { display: inline-block; width: 15px; flex: 0 0 15px; }
.metric-chart__legend-line { height: 2px; border-radius: 2px; background: var(--accent); }
.metric-chart--bar .metric-chart__legend-line { height: 7px; border-radius: 2px; }
.metric-chart__legend-provisional { height: 7px; border: 1px dashed #775000; border-radius: 2px; background: var(--amber); }
.metric-chart__legend-marker { height: 9px; border-left: 1px dashed #686a70; }
.metric-chart__events { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.metric-chart__events span::before { margin-right: 5px; color: #686a70; content: "↳"; }
.metric-chart details { margin-top: 8px; }
details { padding: 9px 0; }
summary { width: fit-content; color: var(--muted-strong); font-size: 12px; font-weight: 570; cursor: pointer; }
summary:hover { color: var(--ink); }
pre { overflow-wrap: anywhere; margin: 12px 0 0; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #f6f6f7; color: #44464c; font-size: 12px; white-space: pre-wrap; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f3f3f4; }
.login-card { width: min(400px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-float); }
.login-card .brand { width: fit-content; margin: 0 0 44px; padding: 0; }
.login-heading { margin-bottom: 22px; }
.login-kicker { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.login-card h1 { margin: 0 0 7px; color: var(--ink-strong); font-size: 23px; font-weight: 680; letter-spacing: -.025em; }
.login-card .login-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 14px; }
.login-card input { width: 100%; min-height: 40px; }
.login-card form .button { width: 100%; min-height: 40px; margin-top: 4px; }
.login-card .error-message { margin: 0 0 16px; padding: 9px 11px; border: 1px solid #f1cfcc; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-note > span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.global-search { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; max-width: 460px; margin: 0; }
.global-search > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.global-search input { width: 100%; min-width: 0; flex: 1; }
.global-search button { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 12px; }
.global-search button:hover { background: var(--surface-muted); }
.eyebrow { display: block; margin-bottom: 6px; color: var(--muted-strong); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.metric-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { display: block; min-width: 0; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.metric-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px #20212408; text-decoration: none; }
.metric-card > span { font-size: 13px; font-weight: 600; }
.metric-card strong { display: block; margin: 10px 0 12px; color: var(--ink-strong); font-size: 36px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-card small { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-strong); font-size: 12px; }
.metric-card--danger { border-top-color: var(--red); }
.metric-card--danger strong { color: var(--red); }
.metric-card--warning { border-top-color: var(--amber); }
.metric-card--info { border-top-color: var(--accent); }
.metric-card--success { border-top-color: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; background: var(--surface-muted); color: var(--muted-strong); font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge > span { font-weight: 700; }
.badge--success { background: var(--green-soft); color: var(--green); border-color: #d7eddf; }
.badge--warning { background: var(--amber-soft); color: #805500; border-color: #f1e1b6; }
.badge--danger { background: var(--red-soft); color: #ab302c; border-color: #f3d9d6; }
.badge--info { background: var(--accent-soft); color: var(--accent-hover); border-color: #deddf8; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.quick-filters a { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted-strong); font-size: 13px; }
.quick-filters a[aria-current="page"] { border-color: #d3d1f7; background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; color: var(--muted-strong); font-size: 12px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }
.filter-chip:hover { background: var(--surface-muted); text-decoration: none; }
.cell-stack { display: grid; justify-items: start; gap: 7px; }
.cell-detail { max-width: 44ch; margin: 5px 0 0; color: var(--muted-strong); font-size: 12px; }
.relative-time { display: grid; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.relative-time small { color: var(--muted-strong); font-size: 11px; }
.row-action { display: inline-block; max-width: 25ch; }
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-intro > p { margin: 0; color: var(--muted-strong); font-size: 13px; }
.refresh-time { display: grid; gap: 4px; color: var(--muted-strong); font-size: 12px; }
.service-strip > div { display: flex; flex: 1; min-width: 180px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.service-strip > div > span:first-child { font-size: 13px; font-weight: 550; }
.service-strip small { width: 100%; color: var(--muted-strong); font-size: 12px; }
.breadcrumb { margin-bottom: 10px !important; }
.shop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted-strong); font-size: 13px; }
.shop-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.shop-overview > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-overview > div > span:first-child { color: var(--muted-strong); font-size: 12px; font-weight: 550; }
.shop-overview a, .shop-overview small { font-size: 12px; overflow-wrap: anywhere; }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 20px; border: 1px solid #e1ddfa; border-left: 3px solid var(--accent); border-radius: 8px; background: #f8f7ff; }
.next-action > div { min-width: 0; }
.next-action h2 { margin: 10px 0 6px; color: var(--ink-strong); font-size: 18px; }
.next-action p { margin: 6px 0 0; color: var(--muted-strong); font-size: 13px; overflow-wrap: anywhere; }
.next-action .button { flex-shrink: 0; }
.clear-state { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 13px; }
.operation-overview { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.operation-overview h1, .operation-overview h2 { margin: 0 0 6px; font-size: 22px; }
.operation-overview p { margin: 0; }
.section-title { margin-bottom: 6px; font-size: 15px; }
.operation-timeline { margin: 24px 0; padding: 0; list-style: none; }
.timeline-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-bottom: 24px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before { position: absolute; top: 30px; bottom: 0; left: 14px; width: 1px; background: var(--line-strong); content: ""; }
.timeline-dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.timeline-dot--danger { border-color: #f3d9d6; background: var(--red-soft); color: var(--red); }
.timeline-dot--active { border-color: #d3d1f7; background: var(--accent-soft); color: var(--accent); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted-strong); font-size: 12px; }
.step-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 5px; background: var(--red-soft); color: #ab302c; font-size: 13px; overflow-wrap: anywhere; }
.operation-error-summary { max-width: 340px; white-space: normal; overflow-wrap: anywhere; color: #ab302c; font-size: 12px; }
.operation-compact, .operation-compact .badge { white-space: nowrap; }
.operation-compact .badge { max-width: none; }
.operation-failure { margin: 0 0 24px; padding: 16px; border: 1px solid #f1cfcc; border-left: 3px solid var(--red); border-radius: 6px; background: var(--red-soft); }
.operation-failure .section-title { margin-top: 0; }
.operation-form { margin-top: 14px; }
.operation-form label { display: flex; grid-column: 1 / -1; align-items: center; gap: 9px; margin-top: 8px; font-size: 13px; }
.operation-form input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; }
.definition + details { margin-top: 14px; }
details[open] > summary { margin-bottom: 14px; }
.mobile-cell-label { display: none; }
.cell-value { min-width: 0; overflow-wrap: anywhere; }
.live-refresh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.live-refresh > div:first-child { display: grid; gap: 4px; }
.live-refresh strong { font-size: 13px; }
.live-refresh > div > span, .live-refresh small { color: var(--muted-strong); font-size: 12px; }
.refresh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-signal { display: grid; justify-items: start; gap: 5px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.sync-signal small { color: var(--muted-strong); font-size: 11px; }
.sync-guidance { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); scroll-margin-top: 90px; }
.sync-guidance h3 { margin-bottom: 6px; font-size: 14px; }
.sync-guidance p { margin: 6px 0 0; color: var(--muted-strong); font-size: 13px; }
.sync-guidance > a { display: inline-block; margin-top: 10px; }

@media (min-width: 861px) and (max-width: 1180px) {
  .security-chip { display: none; }
  .topbar { gap: 16px; padding-inline: 20px; }
  .content { padding-inline: 20px; }
  .shop-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { position: relative; z-index: 11; display: grid; height: auto; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; padding: 12px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; }
  .brand-copy small, .nav-label { display: none; }
  .nav-section { align-self: center; overflow: hidden; }
  .nav { display: flex; justify-content: flex-end; gap: 2px; overflow-x: auto; }
  .nav a { flex: 0 0 auto; padding: 7px 9px; }
  .nav a.active::before { top: auto; right: 9px; bottom: 0; left: 9px; width: auto; height: 2px; }
  .sidebar-foot { display: flex; grid-column: 1 / -1; justify-content: space-between; margin-top: 0; padding-top: 10px; }
  .topbar { position: relative; min-height: 54px; padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  .global-search { order: 3; flex-basis: 100%; max-width: none; }
  .metric-cards { gap: 10px; }
  .shop-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-chip { display: none; }
  .content { padding: 24px 18px 44px; }
  .page-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .table-cards { border: 0; overflow: visible; background: none; }
  .table-cards table, .table-cards tbody { display: block; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-cards tbody tr { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
  .table-cards tbody tr:last-child { margin-bottom: 0; }
  .table-cards td, .table-cards td:first-child { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; gap: 10px; padding: 10px 12px; box-shadow: none; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; }
  .table-cards tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .table-cards tbody tr td:last-child { border-bottom: 0; }
  .table-cards .mobile-cell-label { display: block; color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
  .table-cards .empty { display: block; padding: 24px 12px; }
  .table-cards .row-action { max-width: none; }
  .refresh-actions { width: 100%; }
  .refresh-actions a { flex: 1; }
  .workspace-tabs a, .locale-links a, .nav a, .pagination a { min-height: 44px; align-content: center; }
  .sidebar { display: block; padding-bottom: 8px; }
  .sidebar-foot { margin-top: 10px; }
  .metric-cards { grid-template-columns: 1fr; }
  .shop-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shop-overview > div { padding: 12px; }
  .metric-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .metric-card strong { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 30px; }
  .metric-card small { grid-column: 1; }
  .next-action, .step-head, .section-intro { align-items: flex-start; flex-direction: column; }
  .next-action .button { width: 100%; }
  .detail-toolbar { gap: 12px; flex-wrap: wrap; }
  .operation-overview { align-items: flex-start; gap: 12px; flex-direction: column; }
  .global-search input { font-size: 16px; }
  .topbar-actions { margin-left: auto; }
  .brand { margin-bottom: 10px; }
  .nav { justify-content: flex-start; }
  .nav a { gap: 7px; padding: 7px 8px; font-size: 12px; }
  .nav-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .nav-icon svg { width: 15px; height: 15px; }
  .topbar-context > span { display: none; }
  .topbar-context strong { margin-top: 0; }
  .content { padding: 20px 12px 36px; }
  .definition { grid-template-columns: 1fr; }
  .definition div, .definition div:nth-child(even), .definition div:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .definition div:last-child { border-bottom: 0; }
  .pagination { align-items: flex-start; gap: 10px; flex-direction: column; }
  .operation-form { grid-template-columns: 1fr; }
  .operation-form button { grid-column: 1; grid-row: auto; margin-top: 7px; }
  .support-filters { align-items: stretch; flex-direction: column; }
  .support-filters label:first-of-type { min-width: 0; }
  .support-filters input, .support-filters select, .support-filters button { width: 100%; }
  .metric-chart__legend small { width: 100%; margin-left: 0; }
  .login-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
