/* hivemind's one page: a honeycomb of agents in a meadow, after Adventure Time's end credits. A flat
   yellow-green field with grass tufts, hexagons drawn by hand in flat yellows (brightest for working,
   dimmer for waiting and idle) with faces, names hand-lettered;
   at night (dark mode) the meadow goes deep green and the lit hexagons glow like lanterns. */

:root {
  --bg: #d3e858;
  --glow: #ddf270;
  --tuft: #6d8d28;
  --panel: #fffcd5;
  --raised: #fffeef;
  --inset: #f3eec0;
  --text: #141408;
  --muted: #5c612d;
  --line: #e4dea8;
  --line-strong: #c9c58e;
  --honey: #e59a00;
  --honey-soft: #fbf0a6;
  --teal: #2f6fae;
  --danger: #b4321f;

  --hex-working: #fef55b;
  --hex-waiting: #f5ec9a;
  --hex-idle: #f1ecc6;
  --hex-ended: #c9cf9a;
  --hex-line: #141408;
  --hex-ink-working: #141408;
  --hex-ink: #141408;
  --hex-ink-muted: #5c612d;
  --hex-ink-ended: #5f6640;
  --hex-ring: #8a874c;
  --hex-ghost: rgba(60, 67, 25, 0.35);
  --hex-select: #141408;
  /* How strongly lit agents glow: lanterns, at night only. */
  --hex-halo: 0;
  --arc: #3f7fcf;
  /* The bee that carries a message along its trail: flat colour, as in the credits. */
  --bee: #fef55b;
  --bee-ink: #141408;
  --bee-stripe: #8a874c;
  --bee-edge: #a9a35a;
  --bee-wing: #fffcd5;
  --bee-cheek: #f3a99c;
  /* The earmuffs on the face of someone who wants hivemind to pass nothing to their agents: pink by day and night. */
  --earmuff: #f58fb4;
  --earmuff-light: #ffd6e4;
  --earmuff-ink: #7a2348;
  /* The dot on a hexagon whose agent has messages queued for it, like a phone's unread badge. */
  --queued: #e5432a;
  /* The name tag on the hover card. */
  --tag: #f2a65a;
  --tag-ink: #2b1a05;

  --sans: Nunito, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14231c;
    --glow: #1d3427;
    --tuft: #2f4a2c;
    --panel: #1d2a22;
    --raised: #24332a;
    --inset: #17241d;
    --text: #f4f1c9;
    --muted: #a9b38f;
    --line: #2f4034;
    --line-strong: #45584a;
    --honey: #ffc83d;
    --honey-soft: #3d3a17;
    --teal: #8fd1ff;
    --danger: #ff8a76;

    --hex-working: #ffe66b;
    --hex-waiting: #b8a64c;
    --hex-idle: #4f4c2d;
    --hex-ended: #222e27;
    --hex-line: #e9e6b8;
    --hex-ink-working: #1d1a08;
    --hex-ink: #f4f1c9;
    --hex-ink-muted: #b9c29d;
    --hex-ink-ended: #7d8a76;
    --hex-ring: #e9e6b8;
    --hex-ghost: rgba(233, 230, 184, 0.22);
    --hex-select: #fef55b;
    --hex-halo: 0.16;
    --arc: #8fd1ff;
    --bee: #ffe66b;
    --bee-ink: #141408;
    --bee-stripe: #8a874c;
    --bee-edge: #c9c58e;
    --bee-wing: #fffcd5;
    --bee-cheek: #f3a99c;
    /* The earmuffs on the face of someone who wants hivemind to pass nothing to their agents: pink by day and night. */
    --earmuff: #f58fb4;
    --earmuff-light: #ffd6e4;
    --earmuff-ink: #7a2348;
    --queued: #ff5a40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14231c;
  --glow: #1d3427;
  --tuft: #2f4a2c;
  --panel: #1d2a22;
  --raised: #24332a;
  --inset: #17241d;
  --text: #f4f1c9;
  --muted: #a9b38f;
  --line: #2f4034;
  --line-strong: #45584a;
  --honey: #ffc83d;
  --honey-soft: #3d3a17;
  --teal: #8fd1ff;
  --danger: #ff8a76;

  --hex-working: #ffe66b;
  --hex-waiting: #b8a64c;
  --hex-idle: #4f4c2d;
  --hex-ended: #222e27;
  --hex-line: #e9e6b8;
  --hex-ink-working: #1d1a08;
  --hex-ink: #f4f1c9;
  --hex-ink-muted: #b9c29d;
  --hex-ink-ended: #7d8a76;
  --hex-ring: #e9e6b8;
  --hex-ghost: rgba(233, 230, 184, 0.22);
  --hex-select: #fef55b;
  --hex-halo: 0.16;
  --arc: #8fd1ff;
  --bee: #ffe66b;
  --bee-ink: #141408;
  --bee-stripe: #8a874c;
  --bee-edge: #c9c58e;
  --bee-wing: #fffcd5;
  --bee-cheek: #f3a99c;
  /* The earmuffs on the face of someone who wants hivemind to pass nothing to their agents: pink by day and night. */
  --earmuff: #f58fb4;
  --earmuff-light: #ffd6e4;
  --earmuff-ink: #7a2348;
  --queued: #ff5a40;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Agents write paths, URLs and hashes with no spaces: in every box on the page, a word too long for its line
     breaks wherever it must instead of running past the edge. Lines kept whole (nowrap, pre) are unaffected. */
  overflow-wrap: anywhere;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono, code { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Header ---- */

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg);
  position: relative;
  z-index: 3;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 400 27px/1 var(--display); }
.brand svg, .signin svg { width: 24px; height: 24px; }
/* The logo is a working agent's hexagon as the honeycomb draws one: its fill, an outline in the
   honeycomb's pen for one this size (comb.js's pen at small sizes, 1.3px), its face in its ink,
   and at night the glow behind it. */
.brand svg .halo, .signin svg .halo { fill: var(--hex-working); opacity: var(--hex-halo); }
.brand svg path, .signin svg path { fill: var(--hex-working); stroke: var(--hex-line); stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.brand svg .inner, .signin svg .inner { fill: var(--hex-ink-working); }
.brand svg .smile, .signin svg .smile { fill: none; stroke: var(--hex-ink-working); stroke-width: 1.7; vector-effect: none; stroke-linecap: round; }
/* Large on the sign-in page, its outline is as thick as its smile. */
.signin svg path { stroke-width: 1.7; vector-effect: none; }

.filters { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.choices { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 260px; max-width: 440px; min-width: 0;
  padding: 0 10px; height: 36px;
  background: var(--raised); border: 1.5px solid transparent; border-radius: 999px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--tuft) 45%, transparent);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--honey); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 22%, transparent); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; }
.search kbd { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.search input:not(:placeholder-shown) + kbd { display: none; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px;
  background: color-mix(in srgb, var(--panel) 55%, transparent); border: 1.5px solid transparent; border-radius: 999px;
  color: var(--text); cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--hex-ring); }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.75; }
.chip.on, .chip[aria-pressed="true"] { background: var(--panel); color: var(--text); border-color: var(--hex-line); }
select {
  height: 30px; max-width: 170px; padding: 0 26px 0 11px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23998a70' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 9px;
  background-color: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1.5px solid transparent; border-radius: 999px; appearance: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text);
}
select.set { background-color: var(--panel); border-color: var(--hex-line); }
select option { background: var(--panel); color: var(--text); }
.more { display: none; }

.end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.live.on i { background: var(--teal); }
.live.on i.pulse { animation: beat 1.6s ease-out; }
.live.lost { color: var(--honey); }
.live.lost i { background: var(--honey); }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
/* The signed-in person's Honey, opening everyone's. */
.head-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px 0 9px;
  background: color-mix(in srgb, var(--panel) 55%, transparent); border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.head-chip:hover, .head-chip[aria-current="page"] { border-color: var(--hex-line); background: var(--panel); }
.head-chip svg { width: 16px; height: 16px; fill: var(--honey); stroke: var(--hex-line); stroke-width: 1.4; stroke-linejoin: round; }
.head-chip b { font: 400 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.me-button {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--hex-line);
  background: var(--honey-soft); font: 600 12px var(--sans); cursor: pointer; letter-spacing: 0.02em;
}
.me-button:hover { border-color: var(--honey); }
/* Not clipped: earmuffs reach past the ring, and the face's picture is round of itself. */
.me-button { display: grid; place-items: center; padding: 0; overflow: visible; }
/* The face fills the ring's inside exactly: one sized by its em would overflow it and sit off to the bottom right. */
.me-button .face { font-size: 23.5px; width: 100%; height: 100%; margin: 0; background: none; }

/* A person's face before their name, sized by its text: the initials show where the picture is missing or broken (a broken image with no alt takes no room). */
.face {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 1.45em; height: 1.45em; border-radius: 50%; margin-right: 0.35em; vertical-align: middle; margin-top: -0.2em;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.face::before { content: attr(data-initials); font: 600 0.55em/1 var(--sans); letter-spacing: 0; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Earmuffs over the face of someone with earmuffs on: they reach EARMUFFS_REACH (lib.js) past the circle on every side. */
.face .earmuffs { position: absolute; inset: -28%; width: 156%; height: 156%; overflow: visible; pointer-events: none; }
/* A person's name links to their panel, quietly: it reads as the text around it until hovered. */
a.person { color: inherit; text-decoration: none; white-space: nowrap; }
a.person:hover { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 2px; }

body.signed-out .filters, body.signed-out .end, body.signed-out .corner { display: none; }

/* ---- The honeycomb ---- */

.layout { flex: 1; display: flex; min-height: 0; position: relative; }
.stage {
  flex: 1; position: relative; min-width: 0; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--glow), var(--bg) 80%);
  touch-action: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.comb-arcs { cursor: grab; }
.stage.dragging .comb-arcs { cursor: grabbing; }

.comb-tip {
  position: absolute; z-index: 2; pointer-events: none;
  max-width: 300px; padding: 4px 14px 11px; margin-top: 12px;
  background: var(--panel); border: 2px solid var(--line-strong); border-radius: 20px 22px 18px 20px;
  box-shadow: 0 10px 24px -12px rgba(30, 36, 8, 0.45);
  font-size: 12.5px;
}
.tip-name {
  display: inline-block; max-width: 100%; margin: -16px 0 4px -6px; padding: 2px 12px 1px; transform: rotate(-3deg);
  background: var(--tag); color: var(--tag-ink); border-radius: 999px; font: 400 18px/1.15 var(--display);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tip-name .muted { color: inherit; opacity: 0.65; }
/* The agent's state, then its owner: a name too long to follow the state on its line goes below it, so neither is squeezed. */
.tip-meta { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; }
.tip-state { white-space: nowrap; }
.tip-state .dot { margin-right: 6px; }
.tip-owner { min-width: 0; overflow-wrap: anywhere; }
.tip-where { color: var(--muted); margin-top: 4px; }
.tip-doing { margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--hex-ink-ended); }
.dot.working { background: var(--hex-working); }
.dot.waiting { background: var(--hex-waiting); box-shadow: inset 0 0 0 1.5px var(--honey); }
.dot.idle { background: var(--hex-idle); box-shadow: inset 0 0 0 1.5px var(--hex-ring); }

.corner { position: absolute; z-index: 1; display: flex; gap: 6px; }
.legend {
  left: 16px; bottom: 16px; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 8px 12px; max-width: calc(100% - 140px);
  background: var(--panel); border: 0; border-radius: 999px; font-size: 13px; color: var(--text);
  box-shadow: 0 6px 18px -10px rgba(30, 36, 8, 0.5);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .summary { color: var(--text); font-weight: 700; padding-left: 10px; border-left: 1.5px dotted var(--line-strong); }
.arc-mark { width: 18px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--arc) 0 4px, transparent 4px 7px); }
.zoom { right: 16px; bottom: 16px; flex-direction: column; }
body.panel-open .zoom { right: 476px; }
.zoom button {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1.5px solid transparent; font-size: 20px; line-height: 1; font-weight: 700;
  box-shadow: 0 6px 18px -10px rgba(30, 36, 8, 0.5);
}
.zoom button:hover { border-color: var(--hex-line); }
.zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vertical-align: middle; }

/* A state's hexagon, as the honeycomb draws it: an outline (the outer shape) filled by state (::after). */
.hex-mark, .chip.state i {
  position: relative; display: inline-block; width: 13px; height: 14px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--hex-line);
}
.hex-mark::after, .chip.state i::after {
  content: ""; position: absolute; inset: 1.5px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--hex-ended);
}
.hex-mark.working::after, .chip.state[data-state="working"] i::after { background: var(--hex-working); }
.hex-mark.waiting, .chip.state[data-state="waiting"] i { background: var(--honey); }
.hex-mark.waiting::after, .chip.state[data-state="waiting"] i::after { background: var(--hex-waiting); }
.hex-mark.idle::after, .chip.state[data-state="idle"] i::after { background: var(--hex-idle); }
.hex-mark.offline, .chip.state[data-state="offline"] i { background: var(--hex-ring); }
/* A state the filters leave out: its outline only, as the honeycomb draws it. */
.chip.state:not([aria-pressed="true"]) i::after { background: var(--panel); }

/* Signed out: a credits card of its own, its ground opaque and above the honeycomb's canvases, which may
   still be drawing the agents from before the session ended. */
.signin {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; gap: 6px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--glow), var(--bg) 80%);
}
body.signed-out .comb-tip { display: none; }
.signin svg { width: 56px; height: 56px; }
.signin h1 { font: 400 60px/1 var(--display); margin: 8px 0 4px; }
.signin p { color: var(--text); max-width: 380px; margin: 0 0 18px; font-size: 16px; }

/* ---- The panel ---- */

/* Laid over the honeycomb's right side, so opening it moves nothing; the honeycomb keeps the selected agent clear of it (comb.js). */
.panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 3;
  width: 460px; display: flex; flex-direction: column; min-height: 0;
  background: var(--panel); border-left: 0;
  box-shadow: -18px 0 40px -26px rgba(30, 36, 8, 0.5);
  animation: slide-in 0.18s ease-out;
}
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 20px; border-bottom: 1.5px dotted var(--line-strong); }
.panel-title { flex: 1; min-width: 0; font: 600 13px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-back { flex: 0 1 auto; min-width: 0; max-width: 45%; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--inset); color: var(--text); font: 600 12.5px var(--sans); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-back > span:first-child { font-size: 16px; line-height: 1; margin-right: 2px; }
.panel-back:hover { border-color: var(--honey); }
.panel-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); flex: none; }
.panel-button:hover { background: var(--inset); color: var(--text); }
.panel-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-expand .shrink, body.panel-wide .panel-expand .grow { display: none; }
body.panel-wide .panel-expand .shrink { display: block; }
.panel-copied { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* The count of entries that came in above what the person is reading; it takes them up to see them. */
.panel-new {
  position: absolute; top: 108px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--raised); border-color: var(--honey); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4); font-weight: 600;
}
.panel-new[hidden] { display: none; }
/* The panel's refresh holds what's being read in place itself (holdScroll in panel.js), so the browser's own anchoring stays out of it. */
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px 32px; overscroll-behavior: contain; overflow-anchor: none; }
/* Expanded, the panel takes the whole page, its text in a column wide enough to read and no wider. */
body.panel-wide .panel { left: 0; width: auto; box-shadow: none; }
body.panel-wide .panel-body { padding-inline: max(20px, calc((100% - 880px) / 2)); }
.panel-body h2 { font: 400 28px/1.1 var(--display); margin: 0; }
.panel-body h3 { font: 400 21px/1.1 var(--display); color: var(--text); margin: 22px 0 6px; }
.count { font-weight: 500; color: var(--text); }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.id { color: var(--muted); font: 500 12px var(--mono); }
.meta { color: var(--muted); font-size: 12px; }

.agent-title { display: flex; gap: 12px; align-items: flex-start; }
.agent-title .hex-mark { width: 30px; height: 34px; margin-top: 2px; }
.agent-own:not(:empty) { margin: -4px 0 16px; }
.agent-own .confirm .chip:first-child { color: var(--danger); }
.agent-own .jump .hint { margin: 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--inset); color: var(--muted); }
.pill.working { background: var(--hex-working); color: var(--hex-ink-working); }
.pill.waiting { background: var(--hex-waiting); color: var(--hex-ink-working); box-shadow: inset 0 0 0 1.5px var(--honey); }
.pill.idle { background: var(--honey-soft); color: var(--text); }

.facts { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin: 16px 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.facts .waiting-on { background: var(--honey-soft); border-radius: 6px; padding: 2px 6px; }

/* The messages queued for an agent, and how to wake it to read them. */
.queued-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--queued);
  box-shadow: 0 0 0 1.5px var(--hex-line); margin-right: 6px; vertical-align: 1px; flex: none; }
.agent-queue:not(:empty) { border: 1.5px solid var(--queued); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px;
  background: var(--raised); }
.agent-queue .queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.agent-queue .queue-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.agent-queue .queue-actions .hint { margin: 0; }
/* The Queue page (#/queue): each of your agents with messages waiting, with its queue box. */
.queue-page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.queue-page-title h2 { margin: 0; }
.queue-page-title .button { flex: none; white-space: nowrap; }
.queue-page-head .hint { margin: 8px 0 16px; }
.queue-agent-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.queue-agent-head .hex-mark { width: 18px; height: 20px; }
.queue-chip .queued-dot { margin-right: 4px; }
.agent-queue h3 { display: flex; align-items: center; margin: 0; font-size: 14px; white-space: nowrap; }
.agent-queue .queue-group + .queue-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.agent-queue h4 { margin: 0 0 4px; font-size: 13px; }
.agent-queue .hint { margin: 0 0 8px; }
.agent-queue .hint.how { color: var(--text); }
.agent-queue .message + .message, .agent-queue .queue-more { margin-top: 8px; }
.agent-queue .queue-more summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.agent-queue .queue-more[open] summary { margin-bottom: 8px; }
.tip-queued { display: flex; align-items: center; margin-top: 6px; font-weight: 600; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; position: sticky; top: -16px; background: var(--panel); z-index: 1; }
.tabs button { border: 0; background: none; padding: 10px 12px 9px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--honey); }

.card { display: block; text-decoration: none; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
a.card:hover, .card.result:hover { border-color: var(--line-strong); }
/* A search result's agent link covers its card, so the whole card opens the agent; the owner's name sits above it and opens theirs. */
.card.result { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card.result a.person { position: relative; z-index: 1; }
.card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-head .meta { margin-left: auto; }
.doing { margin-top: 4px; font-size: 13px; }
.hex-mark.small { width: 10px; height: 11px; }
.updates { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.updates li { margin-top: 4px; }
mark { background: var(--honey-soft); color: inherit; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--honey-soft); }

.status-entry { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.status-entry .kind, .entry .kind { font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.thread { margin: 10px 0; }
.message { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--raised); }
.message.out { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.message .head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.replies { margin: 6px 0 0 16px; display: grid; gap: 6px; }
.tag { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }

.entry { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.entry .body.mono { white-space: pre-wrap; max-height: 320px; overflow: auto; background: var(--inset); padding: 8px; border-radius: 6px; margin-top: 6px; }
.entry summary { cursor: pointer; list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .peek { color: var(--muted); }
.entry .head .meta, .entry summary .meta { margin-left: 4px; }

/* What agents and people wrote, as Markdown: compact, as in a terminal, its headings no bigger than its text. */
.md { font-size: 13px; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote, .md table { margin: 0 0 8px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { font: 700 13px/1.4 var(--sans); margin: 12px 0 4px; text-transform: none; letter-spacing: 0; color: var(--text); }
.md h1, .md h2 { font-size: 14px; }
.md ul, .md ol { padding-left: 20px; }
.md li > p { margin: 0; }
.md code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; background: var(--inset); border-radius: 4px; padding: 1px 4px; }
.md pre { background: var(--inset); border-radius: 6px; padding: 8px 10px; overflow-x: auto; }
.md pre code { background: none; padding: 0; white-space: pre; }
.md blockquote { border-left: 3px solid var(--line-strong); padding-left: 10px; color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.md table { width: auto; max-width: 100%; display: block; overflow-x: auto; }
.md th, .md td { padding: 4px 10px 4px 0; }
.facts code, .status-entry code, .doing code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.row input[type="search"] { flex: 1 1 160px; min-width: 0; }
/* A hint beside a row's buttons is centred on them, not lifted by its own bottom margin. */
.row > .hint { margin: 0; }
input[type="search"]:not(#q), input[type="number"], textarea, .field input {
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none;
}
input:focus, textarea:focus { border-color: var(--honey); }
textarea { width: 100%; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.field textarea, .field input { color: var(--text); font-size: 13.5px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--hex-working); color: var(--hex-ink-working); font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button { box-shadow: inset 0 0 0 1.5px var(--hex-line); }
.link { border: 0; background: none; color: var(--teal); cursor: pointer; padding: 0; font-weight: 500; }
form.inline { display: inline; }
form.inline .link { font-family: inherit; font-size: inherit; }
.chip.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.confirm { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.confirm .hint { margin: 0; }
.error { color: var(--danger); font-size: 13px; margin: 4px 0; }
.error:empty { display: none; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.segmented button { border: 0; background: none; padding: 4px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.segmented button[aria-checked="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.agent-link { font-weight: 500; text-decoration: none; }
.agent-link:hover { text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 13px;
}

/* ---- Honey ---- */

.honey-mine { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
/* A person's head: their picture large enough to see their bee, their name, and their Honey under it. */
/* Earmuffs only sit on top of a face: they reach 28% of its width past it each side
   (EARMUFFS_REACH, lib.js), 33px on this 116px one, so every face here leaves them that room, on or off, and
   sits in the same place either way: past the panel's padding (16px at the least) on its left, and
   short of the name on its right. */
.person-head { display: flex; align-items: center; gap: 36px; margin-bottom: 14px; }
.person-head .face { font-size: 80px; margin: 0 0 0 17px; box-shadow: 0 0 0 3px var(--honey); }
.person-head .face::before { font-size: 0.4em; }
.person-head h2 { overflow-wrap: anywhere; }
.person-honey { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 6px; color: inherit; text-decoration: none; }
.person-honey .honey-total { font-size: 36px; }
.person-honey:hover .muted { color: var(--text); }
/* The total hand-lettered, like a name in the credits; the board's places and counts too. */
.honey-total { font: 400 56px/0.9 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.honey-board td { border-bottom: 1.5px dotted var(--line-strong); vertical-align: middle; }
.honey-board th { border-bottom: 1.5px dotted var(--line-strong); }
.honey-board th:first-child, .honey-board .place { width: 3em; padding-left: 10px; }
.honey-board .place { font: 400 21px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.honey-board .count, .honey-board th:last-child { text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; }
.honey-board .count { font: 400 21px/1 var(--display); }
/* The signed-in person's row: a strip of honey, rounded like a pill. */
.honey-board tr.you td { background: var(--honey-soft); border-bottom-color: transparent; }
.honey-board tr.you td:first-child { border-radius: 999px 0 0 999px; }
.honey-board tr.you td:last-child { border-radius: 0 999px 999px 0; }

/* ---- Narrow screens: filters fold away, the panel is a sheet over the lower part ---- */

@media (max-width: 900px) {
  .panel {
    top: auto; left: 0; width: auto; height: 68%;
    border-left: 0; border-top: 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.45);
    animation: rise 0.2s ease-out;
  }
  @keyframes rise { from { transform: translateY(30px); opacity: 0; } }
  body.panel-open .corner { display: none; }
  body.panel-wide .panel { height: auto; top: 0; border-radius: 0; }
}
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .filters { order: 3; flex-basis: 100%; }
  .search { max-width: none; flex-basis: 0; }
  .search kbd { display: none; }
  .more { display: inline-flex; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid transparent; background: var(--raised); align-items: center; cursor: pointer; font-weight: 600; }
  .more[aria-expanded="true"] { border-color: var(--honey); }
  .choices { display: none; flex-basis: 100%; }
  .filters.open .choices { display: flex; }
  select { max-width: calc(50% - 4px); flex: 1 1 40%; }
  .legend { left: 16px; right: 64px; bottom: 16px; max-width: none; border-radius: 14px; gap: 2px 10px; }
  .legend .summary { border-left: 0; padding-left: 0; }
  .panel-body { padding: 14px 16px 28px; }
  .facts { grid-template-columns: 84px 1fr; }
}

/* A person's bee: their picture switch, their latest four bees, and the dialog that offers one on a first visit. */
.segmented button .face { font-size: 15px; }
.bee-maker .segmented { margin-bottom: 12px; }
.bees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
.bees .hint { grid-column: 1 / -1; }
.bee-option {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid var(--line); background: var(--raised);
  display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted);
}
button.bee-option { cursor: pointer; }
button.bee-option:hover, button.bee-option:focus-visible { border-color: var(--honey); outline: none; transform: scale(1.04); }
.bee-option img { width: 100%; height: 100%; object-fit: cover; }
.bee-option.drawing { background: linear-gradient(100deg, var(--raised) 30%, var(--honey-soft) 50%, var(--raised) 70%) 0 0 / 300% 100%; animation: drawing 1.6s linear infinite; }
@keyframes drawing { to { background-position: -150% 0; } }
.bee-option.failed { border-style: dashed; padding: 8px; }
.bee-ask .actions .hint { margin: 0; }
.button:disabled { opacity: 0.5; cursor: default; filter: none; }
.bee-dialog {
  width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.bee-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.bee-dialog h2 { margin: 0; font: 400 30px/1.1 var(--display); }
.bee-dialog .sub { margin-bottom: 16px; }
.bee-dialog .row.end { justify-content: flex-end; margin: 12px 0 0; }

/* Work: where everyone's time goes, by category. */
/* A bar for a share of the whole beside its number: the Work view's rows and a person's panel. */
.share-bar { display: inline-block; width: 72px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 13%, transparent); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.share-bar i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--honey); }
.share-bar i[data-share="0.0000"] { min-width: 0; }

/* Its buttons have an edge and a fill of their own, since the panel's colour is the plain chip's. */
.work-view .chip { height: 28px; padding: 0 12px; font-size: 12.5px; background: var(--raised); border-color: var(--line-strong); }
.work-view .chip:hover:not(:disabled) { border-color: var(--hex-ring); background: var(--honey-soft); }
.work-view .chip:disabled { opacity: 0.45; cursor: default; }
.work-view .chip.quiet { background: none; border-color: transparent; color: var(--muted); font-weight: 600; padding: 0 8px; }
.work-view .chip.quiet:hover { color: var(--text); background: var(--inset); border-color: transparent; }
.work-view .chip.icon { width: 28px; padding: 0; justify-content: center; font-size: 17px; font-weight: 500; }
.button.small { height: 30px; padding: 0 16px; font-size: 13px; }

.work-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.work-controls select { max-width: 200px; border: 1px solid var(--line); border-radius: 999px; }
.work-whose { margin: 10px 0 0; }
.work-who { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.work-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.work-switch input { width: 15px; height: 15px; margin: 0; accent-color: var(--honey); cursor: pointer; }
.work-switch:has(input:checked) { color: var(--text); }
.work-total { margin: 18px 0 0; font: 400 22px/1.2 var(--display); }
.work-total .muted { font: 13px var(--sans); }

/* The heading over the categories, with folding and edit mode's switch at its end. */
.work-bar { display: flex; align-items: center; gap: 2px; margin: 20px 0 6px; padding-bottom: 6px; border-bottom: 1.5px solid var(--line-strong); }
.work-bar h3 { flex: 1; margin: 0 !important; }
.work-bar [data-edit-mode] { margin-left: 8px; }

/*
 * A category's row: its fold, then a grid whose name takes what's left, so the faces, bar and
 * percent sit in the same columns on every row at every depth, and in its people's list below.
 */
.work-tree { list-style: none; margin: 0 0 10px; padding: 0; }
.work-row { --depth: 0; border-bottom: 1px solid var(--line); }
.work-head { display: flex; align-items: stretch; padding-left: calc(var(--depth) * 18px); border-radius: 8px; }
.work-head:hover, .work-row.open > .work-head { background: var(--honey-soft); }
.work-fold { flex: none; width: 22px; border: 0; padding: 0; background: none; color: var(--muted); display: grid; place-items: center; }
button.work-fold { cursor: pointer; }
button.work-fold:hover { color: var(--text); }
button.work-fold::before {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 1px;
  transform: translateX(-1px) rotate(-45deg); transition: transform 0.12s;
}
button.work-fold[aria-expanded="true"]::before { transform: translateY(-2px) rotate(45deg); }
.work-line {
  flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px 3.1em; align-items: center; gap: 10px;
  padding: 8px 8px 8px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.work-line .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-row.top > .work-head .name { font-weight: 700; }
.work-row:not(.top) .name { font-size: 13.5px; }
.work-row.archived .work-line { color: var(--muted); }
.work-line .share-bar, .work-people .share-bar { width: 64px; margin: 0; }
.work-pct { font: 400 18px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.work-faces { display: flex; justify-content: flex-end; align-items: center; font-size: 15px; }
.work-faces .face { margin: 0 0 0 -0.35em; box-shadow: 0 0 0 1.5px var(--panel); background: color-mix(in srgb, var(--text) 22%, var(--panel)); }
.work-faces > span:first-child .face { margin-left: 0; }
.work-faces .more-faces { margin-left: 4px; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.work-row.open > .work-head .work-faces .face { box-shadow: 0 0 0 1.5px var(--honey-soft); }
/* On a phone the names need the room: the faces show only in an opened row's list of people. */
@media (max-width: 480px) {
  .work-line { grid-template-columns: minmax(0, 1fr) 48px 3.1em; }
  .work-people li { grid-template-columns: minmax(0, 1fr) 48px 3.1em; }
  .work-faces { display: none; }
  .work-line .share-bar, .work-people .share-bar { width: 48px; }
}

.work-detail { padding: 6px 8px 14px calc(22px + var(--depth) * 18px); }
.work-detail .description { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.work-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.work-people { list-style: none; margin: 0 0 10px; padding: 0; }
.work-people li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 3.1em; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.work-people li + li { border-top: 1px dotted var(--line); }
.work-people .person { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.work-people .work-pct { font-size: 16px; }
.work-detail .row { margin: 0; }
.work-history { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.work-history li { padding: 2px 0; }
.work-coverage { margin-top: 8px; }

/* Edit mode: every category's name and description in place, its tools at the end of its line, and Save held at the panel's foot. */
.work-editor > .hint { margin: 0 0 10px; }
.work-edit-row { --depth: 0; padding: 8px 0 10px calc(var(--depth) * 18px); border-bottom: 1px solid var(--line); }
.work-edit-head { display: flex; align-items: center; gap: 6px; }
.work-edit-name {
  flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--raised); color: var(--text); font: inherit; font-weight: 700;
}
.work-edit-row:not([data-depth="0"]) .work-edit-name { font-weight: 600; font-size: 13.5px; }
.work-edit-name:focus, .work-edit-body textarea:focus, .work-edit-body select:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 22%, transparent); }
.work-edit-name:disabled { background: none; border-color: transparent; color: var(--text); opacity: 1; }
.work-edit-body { margin: 6px 0 0 28px; display: grid; gap: 6px; }
/* Other's, which no one changes: plain text like its name, not a box to type in. */
.work-edit-body textarea:disabled { background: none; border-color: transparent; color: var(--muted); resize: none; cursor: default; }
.work-edit-body textarea {
  min-height: 52px; max-height: 240px; field-sizing: content; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised);
  color: var(--text); font: inherit; font-size: 13px; line-height: 1.45;
}
.work-under { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.work-under select { flex: 1; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; height: 28px; font-size: 12.5px; color: var(--text); }
.work-edit-row.new > .work-edit-head .work-edit-name { border-style: dashed; border-color: var(--honey); }
.work-edit-row.archived .work-edit-name { color: var(--muted); font-weight: 500; }
.work-edit-row.marked .work-edit-name { text-decoration: line-through; }
.work-edit-head > .muted { font-size: 12px; }
.work-editor > [data-add-under] { margin: 2px 0 10px; }
.work-edit-bar {
  position: sticky; bottom: -32px; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 0 14px; background: var(--panel); border-top: 1.5px solid var(--line-strong);
}
.work-edit-bar .hint, .work-edit-bar .error { flex: 1; margin: 0; font-size: 12.5px; }

.work-form { margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
.work-form > .row:last-child { margin-bottom: 0; }
.work-form .field { display: block; margin-bottom: 8px; }
.work-form .field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.work-form input[name="name"] { width: 100%; }
.work-picker input[type="search"] { width: 100%; margin-bottom: 6px; }
.work-pool { list-style: none; margin: 0 0 8px; padding: 0; max-height: 220px; overflow-y: auto; font-size: 13.5px; }
.work-pool label { display: flex; align-items: center; gap: 6px; padding: 3px 2px; cursor: pointer; }
.work-pool .face { margin-right: 0; }
.work-shares { width: 100%; margin-bottom: 8px; }
.work-shares td { padding: 3px 0; }
.work-shares .share { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A box as wide as "100%", so the bars beside it line up whatever each row's number is. */
.work-shares .share .pct { display: inline-block; width: 3.1em; }

/* Your prompts: their own section, searched and filtered, by session. */
.work-mine { margin-top: 18px; }
.work-mine > summary { cursor: pointer; list-style: none; padding-bottom: 6px; border-bottom: 1.5px solid var(--line-strong); margin-bottom: 10px; }
.work-mine > summary::-webkit-details-marker { display: none; }
.work-mine > summary h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; }
.work-mine > summary h3::before {
  content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.12s;
}
.work-mine[open] > summary h3::before { transform: rotate(45deg); }
.work-mine > summary .count { font: 600 13px var(--sans); color: var(--muted); }
.work-mine-tools { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin: 8px 0; }
.work-mine-tools input[type="search"] { flex: 1 1 100%; min-width: 0; }
.work-mine-tools select { flex: 1 1 auto; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; }
.work-session { margin-top: 8px; }
.work-session > summary { font-size: 13.5px; font-weight: 600; cursor: pointer; }
.work-session > summary .count { color: var(--muted); font-weight: 400; }
.work-session > summary a { font-weight: 400; font-size: 12px; text-decoration: none; }
.work-prompts { list-style: none; margin: 0; padding: 0; }
.work-prompts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.work-prompts li select { grid-column: 2; justify-self: start; max-width: 100%; height: 26px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; }
.work-prompts li > .muted:last-child { grid-column: 2; font-size: 12px; }
.work-prompts .text { min-width: 0; overflow-wrap: anywhere; }
