/* Interface styles. Clean and quiet: white pages, soft grey lines, near-black text and buttons. */
@font-face {
  font-family: "Inter";
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #18181b;
  --accent-dark: #3f3f46;
  --mark: #18181b;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(9, 9, 11, .05);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 24px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 68ch; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: #a1a1aa; }
a:hover { color: var(--accent-dark); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Forms */
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #d4d4d8; border-radius: var(--radius); padding: 9px 11px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[readonly] { background: var(--canvas); color: var(--muted); }
.field { margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500;
  box-shadow: var(--shadow); transition: background .12s, border-color .12s;
  padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent);
  color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: #d4d4d8; }
.btn.quiet:hover { background: var(--canvas); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.block { width: 100%; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.danger { color: var(--danger); }
.notice { border: 1px solid #bbf7d0; background: #f0fdf4; color: #14532d; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.notice.error { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.notice.info { border-color: var(--line); background: var(--canvas); color: var(--ink-2); }

/* Sign-in pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 520px) 1fr; }
.auth-main { background: var(--surface); padding: 40px 48px; display: flex; flex-direction: column; }
.auth-main .inner { margin: auto 0; max-width: 380px; width: 100%; padding: 32px 0; }
.auth-main h1 { margin-bottom: 8px; }
.auth-main .lead { color: var(--muted); margin-bottom: 24px; }
.auth-side { background: var(--canvas); border-left: 1px solid var(--line); color: var(--ink-2); padding: 56px; display: flex; align-items: center; justify-content: center; }
.wordmark { font-weight: 650; font-size: 17px; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.wordmark i { width: 22px; height: 22px; background: var(--ink); border-radius: 6px; display: inline-block; position: relative; }
.wordmark i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: #fff; border-radius: 1px; box-shadow: 0 4px 0 #fff, 0 8px 0 rgba(255,255,255,.55); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-foot { margin-top: 22px; font-size: 14px; color: var(--muted); }
/* The page-reading illustration on the sign-in side panel */
.readout { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 8px 30px rgba(9, 9, 11, .06); }
.readout p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.readout .q { font-size: 30px; line-height: 1.15; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 22px; max-width: 16ch; font-size: 24px; }
.readout ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.readout li { display: grid; grid-template-columns: 62px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.readout li span.bar { height: 10px; background: var(--ink); border-radius: 5px; transform-origin: left; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.readout li:nth-child(2) .bar { animation-delay: .08s; } .readout li:nth-child(3) .bar { animation-delay: .16s; }
.readout li:nth-child(4) .bar { animation-delay: .24s; } .readout li:nth-child(5) .bar { animation-delay: .32s; }
.readout li b { color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .readout li span.bar { animation: none; } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 24px 20px; }
}

/* Dashboard frame */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--canvas); border-right: 1px solid var(--line); color: var(--ink-2); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .wordmark { padding: 4px 8px 16px; }
.teampick { margin: 0 0 14px; }
.teampick label { color: var(--muted); font-weight: 500; font-size: 12px; }
.teampick select { background: var(--surface); padding: 7px 9px; font-size: 14px; }
.teampick .one { padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: var(--shadow); }
.nav { display: grid; gap: 2px; }
.nav a { display: block; padding: 7px 10px; color: var(--ink-2); text-decoration: none; border-radius: 6px; font-weight: 500; }
.nav a:hover { background: #f0f0f1; color: var(--ink); }
.nav a[aria-current=page] { background: #ececee; color: var(--ink); }
.nav .gap { height: 14px; }
.planbox { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; box-shadow: var(--shadow); }
.planbox .name { color: var(--ink); font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.planbox .tag { background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.meter { margin-top: 9px; color: var(--muted); }
.meter .row { display: flex; justify-content: space-between; }
.meter .track { height: 4px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--ink); border-radius: 2px; }
.planbox .btn { margin-top: 12px; }
.me { display: flex; align-items: center; gap: 9px; padding: 12px 4px 0; font-size: 13px; }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .linkbtn, .me a { color: var(--muted); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #e4e4e7; color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.main { padding: 32px 40px 64px; min-width: 0; }
.main > .wrap { max-width: 980px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead p { margin: 6px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 8px 0 10px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current=page] { color: var(--ink); border-color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel.flush { overflow: hidden; }
.panel > h2 { margin-bottom: 4px; }
.panel > h2 + p { color: var(--muted); margin-bottom: 16px; }
.panel.flush { padding: 0; }
.panel.flush > h2 { padding: 18px 24px 12px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline .field { margin: 0; flex: 1 1 220px; }
.inline .field.narrow { flex: 0 0 150px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 9px 24px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: #fafafa; }
table.list td { padding: 12px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.actions { text-align: right; white-space: nowrap; }
table.list td.actions form { display: inline; margin-left: 12px; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); }
.person b { display: block; font-weight: 600; }
.empty { border: 1px dashed #d4d4d8; border-radius: 12px; padding: 52px 28px; background: var(--canvas); text-align: center; }
.empty p { margin-left: auto; margin-right: auto; }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d4d4d8; color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps li.done::before { content: "✓"; background: var(--ink); color: #fff; border-color: var(--ink); }
.steps li b { display: block; }
.steps li span { color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plans .panel { margin: 0; }
.plans .panel.current { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plans ul { padding-left: 18px; margin: 12px 0 0; }
.plans .price { font-size: 22px; font-weight: 700; margin: 6px 0; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 10px 12px; }
  .side .wordmark { padding-bottom: 6px; }
  .menu-toggle { display: block; position: absolute; right: 14px; top: 12px; background: var(--ink-2); color: #fff; border: 1px solid #3b4a59; border-radius: var(--radius); padding: 5px 10px; font: inherit; font-size: 14px; }
  .side .collapsible { display: none; }
  .side.open .collapsible { display: block; }
  .planbox { margin-top: 14px; }
  .main { padding: 20px 16px 48px; }
  .plans { grid-template-columns: 1fr; }
  table.list th, table.list td { padding-left: 14px; padding-right: 14px; }
  table.list .hide-sm { display: none; }
  .steps li { grid-template-columns: 30px 1fr; padding: 14px; }
  .steps li .btn { grid-column: 2; justify-self: start; }
}

/* Documents */
.pagehead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 14px; }
.crumbs a { color: var(--muted); }
.filters { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.filters input[type=text] { max-width: 320px; }
.filters select { width: auto; }
.rowlink { font-weight: 500; color: var(--ink); text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.rowlink.folder::before { content: ""; display: inline-block; width: 16px; height: 12px; margin-right: 8px; border-radius: 3px; background: #d4d4d8; border: 0; vertical-align: -1px; }
.chip { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); margin-left: 6px; text-decoration: none; border: 1px solid var(--line); }
.chip.bad { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.pad { padding: 0 24px 20px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; margin: 0 6px 9px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.copyrow { display: flex; gap: 6px; margin-top: 6px; max-width: 460px; }
.copyrow input { font-size: 13px; padding: 5px 8px; color: var(--muted); }
tr.off td > b, tr.off .copyrow { opacity: .55; }
.readbar { display: inline-block; width: 90px; height: 6px; background: #ececee; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.readbar span { display: block; height: 100%; background: var(--mark); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumbs img { width: 100%; height: auto; min-height: 90px; border: 1px solid var(--line); display: block; background: var(--canvas); }
.foldertools { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; max-width: 520px; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: min(480px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 18px 50px rgba(9, 9, 11, .28); }
dialog::backdrop { background: rgba(9, 9, 11, .45); }
dialog h2 { margin-bottom: 6px; font-size: 19px; }
dialog .inline { margin-bottom: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
input[type=file] { font: inherit; width: 100%; padding: 14px; border: 1.5px dashed #d4d4d8; border-radius: var(--radius); background: var(--canvas); }

/* Link settings form */
textarea { width: 100%; font: inherit; color: var(--ink); border: 1px solid #d4d4d8; border-radius: var(--radius); padding: 9px 11px; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
input[type=datetime-local] { width: 100%; font: inherit; border: 1px solid #d4d4d8; border-radius: var(--radius); padding: 8px 11px; }
.check.block { display: flex; align-items: flex-start; margin: 0 0 10px; }
.check.block input { margin-top: 3px; flex: none; }
.check.block .hint { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qrow { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; max-width: 640px; }
.qrow .check { margin: 0; white-space: nowrap; }
.formend { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding: 14px 0; border-top: 1px solid var(--line); }
table.list td.actions a { margin-left: 12px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .qrow { flex-wrap: wrap; } }

/* Analytics */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.stats > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.statnote { margin-bottom: 18px; min-height: 1px; }
.pagebars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.pagebars li { display: grid; grid-template-columns: 70px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.pagebars .track { height: 10px; background: #f0f0f1; border-radius: 5px; display: block; }
.pagebars .fill { display: block; height: 100%; background: var(--ink); border-radius: 5px; min-width: 3px; }
.pagebars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagebars.mini { margin-top: 8px; max-width: 420px; gap: 4px; }
.pagebars.mini li { font-size: 13px; grid-template-columns: 60px 1fr 44px; }
.pagebars.mini .track { height: 6px; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-top: 4px; }
table.visits td { vertical-align: top; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div { border-left: 0; border-top: 1px solid var(--line); } }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.sect { margin: 26px 0 10px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cols .panel { margin: 0; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .stats.four { grid-template-columns: repeat(2, 1fr); } }
.folderrow td { background: #fafafa; }
.picklist { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0 14px; }
.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
label > input[type=text], label > textarea { margin-top: 5px; font-weight: 400; }
.tabs { flex-wrap: wrap; row-gap: 0; }
.brandprev { border: 1px solid var(--line); background: repeating-conic-gradient(#f1f3f5 0% 25%, #fff 0% 50%) 50% / 16px 16px; padding: 10px; border-radius: var(--radius); margin-bottom: 8px; display: inline-block; }
.brandprev img { display: block; max-height: 60px; max-width: 220px; }
.brandprev.wide img { max-width: 100%; max-height: 110px; }
input[type=color] { width: 54px; height: 36px; padding: 2px; border: 1px solid #d4d4d8; border-radius: var(--radius); background: #fff; vertical-align: middle; }
.chip.good { background: #f0fdf4; border-color: #bbf7d0; color: var(--ok); }
.plans .price .per { font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------------------- Scale and spacing
   Larger type, roomier controls and an icon menu, so the app feels calm rather than cramped. */
body { font-size: 15px; }
h1 { font-size: 28px; letter-spacing: -0.03em; }
h2 { font-size: 17px; }
.small { font-size: 13.5px; }
label { font-size: 14.5px; }
input[type=text], input[type=email], input[type=password], select, textarea, input[type=datetime-local] { padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow); }
.btn { padding: 10px 16px; font-size: 14.5px; border-radius: 8px; }
.btn.sm { padding: 6px 11px; font-size: 13.5px; }
.shell { grid-template-columns: 272px minmax(0, 1fr); }
.side { padding: 20px 14px 16px; }
.side .wordmark { font-size: 20px; padding: 4px 8px 20px; }
.side .wordmark i { width: 24px; height: 24px; }
.side .wordmark i::after { left: 6.5px; right: 6.5px; top: 7px; }
.teampick { margin-bottom: 18px; }
.teampick .one { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.teampick .tn { min-width: 0; line-height: 1.25; }
.teampick .tn b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teampick .tn small { color: var(--muted); font-size: 12.5px; }
.avatar.sq { border-radius: 8px; width: 34px; height: 34px; }
.nav { gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; font-size: 15px; border-radius: 8px; }
.nav a svg { flex: none; color: var(--muted); }
.nav a:hover svg, .nav a[aria-current=page] svg { color: var(--ink); }
.planbox { padding: 16px; border-radius: 12px; font-size: 13.5px; }
.planbox .name { font-size: 15px; }
.meter { margin-top: 11px; }
.me { padding: 14px 4px 0; font-size: 14px; }
.avatar { width: 34px; height: 34px; font-size: 12px; }
.main { padding: 0; }
.topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 40px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.topbar > span:first-child { color: var(--ink); font-weight: 500; }
.main > .wrap { max-width: 1120px; padding: 40px 48px 72px; }
.pagehead { margin-bottom: 28px; }
.pagehead p { font-size: 15.5px; }
.tabs { gap: 30px; margin-bottom: 30px; }
.tabs a { padding: 10px 2px 13px; font-size: 15px; }
.panel { padding: 26px 28px; margin-bottom: 24px; }
.panel > h2 + p { margin-bottom: 18px; }
.panel.flush > h2 { padding: 22px 28px 14px; }
table.list th { padding: 11px 28px; font-size: 13px; }
table.list td { padding: 15px 28px; }
.pad { padding: 0 28px 24px; }
.stats > div { padding: 20px 24px; }
.stats b { font-size: 28px; letter-spacing: -0.03em; }
.stats span { font-size: 13.5px; }
.chip { font-size: 12px; padding: 2px 9px; }
.empty { padding: 64px 28px; }
.empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z M14 3v5h5 M9 13h6 M9 17h4'/%3E%3C/svg%3E"); box-shadow: var(--shadow); }
.empty h2 { font-size: 18px; }
.steps li { padding: 18px 28px; }
.pagebars li { font-size: 14.5px; grid-template-columns: 78px 1fr 60px; }
dialog { padding: 28px; }
/* Sign-in pages */
.auth { grid-template-columns: minmax(0, 560px) 1fr; }
.auth-main { padding: 44px 64px; }
.auth-main .inner { max-width: 400px; }
.auth-main h1 { font-size: 30px; }
.auth-main .lead { font-size: 16px; margin-bottom: 28px; }
.auth-main .btn.block { padding: 12px 16px; font-size: 15px; }
.auth-main input { padding: 12px 13px; }
.readout { width: min(480px, 100%); padding: 34px; border-radius: 16px; }
.readout .q { font-size: 28px; }
.readout li { font-size: 14px; grid-template-columns: 66px 1fr 48px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .main > .wrap { padding: 22px 16px 48px; }
  .auth-main { padding: 24px 20px; }
  table.list th, table.list td { padding-left: 16px; padding-right: 16px; }
}

/* ---------------------------------------------------------------- Sign-in pages: one calm centred form */
.authpage { min-height: 100vh; background: var(--canvas); display: flex; flex-direction: column; align-items: center; padding: 56px 20px 32px; }
.authpage > .wordmark { font-size: 22px; margin-bottom: 32px; }
.authpage > .wordmark i { width: 26px; height: 26px; border-radius: 7px; }
.authpage > .wordmark i::after { left: 7px; right: 7px; top: 8px; }
.authcard { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 36px 32px; box-shadow: 0 10px 40px rgba(9, 9, 11, .06); }
.authcard h1 { font-size: 26px; margin-bottom: 8px; }
.authcard .lead { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.authcard .btn.block { padding: 12px 16px; font-size: 15px; }
.authcard input { padding: 12px 13px; }
.authlegal { margin-top: 22px; display: flex; gap: 18px; font-size: 13.5px; }
.authlegal a { color: var(--muted); text-decoration: none; }
.authlegal a:hover { text-decoration: underline; }
@media (max-width: 520px) { .authpage { padding-top: 28px; } .authcard { padding: 26px 20px; } }

/* ---------------------------------------------------------------- Settings cards: title and action on top, content below */
.tabs { overflow-x: auto; flex-wrap: nowrap; gap: 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 10px 12px 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; box-shadow: var(--shadow); overflow: hidden; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.card > header h2 { font-size: 18px; margin-bottom: 4px; }
.card > header p { margin: 0; color: var(--muted); max-width: 64ch; }
.card > header .btn { flex: none; }
.card > .body { padding: 24px 28px; }
.card table.list th { border-top: 0; }
.blank { padding: 64px 24px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.blank b { font-weight: 600; font-size: 15.5px; }
.blank span { color: var(--muted); }
.ic { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 12px; box-shadow: var(--shadow); background: var(--surface) center / 20px no-repeat; }
.ic.doc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z M14 3v5h5 M9 13h6 M9 17h4'/%3E%3C/svg%3E"); }
.ic.key { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8 M16 7l3 3'/%3E%3C/svg%3E"); }
.ic.hook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.ic.send { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3L10 14 M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E"); }
.ic.sliders { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10 M18 7h2 M4 17h4 M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E"); }
@media (max-width: 700px) { .card > header { flex-direction: column; align-items: flex-start; padding: 20px 16px; } .card > .body { padding: 20px 16px; } }

/* Side menu: Settings drop-down */
.navgroup { margin-top: 12px; }
.navgroup summary { display: flex; align-items: center; gap: 11px; padding: 9px 10px; font-size: 15px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); list-style: none; margin: 0; }
.navgroup summary::-webkit-details-marker { display: none; }
.navgroup summary:hover { background: #f0f0f1; color: var(--ink); }
.navgroup summary svg { flex: none; color: var(--muted); }
.navgroup summary .chev { margin-left: auto; transition: transform .15s; }
.navgroup[open] summary .chev { transform: rotate(180deg); }
.navgroup .sub { margin: 4px 0 4px 18px; padding-left: 12px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.navgroup .sub a { padding: 6px 10px; font-size: 14.5px; color: var(--ink-2); }
.navgroup .sub a[aria-current=page] { background: #ececee; color: var(--ink); }
/* Dashboard */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--surface); box-shadow: var(--shadow); }
.seg a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.seg a[aria-current=true] { background: #ececee; color: var(--ink); }
.pagehead .actions { align-items: center; }
.daychart { display: flex; align-items: flex-end; gap: 3px; height: 170px; border-bottom: 1px solid var(--line); }
.daychart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.daychart .col i { display: block; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 0; }
.daychart .col:hover i { background: #52525b; }
.dayaxis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.cols .card { margin: 0; }
.card > header .btn.sm { align-self: center; }
/* The plan box sits straight under the menu and moves down when Settings opens; the account row stays at the bottom. */
.planbox { margin-top: 18px; }
.me { margin-top: auto; }

/* Dashboard: one large line chart, then tabbed lists */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pagehead.dash h1 { font-size: 32px; font-weight: 650; }
.range select { width: 220px; padding: 10px 12px; font-weight: 500; }
.linechart { position: relative; margin: 8px 0 40px; padding: 0 0 0 0; height: 320px; }
.linechart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.linechart .grid { stroke: #f0f0f1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.linechart .grid:first-of-type { stroke: var(--line); }
.linechart .line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.linechart .dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.linechart .yaxis span { position: absolute; left: 0; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.linechart .xaxis span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.linechart .xaxis span:first-child { transform: none; } .linechart .xaxis span:last-child { transform: translateX(-100%); }
.tabs.counts { margin-bottom: 18px; }
.tabs.counts i { font-style: normal; font-size: 12px; background: #f0f0f1; color: var(--ink-2); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-weight: 500; }
.card.tight table.list th { font-size: 14px; color: var(--muted); padding: 14px 24px; background: var(--surface); }
.card.tight table.list td { padding: 16px 24px; }
.linkline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.linkline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.iconbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tablefoot { margin: 0; padding: 14px 24px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 860px) { .linechart { height: 220px; } .range select { width: 100%; } }
