/* Freebird-PM board: the Metolius AI family look (as on freebird-pm.com): black, white, heavy sans, sharp
   corners, Space Mono for small technical labels, Freebird green as the only colour. Loaded after each page's own
   styles: it re-themes their colour settings and type, without changing their layout. */
@font-face{font-family:"DM Sans";src:url("/assets/dm-sans-var.woff2") format("woff2");font-weight:100 1000;font-display:swap}
@font-face{font-family:"Space Mono";src:url("/assets/space-mono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Space Mono";src:url("/assets/space-mono-700.woff2") format("woff2");font-weight:700;font-display:swap}

/* One look, light or dark setting: higher specificity than the pages' own :root rules. */
html:root:root:root{
  color-scheme:dark;
  --bg:#000; --card:#0A0A0A; --text:#fff; --muted:#B4B4B4; --line:#262626; --feed:#050505; --code:#0A0A0A;
  --accent:#34D399; --accent-soft:rgba(52,211,153,.10); --accent-text:#000;
  --ask:#F5B942; --ask-bg:rgba(245,185,66,.08); --warn:#F5B942; --warn-bg:rgba(245,185,66,.08);
  --done:#34D399; --ok:#34D399; --off:#5C5C5C;
  --me:#34D399; --me-text:#000; --them:#141414;
  --fb-sans:"DM Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --fb-mono:"Space Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
html body{background:var(--bg);color:var(--text);font-family:var(--fb-sans);-webkit-font-smoothing:antialiased}
::selection{background:var(--accent);color:#000}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Headings: heavy, tight, uppercase, like the site. */
html body h1,html body h2{font-weight:800;letter-spacing:-.03em;text-transform:uppercase}
html body h3{font-weight:700;letter-spacing:-.01em}

/* Sharp corners everywhere. */
html body .tile,html body .card,html body section,html body input,html body textarea,html body select,
html body button,html body .btn,html body .pill,html body .badge,html body .state,html body .bubble,
html body .stop,html body .note,html body dialog,html body .panel{border-radius:2px}

/* Buttons: the site's style (small uppercase, letter-spaced). Primary = green. */
html body button,html body .btn{font-family:var(--fb-sans);font-weight:700;letter-spacing:.07em;text-transform:uppercase;font-size:.74rem}
html body button:not(.ghost):not(.signout):not(.link):not(.del):not(.again){background:var(--accent);color:#000;border:1px solid var(--accent)}
html body button:not(.ghost):not(.signout):not(.link):not(.del):not(.again):hover{background:#fff;border-color:#fff;color:#000}
/* Secondary actions: outlined. */
html body button.ghost,html body .signout,html body button.again{background:transparent;color:var(--text);border:1px solid #fff}
html body button.ghost:hover,html body .signout:hover,html body button.again:hover{background:#fff;color:#000}
/* Delete: a quiet underlined link, never a big button; amber on hover. */
html body .foot .del,html body button.del{background:none;border:0;color:var(--muted);text-decoration:underline;text-transform:none;letter-spacing:0;font-weight:500}
html body .foot .del:hover,html body button.del:hover{color:var(--ask);background:none}

/* Fields */
html body input,html body textarea,html body select{background:#0A0A0A;color:var(--text);border:1px solid var(--line);font-family:var(--fb-sans)}
html body input:focus,html body textarea:focus{border-color:var(--accent);outline:none}

/* Small technical labels in Space Mono. */
html body .state,html body .summary,html body .meta,html body .when,html body .wp,html body .label,html body code,html body pre,
html body .badge,html body .fb-label{font-family:var(--fb-mono);letter-spacing:.06em}
html body .state,html body .badge,html body .fb-label{text-transform:uppercase;font-size:.7rem}

/* Header: the Freebird logo, on black, with a hairline below. */
html body header,html body .fb-hdr{background:rgba(0,0,0,.92);border-bottom:1px solid var(--line)}
.fb-hdr{display:flex;align-items:center;gap:1rem;padding:12px 16px}
.fb-logo{height:30px;width:auto;display:block;flex:none}
html body header h1{font-size:.8rem;font-family:var(--fb-mono);font-weight:700;letter-spacing:.16em;color:var(--accent)}

/* Tiles and cards: hairline borders, no soft shadows. */
html body .tile,html body .card{background:var(--card);border:1px solid var(--line);box-shadow:none}
html body .tile.ask{border-color:var(--ask);box-shadow:none}
html body a{color:var(--accent)}

/* ---- The board (board.ts) ---- */
html body .name{font-weight:800;text-transform:uppercase;letter-spacing:-.02em;font-size:1.05rem}
.stages{list-style:none;margin:0;padding:0;display:flex;gap:2px;font-family:var(--fb-mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase}
.stages li{flex:1;min-width:0;padding:6px 4px 0;border-top:3px solid var(--line);color:var(--off);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stages li.past{border-top-color:rgba(52,211,153,.45);color:var(--muted)}
.stages li.on{border-top-color:var(--accent);color:var(--accent);font-weight:700}
.acct{display:flex;align-items:center;gap:.75rem;font-family:var(--fb-mono);font-size:.72rem;color:var(--muted)}
.acct form{display:block}
.acct #acct-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:28ch}
.pastdue{margin:16px 16px 0;padding:10px 14px;border:1px solid var(--ask);background:var(--ask-bg);color:var(--text)}
html body .foot .link{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;text-transform:none;letter-spacing:0;font-weight:500;font-size:13px;cursor:pointer}
html body .foot .link:hover{color:var(--text)}
/* Customers: only what they can use. */
.customer #new,.customer .details,.customer .rule button{display:none !important}
@media (max-width:560px){.acct #acct-email{display:none}}
/* Sharp corners on the board's own boxes too. */
html body .boxline,html body .boxline a,html body .stage>div,html body .stage button,html body .question,html body .learned,
html body textarea,html body .feed,html body .tweakform input,html body .again,html body .state,html body .rule button{border-radius:2px}
html body .boxline a{font-weight:700;letter-spacing:.07em;text-transform:uppercase;font-size:.74rem;padding:.55rem .9rem}
/* The second choice in a stage is outlined, not a second green button. */
html body .stage button:not(.primary){background:transparent;color:var(--text);border:1px solid #fff}
html body .stage button:not(.primary):hover{background:#fff;color:#000}
/* Header wraps instead of widening the page on a phone. */
html body header{flex-wrap:wrap;row-gap:8px}
@media (max-width:560px){html body header .summary{display:none}}
/* "Download your app": a clear primary button. */
html body a.download{display:inline-block;background:var(--accent);color:#000;padding:.7rem 1.2rem;text-decoration:none;font-weight:700;letter-spacing:.07em;text-transform:uppercase;font-size:.78rem;border-radius:2px}
html body a.download:hover{background:#fff;color:#000}
.fbfoot{margin:24px 16px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-family:var(--fb-mono);font-size:.68rem;letter-spacing:.04em}
/* Hosting quote */
.quotebox{border:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:8px}
.quotereview{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:8px}
.quotereview pre{white-space:pre-wrap;flex-basis:100%;margin:0;font-size:.72rem;line-height:1.5;color:var(--muted)}
.qq{border:1px solid var(--line);margin:0 0 8px;padding:8px 10px}
.qq legend{font-weight:700;font-size:.9rem;padding:0 4px}
.qc{display:block;font-size:.9rem;padding:2px 0;color:var(--text)}
.quoteprice{font-size:1.2rem;font-weight:800}
