:root {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: #eaf3fa;
  background: #07121d;
  font-synthesis: none;
  --bg: #07121d;
  --surface: #0e2030;
  --surface-2: #12293a;
  --surface-3: #193347;
  --line: #27445a;
  --line-soft: #1e3749;
  --text: #eaf3fa;
  --muted: #a7bac7;
  --teal: #69e0ce;
  --teal-deep: #0c5f61;
  --amber: #f4c979;
  --red: #ff9b9d;
  --blue: #9ac7fa;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--teal); }
a:hover { color: #b4fff1; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 300; top: -60px; left: 16px; padding: 10px 14px; background: #fff; color: #10212c; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); letter-spacing: .17em; font-size: 11px; line-height: 1.5; font-weight: 800; }
.muted { color: var(--muted); line-height: 1.7; }
.subtle { color: var(--muted); font-size: .82rem; }
.nowrap { white-space: nowrap; }
.break-anywhere { overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand-mark { width: 48px; height: 48px; position: relative; display: flex; align-items: center; gap: 3px; transform: rotate(-18deg); }
.brand-mark span { display: block; width: 8px; height: 24px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 24px #69e0ce55; }
.brand-mark span:nth-child(2) { height: 36px; background: #a2f2e7; }
.brand-mark span:nth-child(3) { height: 17px; }
.brand-mark.small { width: 34px; height: 34px; gap: 2px; }
.brand-mark.small span { width: 6px; height: 17px; }
.brand-mark.small span:nth-child(2) { height: 26px; }
.brand-mark.small span:nth-child(3) { height: 13px; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 10%, #0c3642 0, transparent 34%), radial-gradient(circle at 90% 90%, #103047 0, transparent 35%), var(--bg); }
.gate-card { width: min(100%, 460px); padding: clamp(28px, 5vw, 48px); border: 1px solid #355363; background: linear-gradient(145deg, #122b39, #091925); border-radius: 24px; box-shadow: 0 30px 90px #0007; }
.gate-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.3; margin: 0 0 12px; letter-spacing: -.03em; }
.gate-card .brand-mark { margin-bottom: 22px; }
.gate-card .button { margin-top: 20px; }
.gate-note { border-top: 1px solid var(--line); padding-top: 20px; margin: 28px 0 0; color: var(--muted); font-size: .78rem; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #091b28; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; z-index: 100; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 24px 18px 31px; min-height: 98px; border-bottom: 1px solid var(--line-soft); }
.sidebar-brand strong { display: block; letter-spacing: .04em; font-size: .9rem; white-space: nowrap; }
.sidebar-brand small { display: block; margin-top: 3px; color: var(--muted); letter-spacing: .19em; font-size: .61rem; }
.sidebar nav { display: grid; gap: 4px; padding: 22px 11px; overflow-y: auto; }
.nav-label { color: #7c9aa9; font-size: .65rem; font-weight: 800; letter-spacing: .13em; padding: 12px 12px 7px; }
.nav-button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border: 1px solid transparent; background: transparent; color: #bed0db; border-radius: 10px; text-align: left; font-size: .85rem; font-weight: 650; }
.nav-button:hover { color: var(--text); background: #173246; }
.nav-button[aria-current="page"] { border-color: #2c706f; color: #d6fff5; background: #123d43; }
.nav-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid #35576b; border-radius: 7px; color: #8ce1d4; font: 700 .7rem ui-monospace, monospace; }
.nav-button[aria-current="page"] .nav-icon { border-color: #5cc7b5; background: #1d6969; color: #fff; }
.sidebar-bottom { margin-top: auto; padding: 16px 12px 22px; border-top: 1px solid var(--line-soft); }
.staff-identity { padding: 5px 7px 14px; min-width: 0; }
.staff-identity strong, .staff-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.staff-identity strong { font-size: .82rem; }
.staff-identity small { margin-top: 3px; color: var(--muted); font-size: .73rem; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; border-bottom: 1px solid var(--line-soft); padding: 0 clamp(20px, 3vw, 42px); background: #0a1b29d9; backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: .75rem; align-items: center; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.environment-badge, .role-badge { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: .65rem; letter-spacing: .07em; font-weight: 800; }
.role-badge { background: #123d43; color: #c1f6e9; border-color: #397777; }
.menu-toggle { display: none !important; }

main { max-width: 1650px; padding: clamp(22px, 3vw, 42px); margin: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 27px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.04em; margin: 0; line-height: 1.25; }
.page-description { margin: 9px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.button, .icon-button { appearance: none; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); padding: 10px 15px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 7px; font-size: .82rem; font-weight: 800; min-height: 40px; line-height: 1.3; }
.button:hover, .icon-button:hover { border-color: #6d9ba3; background: var(--surface-3); color: #fff; }
.button.primary { border-color: #6ddbcc; background: var(--teal); color: #052a2c; }
.button.primary:hover { background: #a4f7e9; color: #052a2c; }
.button.secondary { background: var(--surface-2); }
.button.ghost { background: transparent; }
.button.danger { color: #ffd9d8; border-color: #9b5a61; background: #4b252e; }
.button.danger:hover { background: #66333d; }
.button.small { padding: 6px 10px; min-height: 32px; font-size: .72rem; }
.square-dashboard-link { justify-self: start; }
.button.full { width: 100%; }
.text-button { border: 0; background: none; color: var(--teal); padding: 9px; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 38px; height: 38px; padding: 0; font-size: 1.1rem; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface) 0%, #0c1d2c 100%); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); }
.panel.compact { padding: 16px; }
.panel.flat { background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.section-title { margin: 26px 0 13px; font-size: 1.02rem; }
.stat-card { min-height: 162px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label { color: var(--muted); font-size: .8rem; }
.stat-number { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stat-footer { color: var(--teal); font-size: .72rem; font-weight: 700; }
.guide-card { display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.guide-card h3 { margin: 0; font-size: 1rem; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .78rem; flex: 1; }
.guide-card .button { align-self: flex-start; }
.accent-line { height: 3px; width: 40px; background: var(--teal); border-radius: 3px; margin-bottom: 14px; }

.toolbar { display: flex; align-items: end; gap: 11px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .field { flex: 1 1 220px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label, .field label { color: #d5e3ec; font-size: .76rem; font-weight: 750; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #426075; border-radius: 9px; padding: 10px 11px; background: #0a1b2a; color: var(--text); min-height: 40px; outline: none; }
input::placeholder, textarea::placeholder { color: #879fac; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #69e0ce25; }
textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
select { appearance: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.form-error { color: #ffc6c8; font-size: .79rem; margin: 8px 0; }
.help-text { color: var(--muted); font-size: .73rem; line-height: 1.55; margin: 5px 0 0; }
.hint { border-left: 3px solid var(--amber); background: #3d342c; padding: 10px 12px; color: #f9e5c2; font-size: .78rem; line-height: 1.55; border-radius: 0 8px 8px 0; }
.callout { border: 1px solid #3a676d; background: #10313b; border-radius: 10px; padding: 12px 14px; color: #ccece9; font-size: .81rem; line-height: 1.6; }
.approval-domain { border: 1px solid #c4a45e; background: #403624; border-radius: 10px; padding: 13px 15px; }
.approval-domain small { color: #f3d9a1; display: block; font-size: .72rem; font-weight: 800; margin-bottom: 5px; }
.approval-domain strong { color: #fff0c7; display: block; font-size: clamp(1.12rem, 2vw, 1.45rem); overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; margin: -2px; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th { color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-align: left; font-weight: 800; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #17324355; }
.cell-title { font-weight: 750; font-size: .8rem; }
.cell-sub { display: block; color: var(--muted); margin-top: 3px; font-size: .7rem; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; border: 1px solid #416674; background: #1a3a48; color: #bedce6; border-radius: 999px; padding: 4px 8px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.badge.success { color: #b6f3dd; border-color: #3b8066; background: #1c493d; }
.badge.warning { color: #ffe0ad; border-color: #a4773a; background: #483820; }
.badge.danger { color: #ffd0d1; border-color: #9d5b5f; background: #4e2c33; }
.badge.info { color: #c3e0ff; border-color: #5377a0; background: #243f60; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 16px; }
.pager span { color: var(--muted); font-size: .72rem; }
.empty-state, .loading-state, .error-state { text-align: center; padding: clamp(28px, 4vw, 52px) 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; line-height: 1.7; }
.empty-state strong, .error-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.error-state { border-color: #8e5258; color: #ffd0d0; }
.loading-state::before { content: ""; display: block; width: 27px; height: 27px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; margin: 0 auto 15px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.split-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.2fr); gap: 16px; align-items: start; }
.split-layout .panel { min-width: 0; }
.detail-stack { display: grid; gap: 16px; }
.key-values { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: .78rem; }
.key-values dt { color: var(--muted); }
.key-values dd { margin: 0; overflow-wrap: anywhere; }
.balance-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.balance-card { padding: 13px; border: 1px solid #355768; background: #0e2734; border-radius: 10px; }
.balance-card small { display: block; color: var(--muted); font-size: .72rem; }
.balance-card strong { display: block; margin-top: 5px; font-size: 1.4rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.customer-workspace { display: grid; gap: 18px; min-width: 0; }
.customer-workspace .panel { min-width: 0; }
.customer-list .toolbar { align-items: end; }
.customer-list .toolbar .field:first-child { flex: 2 1 330px; }
.customer-table table { table-layout: fixed; }
.customer-table th:nth-child(1), .customer-table th:nth-child(2) { width: 23%; }
.customer-table th:nth-child(3) { width: 15%; }
.customer-table th:nth-child(7) { width: 84px; }
.customer-table td { overflow-wrap: anywhere; }
.customer-table td:nth-child(4), .customer-table td:nth-child(5), .customer-table td:nth-child(6) { font-variant-numeric: tabular-nums; }
.customer-name.button { padding: 0; min-height: 28px; border: 0; background: none; color: #aee9e0; text-align: left; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.customer-name.button:hover { text-decoration: underline; }
.customer-emails { display: grid; gap: 8px; }
.customer-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.customer-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.customer-blue { border-color: #477db0; background: #132f4b; }
.customer-red { border-color: #95556b; background: #3d2332; }
.customer-diamond { border-color: #677b9e; background: #27334b; }
.customer-detail { scroll-margin-top: 18px; outline-offset: 5px; }
@media (max-width: 1100px) {
  .customer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .customer-table table, .customer-table tbody { display: block; }
  .customer-table tbody { display: grid; gap: 12px; }
  .customer-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
  .customer-table td { display: block; padding: 7px; border: 0; min-width: 0; }
  .customer-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; font-size: .67rem; color: var(--muted); }
  .customer-table td:nth-child(1), .customer-table td:nth-child(2), .customer-table td:nth-child(3), .customer-table td:nth-child(7) { grid-column: 1 / -1; }
  .customer-table td:nth-child(1)::before, .customer-table td:nth-child(7)::before { display: none; }
  .customer-table td:nth-child(7) { text-align: right; }
}
@media (max-width: 480px) {
  .customer-balances { gap: 6px; }
  .customer-balances .balance-card { padding: 10px 7px; }
  .customer-balances .balance-card strong { font-size: 1.08rem; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.tab { border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 7px 12px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.tab[aria-selected="true"] { background: #195450; border-color: #61c6b7; color: #eafff8; }
.message-list { display: grid; gap: 11px; max-height: 390px; overflow-y: auto; padding-right: 4px; }
.message { background: #102b3a; border: 1px solid #31576a; border-radius: 10px; padding: 12px; }
.message.staff { border-color: #3e867d; background: #113b3e; }
.message p { margin: 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.message small { display: block; color: var(--muted); margin-top: 8px; font-size: .68rem; }
.ticket-card { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ticket-card:last-child { border-bottom: 0; }
.ticket-card strong { font-size: .82rem; }
.ticket-card small { color: var(--muted); }
.ticket-card .button { justify-self: start; margin-top: 3px; }
.positive { color: #8ee8c3; }
.negative { color: #ffadae; }

.analytics-period { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.analytics-period .button { min-height: 44px; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.analytics-metric { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #102839; }
.analytics-metric .stat-number { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.1; overflow-wrap: anywhere; }
.analytics-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.analytics-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.analytics-key { display: inline-flex; align-items: center; gap: 7px; }
.analytics-key::before { content: ""; width: 18px; height: 3px; background: currentColor; border-radius: 3px; }
.analytics-key.register { color: var(--teal); }
.analytics-key.active { color: var(--amber); }
.analytics-chart { width: 100%; overflow: hidden; }
.analytics-chart svg { display: block; width: 100%; height: auto; min-height: 190px; }
.analytics-gridline { stroke: #345064; stroke-width: 1; stroke-dasharray: 3 5; }
.analytics-axis-label { fill: #9eb8c8; font-size: 10px; font-family: ui-monospace, monospace; }
.analytics-line-register, .analytics-line-active { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-line-register { stroke: var(--teal); }
.analytics-line-active { stroke: var(--amber); }
.analytics-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.analytics-detail summary { cursor: pointer; color: var(--teal); min-height: 44px; display: flex; align-items: center; font-size: .8rem; font-weight: 700; }
.analytics-retention { display: grid; gap: 10px; }
.analytics-retention .analytics-metric { padding: 12px 14px; }
.analytics-definitions { margin: 8px 0 0; padding-left: 21px; color: var(--muted); font-size: .79rem; line-height: 1.7; }
.analytics-source-bars { display: grid; gap: 10px; margin: 2px 0 18px; }
.analytics-source-row { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 42px; gap: 9px; align-items: center; font-size: .78rem; }
.analytics-source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-source-track { height: 9px; background: #203d4b; border-radius: 99px; overflow: hidden; }
.analytics-source-fill { display: block; height: 100%; background: linear-gradient(90deg, #40b6b5, #92e6d9); border-radius: inherit; }
.analytics-source-row strong { text-align: right; }

.dialog { border: 1px solid #527b87; border-radius: 18px; background: #102736; color: var(--text); width: min(94vw, 480px); max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 30px 90px #000b; }
.dialog::backdrop { background: #020b12c9; backdrop-filter: blur(3px); }
.dialog h2 { margin: 0 0 12px; font-size: 1.26rem; }
.dialog p { overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.dialog .field-label { display: block; margin: 16px 0 6px; }
.one-time-value { display: block; border: 1px solid #427671; padding: 11px; background: #0a1b25; border-radius: 8px; color: #c4fff2; overflow-wrap: anywhere; margin-top: 12px; font-size: .78rem; }
.toast { position: fixed; z-index: 250; right: 22px; bottom: 22px; max-width: min(90vw, 460px); padding: 13px 16px; background: #174b48; border: 1px solid #6ad7c1; border-radius: 10px; box-shadow: 0 12px 30px #0008; color: #e2fff7; font-size: .8rem; line-height: 1.55; }
.toast.error { background: #512d32; border-color: #da8d94; color: #ffe5e5; }

@media (max-width: 1120px) {
  .split-layout { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 830px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: min(82vw, 275px); transform: translateX(-101%); transition: transform .22s ease; box-shadow: 10px 0 30px #0008; }
  .sidebar.open { transform: translateX(0); padding-top: 66px; }
  .menu-toggle { display: inline-flex !important; }
  .topbar { gap: 12px; z-index: 110; }
  .topbar-right { margin-left: auto; }
  main { padding: 24px 20px; }
  .analytics-two-column { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { min-height: 58px; padding: 0 15px; }
  .breadcrumb span:first-child, .breadcrumb span:nth-child(2), .environment-badge { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { justify-content: flex-start; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .balance-pair { grid-template-columns: 1fr; }
  .key-values { grid-template-columns: 1fr; gap: 3px; }
  .key-values dd { margin-bottom: 8px; }
  .toolbar .button { width: 100%; }
  .pager { flex-wrap: wrap; }
  .dialog { padding: 20px; }
  .analytics-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .analytics-metric { padding: 12px; }
  .analytics-metric .stat-label { font-size: .72rem; }
  .analytics-metric .stat-number { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar { transition: none; }
  .loading-state::before { animation-duration: 2s; }
}
