/* ==========================================================================
   Samia Studios — team workspace (team site only), design system v3
   The staff side of the house: a paper ground, ink lines, hard shadows, tinted
   panels and plain words. Loads after samia.css and dash.css and uses only
   their tokens. Everything reads at 375px wide; motion stops under
   prefers-reduced-motion.
   ========================================================================== */

body.team { background: var(--paper); }

/* Top bar: brand | workspace nav | source chip + tour ----------------------- */
.team-top .wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px var(--s3); align-items: center; }
.team-top .brand { grid-row: 1; grid-column: 1; }
.team-top .team-nav { grid-row: 1; grid-column: 2; }
.team-top .tools { grid-row: 1; grid-column: 3; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; padding-bottom: 0; }
.team-nav { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.team-nav a { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: var(--paper-2); color: var(--ink); font-size: .85rem; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: background .15s var(--ease); }
.team-nav a:hover { text-decoration: none; background: var(--sand); }
.team-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.team-top .btn.ghost { padding: .55em .9em; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 1120px) {
  .team-top .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .team-top .tools { grid-row: 1; grid-column: 2; }
  .team-top .team-nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: 4px; }
}
@media (max-width: 480px) {
  .team-nav a { padding: 6px 10px; font-size: .8rem; }
}

/* Hero: paper, compact (brand guide 9: Dash and Team are dense but calm) ---- */
.team .hero { padding-block: clamp(28px, 4vw, 48px); background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.team .hero.paper { background: var(--paper); }
@media (min-width: 901px) { .team .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); } }
.team .hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); max-width: 12em; }
.team .hero .lead { font-size: 1.02rem; max-width: 40em; margin-top: var(--s2); }
.team .hero .actions { margin-top: var(--s3); }
.team .hero .meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); }
.team .hero .art.framed { background: var(--sky); max-width: 380px; margin-left: auto; }
.team .hero .art.framed svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .team .hero .art.framed { max-width: 300px; margin-left: 0; } }

/* Section rhythm: the workspace is dense but calm */
.team .section.tight { padding-block: clamp(40px, 5vw, 72px); }
.team .section-head { margin-bottom: clamp(20px, 3vw, 36px); }
.team .section-head .lead { max-width: 40em; }
.team .card { padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; min-width: 0; }
.team .card .foot-link { margin-top: auto; padding-top: 14px; }
.row-2 > *, .row-3 > *, .row-2-1 > * { min-width: 0; }
.row-2.top, .row-3.top { align-items: start; }
/* Today's six counts: a label that wraps to two lines must not push its number below the others. */
.team .kpis .kpi .l { min-height: 36px; line-height: 18px; align-items: flex-start; }
.team .kpis .kpi .l .icon { flex: none; }
.col-stack { display: grid; gap: var(--s3); align-content: start; min-width: 0; }

/* Counts strip: a bordered row of Archivo numbers --------------------------- */
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.counts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.counts > div { padding: clamp(16px, 2vw, 24px); border-right: var(--bw) solid var(--ink); min-width: 0; display: grid; gap: 6px; align-content: start; }
.counts > div:last-child { border-right: 0; }
.counts > div:nth-child(1) { background: var(--lemon); } .counts > div:nth-child(2) { background: var(--mint); } .counts > div:nth-child(3) { background: var(--sky); } .counts > div:nth-child(4) { background: var(--rose); } .counts > div:nth-child(5) { background: var(--lilac); }
.counts .num { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }
.counts .l { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.counts .why { font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) {
  .counts, .counts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts > div { border-bottom: var(--bw) solid var(--ink); }
  .counts > div:nth-child(even) { border-right: 0; }
  .counts > div:nth-last-child(-n+1) { border-bottom: 0; }
  .counts:not(.four) > div:last-child { grid-column: 1 / -1; }
  .counts.four > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* The editorial pipeline in one row ---------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.pipeline > div { position: relative; padding: 16px 14px 14px 20px; border-right: var(--bw) solid var(--ink); display: grid; gap: 4px; align-content: start; min-width: 0; }
.pipeline > div:last-child { border-right: 0; }
.pipeline > div:not(:first-child)::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: var(--paper-2); border-top: var(--bw) solid var(--ink); border-right: var(--bw) solid var(--ink); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.pipeline > div:nth-child(1) { background: var(--lemon); } .pipeline > div:nth-child(2) { background: var(--peach); } .pipeline > div:nth-child(3) { background: var(--sky); } .pipeline > div:nth-child(4) { background: var(--lilac); } .pipeline > div:nth-child(5) { background: var(--mint); } .pipeline > div:nth-child(6) { background: var(--rose); } .pipeline > div:nth-child(7) { background: var(--paper-2); }
.pipeline > div:nth-child(2)::before { background: var(--lemon); } .pipeline > div:nth-child(3)::before { background: var(--peach); } .pipeline > div:nth-child(4)::before { background: var(--sky); } .pipeline > div:nth-child(5)::before { background: var(--lilac); } .pipeline > div:nth-child(6)::before { background: var(--mint); } .pipeline > div:nth-child(7)::before { background: var(--rose); }
.pipeline .num { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.pipeline .s { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.pipeline .note { font-size: .78rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .pipeline > div { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; border-right: 0; border-bottom: var(--bw) solid var(--ink); padding: 14px 16px; }
  .pipeline > div:last-child { border-bottom: 0; }
  .pipeline > div .num { grid-row: 1 / span 3; }
  .pipeline > div:not(:first-child)::before { left: 32px; top: -8px; transform: rotate(135deg); width: 12px; height: 12px; }
}

/* Task list (Today) --------------------------------------------------------- */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); font-size: .92rem; color: var(--ink); }
.task .tick { width: 24px; height: 24px; border: var(--bw) solid var(--ink); border-radius: 2px; background: var(--paper-2); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; color: transparent; font-weight: 900; font-size: .8rem; margin-top: 1px; }
.task .tick[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.task b { color: var(--ink); display: block; }
.task .meta { font-size: .78rem; color: var(--muted); font-weight: 600; }
.task.done b { text-decoration: line-through; color: var(--muted); }
.task .status-pill { margin-top: 2px; }
@media (max-width: 520px) { .task { grid-template-columns: 26px minmax(0, 1fr); } .task .status-pill { grid-column: 2; justify-self: start; } }

/* Due-this-week list */
.due-list { list-style: none; margin: 0; padding: 0; display: grid; }
.due-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 10px 0; border-bottom: 1.5px solid var(--line); font-size: .9rem; }
.due-list li:last-child { border-bottom: 0; }
.due-list .d { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: .9rem; color: var(--ink); font-variation-settings: "wdth" 84; line-height: 1.2; }
.due-list .d small { display: block; font-family: var(--sans); font-weight: 600; font-size: .7rem; color: var(--muted); text-transform: none; }
.due-list li.today .d { color: var(--red); }
.due-list .w { color: var(--ink); }
.due-list .w span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.due-list .status-pill { white-space: nowrap; }
@media (max-width: 520px) { .due-list li { grid-template-columns: 64px minmax(0, 1fr); } .due-list .status-pill { grid-column: 2; justify-self: start; } }

/* Mini approvals list (Today) */
.queue-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue-mini li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); font-size: .88rem; }
.queue-mini b { color: var(--ink); display: block; }
.queue-mini span.rule { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.kind { display: inline-flex; align-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--paper-2); white-space: nowrap; line-height: 1.1; }
.kind.creative { background: var(--rose); } .kind.budget { background: var(--lemon); } .kind.audience { background: var(--sky); } .kind.claim { background: var(--mint); } .kind.cap { background: var(--peach); }
.kind.world { background: var(--sky); } .kind.explainers { background: var(--mint); } .kind.progress { background: var(--lemon); } .kind.regions { background: var(--peach); } .kind.magazine { background: var(--rose); } .kind.note { background: var(--lilac); }
.tile > .kind { align-self: flex-start; }

/* The production board (Newsroom) ------------------------------------------ */
/* The board is seven columns wide and overflows every screen narrower than about 2,100px, so the scroll
   is always visible: a real scrollbar, prev/next buttons, a column counter, and at desktop widths a
   column that is cut by the edge of the wrap. */
.board-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.board-nav { display: flex; align-items: center; gap: 8px; }
.board-nav .btn { padding: .5em .85em; font-size: .84rem; box-shadow: 3px 3px 0 var(--ink); }
.board-nav .btn[disabled] { opacity: .45; cursor: default; }
.board-nav .btn[disabled]:hover { transform: none; }
.board-pos { font-size: .8rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.board-wrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--ink) var(--sand); scroll-behavior: smooth; }
.board-wrap::-webkit-scrollbar { height: 10px; }
.board-wrap::-webkit-scrollbar-track { background: var(--sand); border-radius: 5px; border: 1px solid var(--line); }
.board-wrap::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 5px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 276px; gap: var(--s2); align-items: start; padding: 4px 4px 12px; }
@media (min-width: 1280px) { .board { grid-auto-columns: 252px; } }
.col { background: var(--sand); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); min-width: 0; scroll-snap-align: start; }
.col > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: var(--bw) solid var(--ink); border-radius: var(--r) var(--r) 0 0; }
.col > header h3 { font-size: .86rem; margin: 0; letter-spacing: .04em; }
.col > header .n { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--ink); min-width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper-2); font-variation-settings: "wdth" 80; padding-inline: 6px; }
.col.lemon > header { background: var(--lemon); } .col.peach > header { background: var(--peach); } .col.sky > header { background: var(--sky); } .col.lilac > header { background: var(--lilac); } .col.mint > header { background: var(--mint); } .col.rose > header { background: var(--rose); } .col.paper > header { background: var(--paper-2); }
.col .cards { padding: 10px; display: grid; gap: 10px; }
.col .gate { padding: 0 12px 12px; font-size: .74rem; color: var(--ink-2); line-height: 1.4; }
.col .gate b { color: var(--ink); }
.bcard { background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px; box-shadow: 2px 2px 0 var(--ink); display: grid; gap: 6px; min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.bcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.bcard h4 { margin: 0; font-size: .98rem; line-height: 1.3; color: var(--ink); }
.bcard .kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.bcard .kv b { color: var(--ink); font-weight: 700; }
.bcard .kv i { font-style: normal; color: var(--ink-2); }
.bcard .claims { margin-top: 2px; }
.bcard .claims .bar { height: 8px; }
.bcard .claims span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.bcard.late { border-color: var(--red); box-shadow: 2px 2px 0 var(--red); }
.bcard .tag.late { background: var(--peach); }
.col .empty { margin: 0 10px 10px; padding: 14px; border: 1.5px dashed var(--ink); border-radius: var(--r); font-size: .84rem; color: var(--ink-2); background: transparent; line-height: 1.45; }
.col .empty b { display: block; color: var(--ink); margin-bottom: 2px; }
.board-hint { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; }
.board-hint::before { content: "↔"; font-weight: 900; color: var(--red); }

/* Filter chips (a row of pressable buttons) -------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .lbl { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.filters button { font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: var(--paper-2); color: var(--ink); cursor: pointer; line-height: 1.2; white-space: nowrap; }
.filters button:hover { background: var(--sand); }
.filters button[aria-pressed="true"] { background: var(--sun); }

/* Stage rules (how the board works) */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.stages li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); counter-increment: st; }
.stages li::before { content: counter(st, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--red); font-variation-settings: "wdth" 80; padding-top: 2px; }
.stages b { color: var(--ink); display: block; font-family: var(--display); text-transform: uppercase; font-size: .95rem; letter-spacing: .03em; font-variation-settings: "wdth" 88; margin-bottom: 2px; }
.stages p { margin: 0; font-size: .92rem; }

/* Client accounts ----------------------------------------------------------- */
.accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 860px) { .accounts { grid-template-columns: minmax(0, 1fr); } }
.account { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2vw, 24px); background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.account.attn { outline: 3px solid var(--red); outline-offset: 4px; }
.account .head { display: flex; gap: 12px; align-items: center; }
.account .head h3 { margin: 0 0 2px; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account .head .kind-line { font-size: .8rem; color: var(--muted); font-weight: 600; }
.account .head .status { margin-left: auto; flex: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts > div { padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); min-width: 0; }
.facts .l { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.facts .v { font-size: .9rem; color: var(--ink); font-weight: 700; line-height: 1.35; }
.facts .v small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.facts .v .camp-line { display: block; font-weight: 600; color: var(--ink-2); font-size: .8rem; line-height: 1.45; margin-top: 4px; }
.facts > div.wide { grid-column: 1 / -1; }
.facts > div.warn { background: var(--peach); }
.facts > div.good { background: var(--mint); }
.account .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.account .links .btn { padding: .55em .9em; font-size: .84rem; box-shadow: 3px 3px 0 var(--ink); }
.budget { display: grid; gap: 4px; }
.budget .bar { height: 10px; }
.budget span { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* Rhythm (how an account is run) */
.rhythm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.rhythm.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rhythm > div { padding: 16px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); display: grid; gap: 6px; align-content: start; }
.rhythm .when { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: var(--red); font-variation-settings: "wdth" 80; line-height: 1; }
.rhythm b { color: var(--ink); }
.rhythm p { margin: 0; font-size: .88rem; }
@media (max-width: 900px) { .rhythm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rhythm, .rhythm.two { grid-template-columns: minmax(0, 1fr); } }

/* Asset library -------------------------------------------------------------- */
/* 240px keeps four across at desktop, so seven brand files sit 4 + 3 and eight templates 4 + 4. */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2); }
.asset { display: grid; gap: 8px; align-content: start; padding: 12px; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); min-width: 0; color: var(--ink-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.asset:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.asset .thumb { aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.asset .thumb svg { width: 100%; height: 100%; display: block; }
.asset .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset .thumb.logo img { object-fit: contain; padding: 14px; }
.asset .thumb.wide img { object-fit: contain; padding: 8px; }
.asset .thumb .icons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px; }
.asset .thumb .icons .icon { width: 34px; height: 34px; color: var(--ink); }
.empty-note { grid-column: 1 / -1; padding: 14px 16px; border: 1.5px dashed var(--ink); border-radius: var(--r); font-size: .88rem; color: var(--ink-2); background: transparent; margin: 0; }
.team-close .section-head + .mailboxes { margin-top: 0; }
.asset .thumb.sky { background: var(--sky); } .asset .thumb.lemon { background: var(--lemon); } .asset .thumb.mint { background: var(--mint); } .asset .thumb.rose { background: var(--rose); } .asset .thumb.lilac { background: var(--lilac); } .asset .thumb.peach { background: var(--peach); } .asset .thumb.ink { background: var(--ink); } .asset .thumb.sun { background: var(--sun); }
.asset b { color: var(--ink); font-size: .95rem; line-height: 1.3; }
.asset .meta { font-size: .76rem; color: var(--muted); font-weight: 600; }
.asset .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); line-height: 1.1; white-space: nowrap; }
.tag.ok { background: var(--mint); } .tag.no { background: var(--peach); } .tag.sun { background: var(--sun); } .tag.sky { background: var(--sky); } .tag.rose { background: var(--rose); } .tag.lilac { background: var(--lilac); }

/* Film-day selects: the facts of the day on the left, the drawn frames on the right, and a last tile
   that says how many more are in the library, so a card with two selects does not look empty. */
.select-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s3); align-items: start; }
.select-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.select-info h3 { margin: 0; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select-info dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: .84rem; }
.select-info dt { font-weight: 700; color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.select-info dd { margin: 0; color: var(--ink-2); font-weight: 600; }
.select-info .more-note { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 0; }
.selects { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.select { display: grid; gap: 6px; min-width: 0; }
.select .frame { aspect-ratio: 4 / 5; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.select .frame svg { width: 100%; height: 100%; display: block; }
.select .cap { font-size: .78rem; color: var(--ink); font-weight: 700; line-height: 1.3; }
.select .cap small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.select .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.select.more .frame { display: grid; place-items: center; align-content: center; text-align: center; padding: 12px; background: var(--sand); border-style: dashed; box-shadow: none; }
.select.more .frame b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 900; color: var(--ink); line-height: 1; font-variation-settings: "wdth" 80; }
.select.more .frame span { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; margin-top: 6px; }
@media (max-width: 900px) { .select-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .selects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.consent-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.consent-box > div { padding: 16px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); font-size: .9rem; }
.consent-box b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 760px) { .consent-box { grid-template-columns: minmax(0, 1fr); } }

/* Week calendar -------------------------------------------------------------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.day { display: flex; flex-direction: column; border-right: var(--bw) solid var(--ink); min-width: 0; min-height: 200px; }
.day:last-child { border-right: 0; }
.day > header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 10px 10px 8px; border-bottom: var(--bw) solid var(--ink); background: var(--sand); }
.day > header b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: .86rem; letter-spacing: .04em; color: var(--ink); font-variation-settings: "wdth" 84; }
.day > header span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.day[aria-current="date"] > header { background: var(--sun); }
.day[aria-current="date"] > header span { color: var(--ink); }
.day[aria-current="date"] > header span::after { content: " · today"; }
.day .evs { display: grid; gap: 8px; padding: 8px; align-content: start; }
.ev { display: grid; gap: 3px; padding: 8px 10px; border: 1.5px solid var(--ink); border-left-width: 6px; border-radius: 3px; background: var(--paper); font-size: .8rem; line-height: 1.35; min-width: 0; }
.ev b { color: var(--ink); font-size: .82rem; }
.ev .k { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ev .st { font-size: .72rem; font-weight: 700; color: var(--muted); }
.ev.set { border-left-color: var(--green); } .ev.wait { border-left-color: var(--sun); background: var(--lemon); } .ev.done { border-left-color: var(--ink); background: var(--paper-2); color: var(--muted); } .ev.done b { color: var(--ink-2); text-decoration: line-through; } .ev.late { border-left-color: var(--red); background: var(--peach); }
.ev.film { background: var(--rose); } .ev.pub { background: var(--lilac); }
.day .none { padding: 12px 10px; font-size: .78rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { border-bottom: var(--bw) solid var(--ink); min-height: 0; }
  .day:nth-child(even) { border-right: 0; }
  .day:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .day:nth-last-child(2) { border-bottom: var(--bw) solid var(--ink); }
}
@media (max-width: 600px) {
  .week { grid-template-columns: minmax(0, 1fr); }
  .day { border-right: 0; }
  .day:last-child { grid-column: auto; }
}

/* Month grid: an ordered list of days, each with a visually hidden weekday and what the dots mean */
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 6px; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .d { aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 3px; padding: 5px 6px; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--paper-2); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cal .d.pad { opacity: .35; border-style: dashed; background: transparent; }
.cal .d.today { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.cal .d.closed { background: var(--sand); }
.cal .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.cal .dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper-2); display: block; }
.cal .dots i.c { background: var(--sky); } .cal .dots i.p { background: var(--violet); } .cal .dots i.f { background: var(--pink); } .cal .dots i.m { background: var(--green); } .cal .dots i.w { background: var(--sun); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-top: 10px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); display: inline-block; margin-right: 6px; vertical-align: middle; }
.later { list-style: none; margin: 0; padding: 0; display: grid; }
.later li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--line); font-size: .9rem; align-items: start; }
.later li:last-child { border-bottom: 0; }
.later .d { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--ink); font-size: .9rem; line-height: 1.25; font-variation-settings: "wdth" 84; }
.later .d small { display: block; font-family: var(--sans); font-weight: 600; font-size: .7rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.later .w b { color: var(--ink); }
.later .w span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .later li { grid-template-columns: 72px minmax(0, 1fr); } }

/* Approvals queue ------------------------------------------------------------ */
.queue { display: grid; gap: var(--s3); }
.approval { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.approval .what { padding: clamp(16px, 2vw, 22px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.approval .top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.approval .top .who { color: var(--ink); font-weight: 700; }
.approval .top .n { font-family: var(--display); font-weight: 900; font-size: .9rem; color: var(--ink); min-width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--sun); font-variation-settings: "wdth" 80; padding-inline: 5px; }
.approval h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.approval .ask { font-size: .95rem; color: var(--ink-2); margin: 0; }
.preview { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px 14px; background: var(--paper); font-size: .9rem; color: var(--ink); display: grid; gap: 8px; }
.preview .pl { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.preview q { quotes: "“" "”"; font-weight: 600; }
.preview .src { font-size: .8rem; color: var(--ink-2); margin: 0; }
.preview .src b { color: var(--ink); }
.preview .budget { margin-top: 2px; }
.approval .rule { padding: clamp(16px, 2vw, 22px); background: var(--lemon); border-left: var(--bw) solid var(--ink); display: grid; gap: 8px; align-content: start; font-size: .88rem; color: var(--ink-2); }
.approval .rule .label { margin-bottom: 0; }
.approval .rule b { color: var(--ink); }
.approval .rule p { margin: 0; }
.approval .rule .by { font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 6px; }
.approval .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px clamp(16px, 2vw, 22px); border-top: 1.5px solid var(--line); background: var(--paper-2); }
.approval .acts .btn { padding: .6em 1em; font-size: .88rem; box-shadow: 3px 3px 0 var(--ink); }
.approval .acts .outcome { font-size: .84rem; color: var(--ink); font-weight: 600; flex: 1 1 16em; min-width: 0; }
.approval .note { grid-column: 1 / -1; display: grid; gap: 8px; padding: 0 clamp(16px, 2vw, 22px) 14px; }
.approval .note textarea { font: inherit; font-size: .9rem; width: 100%; min-height: 72px; padding: 10px 12px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); resize: vertical; }
.approval .note textarea:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.approval .note label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.approval .note .btn { justify-self: start; padding: .6em 1em; font-size: .88rem; box-shadow: 3px 3px 0 var(--ink); }
.approval[data-state="approved"] { border-color: var(--green); box-shadow: 5px 5px 0 var(--green); }
.approval[data-state="approved"] .acts { background: var(--mint); }
.approval[data-state="changes"] .acts { background: var(--lemon); }
.approval[data-state="hold"] { box-shadow: 5px 5px 0 var(--sand); }
.approval[data-state="hold"] .acts { background: var(--sand); }
.approval[data-state]:not([data-state=""]) .acts .btn[data-act] { display: none; }
.approval .acts .btn[data-act="undo"] { display: none; }
.approval[data-state]:not([data-state=""]) .acts .btn[data-act="undo"] { display: inline-flex; }
@media (max-width: 900px) { .approval { grid-template-columns: minmax(0, 1fr); } .approval .rule { border-left: 0; border-top: var(--bw) solid var(--ink); } }

/* The rulebook (numbered) */
.rulebook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); counter-reset: rb; }
.rulebook li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); counter-increment: rb; font-size: .9rem; }
.rulebook li::before { content: counter(rb); font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--red); font-variation-settings: "wdth" 80; }
.rulebook b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 760px) { .rulebook { grid-template-columns: minmax(0, 1fr); } }

/* After you click: three outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.outcomes > div { padding: 18px; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); font-size: .92rem; display: grid; gap: 6px; align-content: start; }
.outcomes > div:nth-child(1) { background: var(--mint); } .outcomes > div:nth-child(2) { background: var(--lemon); } .outcomes > div:nth-child(3) { background: var(--sand); }
.outcomes b { color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; font-variation-settings: "wdth" 88; }
.outcomes p { margin: 0; }
@media (max-width: 760px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

/* House rules (Standards): two columns on a wide screen so the cards set their own measure ---- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); counter-reset: rl; }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rules li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s2) var(--s3); align-content: start; padding: clamp(16px, 2vw, 24px); border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--shadow); counter-increment: rl; }
.rules li::before { content: counter(rl, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; color: var(--red); font-variation-settings: "wdth" 76; letter-spacing: -.02em; }
.rules h3 { margin: 0 0 6px; font-size: 1.15rem; }
.rules p { margin: 0; font-size: .95rem; }
.rules p + p { margin-top: .6em; }
.rules .why { font-size: .84rem; color: var(--muted); }
.rules li:nth-child(1) { background: var(--lemon); } .rules li:nth-child(4) { background: var(--sky); } .rules li:nth-child(7) { background: var(--mint); } .rules li:nth-child(10) { background: var(--rose); }
@media (max-width: 520px) { .rules li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.words ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.words li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1.5px solid rgba(21,19,26,.18); }
.words li:last-child { border-bottom: 0; }
.words li s { color: var(--muted); }
.words li b { color: var(--ink); }
.words .cols-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
@media (max-width: 760px) { .words { grid-template-columns: minmax(0, 1fr); } }

/* Closing block: staff sign-in and the mailboxes -------------------------------- */
.team-close .mailboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.team-close .mailboxes a { display: grid; gap: 4px; padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.team-close .mailboxes a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.team-close .mailboxes b { font-size: .95rem; word-break: break-all; }
.team-close .mailboxes span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.band.night.team-close .mailboxes a:not(.btn) { color: #15131A; box-shadow: 4px 4px 0 var(--sun); }
.band.night.team-close .mailboxes a:not(.btn):hover { box-shadow: 6px 6px 0 var(--sun); }
.band.night.team-close .mailboxes b { color: #15131A; }
.band.night.team-close .mailboxes span { color: #6F6A7A; }
.team-close .signin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: center; }
.team-close .sky-art { width: min(100%, 420px); margin-inline: auto; }
.team-close .sky-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .team-close .signin { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .team-close .mailboxes { grid-template-columns: minmax(0, 1fr); } }

/* The private site ends with the short .dash-foot (brief section 4), with room under it */
.team .dash-foot { margin-top: var(--s4); margin-bottom: var(--s5); }

/* Two-column sign-off table wraps on a phone instead of scrolling */
.signoff table.data { min-width: 0; }
.signoff table.data th, .signoff table.data td { white-space: normal; }
.signoff table.data td:first-child { width: 56%; }

/* Source chip states (team.js) */
.chip.live { background: var(--mint); }
.chip .live-dot { width: 8px; height: 8px; }

/* Attention alerts list */
.alerts { display: grid; gap: 12px; }
.alerts .alert .act { margin-top: 6px; font-size: .84rem; }
.alerts .alert .act a { font-weight: 700; }
@media (min-width: 901px) { .alerts.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reduced motion: nothing here moves on its own, but hovers lift; keep them still */
@media (prefers-reduced-motion: reduce) {
  .bcard, a.asset, .team-close .mailboxes a, .approval { transition: none !important; }
  .bcard:hover, a.asset:hover, .team-close .mailboxes a:hover { transform: none; }
  .board-wrap { scroll-behavior: auto; }
}
