/* The clean layout, business screens (Basecamp 10492667707). Every selector here starts
   with html[data-layout="clean"]; see docs/clean-layout.md.

   The pages under "Your business" (public/clean-business.js): the market
   read and the write page, the opportunity score, shots saved to film
   later, testimonials, report a problem, and adding photos or video to a
   script. They are pages to read, so the thing the machine found is large
   plain text, a card has one button, and the rest folds away. Colours and
   faces are the tokens styles.css already has; nothing here is new. */

/* ---------- the page ---------- */
html[data-layout="clean"] .cl-biz { --cl-pad: 20px; display: flex; flex-direction: column; gap: 14px; }
html[data-layout="clean"] .cl-biz [hidden] { display: none !important; }
html[data-layout="clean"] .cl-biz .cl-card:not(.cl-empty) { padding: 18px var(--cl-pad) 20px; gap: 12px; }
html[data-layout="clean"] .cl-biz .cl-card-head { flex-wrap: wrap; gap: 4px 12px; min-height: 26px; padding-bottom: 0; }
html[data-layout="clean"] .cl-biz .cl-empty { line-height: 1.5; }
html[data-layout="clean"] .cl-biz .cl-empty-act { flex-direction: row; }
html[data-layout="clean"] .cl-biz .cl-empty-act > span { flex: 1 1 260px; }
html[data-layout="clean"] .cl-biz-stack { display: flex; flex-direction: column; gap: 14px; }
html[data-layout="clean"] .cl-biz-sub { margin: -6px 0 2px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html[data-layout="clean"] .cl-biz-title,
html[data-layout="clean"] .cl-biz-name,
html[data-layout="clean"] .cl-read-lead {
  font-family: var(--font-text); text-transform: none; color: var(--ink);
  margin: 0; padding: 0; border-top: 0;
}
html[data-layout="clean"] .cl-biz-title { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.22; text-wrap: balance; }
html[data-layout="clean"] .cl-biz-name { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-biz-town { margin-left: 10px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
html[data-layout="clean"] .cl-biz-say { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html[data-layout="clean"] .cl-biz-meta { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
html[data-layout="clean"] .cl-biz-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html[data-layout="clean"] .cl-biz-acts .cl-btn2,
html[data-layout="clean"] .cl-biz-row .cl-btn2,
html[data-layout="clean"] .cl-later-row .cl-btn2 { gap: 9px; }
/* Words, then the one button. Side by side on a desk; on a phone the
   button sits under the words, never squeezed beside them. */
html[data-layout="clean"] .cl-biz-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html[data-layout="clean"] .cl-biz-state { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
html[data-layout="clean"] .cl-biz-state.problem { color: var(--accent-deep); }
html[data-layout="clean"] .cl-biz-corner { position: relative; flex: none; display: flex; align-items: center; gap: 6px; min-height: 28px; }
html[data-layout="clean"] .cl-biz-corner .cl-switch { margin-left: 6px; }
html[data-layout="clean"] .cl-biz-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper-4); border-radius: 6px; padding: 12px 14px;
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2);
}
html[data-layout="clean"] .cl-biz-note .cl-mark { margin-top: 2px; }
html[data-layout="clean"] .cl-biz-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
html[data-layout="clean"] .cl-biz-list { margin: 0; padding: 0 0 0 20px; }
html[data-layout="clean"] .cl-biz-list li { padding: 4px 0; font-size: 18px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
html[data-layout="clean"] .cl-biz-list li::marker { color: var(--muted); }
html[data-layout="clean"] .cl-biz-read { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
html[data-layout="clean"] .cl-biz-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
html[data-layout="clean"] a.cl-biz-go {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 14px;
  text-decoration: none; color: var(--ink);
  transition: background-color .15s, border-color .15s;
}
html[data-layout="clean"] a.cl-biz-go:hover { background: var(--paper-4); border-color: var(--cl-line); }
html[data-layout="clean"] .cl-biz-go b { display: block; font-size: 17px; font-weight: 600; }
html[data-layout="clean"] .cl-biz-go span span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* Every page of this section, before its answer lands: the classic held
   frame (public/panel.js) dressed as the page it is about to become. */
html[data-layout="clean"] .panel.cl-biz-hold {
  display: flex; flex-direction: column; gap: 14px; justify-content: flex-start;
  min-height: 0; padding: 0;
  background: none; box-shadow: none; border: 0; border-radius: 0; color: var(--ink-2);
}
html[data-layout="clean"] .cl-biz-hold > .panel-head,
html[data-layout="clean"] .cl-biz-hold > .panel-steps { display: none; }
html[data-layout="clean"] .cl-biz-hold > .panel-line {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 22px; font-size: 16.5px;
}
html[data-layout="clean"] .cl-biz-hold > .panel-line .pl-label { color: var(--ink-2); }
html[data-layout="clean"] .cl-biz-hold > .panel-line .lamp { width: 9px; height: 9px; border: 0; border-radius: 2px; background: var(--amber); }

/* A folded part of a page: one quiet line until it is opened. */
html[data-layout="clean"] .cl-biz .cl-card.cl-fold { padding-top: 0; padding-bottom: 0; gap: 0; }
html[data-layout="clean"] .cl-fold > summary,
html[data-layout="clean"] .cl-fit > summary {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  min-height: 52px; box-sizing: border-box; padding: 14px 26px 14px 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-text); font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--ink);
}
html[data-layout="clean"] .cl-fold > summary::before,
html[data-layout="clean"] .cl-fit > summary::before { content: none; display: none; }
html[data-layout="clean"] .cl-fold > summary::-webkit-details-marker,
html[data-layout="clean"] .cl-fit > summary::-webkit-details-marker { display: none; }
html[data-layout="clean"] .cl-fold > summary::after,
html[data-layout="clean"] .cl-fit > summary::after {
  content: ""; position: absolute; right: 3px; top: 21px; width: 8px; height: 8px;
  border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .18s;
}
html[data-layout="clean"] .cl-fold[open] > summary::after,
html[data-layout="clean"] .cl-fit[open] > summary::after { transform: rotate(-135deg); top: 25px; }
html[data-layout="clean"] .cl-fold-word { font-size: 16px; font-weight: 600; color: var(--ink); }
html[data-layout="clean"] .cl-fold-say { font-size: 15px; color: var(--muted); }
html[data-layout="clean"] .cl-fold > summary:hover .cl-fold-word { text-decoration: underline; text-underline-offset: 4px; }
html[data-layout="clean"] .cl-fold-body { display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; }
html[data-layout="clean"] .cl-fold.in-card { border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-biz .cl-card.cl-tlink { padding-bottom: 4px; }
html[data-layout="clean"] .cl-tlink > [data-drawer] { padding-bottom: 16px; }

/* Fields inside a card or a drawer. */
html[data-layout="clean"] .cl-form label { font-size: 15.5px; font-weight: 600; color: var(--ink); }
html[data-layout="clean"] .cl-biz input[type="text"],
html[data-layout="clean"] .cl-biz textarea,
html[data-layout="clean"] .cl-biz select {
  background: var(--surface); border: 1px solid var(--cl-line); border-radius: var(--radius-btn);
  font-family: var(--font-text); font-size: 16.5px; line-height: 1.45; color: var(--ink);
}
html[data-layout="clean"] .cl-biz textarea { min-height: 0; }
html[data-layout="clean"] .cl-biz .cl-drawer.cl-form { gap: 8px; }
html[data-layout="clean"] .cl-biz .cl-drawer.cl-form input { margin-bottom: 6px; }
html[data-layout="clean"] .cl-biz .cl-drawer.cl-form .cl-drawer-acts { padding-top: 6px; }

/* The work meter (the machine's face and its bar while it writes) was
   drawn for the dark panel; on a white card its tokens point at ink. */
html[data-layout="clean"] .cl-biz .wm {
  --wm-ink: var(--ink);
  --wm-quiet: var(--muted);
  --wm-track: var(--rule);
  --wm-fill: var(--accent);
}

/* ============================================================
   THE MARKET READ
   ============================================================ */
html[data-layout="clean"] .cl-read > .cl-card-head { flex-wrap: nowrap; }
html[data-layout="clean"] .cl-read-kicker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; min-height: 26px; }
html[data-layout="clean"] .cl-read-lead { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.22; text-wrap: balance; }
html[data-layout="clean"] .cl-read-lead.plain { font-size: 23px; }
html[data-layout="clean"] .cl-read .cl-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 4px; padding-top: 14px; }
html[data-layout="clean"] .cl-read .cl-stat-n { font-size: 20px; }
html[data-layout="clean"] .cl-read-next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  border-top: 1px solid var(--rule-soft); padding-top: 16px;
}
html[data-layout="clean"] .cl-read .wm { width: 100%; }
html[data-layout="clean"] .cl-biz-box { height: 100%; box-sizing: border-box; }

html[data-layout="clean"] .cl-fit-list.is-stale { opacity: 0.55; }
html[data-layout="clean"] .cl-fit { border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-fit-list > .cl-fit:first-child { border-top: 0; }
html[data-layout="clean"] .cl-biz .cl-card.cl-fits { padding-bottom: 8px; gap: 4px; }
html[data-layout="clean"] .cl-fit > summary,
html[data-layout="clean"] .cl-fit-head { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
html[data-layout="clean"] .cl-fit-head { padding: 14px 0; }
html[data-layout="clean"] .cl-fit-claim { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: pretty; }
html[data-layout="clean"] .cl-fit-verdict { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
html[data-layout="clean"] .cl-fit > summary:hover .cl-fit-claim { text-decoration: underline; text-decoration-color: var(--cl-line); text-underline-offset: 4px; }
html[data-layout="clean"] .cl-fit-more { display: flex; flex-direction: column; gap: 8px; padding: 0 0 18px; }
html[data-layout="clean"] .cl-fit-more p { margin: 0; max-width: 40em; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html[data-layout="clean"] .cl-fit-more p.who { color: var(--muted); }
html[data-layout="clean"] .cl-fit-say { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; background: var(--paper-4); border-radius: 6px; padding: 12px 16px 14px; }
html[data-layout="clean"] .cl-fit-say .cl-label { font-size: 11px; }
html[data-layout="clean"] .cl-fit-say p { font-size: 18px; font-weight: 600; color: var(--ink); }
html[data-layout="clean"] .cl-fit-plain { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-fit-plain li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 17.5px; line-height: 1.35; color: var(--ink); }
html[data-layout="clean"] .cl-fit-plain li:first-child { border-top: 0; }
html[data-layout="clean"] .cl-fit-plain .cl-lamp { position: relative; top: -1px; }
html[data-layout="clean"] .cl-fits > .cl-biz-row { padding-bottom: 12px; }

/* The whole read, as it came back: ordinary headings and lists. */
html[data-layout="clean"] .cl-read-md { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
html[data-layout="clean"] .cl-read-md h3,
html[data-layout="clean"] .cl-read-md h4,
html[data-layout="clean"] .cl-read-md h5,
html[data-layout="clean"] .cl-read-md h6 {
  font-family: var(--font-text); font-size: 17.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink);
  margin: 18px 0 6px; padding: 0; border: 0;
}
html[data-layout="clean"] .cl-read-md > :first-child { margin-top: 0; }
html[data-layout="clean"] .cl-read-md p { margin: 0 0 10px; max-width: 42em; }
html[data-layout="clean"] .cl-read-md ul,
html[data-layout="clean"] .cl-read-md ol { margin: 0 0 10px; padding-left: 22px; }
html[data-layout="clean"] .cl-read-md li { padding: 2px 0; }
html[data-layout="clean"] .cl-read-md b { color: var(--ink); }
html[data-layout="clean"] .cl-biz .market-recovery { display: flex; flex-direction: column; gap: 10px; }
html[data-layout="clean"] .cl-biz .market-recovery .meta { font-family: var(--font-text); font-size: 15.5px; color: var(--ink-2); }
html[data-layout="clean"] .cl-biz .market-recovery .btn { align-self: flex-start; width: auto; }

/* ---------- the read while it is being made, and the write page ---------- */
html[data-layout="clean"] .cl-mw-state { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
html[data-layout="clean"] .cl-mw-pct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
html[data-layout="clean"] .cl-mw-pct b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 46px; font-weight: 500; line-height: 1; color: var(--ink); }
html[data-layout="clean"] .cl-mw-pct span { font-size: 16.5px; color: var(--ink-2); }
html[data-layout="clean"] .cl-mw-pct .pl-value { margin: 0; }
html[data-layout="clean"] .cl-mw-title { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.22; color: var(--ink); text-wrap: balance; }
html[data-layout="clean"] .cl-mw .mw-bar { height: 6px; border-radius: 3px; background: var(--paper-2); }
html[data-layout="clean"] .cl-mw .mw-bar i { background: var(--accent); }
html[data-layout="clean"] .cl-mw .pcar-bar { background: var(--paper-2); }
html[data-layout="clean"] .cl-mw .mw-count { font-size: 14px; color: var(--ink); }
html[data-layout="clean"] .cl-mw .mw-stage,
html[data-layout="clean"] .cl-mw .mw-note { font-family: var(--font-text); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
html[data-layout="clean"] .cl-mw-switchrow { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--rule-soft); padding-top: 16px; margin-top: 4px; }
html[data-layout="clean"] .cl-mw-switchrow .cl-switch { margin-left: 0; }
html[data-layout="clean"] .cl-mw-switchsay { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-layout="clean"] .cl-mw-switchsay b { font-size: 16.5px; font-weight: 600; color: var(--ink); }
html[data-layout="clean"] .cl-mw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html[data-layout="clean"] .cl-mw-next { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--rule-soft); padding-top: 14px; }
html[data-layout="clean"] .cl-mw-nextrow { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 16.5px; color: var(--ink); text-decoration: none; }
html[data-layout="clean"] .cl-mw-nextrow:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
html[data-layout="clean"] .cl-mw .pat-ctl { justify-content: flex-start; min-height: 0; }
html[data-layout="clean"] .cl-mw .pat-link {
  font-family: var(--font-text); font-size: 15.5px; font-weight: 600; letter-spacing: normal; text-transform: none;
  color: var(--ink-2); border-bottom-color: var(--cl-line);
}
html[data-layout="clean"] .cl-mw .pat-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
html[data-layout="clean"] .cl-mw .pat-link:focus-visible { outline-color: var(--accent); }
html[data-layout="clean"] .cl-mw .pat-when { font-size: 14px; color: var(--ink-2); }
html[data-layout="clean"] .cl-mw .pat-when .lamp { width: 9px; height: 9px; border: 0; border-radius: 2px; }

/* ============================================================
   THE OPPORTUNITY SCORE
   ============================================================ */
html[data-layout="clean"] .cl-score-num { display: flex; align-items: baseline; gap: 12px; }
html[data-layout="clean"] .cl-score-num b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 68px; font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); }
html[data-layout="clean"] .cl-score-num span { font-size: 17px; color: var(--ink-2); }
html[data-layout="clean"] .cl-score-meter { height: 10px; border-radius: 5px; overflow: hidden; background: var(--paper-2); }
html[data-layout="clean"] .cl-score-meter i { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .5s cubic-bezier(.3, .7, .25, 1); }
html[data-layout="clean"] .cl-biz .cl-card.cl-levers { padding-left: 0; padding-right: 0; padding-bottom: 6px; gap: 0; }
html[data-layout="clean"] .cl-levers > .cl-card-head { padding: 0 var(--cl-pad) 10px; }
html[data-layout="clean"] .cl-lever {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 3px; align-items: start;
  padding: 14px var(--cl-pad); border-top: 1px solid var(--rule-soft);
  color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
html[data-layout="clean"] a.cl-lever:hover { background: var(--paper-4); color: var(--ink); }
html[data-layout="clean"] .cl-lever > .cl-lamp { margin-top: 8px; }
html[data-layout="clean"] .cl-lever > .cl-biz-chev { align-self: center; }
html[data-layout="clean"] .cl-lever-main { grid-column: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-layout="clean"] .cl-lever-name { font-size: 17.5px; font-weight: 600; line-height: 1.3; }
html[data-layout="clean"] .cl-lever-detail { font-size: 15px; line-height: 1.4; color: var(--muted); }
html[data-layout="clean"] .cl-lever-pts { grid-column: 2; grid-row: 2; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
html[data-layout="clean"] .cl-lever > .cl-biz-chev { grid-column: 3; grid-row: 1 / span 2; }
html[data-layout="clean"] .cl-gear { display: flex; flex-direction: column; padding: 0 var(--cl-pad) 10px calc(var(--cl-pad) + 23px); }
html[data-layout="clean"] .cl-gear-item { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16.5px; color: var(--ink); cursor: pointer; }
html[data-layout="clean"] .cl-gear-item input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
html[data-layout="clean"] .cl-gear-name { flex: 1 1 auto; min-width: 0; }
html[data-layout="clean"] .cl-gear-item:hover .cl-gear-name { text-decoration: underline; text-decoration-color: var(--cl-line); text-underline-offset: 4px; }
/* Competitors identified: folded at the foot of the page, one line each. */
html[data-layout="clean"] .cl-rivals-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-rival { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-rival:first-child { border-top: 0; padding-top: 0; }
html[data-layout="clean"] .cl-rival-name { flex: 1 1 200px; min-width: 0; font-size: 16.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-rival-facts { font-size: 15px; color: var(--muted); }

/* ============================================================
   SAVED TO FILM LATER
   ============================================================ */
html[data-layout="clean"] .cl-biz .cl-card.cl-later { padding-bottom: 8px; }
html[data-layout="clean"] .cl-later-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-later-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 13px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-later-main { flex: 1 1 calc(100% - 60px); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-layout="clean"] .cl-later-title { font-size: 17.5px; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: pretty; }
html[data-layout="clean"] .cl-later-how { font-size: 15px; color: var(--muted); }
html[data-layout="clean"] .cl-later-row > .cl-btn2 { margin-left: 46px; }
/* The tick: a hollow ring (not done), filled green with its check when done. */
html[data-layout="clean"] .cl-tick {
  flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1.8px solid var(--muted); color: var(--ink);
  transition: background-color .15s, border-color .15s;
}
html[data-layout="clean"] .cl-tick svg { width: 18px; height: 18px; opacity: 0; transition: opacity .15s; }
html[data-layout="clean"] .cl-tick:hover { border-color: var(--ink); background: var(--paper-4); }
html[data-layout="clean"] .cl-tick:hover svg { opacity: 0.55; }
html[data-layout="clean"] .cl-later-row.done .cl-tick { background: var(--cl-lamp-ok); border-color: var(--cl-lamp-ok); color: #fffdf7; }
html[data-layout="clean"] .cl-later-row.done .cl-tick svg { opacity: 1; }
html[data-layout="clean"] .cl-later-row.done .cl-later-title { color: var(--muted); text-decoration: line-through; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
html[data-layout="clean"] .cl-tcard-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
html[data-layout="clean"] .cl-tcard-top .cl-biz-state { min-height: 28px; }
html[data-layout="clean"] .cl-tcard-body { display: flex; flex-direction: column; gap: 12px; }
html[data-layout="clean"] .cl-tcard-body:empty { display: none; }
/* The finished ad, to watch before approving it: portrait, as filmed. */
html[data-layout="clean"] .cl-tspot { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--panel); object-fit: contain; }
html[data-layout="clean"] .cl-tcard .cl-fold.in-card { margin-top: 2px; }
html[data-layout="clean"] .cl-tcard [data-said-body] .cl-answers { border-top: 0; padding-top: 0; }
html[data-layout="clean"] .cl-answers { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--rule-soft); padding-top: 18px; }
html[data-layout="clean"] .cl-answer { display: flex; flex-direction: column; gap: 12px; }
html[data-layout="clean"] .cl-answer-video { flex: none; width: 120px; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--panel); object-fit: cover; }
html[data-layout="clean"] .cl-answer-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
html[data-layout="clean"] .cl-answer-q { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--muted); }
html[data-layout="clean"] .cl-answer-said { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
html[data-layout="clean"] .cl-answer-said.none { font-size: 16.5px; color: var(--muted); }
html[data-layout="clean"] .cl-pick { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
html[data-layout="clean"] .cl-pick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
html[data-layout="clean"] .cl-copy { display: flex; flex-direction: column; gap: 10px; }
html[data-layout="clean"] .cl-biz .cl-copy input { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); background: var(--paper-4); text-overflow: ellipsis; }
html[data-layout="clean"] .cl-copy .btn { flex: none; }
html[data-layout="clean"] .cl-tlink.is-off .cl-biz-name { color: var(--muted); }
html[data-layout="clean"] .cl-tlink-row { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--rule-soft); padding-top: 14px; }
html[data-layout="clean"] .cl-tlink-row .cl-switch { margin-left: 0; }
html[data-layout="clean"] .cl-tlink-say { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; color: var(--muted); }
html[data-layout="clean"] .cl-tlink-say b { font-size: 16.5px; font-weight: 600; color: var(--ink); }
html[data-layout="clean"] .cl-biz .cl-card.cl-settled { gap: 0; padding-bottom: 6px; }
html[data-layout="clean"] .cl-settled > .cl-card-head { padding-bottom: 8px; }
html[data-layout="clean"] .cl-settled-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 13px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-settled > .cl-settled-row:first-child { border-top: 0; padding-top: 0; }
html[data-layout="clean"] .cl-settled-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--muted); }
html[data-layout="clean"] .cl-settled-main b { font-size: 17.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* ============================================================
   REPORT A PROBLEM
   ============================================================ */
html[data-layout="clean"] .cl-report-status { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
html[data-layout="clean"] .cl-report-timer { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); }
html[data-layout="clean"] .cl-report-list:empty { display: none; }
html[data-layout="clean"] .cl-biz .cl-card.cl-report-write { gap: 10px; }

/* ============================================================
   PHOTOS OR VIDEO YOU ALREADY HAVE
   The picker, the trimmer and the lists are built by views/footage.js;
   their classic classes are restated for a white card.
   ============================================================ */
html[data-layout="clean"] .cl-sources { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
html[data-layout="clean"] .cl-source {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--cl-line); border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--font-text);
  transition: background-color .15s, border-color .15s, transform .1s;
}
html[data-layout="clean"] .cl-source:hover { background: var(--paper-4); border-color: var(--ink); }
html[data-layout="clean"] .cl-source:active { transform: translateY(1px); }
html[data-layout="clean"] .cl-source svg { flex: none; width: 30px; height: 30px; color: var(--ink-2); }
html[data-layout="clean"] .cl-source b { display: block; font-size: 17.5px; font-weight: 600; line-height: 1.3; }
html[data-layout="clean"] .cl-source span span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
html[data-layout="clean"] .cl-footage .footage-work:empty { display: none; }
html[data-layout="clean"] .cl-footage .trimmer { margin-top: 4px; border-top: 1px solid var(--rule-soft); padding-top: 18px; }
html[data-layout="clean"] .cl-footage .trim-video { display: block; width: 100%; max-width: 420px; max-height: 60vh; border-radius: 6px; background: var(--panel); }
html[data-layout="clean"] .cl-footage .trim-range > span,
html[data-layout="clean"] .cl-footage .sheet-head { font-size: 12px; color: var(--muted); }
html[data-layout="clean"] .cl-footage .trim-range input[type="range"] { accent-color: var(--ink); }
html[data-layout="clean"] .cl-footage .card { margin: 10px 0 0; padding: 14px 16px; background: var(--paper-4); border: 0; border-radius: 6px; box-shadow: none; }
html[data-layout="clean"] .cl-footage .meta { font-family: var(--font-text); font-size: 15.5px; line-height: 1.45; letter-spacing: normal; text-transform: none; color: var(--ink-2); }
html[data-layout="clean"] .cl-footage h3 { font-size: 21px; font-weight: 700; color: var(--ink); }
html[data-layout="clean"] .cl-footage .trimmer > .btn,
html[data-layout="clean"] .cl-footage .footage-work > .btn { width: auto; align-self: flex-start; margin-right: 10px; }
html[data-layout="clean"] .cl-footage .progressbar { height: 6px; border-radius: 3px; background: var(--paper-2); }
html[data-layout="clean"] .cl-footage .fb-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 620px) {
  html[data-layout="clean"] .cl-biz-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px 24px; }
  html[data-layout="clean"] .cl-biz-row > .cl-biz-say,
  html[data-layout="clean"] .cl-biz-row > .cl-biz-meta,
  html[data-layout="clean"] .cl-biz-row > .cl-report-status { flex: 1 1 auto; min-width: 0; }
  html[data-layout="clean"] .cl-biz-row > .btn,
  html[data-layout="clean"] .cl-biz-row > .cl-btn2,
  html[data-layout="clean"] .cl-biz-row > .cl-biz-acts { flex: none; }
  html[data-layout="clean"] .cl-read-next { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px 24px; }
  html[data-layout="clean"] .cl-lever { grid-template-columns: 9px minmax(0, 1fr) auto 18px; }
  html[data-layout="clean"] .cl-lever-pts { grid-column: 3; grid-row: 1; }
  html[data-layout="clean"] .cl-lever > .cl-biz-chev { grid-column: 4; grid-row: 1; }
  html[data-layout="clean"] .cl-gear { padding-right: calc(var(--cl-pad) + 32px); }
  html[data-layout="clean"] .cl-later-row { flex-wrap: nowrap; }
  html[data-layout="clean"] .cl-later-main { flex: 1 1 auto; }
  html[data-layout="clean"] .cl-later-row > .cl-btn2 { margin-left: 0; }
  html[data-layout="clean"] .cl-answer { flex-direction: row; gap: 20px; align-items: flex-start; }
  html[data-layout="clean"] .cl-answer-video { width: 150px; }
  html[data-layout="clean"] .cl-copy { flex-direction: row; align-items: center; }
  html[data-layout="clean"] .cl-sources { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (min-width: 760px) {
  html[data-layout="clean"] .cl-biz-pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (min-width: 900px) {
  html[data-layout="clean"] .view:has(.cl-biz),
  html[data-layout="clean"] .view:has(.cl-biz-hold) { max-width: 880px; padding: 32px 40px 48px; }
  html[data-layout="clean"] .cl-biz { --cl-pad: 26px; gap: 20px; }
  html[data-layout="clean"] .panel.cl-biz-hold { gap: 20px; }
  html[data-layout="clean"] .cl-biz-stack,
  html[data-layout="clean"] .cl-biz-pair { gap: 20px; }
  html[data-layout="clean"] .cl-biz .cl-card:not(.cl-empty) { padding-top: 20px; padding-bottom: 24px; }
  html[data-layout="clean"] .cl-biz .cl-card.cl-levers,
  html[data-layout="clean"] .cl-biz .cl-card.cl-fits,
  html[data-layout="clean"] .cl-biz .cl-card.cl-later,
  html[data-layout="clean"] .cl-biz .cl-card.cl-settled { padding-bottom: 8px; }
  html[data-layout="clean"] .cl-biz .cl-card.cl-tlink { padding-bottom: 4px; }
  html[data-layout="clean"] .cl-biz .cl-card.cl-fold { padding-top: 0; padding-bottom: 0; }
  html[data-layout="clean"] .cl-biz-sub { margin-top: -10px; }
  html[data-layout="clean"] .cl-read-lead { font-size: 32px; }
  /* A difference and its verdict share a line; a long one wraps inside itself. */
  html[data-layout="clean"] .cl-fit > summary,
  html[data-layout="clean"] .cl-fit-head { flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 24px; }
  html[data-layout="clean"] .cl-fit > summary { padding-right: 34px; }
  html[data-layout="clean"] .cl-fit-claim { flex: 1 1 0; min-width: 0; }
  html[data-layout="clean"] .cl-fit-verdict { flex: none; }
  html[data-layout="clean"] .cl-read-lead.plain { font-size: 25px; }
  html[data-layout="clean"] .cl-score-num b { font-size: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-layout="clean"] .cl-score-meter i,
  html[data-layout="clean"] .cl-tick,
  html[data-layout="clean"] .cl-tick svg,
  html[data-layout="clean"] .cl-fold > summary::after,
  html[data-layout="clean"] .cl-fit > summary::after { transition: none; }
}
@media (max-width: 619.98px) {
  /* A link on a phone: its name, then whether it is on with the switch at
     the right edge, the way the Ads cards stack. */
  html[data-layout="clean"] .cl-tlink .cl-biz-corner { width: 100%; }
  html[data-layout="clean"] .cl-tlink .cl-biz-corner .cl-switch { margin-left: auto; }
  /* A testimonial the same way: its name, then where it stands with the
     three dots at the right edge. */
  html[data-layout="clean"] .cl-tcard .cl-biz-corner { width: 100%; }
  html[data-layout="clean"] .cl-tcard .cl-biz-corner .cl-dots { margin-left: auto; }
}
/* The Page picker lays its tiles out inline; three across on a phone. */
html[data-layout="clean"] .cl-footage .fb-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important; }
/* ============================================================
   TO FILM, ADDING FOOTAGE AND THE LIBRARY (Basecamp 10493044094)
   ============================================================ */
/* Importance: bars and words, never colour alone. Three green bars for a shot
   three or more ads want, two amber for two, one red for one. */
html[data-layout="clean"] .cl-want-bars { flex: none; display: inline-flex; align-items: flex-end; gap: 2px; width: 20px; height: 18px; margin-top: 4px; }
html[data-layout="clean"] .cl-want-bars i { display: block; width: 5px; border-radius: 1px; background: var(--rule-soft); }
html[data-layout="clean"] .cl-want-bars i:nth-child(1) { height: 7px; }
html[data-layout="clean"] .cl-want-bars i:nth-child(2) { height: 12px; }
html[data-layout="clean"] .cl-want-bars i:nth-child(3) { height: 18px; }
html[data-layout="clean"] .cl-want-bars.high i.on { background: var(--cl-lamp-ok); }
html[data-layout="clean"] .cl-want-bars.mid i.on { background: var(--amber); }
html[data-layout="clean"] .cl-want-bars.low i.on { background: var(--accent); }
html[data-layout="clean"] .cl-biz .cl-card.cl-tofilm { padding-bottom: 8px; }
html[data-layout="clean"] .cl-tofilm-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-tofilm-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 8px 14px; padding: 14px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-tofilm-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html[data-layout="clean"] .cl-tofilm-name { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
/* A shot's name opens the how-to card at the pointer, as on Scripts. */
html[data-layout="clean"] .cl-tofilm-name[data-how] { align-self: flex-start; cursor: help; outline-offset: 3px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html[data-layout="clean"] .cl-tofilm-name[data-how]:hover { color: var(--accent-deep); }
html[data-layout="clean"] .cl-library-add .cl-library-add-body { display: flex; flex-direction: column; gap: 12px; }
html[data-layout="clean"] .cl-library-add .cl-library-add-body[hidden] { display: none; }
html[data-layout="clean"] .cl-library-filter:empty { display: none; }
html[data-layout="clean"] .cl-tofilm-want { font-size: 15px; font-weight: 600; }
html[data-layout="clean"] .cl-tofilm-want.high { color: var(--cl-lamp-ok); }
html[data-layout="clean"] .cl-tofilm-want.mid { color: var(--amber); }
html[data-layout="clean"] .cl-tofilm-want.low { color: var(--muted); font-weight: 400; }
html[data-layout="clean"] .cl-tofilm-how { margin-top: 2px; }
html[data-layout="clean"] .cl-tofilm-how > summary { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; list-style: none; cursor: pointer; font-family: var(--font-text); font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--ink-2); }
html[data-layout="clean"] .cl-tofilm-how > summary::-webkit-details-marker { display: none; }
html[data-layout="clean"] .cl-tofilm-how > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-layout="clean"] .cl-tofilm-how > p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html[data-layout="clean"] .cl-tofilm-acts { grid-column: 2; display: flex; align-items: center; gap: 6px; position: relative; }
html[data-layout="clean"] .cl-tofilm-acts .cl-btn2 { gap: 9px; }
html[data-layout="clean"] .cl-tofilm-foot { padding: 12px 0 10px; border-top: 1px solid var(--rule-soft); }

/* The add-footage page: what the server holds every clip to, first. */
html[data-layout="clean"] .cl-footage-checks { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; gap: 8px; }
html[data-layout="clean"] .cl-footage-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink); }
html[data-layout="clean"] .cl-footage-checks li:first-child { font-weight: 600; }
html[data-layout="clean"] .cl-footage-checks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--cl-lamp-ok); }
html[data-layout="clean"] .cl-shotcover-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-shotcover-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-shotcover-list .cl-lamp { margin-top: 7px; }
html[data-layout="clean"] .cl-shotcover-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-layout="clean"] .cl-shotcover-name { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-shotcover .cl-biz-acts .cl-btn2 { gap: 9px; }
html[data-layout="clean"] .cl-footage .wm { margin-top: 12px; }
html[data-layout="clean"] .cl-readclips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html[data-layout="clean"] .cl-readclips li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
html[data-layout="clean"] .cl-readclips span { font-size: 15px; color: var(--muted); }

/* The library. */
html[data-layout="clean"] .cl-library input[type="search"] { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--cl-line); border-radius: 6px; box-sizing: border-box; }
html[data-layout="clean"] .cl-library input[type="search"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
html[data-layout="clean"] .cl-library-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-library-empty { padding: 14px 0 6px; font-size: 16px; color: var(--muted); }
html[data-layout="clean"] .cl-clip { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-library-list > .cl-clip:first-child { border-top: 0; }
html[data-layout="clean"] .cl-clip video { width: 64px; height: 86px; object-fit: cover; border-radius: 6px; background: var(--paper-4); cursor: pointer; }
html[data-layout="clean"] .cl-clip-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html[data-layout="clean"] .cl-clip-title { font-size: 17.5px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-clip-said { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-clip-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; }
html[data-layout="clean"] .cl-clip-tags span { padding: 1px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--paper-4); border-radius: 999px; }
html[data-layout="clean"] .cl-clip > .cl-quiet { align-self: start; display: inline-flex; align-items: center; gap: 6px; }
html[data-layout="clean"] .cl-clip-pen { width: 16px; height: 16px; flex: none; }
html[data-layout="clean"] .cl-clip-drawer { grid-column: 1 / -1; }
html[data-layout="clean"] .cl-clip-drawer input[type="text"] { width: 100%; box-sizing: border-box; }
@media (min-width: 620px) {
  html[data-layout="clean"] .cl-tofilm-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  html[data-layout="clean"] .cl-tofilm-acts { grid-column: 3; grid-row: 1; justify-content: flex-end; }
}
/* Adding many files at once (Jason, 2026-11-09): one row per file while
   they go in, then each clip as the machine named it. */
html[data-layout="clean"] .cl-footage.cl-drop-on { outline: 2px dashed var(--ink-2); outline-offset: -6px; }
html[data-layout="clean"] .cl-batch { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
html[data-layout="clean"] .cl-batch-list { list-style: none; margin: 0; padding: 0; }
html[data-layout="clean"] .cl-batch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
html[data-layout="clean"] .cl-batch-name { flex: 1 1 200px; min-width: 0; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
html[data-layout="clean"] .cl-batch-state { font-size: 15px; color: var(--muted); }
html[data-layout="clean"] .cl-batch-row.done .cl-batch-state { color: var(--cl-lamp-ok); font-weight: 600; }
html[data-layout="clean"] .cl-batch-row.long .cl-batch-state { color: var(--amber); font-weight: 600; }
html[data-layout="clean"] .cl-batch-row.problem .cl-batch-state { color: var(--accent-deep); }
html[data-layout="clean"] .cl-batch-acts { display: flex; align-items: center; gap: 12px; }
html[data-layout="clean"] .cl-batch-acts:empty { display: none; }
html[data-layout="clean"] .cl-batch-trim { flex: 1 1 100%; }
html[data-layout="clean"] .cl-batch-trim:empty { display: none; }
html[data-layout="clean"] .cl-clip-acts { display: flex; align-items: center; gap: 4px; position: relative; align-self: start; }
html[data-layout="clean"] .cl-clip-acts > .cl-quiet { display: inline-flex; align-items: center; gap: 6px; }
html[data-layout="clean"] .cl-clip-shots { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
html[data-layout="clean"] .cl-clip-shot-list { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-layout="clean"] .cl-chip { min-height: 36px; padding: 6px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--cl-line); border-radius: 8px; cursor: pointer; text-align: left; line-height: 1.3; }
html[data-layout="clean"] .cl-chip:hover { background: var(--paper-4); border-color: var(--ink); }
html[data-layout="clean"] .cl-chip:disabled { opacity: 0.6; cursor: default; }
