/* Tasks: the index and table, the board (runeui's), status dots and the owner picker, bulk, work
/* on a record's page.
/* Unlayered, so these win over runeui's layers; on runeui's tokens (appearance.css, docs/theming.md).
/*
/* 1 Status colours and dots   2 Pickers (status, owners)   3 The table   4 The board (runeui's,
/* its cards and a column's own page)   7 Work on a record's page   8 Copy for AI */

/* ======================================================================= 1 Status colours and dots */

/* Each status's colour, shared by its dot and its board column: yellow, green and red steps of
/* their own (runeui's tokens have no palette steps), a shade lighter in dark. */
:root {
  --task-planned: var(--faint-foreground);
  --task-in-progress: light-dark(oklch(74% 0.184 70), oklch(62.1% 0.146 70));
  --task-in-review: light-dark(oklch(66% 0.208 146), oklch(62% 0.1261 146));
  --task-blocked: light-dark(oklch(66% 0.204 40), oklch(62% 0.154 40));
  --task-done: var(--primary);
}

/* A task's status as Linear draws it (tasks/_status_dot): a ring that fills as work moves on.
/* Planned is an empty grey ring, in progress half full, in review three quarters, blocked a full
/* disc, done the accent with a check. Sized in em, so it follows the text around it. */
.status-dot {
  --status-dot-color: var(--task-planned);
  --status-dot-fill: 0%;

  position: relative; display: inline-block; flex: 0 0 auto; width: .95em; height: .95em; padding: 1.5px;
  border: 1.5px solid var(--status-dot-color); border-radius: 50%;
  background: conic-gradient(var(--status-dot-color) var(--status-dot-fill), transparent 0) content-box;
  vertical-align: middle;
}
.status-dot--in-progress { --status-dot-color: var(--task-in-progress); --status-dot-fill: 50%; }
.status-dot--in-review { --status-dot-color: var(--task-in-review); --status-dot-fill: 75%; }
.status-dot--blocked { --status-dot-color: var(--task-blocked); --status-dot-fill: 100%; }
.status-dot--done { --status-dot-color: var(--task-done); padding: 0; background: var(--status-dot-color); }
.status-dot--done::after {
  content: ""; position: absolute; inset: .1em auto auto .3em; width: .22em; height: .45em;
  border: solid var(--primary-foreground); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

/* ======================================================================= 2 Pickers (status, owners) */

/* The small in-place pickers on work rows (and a client's status): a trigger with its popup
/* (components.css) under it, or pinned beside it by fixed-popup. */
/* A flex box centred on the line, not an inline block on the text's baseline: the baseline left a
/* descender's gap under the owners' avatars and the status dot, so Work's rows stood a few pixels
/* taller than every other table's. */
.row-picker { display: inline-flex; vertical-align: middle; }

/* The pickers' menus, on the page once (task_picker_menus, client_status_menu): runeui's menu,
/* combobox and popover, each row a dot or a face, its name, and a check on what's current. */
/* Their roots take no room where they sit (the side panel draws its own beside its status). */
ui-combobox.picker-menu { display: contents; }
.picker-menu__label { flex: 1; min-width: 0; }
.picker-menu__check { display: none; margin-inline-start: auto; color: var(--muted-foreground); }
[data-picker-current] { font-weight: 500; }
[data-picker-current] .picker-menu__check { display: block; }
.picker-form { display: none; }

/* The status picker's trigger: the dot in a round hover target; labelled (the task's page), a
/* pill with the status's name beside the dot. The dot's wrapper is what picker swaps. */
.status-dot-picker__dot { display: contents; }
.status-dot-picker__trigger {
  display: inline-grid; place-items: center; padding: .35em; border: 0; border-radius: 50%;
  background: none; color: inherit; font-size: 1rem; cursor: pointer; transition: background-color 80ms ease-out;
}
.status-dot-picker__trigger:hover { background: var(--ui-ghost-hover); }
.status-dot-picker__trigger:has(.status-dot-picker__label) {
  grid-auto-flow: column; gap: .25rem; padding-inline: .5em .7em; border-radius: var(--ui-radius-full); font: inherit;
}
.status-dot-picker__trigger:has(.status-dot-picker__label):hover { background: var(--muted); }
.status-dot-picker__label { white-space: nowrap; }

/* The owners picker's trigger: the avatars (or a dashed circle for nobody), with the names when
/* labelled. The lead's avatar sits on top of the others. */
.owner-picker__trigger {
  display: inline-flex; align-items: center; gap: .25rem; max-width: 14em; padding: .15em;
  border: 0; border-radius: var(--ui-radius-full); background: none; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.owner-picker__trigger:hover { background: var(--muted); }
.owner-picker__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-picker__empty {
  display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem;
  border: 1px dashed var(--input); border-radius: 50%; color: var(--faint-foreground);
}
.owner-picker__empty .icon { width: .8rem; height: .8rem; }
.owner-picker__empty[hidden] { display: none; }
.owner-picker__stack { display: contents; }
.owner-stack { flex: 0 0 auto; vertical-align: middle; }
.owner-stack > :first-child { position: relative; z-index: 1; }

/* The list of the team: each with their picture, Out when away on the due date, and a hint at
/* the foot. */
.owner-menu [data-slot="combobox-item"] { gap: .5rem; }
.owner-menu [data-slot="combobox-item"] [data-slot="avatar"] { --avatar-size: 1.25rem; }
.owner-menu [data-slot="combobox-item-text"] { flex: 1; min-width: 0; }
.owner-picker__hint { margin: 0; padding: .25rem .5rem; color: var(--muted-foreground); font-size: var(--ui-text-xs); }

/* The due date's calendar, with Today and No date under it. */
.due-menu [data-slot="popover-content"] { padding: .5rem; }
.due-menu__foot { display: flex; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.due-menu__foot > * { flex: 1; }

/* ======================================================================= 3 The table */

/* A piece of work's ref in its cell: plain ink, the accent under the pointer. */
.task-table__work { color: var(--foreground); text-decoration: none; }
.task-table__work:hover { color: var(--primary); }

/* A due date with Overdue beside it. */
.task-due { display: inline-flex; align-items: center; gap: .5rem; }
/* Changed in place: the date is a quiet button, as wide as its words, that opens the calendar. */
.task-due__button {
  height: var(--ui-h-sm); margin-inline-start: -6px; padding: 0 6px; border: 1px solid transparent; border-radius: var(--ui-radius-md);
  background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer;
}
.task-due__button:is(:hover, :focus-visible, [aria-expanded="true"]) { border-color: var(--input); background: var(--background); }
.task-due__button[data-empty] { color: var(--faint-foreground); }

/* ======================================================================= 4 The board */

/* The Tasks board (tasks/board/*): runeui's board (ui :board), a column per status. runeui draws
/* the lanes, cards, dragging and folding; what's here is Runwell's own inside it: the lanes' width
/* and height, the cards' lines, and phones. */
.task-board { --ui-board-column-width: 20rem; --ui-board-height: calc(100dvh - 9rem); min-height: 20lh; }
.task-board [data-slot="board-column-header"] { min-height: var(--ui-h); }
/* runeui's lane tint over the panel, so nothing under a lane shows through it (a phone's second
/* row of filters runs under the board). */
.task-board [data-slot="board-column"] { background-color: var(--background); background-image: linear-gradient(color-mix(in oklab, var(--muted) 60%, transparent) 0 0); }
.task-board [data-slot="board-column"][data-drop] { background-image: linear-gradient(var(--muted) 0 0); }
.task-board [data-slot="board-column-title"] { font-size: var(--ui-text-sm); font-weight: 500; }
.task-board [data-slot="board-card"][data-keyboard-current] { border-color: var(--primary); }
.task-board .task-board__more { display: block; padding: .5rem; }
/* Each column's dot in its status's colour (task_column_tone), as the status dots are. */
.task-board [data-slot="board-column-dot"] { width: .625rem; height: .625rem; }
.task-board [data-tone="planned"] [data-slot="board-column-dot"] { box-shadow: inset 0 0 0 1.5px var(--task-planned); background: none; }
.task-board [data-tone="in-progress"] [data-slot="board-column-dot"] { background: var(--task-in-progress); }
.task-board [data-tone="in-review"] [data-slot="board-column-dot"] { background: var(--task-in-review); }
.task-board [data-tone="blocked"] [data-slot="board-column-dot"] { background: var(--task-blocked); }
.task-board [data-tone="done"] [data-slot="board-column-dot"] { background: var(--task-done); }

/* A card (tasks/display/_preview): its work and client on a faint line, the title, then the due
/* date and the people on it. */
.task-card [data-slot="board-card-meta"] { display: flex; align-items: center; gap: .5rem; min-width: 0; order: -1; }
.task-card__ref { flex: none; color: var(--muted-foreground); font-weight: 500; }
.task-card__client { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card [data-slot="board-card-footer"] { justify-content: space-between; }
.task-card [data-slot="board-card-footer"]:not(:has([data-slot="badge"], .avatar, .agent-made, [data-slot="avatar"])) { display: none; }
.task-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.task-card__people [data-slot="avatar"], .task-card__people .avatar { width: 1.375rem; height: 1.375rem; }

/* A column on a page of its own (tasks/columns/show): its cards in a grid across the page. */
.task-board--single { --ui-board-height: none; }
.task-board--single [data-slot="board-column"] { flex: 1 1 auto; }
.task-board--single [data-slot="board-list"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); align-items: stretch; overflow: visible; }

/* Phones: one lane to a screen, snapping into place, each scrolling on its own under the bar
/* (the index sets body.contained-scrolling for the board). */
@media (max-width: 639px) {
  .task-board { --ui-board-column-width: calc(100vw - 4rem); scroll-snap-type: x mandatory; }
  body.contained-scrolling [data-slot="app-inset"] { height: 100dvh; min-height: 0; }
  body.contained-scrolling #main { flex: 1 1 auto; min-height: 0; padding-bottom: 1rem; }
  body.contained-scrolling .task-board { flex: 1 1 auto; min-height: 0; --ui-board-height: 100%; }
}

/* ======================================================================= 7 Work on a record's page */

/* A piece of work in a record's list (record-list, records.css): the status circle leads, like a
/* task list's checkbox, and the title underlines under the pointer. */
.task-item .status-dot-picker__trigger { margin-left: calc(-1 * .25rem); }
.task-item .record-list__main:hover .record-list__title {
  text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 4px;
}

/* A piece of work's work (tasks/_section), grouped by scope item: the groups sit close, a rule
/* between them, each under a header of its name, "done of total" and its delivery state. */
.task-groups { display: flex; flex-direction: column; }
.task-group { display: flex; flex-direction: column; }
.task-group + .task-group { border-top: 1px solid var(--border); }
.task-group__header { display: flex; align-items: center; gap: .75rem; padding-block: 1rem .25rem; }
.task-group:first-child .task-group__header { padding-top: 0; }
.task-group__name {
  flex: 1; min-width: 0; overflow: hidden; color: var(--foreground); font-size: var(--ui-text-sm); font-weight: 500;
  text-decoration: none; text-overflow: ellipsis; white-space: nowrap;
}
a.task-group__name:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }
.task-group__count { color: var(--muted-foreground); font-size: var(--ui-text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* One scope item's work alone: the item as an outlined row over its work. */
.task-focus.item-row { border: 1px solid var(--border); border-radius: var(--ui-radius-lg); }
.task-focus__title { font-size: var(--ui-text-sm); }
.task-focus__count { font-variant-numeric: tabular-nums; }


/* ======================================================================= 8 Copy for AI */

/* tasks/_ai_brief: the AI mark in the accent; once copied, a tooltip says so and fades. */
.ai-brief { position: relative; }
.ai-brief .icon { color: var(--primary); }
.ai-brief--copied::after {
  content: "Copied"; position: absolute; inset: auto auto calc(100% + .25rem) 50%; transform: translateX(-50%); z-index: 5;
  padding: 6px .75rem; border-radius: var(--ui-radius-sm); background: var(--foreground); color: var(--background);
  font-size: var(--ui-text-xs); font-weight: 400; line-height: 1rem; white-space: nowrap; pointer-events: none;
  animation: ai-brief-copied 1.6s ease forwards;
}
@keyframes ai-brief-copied {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

/* A piece of work's Work card: the Open / Done / All filter beside the List / Board switch. */
.task-section__actions { display: flex; align-items: center; gap: .5rem; }

/* ======================================================================= The side panel */

/* A task (tasks/_panel) or a peek (<type>/_peek) in runeui's side panel (ui :side_panel, in
/* layouts/shared/_side_panel), which slides it in down the right edge and scrolls it; full width
/* on a phone. What's here is the content's own layout. */
.task-panel { display: flex; flex-direction: column; gap: 1rem; }
#runeui-side-panel [data-side-panel-content] { width: min(34rem, 100vw); }
@media (max-width: 639px) { #runeui-side-panel [data-side-panel-content] { width: 100vw; } }

.task-panel__header { display: flex; align-items: center; gap: .5rem; }
.task-panel__context { flex: 1; min-width: 0; overflow: hidden; color: var(--muted-foreground); font-size: var(--ui-text-xs); text-overflow: ellipsis; white-space: nowrap; }
.task-panel__context a { color: inherit; }
.task-panel__actions { display: flex; align-items: center; gap: 2px; }
.task-panel__title-form { gap: 0; }
.task-panel__title { width: 100%; padding: .25rem .5rem; margin-inline: calc(.5rem * -1); border-color: transparent; background: none; box-shadow: none; font-size: 1.25rem; font-weight: 500; }
.task-panel__title:hover { border-color: var(--border); }
.task-panel__title:focus { border-color: var(--input); background: var(--background); }
.task-panel__details dd { min-width: 0; }
.task-panel__field { flex-direction: row; gap: 0; }
.task-panel__field :is(select, .date-picker) { max-width: 16rem; }
.task-panel__description { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.task-panel .record-card { box-shadow: none; }

/* The Tasks table's list context (data-task-list for status changes): no box of its own. */
.task-list { display: contents; }
/* The description (record_fields/task/description) takes the panel's full width under its label. */
.task-panel__details dd.record-fields__prose { grid-column: 1 / -1; }
.task-panel__title--static { margin: 0; padding: 0; }

/* A task whose new status takes it out of the list it's in (picker controller): it fades at once,
   before the answer removes it. */
.task-leaving { opacity: .4; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .task-leaving { transition: none; } }

/* A section's quick add (tasks/quick_add): the line under its list, drawn as one more task row
   being typed: its + sits where a task's status dot does (the same box: the dot, its padding and the
   trigger's), and what's typed starts where titles start, in their weight. No hover or focus
   fill; the + takes the accent while it's being typed in. */
.task-quick-add__form { flex-direction: row; align-items: center; gap: .75rem; padding-block: .5rem; }
.task-quick-add__icon {
  flex: none; box-sizing: content-box; width: calc(.95rem + 3px); height: calc(.95rem + 3px); padding: .35rem;
  margin-left: calc(-1 * .25rem); color: var(--faint-foreground);
}
.task-quick-add__input {
  flex: 1; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--foreground); font: inherit; font-weight: 500;
}
.task-quick-add__input::placeholder { color: var(--faint-foreground); font-weight: 400; }
.task-quick-add__input:focus, .task-quick-add__input:focus-visible { outline: none; box-shadow: none; }
.task-quick-add__form:focus-within .task-quick-add__icon { color: var(--primary); }
.task-quick-add__hint { visibility: hidden; }
.task-quick-add__form:focus-within .task-quick-add__hint { visibility: visible; }

/* A task row's title and details open the side panel through the title's link, stretched over
   both; the ↗ after the title sits above it and goes to the task's own page, showing while the row
   is pointed at or focused (always on touch). */
.task-item__main { position: relative; }
.task-item__heading { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.task-item__link { color: inherit; text-decoration: none; }
.task-item__link::after { content: ""; position: absolute; inset: 0; }
.task-item__open {
  position: relative; z-index: 1; display: inline-grid; flex: none; place-items: center; padding: 2px;
  border-radius: var(--ui-radius-md); color: var(--faint-foreground); opacity: 0; transition: opacity 80ms ease-out;
}
.task-item__open .icon { width: .9rem; height: .9rem; }
.task-item__open:hover { background: var(--ui-ghost-hover); color: var(--foreground); }
.task-item:hover .task-item__open, .task-item:focus-within .task-item__open, .task-item[data-keyboard-current] .task-item__open { opacity: 1; }
@media (hover: none) { .task-item__open { opacity: 1; } }

/* A task an agent added (agent_made_tag): the AI icon after its title, the agent named in its
   tooltip, or beside it in the side panel's context line. */
.agent-made { display: inline-flex; flex: none; align-items: center; gap: .25rem; color: var(--primary); vertical-align: -0.15em; }
.agent-made .icon { width: .9rem; height: .9rem; }
.agent-made--label { margin-inline-start: .5rem; color: var(--muted-foreground); vertical-align: baseline; }
.agent-made--label .icon { color: var(--primary); }

/* Whose agent did it, in AI activity: the person's avatar with the AI mark on its corner. */
.agent-actor { position: relative; display: inline-flex; }
.agent-actor__mark { position: absolute; inset-block-end: -3px; inset-inline-end: -5px; width: .75rem; height: .75rem; padding: 1px; border-radius: 50%; background: var(--background); color: var(--primary); }

/* Intake (intakes/show): where each thing came from, an avatar and a word; None yet, for a task on
   no piece of work, opens it to be filed. */
.intake-source { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.intake-source__word { overflow: hidden; color: var(--muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.intake__home { display: inline-flex; gap: .25rem; min-width: 0; max-width: 100%; white-space: nowrap; }
.intake__home .muted { overflow: hidden; text-overflow: ellipsis; }
.intake__file { flex: none; color: var(--faint-foreground); }
.intake__decide { display: inline-flex; align-items: center; gap: .25rem; }
/* With no row left (the last decided, by stream), the table goes and the empty state shows. */
.intake:has(.intake-row) .intake__empty, .intake:not(:has(.intake-row)) .list-table { display: none; }
.task-panel__intake-slot:empty { display: none; }

/* Decline's pop-up (intakes/_decline): a line for why and the button, beside the ✕ and within
   the row's height, so a table's scrolling frame never grows to fit it. */
.intake-decline { position: relative; }
.intake-decline > summary { list-style: none; cursor: pointer; }
.intake-decline > summary::-webkit-details-marker { display: none; }
.intake-decline__form { position: absolute; z-index: 20; inset-block-start: 50%; inset-inline-end: calc(100% + .25rem); transform: translateY(-50%); flex-direction: row; align-items: center; gap: .5rem; width: 20rem; padding: .25rem; border: 1px solid var(--border); border-radius: var(--ui-radius-xl); background: var(--background); box-shadow: 0 0 0 1px var(--border), var(--ui-shadow-lg); }
.intake-decline__form input { flex: 1; min-width: 0; }

/* The side panel's Intake bar: Accept and Decline beside "Waiting in Intake". */
.task-panel__intake { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: var(--ui-radius-xl); background: var(--brand-tint); }
.task-panel__intake-text { flex: 1; color: var(--muted-foreground); font-size: var(--ui-text-xs); }
.intake__file:hover { color: var(--primary); }

/* Someone away on the task's due date (picker controller, Runwell::Plugins.away): Out beside them. */
.owner-picker__away { display: none; padding: 0 .35rem; border-radius: var(--ui-radius-full); background: color-mix(in oklab, var(--warning) 18%, transparent); color: var(--warning); font-size: var(--ui-text-xs); font-weight: 500; }
[data-away-on-due] .owner-picker__away { display: inline-block; }

/* A client, a piece of work or a contact peeked at in the side panel (<type>/_peek): the task
   panel's frame, its title changed in place, then its fields, open tasks and notes. */
.peek-panel .record-title-form .page-title { font-size: 1.25rem; }
.peek-panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--muted-foreground); font-size: var(--ui-text-xs); }
/* What a peek is and, on the same row, something worth a glance (a client's status). */
.task-panel__header--meta .task-panel__context { flex: 0 1 auto; }
.task-panel__meta { display: flex; flex: 1; align-items: center; min-width: 0; }
/* A peek's fields read as values, the label beside each, and become inputs when pointed at or
   focused (the title's own way, .task-panel__title); a hint shows while its field is being
   changed. Rich text keeps its editor, under its label. */
.peek-panel .record-fields--in-place { gap: 2px; }
.peek-panel .record-fields--in-place [data-slot="field"] { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; column-gap: .75rem; min-height: var(--ui-h); }
.peek-panel .record-fields--in-place [data-slot="field"] :is(.field__label, [data-slot="field-label"]) { color: var(--muted-foreground); font-weight: 400; }
.peek-panel .record-fields--in-place [data-slot="field"] :is(.field__hint, [data-slot="field-description"]) { grid-column: 2; display: none; padding-inline: .5rem; }
.peek-panel .record-fields--in-place [data-slot="field"]:focus-within :is(.field__hint, [data-slot="field-description"]) { display: block; }
.peek-panel .record-fields--in-place [data-slot="field"]:has(lexxy-editor) { grid-template-columns: minmax(0, 1fr); row-gap: .25rem; padding-block: .25rem; }
/* Its controls (an input, a select's or combobox's button, a date) read as their value, with
/* their chevron or calendar showing once pointed at, focused or open. */
.peek-panel .record-fields--in-place [data-slot="field"] :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), [data-slot="select-trigger"], [data-slot="combobox-trigger"][data-picker], [data-slot="date-picker-control"]) { border-color: transparent; background: none; box-shadow: none; padding-inline: .5rem; }
.peek-panel .record-fields--in-place [data-slot="field"] [data-slot="date-picker-control"] input[data-slot="date-picker-input"] { padding: 0; }
.peek-panel .record-fields--in-place [data-slot="field"] :is([data-slot="select-trigger"], [data-slot="combobox-trigger"][data-picker], [data-slot="date-picker-control"]) :is(.ui-select-icon, .ui-icon) { opacity: 0; }
.peek-panel .record-fields--in-place [data-slot="field"] :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), [data-slot="select-trigger"], [data-slot="combobox-trigger"][data-picker], [data-slot="date-picker-control"]):hover { border-color: var(--border); }
.peek-panel .record-fields--in-place [data-slot="field"] input:not([type="checkbox"], [type="radio"], [type="hidden"]):focus,
.peek-panel .record-fields--in-place [data-slot="field"] :is([data-slot="select-trigger"], [data-slot="combobox-trigger"][data-picker], [data-slot="date-picker-control"]):is(:focus-visible, :focus-within, [aria-expanded="true"]) { border-color: var(--input); background: var(--background); }
.peek-panel .record-fields--in-place [data-slot="field"] :is([data-slot="select-trigger"], [data-slot="combobox-trigger"][data-picker], [data-slot="date-picker-control"]):is(:hover, :focus-visible, :focus-within, [aria-expanded="true"]) :is(.ui-select-icon, .ui-icon) { opacity: 1; }
.peek-panel .record-fields--in-place [data-slot="field"] input::placeholder { color: var(--faint-foreground); }
/* A switch: its label where the others' are, the switch where their values are, its hint dropped. */
.peek-panel .record-fields--in-place .switch-field { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; column-gap: .75rem; min-height: var(--ui-h); }
.peek-panel .record-fields--in-place .switch-field [data-slot="field-label"] { color: var(--muted-foreground); font-weight: 400; }
.peek-panel .record-fields--in-place .switch-field [data-slot="field-description"] { display: none; }
.peek-panel .record-fields--in-place .switch-field ui-switch { justify-self: start; margin-left: .5rem; }
.peek-panel__section { display: flex; flex-direction: column; gap: .5rem; }
.peek-panel__heading { margin: 0; color: var(--muted-foreground); font-size: var(--ui-text-xs); font-weight: 500; }
.peek-panel__more { font-size: var(--ui-text-xs); line-height: 1rem; }

/* Intake > Schedule (intakes/shifts): a line per person, its pickers wrapping beside the avatar. */
.intake-schedule { display: flex; flex-direction: column; gap: 1rem; max-width: 72rem; }
.intake-schedule__body { display: flex; flex-direction: column; gap: .75rem; }
.intake-schedule__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.intake-schedule__list:empty { display: none; }
.intake-schedule__add { flex-direction: row; align-items: center; gap: .5rem; max-width: 32rem; }
.intake-shift { align-items: flex-end; }
.intake-shift__form { flex: 1; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .75rem; min-width: 0; }
.intake-shift__field { display: flex; flex-direction: column; gap: .25rem; width: auto; min-width: 7rem; }
