/* Aedify console. Tokens follow the ops-2 prototype: dark ground, purple accent. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0c0c0f; --side: #0c0c0f; --panel: #17171c; --panel2: #1f1f26; --line: #26262e; --line2: #3a3a46;
  --text: #ededf2; --muted: #8a8a96; --faint: #565663; --hi: #fff;
  --acc: #b794f6; --acc2: #8b5cf6; --acc-bg: #1d1530; --acc-dim: #4c3a75; --on-acc: #0c0c0f;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --ok-bg: #0f241d; --ok-b: #1f5c47; --warn-bg: #251e0b; --warn-b: #5f4a17; --bad-bg: #2a1010; --bad-b: #5f1d1d;
  --field: #121217; --row: #1c1c23;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Geist", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6f9; --side: #efeff4; --panel: #fff; --panel2: #f2f1f7; --line: #e2e1ea; --line2: #c9c7d6;
  --text: #16151c; --muted: #5f5d6e; --faint: #9a98aa; --hi: #0c0b10;
  --acc: #6d28d9; --acc2: #7c3aed; --acc-bg: #efe8fd; --acc-dim: #c9b6f5; --on-acc: #fff;
  --ok: #0f8a5f; --warn: #a16207; --bad: #b91c1c;
  --ok-bg: #e6f6ef; --ok-b: #9fd8bf; --warn-bg: #fbf3dc; --warn-b: #e8cf86; --bad-bg: #fbe9e9; --bad-b: #efb1b1;
  --field: #fbfbfd; --row: #f4f3f8; color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; border-radius: 5px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grow { flex: 1; min-width: 0; }

/* --- controls --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--acc-dim); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn.primary:hover { background: var(--acc2); border-color: var(--acc2); color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--bad-b); background: var(--bad-bg); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--field); }
.textarea { height: auto; min-height: 84px; padding: 9px 11px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--acc2); }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 8px; background: var(--field); overflow: hidden; }
.affix:focus-within { border-color: var(--acc2); }
.affix span { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; background: var(--panel2); white-space: nowrap; }
.affix input { flex: 1; min-width: 0; height: 34px; border: 0; background: none; padding: 0 10px; font-family: var(--mono); font-size: 13px; }
.affix input:focus { outline: none; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--acc2); margin: 0; }
.error { color: var(--bad); font-size: 13px; }
.notice { border: 1px solid var(--line2); background: var(--panel2); border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--muted); }
.notice.ok { border-color: var(--ok-b); background: var(--ok-bg); color: var(--text); }
.notice.warn { border-color: var(--warn-b); background: var(--warn-bg); color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: var(--ok-b); background: var(--ok-bg); }
.pill.warn { color: var(--warn); border-color: var(--warn-b); background: var(--warn-bg); }
.pill.bad { color: var(--bad); border-color: var(--bad-b); background: var(--bad-bg); }
.pill.plain::before { display: none; }
.tag { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--acc); border: 1px solid var(--acc-dim); background: var(--acc-bg); padding: 1px 6px; border-radius: 4px; letter-spacing: .06em; }

/* --- entry page --- */
.entry { min-height: 100%; display: grid; place-items: center; padding: 40px 16px; }
.entry-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.entry-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.entry-brand i { width: 24px; height: 24px; background: url("favicon.svg") center / contain no-repeat; flex: none; }
.entry h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.entry .sub { color: var(--muted); margin-top: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { font-size: 15px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border: 1px solid var(--line2); border-radius: 9px; }
.seg button { height: 30px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; }
.seg button.on { background: var(--acc-bg); color: var(--acc); }
.startups { display: flex; flex-direction: column; gap: 8px; }
.startup { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--row); }
.startup b { display: block; font-weight: 600; }
.entry-foot { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 12.5px; }

/* --- console shell --- */
#app { height: 100%; }
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100%; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; padding: 14px 10px 14px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; font-weight: 600; font-size: 15px; }
.brand i { width: 20px; height: 20px; background: url("favicon.svg") center / contain no-repeat; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 14px 10px 6px; }
.nv { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.nv svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nv:hover { background: var(--panel); }
.nv.on { background: var(--acc-bg); color: var(--hi); }
.nv.on svg { color: var(--acc); }
.nv.soon { color: var(--faint); cursor: default; }
.nv.soon:hover { background: none; }
.nv.soon svg { color: var(--faint); }
.nv .badge { margin-left: auto; font-size: 9.5px; letter-spacing: .08em; font-weight: 600; border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; color: var(--faint); line-height: 1.6; text-transform: uppercase; }
.side .bot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.who { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--muted); font-size: 12.5px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--acc-bg); border: 1px solid var(--acc-dim); color: var(--acc); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; text-transform: uppercase; }

.main { overflow-y: auto; padding: 16px 36px 72px; min-width: 0; }
.top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chip { font-size: 12px; border: 1px solid var(--line2); border-radius: 999px; padding: 3px 11px; color: var(--muted); white-space: nowrap; }
.chip.acc { border-color: var(--acc-dim); color: var(--acc); }
.tog { display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; }
.tog button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tog button.on { background: var(--acc-bg); color: var(--acc); }
.menu-btn { display: none; }
.ph { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 26px 0 4px; }
.ph h1 { font-size: 24px; font-weight: 700; color: var(--acc); letter-spacing: -.01em; }
.ph .sub2 { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 9px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs button.on { color: var(--hi); border-bottom-color: var(--acc); }
.page { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; max-width: 1080px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { align-items: flex-end; }
.between { justify-content: space-between; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat span { font-size: 12.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1240px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stepc { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
.stepc b { font-weight: 600; }
.stepc span { font-size: 12.5px; color: var(--muted); }
.stepc.live { border-color: var(--acc-dim); background: var(--acc-bg); }
.stepc.live span { color: var(--acc); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 15px; font-weight: 600; }
.panel-b { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.panel-b.flush { padding: 0; gap: 0; }
.res { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.res:last-child { border-bottom: 0; }
.res-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-h b { font-weight: 600; }
.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.kv code { font-family: var(--mono); font-size: 12.5px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.console-box { border: 1px solid var(--line); border-radius: 9px; background: var(--field); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.out { font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; margin: 0; color: var(--text); }
.out.bad { color: var(--bad); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; }
.grid td, .grid th { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; min-width: 90px; }
.meter i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.confirm { border: 1px solid var(--bad-b); background: var(--bad-bg); border-radius: 9px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.secret { border: 1px solid var(--ok-b); background: var(--ok-bg); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.secret code { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; padding: 9px 14px; font-size: 13px; z-index: 20; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 10; transform: translateX(-100%); transition: transform .18s; }
  .app.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
  .menu-btn { display: inline-flex; }
  .main { padding: 14px 16px 60px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* details that only show at narrow widths */
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.res-h .mono, .panel-h .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.conn-h b { font-weight: 600; color: var(--text); }

/* --- usage over time --- */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.usage-now { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.usage-now small { display: block; color: var(--muted); font-size: 12px; }
.usage-now b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usage-now span { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.usage-now .meter { flex: 1; min-width: 80px; margin-bottom: 9px; }
.usage-month { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.usage-month b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 8px; }
.usage-month span:first-child { margin-right: 2px; }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; }
.yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 120px; font-size: 11px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.plot { position: relative; height: 120px; cursor: crosshair; border-radius: 2px; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plot .wash { fill: var(--acc); opacity: .1; }
.cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); pointer-events: none; }
.dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--panel); transform: translate(-50%, -50%); pointer-events: none; }
.tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: 6px 9px; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; pointer-events: none; z-index: 2; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.tip b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip span { font-size: 11.5px; color: var(--muted); }
.xaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 5px; }
.chart-empty { height: 120px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line2); border-radius: 8px; padding: 0 16px; }

/* --- pages added with Idea, Plan and Website --- */
code.inline { font-family: var(--mono); font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--panel2); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.input.big { font-size: 18px; padding: 12px 14px; }
.textarea.prose { min-height: 120px; font-family: inherit; font-size: 14px; line-height: 1.55; resize: vertical; }
.input.bare { border-color: transparent; background: transparent; padding-left: 6px; flex: 1; min-width: 0; }
.input.bare:hover { border-color: var(--line); }
.input.bare.title { font-weight: 600; font-size: 15px; }
.select.small { padding: 4px 28px 4px 8px; font-size: 13px; width: auto; }
.panel-h .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 600; background: var(--panel2); flex: none; }
.panel.done .panel-h .num { background: var(--ok-bg); color: var(--ok); }
.tasks { display: flex; flex-direction: column; margin: 12px 0 8px; }
.task { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.task input[type="checkbox"] { flex: none; }
.task.done .input.bare { text-decoration: line-through; opacity: 0.6; }
.task .btn { visibility: hidden; }
.task:hover .btn, .task:focus-within .btn { visibility: visible; }

/* --- Launch, Grow, Product, Results --- */
.todos { display: flex; flex-direction: column; gap: 2px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); font-size: 12px; flex: none; }
.todo.done .tick { border-color: var(--ok-b); background: var(--ok-bg); color: var(--ok); }
.todo.done { color: var(--muted); }
.delta { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.delta.up { color: var(--ok); background: var(--ok-bg); }
.delta.down { color: var(--bad); background: var(--bad-bg); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bar i { display: block; width: 100%; background: var(--acc); border-radius: 3px 3px 0 0; opacity: 0.85; }
.bar:hover i { opacity: 1; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.frow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: 14px; }
.frow b { text-align: right; font-variant-numeric: tabular-nums; }
.fbar { height: 18px; background: var(--row); border-radius: 5px; overflow: hidden; }
.fbar i { display: block; height: 100%; background: var(--acc); border-radius: 5px; }
@media (max-width: 640px) { .frow { grid-template-columns: 110px minmax(0, 1fr) 50px; } }

/* --- plan and billing --- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.plan.on { border-color: var(--acc-dim); background: var(--acc-bg); }
.plan .price { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.plan .price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.affix.narrow { max-width: 240px; }
.meter.near i { background: var(--warn); }
.meter.over i { background: var(--bad); }
.panel-b > .meter { margin-bottom: 12px; }
#app.adminpage { height: 100%; overflow-y: auto; padding: 28px clamp(16px, 4vw, 48px) 60px; display: flex; flex-direction: column; gap: 18px; }
.adminpage .ph .entry-brand { text-decoration: none; margin-right: 12px; }
.adminpage .stat .meter { margin-top: 10px; }

/* --- apps --- */
.out.logs { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; }
.console-box > b { display: block; margin-bottom: 8px; }

/* --- a snippet with a copy button (Launch, Product) --- */
.codeblock { position: relative; margin: 12px 0; }
.codeblock .btn { position: absolute; top: 6px; right: 6px; }
.codeblock .out { margin: 0; padding-right: 64px; white-space: pre; overflow-x: auto; }

/* --- sign in with Google --- */
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.google .g { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 700; font-size: 12px; line-height: 1; }

/* --- the startup switcher --- */
.sw-wrap { position: relative; }
.brand.sw { width: 100%; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; border-radius: 10px; }
.brand.sw:hover { background: var(--row); }
.brand.sw svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sw-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); }
.sw-h { padding: 6px 10px 4px; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.sw-i { display: grid; gap: 1px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.sw-i:hover { background: var(--row); }
.sw-i b { font-weight: 550; font-size: 13.5px; }
.sw-i span { font-size: 12px; color: var(--muted); }
.sw-i.on { cursor: default; }
.sw-i.on b::after { content: " ✓"; color: var(--acc); }
.sw-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.top button.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12.5px; }
.top button.chip:hover { color: var(--text); border-color: var(--line2); }

/* --- Home --- */
.panel.next small { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--acc); margin-bottom: 4px; }
.panel.next p { margin: 0; font-size: 15px; color: var(--hi); }
button.stepc { font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.stepc:hover { border-color: var(--line2); }

/* --- Idea --- */
.textarea.prose.tall { min-height: 220px; }

/* --- Build: one line per resource, details on demand --- */
.res-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.res-sum code { font-family: var(--mono); font-size: 12px; }
.res-more { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 640px) { .res-sum { flex-basis: 100%; order: 9; white-space: normal; } }

/* --- the account page: your ops --- */
.ops-page { width: 100%; max-width: 920px; display: flex; flex-direction: column; gap: 24px; align-self: start; }
.ops-top { display: flex; align-items: center; gap: 14px; font-size: 13.5px; flex-wrap: wrap; }
.ops-top a { color: var(--muted); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.ops-grid > * { min-width: 0; }
.ops-card .affix { min-width: 0; }
.ops-card .affix input { min-width: 0; width: 100%; }
.ops-card .affix span { flex: none; }
.ops-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-height: 168px; }
.ops-card > .row:last-child { margin-top: auto; padding-top: 6px; }
.ops-name { font-size: 16px; font-weight: 620; color: var(--hi); }
.ops-host { font-size: 12.5px; }
.ops-card.new { border-style: dashed; background: transparent; }
.ops-card.new.first { border-style: solid; background: var(--panel); max-width: 520px; }
.ops-add { display: grid; gap: 6px; align-content: center; justify-items: start; width: 100%; height: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ops-add b { font-size: 16px; color: var(--hi); }
.ops-card.new:hover { border-color: var(--acc-dim); }

/* --- the console's corner: which startup, on which address; and the project, when there are several --- */
.sw-name { display: grid; min-width: 0; line-height: 1.25; }
.sw-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-name small { font-size: 11.5px; font-weight: 400; color: var(--faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand.sw { padding: 6px 8px; margin-bottom: 8px; align-items: center; }
.proj { display: grid; gap: 4px; padding: 0 8px 10px; }
.proj span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.proj .select.small { width: 100%; height: 32px; }
.navlist { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }

/* --- a heading between sections of one page --- */
.sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sec-h h2 { font-size: 17px; font-weight: 650; color: var(--hi); }
.sec-h .pill { align-self: center; }

/* --- the account, in the corner of the account page --- */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.acct-btn:hover { border-color: var(--line2); color: var(--text); }
.acct .sw-menu { left: auto; right: 0; min-width: 240px; }
.pw-card { max-width: 440px; }
@media (max-width: 520px) { .acct-mail { display: none; } .acct-btn { padding: 4px; } }

/* --- an app from code, a VM --- */
.pill.after { margin-left: 8px; }
.res-more .tablewrap { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.res-more .conn-h { margin-top: 14px; }
.out.logs { max-height: 320px; overflow: auto; }

/* --- the platform's health --- */
.hsum { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.hsum b { font-size: 16px; }
.hsum span { color: var(--muted); font-size: 13px; }
.hsum.ok { border-color: var(--ok-b); background: var(--ok-bg); } .hsum.ok b { color: var(--ok); }
.hsum.bad { border-color: var(--bad-b); background: var(--bad-bg); } .hsum.bad b { color: var(--bad); }
.hrows { display: flex; flex-direction: column; }
.hrow { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(120px, 300px) 64px 72px; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.hrow.bad { background: var(--bad-bg); }
.hname { display: grid; min-width: 0; }
.hname span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.hdot.up { background: var(--ok); } .hdot.down { background: var(--bad); }
.hbars { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; height: 22px; }
.hbars i { border-radius: 2px; background: var(--line); }
.hbars i.up { background: var(--ok); opacity: .75; } .hbars i.some { background: var(--warn); } .hbars i.down { background: var(--bad); }
.hpct { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.hwhen { text-align: right; font-size: 12px; }
@media (max-width: 760px) { .hrow { grid-template-columns: 12px minmax(0, 1fr) 56px; } .hbars, .hwhen { display: none; } }

/* --- traffic --- */
.trows { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(120px, 2fr) auto; gap: 18px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.tname { display: grid; gap: 2px; }
.tname span { font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.tbars { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.tbars i { flex: 1; background: var(--acc); opacity: .7; border-radius: 2px 2px 0 0; min-width: 2px; }
.tnums { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.tnums span { display: grid; text-align: right; font-size: 13.5px; }
.tnums small { font-size: 11px; color: var(--faint); }
.tnums .bad { color: var(--bad); }
@media (max-width: 760px) { .trow { grid-template-columns: 1fr; gap: 8px; } .tnums { justify-content: flex-start; } }
