/* 예약ON owner design system (docs/ui/DESIGN_SYSTEM.md). Every owner page links this file
   after owner_theme.css. Two layers:
   1. Tokens (--ui-*). New names, so linking the file changes nothing on an existing screen.
   2. Components, all opt-in under .ui-*: nothing here restyles an existing selector.
   Look: white cards with no outline on a cool grey ground (a true neutral dark at night); the
   brand blue of the ON switch only on small marks (the one primary button, the selected mark,
   progress) and its pale tint on selected areas; each shop keeps its colour dot.
   Type: five sizes (13 / 14 / 16 / 17 / 26). Targets 44px or more; inputs 16px (iPhone never zooms).
   Component selectors start with `html body` so they beat owner_theme.css's broad
   `html body :is(a,.note,...)` rules by coming later; its dark repaints are undone at the end. */

:root{
 /* Owner 11-10 light B: cream ground, white cards, black main buttons with yellow words; no blue. */
 /* Owner 11-11: white ground; the shared lines (owner_theme.css --line / --line-soft / --line-strong). */
 --ui-ground:#fff;--ui-surface:#fff;--ui-raised:#f4f3ef;--ui-active:#fff3c4;
 --ui-border:#eceae4;--ui-rule:#f0eee8;--ui-control:#dedbd2;
 --ui-text:#111;--ui-muted:#555;--ui-faint:#666;
 --ui-accent:#111;--ui-accent-ink:#111;--ui-accent-soft:#fff3c4;--ui-on-accent:#ffc800;
 --ui-positive:#0f7a45;--ui-positive-bg:#e3f6ea;--ui-positive-ink:#0b5a33;
 --ui-negative:#d22030;--ui-negative-bg:#ffeceb;--ui-negative-ink:#a1121e;
 --ui-warning-bg:#fff6dd;--ui-warning-ink:#7a4a00;
 /* Shop identity dots, same order and values as the 상담 shop tabs (owner_messenger.css --m-c0…c4). */
 /* Shop colours (owner 11-11 "어울리는색깔로"): crimson · emerald · violet · amber-brown, no blue and no yellow beside the yellow+black brand; chosen for colour-blind separation. */
 --ui-shop-0:#be123c;--ui-shop-1:#059669;--ui-shop-2:#7c3aed;--ui-shop-3:#b45309;--ui-shop-4:#57534e; /* taste-skill-ignore: shop colours */
 --ui-toast:#191f28;--ui-on-toast:#fff;
 --ui-font:"Pretendard","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
 --ui-fs-title:26px;--ui-fs-card:17px;--ui-fs-body:16px;--ui-fs-small:14px;--ui-fs-meta:13px;
 --ui-r-card:14px;--ui-r-control:14px;--ui-r-pill:999px;
 --ui-gap:12px;--ui-pad:20px;--ui-section:28px;--ui-touch:44px;--ui-row:60px;--ui-cta:52px;
}
html[data-theme=dark]{
 /* Owner 11-10 chose 2번: true black + yellow. Words on the yellow are always near-black (#111). */
 --ui-ground:#000;--ui-surface:#121212;--ui-raised:#1e1e1e;--ui-active:#2b2400;
 --ui-border:#2a2a2a;--ui-rule:#1e1e1e;--ui-control:#3a3a3a;
 --ui-shop-0:#f43f5e;--ui-shop-1:#10b981;--ui-shop-2:#8b5cf6;--ui-shop-3:#d97706;--ui-shop-4:#a8a29e;
 --ui-text:#f5f5f5;--ui-muted:#9a9a9a;--ui-faint:#8c8c8c;
 --ui-accent:#ffc800;--ui-accent-ink:#ffd54a;--ui-accent-soft:#2b2400;--ui-on-accent:#111;
 --ui-positive:#2fbf71;--ui-positive-bg:#0f2a1a;--ui-positive-ink:#8fe3b4;
 --ui-negative:#ff5a5a;--ui-negative-bg:#3a1414;--ui-negative-ink:#ffb3b3;
 --ui-warning-bg:#2b2400;--ui-warning-ink:#ffd54a;
 --ui-toast:#f5f5f5;--ui-on-toast:#111;
}

/* ---- page frame -------------------------------------------------------------------- */
/* A page that has moved onto the system puts .ui-app on <body>: owner_theme.css paints body[data-owner-page]. */
html body.ui-app,html body.ui-app[data-owner-page]{background:var(--ui-ground);color:var(--ui-text);font-family:var(--ui-font)}
html body .ui-page{box-sizing:border-box;max-width:1100px;margin:0 auto;padding:24px 16px 48px;font-family:var(--ui-font);color:var(--ui-text);background:var(--ui-ground)}
html body .ui-page *,html body .ui-page *::before,html body .ui-page *::after{box-sizing:border-box}
html body .ui-title{margin:0;font-size:var(--ui-fs-title);line-height:1.35;font-weight:700;letter-spacing:-.02em;color:var(--ui-text)}
html body .ui-lede{margin:8px 0 0;font-size:var(--ui-fs-body);line-height:1.55;color:var(--ui-muted)}
html body .ui-stack{display:flex;flex-direction:column;gap:var(--ui-gap);min-width:0}
html body :is(.ui-stack,.ui-card,.ui-details,.ui-shop-context)>*{min-width:0}
html body .ui-section{margin-top:var(--ui-section)}
/* A group heading sits on the ground above its card, the way the owner reads a settings list. */
html body .ui-section-title{margin:0 4px 10px;font-size:var(--ui-fs-small);line-height:1.4;font-weight:600;color:var(--ui-muted)}

/* ---- "지금 고치는 가게": the first thing on a page that edits one shop -------------- */
html body .ui-shop-context{display:flex;flex-direction:column;gap:12px;padding:18px var(--ui-pad);border-radius:var(--ui-r-card);background:var(--ui-surface);color:var(--ui-text);box-shadow:var(--card-edge)}
html body .ui-shop-context-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
html body .ui-shop-context-label{font-size:var(--ui-fs-small);font-weight:600;color:var(--ui-muted)}
html body .ui-shop-context-name{display:inline-flex;align-items:center;gap:8px;font-size:var(--ui-fs-card);font-weight:700}
html body .ui-shop-context-name[data-shop]::before,html body .ui-chip[data-shop]::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--ui-shop,var(--ui-faint))}
[data-shop="0"]{--ui-shop:var(--ui-shop-0)}[data-shop="1"]{--ui-shop:var(--ui-shop-1)}[data-shop="2"]{--ui-shop:var(--ui-shop-2)}
[data-shop="3"]{--ui-shop:var(--ui-shop-3)}[data-shop="4"]{--ui-shop:var(--ui-shop-4)}

/* ---- card: white on grey, no outline, no shadow; never a card inside a card ------- */
html body .ui-card{min-width:0;padding:var(--ui-pad);border:0;border-radius:var(--ui-r-card);background:var(--ui-surface);color:var(--ui-text);box-shadow:var(--card-edge)}
html body .ui-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
html body .ui-card-title{margin:0;font-size:var(--ui-fs-card);line-height:1.45;font-weight:700;letter-spacing:-.01em}
html body .ui-card-sub{margin:4px 0 0;font-size:var(--ui-fs-small);line-height:1.5;color:var(--ui-muted)}
html body .ui-card>.ui-list{margin:0 calc(-1*var(--ui-pad)) calc(-1*var(--ui-pad) + 6px)}
html body .ui-card-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}

/* ---- list row: title, one grey line, the current value, a chevron when it opens ---- */
html body .ui-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
html body .ui-row{display:flex;align-items:center;gap:14px;min-height:var(--ui-row);padding:10px var(--ui-pad);border:0;border-radius:0;color:var(--ui-text);text-decoration:none;background:transparent;font:inherit;text-align:left;width:100%}
html body .ui-row-main{flex:1;min-width:0}
html body .ui-row-title{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:var(--ui-fs-body);line-height:1.45;font-weight:600;overflow-wrap:anywhere}
/* A row's one status sits on its title line, so the grey line below keeps the full width. */
html body .ui-row-title>.ui-badge{min-height:22px;padding:0 8px}
html body .ui-row-sub{display:block;margin-top:2px;font-size:var(--ui-fs-small);line-height:1.5;color:var(--ui-muted);overflow-wrap:anywhere}
/* The value the row holds now ("2일", "켜짐", "8분 전"): the owner sees the answer before tapping. */
html body .ui-row-end{flex:none;max-width:45%;font-size:var(--ui-fs-small);font-weight:500;color:var(--ui-muted);text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body a.ui-row::after,html body button.ui-row::after{content:"";flex:none;width:8px;height:8px;margin:0 2px 0 -4px;border-right:2px solid var(--ui-faint);border-top:2px solid var(--ui-faint);transform:rotate(45deg)}
html body a.ui-row:hover,html body button.ui-row:hover{background:var(--ui-raised);cursor:pointer}
html body a.ui-row:active,html body button.ui-row:active{background:var(--ui-raised)}

/* ---- buttons: one primary per screen, then soft, then plain, then text ------------ */
html body .ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--ui-touch);padding:0 18px;border:0;border-radius:var(--ui-r-control);background:var(--ui-raised);color:var(--ui-text);font:inherit;font-size:var(--ui-fs-body);font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .12s,transform .08s}
html body .ui-btn:hover{background:var(--ui-border)}
html body .ui-btn:active{transform:scale(.98)}
html body .ui-btn-primary{background:var(--ui-accent);color:var(--ui-on-accent);font-weight:700}
html body .ui-btn-primary:hover{background:var(--ui-accent-ink)}
html body .ui-btn-soft{background:var(--ui-accent-soft);color:var(--ui-accent-ink)}
html body .ui-btn-soft:hover{background:var(--ui-active)}
html body .ui-btn-ghost{background:transparent;color:var(--ui-accent-ink);padding:0 10px}
html body .ui-btn-ghost:hover{background:var(--ui-accent-soft)}
html body .ui-btn-danger{background:var(--ui-negative-bg);color:var(--ui-negative-ink)}
html body .ui-btn-danger:hover{background:var(--ui-negative-bg);filter:brightness(.97)}
/* The screen's main action at full width (on a phone it is the thumb's button). */
html body .ui-btn-block{display:flex;width:100%;min-height:var(--ui-cta);font-size:var(--ui-fs-card)}
html body .ui-btn[disabled],html body .ui-btn[aria-disabled=true]{opacity:.45;cursor:not-allowed;transform:none}

/* ---- chip (filters, shops) and segmented toggle ------------------------------------ */
/* Chips wrap, so every shop stays in view; data-scroll keeps a long filter row on one line. */
html body .ui-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0}
html body .ui-chips[data-scroll]{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -4px;padding:2px 4px}
html body .ui-chips::-webkit-scrollbar{display:none}
html body .ui-chip{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:var(--ui-touch);padding:0 16px;border:0;border-radius:var(--ui-r-pill);background:var(--ui-raised);color:var(--ui-text);font:inherit;font-size:var(--ui-fs-small);font-weight:600;white-space:nowrap;cursor:pointer}
html body .ui-card .ui-chip{background:var(--ui-ground)}
html body .ui-chip[aria-pressed=true],html body .ui-chip[aria-current=true],html body .ui-card .ui-chip[aria-pressed=true]{background:var(--ui-text);color:var(--ui-surface)}
html body .ui-seg{display:inline-flex;max-width:100%;padding:4px;border-radius:var(--ui-r-control);background:var(--ui-raised);gap:4px}
html body .ui-seg>button,html body .ui-seg>label{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;min-height:var(--ui-touch);padding:0 16px;border:0;border-radius:calc(var(--ui-r-control) - 4px);background:transparent;color:var(--ui-muted);font:inherit;font-size:var(--ui-fs-small);font-weight:600;white-space:nowrap;cursor:pointer}
html body .ui-seg>label>input{position:absolute;opacity:0;pointer-events:none}
html body .ui-seg>button[aria-pressed=true],html body .ui-seg>label:has(input:checked){background:var(--ui-surface);color:var(--ui-text);font-weight:700}
@media(max-width:480px){html body .ui-seg{display:flex}}

/* ---- status pill (one per row) ---------------------------------------------------- */
html body .ui-badge{flex:none;display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:8px;background:var(--ui-raised);color:var(--ui-muted);font-size:var(--ui-fs-meta);font-weight:600;white-space:nowrap}
html body .ui-badge[data-tone=ok]{background:var(--ui-positive-bg);color:var(--ui-positive-ink)}
html body .ui-badge[data-tone=bad]{background:var(--ui-negative-bg);color:var(--ui-negative-ink)}
html body .ui-badge[data-tone=warn]{background:var(--ui-warning-bg);color:var(--ui-warning-ink)}
html body .ui-badge[data-tone=info]{background:var(--ui-accent-soft);color:var(--ui-accent-ink)}

/* ---- field: label above, help under, 16px input ----------------------------------- */
html body .ui-field{display:flex;flex-direction:column;gap:8px}
html body .ui-field+.ui-field{margin-top:18px}
html body .ui-label{font-size:var(--ui-fs-small);font-weight:600;color:var(--ui-muted)}
html body .ui-help{font-size:var(--ui-fs-meta);line-height:1.5;color:var(--ui-muted)}
html body .ui-input{width:100%;min-height:52px;padding:12px 16px;border:1px solid transparent;border-radius:var(--ui-r-control);background:var(--ui-raised);color:var(--ui-text);font:inherit;font-size:var(--ui-fs-body);font-weight:500}
html body .ui-input:focus{border-color:var(--ui-accent);background:var(--ui-surface);outline:0}
html body .ui-input::placeholder{color:var(--ui-faint);opacity:1}

/* ---- 자세히: secondary detail only, never an action the owner needs daily --------- */
html body .ui-details{border:0;border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:var(--card-edge)}
html body .ui-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--ui-row);padding:0 var(--ui-pad);font-size:var(--ui-fs-body);font-weight:600;color:var(--ui-text);cursor:pointer;list-style:none;border-radius:var(--ui-r-card)}
html body .ui-details>summary::-webkit-details-marker{display:none}
html body .ui-details>summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--ui-faint);border-bottom:2px solid var(--ui-faint);transform:rotate(45deg);margin:-4px 4px 0 0;transition:transform .15s}
html body .ui-details[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
html body .ui-details>.ui-details-body{padding:0 var(--ui-pad) var(--ui-pad)}

/* ---- notice: one quiet line about the whole screen --------------------------------- */
html body .ui-notice{margin:0;padding:14px 16px;border:0;border-radius:var(--ui-r-control);background:var(--ui-warning-bg);color:var(--ui-warning-ink);font-size:var(--ui-fs-small);font-weight:500;line-height:1.55}
html body .ui-notice[data-tone=info]{background:var(--ui-accent-soft);color:var(--ui-text)}

/* ---- empty / error / blocked / loading: inside its block, as polished as the main state */
html body .ui-state{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:24px var(--ui-pad);border:0;border-radius:var(--ui-r-card);background:var(--ui-surface);color:var(--ui-text)}
html body .ui-state-title{margin:0;font-size:var(--ui-fs-card);line-height:1.45;font-weight:700}
html body .ui-state-body{margin:0;font-size:var(--ui-fs-small);line-height:1.55;color:var(--ui-muted)}
html body .ui-state>.ui-btn{margin-top:12px}
html body .ui-state[data-kind=error]{background:var(--ui-negative-bg)}
html body .ui-state[data-kind=error] .ui-state-title{color:var(--ui-negative-ink)}
html body .ui-state[data-kind=error] .ui-btn{background:var(--ui-surface);color:var(--ui-text)}
html body .ui-state[data-kind=blocked]{background:var(--ui-warning-bg)}
html body .ui-state[data-kind=blocked] .ui-state-title{color:var(--ui-warning-ink)}
html body .ui-state[data-kind=blocked] .ui-btn{background:var(--ui-surface);color:var(--ui-text)}
/* Loading keeps the final layout: the title, then flat bars where the words will land. */
html body .ui-skeleton{display:block;width:100%;height:14px;border-radius:7px;background:var(--ui-raised)}
html body .ui-skeleton+.ui-skeleton{width:62%;margin-top:4px}
html body .ui-state[data-kind=loading] .ui-state-title{color:var(--ui-muted);font-weight:600}

/* ---- toast: what just happened, above the phone tab bar, one at a time ------------- */
html body .ui-toast-host{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:1000;display:flex;flex-direction:column;align-items:center;gap:8px;width:min(calc(100% - 32px),440px);transform:translateX(-50%);pointer-events:none}
@media(min-width:1000px){html body .ui-toast-host{bottom:24px}}
html body .ui-toast{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:14px 18px;border-radius:var(--ui-r-control);background:var(--ui-toast);color:var(--ui-on-toast);font-family:var(--ui-font);font-size:var(--ui-fs-small);font-weight:600;line-height:1.45;box-shadow:0 4px 14px rgba(0,0,0,.08);pointer-events:auto; /* taste-skill-ignore: the toast floats over the screen */animation:ui-toast-in .18s ease-out}
html body .ui-toast[data-tone=bad]{background:var(--ui-negative);color:#fff}
html[data-theme=dark] body .ui-toast[data-tone=bad]{background:var(--ui-negative-bg);color:var(--ui-negative-ink)}
@keyframes ui-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---- first-run checklist (new shops, on 상담 until setup is done) ----------------- */
html body .ui-checklist-progress{display:flex;align-items:center;gap:12px;margin:12px 0 8px;font-size:var(--ui-fs-meta);font-weight:600;color:var(--ui-muted);font-variant-numeric:tabular-nums}
html body .ui-checklist-track{flex:1;height:8px;border-radius:var(--ui-r-pill);background:var(--ui-raised);overflow:hidden}
html body .ui-checklist-fill{display:block;height:100%;border-radius:inherit;background:var(--ui-accent)}
html body .ui-check{position:relative;flex:none;width:28px;height:28px;border:2px solid var(--ui-control);border-radius:50%}
html body .ui-row[data-done=true] .ui-check{border-color:var(--ui-accent);background:var(--ui-accent)}
html body .ui-row[data-done=true] .ui-check::after{content:"";position:absolute;left:8px;top:4px;width:6px;height:11px;border-right:2.5px solid var(--ui-on-accent);border-bottom:2.5px solid var(--ui-on-accent);transform:rotate(45deg)}
html body .ui-row[data-done=true] .ui-row-title{color:var(--ui-muted)}

/* ---- owner_theme.css repaints every dark button and paragraph; components keep their own look.
   Same specificity as those rules, and this file loads after owner_theme.css, so these win. --- */
html[data-theme=dark] body button.ui-btn:not(.primary):not(.dark){background:var(--ui-raised);color:var(--ui-text);border-color:transparent}
html[data-theme=dark] body button.ui-btn-primary:not(.primary):not(.dark){background:var(--ui-accent);color:var(--ui-on-accent)}
html[data-theme=dark] body button.ui-btn-soft:not(.primary):not(.dark){background:var(--ui-accent-soft);color:var(--ui-accent-ink)}
html[data-theme=dark] body button.ui-btn-ghost:not(.primary):not(.dark){background:transparent;color:var(--ui-accent-ink)}
html[data-theme=dark] body button.ui-btn-danger:not(.primary):not(.dark){background:var(--ui-negative-bg);color:var(--ui-negative-ink)}
html[data-theme=dark] body .ui-state :is(button.ui-btn):not(.primary):not(.dark){background:var(--ui-surface);color:var(--ui-text)}
html[data-theme=dark] body button.ui-chip:not(.primary):not(.dark){background:var(--ui-raised);color:var(--ui-text);border-color:transparent}
html[data-theme=dark] body .ui-card button.ui-chip:not(.primary):not(.dark){background:var(--ui-ground)}
html[data-theme=dark] body button.ui-chip[aria-pressed=true]:not(.primary):not(.dark){background:var(--ui-text);color:var(--ui-surface)}
html[data-theme=dark] body .ui-seg>button:not(.primary):not(.dark){background:transparent;color:var(--ui-muted);border:0}
html[data-theme=dark] body .ui-seg>button[aria-pressed=true]:not(.primary):not(.dark){background:var(--ui-surface);color:var(--ui-text)}
html[data-theme=dark] body button.ui-row:not(.primary):not(.dark){background:transparent;color:var(--ui-text);border-color:transparent}
html[data-theme=dark] body :is(.ui-card-sub,.ui-lede,.ui-state-body,.ui-help,.ui-row-sub,.ui-shop-context-label,.ui-checklist-progress,.ui-section-title){color:var(--ui-muted)}
html[data-theme=dark] body :is(.ui-notice){color:var(--ui-warning-ink)}
html[data-theme=dark] body :is(.ui-notice[data-tone=info]){color:var(--ui-text)}
html[data-theme=dark] body :is(section.ui-card,details.ui-details){background:var(--ui-surface);border-color:transparent}
/* owner_theme.css paints every dark <section>/<details> as a navy panel; on a .ui-app page a plain one is just a group. */
html[data-theme=dark] body.ui-app :is(section,details):not(.ui-card):not(.ui-details){background:transparent;border-color:transparent}
html[data-theme=dark] body .ui-input.ui-input{background:var(--ui-raised)!important;border-color:transparent!important} /* taste-skill-ignore: owner_theme.css paints dark inputs with !important */

@media(prefers-reduced-motion:reduce){html body .ui-toast,html body .ui-details>summary::after,html body .ui-btn{animation:none;transition:none}}
html body :is(.ui-btn,.ui-chip,.ui-row,.ui-seg>button,.ui-details>summary,.ui-input):focus-visible{outline:3px solid var(--ui-accent);outline-offset:2px}

/* ---- simple settings pages: owner's pick 3번 (11-10, .ai-coordination/yeyakon_settings_options.html) ---------
   지점별 영업·휴무 / 알림 설정 / 지점별 관리사 put class="ui-app ui-settings-page" on <body>: cards (pick 2 below), one line
   per shop, the two choices as one [영업|휴무] track, and one wide yellow save at the bottom (#ffc800 with #111 words,
   light and dark). Markup, ids and scripts unchanged; T29 green 영업 / orange-red 휴무 still fill the chosen half. */
html[data-theme] body.ui-settings-page{--sp-save:#ffc800;--sp-save-ink:#111;font:var(--ui-fs-body)/1.55 var(--ui-font);background:var(--card-ground);color:var(--ui-text)}
html[data-theme=dark] body.ui-settings-page{background:var(--card-ground)}
html[data-theme] body.ui-settings-page>header{background:transparent;border-bottom:1px solid var(--ui-rule);padding:8px 16px;min-height:60px;display:flex;align-items:center}
html[data-theme] body.ui-settings-page>header>a{color:var(--ui-text);font-size:var(--ui-fs-small);font-weight:600;min-height:var(--ui-touch);display:inline-flex;align-items:center}
html[data-theme] body.ui-settings-page main{max-width:560px;margin:0 auto;padding:24px 16px 48px}
html[data-theme] body.ui-settings-page main h1{font-size:var(--ui-fs-title);line-height:1.3;font-weight:700;letter-spacing:-.02em;margin:0 0 8px;color:var(--ui-text)}
html[data-theme] body.ui-settings-page main h2{font-size:var(--ui-fs-card);font-weight:700;margin:var(--ui-section) 0 4px;color:var(--ui-text)}
html[data-theme] body.ui-settings-page main p{color:var(--ui-muted);font-size:var(--ui-fs-small);line-height:1.6;margin:0 0 8px}
html[data-theme] body.ui-settings-page main small,html[data-theme] body.ui-settings-page main .old{color:var(--ui-muted)}
/* Owner pick 2 (11-10 night "칸 구분이 잘 안돼 전체적으로", supersedes the card-less 설정 3번): each group is a white
   rounded card on the warm grey ground; rows inside keep their thin rules, the last one without. */
html[data-theme] body.ui-settings-page main .card{background:var(--card)!important;border:0;border-radius:var(--card-r);padding:4px 16px;margin:var(--card-gap) 0 0;box-shadow:var(--card-edge)}
html[data-theme] body.ui-settings-page main .card>.row:last-child,html[data-theme] body.ui-settings-page main .card>.branch:last-child{border-bottom:0}
html[data-theme] body.ui-settings-page main .row,html[data-theme] body.ui-settings-page main .branch{border-bottom:1px solid var(--ui-rule);padding:14px 0}
html[data-theme] body.ui-settings-page main label{color:var(--ui-text);font-size:var(--ui-fs-small);font-weight:600}
html[data-theme] body.ui-settings-page main input[type=text],html[data-theme] body.ui-settings-page main input[type=number],html[data-theme] body.ui-settings-page main input[type=date]{min-height:48px;border-radius:12px;border:1px solid transparent;background:var(--ui-raised);font-size:var(--ui-fs-body);color:var(--ui-text)}
html[data-theme] body.ui-settings-page main input[type=radio]{accent-color:var(--sp-save);width:20px;height:20px}
html[data-theme] body.ui-settings-page main button:not([aria-pressed=true]):not(.primary){min-height:var(--ui-touch);padding:8px 14px;border-radius:12px;border:1px solid transparent;background:var(--ui-raised);color:var(--ui-text);font:600 var(--ui-fs-small)/1.2 var(--ui-font)}
/* [영업|휴무] and the alert intervals: one raised track, the chosen half filled. */
html[data-theme] body.ui-settings-page main .branch>div,html[data-theme] body.ui-settings-page main .choices{display:inline-flex;gap:0;padding:3px;border-radius:12px;background:var(--ui-raised)}
html[data-theme] body.ui-settings-page main .branch>div>button:not([aria-pressed=true]):not(.primary),html[data-theme] body.ui-settings-page main .choices>button:not([aria-pressed=true]):not(.primary){min-width:62px;min-height:40px;border-radius:10px;background:transparent;color:var(--ui-muted)}
html[data-theme] body.ui-settings-page main .branch>div>button.pick[aria-pressed=true]:not(.primary):not(.dark){min-width:62px;min-height:40px;border-radius:10px;box-shadow:none;border:0;font:700 var(--ui-fs-small)/1.2 var(--ui-font)}
html[data-theme] body.ui-settings-page main .choices>button[aria-pressed=true]:not(.primary):not(.dark){min-width:62px;min-height:40px;border-radius:10px;border:0;background:var(--sp-save);color:var(--sp-save-ink);font:700 var(--ui-fs-small)/1.2 var(--ui-font)}
/* One wide yellow save at the bottom; 새로고침 is a small plain button under it. */
html[data-theme] body.ui-settings-page main .actions{display:flex;flex-direction:column-reverse;align-items:stretch;gap:10px;margin-top:20px}
html[data-theme] body.ui-settings-page main #save{width:100%;min-height:52px;border-radius:14px;border:0;background:var(--sp-save);color:var(--sp-save-ink);font:800 var(--ui-fs-card)/1.2 var(--ui-font)}
html[data-theme] body.ui-settings-page main #refresh:not([aria-pressed=true]):not(.primary){align-self:center;background:transparent;color:var(--ui-muted)}
html[data-theme] body.ui-settings-page main button:disabled{opacity:.45;cursor:default}
html[data-theme] body.ui-settings-page main button:focus-visible,html[data-theme] body.ui-settings-page main input:focus-visible{outline:3px solid var(--ui-accent);outline-offset:2px}
html[data-theme] body.ui-settings-page #status{color:var(--ui-muted);font-size:var(--ui-fs-small)}
/* 11-11 sweep: on a phone the 영업/휴무 and 다시 울리는 간격 segment buttons are 44px like every other tap target. */
@media(max-width:760px){html[data-theme] body.ui-settings-page main .branch>div>button:is([aria-pressed],:not([aria-pressed])):not(.primary):not(.dark),html[data-theme] body.ui-settings-page main .choices>button:is([aria-pressed],:not([aria-pressed])):not(.primary):not(.dark){min-height:44px}}
/* 11-11 (YR95 "흰 바탕 + 노랑, 회색 판 금지"): light controls are white with the shared control line (#dedbd2), never a grey
   fill; a chosen one keeps its own yellow/black. Dark keeps its filled controls. */
html[data-theme]:not([data-theme=dark]) body :is(.ui-btn:not(.primary):not(.dark):not([aria-pressed=true]),.ui-chip:not([aria-pressed=true]),.ui-input,.ui-badge){background:var(--ui-surface);border:1px solid var(--ui-control)}
html[data-theme]:not([data-theme=dark]) body .ui-seg{background:var(--ui-surface);border:1px solid var(--ui-control)}
html[data-theme]:not([data-theme=dark]) body.ui-settings-page main input[type=text],html[data-theme]:not([data-theme=dark]) body.ui-settings-page main input[type=number],html[data-theme]:not([data-theme=dark]) body.ui-settings-page main input[type=date]{background:var(--ui-surface);border-color:var(--ui-control)}
html[data-theme]:not([data-theme=dark]) body.ui-settings-page main button:not([aria-pressed=true]):not(.primary):not(.dark){background:var(--ui-surface);border-color:var(--ui-control)}
html[data-theme]:not([data-theme=dark]) body.ui-settings-page main .branch>div,html[data-theme]:not([data-theme=dark]) body.ui-settings-page main .choices{background:var(--ui-surface);box-shadow:inset 0 0 0 1px var(--ui-control)}
html[data-theme]:not([data-theme=dark]) body.ui-settings-page main .branch>div>button:not([aria-pressed=true]):not(.primary):not(.dark),html[data-theme]:not([data-theme=dark]) body.ui-settings-page main .choices>button:not([aria-pressed=true]):not(.primary):not(.dark){border-color:transparent}

