:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172a22;
  background: #f6f8f4;
  --ink: #172a22;
  --muted: #64746b;
  --line: #e1e8e0;
  --surface: #fff;
  --green: #08765c;
  --pale: #e5f3eb;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #68b59c; outline-offset: 3px; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.65rem); line-height: 1.08; font-weight: 690; letter-spacing: -.052em; }
h2 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; }
p { line-height: 1.55; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; transform: translateY(-170%); background: var(--surface); padding: 10px; }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 24px; padding: 27px 16px 18px; background: #fbfcfa; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 780; letter-spacing: -.055em; }
.sidebar > .brand { margin: 0 9px 4px; }
.brand-mark { display: block; border-radius: 22%; }
.work-select { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.work-symbol { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #eaf1e7; color: #37654d; font-weight: 750; font-size: 12px; }
.work-select strong, .account strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.work-select small, .account small { display: block; font-size: 11px; color: var(--muted); }
.nav { display: grid; gap: 4px; }
.nav-caption { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 720; color: var(--muted); margin: 0 10px 7px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 8px; color: #53665b; font-size: 13px; font-weight: 570; }
.nav a:hover { background: #eef3eb; }
.nav a[aria-current] { color: #075f4a; background: #e4f1e8; font-weight: 700; }
.icon { width: 17px; height: 17px; flex: none; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.account { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; align-items: center; gap: 8px; }
.avatar { display: grid; place-items: center; background: #dbece0; color: #1a674f; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; background: white; color: #516359; border: 1px solid var(--line); border-radius: 8px; }
.icon-btn:hover { background: #edf4ec; }
.account .icon-btn { width: 28px; height: 28px; border: none; background: transparent; }
.topbar { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; background: #fbfcfa; border-bottom: 1px solid var(--line); }
.crumb { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--muted); }
.crumb strong { color: var(--ink); font-weight: 620; }
.top-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 999px; font-weight: 650; font-size: 11px; color: #52665b; background: #edf1eb; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: #08765c; background: #e7f4eb; }
.badge.warn { color: #87591b; background: #fff2d8; }
.badge.bad { color: #a54440; background: #faecea; }
.main { max-width: 1510px; margin: 0 auto; padding: 29px 30px 38px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.eyebrow { display: flex; gap: 7px; align-items: center; color: var(--green); font-size: 10px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow::before { content: ""; background: #44a487; width: 6px; height: 6px; border-radius: 50%; }
.lead { color: var(--muted); font-size: 14px; margin-top: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); padding: 9px 12px; border-radius: 9px; background: white; color: var(--ink); font-size: 13px; font-weight: 650; min-height: 37px; text-align: center; }
.btn:hover { background: #eef5ed; }
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.btn.primary:hover { background: #05634d; }
.btn.danger { color: #a4403c; border-color: #e9c9c7; }
.btn.danger:hover { background: #fcf1f0; }
.btn.subtle { background: #f7faf6; }
.btn .icon { width: 15px; height: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.card { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.metric { padding: 15px 16px; }
.metric-label { display: flex; align-items: center; gap: 8px; color: #55685d; font-size: 12px; font-weight: 640; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #edf5ed; color: #1c7b60; }
.metric-icon .icon { width: 15px; height: 15px; }
.metric strong { display: block; margin: 10px 0 4px; font-size: 29px; font-weight: 680; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric small, .muted { color: var(--muted); }
.metric small { font-size: 11px; }
.panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 15px; margin-bottom: 16px; }
.panel { padding: 17px; }
.panel-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.caption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.first-device { margin-bottom: 17px; }
.billing-panel { margin-bottom: 16px; }
.billing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing-tier { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.billing-pro { border-color: #c2ded0; background: #f5faf6; }
.billing-tier-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.billing-tier-title h3 { font-size: 14px; }
.billing-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 12px; }
.billing-price strong { font-size: 24px; color: var(--ink); letter-spacing: -.04em; }
.billing-checkout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.billing-checkout .panel-top { justify-content: flex-start; margin-bottom: 4px; }
.chart { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: auto clamp(118px, 15vw, 178px) auto; gap: 12px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.chart-series { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 2px; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.chart-series::before { content: ''; width: 14px; height: 3px; border-radius: 2px; background: var(--green); }
.chart-series strong { margin-inline-start: auto; color: var(--ink); font-size: 13px; }
.chart .axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 11px; line-height: 1; text-align: right; }
.chart .axis span:first-child { transform: translateY(-50%); }
.chart .axis span:last-child { transform: translateY(50%); }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-time { grid-column: 2; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.chart-time span:only-child { margin-inline-start: auto; }
.signal { background: #f4f8f3; border: 1px solid #e5ede4; border-radius: 11px; padding: 13px; margin: 4px 0 12px; }
.signal-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 650; }
.signal-value { display: block; font-size: 29px; font-weight: 720; letter-spacing: -.05em; margin: 6px 0 2px; }
.signal-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.signal-meta strong { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.table-card .panel-top { padding: 15px 17px 0; }
.table-wrap { overflow: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: 12px; }
th, td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: #596c61; background: #f8faf7; font-size: 11px; font-weight: 640; }
td a:hover { text-decoration: underline; }
.device-cell { display: flex; align-items: center; gap: 9px; }
.device-cell .metric-icon { flex: none; }
.device-cell strong, .device-cell small { display: block; }
.device-cell small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.empty { padding: 20px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.section-gap { margin-top: 16px; }
.state-list { display: grid; gap: 0; margin: 0; }
.state-list > div { display: grid; grid-template-columns: minmax(100px,.45fr) minmax(0,1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.state-list dt { color: var(--muted); }
.state-list dd { margin: 0; overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 8px; accent-color: var(--green); margin: 10px 0; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #d4dfd6; border-radius: 8px; padding: 9px 10px; background: white; color: var(--ink); font-size: 13px; }
textarea { font: 12px/1.5 ui-monospace, Menlo, monospace; resize: vertical; }
pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: 9px; color: #235342; background: #eff5ef; font: 12px/1.55 ui-monospace, Menlo, monospace; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .94em; }
.error { color: #a4403c; font-size: 12px; }
.notice { background: #f1f7ee; border: 1px solid #deeadc; border-radius: 10px; padding: 11px 13px; font-size: 12px; color: #46654f; }
dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 36px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); }
dialog::backdrop { background: #172a225c; }
dialog h2 { font-size: 19px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 13px; }
.toast { position: fixed; z-index: 6; bottom: 20px; right: 20px; max-width: min(380px,calc(100vw - 40px)); border-radius: 11px; background: #153b2e; color: white; padding: 11px 14px; box-shadow: 0 5px 20px #173a2c24; font-size: 13px; }
.loading { margin: auto; padding: 35vh 18px 0; text-align: center; color: var(--muted); }
.sign-in { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-info { display: flex; flex-direction: column; gap: 26px; padding: clamp(24px,6vw,70px); background: #e7f0e6; }
.login-info h1 { max-width: 460px; margin-top: auto; font-size: clamp(2.1rem,5vw,4rem); }
.login-info > p { margin-bottom: auto; max-width: 390px; color: #4d6959; }
.login-side { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%,390px); padding: 23px; }
.login-card h2 { font-size: 24px; margin-bottom: 4px; }
.login-card .form { margin-top: 18px; }
.login-card .btn { width: 100%; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 186px minmax(0,1fr); }
  .main, .topbar { padding-inline: 20px; }
  .metric { padding-inline: 12px; }
  .metric-label { gap: 5px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 15px; gap: 10px; }
  .sidebar > .brand { margin: 0; }
  .work-select, .nav-caption { display: none; }
  .nav { display: flex; flex-wrap: wrap; }
  .nav a { padding: 7px 8px; font-size: 12px; gap: 5px; }
  .sidebar-foot { position: absolute; top: 15px; right: 15px; border: 0; padding: 0; }
  .account { display: flex; }
  .account > div { display: none; }
  .topbar { min-height: 48px; }
  .main { padding-top: 20px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panels { grid-template-columns: minmax(0,1fr); }
  .page-head { align-items: start; }
  .sign-in { grid-template-columns: 1fr; }
  .login-info { gap: 13px; padding: 26px; }
}
@media (max-width: 420px) {
  .main, .topbar { padding-inline: 12px; }
  .page-head { flex-direction: column; gap: 9px; }
  .panel { padding: 13px; }
  .billing-plans, .billing-checkout { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-inline: 10px; }
}
