/* Studio's own names, set from the shared token file (ui/tokens.css, fractalyze/ui's, loaded before this file; #638, ADR 0171, ADR 0190), which also sets
   --bg, --surface, --muted, --line, --soft, --accent, --on-accent, --input-line, --ok-*, --warn-* and the rest a page
   reads under the same name. */
:root {
  --ink: var(--text);
  --input: var(--surface);
  --fix: var(--orange-11); /* 여기 고치기's fill, words on it as on the accent's */
  --on-fix: var(--on-accent);
  --info-bg: var(--accent-soft);
  --info-ink: var(--accent-ink);
  --error: var(--bad);
  --error-bg: var(--bad-bg);
  --tally: var(--bad-fill); /* a count that waits on someone, as a notification's badge */
  --on-tally: var(--on-bad-fill);
  --ground: rgb(246, 246, 245); /* cuts.GROUND, what a (다) cut stands on */
  --rail: var(--slate-12); /* /ops's menu, dark so nobody takes it for a mall's admin */
  --rail-ink: var(--slate-1);
  --rail-muted: var(--slate-8);
  --rail-on: var(--slate-11);
  --shadow: var(--shadow-2);
  --side: 216px;
  --tabs: 40px; /* the product's tabs, which what sticks under them clears */
  --title: 22px; /* h1's size, which the pencil beside a product's name centres on */
  --chart-line: #333333; /* a size chart's drawing (#153): its outline, as info_blocks.OUTLINE */
  --chart-mark: #a8918b; /* and its measurement lines, as info_blocks.MEASURE_LINE */
  --h: var(--h-2); /* a control's height (ADR 0060), alba's: --h-touch on a phone (below) */
  /* The camera view, dark in either scheme as a phone's camera app is (#642): alba's dark steps, which ui/tokens.css sets
     only under the device's dark, so they are written here, the same in light. */
  --cam-ground: #111113; /* slate 1 */
  --cam-raised: #272a2d; /* slate 4 */
  --cam-muted: #b0b4ba; /* slate 11 */
  --cam-ink: #edeef0; /* slate 12 */
  --cam-accent: #9eb1ff; /* indigo 11 */
  --cam-accent-ink: #d6e1ff; /* indigo 12 */
  --cam-bad: #ff9592; /* red 11 */
  --cam-ok: #3dd68c; /* green 11 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --chart-line: #d4d8de;
    --chart-mark: #c9ada5;
    /* Dark's slate steps turn light to dark, so the rail takes a step above the page's ground. */
    --rail: var(--slate-3);
    --rail-ink: var(--slate-12);
    --rail-muted: var(--slate-11);
    --rail-on: var(--slate-6);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); }
[hidden] { display: none !important; }
/* Lucide's line icons (ADR 0060), drawn from the sprite templates/icons.html puts on every page. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { flex: none; width: 16px; height: 16px; pointer-events: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-camera] .i { width: 20px; height: 20px; }

/* The admin's shell: the left menu, which folds behind ☰ on a phone. */
.app { display: flex; min-height: 100dvh; }
.beta-band { padding: 3px 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 600; text-align: center; }
.column { flex: 1; min-width: 0; }
.rail { flex: none; position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; width: var(--side); height: 100dvh; padding: 14px 10px; background: var(--surface); border-right: 1px solid var(--line); }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail-menu { display: contents; } /* the React menu's root, so its logo, mall and nav lay out as the old ones (#532) */
.logo { padding: 4px 10px 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.mall { padding: 0 10px 12px; color: var(--muted); font-size: 12.5px; }
.mi { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.mi svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mi.on { background: var(--info-bg); color: var(--info-ink); }
.mi .tally { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* read aloud, not shown */
.tally { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tally); color: var(--on-tally); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.who { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); }
/* The mall menu on top of the rail, for an Ops address (switcher.html, #217): the mall looked at, and under it every mall
   to switch to, over the page on a PC and in place inside ☰ on a phone, as alba's operator has it. */
.rail .lab { padding: 14px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mm { position: relative; margin-bottom: 10px; }
.mm-top { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 8px; background: var(--soft); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mm-top .as { color: var(--warn-ink); font-size: 12px; font-weight: 600; }
.mm-top .updown { color: var(--muted); }
.mm .names { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.mm .names b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.mm .mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #1b3a80; color: #fff; font-size: 13px; font-weight: 700; }
.mm .mark.c1 { background: #17603a; } .mm .mark.c2 { background: #7a3900; } .mm .mark.c3 { background: #5b2d8e; }
.mm .mark.c4 { background: #0f5f6b; } .mm .mark.ops { background: #2457d6; }
.mm-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 4; display: grid; gap: 4px; width: 320px; max-height: min(560px, calc(100dvh - 90px)); overflow-y: auto; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.mm-head { display: grid; padding: 6px 8px 8px; font-size: 13px; }
.mm-head span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.mm-find { display: block; padding: 0 4px 4px; }
.mm-find input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input); color: var(--ink); font: inherit; font-size: 14.5px; }
.mm-list nav { display: grid; gap: 2px; }
.mm-lab { padding: 8px 8px 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mm-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.mm-row:hover { background: var(--soft); }
.mm-row[aria-current] { background: var(--info-bg); }
.mm-row .mark { width: 28px; height: 28px; font-size: 12px; }
.mm-row .names b { font-size: 14.5px; }
.mm-row .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 12.5px; }
.mm-row .no-owner { color: var(--warn-ink); font-weight: 600; }
.mm-row .tick { width: 16px; height: 16px; color: var(--info-ink); stroke-width: 2.4; }
.mm-none { margin: 0; padding: 8px; color: var(--muted); font-size: 13.5px; }
.mm-out { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--soft); }
.mm-out button { width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.mm-out button:hover { background: var(--soft); }
.owner-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.owner-head h2 { flex: 1; }
.topbar { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; }
.topbar .walk { margin-left: auto; }
.topbar a.back { font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 0; }
.burger:not(.ui-button) { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; border: 0; background: none; color: inherit; cursor: pointer; }
/* ☰ on the shell's React screen is a quiet ui-button (#641), square at the touch height, its edge where the old one's was. */
.burger.ui-button { position: relative; width: var(--h-touch); margin-left: calc(-1 * var(--s-2)); padding: 0; }
.burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger .tally { position: absolute; top: 4px; right: 2px; }
.scrim { display: none; }
/* A page's gutter is alba's --space-page, which a phone narrows itself (ui/tokens.css); a full-width bar reaches back
   across it. Its foot keeps twice that, room to scroll the last thing clear of the window's edge. */
main { max-width: 760px; margin: 0 auto; padding: var(--space-page) var(--space-page) calc(2 * var(--space-page)); }
main.wide { max-width: 1100px; }
.head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
.banner { margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-1); background: var(--soft); font-size: var(--t-sub); }  /* as alba's notices */
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner.info { background: var(--info-bg); color: var(--info-ink); }
.banner.bad { background: var(--error-bg); color: var(--error); }
.banner .link-btn { min-height: 0; font-size: inherit; }
.banner.warn .link-btn.quiet { color: inherit; font-weight: 400; text-decoration: underline; }
/* The walk from an iPhone's Safari to its Home Screen page (#390): numbered steps in a sheet with a handle. */
.howto::before { content: ""; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.howto h2, .howto p, .howto form { margin: 0; }
.howto ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; font-size: 14.5px; counter-increment: step; }
.howto li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--info-bg); color: var(--info-ink); font-size: 13px; font-weight: 700; }
.howto li .sub { grid-column: 2; }
.glyph { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 700; vertical-align: 1px; }
.head + .banner { margin-top: var(--s-3); }
.ui-tabs { margin: var(--s-4) 0; }  /* a tab bar under a page's heading (#695) */
.tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a.on, .tabs button.on { border-bottom-color: var(--accent); color: var(--accent); }
.tabs .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--soft); color: var(--muted); font-size: var(--t-cap); font-weight: 600; white-space: nowrap; }
.pill.go { background: var(--info-bg); color: var(--info-ink); }
.pill.todo { background: var(--warn-bg); color: var(--warn-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.bad { background: var(--error-bg); color: var(--error); }
h1 { font-size: var(--title); line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 18px; line-height: 1.35; margin: 28px 0 4px; }
.meta { margin: 0; }
.meta:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 14px; }
.hint { margin: 0 0 12px; }
.hint:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 14px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.fit { width: auto; min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn.small { width: auto; min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { background: var(--soft); border-color: var(--soft); color: var(--muted); cursor: default; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.login { max-width: 360px; margin: 32px auto 0; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.nameline input, .fld input[type="text"], .fld select { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--input); font: inherit; font-size: 17px; color: var(--ink); }
.error { display: flex; gap: 6px; align-items: center; margin: -8px 0 16px; color: var(--error); font-size: 14px; font-weight: 600; }
/* What failed, marked in place (#886, docs/mockups/886-errors-in-toast.html): a few words on one line, cut with … where
   the room runs out, while the sentence goes to the toast. A field's sits on its label's line, so the field and what is
   under it keep their place. */
.bad-mark { min-width: 0; overflow: hidden; color: var(--error); font-size: var(--t-sub); font-weight: var(--w-2); white-space: nowrap; text-overflow: ellipsis; }
.bad-mark[hidden] { display: none; }
.ui-field:has(> .field-mark:not([hidden])) { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: var(--s-2); }
.ui-field:has(> .field-mark:not([hidden])) > :not(.ui-label, .field-mark) { grid-column: 1 / -1; }
.ui-field > .field-mark { grid-row: 1; grid-column: 2; }  /* on the label's line, wherever it is in the field */
.field-mark { font-size: var(--t-cap); }

.products { --thumb: 52px; list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.products li + li { border-top: 1px solid var(--line); }
/* The product list's search, day headings and pages (#663) */
.find .i, .pager .i { width: 18px; height: 18px; }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: calc(-1 * var(--s-1)) 0 var(--s-3); }
.search { position: relative; flex: 0 1 360px; min-width: 0; }
.search > .i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: var(--h); padding: 0 var(--s-6); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-sub); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; } /* the × beside it clears */
/* The list's own box is a ui-input (#641), room kept at its sides for the glass and the ×. */
.search > .ui-input.ui-input { padding-inline: var(--s-6); }
.search .clear { position: absolute; right: 2px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: var(--h-1); height: var(--h-1); color: var(--muted); }
.found { color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.products .day { display: flex; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-4); background: var(--soft); color: var(--muted); font-size: var(--t-cap); font-weight: 700; font-variant-numeric: tabular-nums; }
.product mark { border-radius: var(--r-mark); background: var(--warn-bg); color: inherit; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.pager .range { color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.pager nav, .pager .nums { display: flex; align-items: center; gap: var(--s-1); }
.pager .nums.phone { display: none; }
/* 이전 and 다음 are small ui-buttons (#641); the numbers between them take their height. */
.nums .pg { display: inline-grid; place-items: center; box-sizing: border-box; min-width: var(--h-1); height: var(--h-1); padding: 0 var(--s-2); border-radius: var(--r-1); color: var(--text); font-size: var(--t-sub); font-weight: var(--w-2); font-variant-numeric: tabular-nums; text-decoration: none; }
.nums a.pg:hover:not([aria-current]) { background: var(--soft); }
.nums .pg[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.pg.step[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; } /* a span at an end: no :disabled */
.gap { min-width: 20px; color: var(--muted); text-align: center; }
.auth { display: grid; place-items: center; min-height: 100dvh; padding: 20px 16px; }
/* The pages with no session (#779): the 요금 page, the sign-in pages, and the footer all of them end on. */
.pub-page { display: flex; flex-direction: column; min-height: 100dvh; }
.pub-page > main { flex: 1; width: 100%; }
.pub-page > .auth { min-height: 0; }
.pub-top { display: flex; align-items: center; gap: 18px; min-height: 56px; padding: 0 var(--space-page); background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-top a { color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pub-top a.logo { margin-right: auto; color: var(--ink); font-size: 16px; font-weight: 800; }
.pub-top a.on { color: var(--ink); }
.pub-top a.in { color: var(--accent); }
.pub { padding-top: 32px; }
.pub h1 { font-size: 26px; text-wrap: balance; }
.pub h2 { margin: 28px 0 8px; font-size: 18px; }
.pub p, .pub li { font-size: 15px; }
.pub p { margin: 0 0 10px; }
.pub :is(ol, ul) { margin: 0 0 10px; padding-left: 22px; }
.pub .lead { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plans { margin: 20px 0 6px; }
.plan { min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.plan .name { margin: 0; font-size: 15px; }
.plan .fee { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan .fee small { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 14.5px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan .about { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.pub-foot { padding: 22px var(--space-page) 28px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.pub-foot .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.pub-foot .links a { color: var(--ink); text-decoration: none; }
.pub-foot .biz { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; }
/* The sign-in pages' box (#645, ADR 0171): alba's buttons the box's width, its fields in a ui-field, each a step apart. */
.authbox { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; max-width: 380px; padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.authbox h1, .authbox .sub, .authbox .banner { margin: 0; }
.authbox h1 { font-size: var(--t-title); }
.authform { display: flex; flex-direction: column; gap: var(--s-3); }
.sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 13px; font-weight: 400; }
.tn { font-variant-numeric: tabular-nums; }
/* A provider's button is alba's plain one; its mark alone carries the provider's colour (#638's mockup). */
.sso i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-1); background: var(--surface); color: var(--text); box-sizing: border-box; border: 1px solid var(--line); font-size: var(--t-cap); font-style: normal; font-weight: var(--w-3); }
.sso.naver i { background: #03c75a; color: #ffffff; border-color: transparent; }
.sso.kakao i { background: #fee500; color: #191919; border-color: transparent; }
/* A sign-in mail's code: six boxes React fills from the one input laid over them, which takes the typing. */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
/* Each box is drawn as alba's field, its edge the accent ring while it is the one to fill. */
.otp span { display: grid; place-items: center; height: calc(var(--h-2) + var(--s-3)); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--surface); font-size: var(--t-title); font-weight: var(--w-3); font-variant-numeric: tabular-nums; }
.otp span.cur { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; }
.otp:has(> input[aria-invalid="true"]) span:not(.cur) { border-color: var(--error); } /* a code refused, its mark on the label's line (#886) */
.or { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-cap); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.staff { display: flex; flex-direction: column; gap: var(--s-3); }
.staff h1, .staff h2, .staff > .sub, .staff > .banner, .staff > .group { margin: 0; }
.staff-root > .sub, .staff-root > .banner, .staff-root > .group { margin: 0; } /* the React screen's, #531 */
.group .sub { margin: 0; }
.inv { display: flex; min-width: 0; gap: var(--s-2); align-items: center; }
/* 요금과 결제 (#780): its panels side by side on a PC, as tall as each other with their rows at the top (#776), and
   stacked on a phone */
.pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); }
.pay > .panel { align-content: start; }
.panel { min-width: 0; display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel h3 { margin: 0; font-size: 14px; }
.panel p, .panel .banner { margin: 0; }
/* 결제 카드's heading, with the mark of a registration that came back with no card on its line (#886), whose panel
   takes the error colour's outline. 직원 초대's heading holds its refusal's mark the same way. */
.card-head, .invite-head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.panel:has(> .card-head > .bad-mark) { border-color: var(--error); }
.cardline { display: flex; flex-wrap: wrap; gap: var(--s-1) 10px; align-items: center; justify-content: space-between; }
.cardline b { font-variant-numeric: tabular-nums; }
.paid { list-style: none; margin: 0; padding: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.paid li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.paid .amt { margin-left: auto; font-weight: 600; }
.paid .why { width: 100%; color: var(--error); font-size: 12.5px; }
.paid .why .note:not(.ui-hint, .ui-lead) { color: var(--muted); }
/* 크레딧 (#776), beside 결제 카드; its line where drawing stops, on 새 상품 and the product page too */
.credits .top { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: center; justify-content: space-between; }
.credits-left { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.credits-left b { font-size: 28px; line-height: 1.1; }
.credits-left.bad b { color: var(--error); }
.credits-meter { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.credits-meter span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.credits-meter.bad span { background: var(--error); }
.credits-kv { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.credits-kv dt { color: var(--muted); }
.credits-kv dd { margin: 0; text-align: right; font-weight: 600; }
.stopped { display: grid; gap: var(--s-2); padding: 10px var(--s-3); border-radius: 8px; background: var(--error-bg); color: var(--error); font-size: var(--t-sub); }
.stopped .btns { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.stopped .sub:not(.ui-hint, .ui-lead) { color: var(--muted); }
.inv > .ui-input { flex: 1; width: auto; min-width: 0; }  /* the row and its field shrink, so a phone at 320 px still shows 저장 (#943) */
.inv > .ui-button { flex: none; }
.people { overflow: visible; } /* a line's menu reaches past the list's edge */
.people li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 170px var(--h); gap: 12px; align-items: center; padding: 8px 8px 8px 14px; overflow-wrap: anywhere; }
/* A line's ⋯ is a small quiet ui-button (#645), square, as the list's (#641). */
.people .dots { grid-column: 3; justify-self: center; width: var(--h-1); padding: 0; }
.people .pop { top: calc(100% - 8px); right: 8px; left: auto; min-width: 150px; width: auto; }
.people .pop form { margin: 0; }
/* each person's last visit, which /ops alone shows (ADR 0124) */
.people .seen { display: block; margin-top: 2px; font-size: 12px; }
.btn.danger { color: var(--error); }
.link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.link code { overflow-wrap: anywhere; }
.who div { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.product { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); color: inherit; text-decoration: none; }
.product img, .product .noimg { width: var(--thumb); height: var(--thumb); object-fit: cover; border-radius: var(--r-1); background: var(--soft); }
.product .what { display: flex; flex-direction: column; gap: var(--s-half); min-width: 0; }
.product .name { font-weight: 600; }
.product .kind-of, .prow .when { color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
/* a product's two tasks, each a chip that opens its tab (ADR 0164) */
.prow .tasks { display: flex; flex: none; gap: var(--s-2); }
.prow .task { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h); padding: var(--s-1) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); color: inherit; font-size: var(--t-sub); text-decoration: none; }
.prow .task:hover { background: var(--soft); }
.prow .task .k { font-weight: 600; }
.prow .when { flex: none; width: 76px; padding: 0 var(--s-2) 0 var(--s-3); text-align: right; }
/* 지우기 under each row's ⋯, the row's only control (#664, docs/mockups/657-product-list.html) */
.products:has(.prow) { overflow: visible; } /* a row's menu reaches past the list's edge */
.prow { position: relative; display: flex; align-items: center; }
.prow .product { flex: 1; min-width: 0; }
.prow .dots:not(.ui-button) { flex: none; display: grid; place-items: center; width: var(--h); height: var(--h); margin-right: var(--s-2); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.prow .dots:not(.ui-button):is(:hover, [aria-expanded="true"]) { background: var(--soft); color: var(--ink); }
/* The React screens' ⋯ is a small quiet ui-button (#641), square; 새 상품's old screen keeps its own above. */
.prow .dots.ui-button { flex: none; width: var(--h-1); margin-right: var(--s-2); padding: 0; }
.prow .pop { top: calc(100% - 4px); right: 8px; left: auto; min-width: 150px; width: auto; }
.prow .pop:not(.ui-menu) .it { justify-content: flex-start; gap: var(--s-2); min-height: var(--h); font-weight: 600; }
.prow .pop:not(.ui-menu) .it > .i { visibility: visible; } /* a menu's own icon, not a tick */
/* 최근 지운 상품 2개 ›, under the list, and its page's rows: each 지우기 a 되돌리기 brings back (#749) */
.deleted-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-1); color: var(--accent-ink); font-size: var(--t-sub); font-weight: var(--w-2); text-decoration: none; }
@media (hover: hover) { .deleted-link:hover { text-decoration: underline; } }
.deleted-note { max-width: 62ch; margin: var(--s-2) 0 var(--s-4); line-height: 1.55; }
.drow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); }
.drow img, .drow .noimg { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-1); background: var(--soft); }
.drow .what { display: grid; min-width: 0; }
.drow .name { font-weight: var(--w-2); overflow-wrap: anywhere; }
.drow .kind-of, .drow .when { color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.drow .when { text-align: right; line-height: 1.45; }
.drow .days-phone { display: none; }
/* A toast with a button, such as 되돌리기 or 요금제 보기: its time left, a line along its foot that stops while the
   toast is held, pointed at or focused, as its time does (client/toast.ts, #748) */
.toast:has(> .toast-time) { overflow: hidden; }
.toast > .toast-time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; animation: toast-time linear forwards; }
.toast:is(:hover, :focus-within) > .toast-time { animation-play-state: paused; }
@keyframes toast-time { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast > .toast-time { display: none; } }
/* The list's 지우기 question in studio's one dialog (list/DeleteAsk.tsx, #641, #747): the product's name, its list and the box. */
.delete-ask .delete-name { font-weight: var(--w-2); }
ul.ui-dialog-text { display: grid; gap: var(--s-1); padding-left: var(--s-4); } /* a dialog's list of what follows: 지우기's, 내보내기's (#645) */
.delete-ask .chk { margin: 0; }
.ask .what { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.chk { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-half) var(--s-2); align-items: start; margin: 0 0 var(--s-4); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); cursor: pointer; }
.chk[hidden] { display: none; }
.chk input { width: 18px; height: 18px; margin: var(--s-half) 0 0; accent-color: var(--error); }
.chk b { font-size: var(--t-sub); }
.chk .sub { grid-column: 2; }
.chk.on { border-color: var(--error); background: var(--error-bg); }
.empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

.hint.small { margin: 8px 0 0; }
.hint.small:not(.ui-hint, .ui-lead) { font-size: 13px; }
.kinds { margin-top: 6px; }
.kinds:not(.ui-seg) { display: flex; flex-wrap: wrap; gap: 6px; }
.kind:not(.ui-chip) { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.kind input, .reason input { position: absolute; opacity: 0; pointer-events: none; }
.kind:not(.ui-chip):has(input:checked) { border: 2px solid var(--accent); padding: 0 11px; color: var(--accent); }
.kind:has(input:focus-visible), .reason:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.uploading { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.uploading + .bad-mark:not([hidden]) { display: block; }  /* what stopped a photo going up, one line in its bar's place (#886) */
.bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }

.nameline { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-1); }
.nameline .name-area { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: var(--s-1); }
.nameline h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.nameline h1[data-rename] { cursor: text; }
/* A shoot's one style selector (ADR 0113): .switch's segments, the section style's raised. */
.ui-seg.styles { display: flex; width: fit-content; margin-top: var(--s-2); }
.ui-seg.styles > button:disabled { cursor: default; }
.product .kind-of .stl { color: var(--ink); font-weight: 600; }
.nameline input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--s-3); font-size: var(--title); font-weight: 700; }
.pencil { flex: none; display: grid; place-items: center; width: var(--h); height: var(--h); margin-block: calc((1.3 * var(--title) - var(--h)) / 2); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.pencil:hover { background: var(--soft); color: var(--ink); }
/* The product's name (#903): on a PC its hover is the cue, and its ✎ shows only while the keyboard is on it; on a phone,
   with no hover, a faint ✎ is the one sign that it can be renamed. */
.name-pencil { color: var(--dash); }
@media (hover: hover) and (pointer: fine) {
  .name-pencil:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nameline h1[data-rename]:hover { border-radius: var(--r-1); background: var(--soft); box-shadow: 0 0 0 var(--s-1) var(--soft); }
}
.date { flex: none; padding-top: var(--s-1); color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-progress] .error { margin: var(--s-2) 0 0; }

.status { position: sticky; top: 8px; z-index: 1; box-shadow: 0 2px 8px rgba(27, 26, 25, 0.12); display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-4) 0 0; padding: var(--s-3); border-radius: var(--r-2); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-sub); }
.status strong { display: block; font-size: var(--t-body); }
.status .text { flex: 1; min-width: 0; }
/* A page's safety net (#736, client/kept.tsx): the notice with 다시 불러오기 over the last whole screen, kept as it was
   drawn, its box gone from the layout so the root lays out its copy as it laid out the screen. */
.kept { display: contents; }
/* A page's skeleton says it is slow only after --d-late, in a toast that lays nothing out (templates/skeleton.html,
   #740). No script shows it, so a page whose code never came shows it too; named twice, it waits where the device asks
   for less motion too, over .toast's animation: none. */
.toast.loading-late { animation: late 0s var(--d-late) both; }
@keyframes late { from { visibility: hidden; } }
/* A page's skeleton is its screen's own markup greyed (templates/skeletons/, #881), each element at its top marked
   .ui-sk-real and laid straight in the root, so its boxes lay out as the screen's. Each word, picture, icon and field
   is a grey block in its own place and size, with alba's shimmer (primitives.css's .ui-sk); a button's whole face is
   one block. Nothing in it is pressed, chosen or read: it is inert, but for a .ui-sk-live, as the review modal's 닫기,
   drawn as it is. */
:where(.ui-sk-real, .ui-sk-real *):not(.ui-sk-live, .ui-sk-live *)
  :is(.sk-t, img, svg, .ui-button, .ui-input, textarea, select) {
  /* Over the page's own rules for the same elements, as a photo's white ground. */
  color: transparent !important; border-color: transparent !important; box-shadow: none !important;
  border-radius: var(--r-1);
  background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)) 0 0 / 200% 100% !important;
  animation: ui-shimmer var(--d-pulse) linear infinite;
}
/* A drawing is one block, as a picture is. */
:where(.ui-sk-real, .ui-sk-real *):not(.ui-sk-live, .ui-sk-live *) svg > * { visibility: hidden; }
.ui-sk-real .sk-t { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* A button's face is one block, its words and icon on it unmarked; a pill or a badge, a word on its own colour, is its
   word's block alone. */
:where(.ui-sk-real, .ui-sk-real *).ui-button :is(.sk-t, svg) { background: none !important; animation: none; }
:where(.ui-sk-real, .ui-sk-real *):not(.ui-button):has(> .sk-t:only-child) { background: none !important; }
:where(.ui-sk-real, .ui-sk-real *):is(::placeholder, ::before, ::after) { color: transparent; }
@media (prefers-reduced-motion: reduce) { :where(.ui-sk-real, .ui-sk-real *) { animation: none !important; } }
.status .bar { margin-top: var(--s-2); background: var(--surface); }
.spinner { flex: none; width: 18px; height: 18px; margin-top: var(--s-half); border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--r-full); animation: spin var(--d-spin) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* The detail cuts, one part to a row: the cut from the original beside the AI-drawn image of it, both in the same
   frame (#360). Each image fits its frame whole, on the cut's ground. */
/* The product's tabs stay in view, and the rows' headings stay under them. */
.ptabs { position: sticky; top: 0; z-index: 2; box-sizing: border-box; height: var(--tabs); margin: var(--s-3) 0 0; background: var(--bg); overflow: visible; }
.heads { position: sticky; top: var(--tabs); z-index: 1; margin: var(--s-4) 0 0; padding: var(--s-2) 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.heads div + div { display: none; }
.heads p { margin: 0; font-size: var(--t-sub); font-weight: 700; }
.part { padding: var(--s-3) 0 var(--s-half); border-bottom: 1px solid var(--line); }
.part, .card { scroll-margin-top: calc(2 * var(--tabs) + 8px); } /* clear of the tabs and .heads, which is a little taller than the tabs */
.partline { display: flex; align-items: center; gap: var(--s-2); min-height: 32px; margin-bottom: var(--s-2); }
.part-name { margin: 0; font-size: var(--t-body); font-weight: 700; }
.partline .why { color: var(--muted); font-size: var(--t-cap); }
.retake { gap: var(--s-1); padding: 0 var(--s-half); font-size: var(--t-sub); white-space: nowrap; }
.retake svg { width: 16px; height: 16px; }
.skipped { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); margin: 0 0 var(--s-3); padding: var(--s-4) var(--s-3); font-size: var(--t-sub); }
.heads div, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.side { min-width: 0; }
.card { margin: 0 0 var(--s-3); padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.pair .shot, .pair .empty { aspect-ratio: 1; }
/* A cleared product's image whose file went (ADR 0119): said where it stood, as an empty side is. */
.shot.gone { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); background: var(--surface); color: var(--muted); font-size: var(--t-sub); }
.sheet-images .shot.gone { aspect-ratio: 1; background: var(--surface); font-size: var(--t-sub); }
.banner.cleared { margin: var(--s-3) 0 0; }
.sheet-line { margin: 0; }
.pair .shot.whole, .pair .empty.whole, .pair .shot.back, .pair [class*="whole-"] { aspect-ratio: 4 / 5; }
.pair .shot img { width: 100%; height: 100%; object-fit: contain; background: var(--ground); }
.pair .empty { display: flex; align-items: center; justify-content: center; margin: 0 0 var(--s-3); padding: var(--s-3); border: 1px dashed var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--muted); font-size: var(--t-sub); text-align: center; }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--r-1); background: var(--soft); }
.shot img { display: block; width: 100%; height: auto; }
.badge { position: absolute; top: var(--s-2); left: var(--s-2); padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--viewer-chip); color: var(--on-viewer); font-size: var(--t-cap); font-weight: 700; }
.badge.cut { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.pending { display: flex; align-items: center; justify-content: center; padding: var(--s-2); color: var(--muted); font-size: var(--t-sub); text-align: center; }
.pending.now { flex-direction: column; gap: var(--s-2); background: var(--info-bg); color: var(--info-ink); font-weight: 600; }
.preview { position: relative; max-width: 640px; margin: 0 auto; }
.preview img { display: block; width: 100%; height: auto; }
/* A colour's name is pixels of the picture: this press lies over it and is 44 px tall however small the picture is drawn. */
.preview .word, .preview .wordin { position: absolute; box-sizing: border-box; transform: translateY(-50%); }
.preview .word { height: 44px; padding: 0; border: 0; border-radius: var(--r-1); background: none; cursor: text; }
.preview .word:hover { outline: 1px solid var(--accent); }
.preview .word:focus-visible { outline: 2px solid var(--accent); }
.preview .wordin { min-height: 0; height: 36px; padding: var(--s-half) var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-1); font-size: var(--t-body); text-align: center; color: #3c3c3c; background: #ffffff; }
.reasons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.reason:not(.ui-chip) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); font-size: var(--t-sub); cursor: pointer; }
.reason:not(.ui-chip):has(input:checked) { background: var(--fix); border-color: var(--fix); color: var(--on-fix); font-weight: 600; }
.toast, .walk-hint { position: fixed; top: auto; left: 16px; right: 16px; bottom: 16px; width: auto; max-width: 480px; margin: 0 auto; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; }
.toast.saved { z-index: 9; }  /* 저장했어요 (ADR 0070): over a page's boxes and handles, such as the Template's */
.walk-hint { width: max-content; } /* the keys' hint, as wide as its line as the mockup draws it */
/* Every toast, on every page, slides in from the screen's bottom right, as the owner asked (#733). */
.toast { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: min(420px, calc(100% - 32px)); margin: 0; box-shadow: 0 8px 24px rgba(10, 12, 16, 0.25); animation: toast-in var(--d-slide) var(--ease); }
.toast .btn { display: inline-flex; margin-left: 10px; min-height: 32px; vertical-align: middle; }  /* 요금제 보기, on the line of why the credits stopped a press (#776) */
@keyframes toast-in { from { transform: translateX(calc(100% + 32px)); opacity: 0; } }
/* ...and leaves fading, a little to the right, as its time runs out (client/toast.ts, #748), on alba's curve. */
.toast.leaving { animation: toast-out var(--d-2) var(--ease) forwards; pointer-events: none; }
@keyframes toast-out { to { transform: translateX(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } }
kbd { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 var(--s-1); border: 1px solid currentColor; border-bottom-width: 2px; border-radius: var(--r-1); font-family: inherit; font-size: var(--t-cap); font-weight: 700; line-height: 1; vertical-align: middle; }

/* The brush on (다)'s whole-garment cut (#355). */
.brush-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--s-2); border: 2px solid var(--accent); border-radius: var(--r-2); background: var(--surface); color: var(--accent); font-size: var(--t-sub); font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.brush-main { padding-bottom: calc(3 * var(--s-6)); }  /* room for .save-bar, fixed at the foot */
.tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: var(--s-3) calc(-1 * var(--space-page)) 0; padding: var(--s-2) var(--space-page); background: var(--bg); border-bottom: 1px solid var(--line); }
.modes { flex: 1 1 100%; }
.sizes { display: flex; gap: var(--s-1); }
.ui-seg > .size { width: 44px; }
.size span { display: block; border-radius: var(--r-full); background: var(--muted); }
.size[aria-checked="true"] span { background: var(--ink); }
.history { display: flex; gap: var(--s-1); margin-left: auto; }
.tool { min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.tool[disabled] { color: var(--muted); opacity: 0.6; cursor: default; }
.canvas-wrap { position: relative; overflow: hidden; margin-top: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--ground); touch-action: none; }
.canvas-wrap canvas { display: block; width: 100%; height: auto; transform-origin: center; touch-action: none; cursor: crosshair; }
.canvas-wrap .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: var(--t-sub); }
.ring { position: absolute; left: 0; top: 0; border: 2px solid var(--error); border-radius: var(--r-full); pointer-events: none; }
.ring.restore { border-color: var(--accent); }
.save-bar { position: fixed; left: var(--side); right: 0; bottom: 0; z-index: 2; display: flex; gap: var(--s-2); max-width: 760px; margin: 0 auto; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.save-bar .btn { flex: 1; }
.save-bar .btn.primary { flex: 2; }

/* A row being drawn again. */
.badge.tag { left: auto; right: 6px; background: var(--accent); }
.over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-2); background: color-mix(in srgb, var(--soft) 88%, transparent); color: var(--ink); font-size: var(--t-sub); font-weight: 700; text-align: center; }
.over.now { background: color-mix(in srgb, var(--info-bg) 88%, transparent); color: var(--info-ink); }

.choice { margin: var(--s-4) 0 0; padding: 0; border: 0; }
.choice legend { padding: 0; margin: 0 0 var(--s-2); font-weight: 600; }
/* The 실험 chip: an AI guess, beside a part AI cut from a front (#690). */
.xp { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--t-cap); font-weight: 700; white-space: nowrap; }
#new .btn { margin-top: 16px; width: 100%; }
/* The product's name on 새 상품, first on the form and edited where it stands (#91). */
.counts { margin-top: 12px; }
.steps, .loose-list { list-style: none; margin: var(--s-3) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.step, .step a { display: flex; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; }
.step { min-height: 44px; padding: var(--s-2) var(--s-3); border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.step a { flex: 1; min-height: 32px; }
.step img { width: 36px; height: 36px; margin-left: auto; border-radius: var(--r-1); object-fit: cover; }
.step .mark { flex: none; width: 18px; text-align: center; font-weight: 700; }
.step.done { color: var(--ink); }
.step.now { align-items: flex-start; border: 2px solid var(--accent); color: var(--ink); }
.step.now p { margin: var(--s-half) 0 0; }
.step.skip { flex-wrap: wrap; background: transparent; border-style: dashed; }
.step.skip > .ui-button { margin-left: auto; }
#shoot { max-width: 446px; } /* the phone's shape on any screen, 390 wide inside the margins */
#shoot .btn { width: 100%; }
/* The React screens' presses are alba's ui-buttons (#642, ADR 0171), placed as the old screens' .btn was: the page's
   own presses the column's width, those in a row sharing it. */
#shoot > .ui-button:not(.album) { width: 100%; }
#shoot > .ui-button.album { display: flex; width: fit-content; margin: var(--s-3) auto 0; }
.step > .ui-button { flex: none; }
.finish-row > .ui-button { flex: 1 1 auto; }
#shoot .finished .ui-row > .ui-button, .placing-acts .ui-row > .ui-button, .row-rename .ui-row > .ui-button { flex: 1 1 0; }
.placing-acts .ui-row > .ui-main { flex-grow: 2; }
.ui-main .credit-pill { margin-left: var(--s-1); background: color-mix(in srgb, var(--on-accent) 22%, transparent); color: inherit; }
#shoot .off { pointer-events: none; opacity: 0.5; }
#shoot.aimed:not(:has([data-album].off)) { outline: 1.5px dashed var(--accent); outline-offset: 6px; border-radius: var(--r-1); background: var(--info-bg); } /* a file dragged over it on a PC, as .drop.aimed, while it takes one */
#shoot .ask-colour { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-4) 0; } /* 다른 색이 있나요? (ADR 0111) */
/* A shot the server refused, on its step, with its retake (#170). */
.step.refused { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -2px; color: var(--ink); }
.step.refused .mark { color: var(--error); }
.step.refused > strong { flex: none; }
.step > .bad-mark { flex: 1; }
.step.done:has(.bad-mark) { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -2px; }
.step.done a:has(+ .bad-mark) { flex: none; }
.step.now strong .bad-mark { margin-left: var(--s-2); }
#shoot .all-taken { display: flex; flex-direction: column; gap: var(--s-2); margin: 0 0 var(--s-3); }
/* 완료 · 그림 만들기, with the credits it reserves beside it (#458), then the end's presses once pressed. */
#shoot :is(.finish, .finished) { display: flex; flex-direction: column; gap: var(--s-2); }
#shoot :is(.finish, .finished) p { margin: 0; }
.finish-row { display: flex; align-items: center; gap: var(--s-3); }
.credit-pill { flex: none; padding: var(--s-half) var(--s-3); border-radius: var(--r-full); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-sub); font-weight: 700; white-space: nowrap; }
.kind-of .all-in { color: var(--ok-ink); font-weight: 700; }
/* A product's own list, changed while it is shot (ADR 0163, docs/mockups/453-own-cuts/): what 완료 will draw under the
   title, each step's ⋯ with its sheet on a phone and its menu under the ⋯ on a PC, and + 부위 추가 at the list's foot. */
.shoot-counts { margin: calc(-1 * var(--s-1)) 0 0; color: var(--muted); font-size: var(--t-sub); }
.shoot-counts b { color: var(--ink); }
/* The React screen's ⋯ is a small quiet ui-button (#642), square, at the row's end. */
.step .row-more.ui-button { width: var(--h-1); margin: 0 0 0 auto; padding: 0; }
.step > :is(a, img, .ui-button, .from) + .row-more.ui-button { margin-left: 0; } /* after what already reached the end */
/* A step's handle, as 촬영 설정's rows have, which moves it (#489); its clone, while it is held, keeps the row's look. */
.step .hd { flex: none; width: 28px; height: 32px; margin: 0 calc(-1 * var(--s-2)) 0 calc(-1 * var(--s-1)); }
.step.sortable-fallback { opacity: .9 !important; }
.add-part .i, .row-menu .row-acts .act .i { width: 18px; height: 18px; flex: none; }
.add-part.ui-button { width: 100%; margin: calc(-1 * var(--s-1)) 0 var(--s-3); }
/* The ⋯ menu's acts stack in a column; a 실측표 row's .row-acts is a table cell, its ↑ and × on one line (#868). */
.row-menu .row-acts { display: flex; flex-direction: column; }
.row-menu .row-acts .act { display: flex; align-items: center; gap: var(--s-3); min-height: 50px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: inherit; font-size: var(--t-body); text-align: left; cursor: pointer; }
.row-menu .row-acts .act:disabled { color: var(--muted); cursor: default; }
.row-menu .row-acts .act.danger { color: var(--error); }
.row-menu .row-acts hr { width: 100%; margin: var(--s-1) 0; border: 0; border-top: 1px solid var(--line); }
/* Another colour as rows of the checklist (ADR 0191, docs/mockups/858-parts-and-colours/): + 색 추가 beside + 부위 추가,
   saying why when it is off; a colour's 뒷면 says it may be left out, and its 앞면 what it is drawn from; 완료 shows
   what it draws now apart from the colours drawn once the 앞면 is confirmed; and the dialog that names the colour. */
.foot-adds { display: flex; gap: var(--s-2); margin: calc(-1 * var(--s-1)) 0 var(--s-3); }
.foot-adds > .ui-button { flex: 1 1 0; }
.foot-adds > .add-part.ui-button { width: auto; margin: 0; }
.foot-adds .i { width: 18px; height: 18px; flex: none; }
#shoot .off-why { margin: calc(-1 * var(--s-2)) 0 var(--s-3); }
.step .opt { margin-left: var(--s-1); color: var(--muted); font-size: var(--t-sub); }
.step .from { display: inline-flex; flex: 0 1 auto; align-items: center; gap: var(--s-1); min-width: 0; margin-left: auto; color: var(--muted); font-size: var(--t-cap); text-align: right; }
.step > span:has(+ .from) { flex: none; } /* the colour's name keeps its line; the note beside it wraps */
.step .from img { width: 24px; height: 24px; margin: 0; }
.credit-split { display: grid; gap: var(--s-1); margin: 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); font-size: var(--t-sub); }
.credit-split > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.credit-split dt { color: var(--muted); }
.credit-split dd { margin: 0; font-weight: 600; text-align: right; }
.credit-split .wait dd { color: var(--muted); font-weight: 500; }
.colour-ask .fields { display: grid; gap: var(--s-3); margin: var(--s-2) 0 var(--s-4); }
.colour-ask .pair-field { display: flex; align-items: flex-end; gap: var(--s-3); }
.colour-ask .pair-field > img { flex: none; width: 44px; height: 44px; border-radius: var(--r-2); object-fit: cover; }
.colour-ask .pair-field > .ui-field { flex: 1 1 auto; margin: 0; }
.colour-ask .acts { display: flex; justify-content: flex-end; gap: var(--s-2); }
.colour-ask .why { margin: var(--s-2) 0 0; text-align: right; }
.row-menu-photo { width: 40px; height: 40px; border-radius: var(--r-1); object-fit: cover; }
.row-rename { display: flex; flex-direction: column; gap: var(--s-2); }
.row-rename label { font-weight: 600; }
.row-rename p { margin: 0; }
.add-sheet .typed { display: flex; gap: var(--s-2); }
.add-sheet .typed input { flex: 1; min-width: 0; }
.row-menu.pop-at { position: absolute; inset: auto; z-index: 6; width: 240px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); }
.row-menu.pop-at .sheet-body { gap: var(--s-1); padding: var(--s-1); }
.row-menu.pop-at .sheet-head { display: none; }
.row-menu.pop-at .act { min-height: 40px; font-size: var(--t-sub); }
.row-menu.pop-at .act:not(:disabled):hover { background: var(--soft); }
.row-menu.pop-at .row-rename { padding: var(--s-2); }
.row-menu-body { display: contents; } /* a phone's ⋯ sheet, alba's dialog, spaces what it holds by its own gap (#642) */
.add-sheet .sec { margin: 0; color: var(--muted); font-size: var(--t-cap); font-weight: 700; }
.add-sheet .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* One more cut's name, asked from the camera view (ADR 0163). */
.namer .field { margin: 0; }
.namer .say { margin: 0; }
.add-sheet .scope { margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-sub); }
@media (min-width: 701px) { .sheet:is(.add-sheet, .row-menu, .unplaced) { width: min(480px, calc(100% - 64px)); } }
/* Each taken step's photo: waiting its turn, going up, or in (#242). */
.step.done .pill { flex: none; }
.step.done img + .pill { margin-left: 0; }
/* Several photos placed on the steps before they go up (#242): each with its file and when it was shot, dragged onto
   another step on a PC, or moved with 옮기기. One with no step left waits under 부위 미지정, to go on a step in place
   of its photo or on a part made for it (#279, #461). */
.step:is(.placed, .loose) { position: relative; min-height: 56px; color: var(--ink); }
.step.loose { border-style: dotted; } /* not dashed, which marks where a dragged photo can go */
.step:is(.placed, .loose)[draggable="true"] { padding-left: var(--s-1); cursor: grab; transition: transform var(--d-1), box-shadow var(--d-1); }
.step:is(.placed, .loose) .grip { flex: none; display: flex; margin-right: calc(-1 * var(--s-1)); color: var(--muted); }
.step:is(.placed, .loose) .grip .i { width: 18px; height: 18px; }
.step:is(.placed, .loose) strong { flex: none; width: 44px; }
.step:is(.placed, .loose) .file { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--muted); font-size: var(--t-cap); line-height: 1.35; }
.step:is(.placed, .loose) .file b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step:is(.placed, .loose) img { width: 44px; height: 44px; margin-left: 0; }
.step:is(.placed, .loose) .link-btn { flex: none; min-height: 44px; padding: 0 var(--s-2); }
/* On a PC a placed photo lifts under the mouse, which drags it (#254). While one is dragged, each other step it can go
   on is dashed, and the one under the pointer is solid and says what the drop swaps. */
.step:is(.placed, .loose)[draggable="true"]:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.step:is(.placed, .loose)[draggable="true"]:hover .grip { color: var(--accent); }
.steps.moving .step:is(.placed, .loose):hover { box-shadow: none; transform: none; }
.steps.moving .step.target:not(.lifted) { border: 1.5px dashed var(--accent); }
.step.target.aim, .steps.moving .step.target.aim { border: 2px solid var(--accent); background: var(--info-bg); }
.step.target.aim::after, .part.aim [data-swap]::after { content: attr(data-swap); position: absolute; z-index: 2; padding: var(--s-half) var(--s-3); border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: var(--t-cap); font-weight: 700; white-space: nowrap; pointer-events: none; }
.step.target.aim::after { right: 8px; top: -12px; }
.steps.moving .step.target { position: relative; }
.step:is(.placed, .loose).lifted { opacity: 0.45; }
#shoot.aimed:has(.step:is(.placed, .loose).lifted) { outline: 0; background: none; } /* a photo moved, not a file dropped */
#shoot .banner[data-placing-say] { margin: var(--s-3) 0 0; }
/* 부위 미지정 (#461): the photos with no part yet, under the list, each given one with 부위 정하기 or a drag. */
.loose-head { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-2) 0 0; font-size: var(--t-sub); font-weight: 700; }
.step.loose .file { padding-left: var(--s-2); }
/* 완료 with a photo 부위 미지정: 배정하기, or 빼고 완료 with the credits it reserves. */
.unplaced .say { margin: 0; }
.unplaced .say:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-sub); }
.btn.primary .credit-pill { margin-left: var(--s-2); background: color-mix(in srgb, var(--on-accent) 22%, transparent); color: inherit; }
.placing-acts { display: flex; flex-direction: column; gap: var(--s-2); margin: 0 0 var(--s-3); }
#shoot .placing-acts .btn { flex: 1; }
#shoot .placing-acts .btn.primary { flex: 2; }
.several-hint { margin: var(--s-2) 0 0; text-align: center; }
/* A finished product's new photos (#242): placed on a part's photo with the file's name and ✕, dragged onto another part
   on a PC, then each part's state in the queue; the bar under the page sends them all at one press. */
.part[data-shot] .pair > .side:first-child, .part[data-shot] .skipped { position: relative; }
.new-shot { position: absolute; z-index: 1; }
.new-shot.placed { inset: 0 0 10px; padding: var(--s-2); border: 2px solid var(--accent); border-radius: var(--r-2); background: var(--surface); }
.new-shot.placed[draggable="true"] { cursor: grab; transition: transform var(--d-1), box-shadow var(--d-1); }
.new-shot.placed[draggable="true"]:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.new-shot.placed.lifted { opacity: 0.4; }
.new-shot.placed img { width: 100%; height: 100%; border-radius: var(--r-1); object-fit: contain; background: var(--ground); }
.new-shot .top { position: absolute; left: 12px; right: 50px; top: 12px; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.new-shot .badge { position: static; flex: none; padding: var(--s-half) var(--s-2); border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: var(--t-cap); font-weight: 700; }
.new-shot .fname { min-width: 0; padding: var(--s-px) var(--s-2); overflow: hidden; border-radius: var(--r-1); background: var(--surface); color: var(--muted); font-size: var(--t-cap); text-overflow: ellipsis; white-space: nowrap; }
.new-shot .move { position: absolute; left: 12px; bottom: 12px; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--accent); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.new-shot .handle { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: none; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-full); background: var(--surface); color: var(--accent); box-shadow: var(--shadow); font-size: var(--t-sub); font-weight: 700; white-space: nowrap; pointer-events: none; }
.new-shot.placed:hover .handle { display: flex; }
body:has(.part.target) .new-shot .handle { display: none; }
.new-shot.placed img.was { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 2px solid var(--surface); border-radius: var(--r-1); object-fit: cover; }
.new-shot .off { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); cursor: pointer; }
.new-shot.state { left: 12px; top: 12px; pointer-events: none; }
.new-shot.refused { inset: 0 0 10px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--error); border-radius: var(--r-2); background: var(--surface); }
.new-shot.refused .btn.small { width: auto; }
.part[data-shot].aimed { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--r-1); }
body:has(.new-shot.lifted) .part[data-shot].aimed { outline: 0; } /* a photo moved, not a file dropped */
/* While a new photo is dragged, the photo of each part that takes it (#254). */
.part.target :is(.pair > .side:first-child, .skipped) { outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: var(--r-2); }
.part.aim :is(.pair > .side:first-child, .skipped) { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-2); background: var(--info-bg); }
.part.aim [data-swap]::after { left: 50%; top: 50%; translate: -50% -50%; padding: var(--s-1) var(--s-3); font-size: var(--t-sub); }
.placing-bar { position: fixed; z-index: 5; left: var(--side); right: 0; bottom: 0; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--space-page) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-foot); }
.placing-bar[hidden] { display: none; }
.placing-bar p { flex: 1; min-width: 0; margin: 0; font-size: var(--t-sub); }
.placing-bar p span { display: block; color: var(--muted); font-size: var(--t-sub); }
.placing-bar p .how { color: var(--info-ink); font-weight: 600; }
.placing-bar p .how[hidden] { display: none; }
.placing-bar .btn { flex: none; width: auto; min-height: 44px; }
@media (max-width: 700px) { .placing-bar { left: 0; flex-wrap: wrap; } .placing-bar p { flex-basis: 100%; } .placing-bar .btn { flex: 1; } }
.move .move-photo { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--r-2); background: var(--ground); }
.move .say { margin: 0; }
.move .say:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-sub); }
.move-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.move-parts .pt { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); min-height: 84px; padding: var(--s-2) var(--s-1); }
.move-parts .pt.ui-option { justify-content: center; }
.move-parts .th { width: 40px; height: 40px; border-radius: var(--r-1); background: var(--soft); object-fit: cover; }
.move-parts .pt.here:not(.ui-option) { border: 2px solid var(--accent); background: var(--info-bg); color: var(--info-ink); }
.move-parts .tag { font-size: var(--t-cap); font-weight: 700; }
/* What the phone's queue says (queueLine.tsx): the photos still going up, and each one refused with its retake and 닫기 (#170). */
.queue { margin: 0 0 var(--s-3); }
.queue .hint.small { margin: 0; }
.queue-refused { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); }
/* A refusal of the queue, a compact alert of one height (#886, docs/mockups/886-errors-in-toast.html): the photo's small
   picture with the alert's mark on its corner, or the mark alone, a headline over one line of what to do, the main press
   and ×, on the card's ground with the error's edge. */
.queue-alert { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: var(--s-2) var(--s-1) var(--s-2) var(--s-3); border: 1px solid color-mix(in srgb, var(--error) 35%, var(--line)); border-left: 3px solid var(--error); border-radius: var(--r-2); background: var(--surface); }
.queue-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: var(--error-bg); color: var(--error); font-size: var(--t-sub); font-weight: var(--w-3); line-height: 1; }
.queue-photo { position: relative; flex: none; width: 44px; height: 44px; }
.queue-photo img { width: 100%; height: 100%; border-radius: var(--r-1); object-fit: cover; }
.queue-photo .queue-mark { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border: 2px solid var(--surface); background: var(--error); color: var(--surface); font-size: var(--t-cap); }
.queue-words { flex: 1; min-width: 0; display: grid; }
.queue-words > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-words strong { color: var(--ink); font-size: var(--t-sub); line-height: var(--lh-tight); }
.queue-words span { color: var(--muted); font-size: var(--t-cap); line-height: var(--lh-tight); }
.queue-alert > .ui-button { flex: none; }
.queue-dismiss.ui-button { width: var(--h-1); padding: 0; color: var(--muted); }
#shoot .ask-colour h2, #shoot .ask-colour .say { margin: 0; }
/* The camera view (#173, docs/mockups/173-one-camera-view/): over the whole screen, dark in both colour schemes as a
   phone's camera app is, the camera above a bar of its thumbnail, shutter and skip. */
#shoot .banner[data-cam-why] { margin: var(--s-2) 0 0; font-size: var(--t-sub); }
html.cam-on, html.cam-on body { overflow: hidden; }
.cam { --bar: 151px; position: fixed; inset: 0; z-index: 20; background: var(--cam-ground); color: var(--cam-ink); }
.cam video { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--bar)); object-fit: contain; }
.cam-opening { position: absolute; left: 0; right: 0; top: 40%; margin: 0; text-align: center; color: var(--cam-muted); font-size: var(--t-sub); }
.cam-corner { position: absolute; left: calc(12px + env(safe-area-inset-left)); top: calc(12px + env(safe-area-inset-top)); max-width: min(280px, calc(100% - 92px)); box-sizing: border-box; padding: var(--s-3) var(--s-3) var(--s-3); border-radius: var(--r-2); background: color-mix(in srgb, var(--cam-ground) 62%, transparent); display: flex; flex-direction: column; gap: var(--s-1); }
.cam-corner p { margin: 0; }
.cam-again-pill { align-self: flex-start; padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--cam-accent); color: var(--cam-ground); font-size: var(--t-cap); font-weight: 700; }
.cam-step { display: flex; align-items: baseline; gap: var(--s-2); }
.cam-step span { font-size: var(--t-body); font-weight: 700; color: var(--cam-accent-ink); }
.cam-step strong { font-size: var(--t-title); line-height: 1.3; }
.cam-hint { font-size: var(--t-sub); line-height: 1.45; color: var(--cam-ink); }
.cam-hint.refused { color: var(--cam-bad); }
.cam-hint b { color: var(--cam-accent-ink); } /* where an added cut shot after the garment is turned over lands (ADR 0163) */
.cam-bars { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.cam-bars span { flex: 1; height: 4px; border-radius: var(--r-mark); background: color-mix(in srgb, var(--cam-ink) 28%, transparent); }
.cam-bars .done { background: var(--cam-ink); }
.cam-bars .now { background: var(--cam-accent); }
.cam-bars .refused { background: var(--cam-bad); }
.cam-bars .skipped { height: 0; margin-top: var(--s-px); border-top: 2px dashed color-mix(in srgb, var(--cam-ink) 45%, transparent); background: none; }
.cam-cancel { align-self: flex-start; min-height: 36px; margin-top: var(--s-1); padding: 0 var(--s-3); border: 1px solid color-mix(in srgb, var(--cam-ink) 40%, transparent); border-radius: var(--r-1); background: none; color: var(--cam-ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.cam-close { position: absolute; right: calc(12px + env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: color-mix(in srgb, var(--cam-ground) 62%, transparent); color: var(--cam-ink); cursor: pointer; }
.cam-close .i { width: 20px; height: 20px; }
.cam-toast { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bar) + 20px); display: flex; align-items: center; gap: var(--s-2); min-height: 52px; box-sizing: border-box; padding: var(--s-1) var(--s-2) var(--s-1) var(--s-4); border-radius: var(--r-2); background: color-mix(in srgb, var(--cam-ground) 72%, transparent); font-size: var(--t-sub); }
.cam-toast span { flex: 1; }
.cam-toast button { min-height: 44px; padding: 0 var(--s-3); border: 0; background: none; color: var(--cam-accent); font: inherit; font-size: var(--t-sub); font-weight: 700; cursor: pointer; }
/* At the right, beside ＋ 한 장 더 at the left (ADR 0163). */
.cam-queue { position: absolute; right: calc(12px + env(safe-area-inset-right)); bottom: calc(var(--bar) + 20px); margin: 0; }
.cam-queue span { padding: var(--s-1) var(--s-3); border-radius: var(--r-full); background: color-mix(in srgb, var(--cam-ground) 62%, transparent); font-size: var(--t-sub); }
/* ＋ 한 장 더 by the last photo's thumbnail (ADR 0163), under a skip's 되돌리기 while that shows. */
.cam-more { position: absolute; left: calc(12px + env(safe-area-inset-left)); bottom: calc(var(--bar) + 12px); display: inline-flex; align-items: center; gap: var(--s-2); max-width: calc(100% - 140px); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-2); border: 0; border-radius: var(--r-full); background: color-mix(in srgb, var(--cam-ground) 72%, transparent); color: var(--cam-ink); font: inherit; font-size: var(--t-sub); font-weight: 700; cursor: pointer; }
.cam-more img { flex: none; width: 32px; height: 32px; border-radius: var(--r-3); object-fit: cover; }
.cam-more-plus { display: contents; color: var(--cam-accent); }
.cam-more .i { flex: none; width: 16px; height: 16px; stroke-width: 2.6; }
.cam-more span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cam-toast:not([hidden]) ~ .cam-more { visibility: hidden; }
.cam-bars .add { background: var(--cam-ok); } /* a cut or part the product added, taken now */
.cam-bar { position: absolute; left: 0; right: 0; bottom: calc(43px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 84px; padding: 0 var(--s-5); }
.cam-last { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-half); font-size: var(--t-cap); color: var(--cam-muted); }
.cam-thumb { position: relative; width: 56px; height: 56px; padding: 0; border: 2px solid var(--cam-ink); border-radius: var(--r-2); background: var(--cam-raised); cursor: pointer; }
.cam-thumb.again { border: 3px solid var(--cam-accent); }
.cam-thumb img { display: block; width: 100%; height: 100%; border-radius: var(--r-1); object-fit: cover; }
.cam-tick { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-2); background: var(--cam-ok); color: var(--cam-ground); }
.cam-tick .i { width: 14px; height: 14px; stroke-width: 3; }
.cam-shutter { justify-self: center; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 4px solid var(--cam-ink); border-radius: var(--r-full); background: none; cursor: pointer; }
.cam-shutter span { width: 60px; height: 60px; border-radius: var(--r-full); background: var(--cam-ink); transition: transform var(--d-1); }
.cam-shutter:active span, .cam-shutter.busy span { transform: scale(0.86); }
.cam-shutter:disabled { cursor: default; }
.cam-shutter:disabled:not(.busy) { opacity: 0.4; } /* the camera still opening */
.cam-side { display: flex; justify-content: flex-end; }
.cam-skip { min-height: 44px; white-space: nowrap; padding: 0 var(--s-3); border: 1px solid color-mix(in srgb, var(--cam-ink) 40%, transparent); border-radius: var(--r-full); background: color-mix(in srgb, var(--cam-ink) 8%, transparent); color: var(--cam-ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.cam.ending > :not(.cam-end) { visibility: hidden; } /* the end alone, over the camera turned off */
/* The end, as the app's own bottom sheet (.sheet, .sheet-acts). */
.cam-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; border-radius: var(--r-3) var(--r-3) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet); }
.cam-end-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--space-panel); }
.cam-end p { margin: 0; }
.cam-end-head { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-title); line-height: 1.35; }
.cam-end .say:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-sub); }
.cam-done { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-3); background: var(--ok-bg); color: var(--ok-ink); }
.cam-done .i { width: 20px; height: 20px; stroke-width: 2.5; }
.cam-end .finish-acts { display: flex; flex-direction: column; gap: var(--s-3); }
/* + 부위 추가 and + 색 추가 side by side, above 완료 (ADR 0163, ADR 0191). */
.cam-adds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
.cam-end .finish-acts .hint { margin: calc(-1 * var(--s-2)) 0 0; }
.cam-end .finish-row > .ui-button { flex: 0 1 auto; }
.cam-add .i { width: 18px; height: 18px; }
/* Each photo in the list's order, a row the product added outlined (ADR 0163). */
.cam-strip { display: flex; gap: var(--s-2); overflow-x: auto; }
.cam-strip .cut { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-half); width: 52px; color: var(--muted); font-size: var(--t-cap); line-height: 1.25; text-align: center; }
.cam-strip img { width: 48px; height: 48px; border-radius: var(--r-1); background: var(--soft); object-fit: cover; }
.cam-strip .cut.new { color: var(--ink); font-weight: 700; }
.cam-strip .cut.new img { outline: 2px solid var(--accent); outline-offset: 1px; }
.cam-end .sheet-acts [aria-busy] { opacity: 0.6; } /* pressed, going on once the last shot is on the phone */
.cam-end-queue { align-self: flex-start; padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-cap); font-weight: 600; }
.album { display: block; margin: var(--s-3) 0 0; text-align: center; }

.group { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.group > *, .group .hint { margin: 0; }
.fld output { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 촬영 설정's parts: a row per part, its place, hint and switch, beside the order they make. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: var(--space-section); align-items: start; }
.partsform { display: grid; gap: var(--s-3); min-width: 0; }
.parts { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.parts li { display: grid; grid-template-columns: 30px 44px minmax(0, 1fr) 130px var(--h); gap: var(--s-2) var(--s-3); align-items: center; padding: var(--s-3); border-top: 1px solid var(--line); }
.parts li:first-child { border-top: 0; }
.parts li.off input[type="text"], .parts li.off select { opacity: .45; }
.parts .hintf { grid-column: 3 / -1; display: grid; gap: var(--s-1); }
.parts .hintf span:not(.ui-label) { color: var(--muted); font-size: var(--t-cap); }
.tabwrap { position: relative; }
.typetabs { align-items: center; gap: var(--s-half); scroll-padding-right: 36px; }
.typetabs a { flex: none; }
.typetabs .dots, .typetabs .plus { flex: none; margin: 0; }
.typetabs .dots:not(.ui-button) { width: var(--h); height: var(--h); border-radius: var(--r-1); color: var(--ink); }
.typetabs .dots:not(.ui-button):hover, .typetabs .dots:not(.ui-button)[aria-expanded="true"] { background: var(--soft); }
.typetabs .plus:not(.ui-button) { width: var(--h); height: var(--h); color: var(--accent); }
.typetabs .plus { position: sticky; right: 0; margin-left: auto; background: var(--bg); }
.typetabs .ui-button { align-self: center; }
/* A name refused keeps the box, its line in the error colour, and a short mark beside it on the tabs' line (#886). */
.rentab[aria-invalid="true"] { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -2px; }
.typetabs > .bad-mark { flex: none; max-width: 40%; }
.rentab { flex: none; box-sizing: content-box; min-height: 34px; margin: 0 var(--s-half); padding: 0 var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-1); background: var(--input); color: inherit; font: inherit; font-size: var(--t-sub); font-weight: var(--w-2); }
.pop.tabmenu { top: calc(100% + 2px); min-width: 210px; }
.pop:not(.ui-menu) .it.danger { color: var(--error); }
.pop.tabmenu:not(.ui-menu) .it { justify-content: flex-start; gap: var(--s-2); }  /* the icon before the words, always shown */
.pop.tabmenu:not(.ui-menu) .it > .i { visibility: visible; }
.pop.tabpop { top: calc(100% + 2px); min-width: 0; width: 280px; max-width: 100%; display: grid; gap: var(--s-3); padding: var(--s-3); }
.tabpop .foot .btn { width: auto; }
.parts .ghost { display: block; padding: 0; }
.parts .ghost button { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--h); padding: 0 var(--s-4); border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-sub); font-weight: var(--w-2); text-align: left; cursor: pointer; }
.parts .ghost button:hover { background: var(--soft); color: var(--accent); }
.ask { box-sizing: border-box; width: 380px; max-width: calc(100% - 32px); margin: 80px auto auto; padding: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.ask p { margin: 0 0 14px; }
.ask.out h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; }
.ask.out ul { display: grid; gap: 4px; margin: 0 0 14px; padding-left: 18px; font-size: 14px; }
.ask .acts { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger.solid { background: var(--error); border-color: var(--error); color: var(--surface); }
.hd { display: grid; place-items: center; width: 30px; height: var(--h); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: grab; touch-action: none; }
.hd:hover { background: var(--soft); }
.sortable-ghost { opacity: .4; }
.parts li > .ui-switch { justify-self: end; }
.ordercard { padding: var(--space-card); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.ordercard h2 { margin: 0 0 var(--s-half); font-size: var(--t-body); }
.ordercard > .meta:not(.ui-hint, .ui-lead) { font-size: var(--t-sub); }
.oline { display: grid; gap: var(--s-1); margin: var(--s-2) 0; padding: 0; list-style: none; font-size: var(--t-sub); counter-reset: o; }
.oline li { display: flex; gap: var(--s-2); counter-increment: o; }
.oline li::before { content: counter(o); width: 18px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .people li { grid-template-columns: minmax(0, 1fr) var(--h); }
  .people .st { grid-column: 1; grid-row: 2; }
  .people .dots { grid-column: 2; grid-row: 1 / span 2; width: var(--h-touch); }
  .inv { flex-direction: column; align-items: stretch; }
  .inv.namef { flex-direction: row; align-items: center; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .parts li { grid-template-columns: 30px minmax(0, 1fr) 44px var(--h); }
  .parts .cs, .parts .hintf { grid-column: 1 / -1; }
  .parts .hd { grid-column: 1; grid-row: 1; }
  .parts .pn { grid-column: 2; grid-row: 1; }
  .parts .x { grid-column: 4; grid-row: 1; }
}

/* The Detail Section's caption, 상세페이지 캡션, under a photo the Template captions with what Staff wrote */
.caption-form { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); }
.caption-form label { flex: 1; font-size: var(--t-sub); font-weight: 600; }
.caption-form .said { margin-left: auto; font-size: var(--t-sub); color: var(--ok-ink); }  /* 저장됨 beside the label (#742) */
.caption-form input { flex: 1 1 100%; min-width: 0; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-2); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-sub); }


/* The review: a tap on a row opens its modal, and held images show large. */
.part[data-part] .pair { cursor: pointer; }
.shot { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.badge.new { top: auto; bottom: 6px; background: var(--ok-ink); color: var(--bg); }
.badge.fix { background: var(--fix); color: var(--on-fix); }
/* Under 900 px a sheet at the foot of the window; the width below makes it a modal. It leaves the page's scroll and, with the gutter, the grid's width where they were. */
html:has(main[data-product-page]) { scrollbar-gutter: stable; }
html:has(.sheet[open], .ui-dialog[open]) { overflow: hidden; }
.sheet { inset: auto 0 0; width: 100%; max-width: none; max-height: 86dvh; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-3) var(--r-3) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet); }
.sheet[open] { animation: rise var(--d-slide) ease-out; }
.sheet::backdrop, .ask::backdrop { background: var(--scrim); }
.sheet-body { display: flex; flex-direction: column; gap: var(--s-3); max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-panel) var(--space-panel) calc(var(--space-panel) + env(safe-area-inset-bottom)); }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
/* A figure stands as tall as the taller of the two, and the extra goes above its caption, not into a picture's frame: a
   frame stretched past a shorter picture showed its ground as a strip under it on a phone (#76). A picture still being
   drawn has no picture to show, so its frame keeps the row's height. */
.sheet-images figure { display: grid; grid-template-rows: 1fr auto; gap: var(--s-1); min-width: 0; margin: 0; color: var(--muted); font-size: var(--t-cap); text-align: center; }
.sheet-images .shot { background: var(--ground); }
.sheet-images .shot:not(.pending) { align-self: start; }
.sheet-images img { max-height: 360px; object-fit: contain; }
.sheet-images .pending { aspect-ratio: 1; }
/* /ops read's switch under the drawing (#445): a press shows another drawing large and picks nothing. While it does, the
   drawing's badges, which speak of the one in use, give way to its name. */
.sheet-images figcaption:has(.views) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; }
.view-line { width: 100%; font-size: var(--t-cap); }
/* /ops read's 요청 under the two images (#718, docs/mockups/718-request-behind-each-draft.html): what the drawing on show
   was asked with, a label beside each value on a PC and above it on a phone, and the prompt sent folded. */
.request { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); font-size: var(--t-sub); }
.request-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin: 0; }
.request-top time { color: var(--muted); font-variant-numeric: tabular-nums; }
.request dl { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: var(--s-2) var(--s-3); margin: 0; }
.request dt { color: var(--muted); }
.request dd { display: flex; flex-wrap: wrap; gap: var(--s-1); min-width: 0; margin: 0; }
.request-none { color: var(--muted); }
.request ol { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.request li { display: flex; gap: var(--s-2); align-items: baseline; }
.request li .ui-count { flex: none; }
.request details { width: 100%; }
.request summary { color: var(--accent-ink); font-weight: var(--w-2); cursor: pointer; }
.request pre { max-height: 220px; overflow: auto; margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); font: inherit; font-size: var(--t-cap); white-space: pre-wrap; overflow-wrap: anywhere; }
/* 표시 under a 여기 고치기's lines (#848, docs/mockups/848-fix-marks.html): the image it started from with its marks
   laid over it in the modal's accent, numbered, beside the mask it sent; then the tools each area was marked with. */
.fix-marks { display: grid; gap: var(--s-1); width: 100%; }
.fix-marks-pictures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--s-1) var(--s-2); align-items: start; max-width: 30em; }
.fix-marks figure { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; margin: 0; color: var(--muted); font-size: var(--t-cap); }
.fix-marks figcaption a { margin-left: var(--s-1); color: var(--accent-ink); font-weight: var(--w-2); text-decoration: none; }
.fix-marks :is(svg, img) { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-1); }
.fix-marks-ground { fill: var(--ground); }
.fix-marks-paint { fill: var(--accent); fill-opacity: .45; }
.fix-marks-box { fill: none; stroke: var(--accent); }
.fix-marks-badge circle { fill: var(--accent); }
.fix-marks-badge text { fill: var(--on-accent); font-weight: var(--w-3); }
.fix-marks-note { margin: 0; color: var(--muted); font-size: var(--t-cap); }
.fix-marks-tools { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-cap); }
.fix-marks-tools li { display: block; }
.fix-marks-tools b { color: var(--ink); font-weight: var(--w-2); }
@media (max-width: 700px) {
  .request dl { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .request dd + dt { margin-top: var(--s-1); }
}
.sheet-images .shot[data-viewing] :is(.badge, .over) { display: none; }
.sheet-images .shot[data-viewing]::after { content: attr(data-viewing) " 보는 중"; position: absolute; top: 8px; left: 8px; padding: var(--s-half) var(--s-2); border-radius: var(--r-full); background: var(--viewer-chip); color: var(--on-viewer); font-size: var(--t-cap); font-weight: 700; }
/* The review modal's one row of actions, all one size, at its foot (ADR 0060): the body scrolls above it, so on a phone's sheet
   it stays in view below the panel it presses for. A phone drops their icons, so each fits one line. */
.sheet:has(> .sheet-acts)[open] { display: flex; flex-direction: column; }
.sheet:has(> .sheet-acts) .sheet-body { flex: 1 1 auto; min-height: 0; padding-bottom: var(--s-3); }
.sheet-acts { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) var(--space-panel) calc(var(--space-panel) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-acts .btn { white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 700px) { .sheet-acts :is(.i, .long) { display: none; } }
@media (min-width: 701px) { .sheet-acts { gap: var(--s-2); padding: var(--s-3) var(--s-5) var(--s-5); } }  /* a modal's inset, as ui-dialog's */
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.acts .btn { flex: none; width: auto; padding-inline: var(--s-4); }
.sheet fieldset { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.sheet fieldset[disabled] { opacity: 0.6; }
.sheet-head { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
/* ‹ | › (the mockup of #737): the product page's ‹ › joined into one group at the right, before 닫기, so each modal has
   them in the same place and the pointer stays on › from one row to the next. */
.sheet-head .link-btn { margin-left: auto; }  /* 닫기 at the right, in a review modal and in a photo's own dialog */
.sheet-head .sheet-step { position: relative; display: inline-flex; flex: none; margin-left: auto; }
.sheet-head .sheet-step + .link-btn { margin-left: var(--s-2); }
.sheet-head > .ui-button { margin-left: auto; } /* the React screen's 닫기, alba's (#643), placed as .link-btn's */
.sheet-head .sheet-step + .ui-button { margin-left: var(--s-2); }
.sheet-head .sheet-step button { display: inline-grid; place-items: center; box-sizing: border-box; width: var(--h); height: var(--h); padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.sheet-head .sheet-step button:first-child { border-radius: var(--r-1) 0 0 var(--r-1); }
.sheet-head .sheet-step button:last-child { border-left: 0; border-radius: 0 var(--r-1) var(--r-1) 0; }  /* the two share one line between them */
.sheet-head .sheet-step button[disabled] { cursor: default; }
.sheet-head .sheet-step button[disabled] > svg { opacity: 0.35; }
.sheet-note { margin: calc(-1 * var(--s-1)) 0 0; color: var(--muted); font-size: var(--t-cap); }
.sheet textarea, .code textarea { width: 100%; padding: var(--s-3) var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-2); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-body); line-height: 1.5; resize: vertical; }
/* The strip names its choice (#717): a heading, then a group per photo of AI 없이 and each drawing, the one used marked 사용 중. */
.strip-head { display: flex; align-items: baseline; gap: var(--s-2); margin: 0 0 calc(-1 * var(--s-2)); padding: 0 var(--s-1); }
.strip-head strong { font-size: var(--t-sub); }
.strip-head span { color: var(--muted); font-size: var(--t-cap); }
.strip { display: flex; gap: var(--s-2); overflow-x: auto; }
.gen { display: flex; flex-direction: column; gap: var(--s-half); flex: none; }
.gen + .gen { padding-left: var(--s-2); border-left: 1px solid var(--line); }
.gen > span { padding-left: var(--s-1); color: var(--muted); font-size: var(--t-cap); }
.gen > div { display: flex; gap: var(--s-1); align-items: flex-start; }
.strip button { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-half); width: 68px; padding: var(--s-1); border: 2px solid transparent; border-radius: var(--r-2); background: none; color: var(--ink); font: inherit; font-size: var(--t-cap); cursor: pointer; }
.strip button.on { border-color: var(--accent); font-weight: 700; }
.strip [data-original] { cursor: default; }  /* AI 없이 picked before ADR 0176, in use, which takes no press */
.strip [data-show-draft][aria-pressed="true"] { border-color: var(--fix); border-style: dashed; font-weight: 700; }  /* a 수정안 beside the image in use (#452) */
.strip img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--r-1); background: var(--soft); }
.strip .use { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-half); min-height: 16px; color: var(--accent); font-size: var(--t-cap); font-weight: 700; line-height: 1.25; text-align: center; }
.strip .use .i { width: 12px; height: 12px; stroke-width: 3; }
.strip .use.busy { color: var(--muted); font-weight: 600; }
.strip .use .spinner { width: 11px; height: 11px; margin: 0; }
.strip button.ours { width: 104px; line-height: 1.3; text-align: center; }  /* 새로운 프롬프트로 업데이트, on two lines */
/* The dimmed 2차 before a redraw: no button, a dashed box where the next drawing lands. */
.later { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-half); width: 104px; padding: var(--s-1) var(--s-1) var(--s-1); color: var(--muted); font-size: var(--t-cap); opacity: 0.8; }
.later > span:first-child { display: flex; align-items: center; justify-content: center; width: 98px; height: 54px; padding: var(--s-1); border: 1.5px dashed var(--input-line); border-radius: var(--r-1); font-size: var(--t-cap); line-height: 1.35; text-align: center; }
.later > span:last-child { opacity: 0.7; }
/* The modal's tools under the drawing, ⋯'s menu, and the panel each opens (ADR 0165, #506's mockup). */
.sheet-tools { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--h); gap: var(--s-2); }
.sheet-tools .tool { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--h); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.sheet-tools .tool[aria-pressed="true"], .sheet-tools .tool[aria-expanded="true"] { background: var(--info-bg); border-color: var(--accent); color: var(--info-ink); }
.sheet-tools .tool.more { padding: 0; }
.sheet-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 4; display: flex; flex-direction: column; width: min(340px, 100%); padding: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-menu); }
.sheet-menu button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: inherit; font-size: var(--t-body); text-align: left; cursor: pointer; }
.sheet-menu button:hover:not(:disabled) { background: var(--soft); }
.sheet-menu button:disabled { opacity: 0.5; cursor: default; }
.sheet-menu button > span { display: flex; flex-direction: column; line-height: 1.3; }
.sheet-menu small { color: var(--muted); font-size: var(--t-cap); }
.sheet-menu .paid, .sheet-panel .paid { padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--t-cap); font-style: normal; font-weight: 600; }
.sheet-menu hr { width: 100%; margin: var(--s-1) 0; border: 0; border-top: 1px solid var(--line); }
.sheet-panel { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
.sheet-panel .panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); color: var(--muted); font-size: var(--t-sub); }
.sheet-panel .panel-head strong { color: var(--ink); font-size: var(--t-sub); }
.sheet-panel .panel-acts { display: flex; justify-content: flex-end; }
.sheet-panel.asking { border-color: var(--accent); background: var(--accent-soft); }
.sheet-panel .redraw-ask { display: flex; flex-direction: column; gap: var(--s-2); outline: none; }
.sheet-panel.asking .panel-head strong { font-size: var(--t-body); }
.sheet-panel .redraw-ask .reason small { color: var(--muted); font-size: var(--t-cap); font-weight: var(--w-1); }
.sheet-panel .redraw-ask .reason:has(> input:checked) { background: var(--surface); }
.sheet-panel .redraw-ask .panel-acts { flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.sheet-panel .redraw-ask .to-fix { margin-right: auto; }
.sheet-panel .redraw-ask .as-it-is { color: var(--muted); }
.sheet-panel .ui-main .paid { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 700px) {
  .sheet-panel .redraw-ask .panel-acts > .ui-button { flex: 1 1 auto; justify-content: center; }
  .sheet-panel .redraw-ask .panel-acts > .to-fix { flex: 1 0 100%; justify-content: flex-start; }
}
.fix-empty { margin: 0; color: var(--muted); font-size: var(--t-sub); }
.fix-areas { display: flex; flex-direction: column; gap: var(--s-2); }
.fix-areas:empty, .fix-more:has([hidden]) { display: none; }
.fix-area { display: grid; grid-template-columns: var(--h) minmax(0, 1fr) var(--h); align-items: center; gap: var(--s-1); }
.fix-area .num { display: inline-grid; place-items: center; width: var(--h); height: var(--h); padding: 0; border: 0; background: none; cursor: pointer; }
.fix-area .num span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--area, var(--accent)); color: var(--on-accent); font-size: var(--t-cap); font-weight: 700; }
/* Each area's number wears its colour on the drawing (#891), and the one picked a ring. */
.fix-area.on .num span { outline: 2px solid var(--ink); outline-offset: 2px; }
/* What to do first, said for a pointer on a PC and for a finger on a phone. */
.fix .ui-empty .phone { display: none; }
@media (max-width: 700px) { .fix .ui-empty .pc { display: none; } .fix .ui-empty .phone { display: inline; } }
.fix-area input { width: 100%; min-height: var(--h); padding: 0 var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-sub); }
.fix-area.on input { border-color: var(--accent); }
.fix-area .x { display: inline-grid; place-items: center; width: var(--h); height: var(--h); padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.fix-more { display: flex; }
.fix-more .link-btn { min-height: var(--h); gap: var(--s-1); font-size: var(--t-sub); }
.quick { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.quick button:not(.ui-chip) { display: inline-flex; align-items: center; min-height: var(--h); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); cursor: pointer; }
.quick :not(.ui-chip)[aria-pressed="true"] { background: var(--fix); border-color: var(--fix); color: var(--on-fix); font-weight: 600; }
.quick .sub { margin-left: var(--s-1); color: inherit; font-weight: 400; opacity: 0.85; }
.quick .ui-chip .sub { margin-left: 0; opacity: 1; }
.ref { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sub); }
.ref .thumb { flex: none; width: 44px; height: 44px; border-radius: var(--r-1); object-fit: cover; background: var(--ground); }
.ref .what { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ref .what small { color: var(--muted); font-size: var(--t-cap); }
.ref .link-btn { margin-left: auto; font-size: var(--t-sub); }
.ref-picks { display: flex; gap: var(--s-2); overflow-x: auto; }
.ref-picks button { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-half); width: 72px; padding: var(--s-1); border: 2px solid transparent; border-radius: var(--r-2); background: none; color: var(--ink); font: inherit; font-size: var(--t-cap); cursor: pointer; }
.ref-picks [aria-pressed="true"] { border-color: var(--accent); font-weight: 700; }
.ref-picks img { width: 54px; height: 54px; border-radius: var(--r-1); object-fit: cover; background: var(--soft); }
/* The marks over the drawing while 여기 고치기 is open: the canvas lies on the image, and takes the finger from the page. */
.sheet-images .shot[data-marking] { touch-action: none; }
.sheet-images .shot canvas[data-fix-canvas] { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
/* The brush's cursor is a ring its own size on the drawing (.fix-cursor), so the pointer's own goes; space held drags. */
.sheet-images .shot canvas[data-fix-canvas] { cursor: none; }
.sheet-images .shot canvas[data-fix-canvas][data-dragging] { cursor: grab; }
.fix-cursor { position: absolute; left: calc(var(--fix-at-x, 0) * 1px); top: calc(var(--fix-at-y, 0) * 1px); width: calc(var(--fix-ring, 0) * 1px); height: calc(var(--fix-ring, 0) * 1px); border: 1.5px solid var(--on-viewer); border-radius: var(--r-full); outline: 1px solid var(--viewer-chip); pointer-events: none; transform: translate(-50%, -50%); }
.fix-cursor[hidden] { display: none; }
.fix-cursor[data-erasing] { border-style: dashed; }
.fix-cursor[data-erasing]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--on-viewer); outline: 1px solid var(--viewer-chip); transform: translate(-50%, -50%); }
/* Zoomed, the drawing and its marks move together inside the frame, and a 수정안's outline, drawn for the drawing
   whole, waits until it is back. */
.sheet-images .shot[data-marking] > img, .sheet-images .shot canvas[data-fix-canvas] { transform-origin: 0 0; transform: translate(calc(var(--fix-x, 0) * 1px), calc(var(--fix-y, 0) * 1px)) scale(var(--fix-k, 1)); }
.sheet-images .shot[data-zoomed] :is(.fixed, .badge) { display: none; }
.fix-zoom { position: absolute; top: var(--s-2); right: var(--s-2); min-height: var(--h); padding: 0 var(--s-3); border: 0; border-radius: var(--r-full); background: var(--viewer-chip); color: var(--on-viewer); font: inherit; font-size: var(--t-cap); font-weight: 700; cursor: pointer; }
/* The toolbar under the drawing (#891, docs/mockups/891-selection-brush/): the brush's size, 지우기, undo, redo and
   전체 지우기, dark in either scheme as the drawing's badges are. 지우기 names itself on a phone, which has no tip. */
.fix-bar { display: flex; align-items: center; gap: 0; justify-self: center; max-width: 100%; margin-top: var(--s-1); padding: var(--s-half) var(--s-1); border-radius: var(--r-full); background: var(--viewer-chip); color: var(--on-viewer); box-shadow: var(--shadow-menu); white-space: nowrap; }
.fix-bar button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-width: var(--h); height: var(--h); padding: 0 var(--s-2); border: 0; border-radius: var(--r-full); background: none; color: inherit; font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.fix-bar button:hover:not(:disabled) { background: color-mix(in srgb, var(--on-viewer) 14%, transparent); }
.fix-bar button:disabled { opacity: 0.35; cursor: default; }
.fix-bar button[aria-pressed="true"] { background: var(--on-viewer); color: var(--viewer-chip); }
.fix-bar .sep { width: 1px; height: 20px; margin: 0 var(--s-1); background: color-mix(in srgb, var(--on-viewer) 25%, transparent); }
.fix-bar .size { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0 var(--s-1); }
.fix-bar .size input { width: 92px; margin: 0; accent-color: var(--on-viewer); }
.fix-bar .dot { display: block; border-radius: var(--r-full); background: var(--on-viewer); }
.fix-bar .dot.small { width: 5px; height: 5px; }
.fix-bar .dot.large { width: 13px; height: 13px; }
.fix-bar .name { display: none; }
@media (max-width: 700px) {
  .fix-bar .name { display: inline; }
  /* As wide as the drawing, the slider taking what the buttons leave, so it fits a 360 px phone. */
  .fix-bar { justify-self: stretch; min-width: 0; }
  .fix-bar .size { flex: 1 1 0; min-width: 0; }
  .fix-bar .size input { flex: 1 1 0; width: 0; min-width: 0; }
  /* While 여기 고치기 is open on a phone, the drawing takes the width to be painted on, and the photo shows as the
     panel's reference. */
  .sheet-images:has(.shot[data-marking]) { grid-template-columns: minmax(0, 1fr); }
  .sheet-images:has(.shot[data-marking]) > figure:first-child { display: none; }
  .sheet-images .shot[data-marking] > img { max-height: 60vh; }
}
/* What a 여기 고치기 fixed, outlined dashed on its 수정안 while it is shown (#506). */
.sheet-images .fixed { position: absolute; border: 1.5px dashed var(--accent); border-radius: var(--r-1); pointer-events: none; }
.sheet-acts .hint { align-self: center; line-height: 1.35; }
.sheet-acts .hint:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-cap); }
.sheet-acts .cost { font-weight: 400; font-size: var(--t-sub); opacity: 0.9; }
.sheet-acts .aside { display: none; }
.sheet-acts [data-fix-send] { align-self: center; }
.sheet-acts .fix-mark { align-self: center; }  /* a 수정안 refused, in the hint's place (#886) */
/* On a phone the cost stands over the press, alone, and the press takes the row. */
@media (max-width: 700px) {
  .sheet-acts:has([data-fix-hint]:not([hidden])) { grid-auto-flow: row; }
  .sheet-acts .hint { text-align: center; }
}  /* 이 컷 사용 and 다시 고치기, while 수정안 만들기 stands in their place */
/* What takes a shot's new photo: a phone's camera, or a PC's file picked or dropped (ADR 0054). */
.take .say { margin: 0; }
.take .say:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-sub); }
.take .warn { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-1); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--t-sub); }
.take .album { display: block; margin: 0; text-align: center; }
.take .by-phone { display: grid; gap: var(--s-1); }
/* The 상세페이지 tab: the section, and beside it, or above it on a phone, everything that hands it over. */
.sect { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-section); align-items: start; margin-top: var(--space-section); }
.handover { display: grid; gap: var(--s-3); order: -1; padding: var(--space-card); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.handover .meta, .handover form p { margin: 0; }
.handover form { display: grid; gap: var(--s-2); justify-items: start; }
.handover .two { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.handover .two .btn { flex: 1 1 auto; width: auto; }
.handover .meta .i { width: 14px; height: 14px; vertical-align: -2px; }
.code textarea { margin-top: var(--s-2); }
.code:not([open]) summary span + span, .code[open] summary span:first-child { display: none; }
.full { position: fixed; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); background: var(--viewer-bg); pointer-events: none; }
.full img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .full { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
/* The product page's width is its own container: 고른 컷 받기 takes a column beside the cuts once the page has room for
   both, as alba's panels split by their own width, and the rows' columns below read the same width. */
main[data-product-page] { max-width: 1120px; container-type: inline-size; }
@media (min-width: 701px) {  /* never in a phone's dress, which keeps one column */
  @container (min-width: 620px) {
    .sect { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-5); }
    .handover { position: sticky; top: calc(var(--tabs) + 16px); order: 0; }
  }
}
@media (min-width: 701px) {
  .code textarea { font: 12px/1.5 ui-monospace, Menlo, monospace; }
  .sheet { inset: 0; width: min(860px, calc(100% - 64px)); height: fit-content; max-height: calc(100dvh - 56px); margin: auto; border-radius: var(--r-2); box-shadow: var(--shadow-2); }
  .sheet[open] { animation-name: fade; animation-duration: var(--d-1); }
  .sheet-body { padding: var(--s-5); }
  .sheet.take { width: min(480px, calc(100% - 64px)); }
  .take .by-phone { display: none; }
}
@media (max-width: 700px) { .take .drop { display: none; } }
/* A PC, told by its mouse, has no camera to open: the camera button picks a file under its own words, and 앨범에서 고르기,
   which would open the same picker, goes (#107). A touch screen, a tablet's too, keeps both, as a phone. */
.say-phone { display: contents; }
.say-pc { display: none; }
@media (hover: hover) and (pointer: fine) {
  .say-phone, .album, .take .album, .phone-only, #shoot > .ui-button.album, .ui-button.ui-button.phone-only { display: none; }
  .say-pc { display: contents; }
  #shoot [data-camera] { margin-bottom: var(--s-3); }  /* apart from 이 상품에는 없음, as the album's line kept it */
}
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
/* Four columns by the width the rows have, so a narrow window gives two, the headings with them. */
@container (min-width: 840px) {
  .heads, [data-rows] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
  .heads div + div { display: grid; }
  /* The two parts of a row share its tracks, so each thing starts at one height across it: the name, the pictures, the
     상세페이지 캡션, then the colour tiles, which a part with nothing in the 캡션's track lifts into it. Every picture card
     is one 4:5 frame, a picture of another shape centred in it (#124, docs/mockups/124-cut-step.html). */
  [data-rows] > .part { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  [data-rows] > .part > * { grid-column: 1; }  /* an empty .under shares its cell with the tiles, opening no column beside them */
  .part > .partline { grid-row: 1; }
  .part > .pair, .part > .skipped { grid-row: 2; }
  .part > .under { grid-row: 3; display: flex; flex-direction: column; }
  .under > .caption-form { order: -1; }  /* ahead of a brush link, which only a whole cut has */
  .part > .recolour { grid-row: 4; }
  .part:not(:has(> .under > :not(dialog))) > .recolour { grid-row: 3 / span 2; }
  .pair .card { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 5; }
  .pair .card > .shot { flex: none; }
  .pair .empty { aspect-ratio: 4 / 5; }
}

/* The crop box. */
.crop { position: relative; overflow: hidden; border-radius: var(--r-1); touch-action: none; user-select: none; -webkit-user-select: none; }
.crop img { display: block; width: 100%; height: auto; border-radius: var(--r-1); }
.crop-box { position: absolute; border: 2px solid #ffffff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); cursor: move; touch-action: none; }
.crop-handle { position: absolute; right: -2px; bottom: -2px; width: 44px; height: 44px; background: linear-gradient(135deg, transparent 50%, #ffffff 50%); cursor: nwse-resize; touch-action: none; }
.crop-result { display: block; width: 160px; height: auto; margin: var(--s-1) 0 var(--s-3); border-radius: var(--r-1); background: var(--soft); }
.crop-actions { display: flex; gap: var(--s-2); }

/* 상세페이지 템플릿: the page is the editor. The face is the section as Cafe24 shows it, so it stays white in the dark. --u is one section pixel, set on the page by the editor (client/template/draw.ts). */
:root { --box-line: #aeb4be; --box-ink: #5f6672; --box-fill: #f3f4f6; }
.template h2 { margin: 0; font-size: var(--t-body); }
.template .head { flex-wrap: nowrap; gap: var(--s-3); margin-bottom: var(--s-1); }
.template .head h1 { flex: none; margin: 0; }
.template .head .acts { flex: 1; }
.acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The Template's top line (the mockups of #640 and #731): ↶ ↷ 🕘, then 박스 | 상품 ▾ and 저장 at the right. ↶ and ↷ show
   the product page's tip, below with the walk's. */
.head-tools { display: flex; align-items: center; gap: var(--s-half); }
.head-tools .ui-button.icon { position: relative; }  /* ↶ and ↷, alba's quiet buttons (#644), hold their tip */
.acts .spring { flex: 1; }
.anchor { position: relative; display: inline-flex; }
.ui-seg.looks-switch { position: relative; overflow: visible; }  /* its 상품 way opens a popover below it */
.switch { position: relative; display: inline-flex; box-sizing: border-box; height: var(--h); padding: var(--s-half); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--soft); }
.switch > button { display: inline-flex; align-items: center; gap: var(--s-1); max-width: 260px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: none; color: var(--muted); font: inherit; font-size: var(--t-sub); font-weight: 600; white-space: nowrap; cursor: pointer; }
.switch > button span { overflow: hidden; text-overflow: ellipsis; }
.switch > button[aria-pressed="true"], .switch > button[aria-expanded="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
/* 버전 기록 and 상품's list scroll inside their menu past seven rows. */
.pop .lab { margin: 0; padding: var(--s-2) var(--s-3) var(--s-1); color: var(--muted); font-size: var(--t-cap); font-weight: 700; }
.pop .list, .looks-pop .plist { max-height: calc(var(--h) * 7); overflow-y: auto; }
.pop .it .sub { margin-left: auto; }
.pop .it .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-cap); font-weight: 400; }
.pop.saves-pop { width: 270px; min-width: 0; }
.pop.saves-pop .it { font-variant-numeric: tabular-nums; }
.pop.saves-pop .it > .i { visibility: hidden; }
.pop.saves-pop .it[aria-current="true"] { background: var(--soft); }
.pop.saves-pop .it[aria-current="true"] > .i { visibility: visible; }
/* 운영팀: a template version or a settings page Ops saved (#204), so a mall's Staff can tell our saves from theirs. */
.by { display: inline-flex; align-items: center; height: 18px; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-corner); font-weight: 700; white-space: nowrap; }
.saved-by { display: flex; gap: var(--s-2); align-items: center; margin: var(--s-1) 0 0; }
.pop.looks-pop { width: 320px; min-width: 0; padding: var(--s-2); }
.looks-pop p { margin: 0; }
.looks-pop > .sub { padding: var(--s-2) var(--s-3); }
.looks-pop > .sub:not(.ui-hint, .ui-lead) { font-size: var(--t-sub); }
.looks-pop .search { display: block; margin-bottom: var(--s-1); }
.plist { list-style: none; margin: 0; padding: 0; display: grid; }
.plist button { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--h); padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: none; color: inherit; font: inherit; font-size: var(--t-sub); text-align: left; cursor: pointer; }
.plist button:hover, .plist button:focus-visible, .plist button[aria-current="true"] { background: var(--soft); }
/* A product that could not be opened keeps its row's height: an outline in the error colour and a short mark (#886). */
.plist button[data-refused] { outline: 1px solid var(--error); outline-offset: -2px; }
.plist button > .bad-mark { flex: none; max-width: 50%; margin-left: auto; }
.plist img { flex: none; width: 26px; height: 26px; object-fit: contain; border-radius: var(--r-1); background: #ffffff; }
/* A prompt's label line, with 버전 기록 at its right. */
.field .lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 16px; align-items: start; }
.canvas { position: relative; max-height: 780px; overflow: auto; padding: 56px 26px 16px 40px; background: var(--soft); border-radius: 10px; }
.face { background: #ffffff; color: #3c3c3c; box-shadow: 0 0 0 1px var(--line); }
.paper { min-height: 40px; }
.paper img { display: block; }
.blk { position: relative; }
.blk::before { content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 40px; }  /* a drag down the handles' gutter still passes over each Block */
.cells .blk::before { content: none; }
.blk.held { opacity: .25; }
.edgeline { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.blk:not([data-kind="photo"]):hover > .edgeline, .blk[data-kind="photo"]:hover .one { box-shadow: 0 0 0 1px var(--accent); }
.blk.sel:not([data-kind="photo"]) > .edgeline, .blk.sel[data-kind="photo"] .one { box-shadow: 0 0 0 2px var(--accent); }
.blk .hd { position: absolute; left: -34px; top: calc(28px - var(--h) / 2); z-index: 3; width: 28px; height: var(--h); padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.blk:hover .hd, .blk.sel .hd, .blk .hd:focus-visible { color: var(--ink); background: var(--surface); }
.below { position: relative; }
.blk.sel > .below { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(31, 90, 214, .16) 5px 7px); }
.one { position: relative; max-width: 100%; }
.one.sel { box-shadow: 0 0 0 2px var(--accent); }
.shot { position: relative; overflow: hidden; }
.shot > img:first-child { display: block; width: 100%; height: auto; }
.box { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--box-fill); outline: 1px dashed var(--box-line); outline-offset: -1px; color: var(--box-ink); font-size: calc(26 * var(--u)); font-weight: 700; }
.box .boxname { position: absolute; left: calc(16 * var(--u)); top: calc(12 * var(--u)); pointer-events: none; }
.cap { position: relative; white-space: nowrap; }
.cap > span { display: block; overflow: hidden; }
.line { position: relative; display: flex; align-items: center; }
.line img, .words img { flex: none; max-width: none; }
.words { position: relative; display: flex; align-items: flex-start; }
.txt { position: absolute; inset: 0 0 auto; display: block; box-sizing: border-box; width: 100%; height: 100%; padding: calc(4 * var(--u)) calc(4 * var(--u)) 0; border: 0; outline: 0; background: none; color: transparent; caret-color: var(--accent); font-family: inherit; line-height: 1.4; overflow: hidden; resize: none; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.body { position: relative; }
.pic img { display: block; width: 100%; height: auto; }
.pic { position: relative; }
.cells { position: relative; display: grid; align-items: start; }
.cells:empty { min-height: calc(120 * var(--u)); outline: 1px dashed var(--box-line); outline-offset: -1px; }
.cells > .blk { min-width: 0; }
.cells .hd { left: auto; right: calc(6 * var(--u)); top: calc(6 * var(--u)); opacity: 0; }
.cells .blk:hover .hd, .cells .one:hover .hd, .cells .sel .hd, .cells .hd:focus-visible { opacity: 1; }
/* 칸 나누기's +: an empty cell's, or on the Block's edge once the cells are full, so it never adds a row (#551) */
.cell-add { position: relative; align-self: stretch; display: grid; place-items: center; min-height: calc(120 * var(--u)); outline: 1px dashed var(--box-line); outline-offset: -1px; }
.cell-add.on-edge { position: absolute; right: -18px; top: 50%; z-index: 8; min-height: 0; transform: translateY(-50%); outline: 0; }
.cell-add > .btn { min-width: 32px; padding: 0 8px; }
.cell-add .inspop { top: calc(100% - 8px); }
.cell-add.on-edge .inspop { left: auto; right: 0; top: calc(100% + 4px); transform: none; }
.dropblk { position: relative; display: grid; place-items: center; box-sizing: border-box; min-height: calc(200 * var(--u)); padding: 12px; border: 1.5px dashed var(--box-line); background: var(--box-fill); color: var(--box-ink); font-size: 13px; text-align: center; cursor: pointer; }
.float { position: absolute; bottom: 100%; left: 0; z-index: 8; margin-bottom: 6px; width: max-content; color: var(--ink); text-align: left; cursor: default; }
.float .tb { box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.tb .tc.al { padding: 0 6px; }
.tb .tc.al svg { width: 16px; height: 16px; stroke-width: 1.6; }
.tb .tc.al[aria-pressed="true"] { background: var(--info-bg); color: var(--info-ink); }
.edge { position: absolute; top: 0; bottom: 0; right: -5px; z-index: 4; width: 10px; padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none; }
.edge.on-left { left: -5px; right: auto; }
.edge::after { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 36px; margin-top: -18px; border-radius: 3px; background: var(--accent); }
.ins { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 5; }
.ins:has([data-add-menu]) { z-index: 6; }  /* its open menu over the next block's +, which a control's height can reach */
.ins > .plus1 { position: absolute; left: 50%; top: calc(var(--h) / -2); display: grid; place-items: center; width: var(--h); height: var(--h); margin-left: calc(var(--h) / -2); padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; opacity: 0; }
.ins > .plus1::before { content: ""; position: absolute; inset: calc((var(--h) - 24px) / 2); border: 1px solid var(--accent); border-radius: 50%; background: var(--surface); }  /* the small circle it is drawn as */
.ins > .plus1 .i { position: relative; width: 14px; height: 14px; }
.ins:hover > .plus1, .ins > .plus1:focus-visible, .ins:has([data-add-menu]) > .plus1 { opacity: 1; }
.ins::before { content: ""; position: absolute; left: 44%; right: 44%; top: -9px; height: 18px; }  /* narrow, so it never covers a handle */
.inspop { position: absolute; left: 50%; top: 16px; z-index: 7; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; min-width: 150px; padding: 4px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.inspop .it { display: block; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.inspop .it:hover, .inspop .it:focus-visible { background: var(--soft); }
.inspop.row { flex-direction: row; min-width: 0; }
.inspop.row .it { width: auto; min-height: 30px; border: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.addend .inspop { top: auto; bottom: 44px; }
.addend { position: relative; justify-content: center; padding-top: var(--s-3); }  /* a ui-row (#644) */
.side-p { position: sticky; top: 8px; padding: 12px 14px; min-width: 0; max-height: 780px; overflow: auto; }
.values { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.values .choice { margin: 0; }
.values .choice legend { font-size: 13.5px; }
.values .pill { align-self: flex-start; }
.values > h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* The Template's information Blocks (#833) */
.inspop.info { min-width: 250px; gap: 1px; }
.inspop .it.two { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inspop .it small { color: var(--muted); font-size: 11.5px; }
.inspop .lab { padding: 4px 10px 0; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.inspop hr { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid var(--line); }
.tb.info-title > [data-align], .tb.info-title > .sep:last-of-type, .tb.info-title [data-font=""] { display: none; }  /* a title is centred, in a font a mall chooses */
.values .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.values .mrows { display: grid; gap: 5px; }
/* A 실측표's drawing (#58): its body, each a small drawing, then its sleeve, length and options as chips. */
.values .bods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.values .bod { display: grid; justify-items: center; padding: 4px 2px 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 400; line-height: 1.25; text-align: center; cursor: pointer; }
.values .bod[aria-pressed="true"] { border-color: var(--accent); background: var(--info-bg); color: var(--info-ink); font-weight: 600; }
.values svg.thumb { width: 100%; max-width: 54px; height: auto; color: currentColor; }
svg.thumb .flat, svg.numbered .flat { fill: currentColor; } /* a look's flat, through its mask (ADR 0114) */
.values .look-part { display: grid; gap: 4px; }
.values .look-part > span { font-size: 12.5px; color: var(--muted); }
.values .replaced { display: grid; justify-items: start; gap: 4px; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--info-bg); color: var(--info-ink); font-size: 12.5px; }
/* A type's measurements (#42): a card each, with its line's number on the drawing above, its name, 앞·뒤 and 빼기. */
.values .mkey { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 400; }
.values svg.numbered { width: 100%; height: auto; overflow: visible; color: var(--ink); }
svg.numbered line { stroke: currentColor; stroke-width: 1.6; }
svg.numbered circle { fill: var(--accent); }
svg.numbered text { fill: var(--on-accent); font-size: 21px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
svg.numbered .free line { stroke-dasharray: 4 4; opacity: .55; }
svg.numbered .free circle { fill: var(--surface); stroke: var(--input-line); stroke-width: 1.5; }
svg.numbered .free text { fill: var(--muted); }
svg.numbered .mine line { stroke: var(--accent); }
svg.numbered .mine text { fill: var(--accent); font-size: 14px; font-weight: 600; dominant-baseline: middle; }
.values .mcard { display: grid; grid-template-columns: 24px 26px minmax(0, 1fr) auto 28px; gap: 6px; align-items: center; padding: 5px 6px 5px 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.values .mcard > .hd { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.values .mcard .i { width: 14px; height: 14px; }
.values .lnum { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.values .lnum.none { border: 1.5px dashed var(--input-line); background: none; color: var(--muted); }
.values .lnum[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.values .mcard .sides { min-height: 28px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.values .mcard .sides[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 600; }
.values .mcard .x { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.values .mcard .x:hover, .values .mcard > .hd:hover { background: var(--soft); color: var(--ink); }
.values .mhead { display: grid; grid-template-columns: 24px 26px minmax(0, 1fr) auto 28px; gap: 6px; padding: 0 6px 0 3px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.values .mnew { display: flex; gap: 6px; padding: 2px 4px 4px; }
.values .mnew input { flex: 1; min-width: 0; }
.values .mcard .mnote { grid-column: 3 / -1; margin-top: -2px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.values .mcard.sortable-ghost { opacity: .4; }
/* A drawing the mall uploaded (#57): a tile to pick or drop it after the bodies, then the picture pressed, and
   under each measurement opened the picture large with its placed lines, the open one's two ends to drag. The picture
   sits on white in either theme, with its lines in the light theme's accent, as the product page draws it. */
.values .bod.up { position: relative; align-content: center; min-height: 72px; border-style: dashed; color: var(--accent); }
.values .bod.up .i { width: 22px; height: 22px; margin: 6px 0 4px; }
.values .bod.up input, .values .ownbar label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.values .bod.up:has(input:focus-visible), .values .ownbar label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.values .bod.up.aimed, .values .ownbar label.aimed { border-color: var(--accent); background: var(--info-bg); color: var(--info-ink); }
.values .bod.mine img { width: 100%; max-width: 54px; aspect-ratio: 300 / 360; object-fit: contain; border-radius: 4px; background: #fff; }
.values .ownbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.values .ownbar[hidden] { display: none; }
.values .ownbar label { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.values .ownbar .i { width: 13px; height: 13px; }
.values .lplace { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.values .lplace .sub { margin: 0; }
.values .lplace .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 12px; font-weight: 400; }
.values .lplace .lrow { display: flex; align-items: center; gap: 8px; }
.values .lplace .spring { flex: 1; }
svg.placing { width: 100%; height: auto; border-radius: 6px; background: #fff; touch-action: none; -webkit-user-select: none; user-select: none; }
svg.placing .pl line { stroke: var(--indigo-9); stroke-width: 1.6; opacity: .45; }
svg.placing .pl text { fill: var(--indigo-9); font-size: 13px; stroke: #fff; stroke-width: 3.5; paint-order: stroke; opacity: .6; }
svg.placing .pl.on line { stroke-width: 2.4; opacity: 1; }
svg.placing .pl.on text { font-weight: 700; opacity: 1; }
svg.placing .end { fill: var(--indigo-9); stroke: #fff; stroke-width: 2.5; cursor: grab; outline: none; }
svg.placing .end:active { cursor: grabbing; }
svg.placing .end:focus-visible { stroke: var(--indigo-9); stroke-width: 4; stroke-opacity: .35; }
/* The open line's label (ADR 0164): dragged on its own, with guides through its line's ends and middle while it is,
   the one it is on stronger; how a drag goes is said only where there is a mouse to hold Shift with. */
svg.placing .lab { cursor: grab; outline: none; }
svg.placing .lab:active { cursor: grabbing; }
svg.placing .lab:focus-visible { stroke: var(--indigo-9); stroke-opacity: .35; stroke-width: 5; }
svg.placing .guides line { stroke: #e2337a; stroke-width: .8; stroke-dasharray: 3 3; opacity: .45; }
svg.placing .guides line.on { opacity: 1; }
.values .lplace .drag-how { display: none; }
@media (hover: hover) and (pointer: fine) { .values .lplace .drag-how { display: block; } }
/* Our drawing under a measurement opened (#156): the flat on white, in the Section's ink, as the placer's picture. */
svg.placing.ours .flat { fill: #333333; }
.values .madd-row { display: flex; align-items: center; gap: 8px; }
.values .madd-row .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 12px; font-weight: 400; }
.values .madd { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.values .madd .lab { padding: 4px 8px 0; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.values .madd .it { padding: 6px 9px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 400; text-align: left; cursor: pointer; }
.values .madd .it:hover, .values .madd .it:focus-visible { background: var(--soft); }
/* a 표's rows, as Notion's properties: a name and a kind, and in the open one its options or what fills it */
.values .props { display: grid; gap: 6px; }
.values .prop { display: grid; gap: 6px; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.values .prop.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.values .ph { display: flex; align-items: center; gap: 6px; min-width: 0; }
.values .ph > .hd { display: grid; place-items: center; flex: none; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.values .ph > .hd:hover, .values .ph > .hd:focus-visible { background: var(--soft); color: var(--ink); }
.values .ph .i { width: 14px; height: 14px; }
.values .pname { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.values .ptype { padding: 0 7px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.values .kinds2 { display: inline-flex; justify-self: start; overflow: hidden; border: 1px solid var(--input-line); border-radius: 8px; }
.values .kinds2 button { min-height: 28px; padding: 0 10px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.values .kinds2 button[aria-pressed="true"] { background: var(--info-bg); color: var(--info-ink); }
.values .opts { display: flex; flex-wrap: wrap; gap: 4px; }
.values .opt { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; border-radius: 6px; background: var(--soft); font-size: 12px; font-weight: 400; white-space: nowrap; }
.values .opt > .hd { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: grab; touch-action: none; }
.values .opt > .x { width: 20px; height: 20px; margin-right: -4px; }
.values .opt > .x .i { width: 12px; height: 12px; }
.values .opt.sortable-ghost, .values .prop.sortable-ghost { opacity: .4; }
.values .opt.sortable-fallback > .hd { display: inline-block; }  /* an option moves by its name, which its clone keeps */
.values .prop .val { color: var(--muted); font-size: 12px; font-weight: 400; }
.values .prop > .ui-button, .values .ui-field > .ui-button { justify-self: start; }
.values .washes { display: grid; gap: 4px; }
.values .washes .wash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.values .washes .wash-group .wash-head { font-size: 12.5px; }
.values .washes .ic { display: grid; justify-items: center; gap: 2px; min-height: 0; padding: 6px 4px; font-size: var(--t-cap); font-weight: var(--w-1); line-height: 1.3; text-align: center; word-break: keep-all; }
.values .washes .ic svg { width: 34px; height: 34px; }
.numf { display: grid; gap: 2px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.nr { display: grid; grid-template-columns: minmax(0, 1fr) 62px 18px; gap: 6px; align-items: center; }
.nr input[type="range"] { width: 100%; accent-color: var(--accent); }
.nr .ui-input { padding: 0 var(--s-2); text-align: right; font-variant-numeric: tabular-nums; }  /* alba's small field (#644), its number at the right */
.nr .unit { font-size: 12px; font-weight: 400; color: var(--muted); }
/* A number past the largest keeps a short mark on its label's line, as a ui-field's (#886), so the panel stays put. */
.numf:has(> .field-mark:not([hidden])) { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: var(--s-2); }
.numf:has(> .field-mark:not([hidden])) > .nr { grid-column: 1 / -1; }
.numf > .field-mark { grid-row: 1; grid-column: 2; }
.btn.icon { display: inline-grid; place-items: center; padding: 0; width: var(--h); }
.btn.icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sortable-fallback { opacity: .9 !important; }
.sortable-fallback .hd, .sortable-fallback .ins, .sortable-fallback .edge, .sortable-fallback .edgeline, .sortable-fallback .float, .sortable-fallback .cell-add { display: none; }
[data-phone-line] { display: none; }
/* The template read from /ops (#767) is drawn as a phone draws it, read only, at any width: the page alone, nothing to press. */
.read-fields { display: contents; min-width: 0; margin: 0; padding: 0; border: 0; }
.template[data-reading] .editor { grid-template-columns: minmax(0, 1fr); }
.template[data-reading] .side-p, .template[data-reading] .addend { display: none; }
.template[data-reading] :is(.wmark, .stamped-name) { pointer-events: none; }
.template[data-reading] .blk:not([data-kind="photo"]):hover > .edgeline, .template[data-reading] .blk[data-kind="photo"]:hover .one { box-shadow: none; }
.fld { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.fld > span { display: flex; justify-content: space-between; gap: 8px; }
.fld input[type="range"] { width: 100%; accent-color: var(--accent); }
.x { display: grid; place-items: center; width: var(--h); height: var(--h); padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted); }
.x:hover:not([disabled]) { background: var(--soft); }
.x[disabled] { opacity: .3; cursor: default; }
.fld input[type="text"], .fld select { min-height: 44px; padding: 0 12px; font-size: 15px; }
.tabs button { border-width: 0 0 2px; border-style: solid; border-color: transparent; background: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.foot h2 { flex: 1; }
.wm-all { display: grid; gap: 8px; }
.wm-all[hidden] { display: none; }
.kinds.sheet-images { display: flex; flex-wrap: wrap; margin-top: 0; }
.kinds.sheet-images .kind { min-height: 40px; padding: 0 12px; border-color: var(--input-line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.kinds.sheet-images .kind:has(input:checked) { padding: 0 11px; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); }
/* The text toolbar: one row of one height, like a text editor's. */
.tb { --tc: 36px; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; }
.tb[hidden] { display: none; }
.tb.solo { justify-self: start; width: fit-content; }
.tb.wrap { flex-wrap: wrap; }
.tb .sep { flex: none; width: 1px; height: 20px; margin: 0 3px; background: var(--line); }
.tw { position: relative; display: inline-flex; flex: none; }
.tc { display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; height: var(--tc); min-width: var(--tc); padding: 0 8px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tc:hover, .tw.open > .tc { background: var(--soft); }
.tc:disabled { opacity: .4; cursor: default; }
.tc svg:not(.i) { flex: none; width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tw.font { flex: 1 1 auto; min-width: 0; max-width: 170px; }
.tw.font .tc { width: 100%; justify-content: space-between; }
.tc .fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tc.b { font-weight: 800; font-size: 15px; }
.tc.b[aria-pressed="true"] { background: var(--info-bg); color: var(--info-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tc.sw i { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--input-line); }
.tc.op { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.sizebox .tc { width: 30px; min-width: 30px; padding: 0; font-size: 17px; }
.sizebox input { box-sizing: border-box; width: 40px; height: var(--tc); padding: 0; border: 1px solid var(--input-line); border-radius: 6px; background: var(--input); color: inherit; font: inherit; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 7; min-width: 100%; box-sizing: border-box; }
/* The old screens' menus (#695): a React one is a ui-menu, and draws as alba's does. */
.pop:not(.ui-menu) { padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.pop[hidden] { display: none; }
.pop.flip { left: auto; right: 0; }
.pop:not(.ui-menu) .it { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 14px; white-space: nowrap; text-align: left; cursor: pointer; }
.pop:not(.ui-menu) .it:hover, .pop:not(.ui-menu) .it:focus-visible { background: var(--soft); }
.pop:not(.ui-menu) .it[aria-checked="true"] { color: var(--accent); font-weight: 700; }
.pop:not(.ui-menu) .it > .i { visibility: hidden; }
.pop .it[aria-checked="false"] > .i { visibility: hidden; }
.pop .it[aria-checked="true"] > .i { visibility: visible; }
.pop .it[aria-checked] > .i:last-child { margin-left: auto; }  /* a tick after the words, at the row's end */
.pop.size-list { left: 30px; min-width: 84px; max-height: 236px; overflow-y: auto; }
.pop.size-list .it { justify-content: center; font-variant-numeric: tabular-nums; }
.pal { display: grid; grid-template-columns: repeat(7, 28px); gap: 5px; padding: 6px; }
.pal button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--input-line); border-radius: 6px; cursor: pointer; }
.pal button[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.own { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.own input { width: 44px; height: 28px; padding: 0; border: 1px solid var(--input-line); border-radius: 6px; background: none; cursor: pointer; }
.pop.opac { width: 220px; padding: 10px 12px; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 12px; border: 1.5px dashed var(--input-line); border-radius: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.drop[hidden], .drop:not(.kept) img, .drop:not(.kept) [data-mark-kept], .drop.kept [data-mark-empty] { display: none; }
.drop.aimed, .dropblk.aimed { border-color: var(--accent); background: var(--info-bg); color: var(--info-ink); }
/* A photo it would not take: outlined in the error colour, its words a short mark, the sentence in the toast (#886). */
.drop.bad { border-style: solid; border-color: var(--error); background: var(--error-bg); }
.drop.bad > span { min-width: 0; }
.drop .bad-mark { display: block; }
.drop:has(input:focus-visible), .dropblk:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input, .dropblk input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { flex: none; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; }
.drop b { display: block; color: var(--ink); overflow-wrap: anywhere; }
/* A file refused (#886): the zone's line solid in the error colour, and a short mark in place of what it asks, as tall
   as the zone was, while the sentence is the toast's. An 이미지's zone on the paper does the same, and its picture,
   once it has one, keeps the outline alone. */
.drop:has(> [data-mark-error]:not([hidden])) { border-style: solid; border-color: var(--error); }
.drop:has(> [data-mark-error]:not([hidden])) :is([data-mark-empty], [data-mark-kept]) { display: none; }
.drop > .bad-mark { flex: 1; }
.dropblk.refused { border-style: solid; border-color: var(--error); }
.dropblk.refused > b { display: none; }
.dropblk > .bad-mark { max-width: 100%; }
.paper .pic.refused { outline: 2px solid var(--error); outline-offset: -2px; }
/* The mark moves by a press on it, on any box or photo of the page, and shows the cut's centre lines. */
.wmark { position: absolute; cursor: move; touch-action: none; -webkit-user-select: none; user-select: none; }
.wmark.band { cursor: ns-resize; }
.wmark::before { content: ""; position: absolute; inset: -14px; }  /* a finger needs more than the letters */
.wmark img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; }
/* A colour's name on the photo (ADR 0110): the server's picture of it, moved as the watermark is, over it. */
.stamped-name { position: absolute; cursor: move; touch-action: none; -webkit-user-select: none; user-select: none; }
.stamped-name::before { content: ""; position: absolute; inset: -10px; }  /* a finger needs more than the letters */
.stamped-name > img { display: block; max-width: none; pointer-events: none; }
.stamped-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stamped-name:hover { outline: 1px dashed var(--accent); outline-offset: 2px; }
.tb.no-align [data-align], .tb.no-align > .sep:last-of-type { display: none; }
.gv, .gh { position: absolute; pointer-events: none; border: 0 dashed #e0218a; opacity: .6; }
.gv { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.gh { left: 0; right: 0; top: 50%; border-top-width: 1px; }
.snap-x > .gv, .snap-y > .gh { border-style: solid; opacity: 1; box-shadow: 0 0 0 .5px #e0218a; }
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 8px; }
.crumb a.back { color: var(--muted); font-size: 13px; text-decoration: none; }
.walk { position: relative; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.walk a, .walk button { display: inline-grid; place-items: center; box-sizing: border-box; width: var(--h); height: var(--h); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; cursor: pointer; font-size: 16px; line-height: 1; text-decoration: none; }
.walk button[disabled] { opacity: 0.35; cursor: default; }
.walk > span { padding: 0 8px; }
/* A button's key, on hover with a mouse alone: a phone or a tablet has no keyboard (docs/mockups/657-product-list.html). */
.walk .tip, .head-tools .tip, .sheet-head .sheet-step .tip { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 3; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.walk [data-walk="older"] .tip { right: auto; left: 0; }  /* ‹ hangs its tip from the group's left, under itself */
@media (hover: hover) and (pointer: fine) {
  .walk a:hover { background: var(--soft); }
  .walk a:hover .tip { display: flex; }
}
/* ↶ and ↷ hang theirs from their own left edge, on hover even with nothing to undo, since the keys say how (#731). */
.head-tools .tip { right: auto; left: -1px; }  /* from the button's outer edge, across its border */
.head-tools .tip kbd + kbd { margin-left: -3px; }  /* one shortcut's keys sit closer than the name and the keys */
@media (hover: hover) and (pointer: fine) { .head-tools .ui-button.icon:hover .tip { display: flex; } }
/* ‹ | › hang theirs from the group, ‹'s from its left edge and ›'s from its right, so it stays inside the modal; a disabled
   one shows none, since its key does nothing there. */
.sheet-head .sheet-step [data-step="older"] .tip { right: auto; left: 0; }
@media (hover: hover) and (pointer: fine) {
  .sheet-head .sheet-step button:hover:not(:disabled) { background: var(--soft); }
  .sheet-head .sheet-step button:hover:not(:disabled) .tip { display: flex; }
}

/* A touch phone (ADR 0205, #930): 700 px wide or less, with no mouse or trackpad, as `(hover: hover) and (pointer: fine)`
   tells a PC (#107). This is the one test of it, which code reads as --touch-phone (client/copyPage.ts): it hides what is marked `pc-job`, a PC's job, shows what is marked
   `on-touch`, and lets a `pc-link`, a tile that would open a PC's job, open nothing. A PC window made narrow keeps every
   job. A page that is a PC's job is `data-pc-job` on .app, and its card (pc_card.html) stands in its place until
   미리보기만 보기 shows the page under it (.peek). */
.on-touch { display: none; }
@media (max-width: 700px) and (not ((hover: hover) and (pointer: fine))) {
  :root { --touch-phone: 1; }
  .pc-job { display: none !important; }  /* over whatever display a control's own rule gives it */
  .on-touch { display: block; }
  .pc-link { pointer-events: none; }  /* a tile that would open a PC's job shows, and opens nothing */
  [data-pc-job]:not(.peek) .pc-card ~ * { display: none; }
  .peek .pc-card { display: none; }
  /* 미리보기만 보기 on the Template shows its page, read only (ADR 0050). */
  .template .side-p, .template .addend, .template [data-save], .template [data-undo], .template [data-redo] { display: none; }
  .wmark { pointer-events: none; }
  .blk:not([data-kind="photo"]):hover > .edgeline, .blk[data-kind="photo"]:hover .one { box-shadow: none; }
  [data-phone-line] { display: block; }
}
.pc-card { max-width: 420px; margin: 0 auto; padding: calc(2 * var(--space-page)) var(--space-page); text-align: center; }
.pc-mark { width: 40px; height: 40px; margin-bottom: var(--s-3); fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pc-card > p { margin: var(--s-2) 0 0; color: var(--muted); text-wrap: balance; }
.pc-card .acts { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
:is(.pc-card, .on-pc-elsewhere) code { display: block; margin-top: var(--s-2); overflow-wrap: anywhere; user-select: all; }
.on-pc-elsewhere { margin-top: var(--s-3); }
.on-pc-elsewhere .meta { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); }
.on-pc-elsewhere > .ui-button { width: 100%; }

/* A phone: the menu folds behind ☰, and a page of the shooting flow keeps only its way back. */
@media (max-width: 700px) {
  :root { --h: var(--h-touch); }
  .search { flex: 1 1 100%; }
  .pager { justify-content: center; }
  .pager .range { flex: 1 1 100%; text-align: center; }
  .pager .nums.pc { display: none; }
  .pager .nums.phone { display: flex; }
  .nums .pg { min-width: var(--h-touch); height: var(--h-touch); }  /* a ui-button's touch height, as 이전 and 다음 */
  .prow .dots.ui-button { width: var(--h-touch); }
  .rail { display: none; }
  .topbar { display: flex; }
  .crumb { display: none; }
  .app { display: block; }
  .focus .burger { display: none; }
  :root { --title: 20px; }
  .nameline input { font-size: 18px; }
  .step .row-more.ui-button { width: var(--h-touch); } /* square at a ui-button's touch height (#642) */
  .app.menu .rail { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 3; width: 256px; height: auto; }
  .app.menu .scrim { display: block; position: fixed; inset: 0; z-index: 2; background: var(--scrim); }
  .app.menu .rail { overflow-y: auto; }
  .mm-list { position: static; width: auto; max-height: none; padding: 4px 0 8px; border: 0; border-bottom: 1px solid var(--soft); border-radius: 0; box-shadow: none; }
  .mm-find input { min-height: 44px; }
  .product { gap: var(--s-1) var(--s-3); padding-right: var(--s-1); }
  .prow { flex-wrap: wrap; }
  .prow .product { flex-basis: calc(100% - var(--h) - var(--s-2)); }
  .prow .tasks { order: 1; flex-basis: 100%; flex-direction: column; gap: var(--s-2); padding: 0 var(--s-4) var(--s-3) calc(var(--s-4) + var(--thumb) + var(--s-3)); }  /* under the name */
  .prow .when { display: none; }
  .drow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s-2); }
  .drow .when { display: none; }
  .drow .days-phone { display: inline; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .canvas { max-height: none; padding: 0; background: none; }
  .tb { --tc: 40px; }
  .tc { padding: 0 6px; }
  .tc.op .lbl { display: none; }
  .tb .sep { margin: 0 1px; }
  .sizebox input { font-size: 16px; }  /* an iPhone zooms the page into a smaller box */
  .foot .btn { width: 100%; }
  .save-bar { left: 0; }
  .template .head { flex-wrap: wrap; }
  .template .head .acts { flex-basis: 100%; }
  .switch > button { max-width: 170px; }
  .looks-pop .search input { font-size: 16px; }  /* an iPhone zooms the page into a smaller box */
  .pop.looks-pop { width: min(300px, calc(100vw - 2 * var(--space-page))); }
}

/* One size on 촬영 설정, 상세페이지 템플릿 and the product page with its modal (ADR 0060), and on 몰 설정 as
   docs/mockups/657-product-list.html draws it: a button, a text field and a select are --h tall, 36 px on a PC and
   44 px on a phone. A control only those pages have takes --h in its own rule; what other
   pages share is sized here, under the class those pages set. The Template's text toolbar (.tb) and the modal's strip keep their own size, and
   the camera button the shooting page shares its 52 px. The menu at the left is every page's, so it stays as it is. */
.sized { --tabs: var(--h); }
.sized .btn:not([data-camera]) { min-height: var(--h); border-radius: var(--r-1); font-size: var(--t-sub); }
.sized .btn:not([data-camera], .icon) { padding: 0 var(--s-3); }
.sized :is(.link-btn:not(.rail *), .kind:not(.ui-chip), .reason:not(.ui-chip), .pop:not(.tb *, .ui-menu) .it, .inspop .it) { min-height: var(--h); }
.sized .tabs :is(a, button) { display: inline-flex; align-items: center; min-height: var(--h); padding-block: 0; }
.sized :is(input[type="text"], input[type="search"], select):not(.tb *, .wordin, .cchip *, .ui-input, .ui-select) { box-sizing: border-box; min-height: var(--h); padding-block: 0; }
@media (max-width: 700px) {
  .sized .i:not(.tb *, .strip *, .cchip *) { width: 18px; height: 18px; }
}

/* A product's steps and its 정보 입력 (#833). The steps are its tabs, drawn as steps: a number, or a check once done. */
.info-step .group > .link-btn { justify-self: start; min-height: 32px; }
/* A product's own drawing (#472, boards ③ and ④): + 사이즈 추가 beside 이 사이즈로 묶음 등록, the card's 도안 바꾸기 and
이 상품 도안 편집, 도안 바꾸기's three kinds of drawing, and 다시 적용's choices. */
.info-step .group > .adds { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.info-step .adds .link-btn { min-height: 32px; }
.info-step .draw-col .drawing-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.info-step .dtop h3 { flex: none; }
.info-step .dtop .names { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--s-2); text-align: right; }
.info-step .draw-col .banner { margin: 0; }
.look-pick .pick-head { margin: var(--s-1) 0 0; font-size: var(--t-sub); }
/* 다시 적용 is alba's dialog (#643): what it holds placed by the dialog's gap. */
.ui-dialog.reapply ul { display: grid; gap: var(--s-1); margin: 0; padding-left: var(--s-5); font-size: var(--t-sub); }
.ui-dialog.reapply .clash-pick { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
.ui-dialog.reapply .clash-pick p { font-size: var(--t-sub); }
.ui-dialog.reapply .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.link-btn.bad { color: var(--error); }
.link-btn[data-add-row] { gap: var(--s-1); }
.info-step { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.info-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); font-size: var(--t-sub); color: var(--muted); }
.info-top .saved { color: var(--ok-ink); }
.info-step .chart { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.info-step .chart.one { grid-template-columns: minmax(0, 1fr); }
.info-step .draw-col { position: sticky; top: calc(var(--tabs) + 12px); display: grid; gap: var(--s-3); padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
/* The product's own 도안 under its drawing (#203, docs/mockups/203-product-picks-its-drawing): its body as one button
   that opens the picker, and its sleeve and option chips, which the picker shows too. */
.info-step .lookx { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-sub); }
.info-step .lookx .fx, .look-pick .fx { display: grid; gap: var(--s-1); }
.info-step .lookx .chips, .look-pick .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.info-step .lookx .lab, .look-pick .lab { font-size: var(--t-cap); font-weight: 600; color: var(--muted); }
.info-step .lookx .note, .look-pick .note { margin: 0; }
.info-step .lookx .note:not(.ui-hint, .ui-lead), .look-pick .note:not(.ui-hint, .ui-lead) { font-size: var(--t-cap); color: var(--muted); }
.info-step .lookhead { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); min-height: 24px; }
.info-step .bodybtn { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 44px; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-2); border: 1px solid var(--input-line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); text-align: left; cursor: pointer; }
.info-step .bodybtn .nm { flex: 1; font-weight: 600; }
.info-step .bodybtn .chg { display: inline-flex; align-items: center; gap: var(--s-half); color: var(--accent); font-size: var(--t-cap); font-weight: 600; }
.info-step .bodybtn .chg .i { width: 14px; height: 14px; }
.info-step .tthumb { flex: none; width: 30px; }
.info-step .tthumb svg { display: block; width: 100%; height: auto; color: var(--chart-line); }
/* The bodies of the type's kind, each drawn large with the type's lines, as snapfit's picker draws them, in studio's
   wide dialog (#747), which is a sheet from the bottom on a phone. */
.look-pick .ui-dialog-title small { margin-left: var(--s-2); color: var(--muted); font-size: var(--t-cap); font-weight: var(--w-1); }
.look-pick .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.look-pick .tile { display: grid; justify-items: center; gap: var(--s-half); min-height: 0; padding: var(--s-2) var(--s-1); font-size: var(--t-cap); }
.look-pick .tile:not(.ui-option)[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--info-bg); color: var(--info-ink); font-weight: 600; }
.look-pick .art { display: grid; align-items: start; width: 100%; aspect-ratio: 300 / 360; }
.look-pick .art svg { display: block; width: 100%; height: auto; color: var(--chart-line); }
.look-pick .art svg.own { height: 100%; } /* a 내 도안 of any shape fits its tile, letterboxed (#473) */
.look-pick .art svg .m { color: var(--chart-mark); stroke: var(--chart-mark); fill: var(--chart-mark); }
.look-pick .art svg text { stroke: none; fill: var(--ink); font-size: var(--t-body); }
.look-pick .prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--s-2) var(--s-3); align-items: center; }
.look-pick .prow .fx { display: contents; }
.info-step .dtop { display: flex; justify-content: space-between; align-items: baseline; }
.info-step .dtop h3 { margin: 0; font-size: var(--t-sub); }
.info-step .drawn svg { display: block; width: 100%; height: auto; color: var(--ink); }
.info-step .drawn svg .m, .info-step .drawn svg text { color: var(--accent); stroke: var(--accent); fill: var(--accent); }
.info-step .drawn svg text { stroke: none; }
/* Our drawing (#153) as the Section's picture draws it: in ink, the lines a taupe, their names in ink. */
.info-step .drawn svg.garment { color: var(--chart-line); }
.info-step .drawn svg.garment .m { color: var(--chart-mark); stroke: var(--chart-mark); fill: var(--chart-mark); }
.info-step .drawn svg.garment text { fill: var(--ink); }
/* A mall's own picture (#57) is drawn on white in either theme, its lines in the light theme's accent, and each name
   with a white edge to read on the picture. */
.info-step .drawn svg.own { --accent: var(--indigo-9); background: #fff; border-radius: var(--r-1); }
.info-step .drawn svg.own text { stroke: #fff; }
/* The line of the measurement being typed stands out, the others faint (ADR 0195, #866). */
.info-step .drawn[data-lighting] svg .m:not(.lit), .info-step .drawn[data-lighting] svg text:not(.lit) { opacity: .3; }
.info-step .drawn svg .m.lit { stroke: var(--accent); stroke-width: 3; color: var(--accent); fill: var(--accent); }
.info-step .drawn svg text.lit { fill: var(--accent); font-weight: 700; }
.info-step .fields { display: grid; gap: var(--s-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.info-step .group { margin: 0; }
.info-step .group .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3); }
.info-step .group h3 { margin: 0; font-size: var(--t-sub); }
.info-step .group h3 small { margin-left: var(--s-2); color: var(--muted); font-size: var(--t-cap); font-weight: 400; }
.info-step .grid-wrap { overflow-x: auto; }
.measures { border-collapse: collapse; font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.measures th { padding: 0 var(--s-1) var(--s-1); color: var(--muted); font-size: var(--t-cap); font-weight: 600; text-align: left; white-space: nowrap; }
.measures td { padding: var(--s-1) var(--s-1); }
/* A measurement taken 앞면 and 뒷면 apart: its name over its two columns, and 앞면 · 뒷면 in the row below (#42). */
.measures th.sided { text-align: center; border-bottom: 1px solid var(--line); }
.measures th.half { padding-top: var(--s-1); font-weight: 500; }
.measures .cell { width: 64px; min-height: 36px; padding: 0 var(--s-2); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; }
.measures .cell.name { font-weight: 600; }
.measures .rename { width: 96px; min-height: 28px; padding: 0 var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-cap); }
.measures .x { display: inline-grid; place-items: center; width: var(--h-1); height: var(--h-1); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); vertical-align: middle; cursor: pointer; }
.measures .x:hover { background: var(--soft); color: var(--ink); }
.measures .row-acts { white-space: nowrap; }
.measures .row-acts .x .i { width: 14px; height: 14px; }
/* A measurement's heading, its own control (ADR 0193, #864, docs/mockups/864-size-table/): a grip that drags the
   column, shown on a PC while pointed at or focused and always on a phone; its name, pressed to rename it; and its ⋯. */
.measures .mhead { display: inline-flex; align-items: center; height: var(--h-1); border-radius: var(--r-1); }
.measures .mhead:hover, .measures .mhead.open, .measures .mhead:focus-within { background: var(--soft); }
.measures .mname { height: var(--h-1); padding: 0 var(--s-half) 0 var(--s-2); border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: text; }
.measures .mname:disabled { padding: 0; color: var(--muted); font-size: var(--t-cap); cursor: default; }
.measures .mname .tag { margin-left: var(--s-1); padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--soft); color: var(--muted); font-size: var(--t-corner); font-weight: 600; }
.measures .mmore { display: inline-grid; place-items: center; width: 28px; height: var(--h-1); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.measures .mhead.open .mmore, .measures .mmore:hover { color: var(--ink); }
.measures .hd { display: inline-grid; place-items: center; width: 20px; height: var(--h-1); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: grab; touch-action: none; }
.measures .hd .i { width: 14px; height: 14px; }
.measures .mhead .hd { width: 0; overflow: hidden; }
.measures .mhead:is(:hover, :focus-within) .hd { width: 20px; }
@media (hover: none) { .measures .mhead .hd { width: 20px; } }
.measures .grip-col { width: 24px; padding-right: 0; }
.measures tr.sortable-chosen td { background: var(--surface); }
.measures .sortable-ghost { opacity: .4; }
/* + 항목 (ADR 0193): the column at the right end, its name box in place and the names to press under it. */
.measures .add-col { padding-left: var(--s-3); border-left: 1px dashed var(--line); vertical-align: top; }
.measures .add-item { display: inline-flex; align-items: center; gap: var(--s-half); height: var(--h-1); padding: 0 var(--s-3); border: 1px dashed var(--dash); border-radius: var(--r-1); background: none; color: var(--accent-ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.measures .add-item .i { width: 14px; height: 14px; }
.measures .add-item-open { display: inline-block; }
.measures .add-item-open .rename { width: 120px; min-height: var(--h-1); font-size: var(--t-sub); }
.measures .item-pop { position: fixed; z-index: 6; display: grid; gap: var(--s-2); width: 250px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-menu); white-space: normal; font-weight: 400; }
.measures .item-pop .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* An empty table's sets of sizes, ours and the mall's own, whose × takes it off (#864). */
.info-step .size-sets { display: grid; gap: var(--s-1); margin-top: var(--s-2); padding: var(--s-3); border: 1px dashed var(--dash); border-radius: var(--r-2); }
.info-step .size-sets b { font-size: var(--t-sub); }
.info-step .size-sets .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.info-step .own-set { padding: 0; border-style: dashed; gap: 0; }
.info-step .own-set .set-pick { align-self: stretch; padding: 0 var(--s-1) 0 var(--s-3); border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.info-step .own-set .set-x { display: inline-grid; place-items: center; width: 28px; align-self: stretch; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.info-step .own-set .set-x .i { width: 14px; height: 14px; }
.info-step .adds .quiet { color: var(--muted); }
/* The base size (ADR 0194, docs/mockups/865-fill-from-base/): a ○ beside each size's name, filled on the base, which
   is marked 기준. */
.measures .size-name { display: inline-flex; align-items: center; gap: var(--s-1); }
.measures .base-pick { display: inline-grid; place-items: center; flex: none; width: 28px; height: var(--h-1); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.measures .base-pick:hover { color: var(--ink); }
.measures .base-pick .dot { display: grid; place-items: center; width: 16px; height: 16px; box-sizing: border-box; border: 1.75px solid currentColor; border-radius: var(--r-full); }
.measures .base-pick[aria-pressed="true"] { color: var(--accent); cursor: default; }
.measures .base-pick[aria-pressed="true"] .dot::after { content: ""; width: 7px; height: 7px; border-radius: var(--r-full); background: currentColor; }
.measures .base-tag { flex: none; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--t-corner); font-weight: 700; }
/* The step row under the sizes (#732, ADR 0194): 모두 채우기 at its start, and each column's step and 채우기, which
   fill the empty cells from the base size; the line under the table says how. */
.measures tfoot .gaps th { padding-top: var(--s-3); padding-bottom: var(--s-2); border-top: 1px dashed var(--line); font-weight: 500; vertical-align: middle; }
.measures .gap-head { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-sub); white-space: nowrap; }
.measures .gap { display: inline-flex; align-items: center; gap: var(--s-1); }
.measures .gap .cell { width: 40px; min-height: 28px; background: var(--soft); color: var(--muted); }
.measures .gap .cell:focus { color: var(--ink); }
.measures .gap .ui-button { padding: 0 var(--s-2); white-space: nowrap; }
.info-step .fill-hint { margin: var(--s-1) 0 0; }
.info-step .paste-hint { margin: var(--s-1) 0 0; }
@media (pointer: coarse) { .info-step .paste-hint { display: none; } } /* a phone pastes no sheet */
/* 기존 값도 바꾸기: each cell it would change, `52 → 54`, under 적용 and 취소. */
.measures .cell.would { width: auto; min-width: 64px; border: 1px dashed var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; }
.info-step .overwrite { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--accent); border-radius: var(--r-2); background: var(--accent-soft); }
.info-step .overwrite span { flex: 1; font-size: var(--t-sub); }
/* A table from before ADR 0194 asks once which size the fill goes from. */
.info-step .base-ask { display: grid; gap: var(--s-1); margin-top: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-2); }
.info-step .base-ask b { font-size: var(--t-sub); }
.info-step .base-ask p { margin: 0; }
.info-step .base-ask .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
/* ~ 범위 under a size's value cell in focus on a touch screen, whose number keypad has no ~ (ADR 0202). It may cover the
   row below while the cell is in focus; under the last row the table makes room for it. */
.measures td { position: relative; }
.measures .range-key { position: absolute; z-index: 4; top: calc(100% - 2px); left: 50%; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--accent); border-radius: var(--r-full); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--t-cap); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-2); transform: translateX(-50%); cursor: pointer; }
.measures .range-key b { color: var(--accent-ink); font-size: var(--t-title); line-height: 1; }
@media (hover: hover) and (pointer: fine) { .measures .range-key { display: none; } }
@media not ((hover: hover) and (pointer: fine)) { .info-step .grid-wrap:has(tr:last-child .range-key) { padding-bottom: var(--h-touch); } }
/* A 실측표 on a phone, one size at a time (ADR 0195, #867, docs/mockups/867-one-size-at-a-time/): a small drawing and
   the sizes' tabs kept on top, the base marked 기준; under them the size's name, and each measurement on its own line
   with a large box, its name and ⋯ beside it; the steps under the size. The boxes are the PC table's own. */
.size-phone { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.size-phone .sp-top { position: sticky; top: var(--tabs); z-index: 1; display: grid; gap: var(--s-2); padding: var(--s-2) 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.size-phone .sp-drawing { display: flex; align-items: center; gap: var(--s-3); }
.size-phone .drawn.mini { flex: none; width: 64px; }
.size-phone .drawn.mini svg { max-width: 64px; margin: 0; }
.size-phone .sp-status { margin: 0; color: var(--muted); font-size: var(--t-sub); }
.size-phone .sp-status b { color: var(--accent-ink); }
.size-phone .sp-tabs { display: flex; align-items: center; gap: var(--s-1); }
.size-phone .sp-tablist { flex: 1; min-width: 0; }
.size-phone .sp-tablist > .sp-tab { position: relative; flex: 1 0 auto; gap: var(--s-1); min-width: 52px; min-height: var(--h-touch); font-weight: 700; }
.size-phone .sp-tab .base-tag { padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--t-corner); font-weight: 700; }
.size-phone .sp-dot { position: absolute; top: var(--s-2); right: var(--s-2); width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); }
.size-phone .sp-add { display: grid; flex: none; place-items: center; width: var(--h-touch); height: var(--h-touch); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--accent-ink); cursor: pointer; }
.size-phone .sp-panel { display: grid; gap: var(--s-2); }
.size-phone .sp-name { display: flex; align-items: center; gap: var(--s-2); }
.size-phone .sp-name .spring { flex: 1; }
.size-phone .cell { box-sizing: border-box; width: 100%; min-width: 0; height: 48px; padding: 0 var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-title); font-variant-numeric: tabular-nums; }
.size-phone .cell.name { width: 112px; font-weight: 700; }
.size-phone .cell.would { border: 1px dashed var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; }
.size-phone .base-pick { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-touch); padding: 0 var(--s-2); border: 0; border-radius: var(--r-1); background: none; color: var(--muted); font: inherit; font-size: var(--t-sub); cursor: pointer; }
.size-phone .base-pick .dot { display: grid; place-items: center; width: 18px; height: 18px; box-sizing: border-box; border: 1.75px solid currentColor; border-radius: var(--r-full); }
.size-phone .base-pick[aria-pressed="true"] { color: var(--accent-ink); font-weight: 700; cursor: default; }
.size-phone .base-pick[aria-pressed="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: currentColor; }
.size-phone .x { display: grid; place-items: center; width: var(--h-touch); height: var(--h-touch); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.size-phone .sp-line { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) var(--h-touch); align-items: center; gap: var(--s-1); }
.size-phone .sp-line .mhead { display: contents; }
.size-phone .sp-line .mname { order: 0; justify-self: start; min-height: var(--h-touch); padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-body); font-weight: 600; text-align: left; cursor: text; }
.size-phone .sp-line.typing .mname { color: var(--accent-ink); }
.size-phone .sp-line .mname .tag { display: block; width: max-content; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--soft); color: var(--muted); font-size: var(--t-corner); font-weight: 600; line-height: 1.6; }
.size-phone .sp-line .rename { box-sizing: border-box; width: 100%; height: var(--h-touch); padding: 0 var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; }
.size-phone .sp-boxes { order: 1; display: flex; gap: var(--s-2); min-width: 0; }
.size-phone .sp-box { position: relative; flex: 1; min-width: 0; }
.size-phone .sp-line .mmore { order: 2; display: grid; place-items: center; width: var(--h-touch); height: var(--h-touch); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.size-phone .sp-line .mhead.open .mmore { background: var(--soft); color: var(--ink); }
.size-phone .range-key { position: absolute; z-index: 1; top: calc(100% - 2px); left: 50%; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--accent); border-radius: var(--r-full); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--t-cap); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-2); transform: translateX(-50%); cursor: pointer; }
.size-phone .range-key b { color: var(--accent-ink); font-size: var(--t-title); line-height: 1; }
.size-phone .sp-panel:has(.sp-line:last-of-type .range-key) { padding-bottom: var(--h-touch); }
@media (hover: hover) and (pointer: fine) { .size-phone .range-key { display: none; } } /* a PC's keyboard types ~ */
.size-phone .sp-side { display: block; color: var(--muted); font-size: var(--t-cap); }
.size-phone .add-item { display: inline-flex; align-items: center; justify-self: start; gap: var(--s-1); height: var(--h-touch); padding: 0 var(--s-4); border: 1px dashed var(--dash); border-radius: var(--r-1); background: none; color: var(--accent-ink); font: inherit; font-size: var(--t-sub); font-weight: 600; cursor: pointer; }
.size-phone .add-item-open .rename { box-sizing: border-box; width: 160px; height: var(--h-touch); padding: 0 var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; }
.size-phone .item-pop { position: fixed; z-index: 6; display: grid; gap: var(--s-2); width: 250px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-menu); }
.size-phone .item-pop .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.info-step .sp-steps { display: grid; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed var(--line); }
.sp-steps .gap-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: var(--t-sub); }
.sp-steps .sp-gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
.sp-steps .sp-gap { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
.sp-steps .lab { flex: none; width: 44px; color: var(--muted); font-size: var(--t-cap); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.sp-steps .gap { display: flex; flex: 1; align-items: center; gap: var(--s-1); min-width: 0; }
.sp-steps .gap .cell { box-sizing: border-box; flex: 1; width: 100%; min-width: 0; height: var(--h-touch); padding: 0 var(--s-1); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--soft); color: var(--ink); font: inherit; text-align: center; }
.sp-steps .gap .ui-button { flex: none; min-height: var(--h-touch); padding: 0 var(--s-2); white-space: nowrap; }
/* A cell two people changed at once (ADR 0164): its line over the Block asks which value to keep, and the box is marked. */
.info-step .clashes { display: grid; gap: var(--s-2); }
.info-step .clashes:empty { display: none; }
.info-step .clash { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-2); margin: var(--s-2) 0 0; }
.info-step .clash .spring { flex: 1; }
.info-step .clashes .note { margin: 0; }
.info-step .clashes .note:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-cap); }
.info-step .conf { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.info-step .cell[aria-invalid="true"] { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -2px; }  /* a fill down could not read it (#886) */
/* A 표's rows in one grid, so every pick is as wide as the table's widest; a written row's box spans them. */
.trows { display: grid; grid-template-columns: auto repeat(var(--picks), minmax(0, 1fr)); gap: var(--s-2) var(--s-2); align-items: center; }
.trows.picks { display: inline-grid; grid-template-columns: auto repeat(var(--picks), 1fr); justify-self: start; }
.trow { display: contents; }
.trow > b { padding-right: var(--s-2); color: var(--muted); font-size: var(--t-sub); }
.trow .wr { position: relative; grid-column: 2 / -1; display: grid; gap: var(--s-half); }
.trow .from { color: var(--muted); font-size: var(--t-cap); }
.trow .input { width: 100%; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-1); background: var(--input); color: var(--ink); font: inherit; font-size: var(--t-sub); }
/* 지난 상품과 같게 and the line naming the product it fills from (#884, docs/mockups/884-product-info-memory/). */
.info-step .group > .top .same-last { align-self: center; }
.info-step .group > .from-last { margin: calc(-1 * var(--s-1)) 0 0; color: var(--muted); font-size: var(--t-cap); }
.info-step .filled:not(.conf) { border-color: var(--accent); background: var(--accent-soft); transition: background var(--d-2) var(--ease), border-color var(--d-2) var(--ease); }
/* A written row's past values, under its focused field, most used first, each with a × that takes it out. */
.trow .past { position: absolute; z-index: 5; top: 44px; left: 0; right: 0; padding: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-2); }
.trow .past-head { display: block; margin: var(--s-1) var(--s-2) var(--s-half); color: var(--muted); font-size: var(--t-cap); font-weight: 600; }
.trow .past .opt { display: flex; align-items: center; min-height: 44px; border-radius: var(--r-1); }
.trow .past .opt.on, .trow .past .opt:hover { background: var(--soft); }
.trow .past .pick { flex: 1; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-2); border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-sub); text-align: left; cursor: pointer; }
.trow .past mark { background: none; color: var(--accent-ink); font-weight: 700; }
.trow .past .n { color: var(--muted); font-size: var(--t-cap); white-space: nowrap; }
.trow .past .rm { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.trow .past .rm:hover { background: var(--line); color: var(--ink); }
/* 제조일's calendar button in its field, and the month picker it opens: a menu under the field on a PC, a sheet on a
   phone (ADR 0202, docs/mockups/902-inputs/). */
.trow .with-months { padding-right: calc(var(--h-touch) + var(--s-1)); }
.trow .months-button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--accent-ink); cursor: pointer; }
.trow .months-button[aria-expanded="true"] { background: var(--accent-soft); }
.trow .months-button .i { width: 18px; height: 18px; }
.made-picker[open] { display: flex; flex-direction: column; gap: var(--s-3); }
.made-picker.pop-at { position: absolute; inset: auto; z-index: 6; width: 336px; margin: 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); }
.made-picker .acts { display: flex; gap: var(--s-1); margin-left: auto; }
.made-picker .modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); padding: var(--s-half); border-radius: var(--r-2); background: var(--soft); }
.made-picker .modes button { min-height: 40px; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); font: inherit; font-size: var(--t-sub); cursor: pointer; }
.made-picker .modes [aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.made-picker .year { display: flex; align-items: center; justify-content: space-between; }
.made-picker .year button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--ink); cursor: pointer; }
.made-picker .year button:hover { background: var(--soft); }
.made-picker .months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-1); }
.made-picker .months button { min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); font-variant-numeric: tabular-nums; cursor: pointer; }
.made-picker.pop-at .months button { min-height: 40px; }
.made-picker .months .after { border-color: transparent; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.made-picker .months [aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.made-picker .foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.made-picker .foot button { min-height: 32px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-1); background: none; color: var(--muted); font: inherit; font-size: var(--t-cap); cursor: pointer; }
.info-step .chip:not(.ui-chip) { min-height: 32px; padding: var(--s-1) var(--s-3); border: 1px solid var(--input-line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); text-align: center; white-space: nowrap; cursor: pointer; }
.info-step .chip.on:not(.ui-chip), .info-step .ic.on:not(.ui-option) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 600; }
.info-step .wash { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); }
.info-step .ic { display: grid; justify-items: center; gap: var(--s-half); padding: var(--s-2) var(--s-1); font-size: var(--t-cap); text-align: center; }
.info-step .ic.ui-option { padding-inline: 0; font-weight: var(--w-1); }  /* a caption, so 드라이클리닝 fits a phone's cell whole (#695) */
.info-step .ic svg { width: 40px; height: 40px; }
/* 세탁 방법's icons under their six groups (#219); a retired one shows only where it is held, marked 예전. */
.wash-group { display: grid; gap: var(--s-2); }
.wash-group + .wash-group { margin-top: var(--s-3); }
.wash-group .wash-head { display: flex; align-items: baseline; gap: var(--s-2); padding-bottom: var(--s-1); border-bottom: 1px solid var(--line); font-size: var(--t-sub); font-weight: 700; }
.wash-group .wash-head .n { color: var(--accent); font-size: var(--t-cap); font-weight: 600; }
.ic { position: relative; }
.ic .old { position: absolute; top: 3px; right: 3px; padding: 0 var(--s-1); border-radius: var(--r-1); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--t-corner); font-weight: 700; }
@media (max-width: 700px) {
  .info-step .chart { grid-template-columns: minmax(0, 1fr); }
  .info-step .draw-col { position: static; }
  .info-step .drawn svg { max-width: 220px; margin: 0 auto; }
  .look-pick .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .look-pick .prow { grid-template-columns: auto minmax(0, 1fr); }
  :is(.look-pick, .info-step .lookx) .chip:not(.ui-chip) { min-height: 44px; padding: var(--s-1) var(--s-4); }
  .info-step .wash { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .info-step .ic svg { width: 34px; height: 34px; }
  .trows, .trows.picks { grid-template-columns: repeat(var(--picks), minmax(0, 1fr)); }
  .trow > b { grid-column: 1 / -1; padding-top: var(--s-1); }
  .trow .wr { grid-column: 1 / -1; }
}

/* 촬영 스타일 (#827, #860, docs/mockups/860-styles-and-colours.html): our three styles' cards across the column, with no
   sideways scroll; the chosen one has the accent border, as a chosen 종류 does. */
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.style { position: relative; display: grid; align-content: start; gap: var(--s-1); min-width: 0; padding: var(--s-1) var(--s-1) var(--s-2); font-size: var(--t-sub); font-weight: var(--w-2); }
.style.ui-option > .ui-check { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1; }
.style .card { position: relative; display: block; aspect-ratio: 896 / 1184; border-radius: var(--r-1); overflow: hidden; isolation: isolate; background: var(--ground); }
/* A card's two layers on its colour (#881): the shading multiplies the colour, so it shows exact where the ground was even. */
.style .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.style .card .sh { mix-blend-mode: multiply; }
.style .nm { padding: 0 var(--s-1); line-height: 1.3; }
.style:not(.ui-option):has(input:checked) .nm { color: var(--accent); }
.default { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s-2); border-radius: var(--r-full); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-cap); font-weight: var(--w-3); white-space: nowrap; }
.style .default { position: absolute; top: 9px; left: 9px; }
/* Each card is a check box (ADR 0103): its tick at the top right, filled while it is checked. */
.style .tick { position: absolute; top: 9px; right: 9px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--input-line); border-radius: var(--r-1); background: var(--surface); color: transparent; }
.style .tick .i { width: 14px; height: 14px; stroke-width: 3; }
.style:has(input:checked) .tick { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.choice legend .sub { margin-left: var(--s-2); }
.choice legend .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-weight: 500; font-size: var(--t-sub); }
/* 배경색: a round swatch and its name, ours and the mall's saved ones, and 직접 고르기's picker, code and name. */
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tone:not(.ui-chip) { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h); padding: 0 var(--s-3) 0 var(--s-2); border: 1px solid var(--input-line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: var(--t-sub); font-weight: var(--w-2); white-space: nowrap; cursor: pointer; }
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone:not(.ui-chip):has(input:checked) { border: 2px solid var(--accent); padding: 0 calc(var(--s-3) - 1px) 0 calc(var(--s-2) - 1px); color: var(--accent); }  /* its 2px line takes 1px of each side */
.tone:not(.ui-chip):has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tone:has(input:disabled) { opacity: .45; cursor: default; }
.ui-chip.tone { padding-left: var(--s-1); }  /* its swatch sits close to its rim */
.ui-chip.tone i { width: 22px; height: 22px; }
.tone i, .crow .dot { flex: none; width: 24px; height: 24px; border-radius: var(--r-full); border: 1px solid rgb(0 0 0 / .18); }
.tone i.any { background: conic-gradient(#f05252, #f5c542, #5ad26a, #43b8e8, #6b6bf0, #e05ad6, #f05252); }
/* 직접 고르기's panel floats over the page, so nothing below it moves (#860's mockup v6). On a PC it hangs from 직접 고르기,
and from its right edge where it would pass the line's (Looks.tsx sets .flip); on a phone it spans the line. */
.swatches { position: relative; }
.anyw { position: relative; display: inline-flex; }
.tone-pick { position: absolute; top: calc(100% + 6px); left: 0; z-index: 7; display: grid; gap: var(--s-3); width: 320px; box-sizing: border-box; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-menu); }
.tone-pick.flip { left: auto; right: 0; }
.tone-pick[hidden] { display: none; }
.tone-pick .two { display: flex; gap: var(--s-2); }
/* #887: the panel's own picker, the same in every browser: the colours we suggest, a saturation and brightness area over a
   hue bar, and the colour the code box read. The gradients are the picker's colours, not the page's. */
.tone-pick .lbl2 { margin: 0 0 calc(-1 * var(--s-1)); color: var(--muted); font-size: var(--t-cap); font-weight: var(--w-2); }
.tone-pick .sugg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.tone-pick .sg { height: var(--h); padding: 0; border: 1px solid rgb(0 0 0 / .14); border-radius: var(--r-1); cursor: pointer; }
.tone-pick .sg.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.tone-pick .sv { position: relative; height: 132px; border-radius: var(--r-1); touch-action: none; cursor: crosshair; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), var(--hue, #f00); }
.tone-pick .hue { position: relative; height: 16px; margin: var(--s-half) 0; border-radius: var(--r-full); touch-action: none; cursor: pointer; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.tone-pick :is(.sv, .hue):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tone-pick .thumb { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #fff; border-radius: var(--r-full); box-shadow: 0 0 0 1px rgb(0 0 0 / .5); pointer-events: none; }
.tone-pick .hue .thumb { top: 50%; }
.tone-pick .well { flex: none; width: var(--h); height: var(--h); box-sizing: border-box; border: 1px solid var(--input-line); border-radius: var(--r-1); }
.tone-pick .read { margin: calc(-1 * var(--s-1)) 0 0; color: var(--muted); font-size: var(--t-cap); font-variant-numeric: tabular-nums; }
.tone-pick .read.bad { color: var(--error); }
.tone-pick .read .bad-mark { display: block; font-size: inherit; }  /* one line, the sentence in the toast (#886) */
.tone-pick .hex { flex: 1; font-variant-numeric: tabular-nums; }
.tone-pick .acts { display: flex; justify-content: flex-end; gap: var(--s-2); }
@media (max-width: 700px) { .anyw { position: static; } .tone-pick, .tone-pick.flip { left: 0; right: 0; width: auto; } .tone-pick .hue { height: 24px; } }
/* 새 상품: one column of one width for all it holds (#860), wider than a phone and as wide as the swatches' line. */
#new { max-width: calc(880px + 2 * var(--space-page)); }
/* 찍다 만 상품 over 새 상품's form (#101, docs/mockups/101-unfinished-shoots.html). */
#new .resume { display: grid; gap: 8px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
#new .resume h2 { margin: 0; font-size: 15px; }
#new .resume .hint { margin: -6px 0 0; }
.rrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto var(--h); align-items: center; gap: 10px; padding: 8px 0 8px 14px; }
.rrow img, .rrow .noimg { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.rrow .what { display: grid; min-width: 0; }
.rrow .name { font-weight: 600; overflow-wrap: anywhere; }
.rrow .kind-of { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#new .rrow .btn { margin: 0; width: auto; }
@media (max-width: 700px) {  /* a phone: 이어서 찍기 takes its own line under the name, as the list's phone rows stack */
  .rrow { grid-template-columns: 52px minmax(0, 1fr) var(--h); }
  .rrow .dots { grid-column: 3; grid-row: 1; }
  #new .rrow .btn { grid-column: 1 / -1; grid-row: 2; margin-right: 14px; }
}
/* 촬영 설정 › 촬영 스타일: the same width for its cards, colours and saved colours. */
.group2 { max-width: 880px; margin-top: var(--space-section); }
.group2 > .lbl { margin: 0 0 var(--s-2); font-size: var(--t-body); font-weight: var(--w-2); }
.savefoot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--space-section); }
/* 저장한 색: a row each, its swatch, name and code, and the pencil and bin, or the box that renames it. */
.colours { display: grid; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.crow { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); }
.crow + .crow { border-top: 1px solid var(--line); }
.crow .cname { display: flex; flex: 1; align-items: center; gap: var(--s-3); min-width: 0; }
.crow .cname[hidden], .crename[hidden] { display: none; }
.crow .cname b { font-size: var(--t-sub); }
.crow .code { color: var(--muted); font-size: var(--t-cap); font-variant-numeric: tabular-nums; }
.crow .acts { display: flex; gap: var(--s-half); margin-left: auto; }
.crow .acts form { display: contents; }
.crename { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.crename input[type="text"] { flex: 1 1 140px; }
/* A press refused as the page comes back, such as saving a fourth colour (#860): in the error's colours. */
.toast.bad:not(.ui-toast) { background: var(--error); color: var(--surface); }

/* 소식 (#858, docs/mockups/858-news.html): a card on the first screen and in the list, its kind as a chip and a stripe in
   the kind's colour, and its body as written (#859, docs/mockups/859-news-mail.html). The nine colours are Notion's, each
   with a light and a dark value; rich.py holds the light ones a mail draws. */
:root { --c-gray-bg: #ebeced; --c-gray: #4b5058; --c-brown-bg: #f0e6df; --c-brown: #6b4a35; --c-orange-bg: #fbe7d5; --c-orange: #8a4300;
  --c-yellow-bg: #f8efc9; --c-yellow: #6e5600; --c-green-bg: #ddefe3; --c-green: #1f6a3d; --c-blue-bg: #dde9fb; --c-blue: #1b4f9c;
  --c-purple-bg: #ece3f7; --c-purple: #5b3a8c; --c-pink-bg: #f8e1ec; --c-pink: #8c2f5d; --c-red-bg: #fbe1df; --c-red: #9c2a20; }
@media (prefers-color-scheme: dark) {
  :root { --c-gray-bg: #3a3e45; --c-gray: #d6d9de; --c-brown-bg: #4a3a30; --c-brown: #e8cfbd; --c-orange-bg: #553416; --c-orange: #ffcf9e;
    --c-yellow-bg: #4f4417; --c-yellow: #f3dd85; --c-green-bg: #1f4430; --c-green: #a9e0bd; --c-blue-bg: #1f355a; --c-blue: #b7d0ff;
    --c-purple-bg: #3b2c55; --c-purple: #d6c2f5; --c-pink-bg: #50283c; --c-pink: #f5bcd6; --c-red-bg: #552622; --c-red: #ffbdb5; }
}
.chip { display: inline-flex; align-items: center; padding: 0 8px; border-radius: 4px; font-size: 13px; line-height: 22px; white-space: nowrap; }
.chip[hidden] { display: none; }
.chip.gray, .h-gray { background: var(--c-gray-bg); } .chip.gray, .c-gray { color: var(--c-gray); }
.chip.brown, .h-brown { background: var(--c-brown-bg); } .chip.brown, .c-brown { color: var(--c-brown); }
.chip.orange, .h-orange { background: var(--c-orange-bg); } .chip.orange, .c-orange { color: var(--c-orange); }
.chip.yellow, .h-yellow { background: var(--c-yellow-bg); } .chip.yellow, .c-yellow { color: var(--c-yellow); }
.chip.green, .h-green { background: var(--c-green-bg); } .chip.green, .c-green { color: var(--c-green); }
.chip.blue, .h-blue { background: var(--c-blue-bg); } .chip.blue, .c-blue { color: var(--c-blue); }
.chip.purple, .h-purple { background: var(--c-purple-bg); } .chip.purple, .c-purple { color: var(--c-purple); }
.chip.pink, .h-pink { background: var(--c-pink-bg); } .chip.pink, .c-pink { color: var(--c-pink); }
.chip.red, .h-red { background: var(--c-red-bg); } .chip.red, .c-red { color: var(--c-red); }
.rich { display: grid; gap: 4px; overflow-wrap: anywhere; }
.rich :is(p, h3, ul, ol) { margin: 0; }
.rich h3 { font-size: 1.15em; line-height: 1.4; }
.rich :is(ul, ol) { padding-left: 20px; }
.rich .a-center { text-align: center; } .rich .a-right { text-align: right; }
/* A 소식's video (#287, docs/mockups/287-news-video.html): a block of its own at its own shape, as wide as the card at
   most and never taller than a phone's screen shows whole; an MP4 plays muted and looping, with its controls. */
.rich figure.media { justify-self: start; max-width: 100%; margin: 2px 0; }
.rich figure.media :is(video, img) { display: block; max-width: 100%; max-height: min(70vh, 520px); width: auto; height: auto; border-radius: 8px; background: #0e1116; }
/* A phone's list's lines for what waits (ADR 0207, docs/mockups/932-review-and-size-walks/): one box under the title,
   a line a walk, 56 px tall as the mockup draws it, a dot in the walk's colour, its count in the accent and the tab it
   opens on after it. A PC's list has none. */
.todos { display: none; }
@media (max-width: 700px) {
  .todos { display: grid; margin: 0 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); overflow: hidden; }
  .todos a { display: flex; align-items: center; gap: var(--s-2); min-height: 56px; padding: 0 var(--s-3) 0 var(--s-4); color: var(--ink); text-decoration: none; }
  .todos a + a { border-top: 1px solid var(--line); }
  .todos a::before { content: ""; flex: none; width: var(--s-2); height: var(--s-2); border-radius: var(--r-full); background: var(--accent); }
  .todos a.review::before { background: var(--warn-ink); }
  .todos .what { flex: 1; min-width: 0; font-size: var(--t-body); font-weight: var(--w-3); }
  .todos .what b { color: var(--accent-ink); }
  .todos small { color: var(--muted); font-size: var(--t-sub); white-space: nowrap; }
  .todos .i { color: var(--muted); }
}
/* A phone's walk names itself over its count (crumb.html). */
.walk .walk-of { display: inline-grid; justify-items: center; line-height: 1.2; }
.walk .walk-of small { color: var(--muted); font-size: var(--t-cap); font-weight: var(--w-3); }
.news-stack { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); }
.news { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 4px solid var(--c-gray); border-radius: var(--r-2); background: var(--surface); }
.news.c-gray { border-left-color: var(--c-gray); } .news.c-brown { border-left-color: var(--c-brown); } .news.c-orange { border-left-color: var(--c-orange); }
.news.c-yellow { border-left-color: var(--c-yellow); } .news.c-green { border-left-color: var(--c-green); } .news.c-blue { border-left-color: var(--c-blue); }
.news.c-purple { border-left-color: var(--c-purple); } .news.c-pink { border-left-color: var(--c-pink); } .news.c-red { border-left-color: var(--c-red); }
.news[class*="c-"] { color: var(--ink); } /* the stripe's class colours the stripe alone */
.news .top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.news .top form, .news .top > .btn { margin-left: auto; }
.news .when { color: var(--muted); font-size: var(--t-cap); }
.news .t { margin: 0; font-size: var(--t-body); }
.news .rich { font-size: var(--t-sub); }
.news .go[hidden] { display: none; }
.news .go { justify-self: start; font-size: var(--t-sub); font-weight: 600; }
.news-stack .more { font-size: var(--t-sub); color: var(--muted); }
.news.seen { border-left-color: var(--line); background: var(--soft); }
.news.seen .t { font-size: var(--t-sub); }

/* 소식 as a dated changelog (#889, docs/mockups/889-changelog/): each entry under its day, the day beside it on a wide
   screen and above it on a phone, its picture as wide as its lines; the menu's dot on 소식 and on ☰; a page's one-time
   hint under the part it is about; and the dialog of a 소식 marked big. */
.changelog { display: grid; gap: var(--space-section); margin: 0; padding: 0; list-style: none; }
.changelog .entry { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); scroll-margin-top: var(--s-6); }
.changelog .day { flex: 0 0 140px; margin: 0; padding-top: var(--s-half); color: var(--muted); font-size: var(--t-sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.changelog .body { flex: 1 1 420px; display: grid; gap: var(--s-2); padding-bottom: var(--space-section); border-bottom: 1px solid var(--line); color: var(--ink); }
.changelog .entry:last-child .body { padding-bottom: 0; border-bottom: 0; }
.changelog .entry:target .body .t, .changelog .unread .body .t { color: var(--ink); }
:is(.changelog, .news-big) .top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
:is(.changelog, .news-big) .top form { margin-left: auto; }
:is(.changelog, .news-big) .fresh { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--tally); font-size: var(--t-cap); font-weight: 700; }
:is(.changelog, .news-big) .fresh::before { content: ""; width: var(--s-2); height: var(--s-2); border-radius: var(--r-full); background: var(--tally); }
:is(.changelog, .news-big, .news-preview) .pic { margin: 0; }
:is(.changelog, .news-big, .news-preview) .pic :is(img, video) { display: block; width: 100%; max-height: min(50vh, 380px); object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--soft); }
:is(.changelog, .news-big) .t { margin: 0; font-size: var(--t-head); line-height: 1.35; text-wrap: balance; }
:is(.changelog, .news-big) .rich { font-size: var(--t-body); color: var(--ink); }
:is(.changelog, .news-big) .go { justify-self: start; font-size: var(--t-sub); font-weight: 600; }
.mi .dot, .burger .dot { flex: none; width: var(--s-2); height: var(--s-2); border-radius: var(--r-full); background: var(--tally); }
.mi .dot { margin-left: auto; }
.burger .dot { position: absolute; top: 9px; right: 8px; }

/* A phone's bottom bar and its 더보기 sheet (ADR 0206, #931, docs/mockups/931-bottom-bar/), tabbar.html's: 상품, ＋새 상품,
   소식 and 더보기 under the page at 700 px or less, the tab the page is under in the rail's colour, 검토 대기's count and
   소식's dot on their icons. A mall's own pages draw no ☰ (base.html): the bar or the page's ‹ takes its place. */
.tabbar { display: none; }
@media (max-width: 700px) {
  .tabbed { --bar: calc(var(--h-touch) + var(--s-3)); }
  .tabbed .topbar > span { font-size: var(--t-title); }  /* the screen's name alone, as the mockup draws it */
  .tabbed .column { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
  body:has(.tabbed) :is(.toast, .walk-hint) { bottom: calc(var(--bar) + var(--s-3) + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar > :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--s-1) / 2); min-height: var(--bar); padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-cap); font-weight: 500; text-decoration: none; cursor: pointer; touch-action: manipulation; }
  .tabbar > :is([aria-current="page"], .on) { color: var(--info-ink); font-weight: 700; }
  .tabbar .ic { position: relative; display: grid; }
  .tabbar svg { width: var(--s-5); height: var(--s-5); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .tally { position: absolute; top: calc(-1 * var(--s-1)); left: var(--s-3); width: max-content; padding: 0 var(--s-1); font-size: var(--t-corner); white-space: nowrap; }  /* a pill that grows sideways, 15 or 99+ on one line (#943) */
  .tabbed .bar-twin { display: none; }  /* the list's + 새 상품, which the bar's ＋새 상품 already is (#943) */
  .tabbar .dot { position: absolute; top: 0; right: 0; width: var(--s-2); height: var(--s-2); border-radius: var(--r-full); background: var(--tally); box-shadow: 0 0 0 calc(var(--s-1) / 2) var(--surface); }
}
.more-sheet { position: fixed; inset: auto 0 0; width: auto; max-width: none; max-height: calc(100dvh - var(--h-touch)); margin: 0; padding: var(--s-2) var(--s-3) calc(var(--s-4) + env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-3) var(--r-3) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); overflow-y: auto; overscroll-behavior: contain; }
.more-sheet::before { content: ""; display: block; width: var(--s-6); height: var(--s-1); margin: 0 auto var(--s-2); border-radius: var(--r-full); background: var(--line); }
.more-sheet::backdrop { background: var(--scrim); }
.more-who { margin: 0; padding: var(--s-1) var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.more-who span { color: var(--muted); font-size: var(--t-sub); }
.more-sheet nav { display: flex; flex-direction: column; padding: var(--s-1) 0; border-bottom: 1px solid var(--line); }
.more-sheet nav a, .more-sheet > button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: calc(var(--h-touch) + var(--s-2)); padding: 0 var(--s-2); border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: inherit; font-size: var(--t-field); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.more-sheet > button { margin-top: var(--s-1); }
.more-sheet svg { flex: none; width: var(--s-5); height: var(--s-5); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.news-hint { position: absolute; z-index: 30; display: grid; gap: var(--s-1); width: min(320px, calc(100vw - 16px)); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-pop); }
.news-hint::before { content: ""; position: absolute; top: -6px; left: 20px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.news-hint .lead { font-size: var(--t-cap); font-weight: 700; opacity: 0.75; }
.news-hint .t { margin: 0; font-size: var(--t-sub); font-weight: 600; }
.news-hint .acts { display: flex; justify-content: flex-end; gap: var(--s-2); }
.news-hint .ui-quiet { color: var(--bg); }
.hinted { outline: 2px solid var(--accent); outline-offset: var(--s-1); border-radius: var(--r-1); }
.news-big .body { display: grid; gap: var(--s-2); color: var(--ink); }
.news-preview .pic { margin-bottom: var(--s-1); }
.news-picture { display: grid; justify-items: start; gap: var(--s-1); }
.news-picture .pic { display: grid; justify-items: start; gap: var(--s-1); width: 100%; max-width: 280px; }
.news-picture .pic :is(img, video) { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--r-1); }

/* A product's colours, + 색 더하기, and the extra colours waiting on the main face's confirm (ADR 0111,
   docs/mockups/93-add-a-colour.html frames 6 to 8). */
.colour-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.colour-chips .lbl { margin-right: var(--s-half); color: var(--muted); font-size: var(--t-sub); }
.cchip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sub); font-weight: 600; }
.cchip .m { color: var(--muted); font-weight: 400; font-size: var(--t-cap); }
/* A colour's chip opens its name where it stands, a pencil after its word, a colour with no name muted (#189). As a
   button and a field it is --h tall (ADR 0060). */
button.cchip, .cchip.typing { min-height: var(--h); }
button.cchip { cursor: text; }
button.cchip .i { width: 13px; height: 13px; color: var(--muted); stroke-width: 2.2; }
button.cchip[data-word=""] { color: var(--muted); }
button.cchip[data-word=""] .i { color: var(--accent); }
button.cchip:hover { border-color: var(--accent); }
/* A named colour's chip (ADR 0203): its pencil is faint on a phone, and on a PC, where the chip's hover says it opens,
   shows only while the keyboard is on it. An unnamed chip keeps its accent pencil, which asks for a name. */
button.cchip:not([data-word=""]) .i { color: var(--dash); }
@media (hover: hover) and (pointer: fine) { button.cchip:not([data-word=""], :focus-visible) .i { display: none; } }
.cchip.typing { padding: 0 var(--s-3) 0 var(--s-3); border: 2px solid var(--accent); background: var(--input); }
.cchip.typing input { width: 6em; min-height: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-sub); font-weight: 600; }
.colour-chips .hint { flex-basis: 100%; margin: 0; }
.colour-chips .hint:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: var(--t-sub); }
@media (min-width: 701px) { .colour-chips .hint { flex-basis: auto; margin-left: var(--s-2); } }
@media (max-width: 700px) {
  button.cchip, .cchip.typing { padding: 0 var(--s-3); }
  .cchip.typing input { font-size: var(--t-field); }  /* an iPhone zooms the page into a smaller box */
}
.colour-chips .add { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.recolour { display: grid; gap: var(--s-3); margin: 0 0 var(--s-3); }
.recolour .held { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }  /* a tile is a pair's tile (#124) */
.recolour .hold { display: grid; place-content: center; gap: var(--s-half); aspect-ratio: 4 / 5; padding: var(--s-2); border: 1px dashed var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--muted); font-size: var(--t-cap); text-align: center; }
.recolour .hold b { color: var(--ink); font-size: var(--t-sub); }
.recolour .confirm { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-2); background: var(--info-bg); color: var(--info-ink); font-size: var(--t-sub); }
.recolour .confirm strong { font-size: var(--t-body); }
.recolour .confirm .btn { justify-self: start; }
/* A drawn colour's tile, which opens its modal (#94). Its frame takes its picture's shape, by `.shot > img:first-child`:
   a 4:5 frame showed its ground beside a recolour drawn another shape (#111). One still being drawn has no picture, so
   it keeps the 4:5 of the .hold beside it. */
.recolour .card { margin: 0; cursor: pointer; }
.recolour .shot.pending { aspect-ratio: 4 / 5; }
.recolour .tile-name { margin: var(--s-2) var(--s-half) 0; font-size: var(--t-sub); font-weight: 600; }
/* Every set of downloads on the product page, one way (TakeSet.tsx, #883): an item's checkbox, its name and its own
   download icon on one line, and one bar below the set, held at the screen's foot while the set is in view. */
.take-item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-sub); }
.take-name { display: flex; cursor: pointer; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); min-width: 0; overflow-wrap: anywhere; }
.take-name .hint.small { margin: 0; }
.take-bar { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-4) 0 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow); }
.take-bar .spring { flex: 1; }
@media (max-width: 700px) { .take-bar .spring { flex-basis: 100%; } .take-bar > .ui-button { flex: 1 1 0; } }  /* the count over its buttons, side by side */
/* The cuts the 상세페이지 uses (#469, the mockup of #457), each a card with its item under it. */
.picked { margin: var(--s-5) 0 0; }
.picked-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin: 0 0 var(--s-2); }
.picked-head .hint.small { margin: 0; }
.picked-cuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.pcut { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.pcut img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.pcut.off img { opacity: .4; }
.pcut .take-item { padding: var(--s-1) var(--s-1) var(--s-1) var(--s-2); }
@media (max-width: 700px) { .picked-cuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 치수·상품정보's 정보 이미지 (#469, #496, #733): each Block's item under it, and the bar under them all. */
.info-take { padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
.info-take[hidden], .none-take[hidden] { display: none; }
.info-step .group > .none-take { padding: var(--s-3) var(--s-3); border: 1px dashed var(--line); border-radius: var(--r-2); }

/* 실측표's picker (ADR 0164): 추천, 내 도안 and 기본 도안 전체, each a row of tiles under its label. */
.values .bods .bodlab { grid-column: 1 / -1; margin-top: 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.values .bods .bodlab.none { margin-top: 0; font-weight: 400; }
.values .bods .more { grid-column: 1 / -1; justify-self: start; }
.values .bod.mine span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }

/* 도안 설정 (ADR 0164): its cards, each a drawing's picture with its lines, and 내 그림 올리기 after them. */
.dtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.dtile { position: relative; display: grid; align-content: start; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; }
a.dtile:hover, .dtile:has(> .open:hover) { border-color: var(--accent); }
.dtile > .open { display: grid; align-content: start; gap: 6px; color: inherit; text-decoration: none; }
/* A 내 도안's 지우기, over its picture's corner (#498) */
.dtile .del { position: absolute; top: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: var(--h); height: var(--h); padding: 0; border: 0; border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; }
.dtile .del:hover { background: var(--soft); color: var(--error); }
.dtile .tag { position: absolute; top: 8px; left: 8px; z-index: 1; }
.dtile .meta:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 12px; }
.dtile.ours { justify-items: center; }
.dtile .pic { display: grid; place-items: center; min-height: 120px; border-radius: 8px; background: var(--soft); }
.dtile .pic svg { display: block; width: 100%; max-width: 150px; height: auto; color: var(--chart-line); }
.dtile .pic svg.own { --accent: var(--indigo-9); background: #fff; border-radius: 6px; }
.dtile .pic svg .m, .pic svg text { color: var(--accent); stroke: var(--accent); fill: var(--accent); }
.dtile .pic svg text { stroke: none; }
.dtile .pic svg.own text { stroke: #fff; }
.dtile .pic svg.garment .m { color: var(--chart-mark); stroke: var(--chart-mark); fill: var(--chart-mark); }
.dtile .pic svg.garment text { fill: var(--ink); }
.dtile.up { align-content: center; min-height: 200px; border-style: dashed; color: var(--accent); }  /* in the slot's middle (#498) */
.dtile.up .pick { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 24px 0; text-align: center; cursor: pointer; }
.dtile.up .pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dtile.up .pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.dtile .naming { display: grid; gap: 6px; }
.dtile .naming[hidden] { display: none; }
.dtile input[type="text"]:not(.ui-input) { min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
section.found { margin-top: 24px; }  /* 도안 설정's, not the list's count */
section.found h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.found h2:not(.ui-section-title) { font-size: var(--t-body); }  /* the old screen's (#695) */
#drawing .crumb { color: var(--muted); font-size: 13px; text-decoration: none; }
/* 도안 편집 (ADR 0164, board ③): the drawing large on the left, its open line's ends and label to drag, and on the
   right its look, its lines and the save with its name. A phone stacks them. */
.drawing-edit { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 12px; }
.drawing-edit .edit-canvas { max-width: 640px; }
.drawing-edit .edit-canvas .lplace { padding: 12px; border-radius: 12px; }
.drawing-edit .edit-canvas svg.numbered { display: block; width: 100%; height: auto; padding: 8px; border-radius: 6px; background: var(--soft); color: var(--ink); }
svg :is(.pl, .used, .mine).pick { cursor: pointer; }
svg.numbered .used.hid line { stroke-dasharray: 2 5; opacity: .4; }
svg.placing .pl.on.hid line { stroke-dasharray: 4 4; }
.drawing-edit .look-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.drawing-edit .look-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.drawing-edit .look-row[hidden] { display: none; }
.drawing-edit .look-row > b { min-width: 34px; }
.drawing-edit .look-row .sub:not(.ui-hint, .ui-lead) { color: var(--muted); font-size: 12px; }
.values :is(.mcard, .mhead).hiding { grid-template-columns: 24px 26px minmax(0, 1fr) auto 28px 28px; }
.values .mcard.hid input[type="text"] { color: var(--muted); }
.values .mcard [data-hide-line][aria-pressed="true"] { color: var(--accent); }
.drawing-save { flex-wrap: wrap; }
/* A 기본 도안's 새 내 도안 이름, its box .fld's as the product name's is (#498) */
.drawing-save { justify-content: flex-end; }
.drawing-save .new-name { flex: 1 1 100%; min-width: 0; margin: 0; }
.drawing-save > .ui-button { flex: none; }  /* 취소 and the save on one line, at its end, as on a product (#472) */
#drawing .nameline { margin-top: 8px; }
#drawing .nameline .pill { flex: none; align-self: center; }
@media (max-width: 700px) {
  .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .drawing-edit { grid-template-columns: minmax(0, 1fr); }
  .drawing-save:not(.for-product) > .ui-button { flex: 1 1 0; }  /* a product's 닫기 and save keep their width (#472) */
}
/* 새 상품 asks 상품명 and 종류, and each of its two presses opens one of the product's tasks (ADR 0164) */
#new .two-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#new .two-tasks .btn { flex: 1 1 200px; width: auto; margin: 0; }
#new .two-tasks > .ui-button { flex: 1 1 200px; } /* the React screen's, alba's (#642) */
/* The product page (#643, ADR 0171): its presses are alba's ui-buttons, its fields ui-inputs, its photo dialogs and
   정보 입력's ui-dialogs and its toasts ui-toasts, placed as the old screen's .btn, .field, .sheet and .toast were: a
   press alone on its line takes the line's width, those in a row share it. */
.ui-toast[popover]:not(:popover-open) { display: none; } /* a popover toast stays hidden until shown */
.ui-dialog > .sheet-body { display: grid; gap: var(--s-3); max-height: none; padding: 0; overflow: visible; }
.handover > .ui-button { width: 100%; }
.handover .two > .ui-button { flex: 1 1 auto; }
.sheet-acts > .ui-button { white-space: normal; }
.ui-button.icon { aspect-ratio: 1; padding: 0; } /* an icon alone, square, as the old .btn.icon */
.look-pick .pick-head + .ui-button { justify-self: start; }
.crop-actions > .ui-button, .save-bar > .ui-button { flex: 1; }
.save-bar > .ui-main { flex: 2; }
#new .ui-field, #shoot > .ui-field, .begin .ui-field { margin: var(--s-4) 0; } /* a field's place on the page, as the old .field's */
.ui-field > .ui-hint { margin: 0; } /* a paragraph under a field, spaced by the field's gap alone */
/* Sign-in and 몰 설정 (#645, ADR 0171): the mall's password page and /ops's (login.html) lay alba's field out alike,
   a refusal's mark on the label's line (#886); 다시 보내기 and 다른 주소로 sit under the code's line. */
.login > .ui-field { margin: var(--s-4) 0; }
.login > .ui-button { width: 100%; }
.authbox > .again { margin-top: calc(-1 * var(--s-2)); }
#new [data-same] { margin: 8px 0 0; }
/* the product page's tabs, `디테일컷 | 치수·상품정보 | 상세페이지`, each a card with its state under its name */
.sized:has(.wtabs) { --tabs: 66px; }
.sized .ptabs.wtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: 0; }
.sized .ptabs.wtabs button { display: grid; justify-items: stretch; gap: var(--s-1); min-height: 0; margin: 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); font-size: var(--t-body); text-align: left; white-space: normal; }
.sized .ptabs.wtabs button.on { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); color: var(--ink); }
.wtabs button .pill { overflow: hidden; font-size: var(--t-cap); text-overflow: ellipsis; }
.info-step [data-no-photo] { margin: 0 0 var(--s-3); }
@media (max-width: 700px) {
  .sized:has(.wtabs) { --tabs: 60px; }
  .sized .ptabs.wtabs { gap: var(--s-2); }
  .sized .ptabs.wtabs button { padding: var(--s-2) var(--s-2); font-size: var(--t-sub); }
}
/* 촬영 시작 on 디테일컷, while the product's shoot has not begun, and 이어서 찍기 while it is shot; each spans the tab
   row's width (#499) */
.begin [data-start] { width: 100%; margin-top: var(--s-3); }
.shoot-on { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-4) 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.shoot-on p { margin: 0; }
/* 더 찍기 on a done product's 디테일컷 tab (#859, ADR 0191): its line, and the press at the right. */
.more-shoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0 var(--s-4); }
.more-shoot p { margin: 0; }
/* The product page's React roots (ADR 0167, #527) hold what <main> and the page after it hold, and lay out nothing. */
.product-root { display: contents; }
/* 몰 설정's React root (#531): its sections stay the flex children of .staff, as on the old screen, and take .staff's
   rules for its children beside .staff's own. */
.staff-root { display: contents; }
/* A tap answers at once (ADR 0208, #933, docs/mockups/933-tap-and-carry/): a row a tap leaves for another page takes
   --soft the moment it is pressed and keeps it until the next page comes (shell/pressed.ts, which lists the same rows),
   the whole row of the product list for its picture and name, a drawing's whole tile on 도안 설정, a task its own box, and
   the browser's own tap flash is left out. Where the browser has View Transitions and the member has not asked for reduced motion, every page of the
   shell goes to the next by one: the page fades into the next, the top bar keeps its place, and carry.ts names the
   product's picture and name, and the bottom bar, where both screens have them. */
:is(.prow a.product, .prow .task, .dtile > a.open, .more-sheet nav a, .mm-row, .todos a) { -webkit-tap-highlight-color: transparent; }
.prow:is(:has(> a.product:active), [data-going]), .dtile:is(:has(> a.open:active), [data-going]),
:is(.prow .task, .more-sheet nav a, .mm-row, .todos a):is(:active, [data-going]) { background: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.topbar { view-transition-name: topbar; }
/* What carries keeps its shape: a row's name is as wide as its words, as the product's page's is, so the name is not
   stretched on its way, and the picture fills its box as it goes from the row's square to the card's. */
.product .name { align-self: flex-start; }
::view-transition-old(product-picture), ::view-transition-new(product-picture) { height: 100%; object-fit: cover; }
