
:root { --bg: #f7f5f2; --card: #fff; --text: #1d1b19; --muted: #6f6a64; --line: #e4dfd8; --accent: #c1572f; --ok: #2f7d4f; --err: #b3261e; --logo-past: #7d5bd4; --wave-opacity: 0.2; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141312; --card: #1d1c1a; --text: #ece8e2; --muted: #9b958d; --line: #2e2b28; --accent: #e07a52; --ok: #5fbf85; --err: #f2867d; --logo-past: #c0a0ff; --wave-opacity: 0.16; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #141312; --card: #1d1c1a; --text: #ece8e2; --muted: #9b958d; --line: #2e2b28; --accent: #e07a52; --ok: #5fbf85; --err: #f2867d; --logo-past: #c0a0ff; --wave-opacity: 0.16; color-scheme: dark; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; }
.avatar.s { width: 26px; height: 26px; font-size: 11px; } .avatar.m { width: 36px; height: 36px; font-size: 14px; } .avatar.l { width: 72px; height: 72px; font-size: 26px; }
.avatar.initials.c0 { background: #c1572f; } .avatar.initials.c1 { background: #4f7fd6; } .avatar.initials.c2 { background: #2f9d6a; }
.avatar.initials.c3 { background: #b88a1d; } .avatar.initials.c4 { background: #8b6cf0; } .avatar.initials.c5 { background: #6f6a64; }
.who-cell { display: flex; align-items: center; gap: 8px; }
.side-user { display: flex !important; align-items: center; gap: 8px; }
.side-user-text { display: flex; flex-direction: column; min-width: 0; }
.side-user-text strong { font-size: 13px; } .side-user-text span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-photo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.profile-photo form, .profile-photo input[type=file] { width: 100%; max-width: 100%; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }
.ascii-wave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: var(--muted); }
body.with-wave .top, body.with-wave main { position: relative; z-index: 1; }
body.with-wave .top { border-bottom-color: transparent; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 24px; margin: 8px 0 16px; } h2 { font-size: 17px; margin: 0 0 8px; } h3 { font-size: 14px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.muted { color: var(--muted); font-size: 13px; }
a { color: var(--accent); }
input, select, button { font: inherit; border-radius: 8px; border: 1px solid var(--line); padding: 7px 10px; background: var(--bg); color: var(--text); }
button { cursor: pointer; background: var(--card); }
button.primary, button.wide { background: var(--accent); color: #fff; border-color: var(--accent); }
button.wide { width: 100%; margin: 4px 0; }
button.link { border: none; background: none; color: var(--accent); padding: 0; }
button.danger { color: var(--err); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .row input { flex: 1; min-width: 180px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; } .stack label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; }
.dev { border-top: 1px dashed var(--line); padding-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); } tr.gone { opacity: .5; }
.list { padding-left: 18px; }
.pill { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); } .pill.ok { color: var(--ok); border-color: var(--ok); }
.notice { padding: 10px 12px; border-radius: 8px; } .notice.error { background: color-mix(in srgb, var(--err) 12%, transparent); } .notice.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; } .facts dt { color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; } .stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; } .stats strong { font-size: 20px; } .stats span { font-size: 12px; color: var(--muted); }
.who { font-size: 13px; }
body.with-side main.content { max-width: none; margin: 0; padding: 28px 32px 60px; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--card); overflow-y: auto; }
.side .brand { padding: 2px 10px 16px; margin: 0; }
.side a { color: var(--text); text-decoration: none; border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.side a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.side a.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.icon { width: 18px; height: 18px; flex: none; }
.mark { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.side a, .side-out { display: flex; align-items: center; gap: 10px; }
.side a .icon { opacity: .75; } .side a.active .icon, .side a:hover .icon { opacity: 1; }
.side-out { width: 100%; border: none; background: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; text-align: left; }
.side-out:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.titled { display: flex; align-items: center; gap: 10px; } h1.titled .icon { width: 24px; height: 24px; color: var(--accent); } h2.titled .icon { color: var(--accent); }
.side-company { font-weight: 700; font-size: 14px; padding: 4px 10px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link { color: var(--muted) !important; }
.side-link.active { color: var(--accent) !important; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

.side-foot form { padding: 0; }
.side-region { font-size: 11px; color: var(--muted); padding: 2px 10px; }
.page-head { margin-bottom: 14px; } .page-head h1 { margin: 2px 0 0; } .page-head .muted { font-size: 13px; }
.content > .card, .content > .stats, .content > p { max-width: 900px; }
.stats { margin-bottom: 16px; }
.org-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; max-width: 900px; }
.org-card { display: flex; justify-content: space-between; align-items: center; color: var(--text); text-decoration: none; }
.org-card:hover { border-color: var(--accent); }
th.num, td.num { text-align: right; }
.table-scroll { overflow-x: auto; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select { padding: 3px 6px; }
a.button-link { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; background: var(--bg); }
.danger-zone { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.danger-button { background: var(--err); color: #fff; border-color: var(--err); }
.group-head { display: flex; justify-content: space-between; align-items: center; }
.inline-form.inline { display: inline-flex; margin-left: 8px; }
.stack textarea { font: 12px ui-monospace, Menlo, monospace; border-radius: 8px; border: 1px solid var(--line); padding: 7px 10px; background: var(--bg); color: var(--text); }
code.selectable { user-select: all; word-break: break-all; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; max-width: 900px; }
.dash-filters { display: flex; gap: 8px; align-items: center; }
.seg-links { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-links a { padding: 5px 10px; color: var(--text); text-decoration: none; font-size: 13px; }
.seg-links a.active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; }
.stats b.up { color: var(--err); font-weight: 600; } .stats b.down { color: var(--ok); font-weight: 600; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .axis { fill: var(--muted); font-size: 10px; }
.seg.c0, .swatch.c0 { fill: #c1572f; background: #c1572f; } .seg.c1, .swatch.c1 { fill: #4f7fd6; background: #4f7fd6; }
.seg.c2, .swatch.c2 { fill: #2f9d6a; background: #2f9d6a; } .seg.c3, .swatch.c3 { fill: #b88a1d; background: #b88a1d; }
.seg.c4, .swatch.c4 { fill: #8b6cf0; background: #8b6cf0; } .seg.c5, .swatch.c5 { fill: #8f8a84; background: #8f8a84; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.people-usage td { vertical-align: top; }
.plan-cell { min-width: 190px; }
.plan-row { display: grid; grid-template-columns: 70px 1fr 36px; gap: 6px; align-items: center; font-size: 11.5px; }
svg.plan-bar { width: 100%; height: 6px; display: block; }
svg.plan-bar .track { fill: var(--line); } svg.plan-bar .fill { fill: var(--ok); } svg.plan-bar .fill.mid { fill: #b88a1d; } svg.plan-bar .fill.high { fill: var(--err); }
.bar-cell { width: 45%; }
.pill.warn { color: #b88a1d; border-color: #b88a1d; }
.join-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 900px; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .side-foot { margin-top: 10px; }
  body.with-side main.content { padding: 20px 16px 48px; }
}

/* Sign-in and first run: one card in the middle of the page */
body.centered { min-height: 100vh; }
main.center { max-width: none; min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; z-index: 1; }
.center-out { position: fixed; top: 16px; right: 20px; z-index: 2; }
.onboard { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: stretch; text-align: center; animation: onboard-in .35s ease-out; }
@keyframes onboard-in { from { opacity: 0; transform: translateY(8px); } }
.onboard-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.onboard-mark .mark { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 20px rgb(0 0 0 / 18%); }
.onboard h1 { font-size: 27px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 8px; }
.onboard-lede { color: var(--muted); margin: 0 auto 22px; max-width: 380px; }
.onboard-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; text-align: left; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 6%); }
.onboard-card form + form { margin-top: 8px; }
.onboard-foot { color: var(--muted); font-size: 12px; margin: 10px auto 0; max-width: 360px; }
.onboard-skip { display: flex; justify-content: center; margin-top: 4px; }
.onboard-skip .link { color: var(--muted); font-size: 14px; }
.onboard input:not([type=radio]), .onboard textarea { width: 100%; padding: 11px 13px; border-radius: 10px; font-size: 15px; }
.onboard textarea { font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); resize: vertical; }
.onboard button.wide { padding: 11px; border-radius: 10px; font-weight: 600; margin: 4px 0 0; }
.stack.tight { margin-top: 0; gap: 10px; }
.onboard-steps { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; margin: -4px 0 18px; }
.onboard-steps li { width: 22px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.onboard-steps li.done { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.onboard-steps li.now { background: var(--accent); }
button.provider { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border-radius: 10px; font-weight: 600; background: var(--card); }
button.provider:hover { background: color-mix(in srgb, var(--text) 5%, var(--card)); }
.provider-icon { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chips { border: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip span:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.join-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.connect-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.connect-steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: baseline; }
.connect-steps li::before { content: counter(step); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.connect-steps li > :not(:first-child) { grid-column: 2; }
.copy-address { display: block; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); user-select: all; }
@media (prefers-reduced-motion: reduce) { .onboard { animation: none; } }
