/* VORM parts (2026-11-06, design system proposal): one class per kind of thing, its sizes and variants as modifiers,
   built only from css/tokens.css (colours, surfaces and light in layers 2-4, type, space, size and motion in 5).
   The screens move onto these one screen at a time; until then the names start with ui- so they never meet the older
   rules. Drawn on admin/design.html.
   Order: load right after css/tokens.css and before a page's own CSS, so the page places a part (where it sits, its
   margins) and the part keeps its look.
     text     .ui-label .ui-kicker .ui-meta .ui-vat .ui-text .ui-lead .ui-title .ui-title-s
     heads    .ui-page-head .ui-section-head .ui-sub-head
     press    .ui-btn (primary, secondary; s, m, l; block) .ui-icon-btn .ui-link .ui-chip .ui-tabs/.ui-tab .ui-stepper .ui-split
     show     .ui-mark .ui-tag/.ui-tags .ui-card (panel, glass, feature, cells; s, m, l; head, body, foot) .ui-head/.ui-tile .ui-plate .ui-notice .ui-band
     type in  .ui-field .ui-input .ui-search .ui-inline .ui-count .ui-check
     lists    .ui-rows/.ui-row (add: .ui-add, a card: .ui-add--card; pick) .ui-marquee (logos: .ui-marquee--logos .ui-logo-mark) .ui-disclosure (text) .ui-cards .ui-points .ui-facts .ui-steps .ui-table
   What is chosen (2026-11-08): a choice among options (chips, on or off, several at once) is a lit line on a lit veil
   (--pick-*); the one chosen in a picker (.ui-calendar's day, .ui-slots' time) is the same light gathered - the whole
   line lit, a deeper veil, a glow (--chosen-*). A solid white face is only ever the main action. What cannot be
   pressed now is off (--off-*): no face, a faint line, faint words.
   A card does not hold a card: what a card opens with parts of its own takes the card's place (.ui-task). */

/* ---- text ---- */
.ui-label { margin: 0; font: var(--fw-regular) var(--fs-label)/1 var(--caps); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--label); }
/* kicker: a page's or a section's label: a point of light, its number, the label, a line */
.ui-kicker { display: flex; align-items: center; gap: var(--sp-3); margin: 0; font: var(--fw-regular) var(--fs-small)/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.ui-kicker::before { content: ""; flex: none; width: var(--dot-size); height: var(--dot-size); border-radius: var(--r-round); background: var(--dot-bg); box-shadow: var(--dot-glow); }
.ui-kicker::after { content: ""; flex: none; width: var(--sp-14); height: 1px; background: var(--line); }
.ui-kicker i { font-style: normal; letter-spacing: var(--ls-numeral); color: var(--label); }
.ui-meta { margin: 0; font-size: var(--fs-meta); line-height: var(--lh-snug); color: var(--text-3); }
/* vat: under a price, small, the same with VAT (부가세 포함 275,000원). Every price on the site is VAT excluded (부가세
   별도); every price and total has this line under it, on the price's side (ops F-11, 2026-11-09). */
.ui-vat { display: block; margin: 2px 0 0; font-size: var(--fs-meta); font-weight: var(--fw-regular); letter-spacing: 0; line-height: var(--lh-snug); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* note: a condition that changes a decision (VAT, an offer's period and who it is for, an exception to the hours).
   It is read, not skimmed: larger and brighter than meta. */
.ui-note { margin: 0; font-size: var(--fs-note); line-height: var(--lh-body); color: var(--text-2); }
/* a word made bright in a note or a lead (본문 강조; 대표님 2026-11-26: 신분증 · 여권 under the booked title) */
.ui-note b, .ui-lead b { font-weight: var(--fw-bold); color: var(--text); }
.ui-text { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
.ui-lead { margin: 0; max-width: 640px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-2); }
.ui-title { margin: 0; font-size: var(--fs-title); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); line-height: var(--lh-tight); color: var(--text); }
.ui-title-s { margin: 0; font-size: var(--fs-title-s); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); line-height: var(--lh-snug); color: var(--text); }

/* ---- heads: page (kicker, title, lead, note), section (kicker, title, lead), sub (number and name, inside a page) ---- */
.ui-page-head { display: grid; gap: var(--sp-4); }
.ui-page-head h1 { margin: var(--sp-1) 0 0; font-size: var(--fs-page); font-weight: var(--fw-bold); letter-spacing: var(--ls-title); line-height: var(--lh-tight); }
.ui-page-head .ui-meta { margin-top: calc(-1 * var(--sp-1)); }
.ui-section-head { display: grid; gap: var(--sp-3); }
.ui-section-head h2 { margin: var(--sp-1) 0 0; font-size: var(--fs-section); font-weight: var(--fw-bold); letter-spacing: var(--ls-title); line-height: var(--lh-tight); }
.ui-sub-head { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0 0 var(--sp-4); font-size: var(--fs-control); font-weight: var(--fw-bold); letter-spacing: -.01em; color: var(--text); }
.ui-sub-head i { font: var(--fw-regular) var(--fs-meta)/1 var(--caps); font-style: normal; letter-spacing: var(--ls-numeral); color: var(--label); }

/* ---- buttons: primary (a lit solid, the action of a screen or a card) and secondary (a veil with a line) ---- */
.ui-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: var(--h-m); padding: 0 var(--sp-5); border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--fill-2); color: var(--text); font: var(--fw-bold) var(--fs-control)/1 var(--sans); letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.ui-btn:hover { border-color: var(--line-4); background: var(--fill-4); }
.ui-btn--primary { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.ui-btn--primary:hover { border-color: var(--btn-hover); background: var(--btn-hover); box-shadow: var(--btn-glow); }
.ui-btn--s { height: var(--h-s); padding: 0 var(--sp-4); font-size: var(--fs-small); }
.ui-btn--l { height: var(--h-l); padding: 0 var(--sp-8); font-size: var(--fs-body); }
.ui-btn--block { display: flex; width: 100%; }
/* glass: a button over the film (the film shows through, blurred), so it reads on any frame */
.ui-btn--glass { border-color: var(--line-2); background: var(--glass-2); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.ui-btn--glass:hover { background: var(--glass-3); }
.ui-btn svg { flex: none; width: 16px; height: 16px; }
.ui-btn--l svg { width: 18px; height: 18px; }
/* off (2026-11-08): no face, a faint line, faint words, for the main button too (a grey face read as on) */
.ui-btn:disabled, .ui-btn[aria-disabled="true"] { border-color: var(--off-line); background: none; color: var(--off-fg); box-shadow: none; pointer-events: none; }
/* on its way: the button turns while a request is sent */
.ui-btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.ui-btn[aria-busy="true"]::before, .ui-chip[aria-busy="true"]::before { content: ""; flex: none; width: 1em; height: 1em; border-radius: var(--r-round); border: 2px solid currentColor; border-right-color: transparent; animation: ui-spin .8s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
/* a round button with only an icon: back, close, the arrows of a row. The icon is a 20×20 svg (line 1.6), never a letter:
   a letter such as × sits on its font's line, 2px low in the 34px circle (2026-11-09). Its ring is a pressable one's
   (--line-3, as a time's .ui-slot), so off (--off-line, a faint icon) reads apart from on: with --line, the ring
   on and off was the same and only the icon dimmed (the calendar's ‹ on its first month, ops QA 2026-11-26) */
.ui-icon-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--h-m); height: var(--h-m); padding: 0; border-radius: var(--r-round); border: 1px solid var(--line-3); background: none; color: var(--text); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.ui-icon-btn:hover { border-color: var(--line-4); background: var(--fill-3); }
.ui-icon-btn--s { width: var(--h-s); height: var(--h-s); }
.ui-icon-btn:disabled { border-color: var(--off-line); background: none; color: var(--off-fg); pointer-events: none; }
.ui-icon-btn svg { width: 18px; height: 18px; }
/* a link that leads on: text and an arrow that steps forward */
.ui-link { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0; border: 0; background: none; color: var(--text); font: var(--fw-bold) var(--fs-control)/1.3 var(--sans); text-decoration: none; cursor: pointer; }
.ui-link svg { flex: none; width: 15px; height: 15px; transition: transform var(--dur-base) var(--ease); }
.ui-link:hover svg { transform: translateX(3px); }
.ui-link--quiet { color: var(--text-2); font-weight: var(--fw-regular); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.ui-link--quiet:hover { color: var(--text); text-decoration-color: var(--text); }

/* ---- choices: a chip chosen or not (one of a set, or each on its own); a tab is the current place in a row ---- */
.ui-chips, .ui-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ui-chip { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-m); padding: 0 var(--sp-4); border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: none; color: var(--text-2); font: var(--fw-medium) var(--fs-control)/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast); }
.ui-chip:hover { border-color: var(--line-4); color: var(--text); }
.ui-chip[aria-pressed="true"], .ui-chip[aria-checked="true"], .ui-chip:has(input:checked) { border-color: var(--pick-line); background: var(--pick-bg); color: var(--text); }
.ui-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ui-chip:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.ui-chip--s { height: var(--h-s); padding: 0 var(--sp-3); font-size: var(--fs-small); }
/* a choice that cannot be taken now (a time someone else just held), and one being taken (busy, as a button) */
.ui-chip:disabled, .ui-chip[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.ui-chip svg { flex: none; width: 14px; height: 14px; }
/* the order or the score a choice carries (1 = the most wanted; a self-rating) */
.ui-chip b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: calc(-1 * var(--sp-2)); padding: 0 var(--sp-1); border-radius: var(--r-pill); background: var(--lit); color: var(--on-solid); font-size: var(--fs-label); font-weight: var(--fw-bold); }
.ui-tabs { display: flex; gap: var(--sp-6); margin: 0; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ui-tabs::-webkit-scrollbar { display: none; }
.ui-tab { position: relative; flex: none; height: var(--h-m); padding: 0; border: 0; background: none; color: var(--text-3); font: var(--fw-medium) var(--fs-control)/1 var(--sans); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; transition: color var(--dur-fast); }
.ui-tab:hover { color: var(--text-2); }
.ui-tab[aria-selected="true"], .ui-tab[aria-current="true"], .ui-tab[aria-current="page"] { color: var(--text); font-weight: var(--fw-bold); }
.ui-tab[aria-selected="true"]::after, .ui-tab[aria-current="true"]::after, .ui-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--mark); box-shadow: var(--mark-glow); }
.ui-btn:focus-visible, .ui-icon-btn:focus-visible, .ui-link:focus-visible, .ui-chip:focus-visible, .ui-tab:focus-visible { outline: var(--focus); outline-offset: 3px; }
/* stepper (2026-11-09, 방문 예약 one step a screen): a flow's steps in a row, each a short line over its number and
   name - the name beside the number, on one line (대표님 2026-11-26: '01  날짜·시간'), on one baseline. The one on show
   is lit as a tab is (--mark); one already reached can be pressed to go back to it; one ahead is off (--off-*) until
   the steps before it are done. The steps share the row evenly; a name longer than its step ends in ….
   <ol class="ui-stepper"><li><button aria-current="step"><i>01</i><span>날짜·시간</span></button></li>…</ol> */
.ui-stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ui-stepper button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: var(--sp-2); width: 100%; min-width: 0; padding: 0 0 var(--sp-1); border: 0; background: none; color: var(--text-2); font: var(--fw-medium) var(--fs-meta)/1.2 var(--sans); text-align: left; cursor: pointer; transition: color var(--dur-fast); }
.ui-stepper button::before { content: ""; grid-column: 1 / -1; align-self: start; height: 2px; border-radius: var(--r-pill); background: var(--lit-line-1); transition: background var(--dur-fast), box-shadow var(--dur-fast); }
.ui-stepper i { font: var(--fw-regular) var(--fs-label)/1 var(--caps); font-style: normal; letter-spacing: var(--ls-numeral); color: var(--label); }
.ui-stepper span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-stepper button:hover { color: var(--text); }
.ui-stepper [aria-current="step"] { color: var(--text); font-weight: var(--fw-bold); }
.ui-stepper [aria-current="step"]::before { background: var(--mark); box-shadow: var(--mark-glow); }
.ui-stepper button:disabled { color: var(--off-fg); cursor: default; }
.ui-stepper button:disabled::before { background: var(--off-line); }
.ui-stepper button:disabled i { color: var(--off-fg); }
.ui-stepper button:focus-visible { outline: var(--focus); outline-offset: 3px; }
/* split (2026-11-09): one action whose first words can be changed - [함께 오는 분 1 ▾]과 같게 담기. The front is a
   select (whom or what; a phone opens its own picker), lit as a choice is; the back is the button that does it. One
   outline around both, no line between, so it reads as one button. s: the size of a button in a card or a row. A
   select is as wide as its longest choice: the page fits it to the one chosen (js/booking.mjs fitSelect). */
.ui-split { display: inline-flex; align-items: stretch; height: var(--h-s); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--fill-2); color: var(--text); font: var(--fw-bold) var(--fs-small)/1 var(--sans); transition: border-color var(--dur-fast); }
.ui-split:hover { border-color: var(--line-4); }
.ui-split > select { appearance: none; -webkit-appearance: none; margin: 0; padding: 0 calc(14px + var(--sp-1)) 0 var(--sp-3); border: 0; border-radius: var(--r-pill) 0 0 var(--r-pill); background: var(--chevron-down) no-repeat right 0 center / 14px; color: var(--lit); font: inherit; cursor: pointer; }
.ui-split > select option { background: var(--panel); color: var(--text); }
.ui-split > button { position: relative; margin: 0; padding: 0 var(--sp-3) 0 var(--sp-1); border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.ui-split > :hover { background-color: var(--fill-4); }
.ui-split > select:focus-visible, .ui-split > button:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* ---- calendar (2026-11-08): a month to pick a day from. Its head: the month between ‹ and › (the only way to move);
   the days of the week; seven columns that fit a phone. A day is open, chosen (--chosen-*), today (a point of light
   above its number), 마감 or 휴진 (off, with the word) or out of range (off: past, or past eight weeks). ---- */
.ui-calendar { display: grid; gap: var(--sp-3); }
.ui-calendar-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); }
.ui-calendar-title { margin: 0; text-align: center; font-size: var(--fs-body); font-weight: var(--fw-bold); letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.ui-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); transition: opacity var(--dur-fast); }
.ui-calendar[aria-busy="true"] .ui-calendar-grid { opacity: .55; }
.ui-calendar-dow { padding: var(--sp-1) 0; text-align: center; font-size: var(--fs-meta); color: var(--text-3); }
.ui-calendar-day { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; height: var(--h-l); padding: 0; border: 1px solid transparent; border-radius: var(--r-m); background: none; color: var(--text); font: var(--fw-medium) var(--fs-body)/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.ui-calendar-day small { font-size: var(--fs-label); font-weight: var(--fw-regular); line-height: 1; }
.ui-calendar-day:hover { border-color: var(--line-3); background: var(--fill-3); }
.ui-calendar-day:disabled { color: var(--off-fg); cursor: default; pointer-events: none; }
.ui-calendar-day[aria-current="date"]::before { content: ""; position: absolute; top: 5px; left: 50%; width: var(--dot-size); height: var(--dot-size); margin-left: calc(var(--dot-size) / -2); border-radius: var(--r-round); background: var(--dot-bg); box-shadow: var(--dot-glow); }
.ui-calendar-day[aria-pressed="true"] { border-color: var(--chosen-line); background: var(--chosen-bg); color: var(--chosen-fg); box-shadow: var(--chosen-glow); font-weight: var(--fw-bold); }
.ui-calendar-day:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* ---- slots (2026-11-08): a day's start times, 오전 and 오후 apart, four to a row. Every time of the clinic's hours
   keeps its place: what cannot be taken stays, off (no lunch row: the clinic stays open at lunch). A time is open, chosen
   (held: --chosen-*), holding (chosen, turning), off, just taken (off, tagged 방금 마감) or the booking's own (지금
   예약: the reference, a lit line and its tag, not pressed). Under them one line says what is held and for how long.
   ---- */
.ui-slots { display: grid; gap: var(--sp-5); }
.ui-slots-group { display: grid; gap: var(--sp-3); }
.ui-slots-label { margin: 0; font-size: var(--fs-small); color: var(--text-3); }
.ui-slots-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-2); }
.ui-slot { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); height: var(--h-m); padding: 0; border-radius: var(--r-m); border: 1px solid var(--line-3); background: none; color: var(--text); font: var(--fw-medium) var(--fs-body)/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.ui-slot:hover { border-color: var(--line-4); background: var(--fill-3); }
.ui-slot:disabled { border-color: var(--off-line); color: var(--off-fg); cursor: default; pointer-events: none; }
.ui-slot[aria-pressed="true"] { border-color: var(--chosen-line); background: var(--chosen-bg); color: var(--chosen-fg); box-shadow: var(--chosen-glow); font-weight: var(--fw-bold); }
.ui-slot[aria-busy="true"]::before { content: ""; flex: none; width: .8em; height: .8em; border-radius: var(--r-round); border: 2px solid currentColor; border-right-color: transparent; animation: ui-spin .8s linear infinite; }
.ui-slot[aria-current="true"]:disabled { border-color: var(--ref-line); color: var(--text); }
.ui-slot-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 2px var(--sp-2); border-radius: var(--r-pill); border: 1px solid var(--off-line); background: var(--bg); color: var(--text-3); font-size: var(--fs-label); font-style: normal; font-weight: var(--fw-medium); line-height: 1.2; white-space: nowrap; }
.ui-slot[aria-current="true"] .ui-slot-tag { border-color: var(--ref-line); color: var(--lit); }
.ui-slot:focus-visible { outline: var(--focus); outline-offset: 2px; }
.ui-slots-status { margin: 0; font-size: var(--fs-small); line-height: var(--lh-snug); color: var(--text-2); }
.ui-slots-status:empty { display: none; }
.ui-slots-status b { color: var(--text); font-weight: var(--fw-bold); }
.ui-slots-status span { font-variant-numeric: tabular-nums; }

/* ---- shown, not pressed: a tag (a day, a language, a field) ---- */
.ui-tag { display: inline-flex; align-items: center; height: var(--h-tag); padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-meta); white-space: nowrap; }
.ui-tag--lit { border-color: var(--lit-line); color: var(--lit); }

/* ---- cards: panel (a slab of stone), glass (over the film), feature (its own light: 강조); s, m, l ---- */
.ui-card { position: relative; display: block; padding: var(--sp-6); border-radius: var(--r-l); border: 1px solid var(--panel-line); background: var(--panel-bg); box-shadow: var(--panel-shadow); color: var(--text); text-decoration: none; }
.ui-card--s { padding: var(--sp-4); border-radius: var(--r-m); }
.ui-card--l { padding: clamp(var(--sp-6), 2.6vw, var(--sp-8)); border-radius: var(--r-xl); }
.ui-card--glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
/* feature (강조, 2026-11-16 대표님: "빛 면 - 프로모션뿐 아니라 강조하고 싶은 걸 표현하는"; was offer): a card with its own
   light, for what the clinic wants seen first on a page - a promotion, a doctor's marks. Not a choice (a lit line:
   --pick-*, --chosen-*) and not what is on now (lit words: --lit). One or two on a screen: where everything glows,
   nothing does. Never a button, a chosen state or a warning. */
.ui-card--feature { border-color: var(--feature-line); background: var(--feature-bg); box-shadow: var(--feature-shadow); }
a.ui-card { transition: border-color var(--dur-fast); }
a.ui-card:hover { border-color: var(--line-3); }
.ui-card > * + * { margin-top: var(--sp-3); }
/* head and body (2026-11-12): a card read in two groups above its foot - its head (a small line, then its name) and its
   body (its conditions, a note, what opens under them) - close inside a group, apart between the two (an offer card). */
.ui-card .ui-card-head > *, .ui-card .ui-card-body > * { margin: 0; }
.ui-card .ui-card-head > * + *, .ui-card .ui-card-body > * + * { margin-top: var(--sp-1); }
.ui-card > .ui-card-head + .ui-card-body { margin-top: var(--sp-4); }
/* cells (2026-11-16): one card cut into a few cells side by side, a line between them - short facts read together (a
   doctor's two or three marks: a name, then its one line). On a phone the cells stack, a line between them.
   <ul class="ui-card ui-card--cells"><li><b class="ui-title-s">…</b><span class="ui-meta">…</span></li>…</ul> */
.ui-card--cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.ui-card--cells > * { display: grid; gap: var(--sp-1); align-content: start; min-width: 0; margin: 0; padding: var(--sp-4); }
.ui-card.ui-card--cells > * + * { margin-top: 0; border-left: 1px solid var(--divider); }
/* a long name breaks inside its cell rather than run past it */
.ui-card--cells .ui-title-s { font-size: var(--fs-control); overflow-wrap: anywhere; }
.ui-card--cells .ui-plate { justify-self: start; margin-bottom: var(--sp-2); }
@media (max-width: 720px) {
  .ui-card--cells { grid-auto-flow: row; }
  .ui-card.ui-card--cells > * + * { border-left: 0; border-top: 1px solid var(--divider); }
}
/* cells in a feature card (the doctor's marks, 2026-11-16): roomier cells and the names at a small card title's size,
   so the card reads before what follows. <ul class="ui-card ui-card--s ui-card--feature ui-card--cells">… */
.ui-card--feature.ui-card--cells > * { padding: var(--sp-5); }
.ui-card--feature.ui-card--cells .ui-title-s { font-size: var(--fs-title-s); }
.ui-card > .ui-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--divider); }
/* task (2026-11-08): what a card opens that needs parts of its own (시간 바꾸기: a calendar and times) takes the card's
   place - the page's width, no frame - so no card sits in a card and a phone's width is not cut twice. A short
   question (취소할까요?) stays in the card, at its foot. The head says what changes; the main action names the choice
   (11월 27일 (금) 14:00으로 바꾸기) and is off until there is one; leaving is a quiet link. */
.ui-task { display: grid; gap: var(--sp-6); padding: var(--sp-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + var(--sp-4)); }
.ui-task > * { min-width: 0; }
.ui-task-head { display: grid; gap: var(--sp-2); }
.ui-task-head:focus { outline: none; }
.ui-task-actions { display: grid; gap: var(--sp-4); justify-items: center; }
/* a card's head: a tile (a photo, initials or a field's number) and who or what it is */
.ui-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; }
.ui-head > span { display: grid; gap: var(--sp-1); min-width: 0; }
.ui-tile { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--face); color: var(--label); font: var(--fw-regular) var(--fs-title-s)/1 var(--caps); letter-spacing: var(--ls-numeral); }
.ui-tile img { width: 100%; height: 100%; object-fit: cover; }
.ui-tile--l { width: 76px; height: 76px; border-radius: var(--r-l); font-size: var(--fs-title); }
/* plate (2026-11-16, 고가람 원장 · 대표님): a logo whole on a quieter solid (--plate), as the QR tile - a society's or a
   company's mark in its own colours, read on the night; a wide wordmark is not cut. Its height is set, its width follows
   the logo up to a limit (m 48 for a card's mark, s 32 inside a cell). <span class="ui-plate"><img src="…" alt=""></span> */
/* device (2026-11-30, 장비): a device or a product on a stage (--stage-*) - the same 3:4 stone plinth, one light from
   above and the device standing on the same line at the same height, whoever made it. No floor is drawn: the makers'
   cameras differ, and a drawn floor's perspective fought theirs (대표님 2026-11-30); the device is toned to the room's light. Its picture is a
   cut-out made to one sheet (900×1200: the device 78% of the height at most, 84% of the width, standing on 88%;
   proposals-2026-11-30-equipment/normalize.html), so the page only places it. Under the stage its name, its maker and
   English name, what kind it is, and the treatments done with it. A device without a picture yet keeps its stage
   with its kind on it (.ui-device-stage--empty), so a row stays whole. --light: the light plinth (comparing).
   <div class="ui-devices"><figure class="ui-device"><span class="ui-device-stage"><img src="…" alt=""></span>
   <figcaption><b class="ui-device-name">…</b><span class="ui-device-sub">…</span></figcaption></figure></div> */
.ui-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-3); margin: 0; }
@media (min-width: 760px) { .ui-devices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-4); } }
.ui-device { display: grid; align-content: start; gap: var(--sp-3); margin: 0; min-width: 0; scroll-margin-top: 140px; }
.ui-device-stage { position: relative; display: block; aspect-ratio: 3 / 4; border: 1px solid var(--stage-line); border-radius: var(--r-l); overflow: hidden; background: var(--stage-bg); box-shadow: var(--stage-shadow); }
.ui-device-stage img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-device-stage--empty { display: grid; place-items: center; }
.ui-device-stage--empty > span { position: relative; z-index: 1; max-width: 80%; text-align: center; font: var(--fw-regular) var(--fs-label)/1.4 var(--caps); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-4); }
.ui-device figcaption, .ui-device-cap { display: grid; gap: var(--sp-1); min-width: 0; }
/* a device that leads somewhere (a treatment's devices, the list's card): the stage lights a little on hover */
a.ui-device { color: inherit; text-decoration: none; }
a.ui-device .ui-device-stage { transition: border-color var(--dur-fast); }
a.ui-device:hover .ui-device-stage { border-color: var(--line-3); }
a.ui-device:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: var(--r-l); }
.ui-device-name { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--text); }
.ui-device-sub { font-size: var(--fs-meta); line-height: var(--lh-snug); color: var(--text-3); }
.ui-device-for { margin: var(--sp-1) 0 0; font-size: var(--fs-meta); line-height: var(--lh-body); color: var(--text-3); }
.ui-device-for a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.ui-device-for a:hover { color: var(--text); }
.ui-devices--light .ui-device-stage { background: var(--stage-bg-light); }
.ui-plate { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; height: 48px; max-width: 176px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-s); background: var(--plate); }
.ui-plate img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.ui-plate--s { height: 32px; max-width: 128px; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-xs); }
/* an almost square logo (data-shape, js/partners.mjs) fills more of the plate's height, so it reads as big as a word mark */
.ui-plate:has(> img[data-shape="square"]) { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.ui-plate--s:has(> img[data-shape="square"]) { padding-top: 2px; padding-bottom: 2px; }
/* a logo too light for the light plate (white letters, a pale mark; data-tone, js/partners.mjs): the dark plate, its
   edge a faint line so it still reads as a plate on a dark card (2026-11-25, 베네시스) */
.ui-plate:has(> img[data-tone="light"]) { background: var(--plate-dark); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---- notices: a word about the state of things, inside a form or a page ---- */
.ui-notice { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--fill-2); color: var(--text); font-size: var(--fs-small); line-height: var(--lh-body); }
.ui-notice--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); color: var(--warn-2); }
.ui-notice--error { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad-2); }
/* band (2026-11-13): this is not the live site, or not quite it - a tab hanging from the top edge of the screen, above
   the header, in the warning's colour. Names in bold, each with what to know after it: the dev site (데브 · 11.13 14:20
   라이브 데이터 · 예약 · 원장 초대 꺼짐), a preview of the changes waiting to be published (미리보기 · 게시 대기 3건 ·
   12.1 기준) with its way out (.ui-band-act, 지금 사이트 보기); both at once in one band, a rule between them. quiet:
   the live site is showing after all (an ended preview address); bad: what it names could not be read. It takes no
   room from the page; on a phone only the names are left (.ui-band-tab; two of them one above the other), so it fits
   between the logo and the language button, and the tab opens the rest under it (--open).
   <div class="ui-band"><button class="ui-band-tab" aria-expanded="false"><b>…</b></button>
     <p class="ui-band-line" role="status"><b>…</b><span>…</span></p><button class="ui-band-act">…</button></div> */
.ui-band { position: fixed; z-index: 60; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-3); max-width: calc(100vw - 2 * var(--sp-4)); margin: 0; padding: var(--sp-1) var(--sp-3); border-radius: 0 0 var(--r-s) var(--r-s); background: var(--warn); color: var(--on-solid); font-size: var(--fs-meta); line-height: var(--lh-snug); white-space: nowrap; pointer-events: none; }
.ui-band--quiet { background: var(--solid-2); }
.ui-band--bad { background: var(--bad); }
.ui-band b { font-weight: var(--fw-bold); }
.ui-band-line { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; margin: 0; line-height: inherit; }
.ui-band-line > b { flex: none; }
.ui-band-line > b ~ b { margin-left: var(--sp-1); padding-left: var(--sp-3); border-left: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.ui-band-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ui-band-line > span::before { content: "·"; margin-right: var(--sp-2); }
.ui-band-act { flex: none; margin: -1px 0; padding: 0 var(--sp-2); border: 1px solid; border-radius: var(--r-pill); background: none; color: inherit; font: inherit; font-weight: var(--fw-bold); cursor: pointer; pointer-events: auto; transition: background var(--dur-fast); }
.ui-band-act:hover { background: var(--shade-1); }
.ui-band-tab { display: none; grid-template-columns: auto auto; column-gap: var(--sp-1); align-items: center; justify-items: center; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; }
.ui-band-tab b { grid-column: 1; }
.ui-band-tab::after { content: ""; grid-column: 2; grid-row: 1 / span 2; border: 3px solid transparent; border-top: 4px solid; border-bottom: 0; transition: transform var(--dur-fast); }
@media (max-width: 720px) {
  .ui-band { padding: var(--sp-1) var(--sp-2); }
  .ui-band-tab { display: grid; }
  .ui-band-line, .ui-band-act { display: none; }
  .ui-band--open { flex-direction: column; align-items: flex-start; gap: var(--sp-2); width: max-content; padding: var(--sp-1) var(--sp-3) var(--sp-3); white-space: normal; pointer-events: auto; box-shadow: var(--shadow-1); }
  .ui-band--open .ui-band-tab { align-self: center; }
  .ui-band--open .ui-band-tab::after { transform: rotate(180deg); }
  .ui-band--open .ui-band-line { display: grid; gap: var(--sp-1); }
  .ui-band--open .ui-band-line > span::before, .ui-band--open .ui-band-line > .ui-band-same { display: none; }
  .ui-band--open .ui-band-line > b ~ b { margin: var(--sp-2) 0 0; padding: var(--sp-2) 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
  .ui-band--open .ui-band-act { display: block; margin: 0; padding: var(--sp-1) var(--sp-3); }
}
/* the narrowest phones: the names alone (the tab still opens) */
@media (max-width: 374px) { .ui-band:not(.ui-band--open) .ui-band-tab::after { display: none; } }
.ui-notice--empty { border-style: dashed; background: none; color: var(--text-2); }

/* ---- fields ---- */
/* a field keeps its label and box at the top when its row is taller (a neighbour with a hint under it): the boxes of
   fields side by side line up */
.ui-field { display: grid; align-content: start; gap: var(--sp-2); font-size: var(--fs-small); color: var(--text-2); }
.ui-input { width: 100%; height: var(--h-field); padding: 0 var(--sp-4); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--fill-2); color: var(--text); font: var(--fs-body) var(--sans); transition: border-color var(--dur-fast); }
.ui-input::placeholder { color: var(--text-4); }
.ui-input:hover { border-color: var(--line-3); }
.ui-input:focus-visible { outline: none; border-color: var(--lit-line-2); }
.ui-input[aria-invalid="true"] { border-color: var(--bad); }
/* written right (2026-11-26, 대표님): once a field holds what it asks for, a check at its end - the place of a select's
   chevron and a date's calendar (--icon-end). The page sets data-ok on the .ui-input as it is written; nothing shows on
   an empty field. The check is the field's own mark (a label .ui-field, or .ui-field-row: boxes side by side, the
   check in the last), not the input's background: a browser's autofill paints over an input's background. */
.ui-input[data-ok] { padding-right: calc(var(--sp-4) + var(--icon-end) + var(--sp-2)); }
:is(.ui-field, .ui-field-row):has(> .ui-input[data-ok])::after { content: ""; position: relative; z-index: 1; grid-row: 2; grid-column: 1; justify-self: end; align-self: center; width: var(--icon-end); height: var(--icon-end); margin-right: var(--sp-4); background: var(--field-ok) center / contain no-repeat; pointer-events: none; }
.ui-field-row:has(> .ui-input[data-ok])::after { grid-row: 1; grid-column: -2; }
/* the box takes the same cell as its check: a check placed in a cell alone pushes an unplaced box to the next row */
.ui-field:has(> .ui-input[data-ok]) > .ui-input[data-ok] { grid-row: 2; grid-column: 1; }
.ui-field-row:has(> .ui-input[data-ok]) > .ui-input[data-ok] { grid-row: 1; grid-column: -2; }
/* a date written right: the check takes its calendar's place (the calendar still opens there, under it), and the
   calendar is back while it is touched */
.ui-input[type="date"][data-ok] { padding-right: var(--sp-4); }
.ui-input[type="date"][data-ok]::-webkit-calendar-picker-indicator { opacity: 0; }
.ui-input[type="date"][data-ok]:is(:hover, :focus-visible)::-webkit-calendar-picker-indicator { opacity: 1; }
.ui-field:has(> .ui-input[type="date"][data-ok]:is(:hover, :focus-visible))::after { opacity: 0; }
/* autofill: the browser's own face (a pale blue) gives way to the field's - its text, its fill over the page */
.ui-input:autofill, .ui-input:-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: inset 0 0 0 100px var(--fill-2), inset 0 0 0 100px var(--bg); }
textarea.ui-input { height: auto; min-height: 96px; padding: var(--sp-3) var(--sp-4); line-height: var(--lh-body); resize: vertical; }
/* a field's end (2026-11-08): a select's chevron and a date's calendar in the same box (--icon-end) at the field's
   inner edge (--sp-4), so every dropdown's arrow lines up with the calendar (the browser's own arrow sat at the edge) */
select.ui-input { appearance: none; -webkit-appearance: none; padding-right: calc(var(--sp-4) + var(--icon-end) + var(--sp-2)); background-image: var(--chevron-down); background-repeat: no-repeat; background-position: right var(--sp-4) center; background-size: var(--icon-end); cursor: pointer; }
select.ui-input option, select.ui-input optgroup { background: var(--panel); color: var(--text); }
/* A select with a short face (대표님 2026-11-26: the country as 🇰🇷 +82): the box shows the picked option's short face
   (its data-face) while the list keeps the full names (🇰🇷 대한민국 +82); the select lies over the face, unseen, so the
   browser's own list, the keyboard and a screen reader stay as they are. On Windows a flag reads as its two letters (KR).
   <span class="ui-face-select"><span class="ui-input ui-face" aria-hidden="true">🇰🇷 +82</span><select class="ui-input">
   <option value="KR" data-face="🇰🇷 +82">🇰🇷 대한민국 +82</option>…</select></span> (js/booking.mjs keeps the face) */
.ui-face-select { position: relative; display: grid; min-width: 0; }
.ui-face { display: flex; align-items: center; overflow: hidden; white-space: nowrap; padding-right: calc(var(--sp-4) + var(--icon-end) + var(--sp-2)); background-image: var(--chevron-down); background-repeat: no-repeat; background-position: right var(--sp-4) center; background-size: var(--icon-end); }
.ui-face-select > select.ui-input { position: absolute; inset: 0; opacity: 0; }
.ui-face-select:hover > .ui-face { border-color: var(--line-3); }
.ui-face-select:has(> select:focus-visible) > .ui-face { border-color: var(--lit-line-2); }
.ui-face-select:has(> select[aria-invalid="true"]) > .ui-face { border-color: var(--bad); }
/* A search field (F-27 시술 · 가격 search, 2026-11-24): what one types to narrow a list where it is - ⌕ before, × (clear)
   after once something is typed; .ui-input's corners, line and face, the height of a small button since it sits in a
   bar beside tabs (a finger's size on touch screens, below). */
.ui-search { display: flex; align-items: center; gap: var(--sp-2); height: var(--h-s); padding: 0 var(--sp-1) 0 var(--sp-3); border-radius: var(--r-m); border: 1px solid var(--line); background: var(--fill-2); color: var(--text-3); cursor: text; transition: border-color var(--dur-fast); }
.ui-search:hover { border-color: var(--line-3); }
.ui-search:focus-within { border-color: var(--lit-line-2); }
.ui-search > svg { width: 16px; height: 16px; flex: none; }
.ui-search-input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--text); font: var(--fs-small) var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.ui-search-input::placeholder { color: var(--text-4); }
.ui-search-input:focus-visible { outline: none; } /* the field's line lights instead (:focus-within) */
.ui-search-input::-webkit-search-cancel-button { display: none; }
.ui-search-clear { display: grid; place-items: center; flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--r-round); background: var(--fill-3); color: var(--text-2); cursor: pointer; }
.ui-search-clear[hidden] { display: none; }
.ui-search-clear svg { width: 12px; height: 12px; }
.ui-search-clear:focus-visible { outline: var(--focus); outline-offset: 2px; }
/* The words a search found, in what it found: the text as it was, underlined in the lit line. */
.ui-mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--lit-line-2); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ui-input::-webkit-calendar-picker-indicator { width: var(--icon-end); height: var(--icon-end); margin: 0; padding: 0; cursor: pointer; }
.ui-field small { font-size: var(--fs-meta); line-height: var(--lh-snug); color: var(--text-3); }
/* a field's title line (대표님 2026-11-26): the title at the start, its hint at the end of the same line, on one line
   (a hint is short enough to fit beside its title in the narrowest place it shows) - never under the box. In a label (<span class="ui-field-head">이메일<small>…</small></span>)
   or as a fieldset's legend (<legend class="ui-field-head">전화번호<small>…</small></legend>). */
.ui-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); width: 100%; }
.ui-field-head > small { flex: 0 1 auto; text-align: right; font-size: var(--fs-meta); line-height: var(--lh-snug); color: var(--text-3); }
/* error (대표님 2026-11-26): what is wrong with a field, red and small, in its hint's place at the end of its title
   line - the hint steps aside while it shows (<span class="ui-field-head">전화번호<small>…</small><span class="ui-error">…
   </span></span>). A field with no title line (a checkbox) has it under its box. The box has
   aria-invalid. Empty, it takes no room. */
.ui-error { font-size: var(--fs-meta); line-height: var(--lh-snug); color: var(--bad); }
.ui-error:empty { display: none; }
.ui-field-head > .ui-error { flex: 0 1 auto; text-align: right; }
.ui-field-head:has(> .ui-error:not(:empty)) > small { display: none; }
/* count (2026-11-09, ops v95-v98): how much of something - − the amount +, a unit a step (300샷: 100샷 a step; 60kJ:
   10kJ a step, from 40kJ), from its least to its most. The amount is shown as it is meant, not a count of units. One
   outline, the size of a button in a row (s); − or + off at the ends. */
.ui-count { display: inline-flex; align-items: stretch; height: var(--h-s); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--fill-2); transition: border-color var(--dur-fast); }
.ui-count:focus-within { border-color: var(--lit-line-2); }
.ui-count > button { position: relative; display: inline-grid; place-items: center; width: var(--h-s); padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--text); cursor: pointer; }
.ui-count > button:hover { background: var(--fill-4); }
.ui-count > button:disabled { color: var(--off-fg); pointer-events: none; }
.ui-count > button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.ui-count > button svg { width: 14px; height: 14px; }
.ui-count > output { display: inline-grid; place-items: center; min-width: 6ch; padding: 0 var(--sp-1); color: var(--text); font: var(--fw-bold) var(--fs-small)/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* inline (2026-11-09): a field and its one action on a line (쿠폰 코드 · 적용). The button joined to a field takes the
   field's height and corners, so the two read as one control. */
.ui-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); align-items: center; }
.ui-inline > .ui-btn { height: var(--h-field); border-radius: var(--r-m); }
.ui-check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--text-2); }
.ui-check input { margin: 3px 0 0; accent-color: var(--lit); }

/* ---- lists ---- */
/* rows: things with a value at the right (treatments and prices, options, the cart, a doctor's days) */
.ui-rows { margin: 0; padding: 0; list-style: none; }
.ui-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); align-items: baseline; padding: var(--sp-3) 0; border-top: 1px solid var(--divider); color: var(--text); text-decoration: none; }
.ui-row:first-child { border-top: 0; }
.ui-row > span:first-child { font-size: var(--fs-body); font-weight: var(--fw-bold); letter-spacing: -.01em; }
.ui-row small { display: block; margin-top: var(--sp-1); font-size: var(--fs-meta); font-weight: var(--fw-regular); letter-spacing: 0; color: var(--text-3); }
.ui-row > span:last-child { font-size: var(--fs-body); font-weight: var(--fw-bold); white-space: nowrap; text-align: right; }
.ui-row s { display: block; font-size: var(--fs-meta); font-weight: var(--fw-regular); color: var(--text-3); }
.ui-row em { margin-left: var(--sp-2); font-size: var(--fs-meta); font-style: normal; font-weight: var(--fw-medium); color: var(--lit); }
a.ui-row:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-4); }
/* a row that opens a page ends in a chevron where a value would be */
.ui-row > svg:last-child { align-self: center; width: var(--icon-end); height: var(--icon-end); color: var(--text-3); transition: transform var(--dur-fast), color var(--dur-fast); }
a.ui-row:hover > svg:last-child { color: var(--text); transform: translateX(2px); }
/* add (2026-11-09): a list's own way to grow, as its last row - under the last line, a dashed outline with + and what
   it adds (시술 추가); alone when the list is empty. <li class="ui-row ui-row--add"><button class="ui-add">… */
.ui-rows > .ui-row--add { display: block; }
.ui-add { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: 100%; height: var(--h-m); padding: 0 var(--sp-4); border: 1px dashed var(--line-3); border-radius: var(--r-m); background: none; color: var(--text-2); font: var(--fw-bold) var(--fs-control)/1 var(--sans); cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast); }
.ui-add:hover { border-color: var(--line-4); background: var(--fill-2); color: var(--text); }
.ui-add svg { flex: none; width: 16px; height: 16px; }
.ui-add:focus-visible { outline: var(--focus); outline-offset: 2px; }
/* add a card (2026-11-26, 대표님): an add takes the shape of what it adds - a row's add is a row, a card's add is a card.
   Where the next card would come, the card's own corners and padding, dashed, with + and what it adds, and a line under
   it. <button class="ui-add ui-add--card"><svg…><span>함께 오는 분 추가</span><small>최대 3명까지…</small></button> */
.ui-add--card { flex-wrap: wrap; row-gap: var(--sp-1); height: auto; min-height: calc(var(--h-m) + 2 * var(--sp-4)); padding: var(--sp-4); border-radius: var(--r-m); }
.ui-add--card > small { flex-basis: 100%; text-align: center; font: var(--fs-meta)/var(--lh-snug) var(--sans); color: var(--text-3); }
/* pick (2026-11-13, 대표님): a row that goes in the cart as it is - a campaign's offers after its signature cards. Its
   name and what is its own (small), its price (the listed one struck above, .ui-vat under it), 담기 (.ui-chip--s) at
   the row's end; what it holds (.ui-disclosure--text: 시술 설명 보기) under them across the row. On a phone the price
   goes under the name, so the name keeps the width and 담기 its end.
   <li class="ui-row ui-row--pick"><span>…<small>…</small></span><span class="ui-row-price"><s>…</s>…</span>
   <button class="ui-chip ui-chip--s">…</button><details class="ui-disclosure ui-disclosure--text">…</details></li> */
.ui-row--pick { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name price pick" "more more more"; align-items: center; }
.ui-row--pick > span:first-child { grid-area: name; align-self: start; }
.ui-row-price { grid-area: price; font-size: var(--fs-body); font-weight: var(--fw-bold); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.ui-row--pick > .ui-chip { grid-area: pick; }
.ui-row--pick > .ui-disclosure--text { grid-area: more; justify-self: start; font-size: var(--fs-meta); color: var(--text-3); }
.ui-row--pick > .ui-disclosure--text[open] { justify-self: stretch; }
.ui-row--pick > .ui-disclosure--text > .ui-rows { margin-top: var(--sp-2); }
@media (max-width: 720px) {
  .ui-row--pick { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pick" "price pick" "more more"; }
  .ui-row-price { text-align: left; }
  .ui-row-price s { display: inline; margin-right: var(--sp-2); }
}
/* marquee (2026-11-13, 대표님: 이어서 흐르기): one line in a row that flows when it does not fit - a treatment's offer
   under its device line (on narrow cards it used to wrap beside it). <vorm-marquee class="ui-marquee">text</vorm-marquee>;
   js/marquee.mjs puts the text in a track and, only when it is wider than the box, moves it (data-moving) with an
   aria-hidden copy a gap (sp-10) behind; the right edge fades while it runs, the left one (--marquee-l) once it moves.
   It never widens what holds it (contain). With reduced motion it stays one line ending in …. */
@property --marquee-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
.ui-marquee { display: block; overflow: hidden; contain: inline-size; white-space: nowrap; font-size: var(--fs-row-meta); font-weight: var(--fw-regular); letter-spacing: .03em; line-height: var(--lh-snug); color: var(--label); }
.ui-marquee-track { display: inline-flex; }
.ui-marquee-track > * { flex: none; }
.ui-marquee-copy { padding-left: var(--sp-10); }
.ui-marquee[data-moving] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--marquee-l), #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--marquee-l), #000 calc(100% - 22px), transparent); }
.ui-marquee[data-moving] > .ui-marquee-track { will-change: transform; }
/* A line of logos (2026-11-25, 함께하는 곳 on the home): .ui-marquee's motion (js/marquee.mjs: it flows only when wider
   than its box, rests 1.8 s, runs at 32 px/s, holds under the mouse and out of view) with logo marks in it, 56 px
   between them and before the copy, and wider fades at the ends. With reduced motion it does not flow: the marks
   wrap into still rows (below). <vorm-marquee class="ui-marquee ui-marquee--logos"><span class="ui-marquee-row">
   <a class="ui-logo-mark" href>…</a>…</span></vorm-marquee> */
.ui-marquee--logos { font: inherit; letter-spacing: 0; line-height: 1; color: var(--text-3); }
.ui-marquee-row { display: inline-flex; align-items: center; gap: var(--sp-14); }
.ui-marquee--logos .ui-marquee-copy { padding-left: var(--sp-14); }
.ui-marquee--logos[data-moving] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(var(--marquee-l) * 4), #000 calc(100% - var(--sp-18)), transparent); mask-image: linear-gradient(90deg, transparent, #000 calc(var(--marquee-l) * 4), #000 calc(100% - var(--sp-18)), transparent); }
/* A logo mark: a partner's logo at one height (--logo-h), its width its own. An almost square mark is drawn a quarter
   taller and a very wide word mark is capped at five heights, so they read as one size (data-shape, js/partners.mjs).
   White silhouettes at 55%; without a logo, the name. */
.ui-logo-mark { --logo-h: 28px; display: inline-flex; align-items: center; height: calc(var(--logo-h) * 1.25); font: var(--fw-bold) 17px/1 var(--sans); letter-spacing: -.02em; color: var(--text-3); white-space: nowrap; text-decoration: none; transition: color var(--dur-fast); }
.ui-logo-mark img { display: block; width: auto; height: var(--logo-h); max-width: calc(var(--logo-h) * 5); object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: opacity var(--dur-fast); }
.ui-logo-mark img[data-shape="square"] { height: calc(var(--logo-h) * 1.25); }
a.ui-logo-mark:hover { color: var(--text); }
a.ui-logo-mark:hover img { opacity: .9; }
a.ui-logo-mark:focus-visible { outline: var(--focus); outline-offset: 4px; }
@media (max-width: 760px) { .ui-logo-mark { --logo-h: 22px; font-size: 14px; } }
/* disclosure (2026-11-08): a row that opens in place onto its own rows (a treatment onto its options while booking),
   its chevron turning as it opens. <details class="ui-disclosure"><summary><span>name<small>meta <em>lit</em></small>
   </span></summary>…</details>; one after another they read as one list. */
.ui-disclosure { border-top: 1px solid var(--divider); }
.ui-disclosure:first-child { border-top: 0; }
.ui-disclosure > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; list-style: none; cursor: pointer; color: var(--text); }
.ui-disclosure > summary::-webkit-details-marker { display: none; }
.ui-disclosure > summary > span { font-size: var(--fs-body); font-weight: var(--fw-bold); letter-spacing: -.01em; }
.ui-disclosure > summary small { display: block; margin-top: var(--sp-1); font-size: var(--fs-meta); font-weight: var(--fw-regular); letter-spacing: 0; color: var(--text-3); }
.ui-disclosure > summary em { font-style: normal; font-weight: var(--fw-medium); color: var(--lit); }
.ui-disclosure > summary::after { content: ""; width: 7px; height: 7px; margin-right: var(--sp-2); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--text-3); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-fast), color var(--dur-fast); }
.ui-disclosure > summary:hover::after { color: var(--text); }
.ui-disclosure[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.ui-disclosure > summary:focus-visible { outline: var(--focus); outline-offset: 2px; }
.ui-disclosure > :not(summary) { margin-bottom: var(--sp-3); }
/* text (2026-11-12): the same toggle as a line of the text it follows (an offer card's 시술 설명 보기) - that text's
   size and colour (the class it is given), a small chevron, no line above; what it opens comes under it. */
.ui-disclosure--text { border-top: 0; }
.ui-disclosure--text > summary { position: relative; display: inline-flex; gap: var(--sp-2); padding: 0; font: inherit; color: inherit; }
.ui-disclosure--text > summary::after { width: 5px; height: 5px; margin: 0; border-right-width: 1.2px; border-bottom-width: 1.2px; transform: translateY(-1px) rotate(45deg); }
.ui-disclosure--text[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.ui-disclosure--text > summary:hover, .ui-disclosure--text[open] > summary { color: var(--text-2); }
.ui-disclosure--text > :not(summary) { margin: var(--sp-2) 0 0; }
.ui-disclosure--text > .ui-rows > :last-child { padding-bottom: 0; }
/* cards in a list: a column, or a grid that wraps */
.ui-cards { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.ui-cards--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* points: short lines, each led by a lit dash */
.ui-points { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.ui-points li { position: relative; padding-left: 22px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
.ui-points li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--lit); }
/* facts: a name over its value, side by side */
.ui-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--sp-5) var(--sp-6); margin: 0; }
.ui-facts dt { margin-bottom: var(--sp-2); font-size: var(--fs-meta); color: var(--text-3); }
.ui-facts dd { margin: 0; font-size: var(--fs-body); color: var(--text); }
/* steps: numbered stages side by side, each under a line */
.ui-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-6); margin: 0; padding: 0; list-style: none; counter-reset: ui-step; }
.ui-steps li { padding-top: var(--sp-5); border-top: 1px solid var(--line); counter-increment: ui-step; }
.ui-steps li::before { content: counter(ui-step, decimal-leading-zero); display: block; margin-bottom: var(--sp-4); font: var(--fw-regular) var(--fs-small)/1 var(--caps); letter-spacing: var(--ls-numeral); color: var(--label); }
.ui-steps h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-title-s); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); line-height: var(--lh-snug); }
.ui-steps p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
/* table: many rows of the same columns (fees) */
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ui-table th { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-bottom: 1px solid var(--line-2); text-align: left; font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--text-3); }
.ui-table td { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-bottom: 1px solid var(--divider); color: var(--text); vertical-align: baseline; }
.ui-table td.num, .ui-table th.num { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- the area a finger presses (--hit) ----
   On touch screens what looks smaller than --hit (s buttons, chips, icon buttons; a 34 px pill) presses as if it were
   --hit tall and at least as wide: a transparent layer around it. The look stays the same. */
@media (pointer: coarse) {
  .ui-btn::after, .ui-icon-btn::after, .ui-chip::after, .ui-split > button::after, .ui-count > button::after { content: ""; position: absolute; top: min(0px, calc(50% - var(--hit) / 2)); bottom: min(0px, calc(50% - var(--hit) / 2)); left: min(0px, calc(50% - var(--hit) / 2)); right: min(0px, calc(50% - var(--hit) / 2)); }
  /* a line of text that opens (its ::after is the chevron): as tall as --hit */
  .ui-disclosure--text > summary::before { content: ""; position: absolute; top: min(0px, calc(50% - var(--hit) / 2)); bottom: min(0px, calc(50% - var(--hit) / 2)); left: 0; right: 0; }
  /* a search field is a finger's height, and what is typed 16 px so the phone does not zoom into it */
  .ui-search { height: var(--h-m); }
  .ui-search-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-btn, .ui-chip, .ui-tab, .ui-link svg, .ui-icon-btn, .ui-input, .ui-disclosure > summary::after, .ui-row > svg:last-child, .ui-calendar-day, .ui-calendar-grid, .ui-slot, .ui-stepper button, .ui-stepper button::before, .ui-split, .ui-add, .ui-count { transition: none; }
  /* the marquee holds still (js/marquee.mjs): its text inline, so a long line ends in … */
  .ui-marquee { text-overflow: ellipsis; }
  .ui-marquee--logos { white-space: normal; }
  .ui-marquee--logos .ui-marquee-track { display: block; }
  .ui-marquee-row { flex-wrap: wrap; row-gap: var(--sp-5); }
  .ui-marquee-track { display: inline; }
}
