:root {
  --bg:#fbfbfc;
  --surface:#fff;
  --surface-2:#f3f3f5;
  --fg:#202126;
  --fg-2:#565860;
  --muted:#858790;
  --line:#e9e9ed;
  --line-strong:#d8d9df;
  --accent:#6461db;
  --accent-strong:#5350c5;
  --accent-soft:#f0effb;
  --on-accent:#fff;
  --ok:#25846d;
  --ok-soft:#f0f8f4;
  --warn:#a07832;
  --warn-soft:#faf6ee;
  --bad:#c86464;
  --bad-soft:#fdf2f2;
  --radius:8px;
  --radius-sm:6px;
  --shadow:none;
  --shadow-pop:0 12px 40px #00000012;
  --focus:0 0 0 3px #7772ed30;
  color-scheme: light;
}
[data-theme=dark] {
  --bg:#141416;
  --surface:#19191c;
  --surface-2:#232327;
  --fg:#ededf0;
  --fg-2:#b4b4be;
  --muted:#83838f;
  --line:#2a2a30;
  --line-strong:#3b3b43;
  --accent:#a29dfb;
  --accent-strong:#b8b4ff;
  --accent-soft:#29273b;
  --on-accent:#181621;
  --ok:#75bba2;
  --ok-soft:#1c2924;
  --warn:#d2af72;
  --warn-soft:#2c281f;
  --bad:#e19898;
  --bad-soft:#302224;
  --shadow-pop:0 12px 40px #0005;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 560;
  letter-spacing: -.025em;
}
h1 {
  font-size: 15px;
  margin: 0;
}
h2 {
  font-size: 18px;
  margin: 0;
}
h3 {
  font-size: 13px;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.fg2 {
  color: var(--fg-2);
}
.small {
  font-size: 12px;
}
.num,
.bytes,
.mono {
  font-variant-numeric: tabular-nums;
}
.mono {
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.eyebrow {
  font:
    10px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 14px;
}
button,
.btn {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s, border-color .15s;
}
button:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--muted);
}
button:disabled {
  opacity: .45;
  cursor: wait;
}
button.primary {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}
button.primary:hover:not(:disabled) {
  opacity: .85;
  background: var(--fg);
}
button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-2);
}
button.ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--line);
}
button.danger {
  color: var(--bad);
}
button.danger:hover {
  background: var(--bad-soft);
}
button.tiny {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}
button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.icon-btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
[data-theme=dark] .moon-ico {
  display: none;
}
:root:not([data-theme=dark]) .sun-ico {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 22px 12px 14px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.side-logo {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--surface);
  font: italic 650 22px Georgia, serif;
  flex: none;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .01em;
  margin-top: 1px;
}
.workspace-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 17px;
}
.nav-caption {
  font: 9px ui-monospace, monospace;
  letter-spacing: .13em;
  color: var(--muted);
  padding: 0 12px 11px;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 12px;
}
.side-nav a:hover {
  background: var(--line);
}
.side-nav a.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px #00000006;
}
.side-nav a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 5px 0;
}
.side-logout {
  font-size: 11px;
  color: var(--muted);
  padding: 7px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 15;
}
.topbar-title,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-sub {
  font-size: 11px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions svg {
  width: 13px;
  height: 13px;
}
.content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px clamp(24px, 3vw, 56px) 60px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-intro h2 {
  font-size: 28px;
  letter-spacing: -.05em;
  font-weight: 550;
}
.page-intro p {
  font-size: 12px;
  margin: 10px 0 0;
}
.page-intro .eyebrow {
  margin-bottom: 9px;
}
.page-intro button {
  align-self: flex-end;
  margin-bottom: 3px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  min-width: 0;
}
.card-pad {
  padding: 22px;
}
.card h3 {
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.grid {
  display: grid;
  gap: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 14px;
}
.section-head h2 {
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 28px;
}
.metric.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 23px 26px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.m-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 450;
}
.m-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 9px;
  line-height: 1.15;
}
.m-sub {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.m-sub .sep {
  padding: 0 8px;
}
.up {
  color: var(--fg-2);
}
.chart-box {
  padding: 22px 26px 16px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.chart-head h3 {
  margin: 0;
}
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
.seg button {
  min-height: 25px;
  font-size: 10px;
  padding: 4px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.seg button.active {
  color: var(--fg);
  background: var(--surface);
  box-shadow: 0 1px 4px #0000000c;
}
.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
}
.chart-svg .bar {
  fill: var(--accent);
}
.chart-svg .bar.dim {
  opacity: .28;
}
.chart-svg text {
  fill: var(--muted);
  font: 9px ui-monospace, monospace;
}
.chart-svg .axis {
  stroke: var(--line);
  stroke-dasharray: 3 5;
}
.chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  font-size: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: var(--bg);
}
tr:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}
.cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-main .cell {
  display: block;
}
.note {
  font-size: 12px;
  font-weight: 550;
}
.sub {
  font-size: 10px;
  margin-top: 4px;
}
.td-actions .cell {
  justify-content: flex-end;
}
.bytes {
  font-size: 12px;
  font-weight: 500;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 450;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.on {
  color: var(--ok);
  background: transparent;
}
.badge.off {
  color: var(--muted);
}
.badge.warn {
  color: var(--warn);
  background: transparent;
}
.badge.bad {
  color: var(--bad);
  background: transparent;
}
.badge.info {
  color: var(--accent);
}
.b-dot,
.dots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.dots {
  display: inline-flex;
  gap: 4px;
}
.dots i {
  background: var(--line-strong);
}
.dots i.ok {
  background: var(--ok);
}
.dots i.warn {
  background: var(--warn);
}
.dots i.bad {
  background: var(--bad);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.spacer {
  flex: 1;
}
.toolbar input[type=search] {
  width: 240px;
}
.toolbar select {
  max-width: 160px;
}
input,
select {
  font: inherit;
  font-size: 12px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  min-width: 0;
}
input[type=text],
input[type=password],
.field input {
  width: 100%;
}
input::placeholder {
  color: var(--muted);
}
.rowmenu {
  position: relative;
}
.rowmenu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 30;
  min-width: 140px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
  display: grid;
}
.rowmenu-pop button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
}
.rowmenu-pop button:hover {
  background: var(--surface-2);
}
.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted);
}
.empty .e-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.e-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.empty p {
  font-size: 12px;
  margin: 0 0 8px;
}
.empty p:first-of-type {
  font-weight: 500;
  color: var(--fg-2);
}
.empty .small {
  font-size: 11px;
  max-width: 320px;
  margin: 0 auto 15px;
  line-height: 1.8;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.notice svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.notice.bad,
.err {
  color: var(--bad);
}
.err {
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--surface);
  padding: 11px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
  font-size: 12px;
  z-index: 100;
  max-width: calc(100vw - 32px);
}
[hidden] {
  display: none !important;
}
.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 12px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.kv .mono {
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-grid {
  display: grid;
  gap: 18px;
}
.detail-grid .metrics {
  grid-template-columns: repeat(3, 1fr);
}
.month-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}
.month-label {
  font-size: 12px;
  min-width: 65px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dialog {
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 24px 80px #0003;
}
.dialog::backdrop {
  background: #09090e66;
  backdrop-filter: blur(5px);
}
.dialog h2 {
  font-size: 19px;
  margin-bottom: 12px;
}
.dialog p {
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin-top: 20px;
}
.copyrow {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.copyrow input {
  width: 100%;
  font: 11px ui-monospace, monospace;
}
.skeleton-row {
  display: flex;
  gap: 12px;
  padding: 15px 0;
}
.sk-bar {
  height: 8px;
  width: 120px;
  border-radius: 3px;
  background: var(--line);
}
.sk-bar.wide {
  width: 100%;
}
.sk-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line);
}
body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 40px 70px;
  background: var(--bg);
}
.auth-wordmark {
  position: absolute;
  top: 36px;
  left: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
}
.wordmark-divider {
  font-weight: 300;
  color: var(--line-strong);
  margin: 0 3px;
}
.auth-wordmark .muted {
  font-weight: 400;
  font-size: 12px;
}
.auth-theme {
  position: absolute;
  top: 32px;
  right: 40px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: min(100%, 1080px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.auth-story {
  position: relative;
  padding: 56px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-story .eyebrow {
  font-size: 9px;
  letter-spacing: .18em;
}
.auth-story h2 {
  font-size: 46px;
  letter-spacing: -.05em;
  line-height: 1.2;
  font-weight: 450;
  margin: 12px 0 20px;
}
.auth-story p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.auth-story-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 180px;
  position: relative;
  z-index: 1;
}
.orbit-art {
  position: absolute;
  width: 300px;
  height: 300px;
  left: calc(50% - 150px);
  bottom: 15px;
  display: grid;
  place-items: center;
  transform: rotate(-22deg);
  opacity: .8;
}
.orbit-art i {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}
.orbit-art i:nth-child(2) {
  width: 70%;
  height: 70%;
}
.orbit-art i:nth-child(3) {
  width: 40%;
  height: 40%;
}
.orbit-art span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--fg-2);
  font: italic 27px Georgia;
  transform: rotate(22deg);
  background: var(--surface-2);
}
.orbit-art b {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  left: 19px;
  top: 67px;
  box-shadow: 0 0 0 5px var(--surface-2);
}
.orbit-art b:nth-last-child(2) {
  left: 200px;
  top: 77px;
  width: 5px;
  height: 5px;
  background: var(--muted);
}
.orbit-art b:last-child {
  left: 131px;
  top: 208px;
  width: 5px;
  height: 5px;
  background: var(--muted);
}
.auth-card {
  padding: 78px 58px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.auth-card > .eyebrow {
  font-size: 9px;
  margin-bottom: 14px;
}
.auth-card h1 {
  font-size: 27px;
  letter-spacing: -.04em;
  font-weight: 550;
}
.auth-lead {
  font-size: 12px;
  line-height: 1.9;
  margin: 13px 0 30px;
}
.auth-form {
  display: grid;
  gap: 20px;
}
.auth-form label {
  display: grid;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
}
.auth-form input {
  height: 41px;
  font-size: 13px;
}
.auth-form button[type=submit] {
  width: 100%;
  min-height: 41px;
  font-size: 12px;
  margin-top: 3px;
}
.pw-row {
  position: relative;
}
.pw-row input {
  padding-right: 40px;
  width: 100%;
}
.pw-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
}
.pw-toggle svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.auth-bottom {
  font: 8px ui-monospace, monospace;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 48px;
  display: flex;
  gap: 9px;
}
@media (min-width: 1050px) {
  .detail-grid.wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric.card {
    padding: 20px;
  }
  .m-value {
    font-size: 25px;
  }
  td,
  th {
    padding-left: 12px;
    padding-right: 12px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-card {
    padding: 58px 40px 32px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    z-index: 25;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .side-brand {
    padding: 0;
    gap: 7px;
    font-size: 12px;
  }
  .side-logo {
    width: 24px;
    height: 24px;
    font-size: 19px;
    border-radius: 6px;
  }
  .brand-sub,
  .workspace-arrow,
  .nav-caption {
    display: none;
  }
  .side-nav {
    display: flex;
    margin-left: auto;
    gap: 1px;
  }
  .side-nav a {
    font-size: 11px;
    padding: 7px;
  }
  .side-nav a svg {
    display: none;
  }
  .side-foot {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .side-foot .side-logout {
    display: none;
  }
  .side-foot .icon-btn {
    width: 25px;
  }
  .topbar {
    position: static;
    height: 49px;
    padding: 0 20px;
  }
  .topbar-sub {
    display: none;
  }
  #synced-at {
    display: none;
  }
  .content {
    padding: 26px 20px 40px;
  }
  .page-intro {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .page-intro h2 {
    font-size: 24px;
  }
  .page-intro p {
    font-size: 11px;
    max-width: 180px;
    line-height: 1.8;
  }
  .page-intro button {
    align-self: center;
    font-size: 10px;
    padding: 6px 9px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
  }
  .metric.card {
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  .m-value {
    font-size: 26px;
  }
  .m-label {
    font-size: 10px;
  }
  .m-sub {
    font-size: 9px;
  }
  .chart-box {
    padding: 19px 16px;
  }
  .chart-head {
    gap: 5px;
  }
  .chart-head h3 {
    font-size: 11px;
  }
  .seg button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .empty {
    padding: 36px 16px;
  }
  .toolbar input[type=search] {
    width: 100%;
    flex: 1;
    min-width: 120px;
  }
  .toolbar select {
    max-width: 112px;
    font-size: 11px;
  }
  .toolbar .spacer {
    display: none;
  }
  .toolbar button.primary {
    margin-left: auto;
  }
  .card table thead {
    display: none;
  }
  .card table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    gap: 13px 14px;
  }
  .card table tbody tr:last-child {
    border-bottom: 0;
  }
  .card table tbody td {
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
  }
  .card table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
  }
  .card table tbody td.td-main {
    grid-column: 1/-1;
  }
  .card table tbody td.td-main::before,
  .card table tbody td.td-actions::before {
    display: none;
  }
  .card table tbody td.td-actions {
    grid-column: 1/-1;
    align-items: flex-end;
  }
  .note {
    font-size: 13px;
  }
  .sub {
    font-size: 9px;
  }
  .detail-grid.wide {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-top: 26px;
  }
  .auth-wordmark {
    top: 25px;
    left: 24px;
    font-size: 13px;
  }
  .auth-theme {
    top: 21px;
    right: 20px;
  }
  .auth-layout {
    display: block;
    max-width: 420px;
    min-height: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .auth-story {
    display: none;
  }
  .auth-card {
    padding: 30px 0;
    background: transparent;
  }
  .auth-card h1 {
    font-size: 29px;
  }
  .auth-card > .eyebrow {
    margin-bottom: 20px;
  }
  .auth-lead {
    margin-bottom: 35px;
  }
  body.auth {
    padding: 110px 30px 55px;
    align-items: center;
  }
  .auth-bottom {
    margin-top: 45px;
  }
  .dialog {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width:760px) {
 .shell { display:block; min-height:100dvh; }
 .side { min-height:49px; }
 .topbar { min-height:49px; }
}
.subscriber-page {width:min(100% - 40px,900px);margin:0 auto;padding-bottom:64px;}
.subscriber-header {display:flex;justify-content:space-between;align-items:center;padding:30px 0;margin-bottom:64px;border-bottom:1px solid var(--line);}
.subscriber-title {font-size:2.4rem;line-height:1.25;margin:16px 0;}
.subscription-list {margin:40px 0;border-top:1px solid var(--line);}
.subscription-item {display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0;border-bottom:1px solid var(--line);}
.subscription-item h2 {font-size:1.1rem;}
.subscription-item p {margin:4px 0 0;}
.subscription-item>div:last-child {display:flex;gap:8px;}
.subscription-item .button {display:inline-flex;align-items:center;padding:8px 14px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);}
@media(max-width:480px){.subscriber-header{margin-bottom:40px;}.subscription-item{gap:12px;padding:20px 0;}.subscriber-title{font-size:2rem;}}
.account-settings {margin:36px 0;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.account-settings summary {cursor:pointer;font-weight:560;}
.account-settings .auth-form {max-width:480px;margin-top:24px;}

/* Dialog controls never shrink or wrap their labels. */
button,.btn {white-space:nowrap;}
.dialog {max-height:calc(100dvh - 32px);overflow:auto;}
.dialog label:not(.legend-item) {display:grid;gap:8px;margin:0;}
.dialog form {min-width:0;}
.dialog input,.dialog select {min-width:0;max-width:100%;}
.dialog input:not([type=checkbox]) {width:100%;}
.dialog-actions {align-items:center;flex-wrap:wrap;}
.dialog-actions button,.dialog-actions button[type=submit] {flex:0 0 auto;width:auto;min-width:72px;margin-top:0;}
.copyrow {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;}
.copyrow input {min-width:0;width:100%;font:inherit;}
.copyrow button {min-width:72px;min-height:40px;}
#subscription-platform {display:block;width:100%;margin-top:8px;}
#subscription-platform[hidden] {display:none;}
.chart-legend {display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 22px;}
.legend-item {display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;cursor:pointer;}
.legend-item input {margin:0;width:14px;height:14px;accent-color:var(--accent);}
.legend-dot {display:inline-block;width:7px;height:7px;border-radius:50%;}
@media(max-width:480px){.dialog {padding:22px;}.chart-head{flex-wrap:wrap;gap:12px;}.legend-item{padding:6px 8px;}}
.chart-legend {justify-content:flex-start;font:inherit;}
.dialog-actions button {min-height:40px;}
