/* look-v2-h.css — H · THE KARTE'S COLOUR FORMULA, ONE CLEAR WAY (public/formula-v2.js). Ken's "yes" 2026-11-20 04:21
   JST; settled 'karte colour formula: ratio and grams on each line, the rest fills in'; COURIER 2026-11-20_0423.
   Every rule is scoped html.look-v2 (lib/look-switch.js LOOK_V2, unset = off): nobody sees it until Ken says switch
   it on. The one control sizes (settled 'one control size for every app'): text box 32 tall, small button 32, chip 30.
   No coloured line on any edge of anything (settled 'no coloured left line, every app'); a box that must stand out is
   a soft tint of the whole box. Chosen chips wear the app's pink (look-v2.css), never black. */

html.look-v2 .fv2-bowl{padding:14px 14px 12px;}
html.look-v2 .fv2-hdr{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;}
html.look-v2 .fv2-title{font:700 16px/1.3 var(--font-sans);color:var(--text,#1d1d1f);}
html.look-v2 .fv2-eye{padding:0;margin:12px 0 4px;text-transform:none;letter-spacing:0;font:600 13px/1.3 var(--font-sans);color:var(--text,#1d1d1f);}
html.look-v2 .fv2-bowl > .fv2-eye:first-of-type{margin-top:2px;}
html.look-v2 .fv2-hint,
html.look-v2 .fv2-zone-hint{margin:2px 0 10px;font:400 13px/1.45 var(--font-sans);color:#6e6e73;}
/* Ken 2026-11-20 08:2x on the zone chips: "more padding above and below the chips. and make the chips smaller"
   (COURIER 2026-11-20_0830). They were 30 tall with 4 px above and 2 px below; now 26 tall, words 12, with 12 px of room
   above (under 「このボウルを塗る場所」) and below (before the grey help line). The units row in the same bowl matches. */
html.look-v2 .fv2-zones{padding:0;margin:12px 0 12px;gap:6px;flex-wrap:wrap;}
html.look-v2 .fv2-zones .chip,
html.look-v2 #page-log-service .fv2-zones .chip-toggle{height:26px;min-height:26px;padding:0 10px;font-size:12px;line-height:1;}   /* the page-id line beats look-v2-b's karte chip rule (30 tall, 5px 12px) */

/* the lines: one per tube, then the developer — spacing between them, never a box inside the card */
html.look-v2 .fv2-lines{display:flex;flex-direction:column;gap:14px;margin:4px 0 6px;}
html.look-v2 .fv2-line{display:flex;flex-direction:column;gap:8px;min-width:0;}
html.look-v2 .fv2-line-name{font:600 13px/1.3 var(--font-sans);color:var(--text,#1d1d1f);}

/* a box with its label on top (.v2fl): the label is real text, 12 grey */
html.look-v2 .fv2-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;}
html.look-v2 .fv2-cap{font:500 12px/1.3 var(--font-sans);color:#6e6e73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.look-v2 .fv2-bowl input.input{height:32px;min-height:32px;box-sizing:border-box;border-radius:10px;font-size:14px;width:100%;min-width:0;}
html.look-v2 .fv2-prod{position:relative;display:flex;flex-direction:column;gap:4px;margin:0;}
html.look-v2 .fv2-cap-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:16px;}
html.look-v2 .fv2-cap-row .formula-comp-picked{height:22px;padding:0 8px;font-size:11px;font-weight:700;border-radius:999px;}

/* shade (or strength) · ratio · g · remove — the ratio and the g line up on every line, the developer's too.
   Number boxes may shrink but never clip a value (the 175th's rule): 64 px holds "120" and "0.3". */
html.look-v2 .fv2-amounts{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(64px,1fr) minmax(64px,1fr) 32px;gap:8px;align-items:end;}
html.look-v2 .fv2-strength{display:flex;align-items:flex-end;gap:6px;min-width:0;}
html.look-v2 .fv2-strength .fv2-field{flex:1 1 44px;}
html.look-v2 .fv2-field-strength .fv2-cap{overflow:visible;text-overflow:clip;}
html.look-v2 .fv2-dev-unit{padding:0;margin:0;gap:4px;flex-wrap:nowrap;flex-shrink:0;}
html.look-v2 .fv2-dev-unit .chip{height:32px;min-height:32px;padding:0 8px;font-size:12px;}
html.look-v2 .fv2-remove{width:32px;height:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#8e8e93;}

html.look-v2 .fv2-adds{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px;}
html.look-v2 .fv2-add{height:32px;min-height:32px;padding:0 12px;border-radius:10px;font-size:13px;display:inline-flex;align-items:center;box-sizing:border-box;}

/* the mix and the total — shown, never typed: a soft grey box, the numbers large */
html.look-v2 .fv2-mix{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#F5F5F7;}
html.look-v2 .fv2-mix-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;}
html.look-v2 .fv2-mix-label{font:500 12px/1.3 var(--font-sans);color:#6e6e73;}
html.look-v2 .fv2-mix-ratio{font:700 17px/1.3 var(--font-sans);font-variant-numeric:tabular-nums;color:var(--text,#1d1d1f);min-width:0;text-align:left;}
html.look-v2 .fv2-mix-total{font:600 15px/1.3 var(--font-sans);font-variant-numeric:tabular-nums;color:var(--text,#1d1d1f);}
html.look-v2 .fv2-mix-split{margin-top:2px;font:400 12px/1.4 var(--font-sans);color:#6e6e73;font-variant-numeric:tabular-nums;}
html.look-v2 .fv2-mix-empty{font:400 13px/1.45 var(--font-sans);color:#6e6e73;}

html.look-v2 .fv2-units{display:flex;flex-direction:column;gap:6px;margin:0 0 10px;}
html.look-v2 .fv2-units .formula-unit-toggle{padding:0;margin:0;gap:6px;flex-wrap:wrap;overflow:visible;}
html.look-v2 .fv2-units .chip,
html.look-v2 #page-log-service .fv2-units .chip-toggle{height:26px;min-height:26px;padding:0 10px;font-size:12px;line-height:1;}
html.look-v2 .fv2-time{max-width:180px;margin:0;}

/* 仕上がりメモ carries the same mic as メモ, in the same place under its box (Ken 04:10) */
html.look-v2 #page-log-service .log-result-card{position:relative;}

/* the catalog search list draws nothing while it is empty (its border showed as a thin grey line under the box) */
html.look-v2 .fv2-prod .gte-results:empty{display:none;}
/* 2026-11-20: the strength box was squeezed to ~26 px by its vol | % chips — the chips hug their words, the box keeps 44+ */
html.look-v2 .fv2-strength .fv2-field{min-width:44px !important;}
html.look-v2 .fv2-dev-unit{gap:4px;}
html.look-v2 .fv2-dev-unit .chip{min-width:28px !important;padding:0 6px !important;height:32px !important;min-height:32px !important;}

/* The product box is a search (Ken 2026-11-21 10:37 on the karte, "is there no selector of products??"; COURIER
   2026-11-21_1042): a small grey search mark inside it on the left, the same mark as the Clients search box, and
   'Search products' / 「薬剤を検索」 while it is empty (formula-v2.js). The colour bowl's box and the perm and straight
   perm product box both. */
html.look-v2 input.fv2-search{
  padding-left:34px !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
  background-repeat:no-repeat !important;background-position:11px center !important;background-size:16px 16px !important;
}

/* Perm rods (Ken 2026-11-21 11:29–11:31, "you should show the "mm" and the color that it reflcets"; COURIER
   2026-11-21_1132), drawn as Ken's Fable design ("looks good" 15:00, COURIER 2026-11-21_1502): the perm type first, then
   the area, then that type's rods as white tiles — the circle at its real size on a fixed 54 px stage, "Φ12", the
   colour's plain word under it; the whole tile is the button (58 × 82 at least, so the smallest rod keeps a full tap
   area). Every line starts on the page's margin (his note 2). A chosen chip or tile wears the app's pink, never black. */
/* the page's two edges, as every other karte section: words and chips on the text edge (35, the section names' own),
   the grey rod boxes on the card edge (16) like the cards above them, their heading and tiles back on the text edge */
html.look-v2 #log-rods{padding:0 var(--gutter,16px) 0 var(--v2-text-edge,35px);}
html.look-v2 #log-rods .chips-row{padding-left:0;padding-right:0;}
html.look-v2 #log-rods .rod-group{margin-left:calc(var(--gutter,16px) - var(--v2-text-edge,35px));padding:12px calc(var(--v2-text-edge,35px) - var(--gutter,16px));}
html.look-v2 .rod-lbl{display:block;font:500 12px/1.3 var(--font-sans);color:#6e6e73;margin:12px 0 6px;}
html.look-v2 #log-rods > .rod-lbl:first-child{margin-top:0;}
html.look-v2 .rod-types,
html.look-v2 .rod-machines,
html.look-v2 .rod-areas{display:flex;flex-wrap:wrap;gap:8px;margin:0;}
html.look-v2 .rod-machine-fixed{display:inline-flex;align-items:center;gap:6px;height:30px;font:600 12px/1 var(--font-sans);color:var(--text,#1d1d1f);}
html.look-v2 .rod-machine-fixed small{font:500 12px/1 var(--font-sans);color:#6e6e73;}
html.look-v2 .rod-dot{display:inline-block;flex:0 0 auto;width:14px;height:14px;border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);vertical-align:middle;}
html.look-v2 .rod-dot-none{background:#fff;box-shadow:none;border:1.5px dashed #8e8e93;box-sizing:border-box;}
html.look-v2 .rod-swatch{display:inline-block;flex:0 0 auto;width:26px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);}
html.look-v2 .rod-swatch-s{width:16px;height:10px;border-radius:3px;}
html.look-v2 .rod-area-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;margin-left:6px;
  padding:0 4px;border-radius:999px;background:#e3e3e8;color:#6e6e73;font:600 11px/1 var(--font-sans);}
html.look-v2 .chip.active .rod-area-count{background:#fff;color:var(--crm-ink,#C2185B);}
html.look-v2 .rod-picked{display:flex;flex-direction:column;gap:8px;margin:12px 0;}
html.look-v2 .rod-picked-area{display:flex;align-items:flex-start;gap:8px;}
html.look-v2 .rod-picked-name{flex:0 0 84px;font:600 13px/1.25 var(--font-sans);padding-top:8px;color:var(--text,#1d1d1f);}
html.look-v2 .rod-pills{display:flex;flex-wrap:wrap;gap:6px;min-width:0;}
html.look-v2 .rod-hint{margin:0;}
html.look-v2 .rod-pill{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 10px;border-radius:999px;
  border:1px solid var(--line,#e5e5ea);background:#fff;font:500 13px/1.2 var(--font-sans);color:var(--text,#1d1d1f);cursor:pointer;text-align:left;}
html.look-v2 .rod-pill-x{color:#8e8e93;font-size:15px;line-height:1;}
html.look-v2 .rod-note{margin:10px 0;font:400 12px/1.45 var(--font-sans);color:#6e6e73;}
html.look-v2 .rod-group{margin:0 0 8px;border-radius:12px;background:#f5f5f7;padding:12px;}
html.look-v2 .rod-group-head{margin:0 0 2px;font:600 13px/1.3 var(--font-sans);color:var(--text,#1d1d1f);}
html.look-v2 .rod-group .rod-note{margin:0 0 8px;}
html.look-v2 .rod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;margin-top:8px;}
html.look-v2 .rod-tile{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:82px;padding:3px 2px 8px;border-radius:12px;
  border:1px solid var(--line,#e5e5ea);background:#fff;cursor:pointer;color:var(--text,#1d1d1f);font:inherit;}
html.look-v2 .rod-stage{height:54px;display:flex;align-items:center;justify-content:center;}
html.look-v2 .rod-tile-mm{font:600 13px/1.1 var(--font-sans);font-variant-numeric:tabular-nums;}
html.look-v2 .rod-tile-cn,
html.look-v2 .rod-tile-sub{font:400 10.5px/1.15 var(--font-sans);color:#6e6e73;text-align:center;word-break:keep-all;overflow-wrap:normal;}
html.look-v2 .rod-tile.active{border-color:var(--crm-ink,#C2185B);background:#fce4ec;box-shadow:0 0 0 1px var(--crm-ink,#C2185B);}
html.look-v2 .rod-bg-add{display:flex;align-items:center;gap:6px;margin-top:8px;font:500 14px/1 var(--font-sans);}
html.look-v2 .rod-bg-add .rod-bg-mm{width:84px;flex:0 0 auto;height:32px;border-radius:10px;}
html.look-v2 .rod-bg-add .rod-bg-add-btn{margin:0;align-self:center;height:32px;min-height:32px;padding:0 12px;border-radius:10px;background:#fce4ec;color:var(--crm-ink,#C2185B);font:600 13px/1 var(--font-sans);}
/* the amount box with its g | mL switch beside it (Ken's note 7; text box and switch both 32 tall) */
html.look-v2 .fv2-amt{display:flex;align-items:flex-end;gap:6px;flex:1 1 120px;min-width:0;}
html.look-v2 .fv2-amt > .v2fl{flex:1 1 0;}
html.look-v2 .fv2-unit-seg{display:inline-flex;flex:0 0 auto;height:32px;border-radius:10px;background:#f2f2f7;padding:2px;box-sizing:border-box;}
html.look-v2 .fv2-unit-seg button{padding:0 12px;border:0;border-radius:8px;background:none;font:600 13px/1 var(--font-sans);color:#6e6e73;cursor:pointer;}
html.look-v2 .fv2-unit-seg button.active{background:var(--crm-ink,#C2185B);color:#fff;}
/* the saved karte's rod line: three fixed columns — the circle · the size · the colour word, LEFT aligned so every colour
   starts on one line down the card (Ken 14:55); a rod with no size on record spans the two word columns */
html.look-v2 .rf-line-rod{display:grid;grid-template-columns:26px 64px minmax(0,1fr);align-items:center;gap:8px;}
html.look-v2 .rf-line-rod + .rf-line-rod{margin-top:6px;}
html.look-v2 .rf-rod-ind{display:flex;justify-content:center;}
html.look-v2 .rf-rod-size{white-space:nowrap;}
html.look-v2 .rf-rod-rest{font-weight:400;color:#6e6e73;}
html.look-v2 .rf-rod-all{grid-column:2 / 4;}
/* Part B of the perm rod picker: the head drawings (Ken's word "after" 2026-11-21 20:42; his design page "looks good"
   15:00). Behind ROD_HEADS. A section is soft grey; one with rods pale pink; the chosen one deeper pink with the
   app's colour round it. A chosen switch half is the app's colour, never black. */
html.look-v2 .rod-head-card{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:12px 12px 14px;margin:0 0 4px;}
html.look-v2 .rod-head-top{display:flex;justify-content:center;}
html.look-v2 .rod-head-card .seg{display:inline-flex;height:36px;border-radius:10px;background:#f2f2f7;padding:2px;gap:0;flex:0 0 auto;}
html.look-v2 .rod-head-card .seg button{height:32px;min-height:32px;padding:0 14px;border:0;border-radius:8px;background:transparent;font:600 13px/1 var(--font-sans);color:#6e6e73;white-space:nowrap;}
html.look-v2 .rod-head-card .seg button.on{background:var(--crm-ink,#C2185B);color:#fff;}
html.look-v2 .rod-heads{display:flex;gap:8px;justify-content:center;touch-action:pan-y;}
html.look-v2 .rod-heads figure{margin:0;flex:1 1 0;max-width:340px;min-width:0;}
html.look-v2 .rod-heads figcaption{font:600 12px/1.3 var(--font-sans);color:#6e6e73;text-align:center;margin-top:6px;}
html.look-v2 .rod-head-svg{display:block;width:100%;height:auto;}
html.look-v2 .rh-reg{fill:#f1f1f4;stroke:none;cursor:pointer;transition:fill .12s;-webkit-tap-highlight-color:transparent;}
html.look-v2 .rh-reg.whole{fill:#fdeef3;}
html.look-v2 .rh-reg.has{fill:#fce4ec;}
html.look-v2 .rh-reg.act{fill:#f8bbd0;stroke:var(--crm-ink,#C2185B);stroke-width:5;stroke-linejoin:round;}
html.look-v2 .rh-reg:focus{outline:none;}
html.look-v2 .rh-reg:focus-visible{stroke:var(--crm-ink,#C2185B);stroke-width:7;}
html.look-v2 .rh-line{fill:none;stroke:#b9bcc4;stroke-width:3;stroke-linecap:round;pointer-events:none;}
html.look-v2 .rh-hair{fill:none;stroke:#7b8287;stroke-width:3.5;stroke-linecap:round;pointer-events:none;}
html.look-v2 .rh-ink{fill:none;stroke:#2f3437;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
html.look-v2 .rh-ink2{fill:none;stroke:#7b8287;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
html.look-v2 .rh-ear{stroke:#2f3437;}
html.look-v2 .rh-skin{fill:#fff;stroke:none;pointer-events:none;}
html.look-v2 .rh-label{font-family:var(--font-sans);font-weight:600;fill:#6e6e73;pointer-events:none;}
html.look-v2 .rh-label.act{fill:var(--crm-ink,#C2185B);}
html.look-v2 .rh-dot{pointer-events:none;stroke:rgba(0,0,0,.22);stroke-width:1.5;}
html.look-v2 .rh-dot.none{fill:#fff;stroke:#8e8e93;stroke-width:3;stroke-dasharray:7 5;}
html.look-v2 .rod-head-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin-top:10px;}
html.look-v2 .rod-head-foot .seg{height:32px;}
html.look-v2 .rod-head-foot .seg button{height:28px;min-height:28px;}
html.look-v2 .rod-head-now{font:400 13px/1.3 var(--font-sans);color:#6e6e73;text-align:center;margin:10px 0 0;}
html.look-v2 .rod-head-now-area{font-weight:600;color:var(--text,#1d1d1f);margin-right:4px;}
