/* Orck design language (docs/ORCK_DESIGN_LANGUAGE.md, prototype/src/design/tokens.css):
   near-black warm canvas, one amber accent, Geist with tabular figures, hairline panels,
   status colour always paired with a word. Layout: one centred column (max 72rem), a sticky
   header with the Orck lockup and two groups of tabs (Track · Plan), phase goals on top. */
:root {
  --canvas: #0a0b0e; --panel: #111318; --raised: #161922;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
  --text: #f3f1ec; --muted: #8b8778; --faint: #6a6759;
  --fill: rgba(255, 255, 255, .06); --fill-faint: rgba(255, 255, 255, .03);
  --brand: #e9a23b; --brand-light: #f2b866; --brand-deep: #2a2114; --brand-ink: #1a1206; --brand-text: #f2b866;
  --green: #4ea87a; --red: #d1685f; --blue: #5b8bd0; --attention: #e3b65c;
  --green-bg: rgba(78, 168, 122, .14); --red-bg: rgba(209, 104, 95, .14); --blue-bg: rgba(91, 139, 208, .14); --amber-bg: rgba(233, 162, 59, .14);
  --shade: rgba(0, 0, 0, .6);
  --logo-filter: none;
  --sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas: #f7f5f0; --panel: #ffffff; --raised: #efece5;
    --line: rgba(10, 11, 14, .09); --line-strong: rgba(10, 11, 14, .16);
    --text: #16140f; --muted: #57534a; --faint: #6f6b5e;
    --fill: rgba(10, 11, 14, .06); --fill-faint: rgba(10, 11, 14, .03);
    --brand-deep: #f6e6c8; --brand-text: #7d500c;
    --green: #2a7350; --red: #b4483f; --blue: #3566b0; --attention: #8a5a06;
    --green-bg: rgba(42, 115, 80, .1); --red-bg: rgba(180, 72, 63, .1); --blue-bg: rgba(53, 102, 176, .1); --amber-bg: rgba(233, 162, 59, .16);
    --shade: rgba(10, 11, 14, .16);
    --logo-filter: invert(1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --canvas: #f7f5f0; --panel: #ffffff; --raised: #efece5;
  --line: rgba(10, 11, 14, .09); --line-strong: rgba(10, 11, 14, .16);
  --text: #16140f; --muted: #57534a; --faint: #6f6b5e;
  --fill: rgba(10, 11, 14, .06); --fill-faint: rgba(10, 11, 14, .03);
  --brand-deep: #f6e6c8; --brand-text: #7d500c;
  --green: #2a7350; --red: #b4483f; --blue: #3566b0; --attention: #8a5a06;
  --green-bg: rgba(42, 115, 80, .1); --red-bg: rgba(180, 72, 63, .1); --blue-bg: rgba(53, 102, 176, .1); --amber-bg: rgba(233, 162, 59, .16);
  --shade: rgba(10, 11, 14, .16);
  --logo-filter: invert(1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum'; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
input[type=checkbox] { accent-color: var(--brand); width: 17px; height: 17px; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
h1 .soft { color: var(--muted); }
h2 { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 4px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 13px; }
.num, .date, td.n { font-variant-numeric: tabular-nums; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.logo { height: 22px; width: auto; filter: var(--logo-filter); display: block; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .tag { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1.2; }

/* sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 24px; }
.login-card { width: 100%; max-width: 24rem; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: 0 24px 64px -16px var(--shade); }
.login-card .logo { height: 46px; margin-bottom: 8px; align-self: start; }
.login-card p { color: var(--muted); font-size: 14px; }
.err { color: var(--red); min-height: 1.2em; font-size: 14px; }

/* controls */
input[type=text], input[type=password], input[type=date], input[type=search], select { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 11px; min-width: 0; }
button { cursor: pointer; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--raised); padding: 7px 13px; transition: border-color 150ms var(--ease); }
button:hover { border-color: var(--muted); }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.primary:hover { background: var(--brand-light); }
button.link { background: none; border: 0; padding: 0; color: var(--brand-text); }
button.ghost { background: none; }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 18px; padding-block: 14px 6px; flex-wrap: wrap; }
.sync { flex: 1; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sync .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.sync .dot.off { background: var(--red); }
.spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); display: inline-block; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brand); opacity: 0; }
body.syncing .top::after { opacity: 1; animation: sweep 1.2s var(--ease) infinite; }
@keyframes sweep { 0% { left: 0; width: 0; } 50% { left: 15%; width: 55%; } 100% { left: 100%; width: 0; } }
body.syncing #view, body.syncing #phases { opacity: .55; transition: opacity 150ms var(--ease); }
.me { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .grp { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 0 8px 0 0; white-space: nowrap; }
.tabs .grp + button { margin-left: 0; }
.tabs .sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 12px; flex: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 10px 11px; color: var(--muted); white-space: nowrap; font-weight: 500; font-size: 14px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--brand); }

main { padding-block: 28px 72px; display: grid; gap: 28px; }
#view { display: grid; gap: 20px; animation: in 280ms var(--ease) both; }
#view > h2 { margin-top: 18px; }
#view > h2:first-child, #view > .eyebrow + h2, #view > .eyebrow + h1 { margin-top: 0; }
@keyframes in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); max-width: 72ch; }
.lead { font-size: 18px; line-height: 1.5; max-width: 41rem; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--fill); color: var(--muted); }
.pill.good, .pill.green { background: var(--green-bg); color: var(--green); }
.pill.warn, .pill.amber { background: var(--amber-bg); color: var(--brand-text); }
.pill.bad, .pill.red { background: var(--red-bg); color: var(--red); }
.pill.info, .pill.blue { background: var(--blue-bg); color: var(--blue); }
.rel-id { font-family: var(--mono); font-size: 12px; color: var(--brand-text); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; white-space: nowrap; }

/* containers */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel > p { color: var(--muted); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid > * { min-width: 0; }
.banner { border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 15px; font-size: 14px; }
.banner.bad { border-color: color-mix(in srgb, var(--red) 50%, transparent); background: var(--red-bg); }
.callout { background: var(--brand-deep); border-radius: 12px; padding: 14px 18px; max-width: 54rem; }
.callout.blue { background: var(--blue-bg); }
ul.clean, ol.clean { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.readby { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }
.readby a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; color: var(--text); background: var(--panel); }
.readby a:hover { border-color: var(--brand); text-decoration: none; }

/* stats */
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stat .v { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat .d { font-size: 13px; color: var(--muted); }

/* phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.phase { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; min-width: 0; }
.phase-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.phase-date { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.phase-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.phase-meta b { color: var(--text); font-weight: 500; }
.bar { height: 6px; background: var(--fill); border-radius: 99px; overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.bar > .s-done { background: var(--green); }
.bar > .s-review { background: var(--brand); }
.bar > .s-progress { background: var(--blue); }
.bar > .s-blocked { background: var(--red); }
.hint { font-size: 13px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* key dates */
.keydates { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.keydates > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.keydates .when { font-size: 13px; color: var(--brand-text); font-weight: 600; }
.keydates .what { font-size: 14px; margin-top: 2px; }

/* charts */
.chart { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; }
.chart svg { display: block; font-family: var(--sans); }
.chart text { fill: var(--muted); font-size: 12px; }
.chart .lbl { fill: var(--text); font-size: 12.5px; }
.chart .gridl { stroke: var(--line); }
.chart .today { stroke: var(--text); stroke-dasharray: 3 4; opacity: .6; }
.chart .goal { stroke: var(--red); stroke-dasharray: 5 4; }

/* daily */
.dayhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dayhead .date { font-size: 22px; font-weight: 600; letter-spacing: -.01em; min-width: 250px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips button { border-radius: 999px; padding: 4px 13px; font-size: 13.5px; }
.chips button[aria-pressed=true] { background: var(--amber-bg); border-color: var(--brand); color: var(--brand-text); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h3 { font-size: 17px; }
.notes { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.notes div { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.notes div::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); margin-top: 8px; }
.notes .release::before { background: var(--brand); }
.notes .start::before { background: var(--blue); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.task { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; padding-top: 2px; }
.tick { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-strong); margin-top: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.tick.done { background: var(--green); border-color: var(--green); color: var(--canvas); }
.tick.review { border-color: var(--brand); background: var(--amber-bg); }
.tick.progress { border-color: var(--blue); background: var(--blue-bg); }
.tick.blocked, .tick.late { border-color: var(--red); background: var(--red-bg); }
.task .t { min-width: 0; }
.task .verb { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.task .name { display: block; }
.task .side { display: grid; justify-items: end; gap: 4px; font-size: 13px; }
.quiet { background: var(--fill-faint); border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--muted); }
.carry { border-top: 1px dashed color-mix(in srgb, var(--red) 60%, transparent); padding-top: 10px; display: grid; gap: 2px; }
.carry-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-weight: 600; }
.carry-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.carry-meta { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }

/* team */
.people { display: grid; gap: 14px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
.person-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.stats b { display: block; font-size: 22px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.weeks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.wk { border: 1px solid var(--line); border-radius: 9px; padding: 7px 4px; text-align: center; font-size: 12px; cursor: pointer; background: var(--fill-faint); min-width: 0; }
.wk:hover { border-color: var(--muted); }
.wk .d { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .c { font-weight: 600; font-variant-numeric: tabular-nums; }
.wk.today { border-color: var(--brand); }
.wk.leave { background: repeating-linear-gradient(135deg, var(--fill) 0 5px, transparent 5px 10px); color: var(--muted); }
.wk.allDone .c { color: var(--green); }
.wk.missed .c { color: var(--red); }
.list-inline { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.role-card h3 { display: flex; gap: 8px; align-items: center; }
.role-card .role { font-size: 13px; color: var(--muted); }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 13px; border-top: 1px solid var(--line); vertical-align: top; }
tr:first-child > th, thead th { border-top: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; background: var(--fill-faint); white-space: nowrap; }
td.n, th.n, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.phase-row td { background: var(--fill-faint); font-weight: 600; font-size: 13px; color: var(--muted); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--fill-faint); }
.what { color: var(--muted); font-size: 13.5px; max-width: 70ch; margin-top: 4px; }
.mini { width: 90px; display: inline-flex; vertical-align: middle; margin-right: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { flex: 1; min-width: 200px; }

/* release cards */
.relcard { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px; display: grid; grid-template-columns: 170px 1fr; gap: 22px; }
.relcard .rid { font-family: var(--mono); font-size: 13px; color: var(--brand-text); font-weight: 500; }
.relcard .big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 4px 0; }
.relcard .small { font-size: 13px; color: var(--muted); }
.relcard .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 12px; }
.relcard .cols > * { min-width: 0; }
.relcard details { margin-top: 12px; }
.relcard summary { cursor: pointer; color: var(--brand-text); font-size: 14px; }
.flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 16px; margin-top: 10px; font-size: 13.5px; }
.flist div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }

/* reading pages from the roadmap */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.flow .step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.flow .step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; }
.flow .step span:not(.n) { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.flow .step em { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text); margin-top: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); display: inline-block; }
.role { font-size: 13px; }

/* plan & team */
.form { display: grid; gap: 10px; }
.form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.form .row > * { flex: 1; min-width: 140px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.secret { font-family: var(--mono); background: var(--raised); border: 1px dashed var(--brand); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; word-break: break-all; }
.prose { max-width: 41rem; display: grid; gap: 12px; }
.prose ul { margin: 0; padding-left: 18px; }
.prose li { margin-bottom: 4px; }

footer.foot { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--faint); font-size: 13px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
footer.foot img { height: 16px; filter: var(--logo-filter); opacity: .7; }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--text); color: var(--canvas); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 8px 24px -8px var(--shade); }

@media (max-width: 720px) {
  .relcard { grid-template-columns: 1fr; gap: 12px; }
  .weeks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dayhead .date { min-width: 0; font-size: 18px; }
  .phase-date { font-size: 22px; }
  .cards { grid-template-columns: 1fr; }
  .sync { order: 3; flex-basis: 100%; }
  .brand .tag { display: none; }
  .lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, #view { animation: none !important; transition: none !important; } .spinner { border-top-color: var(--brand); } body.syncing .top::after { width: 100%; } }

/* Dependencies: one person at a time, each item expands on click. */
.dep-person { text-align: left; background: var(--panel); border-radius: 12px; padding: 18px; color: inherit; }
.dep-person.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.dep-id { display: flex; gap: 12px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-bg); color: var(--brand-text); font-weight: 600; font-size: 16px; flex: none; }
.deplist { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.dep + .dep { border-top: 1px solid var(--line); }
.dep summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 18px 112px minmax(0, 1fr) auto auto 26px; gap: 12px; align-items: center; padding: 12px 14px; }
.dep summary::-webkit-details-marker { display: none; }
.dep summary:hover { background: var(--fill-faint); }
.dep summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dep-arrow { width: 0; height: 0; border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 150ms var(--ease); justify-self: center; }
.dep[open] .dep-arrow { transform: rotate(90deg); border-left-color: var(--brand); }
.dep-due { display: grid; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dep-what { display: grid; gap: 2px; }
.dep-tick { display: grid; place-items: center; }
.dep.overdue .dep-due b { color: var(--red); }
.dep.done .dep-what { color: var(--muted); }
.dep-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 4px 18px 18px 44px; }
.dep-body p { margin: 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 720px) {
  .dep summary { grid-template-columns: 14px minmax(0, 1fr) 26px; row-gap: 6px; }
  .dep-due { grid-column: 2; }
  .dep-what { grid-column: 2 / 4; grid-row: 2; }
  .dep-feeds, .dep summary > .pill { grid-column: 2 / 4; justify-self: start; }
  .dep-tick { grid-column: 3; grid-row: 1; }
  .dep-body { grid-template-columns: 1fr; padding-left: 18px; }
}

/* Open roles */
a.btn { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); padding: 4px 12px; font-size: 13px; color: var(--text); text-decoration: none; transition: border-color 150ms var(--ease); }
a.btn:hover { border-color: var(--brand); color: var(--brand-text); }
a.btn + a.btn { margin-left: 6px; }
.role-card { scroll-margin-top: 120px; }
.role-card p { margin: 0; }
.role-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; }
.role-facts b { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.role-more summary { list-style: none; cursor: pointer; color: var(--brand-text); display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.role-more summary::-webkit-details-marker { display: none; }
.role-more[open] .dep-arrow { transform: rotate(90deg); border-left-color: var(--brand); }
