/* 회원(가맹점) 화면 2안 — 휴대폰 웹. 레퍼런스: 토스 TDS · 당근 SEED(글자 단계) · Buffer/Publer/Later(자동 게시)
 * 흰 바탕 전체 폭 목록 + 회색 띠로 섹션을 나눈다. 테두리 카드 · 번호 동그라미 · 알약 칩 · 이모지는 쓰지 않는다.
 * 글자 크기는 13 · 14 · 15 · 16 · 17 · 18 · 20 · 24 만, 굵기는 400 · 500 · 700 만.
 * 색은 바탕 · 글자 · 강조(도장 블루) 셋. 상태는 글자색으로만. 주요 동작은 화면 아래 큰 버튼 하나. */
:root {
  --bg: #ffffff;
  --band: #f2f4f6;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --ink-4: #b0b8c1;
  --line: #e5e8eb;
  --accent: #2f6fed;
  --accent-press: #2559c9;
  --accent-soft: #e9f0fe;
  --red: #e03e2f;
  --red-soft: #fdeeec;
  --orange: #e07b00;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard NX", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  /* 모션 — 들어오고 나가는 건 강한 ease-out, 시트는 iOS 서랍 곡선. UI 는 300ms 안쪽 */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; word-break: keep-all; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 화면 틀: 휴대폰 폭 한 줄(큰 화면에서는 가운데) */
#app { width: min(100%, 480px); margin: 0 auto; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
@media (min-width: 520px) { body { background: var(--band); } #app { box-shadow: 0 0 0 1px var(--line); } }
.view { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* 위 막대 */
.nav { position: sticky; top: 0; z-index: 20; height: calc(52px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0; display: flex; align-items: center; background: var(--bg); }
.nav--band { background: var(--band); }
.nav__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.nav__title { position: absolute; left: 64px; right: 64px; bottom: 0; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; pointer-events: none; }
.nav__brand { padding-left: 14px; font-size: 18px; font-weight: 700; }
.nav__right { margin-left: auto; height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.nav__right--accent { color: var(--accent); font-weight: 700; }
.demo { margin-left: auto; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.big-title { padding: 8px 20px 16px; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.big-title small { display: block; margin-top: 4px; font-size: 16px; line-height: 22px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

/* 섹션 */
.band { height: 10px; background: var(--band); flex: none; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 8px; }
.sec-h b { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.sec-h .more { display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-3); }
.sec-h .more svg { width: 16px; height: 16px; }
.hint { padding: 0 20px; font-size: 14px; line-height: 20px; color: var(--ink-3); }

/* 목록 행 */
.row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 20px; min-height: 60px; text-align: left; }
.row + .row { box-shadow: inset 20px 1px 0 var(--bg), inset 0 1px 0 var(--line); }
.row { transition: background-color 120ms ease; }
.row:active { background: var(--band); }
.opt, .day, .tpl, .tab, .strip > button, .tpl-row button, .next, .choice, .check-row, .nav__btn, .result { transition: transform 120ms var(--ease-out), background-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.opt:active, .day:active, .tpl:active, .tab:active, .strip > button:active, .tpl-row button:active, .next:active, .nav__btn:active, .result:active { transform: scale(0.96); }
.row__thumb { width: 52px; height: 65px; border-radius: 8px; background: var(--band) center / cover; flex: none; }
.row__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--band); display: grid; place-items: center; flex: none; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.row__ic svg { width: 22px; height: 22px; }
.row__body { flex: 1; min-width: 0; }
.row__t { font-size: 17px; line-height: 24px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__s { margin-top: 2px; font-size: 14px; line-height: 19px; color: var(--ink-3); }
.row__end { flex: none; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.row__end svg { width: 18px; height: 18px; color: var(--ink-4); }
.t-accent { color: var(--accent) !important; } .t-red { color: var(--red) !important; } .t-orange { color: var(--orange) !important; } .t-ink { color: var(--ink) !important; }

/* 스위치 */
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--accent); position: relative; flex: none; transition: background-color 220ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transform: translateX(20px); transition: transform 220ms var(--ease-out); }
.switch[aria-checked="false"] { background: #d1d6db; }
.switch[aria-checked="false"]::after { transform: translateX(0); }

/* 버튼 */
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: min(100%, 480px); margin: 0 auto; padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(255, 255, 255, 0), var(--bg) 18px); }
.btn { width: 100%; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; }
.btn { transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.btn:active { background: var(--accent-press); transform: scale(0.97); }
.btn:disabled { background: #d1d6db; color: #fff; }
.btn--sub { background: var(--band); color: var(--ink); }
.btn--sub:active { background: var(--line); }
.btn--sm { height: 40px; width: auto; padding: 0 14px; border-radius: 10px; font-size: 15px; }
.text-btn { display: block; width: 100%; padding: 14px 0 2px; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.link { color: var(--accent); font-weight: 700; }

/* 아래 탭 */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: min(100%, 480px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tab { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-4); }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--ink); }

/* 알림 띠(연결 끊김) */
.alert { margin: 4px 20px 6px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft); display: flex; gap: 12px; align-items: flex-start; }
.alert svg { color: var(--red); margin-top: 1px; width: 22px; height: 22px; }
.alert b { display: block; font-size: 16px; line-height: 22px; }
.alert span { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.alert a { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--red); }

/* 다음 게시 */
.next { margin: 4px 20px 0; padding: 14px; border-radius: 16px; background: var(--band); display: flex; gap: 14px; align-items: center; text-align: left; width: calc(100% - 40px); }
.next__img { width: 72px; height: 90px; border-radius: 10px; background: var(--line) center / cover; flex: none; }
.next__k { font-size: 14px; font-weight: 700; color: var(--accent); }
.next__t { margin-top: 2px; font-size: 18px; line-height: 24px; font-weight: 700; }
.next__s { margin-top: 3px; font-size: 14px; line-height: 19px; color: var(--ink-2); }

/* 사진 대기열 */
.queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 20px 0; }
.queue > * { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--band) center / cover; overflow: hidden; }
.queue span { position: absolute; left: 6px; bottom: 5px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.queue .add { display: grid; place-items: center; color: var(--ink-3); }

/* 단계 화면 */
.progress { height: 3px; margin: 0 20px; border-radius: 2px; background: var(--line); }
.progress i { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: left center; transition: transform 300ms var(--ease-in-out); }
.choice { width: 100%; display: flex; gap: 14px; padding: 18px 20px; align-items: flex-start; text-align: left; }
.choice + .choice { box-shadow: inset 0 1px 0 var(--line); }
.radio { width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; border: 2px solid #c5ccd3; flex: none; transition: border-width 180ms var(--ease-out), border-color 180ms ease; }
.choice[aria-checked="true"] .radio { border: 7px solid var(--accent); }
.choice b { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.choice p { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.choice .eg { display: flex; gap: 6px; margin-top: 10px; }
.choice .eg i { width: 44px; height: 55px; border-radius: 6px; background: var(--band) center / cover; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 4px 20px 8px; }
.day { height: 46px; border-radius: 12px; background: var(--band); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.field-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 17px; }
.field-row input[type="time"] { border: 0; font-size: 17px; font-weight: 700; color: var(--ink); background: none; text-align: right; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 4px 20px; }
.tpl { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tpl .card { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow 180ms var(--ease-out); }
.tpl[aria-pressed="true"] .card { box-shadow: 0 0 0 3px var(--accent); }
.tpl b { font-size: 16px; font-weight: 700; }
.tpl span { font-size: 14px; color: var(--ink-3); margin-top: -6px; }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 8px; padding: 6px 20px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.input { width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--band); font-size: 17px; line-height: 24px; resize: none; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #fff; }
textarea.input { min-height: 120px; }
.count { font-size: 13px; color: var(--ink-3); text-align: right; }

/* 편집기 */
.ed { flex: 1; display: flex; flex-direction: column; background: var(--band); }
.ed-tabs { display: flex; justify-content: center; gap: 24px; padding: 2px 0 10px; }
.ed-tabs button { padding-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; }
.ed-tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.ed-stage { padding: 4px 40px 12px; }
.ed-stage .card { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); border-radius: 6px; }
.strip { display: flex; justify-content: center; gap: 8px; padding: 2px 20px 16px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > button { width: 46px; height: 58px; border-radius: 6px; background: #c8ced4 center / cover; flex: none; opacity: 0.55; position: relative; }
.strip > button[aria-current="true"] { opacity: 1; outline: 2.5px solid var(--ink); outline-offset: 2px; }
.strip > .add { background: #e1e5e9; display: grid; place-items: center; color: var(--ink-3); opacity: 1; }
.strip > button b { position: absolute; left: 3px; top: 3px; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 4px; }
.ed-list { background: var(--bg); }
.tip { padding: 0 20px 14px; font-size: 14px; color: var(--ink-3); text-align: center; }
.kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; width: min(100%, 480px); margin: 0 auto; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: flex-end; }
.kb textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--accent); font-size: 17px; line-height: 22px; resize: none; }
.kb textarea:focus { outline: none; }
.kb button { height: 44px; padding: 0 14px; border-radius: 10px; background: var(--band); font-size: 15px; font-weight: 700; }
.kb .done { background: var(--ink); color: #fff; }
.kb { animation: kb-in 220ms var(--ease-out); }
@keyframes kb-in { from { transform: translateY(100%); } }

/* 인스타 · 스레드 모양 미리보기 */
.ig { margin: 0 20px 12px; background: #fff; border-radius: 12px; overflow: hidden; color: #111; font-size: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.ig__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.ig__name { flex: 1; font-weight: 700; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > .card { flex: none; scroll-snap-align: center; border-radius: 0; }
.ig__icons { display: flex; gap: 16px; padding: 10px 12px 4px; }
.ig__icons svg { width: 24px; height: 24px; stroke-width: 1.8; }
.ig__icons .push { margin-left: auto; }
.ig__cap { padding: 2px 12px 12px; white-space: pre-line; }
.ig__cap b { margin-right: 5px; }
.ig__cap span { color: #8e8e8e; }
.grid-head { display: flex; align-items: center; gap: 14px; padding: 12px; }
.grid-head .avatar { width: 56px; height: 56px; font-size: 20px; }
.grid-head__n { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }
.grid-head__n b { display: block; font-size: 16px; color: var(--ink); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid > div { aspect-ratio: 3 / 4; background: #ddd center / cover; position: relative; overflow: hidden; }
.ig-grid > .is-new::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); pointer-events: none; }
.ig-grid > .is-new .card { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.th { margin: 0 20px 12px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px 12px; background: #fff; border-radius: 12px; color: #111; font-size: 15px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.th .avatar { width: 36px; height: 36px; }
.th__name { font-weight: 700; } .th__name span { margin-left: 6px; font-weight: 400; color: #999; }
.th__text { margin: 3px 0 10px; white-space: pre-line; }
.th__imgs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.th__imgs .card { flex: none; width: 60%; border-radius: 10px; }

/* AI 이미지 */
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 20px 6px; }
.opt { height: 52px; border-radius: 12px; background: var(--band); font-size: 15px; font-weight: 500; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.opt i { border: 1.8px solid currentColor; border-radius: 2px; }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.tpl-row { display: flex; gap: 8px; padding: 4px 20px; overflow-x: auto; scrollbar-width: none; }
.tpl-row::-webkit-scrollbar { display: none; }
.tpl-row button { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--band); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.tpl-row button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.refs { display: flex; gap: 8px; align-items: center; padding: 8px 20px 0; }
.refs i { width: 52px; height: 52px; border-radius: 10px; background: var(--band) center / cover; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 20px; }
.result { position: relative; border-radius: 12px; overflow: hidden; background: var(--band) center / cover; }
.result.r-11 { aspect-ratio: 1; } .result.r-45 { aspect-ratio: 4 / 5; } .result.r-916 { aspect-ratio: 9 / 16; } .result.r-169 { aspect-ratio: 16 / 9; }
.result .check { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.25); display: grid; place-items: center; color: #fff; }
.result .check svg { width: 16px; height: 16px; stroke-width: 3; }
.result[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent); }
.result[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); }

/* 내 정보 */
.me-head { display: flex; align-items: center; gap: 14px; padding: 8px 20px 20px; }
.me-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.me-head b { display: block; font-size: 20px; line-height: 27px; }
.me-head span { font-size: 14px; color: var(--ink-3); }
.usage { padding: 4px 20px 0; }
.usage__n { font-size: 24px; line-height: 32px; font-weight: 700; } .usage__n small { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.bar { height: 8px; margin-top: 10px; border-radius: 4px; background: var(--band); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* 로그인 */
.login { flex: 1; display: flex; flex-direction: column; padding: calc(56px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.login__mark { width: 52px; height: 52px; margin: 0 20px 22px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.login h1 { padding: 0 20px; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.login p { padding: 6px 20px 26px; font-size: 16px; line-height: 22px; color: var(--ink-2); }

/* 바텀 시트 */
.dim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.4); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 240ms ease; }
.dim.is-open { opacity: 1; }
.sheet { width: min(100%, 480px); max-height: 90dvh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 24px 0 calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform 320ms var(--ease-drawer); }
.dim.is-open .sheet { transform: translateY(0); }
.dim.is-closing { transition-duration: 200ms; }
.dim.is-closing .sheet { transition-duration: 220ms; transition-timing-function: var(--ease-out); }
.sheet h3 { padding: 0 20px; font-size: 20px; line-height: 27px; font-weight: 700; }
.sheet .sheet__p { padding: 8px 20px 12px; font-size: 16px; line-height: 23px; color: var(--ink-2); }
.sheet__foot { padding: 12px 20px 0; }
.check-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-align: left; }
.check-box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #c5ccd3; display: grid; place-items: center; flex: none; color: #fff; transition: background-color 150ms ease, border-color 150ms ease; }
.check-box svg { width: 16px; height: 16px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.check-row[aria-checked="true"] .check-box { background: var(--accent); border-color: var(--accent); }
.check-row[aria-checked="true"] .check-box svg { opacity: 1; transform: scale(1); }
.check-row[aria-disabled="true"] { opacity: 0.45; }
.steps-run { list-style: none; margin: 0; padding: 14px 20px 4px; display: flex; flex-direction: column; gap: 14px; }
.steps-run li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink-3); }
.steps-run li.on, .steps-run li.done { color: var(--ink); }
.steps-run i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.steps-run li.on i { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps-run li.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps-run li.done i svg { width: 14px; height: 14px; stroke-width: 3; }
.done-hero { padding: 6px 20px 4px; text-align: center; }
.done-hero .ok { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.done-hero .ok svg { width: 30px; height: 30px; stroke-width: 2.6; }
.done-hero .ok { animation: pop 360ms var(--ease-out); }
.done-hero .ok svg { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 320ms var(--ease-out) 160ms forwards; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-hero p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

#toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 60; max-width: calc(100% - 40px); transform: translate(-50%, -8px); padding: 12px 18px; border-radius: 12px; background: rgba(25, 31, 40, 0.92); color: #fff; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 240ms var(--ease-out); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .opt:active, .day:active, .tpl:active, .tab:active, .strip > button:active, .tpl-row button:active, .next:active, .nav__btn:active, .result:active { transform: none; }
  .sheet, .dim.is-open .sheet { transform: none; transition: none; }
  .kb, .done-hero .ok { animation: none; }
  .done-hero .ok svg { animation: none; stroke-dashoffset: 0; }
  .switch::after, .progress i, #toast { transition-property: opacity, background-color; }
  .steps-run li.on i { animation-duration: 1.6s; }
}
