/* CompanyOS Agent Hub. The colors and fonts are the brand tokens of CompanyOS (docs/BRAND.md). /brand.css (made by
   the hub from Settings > Brand) loads after this file and sets them. The values below are the CompanyOS defaults
   (companyos.com; cubs-skills brand.md; the theme in socials/brand.json), so the page also works without it. */



:root {
  --accent: #407373; --on-accent: #FFFFFF; --accent-2: #3D9B91;
  --button: #59C2A4; --on-button: #2B3238;
  --ink: #434C55; --muted: #616970; --bg: #F5F0EB; --card: #FFFFFF; --line: #DCD7D0;
  --field-line: #7D8389;
  --chip: #EAE5DF; --info-bg: #E4F5F1; --warn: #50627C; --warn-bg: #E2ECF0;
  --side: #E2ECF0; --side-ink: #434C55; --side-muted: #616970; --nav-on-bg: #FFFFFF; --nav-on-ink: #434C55;
  --logo-chip: transparent; --logo-pad: 2px 4px;
  --shadow: 0 1px 2px rgba(67, 76, 85, .07), 0 6px 18px rgba(67, 76, 85, .06);
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7FCDBB; --on-accent: #2B3238; --accent-2: #4CBEA6;
    --button: #59C2A4; --on-button: #2B3238;
    --ink: #F5F0EB; --muted: #B7B2A7; --bg: #2B3238; --card: #353D45; --line: #535C64;
    --field-line: #8A939B;
    --chip: #565A5E; --info-bg: #384F53; --warn: #E2ECF0; --warn-bg: #3E4D5A;
    --side: #2B3238; --side-ink: #F5F0EB; --side-muted: #B7B2A7; --nav-on-bg: #353D45; --nav-on-ink: #F5F0EB;
    --logo-chip: #F5F0EB; --logo-pad: 2px 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
/* Input borders: 3:1 against the card in both modes, even when the brand sets a softer value. */
:root { --edge: #7D8389; }
@media (prefers-color-scheme: dark) { :root { --edge: #8A939B; } }
:root { --radius: 14px; --radius-btn: 999px; --strong: var(--ink); --strong-ink: var(--card); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration-color: var(--accent-2); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
h1:focus { outline: none; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: 2.2rem; line-height: 1.15; margin: .2rem 0 .4rem; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .4rem; }
h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; }
p { margin: .3rem 0 .7rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar and navigation */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { max-width: 980px; margin: 0 auto; padding: 10px 16px 4px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { height: 34px; width: auto; background: var(--logo-chip); border-radius: 8px; padding: var(--logo-pad); }
.brand .hubname { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; color: var(--muted); }
.who { margin-left: auto; font-size: .9rem; font-weight: 600; text-align: right; }
.who a { text-decoration: none; }
nav.tabs { max-width: 980px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav#tabs { flex-wrap: wrap; overflow: visible; }
nav.tabs a { padding: 6px 14px; margin: 4px 0 8px; color: var(--muted); text-decoration: none; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .92rem; }
nav.tabs a:hover { color: var(--ink); background: var(--chip); }
nav.tabs a.on { color: var(--ink); background: var(--chip); }
nav.tabs a[hidden] { display: none; }
#google[hidden], #signin[hidden] { display: none; }   /* sign-in page: the Google button and the password form */

main { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
.lead { font-size: 1.05rem; max-width: 46rem; }

/* The calm page head: way back, title, one-line status, one next action */
.pagehead { margin-bottom: 8px; }
.pagehead .back { margin: 0 0 .3rem; font-size: .95rem; }
.pagehead .back a { text-decoration: none; font-weight: 600; }
.status { font-size: 1.05rem; margin: 0 0 .6rem; max-width: 46rem; }
.status.inline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .95rem; }
.actions.next { margin: 4px 0 10px; }

/* Cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 12px 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid .card { margin: 0; }
.job .actions { margin-top: 8px; }
.section { margin-top: 28px; }
.section > h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section > h2 a { font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin-left: auto; }
.stackgap { display: grid; gap: 10px; }
.list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
a.row:hover { background: var(--info-bg); }
.row .title { font-weight: 700; overflow-wrap: anywhere; }
.row .meta { color: var(--muted); font-size: .85rem; grid-column: 1 / -1; overflow-wrap: anywhere; }
.row .meta-right { color: var(--muted); }
.row .text { grid-column: 1 / -1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .text.one { -webkit-line-clamp: 1; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 18px; color: var(--muted); margin: 0; }
button.showall { margin-top: 8px; font-size: .9rem; padding: 6px 14px; }

/* Closed sections: a one-line label and a count */
details.more { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; color: var(--ink); margin: 0; border-radius: var(--radius); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "›"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > summary .count { margin-left: auto; font-weight: 600; font-size: .85rem; color: var(--muted); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 1px 10px; }
details.more > .more-body { padding: 0 16px 14px; }
.row details.more { border: 0; background: transparent; }
.row details.more > summary { padding: 4px 0; font-size: .9rem; color: var(--accent); }
.row details.more > .more-body { padding: 4px 0 6px; }
.row details.more > summary .count { margin-left: 6px; }

/* Long text with "Show more" */
.clamp { max-height: calc(1.55em * 2); overflow: hidden; position: relative; }
.clamp.open { max-height: none; }

/* A small "?" with one line of help */
.helpwrap { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; flex-wrap: wrap; }
button.help { width: 24px; height: 24px; padding: 0; border-radius: 50%; font-size: .8rem; line-height: 1; border: 1.5px solid var(--edge); }
.tip { font-size: .85rem; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 4px 8px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 0; }
.filters input[type=search] { max-width: 260px; }
.filters select { width: auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button { padding: 6px 12px; font-size: .9rem; font-weight: 600; }
.seg button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }

/* State badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; align-self: start; }
.b-wait { background: var(--warn-bg); color: var(--warn); }
.b-work { background: var(--info-bg); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.b-ok { background: var(--info-bg); color: var(--accent); }
.b-warn { background: var(--chip); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.b-bad { background: var(--strong); color: var(--strong-ink); }
.b-muted { background: var(--chip); color: var(--ink); font-weight: 600; }

/* Forms */
.stack { display: grid; gap: 8px; }
.table-wrap { overflow-x: auto; }
.row > .row-wide { grid-column: 1 / -1; min-width: 0; }   /* the Skills page: Undo and its question under the version */
label { font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px;
}
::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks label { font-weight: 500; display: flex; align-items: center; gap: 6px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
button, .btn {
  font: inherit; font-weight: 600; font-size: .95rem; border-radius: var(--radius-btn); padding: 8px 16px; border: 1px solid var(--edge);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { border-color: var(--accent-2); }
button.primary, .btn.primary { background: var(--button); border-color: var(--button); color: var(--on-button); padding: 8px 20px; }
button.primary:hover, .btn.primary:hover { filter: brightness(.94); }
button.danger { border-color: var(--ink); }
button.danger:hover { background: var(--strong); color: var(--strong-ink); }
button:disabled { opacity: .6; cursor: default; }
.note { border-radius: 10px; padding: 9px 12px; font-size: .92rem; background: var(--warn-bg); color: var(--warn); }
.note.warn { background: var(--warn-bg); border-left: 4px solid var(--warn); font-weight: 700; color: var(--warn); }
.note.ok { background: var(--info-bg); color: var(--ink); font-weight: 600; }
.error { color: var(--ink); font-weight: 700; margin: 0; }
.error:not(:empty) { border-left: 4px solid var(--strong); padding-left: 8px; }

/* Settings switches */
.switches .switchrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.switches .switchrow input { margin-top: 3px; flex: none; }
.switches .switchrow label { display: grid; gap: 2px; cursor: pointer; }
.switches .switchrow .meta { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Text blocks */
pre, .pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.codebox { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 10px; }
.codebox code { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.bigcode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: .08em; font-weight: 700; overflow-wrap: anywhere; }
details:not(.more) > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin: 6px 0; }
.updates { list-style: none; padding: 0; margin: 0; }
.updates li { padding: 8px 0; border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; }
.log { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg); margin-top: 6px; }
.log .ev { padding: 6px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.log .ev:first-child { border-top: 0; }
.log .kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.answer h2 { font-size: 1.25rem; }

/* Settings > Brand */
.brandgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.preview { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.preview .pv { padding: 14px 16px; background: var(--pv-bg); color: var(--pv-ink); font-family: var(--pv-body); }
.preview .pv-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--pv-card); border-bottom: 1px solid var(--pv-line); }
.preview .pv-top img { height: 30px; width: auto; background: var(--pv-chip); border-radius: 6px; padding: 1px 4px; }
.preview .pv-top span { font-family: var(--pv-display); font-size: 1.05rem; color: var(--pv-ink); }
.preview .pv h3 { font-family: var(--pv-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 4px; }
.preview .pv p { margin: 0 0 6px; font-size: .92rem; }
.preview .pv .pv-muted { color: var(--pv-muted); }
.preview .pv a { color: var(--pv-accent); }
.preview .pv .pv-card { background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.preview .pv .pv-btn { display: inline-block; background: var(--pv-button); color: var(--pv-on-button); border-radius: 999px; padding: 6px 16px; font-weight: 700; }
.preview .pv .pv-note { background: var(--pv-warn-bg); color: var(--pv-warn); border-radius: 8px; padding: 6px 10px; font-size: .88rem; }
.preview .pv .pv-chip { background: var(--pv-chipbg); color: var(--pv-ink); border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 700; }
.preview .pv-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; background: var(--chip); color: var(--ink); }
.colors { width: 100%; border-collapse: collapse; font-size: .92rem; }
.colors th { text-align: left; font-size: .8rem; color: var(--muted); padding: 6px 4px; }
.colors td { padding: 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.colors .cin { display: flex; gap: 6px; align-items: center; }
.colors input[type=color] { width: 36px; height: 32px; padding: 0; border: 1px solid var(--edge); border-radius: 6px; background: var(--card); flex: none; }
.colors input[type=text] { width: 7.5em; padding: 6px 8px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.checklist { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.checklist li { display: flex; gap: 8px; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .bad { font-weight: 700; }
.slot { display: grid; gap: 6px; }
.slot img { max-height: 56px; max-width: 220px; width: auto; background: var(--chip); border-radius: 8px; padding: 4px 8px; }

/* Sign-in pages */
.narrow { max-width: 440px; margin: 6vh auto 0; }
.center { text-align: center; }
.signin-logo { width: 240px; max-width: 70%; height: auto; background: var(--logo-chip); border-radius: 12px; padding: 4px 8px; }
@media (max-width: 560px) {
  h1 { font-size: 1.8rem; }
  .card { padding: 14px; }
  .brand img { height: 36px; }
  .brand .hubname { font-size: 1.1rem; padding-left: 10px; }
  .codebox { flex-direction: column; }
  .filters input[type=search] { max-width: none; }
  nav.tabs { padding: 0 4px; gap: 0; }
  nav.tabs a { padding: 10px 8px; font-size: .875rem; }
  .colors th:first-child, .colors td:first-child { font-size: .85rem; }
}
.brand-reset { margin-top: 28px; }

/* Settings > Server (server.js) */
input[type=number] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; }
.stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 12px 16px; }
.stat h3 { margin: 0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; margin: 4px 0 2px; overflow-wrap: anywhere; }
.stat .small { margin: 0; }
.stat.warn { box-shadow: inset 4px 0 0 var(--warn), var(--shadow); }
.stat.bad { box-shadow: inset 4px 0 0 var(--strong), var(--shadow); }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choices .card { margin: 0; display: flex; flex-direction: column; }
.choices .card .actions { margin-top: auto; }
.steps { padding-left: 1.3rem; margin: 0; }
.steps li { margin: 8px 0; }
.script { display: grid; gap: 6px; margin-top: 8px; }
.script pre { max-height: 200px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .78rem; line-height: 1.45; white-space: pre; margin: 0; }
fieldset.plain { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
fieldset.plain legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 4px; }
.cols { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.meter { height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; margin: 2px 0 8px; }
.meter > span { display: block; height: 100%; background: var(--accent); }

/* Team: roles and permissions (docs/USER-DEFAULTS.md). Calm rows: a hairline between items, one control on the right. */
.card.pcard { padding: 0; margin: 0 0 14px; overflow: hidden; }
.pcard .card-h { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 10px; }
.pcard .card-h h3 { margin: 0; flex: 1; font-size: .95rem; }
.pcard .pad { padding: 0 16px 14px; }
.card.pcard.pad { padding: 16px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); }
.prow > label, .prow > .title { flex: 1 1 9rem; min-width: 0; display: grid; gap: 1px; }
@media (max-width: 560px) { .prow:has(.segc) { flex-wrap: wrap; } .prow .segc { flex: 1 1 100%; justify-content: space-between; } }
.prow .title { font-weight: 600; }
.prow .meta { color: var(--muted); font-size: .85rem; font-weight: 400; }
.prow input[type=text] { max-width: 16rem; }
.segc { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); flex: none; }
.segc button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 11px; font: 600 .82rem var(--font-body); min-height: 0; cursor: pointer; }
.segc button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.switch { width: 40px; height: 24px; flex: none; position: relative; padding: 0; border: 0; border-radius: 999px; background: var(--edge); cursor: pointer; transition: background .15s; min-height: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked=true] { background: var(--accent); }
.switch[aria-checked=true]::after { transform: translateX(16px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.rchip { border: 0; border-radius: 999px; padding: 5px 12px; background: var(--info-bg); color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; min-height: 0; }
.rchip span { color: var(--muted); }
.radd { width: auto; border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.row.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.person .who { flex: 1; }
.row.person .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row.person .who > span:last-child { display: grid; justify-items: start; text-align: left; min-width: 0; }
.pcard details.more { border: 0; background: transparent; margin: -6px 0 4px; }
.pcard details.more > summary { padding: 2px 0; font-size: .85rem; color: var(--accent); }
.row.person .meta { grid-column: auto; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--card); font: 700 .8rem var(--font-body); }
.av.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.person-head { display: flex; align-items: center; gap: 16px; }
.person-head h1 { margin: 0; }
.person-head .status { margin: .1rem 0 0; }
.saved { color: var(--muted); font-size: .9rem; min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

/* The calm frame (docs/USER-DEFAULTS.md, "Simple elegance"): the person menu, and Home cards in role order. */
.who .me-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.who .av { width: 30px; height: 30px; font-size: .75rem; }
@media (max-width: 560px) { .who .me-name { display: none; } }
.homecol { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; }
.homecol > .card { margin: 0; }
.hello h1 { font-size: 2rem; margin: .4rem 0 .2rem; }
.hello .status { color: var(--muted); margin: 0; }
.askwrap { display: grid; gap: 10px; }
.askbox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 10px 28px -12px rgba(16, 24, 32, .16); display: grid; gap: 8px; }
.askbox input { border: 0; padding: 4px 0; font-size: 1rem; background: transparent; box-shadow: none; outline: none; width: 100%; }
.askbox:focus-within { border-color: var(--accent-2); }
.askrow { display: flex; justify-content: flex-end; }
button.round { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; line-height: 1; }
button.round.send { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; background: transparent; }
.idea:hover { background: var(--card); border-color: var(--edge); }
.card.hcard { padding: 0; overflow: hidden; }
.hcard .card-h { display: flex; align-items: baseline; gap: 10px; padding: 13px 16px 11px; }
.hcard .card-h h2 { font: 700 .92rem var(--font-body); margin: 0; flex: 1; }
.hcard .empty { padding: 4px 16px 14px; margin: 0; color: var(--muted); }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li { border-top: 1px solid var(--line); }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.hlist .hrow { border-top: 0; }
a.hrow:hover { background: var(--info-bg); }
.hrow-text { flex: 1; min-width: 0; display: grid; }
.hrow .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow.step .title { flex: 1; }
.hrow .meta { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .go { color: var(--accent); font-weight: 700; font-size: .88rem; }
.hmore { display: block; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 2px 12px 14px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; text-align: center; }
.tile:hover { background: var(--bg); }
.tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--info-bg); color: var(--accent); font: 700 .9rem var(--font-body); }
.run, .health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.health { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.run > div, .health > div { padding: 10px 16px; display: grid; gap: 2px; min-width: 0; }
.run > div + div, .health > div + div { border-left: 1px solid var(--line); }
.run .meta, .health .meta { color: var(--muted); font-size: .8rem; }
.run b { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.health b { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: #2E8B57; flex: none; }
.lamp.warn { background: #C98A12; }
.dot-work, .dot-wait, .dot-done { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-work { border: 2px solid var(--accent); }
.dot-wait { border: 2px solid #C98A12; }
.dot-done { background: var(--ink); }
.trows { border-top: 1px solid var(--line); padding: 4px 0; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 80px; gap: 12px; align-items: center; padding: 7px 16px; font-size: .92rem; }
.trow .bar { height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.trow .bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.trow .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health > div:nth-child(3) { border-left: 0; }
  .health > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trow { grid-template-columns: minmax(0, 1fr) 70px 70px; }
}

/* See their view (docs/USER-DEFAULTS.md): an admin sets up the screen of one person. Hairline cards, one Save pill,
   small chips. The view shows the person's Home and HQ apps in their text size and spacing. */
.tv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 18px;
  padding: 7px 7px 7px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--info-bg); }
.tv-bar p { margin: 0; font-weight: 600; }
.tv-bar .btn { padding: 6px 14px; min-height: 0; font-size: .9rem; }
.tv-look { max-width: 680px; }
.tv-screen { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.tv-menu { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tv-menu span { padding: 5px 13px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tv-menu span:first-child { background: var(--chip); color: var(--ink); }
h2.tv-label { font: 700 .82rem var(--font-body); color: var(--muted); margin: 8px 0 0; }
.tv-cards { display: grid; gap: 10px; max-width: 680px; }
.tv-cards .card { margin: 0; }
.tv-card .card-h { align-items: center; flex-wrap: wrap; }
.tv-card.off, .tv-tile.off { border-style: dashed; background: transparent; box-shadow: none; }
.tv-card.off h2, .tv-tile.off .tile { color: var(--muted); }
.tv-sample { margin: 0; padding: 0 16px 13px; color: var(--muted); font-size: .9rem; }
.tv-chip { background: var(--chip); color: var(--ink); border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 700; }
.tv-tools { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.tv-moves { display: inline-flex; gap: 2px; }
button.tv-move { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border-color: var(--line); display: grid; place-items: center; font-size: .9rem; line-height: 1; }
button.tv-move:disabled { opacity: .35; }
.tv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tv-tile { display: grid; justify-items: center; gap: 4px; padding: 4px 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
button.tv-open { width: 100%; border: 0; background: transparent; min-height: 0; font-weight: 600; }
.tv-msg { margin: 0; min-height: 1.4em; color: var(--muted); font-size: .9rem; }
.tv-msg:empty { min-height: 0; }
.tv-save { position: sticky; bottom: 12px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 10px 28px -12px rgba(16, 24, 32, .22); }
.tv-save .tv-msg { flex: 1 1 100%; }
button.linkish { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--accent-2); text-underline-offset: 3px; border-radius: 4px; }
button.linkish.quiet { color: var(--muted); font-weight: 500; }
.setup-line { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
/* The person's look, in the view only: the sizes of look.py (CHOICES) and its spacing. */
.tv-size-small .tv-cards, .tv-size-small .tv-tiles { zoom: .92; }
.tv-size-large .tv-cards, .tv-size-large .tv-tiles { zoom: 1.1; }
.tv-size-larger .tv-cards, .tv-size-larger .tv-tiles { zoom: 1.2; }
.tv-size-largest .tv-cards, .tv-size-largest .tv-tiles { zoom: 1.32; }
.tv-space-compact .tv-cards, .tv-space-compact .tv-tiles { gap: 6px; }
.tv-space-compact .hcard .card-h { padding: 9px 14px 7px; }
.tv-space-compact .tv-sample { padding-bottom: 9px; }
.tv-space-roomy .tv-cards, .tv-space-roomy .tv-tiles { gap: 18px; }
.tv-space-roomy .hcard .card-h { padding: 18px 20px 12px; }
.tv-space-roomy .tv-sample { padding: 0 20px 18px; }
@media (max-width: 560px) {
  .tv-bar { border-radius: 16px; padding: 10px 12px; }
  .tv-screen { padding: 10px; }
  .tv-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .tv-look .segc button { padding: 4px 7px; font-size: .8rem; }
  /* On a phone the Save bar stays after the screen, so it covers nothing. */
  .tv-save { position: static; padding: 12px; box-shadow: none; }
  .tv-save .segc { flex: 1 1 100%; }
}

/* Pinned routes (docs/SLACK-HUBS.md feature 6): three calm rows, each with a computer, a model and an effort. */
.prow.route { align-items: flex-start; flex-wrap: wrap; }
.prow.route > .title { flex: 0 0 6.5rem; padding-top: 9px; }
.prow.route .picks { flex: 1 1 18rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 6px; }
.prow.route select { padding: 8px 10px; font-size: .92rem; }
.prow.route select:disabled { opacity: .55; }
.routes { display: grid; gap: 0; margin-top: 10px; }
.routes .card-h { flex-wrap: wrap; }
.routes .card-h h3 { flex: 1 0 auto; }
.routesbox select#route-agent { max-width: 22rem; }
@media (max-width: 560px) {
  .prow.route > .title { flex: 1 1 100%; padding-top: 0; display: flex; gap: 8px; align-items: baseline; }
  .prow.route .picks { grid-template-columns: minmax(0, 1fr); }
}

/* Use my own computer (docs/OWN-AI.md): one choice on each line, with its help text next to it. */
label.opt { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-weight: 500; }
label.opt input { margin-top: 5px; }
#own-computer .section { margin-top: 18px; }
