/* LWTV brand: Little Wars TV red, Oswald display type, Droid/Noto Sans body, neutral greys. */
:root {
  --bg: #efefef;
  --surface: #ffffff;
  --surface-2: #ebebeb;
  --text: #2b2b2b;
  --heading: #444444;
  --muted: #777777;
  --border: #d9d9d9;
  --accent: #d3222d;
  --accent-dark: #a51c24;
  --accent-text: #ffffff;
  --danger: #c81e1e;
  --ok: #2f8a3e;
  --shadow: 0 1px 2px rgb(0 0 0 / .08), 0 1px 3px rgb(0 0 0 / .08);
  --radius: 6px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Noto Sans", "Droid Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1f1f1f;
    --surface-2: #2a2a2a;
    --text: #e8e8e8;
    --heading: #f2f2f2;
    --muted: #a3a3a3;
    --border: #3a3a3a;
    --accent: #e5484d;
    --accent-dark: #b3262d;
    --accent-text: #ffffff;
    --shadow: 0 1px 2px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 var(--font-body); background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.2; text-transform: uppercase; color: var(--heading); margin: .2rem 0 .6rem; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--heading); margin: 0 0 .6rem; }
h3, h4 { margin: 0; }
.muted { color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 2rem; padding: .5rem 1.2rem; background: var(--surface); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--heading); }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.topnav { display: flex; gap: .4rem; flex: 1; }
.topnav a { font-family: var(--font-display); font-size: 1.02rem; text-transform: uppercase; color: var(--muted); padding: .25rem .65rem; border-bottom: 3px solid transparent; }
.topnav a:hover { color: var(--accent); text-decoration: none; }
.topnav a.active { background: var(--accent); color: var(--accent-text); border-bottom-color: var(--accent-dark); }
.me { display: flex; align-items: center; gap: .6rem; }
.me form { margin: 0; }
@media (prefers-color-scheme: dark) {
  .brand img { background: #fff; border-radius: 6px; padding: 2px 4px; }
}

/* controls */
.btn { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .85rem; border-radius: 3px; border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  font-family: var(--font-display); font-size: .92rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); border-bottom: 3px solid var(--accent-dark); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.drive { width: 100%; justify-content: center; margin-top: .6rem; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
button.link:hover { color: var(--text); }
button.x { font-size: .75rem; margin-left: .3rem; opacity: .6; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: .45rem .6rem; width: 100%; }
input[type=checkbox] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.stack { display: grid; gap: .8rem; }
.stack.tight { gap: .4rem; margin-top: .6rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.side-form { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin-top: .6rem; }
.side-form > :first-child { grid-column: 1 / -1; }
.field { display: grid; gap: .25rem; }
.field > span { font-weight: 600; color: var(--heading); }
.field.inline { display: flex; gap: .5rem; align-items: center; flex-direction: row-reverse; justify-content: flex-end; }
.field small { color: var(--muted); }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.field ul label { display: flex; gap: .3rem; align-items: center; }
.error, .errors { color: var(--danger); }

.chip { display: inline-block; padding: .25rem .7rem; border-radius: 3px; border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  font-family: var(--font-display); font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--c, var(--accent)); }
.chip.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 600; }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tag { display: inline-block; padding: 0 .45rem; margin: 0 .2rem .2rem 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 20%, transparent); font-size: .78rem; }

.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: .65rem; font-weight: 700; border: 2px solid var(--surface); flex: none; }
.avatar.owner { background: var(--accent); color: var(--accent-text); }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -6px; }

/* main board */
.board-page { padding: 1rem; }
.board-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: .5rem; align-items: center; }
.board { display: flex; gap: .9rem; overflow-x: auto; align-items: flex-start; padding-bottom: 1rem; min-height: calc(100vh - 150px); }
.column { flex: 0 0 290px; background: var(--surface-2); border-radius: var(--radius); padding: .6rem; display: flex; flex-direction: column; max-height: calc(100vh - 150px); }
.column-head { display: flex; justify-content: space-between; align-items: center; padding: .1rem .3rem .6rem; }
.column-head h2, .column-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.count { font-size: .75rem; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0 .5rem; }
.cards { display: flex; flex-direction: column; gap: .5rem; min-height: 40px; overflow-y: auto; flex: 1; }
.quick-add { margin-top: .5rem; }
.quick-add input { background: transparent; border-style: dashed; }
.quick-add input:focus { background: var(--surface); border-style: solid; }

/* cards */
.card { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--c, var(--border)); cursor: grab; }
.card:hover { box-shadow: 0 0 0 1px var(--c, var(--accent)), var(--shadow); }
.card.ghost { opacity: .4; }
.card-link { display: block; padding: .6rem .7rem; color: inherit; }
.card-link:hover { text-decoration: none; }
.card h3 { font-size: .95rem; font-weight: 600; margin: .25rem 0; }
.card-meta { display: flex; justify-content: space-between; gap: .4rem; font-size: .72rem; }
.type-pill { color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.prio { font-weight: 700; color: #d97706; }
.prio-3 { color: var(--danger); }
.stage-label { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c); }
.card-field { font-size: .78rem; }
.card-field span { color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; gap: .4rem; }
.card-stats { display: flex; gap: .6rem; font-size: .75rem; color: var(--muted); }
.progress { height: 3px; background: var(--surface-2); border-radius: 3px; margin-top: .5rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c, var(--accent)); }

/* project detail */
.page { padding: 1.2rem; max-width: 1280px; margin: 0 auto; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.actions { display: flex; gap: .5rem; }
.actions form { margin: 0; }
.crumb { color: var(--c, var(--muted)); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; }
.crumb-sep { color: var(--muted); margin: 0 .3rem; }
.pipeline { display: flex; list-style: none; padding: 0; margin: .4rem 0 1.2rem; overflow-x: auto; gap: 2px; }
.pipeline li { flex: 1; min-width: max-content; }
.pipeline li > * { display: block; width: 100%; padding: .4rem .8rem; background: var(--surface-2); color: var(--muted); border: 0; font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.pipeline li:first-child > * { border-radius: 8px 0 0 8px; }
.pipeline li:last-child > * { border-radius: 0 8px 8px 0; }
.pipeline li.past > * { background: color-mix(in srgb, var(--c) 25%, var(--surface-2)); color: var(--text); }
.pipeline li.current > * { background: var(--c); color: #fff; font-weight: 500; }
.pipeline button { cursor: pointer; }
.pipeline button:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.summary p:first-child { margin-top: 0; }
.summary p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.links, .people, .activity { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.links a { overflow-wrap: anywhere; }
.people li { display: flex; align-items: center; gap: .4rem; }
.activity li { font-size: .82rem; }
.activity time, .comment time { color: var(--muted); font-size: .75rem; margin-left: .3rem; }

.task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.task-column { background: var(--surface-2); border-radius: var(--radius); padding: .55rem; display: flex; flex-direction: column; }
.task-card { padding: .55rem .65rem; cursor: pointer; border-left-color: var(--c); }
.task-card h4 { font-size: .9rem; font-weight: 500; }
.task-card.is-done h4 { color: var(--muted); text-decoration: line-through; }
.status-done .task-card { border-left-color: var(--ok); }

.comment { display: flex; gap: .6rem; margin-bottom: .8rem; }
.comment-meta { font-size: .85rem; }
.comment-body { margin-top: .1rem; }
.comment-form { display: grid; gap: .4rem; justify-items: end; margin-top: .5rem; }

/* modal, flash, toast */
dialog { border: 0; border-radius: 14px; padding: 1.2rem; width: min(560px, 94vw); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(0 0 0 / .4); }
.modal-head { display: flex; justify-content: space-between; margin-bottom: .6rem; }
dialog h3 { margin: 1.2rem 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.flash { max-width: 1280px; margin: .8rem auto 0; padding: 0 1.2rem; }
.flash-item { padding: .6rem .9rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.flash-item.success { border-color: var(--ok); }
#toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 1rem); opacity: 0; visibility: hidden; background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; transition: transform .2s, opacity .2s, visibility .2s; z-index: 50; }
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.narrow { max-width: 640px; margin: 0 auto; }
.auth-box { max-width: 420px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.auth-box form { display: grid; gap: .7rem; }
.auth-box button { padding: .5rem .8rem; border-radius: 3px; border: 0; border-bottom: 3px solid var(--accent-dark); background: var(--accent); color: var(--accent-text);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.auth-box button:hover { background: var(--accent-dark); }
.auth-brand { display: grid; justify-items: center; gap: .3rem; margin-bottom: 1rem; text-align: center; }
.auth-brand img { height: 64px; width: auto; }
.auth-brand span { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.auth-box ul { padding-left: 1.1rem; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .task-board { grid-template-columns: 1fr; }
  .column { flex-basis: 82vw; }
  .topnav { gap: .7rem; }
}

/* brainstorm boards */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.board-tile { display: grid; gap: .4rem; align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; color: inherit; box-shadow: var(--shadow); }
a.board-tile:hover { text-decoration: none; border-color: var(--accent); }
.board-tile p { margin: 0; }
.board-tile.new-board { border-style: dashed; box-shadow: none; }

:root {
  --note-yellow: #fef08a; --note-pink: #fbcfe8; --note-blue: #bfdbfe;
  --note-green: #bbf7d0; --note-purple: #ddd6fe; --note-orange: #fed7aa;
  --note-text: #1f2430; --grid-dot: rgb(0 0 0 / .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --note-yellow: #a1892a; --note-pink: #9d4a76; --note-blue: #3d5f99;
    --note-green: #3f7a52; --note-purple: #6650a8; --note-orange: #a6612e;
    --note-text: #f4f5f7; --grid-dot: rgb(255 255 255 / .07);
  }
}
.c-yellow { --n: var(--note-yellow); } .c-pink { --n: var(--note-pink); } .c-blue { --n: var(--note-blue); }
.c-green { --n: var(--note-green); } .c-purple { --n: var(--note-purple); } .c-orange { --n: var(--note-orange); }

.whiteboard-page { padding: .8rem 1rem 0; }
.whiteboard { display: flex; flex-direction: column; height: calc(100vh - 62px); }
.whiteboard .board-toolbar { margin-bottom: .6rem; }
.board-title { font-size: 1.5rem; margin: 0; }
.color-pick, .zoom { display: inline-flex; gap: .25rem; align-items: center; }
.zoom .btn { padding: .35rem .55rem; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); background: var(--n); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.board-viewport { position: relative; flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.board-sizer { position: relative; }
.board-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.board-empty { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: var(--muted); pointer-events: none; font-size: 1.05rem; }

.note { position: absolute; width: 180px; min-height: 120px; padding: .6rem .65rem .45rem; background: var(--n); color: var(--note-text);
  border-radius: 3px 3px 10px 3px; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 6px 14px rgb(0 0 0 / .08);
  display: flex; flex-direction: column; gap: .3rem; touch-action: none; user-select: none; cursor: grab; }
.note.dragging { cursor: grabbing; box-shadow: 0 12px 28px rgb(0 0 0 / .25); transform: rotate(-1.5deg); }
.note-text { flex: 1; font-size: .92rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; min-height: 3.6em; }
.note-text:empty::before { content: attr(data-placeholder); opacity: .5; }
.note-text[contenteditable=true] { cursor: text; user-select: text; background: rgb(255 255 255 / .35); border-radius: 4px; margin: -.2rem; padding: .2rem; }
.note-foot { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; }
.note-author { font-weight: 700; opacity: .55; }
.note-actions { display: flex; gap: .2rem; }
.note-actions button { border: 0; background: rgb(0 0 0 / .07); color: inherit; border-radius: 999px; padding: .1rem .45rem; font: inherit; cursor: pointer; }
.note-actions button:hover { background: rgb(0 0 0 / .14); }
.note-vote.on { background: var(--accent); color: var(--accent-text); }
.note-promoted { font-size: .75rem; font-weight: 600; color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.note.is-promoted { opacity: .8; }
.note-tools { position: absolute; top: -30px; left: 0; display: none; gap: .2rem; align-items: center; background: var(--surface); padding: .2rem .35rem; border-radius: 999px; box-shadow: var(--shadow); }
.note:hover .note-tools, .note:focus-within .note-tools { display: flex; }
.note.dragging .note-tools { display: none; }
.note-tools .swatch { width: 16px; height: 16px; }
.note-delete { border: 0; background: none; color: var(--muted); cursor: pointer; margin-left: .15rem; }
.note-delete:hover { color: var(--danger); }
#promote-dialog { width: min(440px, 94vw); }
.promote-preview { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; max-height: 8rem; overflow: auto; }
@media (max-width: 900px) { .whiteboard .toolbar-right { flex-wrap: wrap; } }
.note-tools::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; }

/* presence */
.viewers { display: inline-flex; align-items: center; margin-right: .3rem; }
.viewers .avatar { width: 28px; height: 28px; font-size: .7rem; background: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 2px var(--ok); }
.viewers .avatar + .avatar { margin-left: -6px; }
.viewers .avatar.me { background: var(--surface-2); color: var(--text); }
.live { color: var(--ok); font-weight: 600; }

/* sign-in */
.auth-title { text-align: center; font-size: 1.5rem; margin-bottom: 1rem; }
.provider-buttons { display: grid; gap: .5rem; }
.provider-buttons form { display: block; }
.auth-box .provider-btn { width: 100%; padding: .7rem .8rem; font-size: 1.05rem; }
.auth-note { color: var(--muted); font-size: .85rem; text-align: center; margin: .6rem 0 0; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1.2rem 0 .8rem; color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-box button.secondary { background: var(--surface); color: var(--heading); border: 1px solid var(--border); border-bottom-width: 1px; }
.auth-box button.secondary:hover { background: var(--surface-2); }

/* task setup, inline edit, claiming */
.nav-count { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .15rem; border-radius: 999px; background: var(--accent); color: var(--accent-text);
  font-family: var(--font-body); font-size: .7rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: 2px; }
.topnav a.active .nav-count { background: var(--accent-text); color: var(--accent); }
.task-board-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; flex-wrap: wrap; }
.task-board-head h2 { margin: 0; }
.task-board-head .link { margin-left: auto; font-size: .8rem; }
.badge.setup { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
.setup-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; margin-bottom: .8rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.setup-banner .btn { flex: none; }
.task-card { position: relative; }
.task-tools { position: absolute; top: .3rem; right: .3rem; display: none; gap: .15rem; }
.task-card:hover .task-tools { display: flex; }
.task-tools button { border: 0; background: var(--surface-2); color: var(--muted); border-radius: 4px; width: 24px; height: 24px; cursor: pointer; font-size: .8rem; }
.task-tools button:hover { color: var(--accent); }
.task-card h4 { padding-right: 3.2rem; }
.task-card.renaming { cursor: default; display: grid; gap: .3rem; }
.task-card.renaming h4 { padding: 0; }
.open-badge { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; color: var(--ok); border: 1px solid currentColor; border-radius: 3px; padding: 0 .3rem; }
.task-project { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: .75rem; color: var(--c); margin-bottom: .15rem; }
.claim-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .8rem; margin-bottom: .8rem; border-radius: var(--radius); background: var(--surface-2); }
.btn.small { padding: .25rem .65rem; font-size: .85rem; }
.filter-chips { margin-bottom: 1.2rem; }
.open-group { margin-bottom: 1.6rem; }
.open-group-head { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .4rem; margin-bottom: .7rem; border-bottom: 3px solid var(--c); }
.open-group-head h2 { margin: 0; font-size: 1.15rem; }
.open-group-head a:hover { text-decoration: none; }
.open-group-head .count { margin-left: auto; }
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.open-task { padding: .7rem .8rem; cursor: default; display: flex; flex-direction: column; gap: .3rem; }
.open-task h4 { font-size: .95rem; }
.open-task-notes { margin: 0; color: var(--muted); font-size: .85rem; }
.open-task .card-foot { margin-top: auto; }
.open-task.is-claimed { opacity: .75; border-left-color: var(--ok); }
.claimed-note { font-weight: 600; color: var(--ok); font-size: .85rem; }
.empty-state { text-align: center; padding: 2rem; }
.empty-col { font-size: .85rem; padding: .3rem; margin: 0; }
.owned-strip { margin-bottom: 1rem; }
.owned-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.owned-card { display: grid; gap: .15rem; padding: .65rem .8rem; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--c); box-shadow: var(--shadow); color: var(--text); }
.owned-card:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--c), var(--shadow); }

/* size, stale, filters, for-you */
.size-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.2rem; padding: 0 .25rem; border-radius: 3px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 600; color: #fff; background: var(--muted); }
.size-badge.size-S { background: #2f8a3e; }
.size-badge.size-M { background: #b7791f; }
.size-badge.size-L { background: var(--accent-dark); }
.stale-badge { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; color: #b45309;
  background: color-mix(in srgb, #d97706 16%, transparent); border-radius: 3px; padding: 0 .35rem; }
.filters { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.clear-filters { align-self: center; font-size: .85rem; margin-left: .3rem; }
.my-work-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.notices { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.notices li { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem .45rem; border-radius: 6px; }
.notices li.unread { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.notices time { color: var(--muted); font-size: .75rem; margin-left: .3rem; }
.load-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.load-item { display: inline-flex; gap: .3rem; align-items: center; font-weight: 600; }
.stale-note { margin: .8rem 0 0; font-size: .85rem; }
@media (max-width: 900px) { .my-work-top { grid-template-columns: 1fr; } }

/* → arrows and the review gate */
.card { position: relative; }
.card-advance { position: absolute; top: .45rem; right: .45rem; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); font-size: .95rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.card-advance:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.card-advance.locked { cursor: help; border-style: dashed; font-size: .75rem; }
.card-link .card-meta { padding-right: 1.9rem; }
.task-foot-right { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.task-advance { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  cursor: pointer; font-size: .85rem; line-height: 1; display: grid; place-items: center; }
.task-advance:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.status-doing .task-advance:hover { background: var(--ok); border-color: var(--ok); }
.pipeline .locked { cursor: help; opacity: .75; }
.pipeline li.review-stage > * { box-shadow: inset 0 -3px 0 color-mix(in srgb, #d97706 70%, transparent); }
.review-banner { margin: -.6rem 0 1.2rem; padding: .55rem .8rem; border-radius: var(--radius); background: color-mix(in srgb, #d97706 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #d97706 45%, var(--border)); font-size: .9rem; }
.reviewer-tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; color: #b45309;
  border: 1px solid currentColor; border-radius: 3px; padding: 0 .3rem; }
