/* site.css — briefrunner.com. The farm page's look in Brief Runner gold. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; src: url("/fonts/Manrope-latin.woff2") format("woff2"); }
  :root {
    color-scheme: dark;
    /* Brief Runner gold (same tokens as the panel's css/theme.css) */
    --brand-a: #d99a1e; --brand-b: #f5c542; --brand-tint: #ffdf7e; --on-brand: #1a1305;
    --gradient: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    --brand-glow: 0 0 22px color-mix(in srgb, var(--brand-a) 32%, transparent);
    --bg: #141418; --bg-sunken: #0b0b0e; --bg-elevated: #1c1c22; --line: #2a2a32; --line-soft: #222229;
    --ink: #f4f4f6; --ink-dim: #b0b0bb; --ink-faint: #7a7a86;
    --accent: var(--brand-b); --ok: #4ade80; --bad: #ff5a5a; --warn: #ff9a3c; --review: #2bd9c7; --run: var(--brand-b);
    --mono: 10.5px/1.4 "SF Mono", Menlo, Consolas, monospace;
    --radius: 8px; --ease: cubic-bezier(0.2, 0, 0, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; font: 12px/1.45 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b0b0e; -webkit-font-smoothing: antialiased; color: var(--ink); }
  a { color: var(--accent); }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 420px 1fr; gap: 16px; min-height: 100%; }
  @media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
  .panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; min-height: 640px; overflow: hidden; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
  .title { font-size: 13px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
  .title.brand::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--gradient); box-shadow: var(--brand-glow); }
  .ver { font-size: 10px; color: var(--ink-faint); }
  .conn { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-faint); }
  .conn .dot { width: 6px; height: 6px; border-radius: 50%; background: #5a5a5a; }
  .conn.on .dot { background: var(--ok); } .conn.on { color: var(--ink-dim); }
  .tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
  .tab { appearance: none; background: none; border: none; cursor: pointer; color: var(--ink-faint); font: inherit; font-size: 11px; padding: 6px 7px 7px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
  .tab:hover { color: var(--ink-dim); } .tab.active { color: #fff; border-bottom-color: var(--brand-b); }
  .tab .n { display: inline-block; min-width: 14px; padding: 0 4px; margin-left: 4px; border-radius: 8px; background: var(--line); color: var(--ink-dim); font-size: 9px; text-align: center; }
  .panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; }
  .pane { display: none; flex-direction: column; gap: 10px; } .pane.active { display: flex; }
  .group-title { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 600; margin-top: 2px; }
  hr.divider { height: 1px; background: var(--line-soft); margin: 2px 0; border: none; }
  .field { display: flex; align-items: center; gap: 8px; min-height: 24px; }
  .field > label { font-size: 12px; color: var(--ink-dim); flex: 1 1 auto; }
  .stack { display: flex; flex-direction: column; gap: 4px; }
  .row-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
  .help { font-size: 11px; line-height: 1.5; color: var(--ink-faint); padding-left: 9px; border-left: 2px solid var(--line-soft); }
  input[type="text"], input[type="password"], textarea, select { background: var(--bg-sunken); border: 1px solid #444; border-radius: 4px; color: var(--ink); padding: 5px 7px; font: inherit; font-size: 12px; width: 100%; }
  input[type="number"] { background: var(--bg-sunken); border: 1px solid #444; border-radius: 4px; color: var(--ink); padding: 4px 7px; font-size: 12px; width: 62px; text-align: right; }
  input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
  .seg { display: inline-flex; border: 1px solid #444; border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
  .seg button { appearance: none; background: var(--bg-sunken); border: 0; color: var(--ink-dim); font: inherit; font-size: 11px; padding: 4px 10px; cursor: pointer; }
  .seg button + button { border-left: 1px solid #444; }
  .seg button[aria-checked="true"] { background: var(--gradient); color: var(--on-brand); font-weight: 700; }
  .seg button:disabled { opacity: .4; cursor: not-allowed; }
  .target { display: flex; flex-direction: column; gap: 6px; }
  .target .seg { flex-wrap: wrap; max-width: 100%; }
  .sd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: #5a5a5a; }
  .sd.free { background: var(--ok); } .sd.busy { background: var(--warn); } .sd.offline { background: #5a5a5a; }
  .tgts { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
  .tgts span { font-size: 10.5px; color: var(--ink-dim); }
  .toggle { position: relative; width: 28px; height: 16px; flex: 0 0 auto; }
  .toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
  .toggle i { position: absolute; inset: 0; background: #555; border-radius: 16px; transition: .15s; }
  .toggle i::before { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; }
  .toggle input:checked + i { background: var(--brand-a); } .toggle input:checked + i::before { transform: translateX(12px); }
  .footer { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
  .recipe { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
  .chip { font-size: 10px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
  .chip.accent { border-color: var(--accent); color: var(--accent); }
  .btn { font: inherit; font-size: 12px; padding: 6px 12px; border-radius: var(--radius); transition: filter 120ms ease, border-color 150ms var(--ease); border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink); cursor: pointer; }
  .btn:hover { border-color: var(--accent); }
  .btn.primary { background: var(--gradient); border-color: transparent; color: var(--on-brand); font-weight: 700; }
  .btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
  .btn.primary:disabled, .btn:disabled { opacity: .4; cursor: default; }
  .btn.sm { font-size: 10.5px; padding: 3px 8px; } .btn.ghost { background: transparent; }
  .btn.ok { border-color: var(--ok); color: var(--ok); } .btn.ok.on { background: color-mix(in srgb, var(--ok) 18%, transparent); }
  .btn.danger { border-color: var(--bad); color: var(--bad); }
  .status { font-size: 11px; color: var(--ink-dim); white-space: pre-wrap; min-height: 16px; }
  .status.error { color: var(--bad); } .status.busy { color: var(--warn); } .status.done { color: var(--ok); }
  /* frames grid (Frames tab) */
  .frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .frame { border: 1px solid var(--line); border-radius: 4px; background: var(--bg-sunken); padding: 4px; cursor: pointer; position: relative; user-select: none; }
  .frame.on { border-color: var(--brand-b); box-shadow: 0 0 0 1px var(--brand-b) inset, var(--brand-glow); }
  .frame img { width: 100%; aspect-ratio: 9/16; object-fit: contain; background: #111; border-radius: 2px; display: block; }
  .frame .ph { width: 100%; aspect-ratio: 9/16; background: linear-gradient(160deg, #2a2f3a, #1c1f27); border-radius: 2px; }
  .frame .nm { font-size: 10px; color: var(--ink-dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .frame .ix { position: absolute; top: 6px; left: 6px; font: var(--mono); font-size: 9px; background: rgba(0,0,0,.7); color: #fff; padding: 1px 4px; border-radius: 2px; }
  .frame .tk { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #777; background: rgba(0,0,0,.5); }
  .frame.on .tk { background: var(--brand-b); border-color: var(--brand-b); }
  /* jobs list */
  .q { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .q li { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
  .q li:hover { background: var(--bg-elevated); } .q li.sel { background: var(--bg-elevated); border-color: var(--line); }
  .q .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .q .name small { color: var(--ink-faint); margin-left: 6px; }
  .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #5a5a5a; }
  .dot.ok { background: var(--ok); } .dot.run { background: var(--run); animation: pulse 1.4s ease-in-out infinite; }
  .dot.rev { background: var(--review); } .dot.err { background: var(--bad); } .dot.wait { background: transparent; border: 1.5px solid var(--warn); }
  .pill { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
  .pill.rev { color: var(--review); border-color: var(--review); } .pill.run { color: var(--run); border-color: color-mix(in srgb, var(--run) 55%, transparent); }
  .pill.ok { color: var(--ok); border-color: var(--ok); } .pill.err { color: var(--bad); border-color: var(--bad); } .pill.wait { color: var(--warn); }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
  /* job page (right panel) */
  .job { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
  .job h2 { font-size: 14px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .job h2 .grow { flex: 1; }
  .board { display: grid; gap: 3px; background: #1d1d1d; border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
  .board.rev { border-color: var(--review); box-shadow: 0 0 0 2px color-mix(in srgb, var(--review) 30%, transparent); }
  .f { aspect-ratio: 9/16; border-radius: 2px; position: relative; overflow: hidden; background: linear-gradient(160deg, #2a2f3a, #1c1f27); cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
  .f img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .f.sel { outline-color: var(--accent); } .board.rev .f.sel { outline-color: var(--review); }
  .f em { position: absolute; bottom: 3px; right: 4px; font: var(--mono); font-size: 9px; font-style: normal; color: #fff; background: rgba(0,0,0,.6); padding: 0 3px; border-radius: 2px; }
  .f .okm { position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
  .idea { display: grid; gap: 6px; }
  .idea .row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-dim); }
  .idea .row b { color: var(--ink); } .idea .row .grow { flex: 1; }
  .idea textarea { resize: none; min-height: 58px; line-height: 1.45; }
  .rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .st { display: grid; grid-template-columns: 16px 1fr auto auto; gap: 0 10px; align-items: center; height: 28px; }
  .st .col { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
  .st .dot { width: 10px; height: 10px; margin-top: 9px; }
  .st .line { width: 2px; flex: 1; background: var(--line); margin-top: 3px; }
  .st:last-child .line { display: none; }
  .st.done .line, .st.done .dot { background: var(--ok); }
  .st.active .dot { background: var(--run); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 30%, transparent); animation: pulse 1.4s ease-in-out infinite; }
  .st.review .dot { background: var(--review); box-shadow: 0 0 0 3px color-mix(in srgb, var(--review) 30%, transparent); }
  .st.waiting .dot { background: transparent; border: 2px solid var(--warn); }
  .st.failed .dot { background: var(--bad); }
  .st.skipped .dot { background: transparent; border: 1px dashed var(--ink-faint); }
  .st.pending .st-name, .st.skipped .st-name { color: var(--ink-faint); }
  .st-name small { color: var(--ink-dim); margin-left: 6px; font-size: 10.5px; }
  .st.active .st-name small { color: var(--run); } .st.review .st-name small { color: var(--review); } .st.failed .st-name small { color: var(--bad); }
  .need { font-size: 9px; letter-spacing: .05em; color: var(--ink-faint); } .st.active .need, .st.waiting .need { color: var(--warn); }
  .time { font: var(--mono); color: var(--ink-faint); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
  .sec-h { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
  .sec-h .grow { flex: 1; }
  video { width: 100%; max-height: 520px; background: #000; border-radius: 4px; }
  .log { font: var(--mono); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 4px; padding: 8px; max-height: 240px; overflow: auto; white-space: pre-wrap; color: var(--ink-dim); }
  .log .t { color: var(--ink-faint); margin-right: 6px; }
  .files { display: flex; flex-wrap: wrap; gap: 6px; }
  .sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
  .sheet img { width: 100%; border-radius: 2px; background: #111; }
  .workers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .workers li { border: 1px solid var(--line); border-radius: 4px; padding: 8px; display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; }
  .workers small { color: var(--ink-faint); display: block; }
  .empty { color: var(--ink-faint); font-size: 11px; padding: 24px 0; text-align: center; }
  .muted { color: var(--ink-faint); }
  .err { color: var(--bad); }

  /* ---- sign-in -------------------------------------------------------------------- */
  .login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
  .login form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
  .login .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); box-shadow: var(--brand-glow); margin: 0 auto 4px; }
  .login h1 { margin: 0; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
  .login p { margin: 0; text-align: center; color: var(--ink-faint); font-size: 11.5px; }
  .login input { height: 36px; padding: 0 12px; border-radius: var(--radius); }
  .login input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-b) 16%, transparent); }
  .login .btn { height: 36px; }
  [hidden] { display: none !important; }
  /* ---- Macs (paired devices) ------------------------------------------------------------ */
  .pair-box { border: 1px solid color-mix(in srgb, var(--brand-b) 45%, var(--line)); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; background: color-mix(in srgb, var(--brand-b) 6%, var(--bg)); }
  .pair-code { font: 700 22px/1.2 "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; color: var(--brand-b); user-select: all; }
  .pair-ttl { text-align: center; font-size: 11px; color: var(--ink-faint); }
  .workers li { border-radius: var(--radius); }
  .topbar .grow { flex: 1; }
  .who-btn { margin-left: 8px; }
/* ---- dashboard: email sign-in, the header tabs, coming-soon panes, admin ---- */
  .login form[hidden] { display: none; }
  .login input[type="email"] { background: var(--bg-sunken); border: 1px solid #444; color: var(--ink); font: inherit; font-size: 12px; width: 100%; }
  .login .code-input { text-align: center; font: 600 22px/1 "SF Mono", Menlo, monospace; letter-spacing: 6px; height: 48px; }
  .linkish { appearance: none; background: none; border: none; color: var(--ink-faint); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
  .linkish:hover { color: var(--ink-dim); }
  #app { min-height: 100%; display: flex; flex-direction: column; }
  #app[hidden] { display: none; }
  .dash { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg-sunken) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .dnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dtab { appearance: none; border: 1px solid transparent; background: none; color: var(--ink-faint); font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color 120ms ease, background 150ms var(--ease); }
  .dtab:hover { color: var(--ink); }
  .dtab.active { color: var(--on-brand); background: var(--gradient); box-shadow: var(--brand-glow); }
  .dtab[hidden] { display: none; }
  .who { margin-left: auto; font-size: 11px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
  .dsec[hidden] { display: none; }
  .soon { max-width: 520px; margin: 12vh auto; padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: var(--bg); }
  .soon h2, .admin h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
  .soon p { margin: 0; color: var(--ink-faint); font-size: 12.5px; line-height: 1.6; }
  .admin { max-width: 980px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; }
  .admin-head { display: flex; align-items: baseline; gap: 10px; }
  .admin-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .admin-add input { max-width: 320px; background: var(--bg-sunken); border: 1px solid #444; border-radius: 4px; color: var(--ink); padding: 6px 8px; font: inherit; font-size: 12px; }
  .people { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .people th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .people td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
  .people tr:last-child td { border-bottom: none; }
  .people td.email { color: var(--ink); font-weight: 600; word-break: break-all; }
  .people input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-b); cursor: pointer; }
  @media (max-width: 720px) {
    .dash { flex-wrap: wrap; gap: 8px; } .who { order: 2; max-width: 60vw; } .dnav { order: 3; width: 100%; }
    .people thead { display: none; } .people tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
    .people td { border: none; padding: 2px 0; } .people td.email, .people td.last, .people td.act { grid-column: 1 / -1; }
    .people td[data-tab]::before { content: attr(data-label) " "; font-size: 10px; color: var(--ink-faint); }
  }
/* ---- home: the platform's modules as tiles ---- */
  .home { max-width: 1040px; margin: 0 auto; padding: 40px 16px 64px; }
  .home-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
  .home-head p { margin: 0 0 24px; color: var(--ink-faint); font-size: 13px; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .tile { appearance: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 20px; min-height: 150px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
  .tile:hover { border-color: var(--brand-a); transform: translateY(-2px); }
  .tile-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--gradient); box-shadow: var(--brand-glow); }
  .tile-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
  .tile-name small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; }
  .tile-blurb { font-size: 12px; line-height: 1.55; color: var(--ink-faint); }
  .home-empty { margin-top: 0; }
