/* Team board (/team). Tokens, fonts, buttons and the theme toggle come from site.css. */
.team { font-size: 15px; }
.team [hidden] { display: none !important; }

/* Shell, sidebar and topbar: copied from office/office.css so both boards look the same. Keep them in step. */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 14px; }
/* Office <-> team board: the sidebar stays put (no size/position morph) and only cross-fades; office.css names it too. */
.side { view-transition-name: staff-side; }
::view-transition-group(staff-side) { animation: none; }
.side-brand img { width: 160px; height: auto; margin: 4px 8px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.side nav a:hover { background: var(--surface); }
.side nav a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--red), inset 0 0 0 1px var(--line); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-foot .who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 8px; overflow-wrap: anywhere; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 48px) 72px; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 40px; }
.topbar .btn, .topbar .icon-btn { flex: none; }
.topbar #menu { display: none; margin-right: auto; }
.team .btn { --h: 42px; } .team .btn-sm { --h: 34px; padding: 0 14px; }
.role-pill, .ro-pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.ro-pill { border-color: var(--maint); color: var(--maint); font-weight: 600; }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: auto; z-index: 70; background: var(--surface); }
  .menu-open .side { display: flex; }
  .topbar #menu { display: inline-flex; }
  .main { padding: 12px 16px 64px; }
}

/* Board content. :where() keeps these plain controls as weak as element rules, so .x, .primary etc. still win. */
.team h1, .team h2, .team h3 { letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.15; } .team h1 { font-size: 30px; } .team h2 { font-size: 18px; } .team h3 { font-size: 15px; }
:where(#view) button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; font-weight: 600; }
:where(#view) button:hover { border-color: var(--muted); } .primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
:where(#view) button:disabled { opacity: .5; cursor: default; }
:where(#view) :is(input, select, textarea) { background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 12px; } .head h1 { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 16px; margin-bottom: 16px; } .card { margin-bottom: 16px; } .grid .card { margin: 0; }
.big { font: 600 32px/1.1 var(--font-head); } .muted, .team small { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row > .grow { flex: 1 1 200px; }
.todo { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; } .todo:first-child { border: 0; } .todo input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ok); } .todo .grow { flex: 1; } .is-done { opacity: .55; text-decoration: line-through; }
.x { border: 0; background: none; color: var(--muted); padding: 2px 8px; } .pill { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; } .high { color: var(--maint); }
.bar { height: 12px; background: var(--inset); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0; } .bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--emerald) 0 10px, color-mix(in srgb, var(--emerald) 75%, #000) 10px 12px); }
.qty { width: 110px; } .board { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 14px; overflow-x: auto; } .board .item { background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; } .board select { width: 100%; padding: 4px 8px; margin-top: 6px; }
.lib { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 16px; } .lib .list { display: grid; align-content: start; gap: 2px; } .lib .list button { text-align: left; border: 0; background: none; padding: 5px 8px; font-weight: 500; }
.note table { border-collapse: collapse; width: 100%; min-width: 0; font-size: inherit; } .note td, .note th { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; } .note { overflow-x: auto; } .note h1 { font-size: 24px; } .note blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--torch); background: var(--inset); } .note code { font-family: var(--font-mono); font-size: 13px; }
#toast { position: fixed; bottom: 20px; left: 50%; translate: -50%; z-index: 9; } #toast:empty { display: none; }
@media (max-width: 1150px) { .lib { grid-template-columns: 1fr; } }
