/* rainydays pages: the board (table, kanban, item drawer), cell pickers, My work, inbox, teams and settings. */

/* ---------- board header and toolbar ---------- */
.board-page { padding: 18px clamp(14px, 2.4vw, 32px) 80px; }
.bhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.bhead-text { flex: 1; display: grid; justify-items: start; gap: 2px; min-width: 0; }
.bcrumb { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; font-size: 13px; color: var(--dim); }
a.bcrumb:hover { color: var(--white); }
.bname, .bdesc, .grp-title {
  background: none; border: 1px solid transparent; border-radius: 7px; cursor: text; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.bname { font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -0.015em; padding: 1px 6px; margin-left: -7px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.bdesc { color: var(--mist); font-size: 14px; padding: 1px 6px; margin-left: -7px; max-width: 80ch; white-space: pre-wrap; }
.bdesc.placeholder { color: var(--dim); }
.bname:hover, .bdesc:hover, .grp-title:hover { border-color: var(--line-soft); background: rgba(var(--fg-rgb), 0.03); }
/* a guest's board: its name, description and group titles only read */
.bname.ro, .bdesc.ro, .grp-title.ro { cursor: default; }
.bname.ro:hover, .bdesc.ro:hover, .grp-title.ro:hover { border-color: transparent; background: none; }
.bname.ro { display: inline-block; }
.bdesc.ro { margin-top: 0; margin-bottom: 0; }
/* on a guest's board, the line saying so; on everyone else's, how many guests it has (to its settings) */
.bguest { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; color: var(--mint); background: rgba(var(--fg-rgb), 0.05); }
.bguest.soon { color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.bguests { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 12.5px; color: var(--mist); }
.bguests:hover { border-color: var(--line); color: var(--white); }
.inline-edit { font: inherit; }
/* the board's name and the group titles are headings (h1, h2) wrapped round their rename buttons, so they add
   structure without changing a pixel */
.bname-h, .grp-h { margin: 0; font: inherit; line-height: inherit; color: inherit; min-width: 0; max-width: 100%; }
.grp-h { display: flex; }
/* the name button's -7px pull to the left belongs to the h1 now, or the h1 shrinks by 7px and the name wraps */
.bname-h { margin-left: -7px; }
.bname-h > .bname { margin-left: 0; }
.bhead .inline-edit { font-size: 22px; font-weight: 700; max-width: 640px; }
.bhead textarea.inline-edit { font-size: 14px; font-weight: 400; width: min(640px, 100%); }
.bhead-side { display: flex; align-items: center; gap: 10px; flex: none; }
.bhead-people { --ring: var(--bg); }
/* past the board's own controls, a hairline, then yours: the bell (the Inbox and notification settings, with the
   unread count) and your picture (status, profile and settings) */
.bhead-sep { width: 1px; height: 22px; background: var(--line-soft); }
.bhead-bell { position: relative; width: 34px; height: 34px; }
.bhead-bell .badge { position: absolute; top: -1px; right: -3px; height: 16px; min-width: 16px; padding: 0 4px; font-size: 10.5px; pointer-events: none; }
/* (once the shell has a top bar, its Inbox carries the count, so the bell doesn't repeat it) */
@media (max-width: 900px) { .bhead-bell .badge { display: none; } }
.bhead-me { display: inline-flex; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; --ring: var(--bg); }
.bhead-me:hover { filter: brightness(1.08); }
/* a board's settings page: the board and its team under the heading, and its games with their icons */
.bset-where { display: flex; align-items: center; gap: 7px; }
.bset-game { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; color: var(--text); }
.bset-games .g-board-list li { padding: 2px 0; }
/* the toolbar sticks under the page's top edge as glass, so the haze shows through it */
.btools {
  position: sticky; top: 0; z-index: 40; margin: 0 calc(-1 * clamp(14px, 2.4vw, 32px)) 6px; padding: 10px clamp(14px, 2.4vw, 32px);
  background: var(--glass-bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft);
}
.btools-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(var(--fg-rgb), 0.035); border: 1px solid var(--line-soft); }
.seg-btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border: 0; border-radius: 6px; background: none;
  color: var(--mist); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.seg-btn .ic { color: var(--dim); }
.seg-btn:hover { color: var(--white); }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { color: var(--white); }
/* the selected view's highlight, its own element so switching views glides it across (js/core.js) */
.seg-ink {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; view-transition-name: seg-ink;
  background: rgba(var(--sel-rgb), 0.24); box-shadow: inset 0 0 0 1px rgba(var(--glow-rgb), 0.22);
}
.seg-btn[aria-selected="true"] .ic, .seg-btn[aria-pressed="true"] .ic { color: var(--accent); }
.btools-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > .ic { position: absolute; left: 10px; color: var(--dim); pointer-events: none; }
.bsearch { width: 220px; padding: 6px 10px 6px 32px; font-size: 13.5px; }
.filter-btn .av { --ring: transparent; }
.filter-btn.on { border-color: var(--accent); background: rgba(var(--sel-rgb), 0.16); color: var(--white); }
.lanes-by { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.small-select { padding: 5px 30px 5px 10px; font-size: 13px; width: auto; }

/* ---------- the table ---------- */
.tbl-wrap { --namew: 260px; --handlew: 40px; overflow-x: auto; padding-bottom: 6px; }
.grp { min-width: var(--minw); margin-bottom: 22px; }
.grp-head { position: sticky; left: 0; display: flex; align-items: center; gap: 6px; width: fit-content; max-width: calc(100vw - 48px); padding: 2px 0 8px; }
.grp-toggle { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.grp-toggle:hover { background: rgba(var(--fg-rgb), 0.06); }
.grp-toggle .ic { transition: transform 0.2s var(--ease); }
.grp.shut .grp-toggle .ic { transform: rotate(-90deg); }
.grp-title { color: var(--ink); font-size: 16px; font-weight: 700; padding: 1px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-head .inline-edit { width: 280px; padding: 4px 8px; font-weight: 700; }
.grp-count { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; margin-left: 4px; }
.grp-menu, .grp-dup { opacity: 0.8; }
.grp-dup { margin-left: 2px; }
.grp-head:hover .grp-menu, .grp-head:hover .grp-dup, .grp-menu:focus-visible, .grp-dup:focus-visible { opacity: 1; }
.grp.shut .grp-head .battery { width: 160px; margin-left: 8px; }
.grp.shut { margin-bottom: 10px; }

.grp-tbl {
  position: relative; border: 1px solid var(--line-soft); border-radius: 12px; overflow: clip; background: var(--raised); --ring: var(--raised);
  box-shadow: 0 24px 50px -30px rgba(var(--shade-rgb), calc(0.85 * var(--shade-k)));
}
.tr { position: relative; display: grid; grid-template-columns: var(--grid); min-height: 40px; border-top: 1px solid var(--line-soft); }
.tr.th { border-top: 0; min-height: 36px; }
.td { position: relative; display: flex; align-items: stretch; min-width: 0; background: var(--raised); border-right: 1px solid var(--line-soft); }
.td:last-child { border-right: 0; }
.td.handle { position: sticky; left: 0; z-index: 3; align-items: center; justify-content: center; box-shadow: inset 4px 0 0 var(--ink); border-right: 0; }
.td.name { position: sticky; left: var(--handlew); z-index: 3; align-items: center; gap: 2px; padding: 0 4px 0 8px; border-right: 1px solid var(--line); }
.th .td { background: var(--th); }
.th .td.name { font-size: 13px; font-weight: 500; color: var(--dim); }
.tr.item:hover .td, .tr.item:focus-within .td { background: var(--raised-2); }
.tr.item:hover, .tr.item:focus-within { --ring: var(--raised-2); }
.colh-cell { justify-content: center; }
.colh {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 0; background: none;
  color: var(--mist); font-size: 13px; font-weight: 500; cursor: pointer;
}
.colh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colh .ic { opacity: 0; color: var(--dim); transition: opacity 0.15s; }
.colh:hover, .colh:focus-visible { color: var(--white); }
.colh:hover .ic, .colh:focus-visible .ic { opacity: 1; }
.colh.ro { cursor: default; }
.colh.ro:hover { color: inherit; }
/* the grip: a 7px line to see, a 24px strip to grab, and from the keyboard a separator the arrow keys move */
.col-resize { position: absolute; top: 0; bottom: 0; right: -4px; width: 7px; cursor: col-resize; z-index: 4; outline: none; }
.col-resize::before { content: ""; position: absolute; inset: 0 -8px; }
.col-resize:hover, .col-resize:focus-visible { background: rgba(var(--glow-rgb), 0.5); }
.col-resize:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
body.resizing { cursor: col-resize; user-select: none; }
.td.addcol { justify-content: center; align-items: center; }
.th .td.addcol .icon-btn { width: 28px; height: 28px; }

.grip { display: flex; color: var(--dim); opacity: 0; cursor: grab; padding: 6px 2px; }
.tr.item:hover .grip { opacity: 0.8; }
.tr.item.dragging { opacity: 0.4; }
.tr.drop-before::after, .tr.drop-after::after, .tr.drop-end::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 6; pointer-events: none;
}
.tr.drop-before::after, .tr.drop-end::after { top: -1px; }
/* dropping onto "+ Add sub-item" makes the dragged row a sub-item; an item with sub-items of its own can't be one */
.tr.add-sub.drop-into .td.add-cell { background: rgba(var(--glow-rgb), 0.1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tr.add-sub.drop-into .add-input::placeholder { color: var(--accent); }
.tr.drop-no .td.name, .tr.drop-no .td.add-cell { box-shadow: inset 0 0 0 1.5px rgba(var(--bad-rgb), 0.7); }
.tr.drop-after::after { bottom: -1px; }

.iname { flex: 1; min-width: 0; padding: 0 2px; border: 0; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; height: 100%; }
.iname:hover { color: var(--white); }
/* the name itself renames (the space around it opens), so it's outlined like a box you can type in */
.iname-text { display: inline-block; max-width: 100%; padding: 3px 4px; border-radius: 5px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; cursor: text; }
/* (a long name stops short of the end, so there's always space beside it to click; a tap opens it anyway) */
@media (hover: hover) {
  .iname-text { max-width: calc(100% - 20px); }
  .iname-text:hover { box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.28); }
}
/* focus rings the name, not the whole cell */
.iname:focus-visible { outline: none; }
.iname:focus-visible .iname-text { box-shadow: 0 0 0 2px var(--accent); }
/* the rename box is as wide as the name (board.js sets it), up to the cell; the buttons after it keep their place */
.td.name .inline-edit { flex: 0 1 auto; min-width: 64px; margin-right: auto; padding: 3px 5px; height: 28px; border-radius: 5px; }
.ibtn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--dim); cursor: pointer; font-family: var(--mono); font-size: 12px; flex: none; }
.ibtn:hover { background: rgba(var(--fg-rgb), 0.07); color: var(--white); }
.icount, .imenu, .isubs { opacity: 0; }
.icount.has { opacity: 1; color: var(--blue); }
.isubs.has { opacity: 1; color: var(--mist); }
.isubs.all { color: var(--mint); }
.isubs[aria-expanded="true"] { opacity: 1; color: var(--accent); background: rgba(var(--glow-rgb), 0.08); }
.tr.item:hover .ibtn, .tr.item:focus-within .ibtn { opacity: 1; }
/* a touch screen has no hover: the item menu shows (the way to Rename, Move and Delete there), and an open or add
   button with nothing to say leaves the name its room */
@media (hover: none) {
  .imenu { opacity: 0.75; }
  .isubs:not(.has):not([aria-expanded="true"]), .icount:not(.has) { display: none; }
}

/* cells fill their table cell edge to edge */
.td > .cell { flex: 1; min-width: 0; }
/* a cell that only shows its value (a guest's, on a card they aren't on): no hand, and no faint "add" icon */
.cell.ro { cursor: default; }
.cell.ro .cell-ghost { display: none; }
.cell { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 0; margin: 0; padding: 0 8px; background: none; color: var(--text); font-size: 13.5px; cursor: pointer; min-height: 39px; }
button.cell:hover { background: rgba(var(--fg-rgb), 0.04); }
/* a label is a tinted pill set inside its cell, not a block of colour */
.cell-status {
  background: var(--pill); color: var(--pill-ink); font-weight: 600; font-size: 13px; border-radius: 7px;
  box-shadow: inset 0 0 0 1px var(--pill-edge); transition: background 0.15s;
}
button.cell-status:hover { background: var(--pill-hover); }
.cell-status.empty { background: transparent; box-shadow: none; }
button.cell-status.empty:hover { background: rgba(var(--fg-rgb), 0.04); box-shadow: inset 0 0 0 1px var(--line-soft); }
.td > .cell-status { margin: 5px 6px; min-height: 29px; }
.cell-st-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-ghost { display: inline-flex; color: var(--dim); opacity: 0; transition: opacity 0.15s; }
.cell-ghost .av-empty { border-color: rgba(var(--dim-rgb), 0.6); }
.tr.item:hover .cell-ghost, .cell:focus-visible .cell-ghost, .dr-value .cell-ghost, .kcard .cell-ghost { opacity: 0.8; }
.cell-date { font-size: 13px; color: var(--mist); }
.cell-date.late { color: var(--late); }
.cell-date.late .mono::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--late); vertical-align: 1px; }
/* a cell's focus ring inside it: one outside would be painted over by the next cell and row */
.td > .cell:focus-visible, .td .colh:focus-visible, .cell-link-edit:focus-visible { outline-offset: -2px; border-radius: 4px; }
.td > .cell-status:focus-visible { outline-offset: 2px; }
/* in the drawer: owners with their names, and a text value whole, on as many lines as it has */
.cell-whos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 6px 0; }
.cell-who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); font-size: 13.5px; }
.cell-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-value .cell-people { justify-content: flex-start; }
.cell.wrap { justify-content: flex-start; text-align: left; }
.cell.wrap .cell-tx { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; padding: 9px 0; line-height: 1.5; }
.cell-input.multi { resize: none; overflow: hidden; line-height: 1.5; padding-top: 9px; padding-bottom: 9px; }
.cell-date.today { color: var(--accent); }
.cell-text { justify-content: flex-start; padding: 0 10px; color: var(--mist); }
/* Last updated reads, it doesn't edit: who (a small avatar) and how long ago */
.cell-updated { justify-content: flex-start; padding: 0 12px; gap: 8px; cursor: default; color: var(--mist); font-size: 12.5px; }
.cell-updated time { white-space: nowrap; }
.cell-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-number { justify-content: flex-end; padding: 0 12px; }
.cell-checkbox .cb { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--dim); color: var(--on); }
.cell-checkbox.on .cb { background: var(--btn); border-color: var(--accent); }
.cell-link { justify-content: space-between; gap: 4px; padding: 0 4px 0 10px; cursor: default; }
.cell-link.empty { justify-content: center; padding: 0; }
.cell-link > a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--blue); }
.cell-link > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-link > a:hover { color: var(--white); text-decoration: underline; }
.cell-link-edit { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 28px; border: 0; background: none; color: var(--dim); cursor: pointer; border-radius: 6px; }
.cell-link.empty .cell-link-edit { flex: 1; }
.cell-link:not(.empty) .cell-link-edit { opacity: 0; }
.tr.item:hover .cell-link-edit, .cell-link-edit:focus-visible, .dr-value .cell-link-edit { opacity: 1; }
.cell-link-edit:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
.cell-input { flex: 1; min-width: 0; height: auto; border: 0; outline: 2px solid var(--accent); outline-offset: -2px; background: var(--raised-2); color: var(--white); padding: 0 10px; font: inherit; font-size: 13.5px; }
.cell .avs .av { box-shadow: 0 0 0 2px var(--ring); }

/* the done ripple: a ring spreads from the cell, a drop landing in a puddle */
.ripple { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(var(--fg-rgb), 0.85); pointer-events: none; animation: ripple 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.ripple::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(var(--fg-rgb), 0.5); animation: ripple 0.85s 0.12s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes ripple { to { transform: scale(11); opacity: 0; } }

.tr.add-row { min-height: 38px; }
.td.add-cell { padding: 0 8px; }
.td.add-fill { grid-column: 3 / -1; border-right: 0; }
.add-input { width: 100%; height: 34px; padding: 0 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.add-input::placeholder { color: var(--dim); }
.add-input:focus { outline: none; }
.td.add-cell:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.tr.foot { min-height: 34px; }
.tr.foot .td { background: var(--sub); border-right-color: transparent; }
.tr.foot .td.handle { box-shadow: inset 4px 0 0 var(--ink); }
.td.sum { align-items: center; justify-content: center; padding: 0 8px; font-size: 12.5px; }
.sum-n { color: var(--text); }
.sum-range { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.battery { display: flex; width: 100%; height: 8px; gap: 2px; border-radius: 999px; overflow: hidden; }
.bat-seg { background: var(--fill); min-width: 4px; }
.bat-seg.none { background: none; box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.3); }
/* (at night each segment a quarter toward its ink, so even the darkest hues clear 3:1 on the summary row) */
:root:not([data-theme="light"]) .bat-seg:not(.none) { background: color-mix(in srgb, var(--fill) 75%, var(--ink)); }
.add-group { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 8px; background: var(--well-2); color: var(--mist); cursor: pointer; font-size: 14px; }
.add-group:hover { border-color: var(--accent); color: var(--white); }
.row.center { justify-content: center; margin-top: 12px; }

/* sub-items: shorter rows on a deeper ground, hung off their item by an elbow line */
.tr.sub { min-height: 36px; }
.tr.sub .td { background: var(--sub); }
.tr.sub:hover .td, .tr.sub:focus-within .td { background: var(--sub-hover); }
.tr.sub:hover, .tr.sub:focus-within { --ring: var(--sub-hover); }
.tr.sub .cell { min-height: 35px; }
.tr.sub .td > .cell-status { margin: 4px 6px; min-height: 27px; }
.tr.sub .td.name, .add-sub .td.add-cell { padding-left: 40px; }
.tr.sub .iname { color: var(--mist); font-size: 13.5px; }
.tr.sub .iname:hover { color: var(--white); }
.sub-elbow {
  position: absolute; left: 22px; top: 0; width: 12px; height: 50%; pointer-events: none;
  border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 7px;
}
.tr.sub .sub-elbow::after { content: ""; position: absolute; left: -1.5px; top: 100%; height: calc(100% + 1px); border-left: 1.5px solid var(--line); }
.tr.add-sub { min-height: 34px; }
.tr.add-sub .td { background: var(--sub); }
.add-sub .add-input { height: 32px; font-size: 13.5px; }

/* ---------- kanban ---------- */
.kanban { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.lane { flex: 0 0 280px; display: flex; flex-direction: column; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); transition: border-color 0.15s; --ring: var(--lane-ring); }
/* lanes scroll on their own only where the window has room for that; on a short one (a phone on its side, a big
   zoom) they're as tall as their cards and the page scrolls */
@media (min-width: 761px) and (min-height: 600px) {
  .lane { max-height: max(360px, calc(100dvh - 190px - var(--top-bar, 0px))); }
}
.lane.drop { border-color: var(--accent); }
.lane-head {
  display: flex; align-items: center; gap: 8px; margin: 8px 8px 0; padding: 7px 10px; border-radius: 9px;
  background: var(--pill, rgba(var(--fg-rgb), 0.05)); color: var(--pill-ink, var(--mist)); box-shadow: inset 0 0 0 1px var(--pill-edge, var(--line-soft));
}
.lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink, var(--dim)); flex: none; }
.lane-name { margin: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-count { margin-left: auto; font-family: var(--mono); font-size: 12px; opacity: 0.85; }
.lane-list { display: grid; gap: 8px; padding: 10px; overflow-y: auto; min-height: 44px; }
.kcard { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--kcard); border: 1px solid var(--line-soft); cursor: grab; transition: border-color 0.15s, transform 0.15s var(--ease); }
.kcard:hover { border-color: var(--line); }
.kcard.dragging { opacity: 0.4; }
.kcard-name { min-height: 24px; padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.kcard-name:hover { color: var(--white); }
/* the name itself renames (as a row's), outlined like a box you can type in, each line of a long one */
.kname-text { padding: 1px 3px; margin: 0 -3px; border-radius: 4px; cursor: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (hover: hover) { .kname-text:hover { box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.28); } }
.kcard-name:focus-visible { outline: none; }
.kcard-name:focus-visible .kname-text { box-shadow: 0 0 0 2px var(--accent); }
.kcard .inline-edit { justify-self: start; max-width: 100%; min-width: 64px; padding: 3px 5px; height: 28px; border-radius: 5px; font-weight: 500; }
.kcard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.kcard-meta .ic { vertical-align: -2px; margin-right: 4px; }
.kcard-grp { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); max-width: 140px; }
.kcard-grp .tdot { background: var(--ink); }
.kcard-date.late { color: var(--late); }
.kcard-date.late::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--late); vertical-align: 1px; }
.kcard-date.today { color: var(--accent); }
.kcard-subs { color: var(--mist); }
.kcard-people { margin-left: auto; }
.lane-add { padding: 0 10px 10px; }
.lane-add .add-input { width: 100%; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px dashed transparent; }
.lane-add .add-input:hover { border-color: var(--line); }
.lane-add .add-input:focus { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 1px var(--accent); }

/* ---------- the item drawer ---------- */
.drawer {
  position: fixed; top: var(--top-bar, 0px); right: 0; bottom: 0; z-index: 300; width: min(580px, 100vw); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sheet-top), var(--deep) 240px); border-left: 1px solid var(--line); box-shadow: -30px 0 60px rgba(var(--shade-rgb), calc(0.45 * var(--shade-k))); outline: none;
  transform: translateX(100%); transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1); --ring: var(--deep);
}
.drawer.in { transform: none; transition: transform 0.3s var(--ease); }
.drawer-scrim { position: fixed; inset: var(--top-bar, 0px) 0 0; z-index: 290; background: var(--scrim-soft); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: vt-fade-in 0.2s ease-out both; }
.drawer-scrim.out { animation: vt-fade-out 0.2s ease-in both; pointer-events: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line-soft); }
.dr-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--dim); font-size: 13px; }
.dr-board { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-group { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap; }
.dr-group .tdot { background: var(--ink); }
.dr-parent { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 7px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--mist); font-size: 13px; cursor: pointer; }
.dr-parent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.dr-parent .ic { color: var(--accent); }
.dr-parent:hover { border-color: var(--line); color: var(--white); }
.dr-group:hover:not(:disabled) { border-color: var(--line); }
.dr-group:disabled { cursor: default; }
.dr-actions { display: flex; gap: 2px; flex: none; }
.dr-scroll { flex: 1; overflow-y: auto; padding: 18px 22px 48px; }
.dr-name { display: block; width: calc(100% + 16px); margin: 0 -8px; padding: 4px 8px; resize: none; overflow: hidden; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--white); font: 700 22px/1.3 var(--sans); letter-spacing: -0.01em; }
.dr-name:hover { border-color: var(--line-soft); }
.dr-name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dr-meta { margin: 4px 0 18px; font-size: 12px; color: var(--dim); }
.dr-fields { margin-bottom: 24px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--raised); --ring: var(--raised); }
.dr-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 42px; border-top: 1px solid var(--line-soft); }
.dr-field:first-child { border-top: 0; }
.dr-label { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--mist); font-size: 13px; border-right: 1px solid var(--line-soft); min-width: 0; }
.dr-label .ic { color: var(--dim); }
.dr-value { display: flex; min-width: 0; }
.dr-value > .cell { flex: 1; min-height: 41px; }
.dr-ship { justify-content: flex-start; gap: 2px; padding: 0 12px; }
.dr-ship .ic { margin-left: auto; color: var(--dim); }
.dr-ship-v { color: var(--white); }
.dr-label-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-value .cell-people, .dr-value .cell-date, .dr-value .cell-number, .dr-value .cell-checkbox { justify-content: flex-start; padding: 0 12px; }
.dr-value > .cell-status { flex: 0 1 220px; margin: 6px 8px; min-height: 29px; }
/* a bug card's error reports (bugs.js errorReports): where its fix is, a week of its errors, each group to take off;
   and the instances a card is linked to in Studio (item.js drawStudio), in the same well of rows */
.dr-errs-slot:empty, .dr-studio-slot:empty { display: none; }
.dr-errs, .dr-studio { margin-bottom: 24px; display: grid; gap: 10px; }
.dr-errs-h, .dr-studio-h { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.dr-errs-h:focus, .dr-studio-h:focus { outline: none; }
.dr-errs-h .ic, .dr-studio-h .ic { color: var(--accent); }
.dr-errs-game { display: grid; gap: 8px; }
.dr-errs-g { font-size: 12.5px; color: var(--mist); font-weight: 600; }
.fix-line { margin: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--well); color: var(--mist); font-size: 13px; }
.fix-line strong { color: var(--white); font-weight: 600; }
.fix-line.quiet { border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.fix-line.quiet strong { color: var(--mint); }
.fix-line.seen { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.fix-line.seen strong { color: var(--warn); }
.dr-errs .spark { margin: 0; }
.dr-err-list, .dr-inst-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: var(--well); }
.dr-err { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px 4px 10px; }
.dr-err + .dr-err { border-top: 1px solid var(--line-soft); }
.dr-err-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.dr-err-n { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.dr-err-off, .dr-inst-off { width: 28px; height: 28px; }
.dr-errs-chart { display: grid; gap: 4px; }
/* (an instance: its path from the game down in mono, wrapping rather than losing its end; what it is under it) */
.dr-inst { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; min-height: 40px; padding: 6px 6px 6px 12px; }
.dr-inst + .dr-inst { border-top: 1px solid var(--line-soft); }
.dr-inst-path { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.dr-inst-meta { grid-column: 1; font-size: 12px; color: var(--dim); }
.dr-inst-off { grid-column: 2; grid-row: 1 / 3; }
@media (max-width: 560px) {
  /* (a phone: severity and count over the message, the button beside both) */
  .dr-err { grid-template-columns: auto minmax(0, 1fr) 32px; row-gap: 2px; padding-block: 6px; }
  .dr-err .err-sev { grid-column: 1; grid-row: 1; }
  .dr-err-n { grid-column: 2; grid-row: 1; }
  .dr-err-msg { grid-column: 1 / 3; grid-row: 2; }
  .dr-err-off { grid-column: 3; grid-row: 1 / 3; }
}
.dr-subs { margin-bottom: 24px; }
.dr-subs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dr-subs-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.dr-subs-head h2 .ic { color: var(--accent); }
.dr-subs-n { font-size: 12px; color: var(--dim); }
.dr-subs-bar { flex: 0 1 160px; height: 6px; margin-left: auto; border-radius: 999px; background: rgba(var(--fg-rgb), 0.07); overflow: hidden; }
.dr-subs-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-d), var(--mint)); }
.dr-sub-list { list-style: none; margin: 0 0 6px; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--raised); --ring: var(--raised); }
.dr-sub { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px 0 0; border-top: 1px solid var(--line-soft); }
.dr-sub:first-child { border-top: 0; }
.dr-sub > .cell-status { flex: 0 0 118px; margin: 6px 0 6px 6px; min-height: 29px; font-size: 12.5px; }
.dr-sub > .cell-status.empty { box-shadow: inset 0 0 0 1px var(--line-soft); }
.dr-sub-name { flex: 1; align-self: stretch; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sub-name:hover { color: var(--white); text-decoration: underline; text-decoration-color: rgba(var(--glow-rgb), 0.5); text-underline-offset: 3px; }
.dr-sub-date { font-size: 12px; color: var(--mist); white-space: nowrap; }
.dr-sub-add { width: 100%; height: 36px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 9px; }
.dr-sub-add:focus { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 1px var(--accent); }
.dr-tabs { margin-bottom: 4px; }
.compose { display: flex; gap: 10px; margin: 14px 0 18px; --ring: var(--deep); }
.compose-main { flex: 1; display: grid; gap: 8px; }
.composer { min-height: 78px; }
/* @mentions: the people to pick from, under the box; and a mention in a posted update */
.mention-wrap { position: relative; display: grid; }
.mention-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; width: min(320px, 100%); margin: 0; padding: 4px; list-style: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--pop); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -14px rgba(var(--shade-rgb), calc(0.7 * var(--shade-k))); --ring: var(--pop-ring);
}
.mention-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.mention-opt[aria-selected="true"], .mention-opt:hover { background: rgba(var(--sel-rgb), 0.16); }
.mention-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-user { color: var(--dim); font-size: 12px; }
.mention { display: inline; padding: 0 3px; margin: 0 -1px; border: 0; border-radius: 5px; background: rgba(var(--sel-rgb), 0.14); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.mention:hover { background: rgba(var(--sel-rgb), 0.24); }
.mention.me { background: rgba(var(--sel-rgb), 0.28); color: var(--white); }
.mention.still { cursor: default; }
.mention.still:hover { background: rgba(var(--sel-rgb), 0.14); }
.mention.still.me:hover { background: rgba(var(--sel-rgb), 0.28); }
.upd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.upd { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--raised); --ring: var(--raised); }
.upd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.upd-who { display: grid; flex: 1; min-width: 0; }
.upd-name { font-weight: 600; color: var(--white); font-size: 14px; }
.upd-when { font-size: 12px; color: var(--dim); }
.upd-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); line-height: 1.55; }
/* reactions: outlined chips under an update (yours with a cyan hairline and wash), each an emoji and a mono count; the
   add button sits in the update's head, quiet until the update is pointed at or focused (always there on touch) */
.upd-reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.upd-rx {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(var(--fg-rgb), 0.03); color: var(--mist); font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.upd-rx:hover:not(:disabled) { border-color: var(--line); color: var(--white); }
.upd-rx[aria-pressed="true"] { border-color: rgba(var(--glow-rgb), 0.5); background: rgba(var(--glow-rgb), 0.1); color: var(--white); }
.upd-rx:disabled { cursor: default; }
.upd-rx-e, .upd-rx-opt > span { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.upd-rx-e { font-size: 15px; }
.upd-rx-n { font-size: 12px; font-variant-numeric: tabular-nums; }
.upd-rx-add { opacity: 0.5; transition: opacity 0.15s; }
.upd:hover .upd-rx-add, .upd-rx-add:focus-visible, .upd-rx-add[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .upd-rx-add { opacity: 1; } }
.upd-rx-pick { display: flex; gap: 2px; padding: 2px; }
.upd-rx-opt { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.upd-rx-opt > span { font-size: 21px; transition: transform 0.15s var(--ease); }
.upd-rx-opt:hover, .upd-rx-opt:focus-visible { background: rgba(var(--fg-rgb), 0.07); }
.upd-rx-opt:hover > span { transform: scale(1.15); }
.upd-rx-opt[aria-pressed="true"] { background: rgba(var(--glow-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--glow-rgb), 0.45); }
@media (prefers-reduced-motion: reduce) { .upd-rx-opt > span { transition: none; } .upd-rx-opt:hover > span { transform: none; } }
.upd-empty { display: grid; gap: 4px; padding: 26px 12px; text-align: center; color: var(--dim); border: 1px dashed var(--line); border-radius: 12px; }
.upd-empty strong { color: var(--text); }
.act-list { list-style: none; margin: 12px 0 0; padding: 0; }
.act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.act:first-child { border-top: 0; }
.act-who { color: var(--white); font-weight: 600; }
.act-text { color: var(--mist); overflow-wrap: anywhere; }
.act-when { color: var(--dim); font-size: 12px; white-space: nowrap; }
body.drawer-open { overflow: hidden; }

/* ---------- pickers ---------- */
.st-pick { padding: 4px; }
.st-grid { display: grid; gap: 4px; }
.st-opt { padding: 8px 10px; border: 0; border-radius: 7px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-edge); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.st-opt:hover, .st-opt:focus-visible { background: var(--pill-hover); }
.st-opt.cur { box-shadow: inset 0 0 0 2px var(--pill-ink); }
.st-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 2px; }
.st-foot .small-link { display: inline-flex; align-items: center; gap: 4px; }
.pick { display: grid; gap: 6px; padding: 2px; }
.pick-list { display: grid; gap: 1px; max-height: 260px; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; }
.pick-row:hover, .pick-row:focus-visible { background: rgba(var(--glow-rgb), 0.08); outline: none; }
.pick-row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pick-row.on { background: rgba(var(--sel-rgb), 0.16); }
.pick-row > .ic { margin-left: auto; color: var(--accent); }
.pick-name { display: grid; min-width: 0; font-size: 14px; color: var(--text); }
.pick-user { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.pick-empty, .pick-note { padding: 6px 8px; font-size: 13px; color: var(--dim); }
.pick-note { border-top: 1px solid var(--line-soft); }
.pick-head { padding: 4px 8px 2px; font-size: 13px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row > .tdot { margin: 0 3px; }
.date-pick { display: grid; gap: 10px; padding: 4px; justify-items: start; }
.date-pick input[type="date"] { width: 100%; }
.date-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--mist); font-size: 12.5px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--white); }
.link-pick { padding: 6px; gap: 10px; }
.sw-grid { display: grid; grid-template-columns: repeat(5, 30px); gap: 7px; padding: 6px; }
.sw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; background: var(--fill); cursor: pointer; padding: 0; }
.sw.cur { border-color: var(--white); }
.sw:hover { filter: brightness(1.15); }
.lab-list { display: grid; gap: 8px; }
.lab-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 30px; gap: 8px; align-items: center; }
.lab-row.ships { grid-template-columns: 34px minmax(0, 1fr) auto auto auto 30px; }
@media (max-width: 560px) {
  /* (a phone: the name across, its three boxes under it) */
  .lab-row.ships { grid-template-columns: 34px repeat(3, auto) minmax(0, 1fr) 30px; row-gap: 4px; }
  .lab-row.ships .lab-name { grid-column: 2 / 6; grid-row: 1; }
  .lab-row.ships .lab-sw { grid-row: 1; }
  .lab-row.ships > .icon-btn { grid-column: 6; grid-row: 1; }
  .lab-row.ships .check { grid-row: 2; }
  .lab-row.ships .check:nth-of-type(1) { grid-column: 2; }
  .lab-row.ships .check:nth-of-type(2) { grid-column: 3; }
  .lab-row.ships .check:nth-of-type(3) { grid-column: 4; }
}
.lab-row .check:has(input:disabled) { opacity: 0.45; }
.lab-sw { width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--fill); cursor: pointer; }
.lab-done { font-size: 13px; }
.tpl-pick { display: grid; gap: 8px; }
.tpl { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(var(--fg-rgb), 0.02); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tpl:hover { border-color: var(--line); }
.tpl.on { border-color: var(--accent); background: rgba(var(--sel-rgb), 0.1); }
.tpl-name { font-weight: 600; color: var(--white); }
.tpl-blurb { font-size: 13px; color: var(--dim); }

/* ---------- my work ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.home-main, .home-side { min-width: 0; }
.home-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.home-side .panel + .panel { margin-top: 0; }
.forecast { margin-bottom: 24px; padding: 16px 16px 0; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); box-shadow: 0 24px 48px -32px rgba(var(--shade-rgb), calc(0.8 * var(--shade-k))); }
.fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-head .section-title { margin: 0; }
.fc-head .section-title .ic { color: var(--accent); }
.fc-body { overflow-x: auto; margin: 0 -16px; }
.fc-inner { position: relative; min-width: 540px; height: 156px; }
.fc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fc-days { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); height: 100%; border-top: 1px solid var(--line-soft); }
.fc-day { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1px; padding: 10px 12px; border: 0; border-left: 1px solid var(--line-soft); background: none; color: var(--mist); text-align: left; cursor: pointer; transition: background 0.15s; }
.fc-day:first-child { border-left: 0; }
.fc-day:hover { background: rgba(var(--fg-rgb), 0.025); }
.fc-day[aria-pressed="true"] { background: rgba(var(--sel-rgb), 0.14); box-shadow: inset 0 -2px 0 var(--accent); }
.fc-label { font-size: 13px; font-weight: 600; color: var(--text); }
.fc-n { font-size: 26px; line-height: 1.15; color: var(--white); }
.fc-day:not(.wet) .fc-n { color: var(--dim); }
.fc-word { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.fc-day.late.wet .fc-n, .fc-day.late.wet .fc-word { color: var(--late); }
.mw-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mw-bar .section-title { margin: 0; }
.mw-filter { margin-bottom: 12px; color: var(--mist); font-size: 13.5px; }
.mw-sec { margin-bottom: 20px; }
.mw-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--mist); }
.mw-head .count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); }
.mw-sec.late .mw-head { color: var(--late); }
.mw-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--panel); }
.mw-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px 0 8px; border-top: 1px solid var(--line-soft); color: var(--text); }
.mw-main { display: grid; min-width: 0; padding: 6px 0; }
.mw-rows li:first-child .mw-row { border-top: 0; }
.mw-row:hover { background: var(--row-hover); color: var(--white); }
.mw-st { display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 8px; border-radius: 7px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-edge); font-size: 12.5px; font-weight: 600; text-align: center; overflow: hidden; }
.mw-st.none { background: none; box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--dim); font-weight: 400; }
.mw-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-where { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.mw-where span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mw-where .tdot { background: var(--ink); }
.mw-due { text-align: right; font-size: 12.5px; color: var(--mist); }
.mw-due.late { color: var(--late); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.status-grid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.status-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: rgba(var(--fg-rgb), 0.02); color: var(--mist); font-size: 13px; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.status-opt .ic { color: var(--ink); }
.status-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-opt:hover { border-color: var(--line); color: var(--white); }
.status-opt.on { border-color: var(--ink); background: color-mix(in srgb, var(--fill) 24%, transparent); color: var(--white); }
.around-list { list-style: none; margin: 10px -8px 0; padding: 0; display: grid; gap: 1px; max-height: 440px; overflow-y: auto; --ring: var(--raised); }
.around-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.around-row:hover { background: rgba(var(--fg-rgb), 0.04); }
.around-text { display: grid; min-width: 0; }
.around-name { color: var(--text); font-weight: 500; font-size: 14px; }
.around-row .wchip { font-size: 12.5px; }
.around-row .wchip-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-boards { margin-top: 28px; }
.bcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.bcard {
  display: grid; gap: 8px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--text); transition: border-color 0.15s, transform 0.2s var(--ease);
}
.bcard:hover { border-color: var(--line); transform: translateY(-1px); color: var(--text); }
.bcard-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--white); font-weight: 600; }
.bcard-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard-name .ic { color: var(--accent); }
.bcard-where { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--dim); font-size: 12.5px; }
.bcard-where span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard-bat { margin-top: 4px; }
.bcard-nobar { display: block; height: 8px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.06); }
.bcard-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 12px; }

/* ---------- inbox ---------- */
.invites { margin-bottom: 22px; }
.invites:empty { display: none; }
.invite-list, .notes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--panel); --ring: var(--panel-ring); }
.invite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.invite:first-child { border-top: 0; }
.invite-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-edge); flex: none; }
.invite-text { flex: 1; display: grid; min-width: 200px; }
.invite-text strong, .note-text strong { color: var(--white); font-weight: 600; }
.note-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 10px; gap: 12px; align-items: start; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--line-soft); background: none; color: var(--mist); text-align: left; font-size: 14px; cursor: pointer; }
.note:first-child .note-row { border-top: 0; }
.note-row:hover { background: var(--row-hover); color: var(--text); }
.note.unread .note-row { background: rgba(var(--sel-rgb), 0.07); color: var(--text); }
.note-ic { color: var(--dim); margin-top: 2px; }
.note.unread .note-ic { color: var(--accent); }
.note-quote, .note-sub { display: block; margin-top: 4px; color: var(--dim); overflow-wrap: anywhere; }
.note-quote::before { content: "\201c"; }
.note-quote::after { content: "\201d"; }
.note-when { font-size: 12px; color: var(--dim); white-space: nowrap; margin-top: 2px; }
.note-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- teams ---------- */
.team-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.team-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-edge); font-size: 22px; font-weight: 700; }
.team-mark.has-icon { overflow: hidden; background: none; box-shadow: inset 0 0 0 1px var(--line-soft); }
.team-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.invite-form h2 { margin-bottom: 2px; }
.invite-form .panel-sub { margin-bottom: 12px; }
.invite-row { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-row .input:first-child { flex: 1 1 260px; }
.role-select { width: 130px; flex: none; }
.invite-form .form-err { margin-top: 12px; }
.member-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--panel); --ring: var(--panel-ring); }
.member { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1.3fr) 150px 110px 30px; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.member:first-child { border-top: 0; }
.member.pending { grid-template-columns: 36px minmax(0, 1fr) 90px auto; }
/* a guest: who, the boards they're on, the tag, and (for whoever invites people) their boards and removing them */
.member.guest { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.6fr) 60px auto; }
.guest-boards { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.guest-board { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; color: var(--mist); background: rgba(var(--fg-rgb), 0.05); }
.guest-board span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-board:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.08); }
.guest-tools { gap: 4px; justify-content: flex-end; }
.guests-about { margin: -4px 0 10px; }
.guest-pick { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; padding: 4px 2px; }
.guest-pick .check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.guest-pick .check:hover { background: rgba(var(--fg-rgb), 0.04); }
.guest-pick .check .ic { color: var(--accent); }
.invite-boards { margin-top: 12px; display: grid; gap: 6px; }
.guest-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--mist); }
.guest-note .ic { flex: none; margin-top: 3px; color: var(--mint); }
/* a guest's own end, on their page of the team: a quiet band without one, a clear one with it (amber within 3 days) */
.guest-ends { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--mist); }
.guest-ends .ic { flex: none; margin-top: 2px; color: var(--mint); }
.guest-ends.dated { border-color: rgba(var(--fg-rgb), 0.16); background: rgba(var(--fg-rgb), 0.04); color: var(--text); }
.guest-ends strong { color: var(--white); }
.guest-ends.soon { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.guest-ends.soon .ic { color: var(--warn); }
.guest-until { display: inline-flex; align-items: center; gap: 4px; color: var(--mist); }
.guest-until.soon, .guest-access-when.soon { color: var(--warn); }
.until-field { display: grid; gap: 4px; justify-items: start; margin-top: 4px; }
.until-input { width: 190px; }
.bset-guest-until { margin-left: auto; white-space: nowrap; }
.guest-access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guest-access-list li { display: grid; gap: 2px; }
.guest-access-team { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.guest-access-team:hover { color: var(--white); }
.guest-access-when { display: inline-flex; align-items: center; gap: 5px; color: var(--mist); }
.pick-guest { color: var(--mint); }
.dr-guest-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.bset-guest-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 2px; }
.bset-guest { display: flex; align-items: center; gap: 10px; padding: 5px 4px; }
.bset-guest-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bset-invite { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.bset-invite .form-err { margin: 0; }
.member-av { padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.member-id { display: grid; min-width: 0; }
.member-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.pending .member-name { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.member-status { min-width: 0; overflow: hidden; }
.member-status .wchip { max-width: 100%; }
.member-status .wchip-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-btn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: none; color: var(--dim); cursor: pointer; }
.role-btn:hover { border-color: var(--line); color: var(--white); }
.member > .role { justify-self: start; padding-left: 9px; }
.board-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--panel); }
/* a row opens the board; the settings button at its end, its settings page (the row is lit for either) */
.board-list li { display: flex; align-items: center; border-top: 1px solid var(--line-soft); transition: background 0.15s; }
.board-list li:first-child { border-top: 0; }
.board-list li:hover { background: var(--row-hover); }
.board-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); }
.board-row > .ic { color: var(--accent); }
.board-row:hover { color: var(--white); }
.board-row-set { margin-right: 10px; color: var(--dim); }
.board-row-text { flex: 1; display: grid; min-width: 0; }
.board-row-name { font-weight: 600; }
.danger-zone { border-color: rgba(var(--bad-rgb), 0.25); }
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; --ring: var(--deep); }
.profile-id { display: grid; gap: 4px; }
.profile-user { font-size: 13px; color: var(--dim); }
.profile-bio { color: var(--mist); white-space: pre-wrap; margin-bottom: 16px; overflow-wrap: anywhere; }
.profile-team-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.profile-team-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-team-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.profile-own { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
/* reporting someone, an update or an invite (people.js reportDialog) */
.report-reasons { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.report-reasons legend { margin-bottom: 8px; }
.report-pick { align-items: flex-start; }
.report-pick > span { display: grid; gap: 1px; }
.report-pick strong { color: var(--text); font-weight: 600; }
.invite-report { color: var(--dim); }

/* ---------- settings ---------- */
/* settings panels sit two across on a wide screen, one on a narrow one */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; align-items: start; }
.settings-grid > .panel + .panel { margin-top: 0; }
.settings-grid > .danger-zone { grid-column: 1 / -1; }
/* the theme cards each show a little window of their sky, drawn in that theme's own colours whatever is in use */
.settings-grid > .theme-panel { grid-column: 1 / -1; }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.theme-opt {
  display: grid; align-content: start; gap: 6px; padding: 10px 10px 14px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(var(--fg-rgb), 0.02); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.theme-opt:hover { border-color: var(--line); }
.theme-opt[aria-checked="true"] { border-color: var(--accent); background: rgba(var(--sel-rgb), 0.1); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-sky { position: relative; display: block; height: 92px; margin-bottom: 4px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(var(--fg-rgb), 0.1); }
.ts-scene { position: absolute; inset: 0; display: flex; gap: 6px; padding: 8px; }
.ts-side { width: 26%; border-radius: 5px; }
.ts-rows { flex: 1; display: grid; align-content: start; gap: 5px; padding: 6px; border-radius: 5px; }
.ts-rows span { height: 9px; border-radius: 3px; }
.ts-rows span:nth-child(1) { width: 70%; }
.ts-rows span:nth-child(3) { width: 48%; }
.sky-dark { background: radial-gradient(120px 80px at 90% -10%, rgba(8, 145, 178, 0.35), transparent 70%), #050b12; }
.sky-dark .ts-side { background: rgba(255, 255, 255, 0.05); }
.sky-dark .ts-rows { background: #0c1925; }
.sky-dark .ts-rows span { background: color-mix(in srgb, #0e7490 40%, #0c1925); }
.sky-dark .ts-rows span:nth-child(2) { background: color-mix(in srgb, #15803d 40%, #0c1925); }
.sky-light { background: radial-gradient(70px 30px at 30% 4%, #ffffff, transparent 70%), radial-gradient(90px 34px at 80% 0, #f7fafc, transparent 70%), linear-gradient(180deg, #cdd8e0, #e7ecf0); }
.sky-light .ts-side { background: rgba(255, 255, 255, 0.6); }
.sky-light .ts-rows { background: #fbfcfd; }
.sky-light .ts-rows span { background: color-mix(in srgb, #0e7490 14%, #ffffff); }
.sky-light .ts-rows span:nth-child(2) { background: color-mix(in srgb, #15803d 14%, #ffffff); }
/* the device's choice: the night scene cut on a slant over the day one */
.sky-system .sky-dark { z-index: 1; clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.theme-name { display: flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--white); font-weight: 600; }
.theme-name .ic { color: var(--accent); }
.theme-blurb { padding: 0 4px; font-size: 13px; color: var(--dim); }
.pic-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pic-actions { gap: 10px; flex: 1; min-width: 220px; }
.status-note-row { flex-wrap: nowrap; align-items: flex-end; }
.status-note-row .field { flex: 1; }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(var(--sel-rgb), 0.1); border: 1px solid var(--line); color: var(--mist); font-size: 13.5px; }
.notice strong { color: var(--white); }
.state-on, .state-off { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.state-on { color: var(--mint); }
.state-off { color: var(--dim); }
.session-list { list-style: none; margin: 0; padding: 0; }
.session { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.session > .ic { color: var(--dim); }
.session-text { flex: 1; display: grid; min-width: 0; }
.session-here { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--mint); }
/* notifications: the kinds down the side, email and browser across, a checkbox where they meet */
.nset-grid { width: 100%; border-collapse: collapse; }
.nset-grid th, .nset-grid td { padding: 9px 6px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.nset-grid thead th { border-top: 0; padding-top: 0; color: var(--dim); font-size: 12.5px; font-weight: 500; }
.nset-grid thead th + th, .nset-grid td { width: 72px; text-align: center; }
.nset-grid tbody th { padding-left: 0; font-weight: 400; }
.nset-kind { display: block; color: var(--text); }
.nset-about { display: block; color: var(--dim); font-size: 12.5px; }
.nset-grid input { width: 18px; height: 18px; margin: 3px; accent-color: var(--accent-d); cursor: pointer; vertical-align: middle; }
.nset-grid input:disabled { cursor: not-allowed; opacity: 0.45; }
.nset-when { display: grid; gap: 8px; }
.nset-when .row { gap: 8px; }
.nset-when strong { color: var(--text); font-weight: 500; }
.nset-what > .row-between { flex-wrap: nowrap; align-items: flex-start; }
.nset-saved { flex: none; font-family: var(--mono); }
.roles-head { align-items: flex-start; }
.roles-tools { justify-content: flex-end; }
.nset-teams { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.nset-head { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 2px; }
.nset-due-row { gap: 10px; }
.nset-due-about { padding-left: 26px; }  /* (under the time, past the checkbox) */
.small-time { width: auto; padding: 5px 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.nset-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nset-team { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
/* a team's Roles: the same grid, the permissions in groups, the owners' column always ticked */
.perm-grid .perm-group th { padding: 16px 0 4px; border-top: 0; color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: lowercase; }
.perm-grid tbody:first-of-type .perm-group th { padding-top: 4px; }
.perm-grid td[title] { cursor: help; }
@media (max-width: 600px) {
  .perm-grid thead th + th, .perm-grid td { width: 44px; padding-left: 0; padding-right: 0; }
  .perm-grid thead th { font-size: 11px; }
}
.qr-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
canvas.qr { width: 188px; height: 188px; border-radius: 10px; image-rendering: pixelated; flex: none; }
.qr-side { flex: 1; min-width: 200px; gap: 10px; }
.secret { display: block; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: rgba(var(--fg-rgb), 0.04); color: var(--white); font-family: var(--mono); font-size: 14px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 14px 18px 14px 40px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(var(--fg-rgb), 0.03); color: var(--white); font-size: 14px; }
.codes li::marker { color: var(--dim); }
/* the Studio plugin tab (settings.js studio): both panels across the page, so the token panel is always below the
   steps that point at it; the steps numbered in round mono tags; a new token, once, in a mint-washed well; a token's
   end amber within three days */
.settings-grid > .studio-get, .settings-grid > .studio-tokens { grid-column: 1 / -1; }
/* Get the plugin: the words and steps, and the plugin as it looks in Studio beside them when there's room (under
   them when there isn't), in the theme that's on */
.studio-get { display: grid; gap: 20px 36px; align-items: start; }
@media (min-width: 1180px) { .studio-get { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); } }
.studio-shot { margin: 0; display: grid; gap: 8px; justify-items: center; }
.studio-shot img { display: block; width: 100%; max-width: 760px; height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35)); }
.studio-shot .studio-shot-day, [data-theme="light"] .studio-shot .studio-shot-night { display: none; }
[data-theme="light"] .studio-shot .studio-shot-day { display: block; filter: drop-shadow(0 12px 26px rgba(24, 42, 56, 0.18)); }
.studio-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; max-width: 80ch; }
.studio-steps li { counter-increment: step; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; gap: 10px; color: var(--text); }
.studio-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font: 500 12px/1 var(--mono); }
.studio-steps code { padding: 1px 5px; border-radius: 5px; background: rgba(var(--fg-rgb), 0.05); color: var(--white); font-family: var(--mono); font-size: 12.5px; }
.studio-steps .studio-path { user-select: all; overflow-wrap: anywhere; }
.studio-steps .studio-copy { margin: 0 2px 0 6px; vertical-align: middle; }
.st-warn.studio-warn { margin-top: 0; }
.studio-fresh { display: grid; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); background: color-mix(in srgb, var(--mint) 7%, transparent); }
.studio-fresh .secret { user-select: all; }
.studio-name { overflow-wrap: anywhere; }
.studio-name strong { color: var(--white); }
.studio-hint { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.studio-ends.soon { color: var(--warn); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}
/* focus never lands under the pinned item column or the sticky toolbar */
.tbl-wrap { scroll-padding-left: calc(var(--handlew) + var(--namew)); }
@media (min-width: 761px) { .main:has(.btools) { scroll-padding-top: 120px; } }
@media (max-width: 760px) {
  .page, .board-page { padding-top: 18px; }
  .page-head h1, .bname { font-size: 22px; }
  .bsearch { width: 100%; }
  /* touch screens can't drag rows, so the handle shrinks to the group's colour edge and the names get the room */
  .tbl-wrap { --namew: 200px; --handlew: 10px; }
  .grip { display: none; }
  .tr.sub .td.name, .add-sub .td.add-cell { padding-left: 28px; }
  .sub-elbow { left: 12px; }
  .btools { position: static; }
  .bhead-people { display: none; }
  /* (a phone's menu has your picture at the foot of the sidebar, and its top bar the Inbox; the bell stays) */
  .bhead-me, .bhead-sep { display: none; }
  .btools-sep { display: none; }
  .search-wrap { flex: 1 1 160px; }
  .mw-row { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; padding-right: 10px; }
  .mw-st { font-size: 12px; }
  .member { grid-template-columns: 36px minmax(0, 1fr) auto 30px; row-gap: 4px; }
  .member-status { grid-column: 2 / 4; grid-row: 2; }
  .member-joined { display: none; }
  .member.pending { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .member.pending .btn { grid-column: 2 / -1; justify-self: start; }
  .member.guest { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .member.guest .guest-boards { grid-column: 2 / -1; grid-row: 2; }
  .member.guest > .role { display: none; }
  .dr-field { grid-template-columns: 120px minmax(0, 1fr); }
  .dr-scroll { padding: 16px 16px 40px; }
  .codes { grid-template-columns: 1fr; }
  .lane { flex-basis: 260px; }
  .note-row { grid-template-columns: 20px minmax(0, 1fr) 10px; }
  .note-when { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* a card's planned update (aims.js): a quiet chip by its name, the update's name and its day; red, with its lateness
   in words, once the day's passed and it isn't done, or once the update went out without it ("Missed") */
.aim-chip { display: inline-flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; max-width: 46%; min-height: 20px; padding: 0 7px; border-radius: 6px;
  background: rgba(var(--fg-rgb), 0.05); color: var(--mist); font-size: 12px; white-space: nowrap; overflow: hidden; }
.aim-chip .ic { flex: none; color: var(--dim); }
.aim-chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aim-chip-d { flex: none; color: var(--dim); }
.aim-chip.done { opacity: 0.7; }
.aim-chip.late { color: var(--late); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--late) 40%, transparent); background: none; }
.aim-chip.late .ic, .aim-chip.late .aim-chip-d { color: var(--late); }
.kcard-meta .aim-chip { max-width: 100%; }
.td.name:has(.aim-chip) .iname { min-width: 72px; }
.kcard-meta .aim-chip .ic { margin-right: 0; vertical-align: 0; }
/* (a group's: it gives way before the group's name does) */
.grp-aim { flex-shrink: 4; min-width: 92px; margin-left: 8px; max-width: 260px; border: 0; font-family: inherit; }
.grp-head .grp-h { flex-shrink: 1; min-width: 7ch; }
button.grp-aim { cursor: pointer; }
button.grp-aim:hover { background: rgba(var(--fg-rgb), 0.09); }
button.grp-aim.late:hover { background: color-mix(in srgb, var(--late) 8%, transparent); }
@media (max-width: 560px) {
  .td.name .aim-chip .aim-chip-t, .grp-aim .aim-chip-t { display: none; }
  /* (room for the group's name beside its chip: Duplicate is in its menu too; with two, they go under it) */
  .grp-head:has(.grp-aim) .grp-dup { display: none; }
  .grp-head:has(.grp-aim + .grp-aim) { flex-wrap: wrap; row-gap: 4px; }
  .grp-head:has(.grp-aim + .grp-aim) .grp-h { flex: 1 1 calc(100% - 40px); }
}
