/* FOSS Studio host dashboard - Lightmorphic house style. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Dark only. Charlie, 14 September 2026: "We don't need light mode. Keep
   everything in dark mode, it's better for the eyes. Remove any light
   mode from it completely." There was no switch for it either - the
   dashboard simply followed whatever the machine was set to, so half the
   people using it saw a look nobody had checked. */
:root {
  color-scheme: dark;
  --bg: #09090b;  --fg: #fafafa;
  --panel: #1b1d29;  --panel-border: rgba(255,255,255,.09);
  --border: #27272a;  --muted: #1c1c1f;  --muted-fg: #a1a1aa;
  --shadow-panel: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -16px rgba(0,0,0,.6);

  --accent: #fbc711;  --accent-hover: #ddaf0f;  --on-accent: #645007;
  /* Menu highlight: solid brand-yellow-into-navy chip, white text */
  --accent-container: #645520;  --on-accent-container: #ffffff;

  --brand-navy: #111827;
  --brand-yellow: #fbc711; /* fixed identity color; never follows the accent */
  --link: #2295f1;
  --danger: #f34236;   --danger-bg: #350f0c;
  --success: #4bae4f;  --success-bg: #102611;
  --warning: #ffc006;  --warning-bg: #382a01;
  --info: #2295f1;     --info-bg: #072135;

  --radius: 0.875rem;
  --panel-radius: 1.375rem;

  /* The sidebar's width. The wordmark at its head and the credit at its
     foot take it too, so the column reads as one thing. Wider than the
     11rem the old two-column menu used, because every page now has its
     own line in here and "Studio address" has to fit on one. */
  --menu-w: 13rem;
}


* { margin: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
  padding: 1.5rem;
}

h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h1 .foss { color: var(--brand-yellow); }
h2 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.75rem; }

/* ---------- Layout: one full-height sidebar | the work ----------

   The shell is the window. The sidebar and the workspace each scroll
   themselves, so the menu is always where it was left rather than
   scrolling away with the page - which is what Charlie was objecting
   to on 14 September 2026. */

.shell {
  display: flex;
  gap: 1.25rem;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 1.25rem;
  /* The pair sits in the middle of the window. Left against the edge on
     a wide screen, the whole product looked shoved into the corner with
     an empty half beside it (Charlie, 14 September 2026). */
  max-width: 90rem;
  margin: 0 auto;
}
/* The menu is a card that floats with a gap around it, not a slab
   pinned to the edge of the window - pinned, it made the whole product
   look shoved to the left (Charlie, 14 September 2026). It is still the
   full height of the window, which was the other half of what he asked
   for: a card that stops where its contents stop looks unfinished. */
.sidebar {
  flex: 0 0 var(--menu-w);
  width: var(--menu-w);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 1.4rem 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
}
/* The wordmark is sized to the width the credit line takes at the foot
   of the card, and both are centered. The sidebar is a container, so
   the name scales with it rather than being a number that only works at
   one width. */
.sidebar { container-type: inline-size; }
.sidebar .wordmark {
  font-size: 14.2cqi;
  margin-bottom: 1.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
}
.sponsor { text-align: center; }
.sponsor a { justify-content: center; }
.workspace {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  /* The shell already holds the gap; the work only needs room at the
     foot so the last panel is not flush against the window. */
  padding: 0 0.25rem 3rem;
}
.workspace > * { max-width: none; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.whoami { color: var(--muted-fg); font-size: 0.9rem; }

/* The menu itself: a flat list of pages, grouped by quiet headings.
   The group heading is a label, never a button - there is nothing
   behind it to open. */
.mainmenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}
.menu-head {
  margin: 1.1rem 0 0.3rem;
  padding: 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-fg);
  opacity: 0.75;
}
/* Account, System and Help: pushed to the bottom by whatever space the
   pages above them leave, so the sidebar is full length whether there
   are three menu items or thirty */
.menu-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-foot .menu-head { margin-top: 0.9rem; }
.menu-foot hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.7rem 0.2rem 0.5rem;
}
.mainmenu button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
}
.mainmenu button:hover {
  background: var(--muted);
  color: var(--fg);
}
.mainmenu button.active {
  background: var(--accent-container);
  color: var(--on-accent-container);
}
.content { min-width: 0; }

/* The credit closes the sidebar, under the foot block and the rule that
   ends it - the quiet end of the column rather than a band stuck across
   the page. */
/* The credit sets its own width; the wordmark above is sized to match
   it, and both sit centered in the card. Stretching the words to fit
   was the wrong way round - the sentence is the fixed thing. */
.sponsor .said { display: block; }
.sponsor {
  flex: 0 0 auto;
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted-fg);
}
.sponsor a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  color: var(--muted-fg);
  text-decoration: none;
  font-weight: 600;
}
.sponsor a:hover { color: var(--fg); }
.sponsor img { border-radius: 3px; display: block; }

/* A phone has no room for a column beside the work, and a sidebar the
   height of a phone screen would be the whole screen - thirteen pages
   stacked one per line pushed every card below the fold. Below this the
   shell goes back to ordinary document flow and the menu wraps into
   rows: the same thirteen pages in four bands, the group headings
   taking a line of their own so the grouping survives. */
@media (max-width: 820px) {
  .shell { display: block; height: auto; overflow: visible; padding: 1rem; }
  .sidebar {
    width: auto;
    height: auto;
    overflow: visible;
    padding: 1rem 1rem 0.9rem;
    margin-bottom: 1rem;
  }
  .sidebar .wordmark { font-size: 1.5rem; margin-bottom: 0.8rem; }
  .mainmenu, .menu-foot {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    align-items: center;
  }
  /* The foot block is itself a row in the wrapped menu, so it takes a
     full line of its own; min-width:0 stops its full-width children
     from pushing it wider than the sidebar, which is what it did */
  .menu-foot { flex: 0 0 100%; min-width: 0; margin-top: 0.5rem; padding-top: 0; }
  .menu-head, .menu-foot hr { flex: 0 0 100%; width: 100%; min-width: 0; }
  .menu-head, .menu-foot .menu-head { margin: 0.7rem 0 0.1rem; padding: 0; }
  .menu-foot hr { margin: 0.6rem 0 0.2rem; }
  .sponsor { margin-top: 0.8rem; padding-top: 0.7rem; }
  .workspace { height: auto; overflow: visible; padding: 0 0 2rem; }
}
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Controls ---------- */

button, input, select { font: inherit; }

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--muted);
  color: var(--fg);
  border-color: var(--border);
}
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.soft { color: var(--muted-fg); font-weight: 400; font-size: 0.85rem; }

label { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; }
.hint { font-size: 0.8125rem; font-weight: 400; color: var(--muted-fg); }

input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="url"] {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}
.field { margin-bottom: 1rem; }

:is(button, input, select, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Icon buttons + inline delete confirm ---------- */

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--muted);
  color: var(--fg);
  cursor: pointer;
}
.iconbtn svg { width: 1rem; height: 1rem; }
.iconbtn.confirm { background: var(--danger); border-color: var(--danger); color: #fff; }
.iconbtn.done { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- Sessions list ---------- */

/* The row wraps rather than running off the side. On a phone the five
   icons would not fit beside the title and the last of them - delete -
   was clipped off the edge of the screen, so a session could not be
   deleted on a phone at all. They drop to their own line instead. */
.session-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.session-row > div:first-child { flex: 1 1 13rem; min-width: 0; }
.session-row .meta { overflow-wrap: anywhere; }
/* On a phone the title takes the whole line so the five icons stay
   together on the next one. Left to share the line they split two and
   three across two lines, which is worse than the clipping it fixed.
   It lives here rather than with the rest of the narrow-screen rules
   because the rule it overrides is written below those. */
@media (max-width: 820px) {
  .session-row > div:first-child { flex: 0 0 100%; }
  .session-row .spacer { display: none; }
}
.session-row:first-child { border-top: 0; }
.session-row .title { font-weight: 600; }
.session-row .meta { font-size: 0.8125rem; color: var(--muted-fg); }
.session-row .spacer { margin-left: auto; }
.session-row .title-edit {
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: var(--input-bg, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--accent, #fbc711);
  border-radius: 0.5rem;
  padding: 0.15rem 0.5rem;
  min-width: 16rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
}
/* Icon-only status markers (no pill) */
.badge.status-icon {
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: none;
  min-width: 1.2rem;
  height: 1.2rem;
}
.badge.status-fail { color: var(--danger); font-weight: 800; font-size: 1rem; }
.proc-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--danger-bg);
  border-top-color: var(--danger);
  animation: proc-spin 0.8s linear infinite;
}
@keyframes proc-spin { to { transform: rotate(360deg); } }
.rec-now {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--danger);
  animation: rec-pulse 1.2s ease-in-out infinite;
}
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .proc-spinner { animation: none; border-top-color: var(--danger); }
  .rec-now { animation: none; }
}

/* ---------- Accent swatches ---------- */


/* ---------- Toggle ---------- */

.toggle { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  position: relative;
  transition: background 150ms;
  flex-shrink: 0;
}
.toggle .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--muted-fg);
  transition: transform 150ms, background 150ms;
}
.toggle input:checked + .track { background: var(--accent); border-color: transparent; }
.toggle input:checked + .track::after { transform: translateX(1.15rem); background: var(--on-accent); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Per-host settings drawer ---------- */


/* ---------- Feedback ---------- */

.msg { border-radius: var(--radius); padding: 0.6rem 0.9rem; font-size: 0.9rem; margin-top: 0.75rem; }
/* A saved confirmation is a mark, never a painted green box that
   appears over the page (Charlie, 14 September 2026: "never ever ever
   use those green pop-up toast messages"). The tick is the whole
   message; it sits at the control it belongs to and paints nothing. */
.msg.ok {
  background: none;
  padding: 0;
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
}
/* Something the studio is refusing to do, said in the same place and
   with no color at all: it is an explanation, not an alarm. */
.msg.note { background: none; padding: 0; color: var(--muted-fg); font-size: 0.8125rem; }
.msg.err { background: var(--danger-bg); color: var(--danger); }

/* ---------- Login ---------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.login-wrap .panel { width: 100%; max-width: 22rem; }

/* ---------- Wallpaper preview ---------- */

.wallpaper-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  background-color: var(--muted);
  display: grid;
  place-items: center;
  color: var(--muted-fg);
  font-size: 0.85rem;
}
/* A banner is shown whole, letterboxed if its shape is not ours. Cropping
   the preview would show the host something the session will not. */
.wallpaper-preview.fit { background-size: contain; background-repeat: no-repeat; }

/* Tooltips ride the shared #tipBubble (css/tip.css + js/tip.js) */

/* ---------- Video preview modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
/* Guard display behind :not([hidden]) so the hidden attribute still hides it */
.video-modal:not([hidden]) { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.video-modal-box {
  position: relative;
  z-index: 1;
  width: 80vw;
  max-width: 80vw;
}
.video-modal-player {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.video-modal-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0;
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.video-modal-close:hover { opacity: 0.85; }

/* ---------- Recording cards ---------- */
.rec-card {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.rec-card:first-child { border-top: 0; padding-top: 0.25rem; }
.rec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.rec-head-text { min-width: 0; }
.rec-head-text .title { font-weight: 600; }
.rec-head-text .meta { font-size: 0.8125rem; color: var(--muted-fg); }
/* Status + delete pinned top-right, not floating beside the file list */
.rec-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 0.5rem; }

/* Files in two columns, each a self-contained chip */
.files {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 640px) { .files { grid-template-columns: 1fr; } }
.rec-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.rec-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}
/* What went wrong with a track, under its own chip. Words, not a
   painted box: the sentence is the whole of the signal. */
.rec-note {
  flex-basis: 100%;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-fg);
}
.rec-fname {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
a.iconbtn { text-decoration: none; }
.iconbtn:hover { border-color: var(--muted-fg); }

/* Inline new-password editor on a user row (no browser pop-up) */
.pw-inline {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.pw-inline input {
  font: inherit;
  font-size: 0.85rem;
  width: 15rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line, #d5d9e0);
  border-radius: 8px;
  background: var(--bg, #fff);
  color: inherit;
}

/* Framed inside another application's shell: no second top bar. */
body.embedded .topbar { display: none; }

/* A named choice between two settings: the words carry it, so the rows
   are plain and the only mark is the radio itself. */
.choice-row {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.7rem 0.8rem; margin-bottom: 0.4rem;
  font-weight: 400; border-radius: 8px;
  background: var(--panel-2, rgba(255,255,255,0.03));
  cursor: pointer;
}
.choice-row input { margin-top: 0.25rem; accent-color: var(--accent); }
.choice-row b { display: block; font-size: 0.9375rem; margin-bottom: 0.15rem; }
.choice-row .hint { display: block; }
/* The quiet link from a setting to the part of the help page that
   explains it. A link, not an icon and not a tooltip: it has to be
   readable and it has to be clickable. */
.helplink { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* The first-run setup page. One panel, one step visible at a time, and
   wide enough that a shell command in it does not wrap. */
.setup { max-width: 34rem; }
.setup p { margin-bottom: 0.8rem; line-height: 1.55; }
.setup .cmd {
  background: rgba(127,127,127,0.12); border-radius: 6px;
  padding: 0.55rem 0.7rem; margin-bottom: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem;
  overflow-x: auto;
}
.setup .secret code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem; letter-spacing: 0.04em; word-break: break-all;
}
/* The offered passphrase sits beside the box it would go in, so taking
   it is one click and ignoring it costs nothing. */
.suggest {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: rgba(127,127,127,0.10); border-radius: 6px; padding: 0.55rem 0.7rem;
}
.suggest code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem; flex: 1; min-width: 12rem; word-break: break-all;
}

/* ---------- Recording formats ----------
   A tick is a file. The row says what the file is, what it costs an hour
   and which browsers can write it, and the summary underneath adds up
   what has been ticked - because the moment to learn that a choice is
   forty gigabytes is before the show, not after it. */
.fmt-head {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-fg);
  margin: 1.4rem 0 0.6rem;
}
.fmt-list { display: grid; gap: 0.4rem; }
.fmt-row {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.8rem 0.9rem; border-radius: 10px;
  background: var(--panel-2, rgba(255,255,255,0.03));
  border: 1px solid transparent;
  cursor: pointer;
}
.fmt-row.on { border-color: var(--accent); background: rgba(251, 199, 17, 0.06); }
.fmt-row input { margin-top: 0.3rem; accent-color: var(--accent); }
.fmt-row .fmt-body { flex: 1; min-width: 0; }
.fmt-row .fmt-name { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.fmt-row b { font-size: 0.9375rem; font-weight: 600; }
.fmt-row .fmt-size {
  font-size: 0.8125rem; font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
.fmt-row .hint { display: block; margin-top: 0.15rem; }
.fmt-row .fmt-browsers { display: block; margin-top: 0.25rem; opacity: 0.8; }
/* The row is unavailable, not disabled: it keeps its events so it can
   still say why, the same as the gray buttons in a session. */
.fmt-row[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.fmt-warn { margin-top: 0.7rem; }

.fmt-sum {
  margin-top: 1.3rem; padding: 1rem 1.1rem;
  border-radius: 10px; border: 1px solid var(--panel-border);
  background: var(--panel-2, rgba(255,255,255,0.03));
}
.fmt-sum-line { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.fmt-sum-line label {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8125rem; color: var(--muted-fg);
}
.fmt-sum-line input {
  width: 4rem; padding: 0.3rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font: inherit; font-size: 0.875rem;
}
.fmt-total { font-size: 1.5rem; font-weight: 700; margin: 0.7rem 0 0.4rem; }
.fmt-break { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.fmt-break li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; color: var(--muted-fg);
  padding: 0.22rem 0; border-bottom: 1px solid var(--panel-border);
}
.fmt-break li:last-child { border-bottom: 0; }
.fmt-break span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fmt-row .fmt-here { display: block; margin-top: 0.1rem; color: var(--success, #4bae4f); }
.fmt-row .fmt-here.no { color: var(--muted-fg); }

/* A note about the whole take rather than one file in it. */
.rec-note-top { margin-bottom: 0.6rem; }

/* The saved mark sits under the control it belongs to, inline, so it
   never reads as something arriving from elsewhere on the page. */
.fmt-mark { display: inline-block; margin-top: 0.6rem; }
