/*
  What the assignment adds to the Flow Ring board: fields, rows, uploads, the live post,
  the send control. Everything else is the template, unchanged.

  A filled field reads like the original panels did: a quiet label, then the words at reading
  size on the panel itself. No boxes around text; a hairline under it that turns to ink on focus.
*/

/* ---------- on the board ---------- */
.node-text { display: block; }
/* A card still waiting speaks in the quieter grey; the candidate's own words take the stronger one. */
.node-summary.is-empty, .root-aha.is-empty { color: var(--text-3); }
/* The line under the product's name on the board (product.ask in the data file). */
.root-aha { text-wrap: balance; }

/* The corner line: the time left, then "Sent". For the team, whose board this is. */
.due {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 15;
  max-width: calc(100% - 150px);
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-3);
  transition: opacity 200ms ease;
}
body.is-open .due, body.has-gate .due { opacity: 0; pointer-events: none; }
/* A soft wash of the page colour behind the corner, as the path has at the top, so the time
   always reads when cards pass under it. */
.due::before {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: min(620px, 100vw);
  height: 130px;
  background: radial-gradient(100% 100% at 0 100%, var(--bg) 42%, transparent 100%);
  pointer-events: none;
}
.due:has(.due-line:empty)::before { display: none; }
/* A phone's cards run the full width, so there the wash is the whole bottom edge. */
@media (max-width: 700px) {
  .due::before { width: 100vw; height: 190px; background: linear-gradient(to top, var(--bg) 52%, transparent); }
}
.due-line { margin: 0; font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.due-line:empty { display: none; }
/* The last five minutes: the same line, in ink. */
.due-line.is-last { color: var(--text); }
.due-who { display: block; color: var(--text-2); }
.due-state { display: block; }
.due-state:empty { display: none; }
/* In a panel's bar: the time left, then whether the work is saved. */
.clock, .savestate {
  flex: none;
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  white-space: nowrap;
}
.clock { margin-left: auto; font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.clock:empty { display: none; }
.clock.is-last { color: var(--text); }
.savestate { margin: 0 4px 0 auto; }
.clock:not(:empty) + .savestate { margin-left: 6px; }
.savestate.is-warn { color: var(--text); }
@media (max-width: 700px) {
  .wide-only { display: none; }
  .panel-bar { gap: 10px; }
}

/* ---------- the welcome card ---------- */
.gate-card { padding: 58px 40px 34px; }
.gate-lead { margin: 0 0 6px; }
.gate-name {
  margin: 0 0 32px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.gate-name[hidden], .gate-terms[hidden], .gate-about[hidden] { display: none; }
/* What it is, in one quiet line, then how long they have, said before the button that starts it. */
.gate-about {
  max-width: 34ch;
  margin: -14px auto 22px;
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--text-2);
  text-wrap: pretty;
}
.gate-terms {
  max-width: 24ch;
  margin: -12px auto 30px;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--text);
  text-wrap: balance;
}
.gate-about:not([hidden]) + .gate-terms { margin-top: 0; }
.gate-terms[hidden] + .gate-open { margin-top: 26px; }
.gate-lead:has(+ .gate-name[hidden]) { font-size: 19px; line-height: 1.35; color: var(--text); text-wrap: balance; }
.gate-open[hidden] + .gate-note:empty { display: none; }
.gate-note { margin-top: 18px; }

/* ---------- buttons: a pill, the arrow in its own circle ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 7px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.008em;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn[hidden] { display: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  transition: transform 220ms var(--ease-out);
}
.btn-ic svg { width: 18px; height: 18px; display: block; }
.btn.is-quiet {
  padding: 0 24px;
  background: none;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover .btn-ic { transform: translateX(3px); }
  .btn.is-quiet:not(:disabled):hover { color: var(--text); }
}
.btn:focus-visible { outline: 2px solid var(--edge-hot); outline-offset: 3px; border-radius: 999px; }

/* ---------- a form ---------- */
.form-fields { max-width: 760px; margin-top: 52px; }
.form-fields.is-wide { max-width: none; }
.form .p-lead { max-width: 46ch; }

.f {
  display: block;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.f:last-child { padding-bottom: 8px; }
.f.is-short .f-input { max-width: 340px; }
.f-label {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.f-opt {
  margin-left: 12px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
}
.f-hint {
  display: block;
  max-width: 58ch;
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}

.f-input {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.004em;
  resize: none;
  overflow: hidden;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms ease;
}
.f-input::placeholder { color: var(--text-3); opacity: 1; }
.f-input:focus, .f-input:focus-visible { outline: none; border-bottom-color: var(--text); border-radius: 0; }
.f-input.mono { font-family: var(--mono); font-size: 16px; letter-spacing: 0; line-height: 1.6; }
.f-input.is-big {
  padding-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.024em;
}
.f-input[readonly] { border-bottom-color: transparent; cursor: default; }
.f-input[readonly]:placeholder-shown { display: none; }

/* The count is always in the layout, so nothing below it moves when it starts to speak. */
.f-count {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.f-count.is-over { color: var(--text); font-weight: 600; }
.f-error {
  display: block;
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
}
.f-error:empty { display: none; }
.f-none { margin: 14px 0 0; padding: 0; list-style: none; font-size: 17px; color: var(--text-3); }

/* ---------- rows ---------- */
.f-rows { margin-top: 18px; }
.f-rows-head, .f-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 24px;
  align-items: start;
}
.f-rows[data-layout="beats"] .f-rows-head, .f-rows[data-layout="beats"] .f-row { grid-template-columns: 8.6em minmax(0, 1fr) minmax(0, 1.35fr) 168px 60px; }
.f-rows[data-layout="sheet"] .f-rows-head, .f-rows[data-layout="sheet"] .f-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.9fr) 60px; }
.f-rows-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
.f-row { position: relative; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.f-rows[data-layout="list"] .f-row:first-child { border-top: 1px solid var(--line); }
.f-cell { min-width: 0; }
.f-cell .f-input {
  margin: 0;
  padding-bottom: 6px;
  border-bottom-color: transparent;
  font-size: 17px;
  line-height: 1.55;
}
.f-cell .f-input.mono { font-size: 14px; line-height: 1.9; }
.f-cell .f-input:focus { border-bottom-color: var(--text); }
.f-cell .f-count { margin-top: 4px; }

.f-tool, .f-file-x, .f-slot-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: color 150ms ease, opacity 150ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.f-tool svg, .f-file-x svg, .f-slot-x svg { width: 18px; height: 18px; display: block; }
.f-tool:not(:disabled):active, .f-file-x:active, .f-slot-x:active { transform: scale(0.94); }
/* A row's own controls: up, down, add one below, remove. Two by two, at the row's end. */
.f-tools { display: grid; grid-template-columns: 30px 30px; transition: opacity 150ms ease; }
.f-tool:disabled { opacity: 0.28; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .f-tools { opacity: 0; }
  .f-row:hover .f-tools, .f-row:focus-within .f-tools { opacity: 1; }
  .f-tool:not(:disabled):hover, .f-file-x:hover, .f-slot-x:hover { color: var(--text); }
}

/* Something was removed or pasted: one plain line, and a way back for a few seconds. */
.f-undo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-2);
}
.f-undos .f-undo { padding: 12px 0 0; border: 0; }
.f-undos:empty { display: none; }
.f-undo-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .f-undo-btn:hover { text-decoration-color: var(--text-2); } }
.f-slot-wrap .f-undos .f-undo { font-size: 14px; }

.f-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0 -4px;
  padding: 8px 12px 8px 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.f-add:active { transform: scale(0.97); }
.f-add-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.f-add-ic svg { width: 14px; height: 14px; display: block; }
@media (hover: hover) and (pointer: fine) { .f-add:hover { color: var(--text); } }

@media (max-width: 900px) {
  .f-rows-head { display: none; }
  .f-rows .f-row, .f-rows[data-layout="beats"] .f-row, .f-rows[data-layout="sheet"] .f-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 12px;
    padding: 18px 0 12px;
  }
  .f-rows .f-row:first-child { border-top: 1px solid var(--line-strong); }
  .f-cell { grid-column: 1; }
  .f-rows:not([data-layout="list"]) .f-cell::before {
    content: attr(data-label);
    display: block;
    margin: 6px 0 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
  }
  /* Stacked, a row keeps its controls in a line under it, where a thumb reaches. */
  .f-tools { grid-column: 1; justify-self: end; display: flex; margin: 6px -8px 0 0; opacity: 1; }
  .f-tool { width: 40px; height: 40px; }
  .f-cell[data-col="still"] { max-width: 220px; }
}

/* ---------- under a link: a way to check that it opens ---------- */
.f-count a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .f-count a:hover { color: var(--text); } }

/* ---------- two ways to answer: write it here, or attach what already exists ---------- */
.ways-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 34px;
  border-bottom: 1px solid var(--line);
}
.ways-tab {
  position: relative;
  padding: 0 0 16px;
  border: 0;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
/* The chosen one is in ink, with the hairline under it drawn in ink too. */
.ways-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--text);
  opacity: 0;
  transition: opacity 150ms ease;
}
.ways-tab[aria-selected="true"] { color: var(--text); }
.ways-tab[aria-selected="true"]::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ways-tab:hover { color: var(--text); } }
.ways-tab:focus-visible { outline: 2px solid var(--edge-hot); outline-offset: 4px; border-radius: 4px; }
.ways-group > .f:first-child { border-top: 0; }
.ways-name { margin: 0; padding: 26px 0 0; font-size: 15px; font-weight: 500; color: var(--text-3); border-top: 1px solid var(--line); }
.ways.is-read .ways-name + .ways-group > .f:first-child { padding-top: 14px; }
.ways + .f { margin-top: 12px; }

/* ---------- one question, two ways to answer it: a file, or a link ---------- */
.f-either > .f + .f { border-top: 0; padding-top: 0; margin-top: -8px; }
.f-either > .f + .f .f-label { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.f-either > .f:not(:last-child) { padding-bottom: 26px; }

/* ---------- the one picture a card is built around, beside its questions ---------- */
.split.form-split.has-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.hero-wrap { min-width: 0; margin-top: 52px; }
@media (min-width: 1001px) { .form-split > .hero-wrap { position: sticky; top: 76px; } }
/* A major frame: the picture sits in a tray, as the files do. */
.f.is-slot.is-hero .f-slot-wrap {
  max-width: none;
  margin-top: 18px;
  padding: 6px;
  border-radius: 24px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease;
}
.f.is-slot.is-hero .f-slot-wrap.is-drop { box-shadow: 0 0 0 1px var(--edge-hot); }
.f.is-slot.is-hero .f-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-hi);
  box-shadow: var(--card-shadow);
}
.f.is-slot.is-hero .f-slot-label { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; color: var(--text); }
.f-slot-sub { max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: var(--text-3); text-align: center; text-wrap: balance; }
.f.is-slot.is-hero .f-slot img { border-radius: 18px; }
.f.is-slot.is-hero .f-slot-x { top: 16px; right: 16px; }
.f.is-slot.is-hero .f-bar { left: 24px; right: 24px; bottom: 6px; }
.f.is-slot.is-hero .f-error, .f.is-slot.is-hero .f-undos { padding: 0 6px; }
@media (hover: hover) and (pointer: fine) { .f.is-slot.is-hero .f-slot:not(:disabled):hover { box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line-strong); } }
.f.is-slot.is-hero .f-slot-wrap.has-file .f-slot, .f.is-slot.is-hero .f-slot-wrap.has-file .f-slot:hover { box-shadow: var(--card-shadow); padding: 0; }
/* On a narrow screen the picture comes first: it is what the card is about. */
@media (max-width: 1000px) {
  .split.form-split.has-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .split.form-split.has-hero .hero-wrap { order: -1; margin-top: 36px; }
  .split.form-split.has-hero .form-fields { margin-top: 20px; }
}

/* ---------- on the board: a card that stands apart from the three groups ---------- */
/* No sheet under it: a hairline and plain type, so the three groups stay three. */
.node[data-corner] .node-card {
  padding: 20px 24px 22px;
  border-color: var(--line-strong);
  background: none;
  box-shadow: none;
}
.node[data-corner] .node-sheen { display: none; }
.node[data-corner] .node-title { font-size: 19px; color: var(--text-2); }
.node[data-corner] .node-summary { color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .node[data-corner]:hover .node-title { color: var(--text); } }

/* ---------- what a card still needs, in one line above the way onward ---------- */
.form-lack { max-width: 62ch; margin: 64px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.form-lack:empty { display: none; }
.form-lack:not(:empty) + .form-next { margin-top: 22px; }

/* ---------- the next card ---------- */
.form-next { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ix.next .ix-title { font-size: 24px; }
@media (max-width: 700px) { .form-next { margin-top: 56px; } }

/* ---------- one image ---------- */
.f-slot-wrap { position: relative; display: block; }
.f.is-slot .f-slot-wrap { max-width: 320px; margin-top: 16px; }
.f-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--slot);
  box-shadow: inset 0 0 0 1px var(--slot-line);
  color: var(--text-3);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* A small round frame: a profile photo, the size it will be in the post's head and a little
   more. Its remove control stands beside it, not on it. */
.f.is-slot.is-small .f-slot-wrap { display: inline-block; width: 64px; max-width: none; margin-top: 14px; }
.f.is-slot.is-small .f-slot { aspect-ratio: 1; border-radius: 50%; }
.f-slot-plus { display: grid; place-items: center; }
.f-slot-plus svg { width: 18px; height: 18px; display: block; }
.f.is-slot.is-small .f-slot-x { top: 18px; right: -40px; opacity: 1; }
.f.is-slot.is-small .f-bar { left: 0; right: 0; bottom: -8px; }
.f.is-slot.is-small .f-error, .f.is-slot.is-small .f-undos { display: block; width: max-content; max-width: 280px; }
.f-slot:disabled { cursor: default; }
.f-slot:not(:disabled):active { transform: scale(0.985); }
.f-slot-label { font-size: 14px; line-height: 1.3; }
.f-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease-out); }
.f-slot img.is-in { opacity: 1; }
.f-slot-wrap.has-file .f-slot { box-shadow: none; }
.f-slot-wrap.is-drop .f-slot, .f-slot:focus-visible { box-shadow: inset 0 0 0 1px var(--edge-hot); outline: none; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .f-slot:not(:disabled):hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); } .f-slot-wrap.has-file .f-slot:hover { box-shadow: none; } }
.f-slot-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}
.f-slot-x[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .f-slot-x { opacity: 0; }
  .f-slot-wrap:hover .f-slot-x, .f-slot-x:focus-visible { opacity: 1; }
}
/* Upload progress: a hairline that fills from the left. */
.f-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform 160ms linear, opacity 200ms ease;
  pointer-events: none;
}
.is-busy > .f-bar, .is-busy .f-tray-core > .f-bar { opacity: 1; }

/* ---------- many files: a tray, with the sheet set inside it ---------- */
.f-tray {
  position: relative;
  max-width: 760px;
  margin-top: 18px;
  padding: 6px;
  border-radius: 24px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease;
}
.f-tray.is-drop { box-shadow: 0 0 0 1px var(--edge-hot); }
.f-tray-core {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-hi);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.f-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.f-tray.is-empty .f-files { display: none; }
.f-files .f-none { grid-column: 1 / -1; margin: 6px 4px; }
.f-file { position: relative; min-width: 0; }
.f-file-open { display: block; text-decoration: none; color: inherit; }
.f-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slot);
}
.f-thumb.is-doc {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--slot-line);
}
.f-file-name { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-file-size { display: block; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.f-file-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .f-file-x { opacity: 0; }
  .f-file:hover .f-file-x, .f-file-x:focus-visible { opacity: 1; }
}
.f-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--slot);
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.f-drop:active { transform: scale(0.99); }
.f-drop b { display: block; font-weight: 600; color: var(--text); }
.f-drop-hint { display: block; font-size: 14.5px; color: var(--text-3); }
.f-drop-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); transition: transform 220ms var(--ease-out); }
.f-drop-ic svg { width: 18px; height: 18px; display: block; }
@media (hover: hover) and (pointer: fine) { .f-drop:hover .f-drop-ic { transform: rotate(90deg); } }

/* ---------- a form with its post beside it ---------- */
.split.form-split { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 64px; margin-top: 0; }
.form-split .form-fields { max-width: none; }
.form-split .post-wrap { margin-top: 52px; }
@media (min-width: 1001px) {
  .form-split > .post-wrap { position: sticky; top: 76px; }
}
/* On a narrow screen the post comes above the questions that write it, and once there is a
   post it stays in view under the card's bar while they are written: each key shows in it
   without scrolling. It takes at most a part of the screen's height and scrolls inside
   itself to whatever is being written (js/fields.js). The card's bar lies over the top of
   the scrolling area (css/panel.css), so the post holds just under it. */
@media (max-width: 1000px) {
  .split.form-split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .split.form-split .post-wrap { order: -1; margin-top: 28px; }
  .split.form-split .post-wrap:has(.x:not(.is-blank), .li:not(.is-blank)) {
    position: sticky;
    /* Its ground begins where the bar's own ground begins to fade, so nothing shows between. */
    top: 40px;
    z-index: 2;
    max-height: calc(40vh + 12px);
    margin: 28px -56px 0;
    padding: 20px 56px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    box-shadow: 0 1px 0 var(--line);
  }
  .split.form-split .form-fields { margin-top: 12px; }
}
@media (max-width: 700px) {
  .split.form-split .post-wrap:has(.x:not(.is-blank), .li:not(.is-blank)) { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
.post-live { min-width: 0; }
/* Nothing typed yet: the platform's own frame with nothing in it. The post's furniture (its
   date, its counts and actions, the follow button) comes with the first thing written. */
.post-live .x.is-blank .x-meta, .post-live .x.is-blank .x-actions, .post-live .x.is-blank .x-more, .post-live .x.is-blank .who,
.post-live .li.is-blank .li-actions, .post-live .li.is-blank .li-follow, .post-live .li.is-blank .li-who { display: none; }

/* ---------- the cover ---------- */
.cover-body { margin-top: 48px; }
.cover-body a, .p-list a, .send a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cover-body a:hover, .p-list a:hover, .send a:hover { text-decoration-color: var(--text-2); }
}
.p-list li strong { color: var(--text); font-weight: 600; }
.cover-own .form-fields { margin-top: 0; max-width: none; }
/* With nothing set beside it, "How it works" stands alone under the brief. */
.cover-how { margin-top: 72px; }
.cover-again { margin: 64px 0 0; font-size: 16px; }
.cover-again .f-undo-btn { color: var(--text-2); font-weight: 400; }
.cover-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 80px; }
@media (max-width: 820px) { .cover-cols { grid-template-columns: minmax(0, 1fr); gap: 64px; } }
.cover .sb-toc { margin-top: 0; }
.ix.is-empty .ix-title { color: var(--text-2); }
.ix.is-empty .ix-text { color: var(--text-3); }

.send-line { margin: 0 0 6px; font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.send-sub { margin: 0 0 22px; max-width: 58ch; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.send-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-ic, .f-add, .f-drop, .f-drop-ic, .f-slot, .f-tool, .f-file-x, .f-slot-x { transition: opacity 150ms ease, color 150ms ease; }
  .f-drop:hover .f-drop-ic, .btn:hover .btn-ic { transform: none; }
  .f-bar { transition: opacity 200ms ease; }
}

/* The brief is for reading: the drawing sits smaller here than on the original cover, so the
   name and the first paragraph are on screen when the panel opens. */
.cover .cover-ring:has(.root-img) { width: min(360px, 78%); margin: -28px 0 4px -22px; }

/* A phone has room for one name in the bar: the card you are in. The back arrow does the rest. */
@media (max-width: 700px) {
  .panel-bar .crumbs > :not([aria-current]) { display: none; }
}
