/* public/karte-page.css — THE ONE KARTE PAGE'S OWN BASE STYLES (Ken's yes 2026-11-21 11:34 JST, card
   ksec-2026-11-21-1118-f07444: "one karte page, the CRM as the base"; COURIER 2026-11-21_1135).
   The rules the karte page (public/screen-log-service.js) needs that no other screen uses, moved here WORD FOR WORD
   from app.css so the Training app can load the same file (pinned there, like the page itself): the perm and straight
   perm bowl rows and the named photo boxes. Loaded right after app.css (index.html), before every look-v2*.css, so
   every rule keeps the place it had in the cascade; proved by pictures of the karte, old look and new, byte-identical
   before and after the move. A karte-only rule that Training also needs goes HERE, never into app.css.
   Moved as they were (a few px minimums included); nothing reworded. */

/* Agent bowls (135th, 2026-09-04 — Akane Suzuki's ボウルごとに記入 + Ken's grams/ml).
   The agent card is the colour bowl card's twin, so it inherits .formula-bowl-card and
   only names what differs: its own product rows and the two notation toggles. */
.formula-agent-rows{
  display:flex;flex-direction:column;gap:var(--space-3);
  margin-bottom:var(--space-3);
}
/* ⚠ A row inside a bowl is a COLUMN, exactly like .formula-comp-row — the product line
   above, the strength/ratio/amount line below. Without this it inherits .formula-shade-row's
   flex ROW and the product name collapses to a sliver while the amount runs off the card.
   That is what the first screenshots of this feature showed, and only LOOKING at them
   caught it: every machine check was green (fonts right, no document overflow — the box
   overflowed its own card, not the page). */
.formula-agent-row{
  flex-direction:column;align-items:stretch;gap:var(--space-2);
}
.formula-agent-row .formula-field-wrap{
  margin-bottom:0;
}
/* The second line has FOUR children where the colour row has three, so each one names its
   share instead of fighting for it: strength is the widest (it carries words like "mild"),
   the two numbers are equal and narrow, the remove button never shrinks. */
/* …and, per the number-box note above, each one names a MINIMUM too: the amount box was
   free to shrink under its own text, so a 3-digit gram figure clipped inside the box. */
.formula-agent-row .formula-agent-strength{ flex:2;min-width:72px; }
.formula-agent-row .formula-agent-ratio,
.formula-agent-row .formula-agent-grams{ flex:1;min-width:64px; }
.formula-agent-row .formula-agent-row-remove{ flex:0 0 auto; }
.formula-agent-ratio-bar{
  flex-wrap:wrap;gap:var(--space-3);
}

/* Named photo shots (181st, 2026-09-11) — one box per named shot under the free photo strip.
   Four columns in every group so a box is the same size whether the group has 4, 2 or 1. */
.photo-shots{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-4);}
.photo-shots:empty{display:none;}
.photo-shots-head{margin-bottom:var(--space-2);font-size:var(--caption-size);font-weight:600;color:var(--text2);}
.photo-shots-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2);}
.photo-shot-cell{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;}
.photo-shot-cap{font-size:var(--caption-size);line-height:1.3;color:var(--text2);overflow-wrap:anywhere;}

/* The ratio (%/1:1) and unit (g/ml) toggles — a compact segmented pair, the vol/% control's
   idiom. Zero the page-level .chips-row gutter so they sit on the ratio bar's own line. */
/* ⊕ 2026-11-21 (the one karte page, the four fixes seen on show-20261121-193433): moved here word for word from app.css.
   Training's own .chips-row gives every chips row 20 px of side padding; without this rule its perm ratio buttons sat
   20 px in from the card's words. */
.formula-unit-toggle{
  padding:0;flex:0 0 auto;gap:var(--space-1);
}
.formula-unit-toggle .chip{
  min-width:38px;text-align:center;
}

/* ⊕ 2026-11-21 (the one karte page looks the same in both apps; seen on show-20261121-193433): the chips keep their own
   letters ("Roots", never "ROOTS") and the CRM's soft grey with dark words, in both apps, under the new look only. The
   CRM gets both from look-rb.css (html.look-rb), which Training never loads, so Training's own .chip rule wrote VOL, ML,
   ROOTS, PERCENT in capitals and its .chip-toggle drew grey words on a darker grey. :where() keeps each rule at ONE class,
   below the CRM's look-rb ones, so the CRM draws exactly as before; they only win over Training's own one-class rules,
   which load before this file. A chosen chip keeps the app's pink (look-v2.css .chip.active). */
:where(html.look-v2 #page-log-service) .chip{text-transform:none;}
:where(html.look-v2 #page-log-service) .chip-toggle:where(:not(.active):not(.on)){background:var(--fill-tint,#F2F2F7);color:var(--text,#1A1A1A);}

/* THE STRAND TEST LINE + THE RELAXER / BLEACH WARNING (Ken's "yes" 2026-12-01 15:16 JST; COURIER 2026-12-01_1517;
   built hidden behind STRAND_TEST — off, none of these elements exist). Here, not in app.css, because the karte page is
   one page with Training. Ken's look rules: a warning is a soft tint and an icon, never an edge bar; nothing black for
   a chosen state; a label sits above its answer; a list is rows. Text 14. Tints = the guest card's safety box. */
.strand-warns{display:flex;flex-direction:column;gap:8px;margin:0 var(--gutter,16px) 12px;}   /* in line with the cards (tokens.css --gutter) */
.strand-warns:empty{display:none;}
.strand-warn{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;}
.strand-warn--red{background:#FDECEC;}
.strand-warn--amber{background:#FFF4E5;}
.strand-warn-top{display:flex;align-items:center;gap:6px;font:700 14px/1.4 var(--font-sans);}
.strand-warn--red .strand-warn-top{color:#D70015;}
.strand-warn--amber .strand-warn-top{color:#B45309;}
.strand-warn-ic{display:inline-flex;flex-shrink:0;}
.strand-warn-line{font:400 14px/1.55 var(--font-sans);color:var(--text,#1a1a1a);overflow-wrap:anywhere;}
.strand-first{margin:0 0 4px;padding:10px 12px;border-radius:10px;background:#FFF4E5;}
.strand-first[hidden]{display:none;}
.strand-first-head{font:600 14px/1.5 var(--font-sans);color:#B45309;}
.strand-first-row{font:400 14px/1.55 var(--font-sans);color:var(--text,#1a1a1a);}
.strand-label{margin:12px 0 6px;font:600 13px/1.4 var(--font-sans);color:#6e6e73;}
.strand-card .strand-chips{flex-wrap:wrap;padding:0;}   /* the chips start under their label (no page padding inside a card) */
.strand-card .input{display:block;width:100%;box-sizing:border-box;}
.strand-reason-error{display:none;margin-top:6px;font:400 13px/1.4 var(--font-sans);color:#D70015;}
.strand-error .strand-reason-error{display:block;}
.strand-error .strand-reason{border-color:#D70015;}
