/* Orbis 올인원 가이드 — v2
   Toss TDS patterns: grey page + white cards, list rows, tabs, segmented control, bottom sheet.
   Tokens follow the Orbis help center (Toss grey ramp + #164492 + Wanted Sans Variable). */

:root {
  color-scheme: light;
  --grey-50: #f9fafb; --grey-100: #f2f4f6; --grey-200: #e5e8eb; --grey-300: #d1d6db; --grey-400: #b0b8c1;
  --grey-500: #8b95a1; --grey-600: #6b7684; --grey-700: #4e5968; --grey-800: #333d4b; --grey-900: #191f28;
  --page: #f2f4f6; --card: #fff; --line: #e5e8eb; --line-soft: #f2f4f6;
  --ink: #191f28; --ink-2: #333d4b; --body: #4e5968; --muted: #6b7684;
  --primary: #164492; --primary-hover: #12397a; --primary-pressed: #0f3066; --primary-soft: #edf2f9; --primary-weak: #c5d3eb;
  --warn: #c2410c; --warn-ink: #9a3412; --warn-soft: #fff4ec;
  --o-100: rgba(2, 32, 71, .05); --o-200: rgba(0, 27, 55, .1);
  --shadow-coach: 0 0 24px rgba(2, 32, 71, .05), 0 2px 16px -4px rgba(0, 29, 58, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --gutter: 20px;
  --r-card: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 450; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ol, ul, figure, dl { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.nw { white-space: nowrap; }

/* ───────── atoms ───────── */
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink-2); transition: background-color .15s, transform .13s; }
.icon-btn .icon { font-size: 22px; }
.icon-btn:active { transform: scale(.94); background: var(--o-200); }
@media (hover: hover) { .icon-btn:hover { background: var(--o-100); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 20px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 16.5px; font-weight: 600; transition: background-color .15s, transform .13s; }
.btn:active { transform: scale(.97); background: var(--primary-pressed); }
.btn--soft { background: var(--grey-100); color: var(--ink-2); }
.btn--soft:active { background: var(--grey-200); }
.btn--block { width: 100%; }
@media (hover: hover) { .btn:hover { background: var(--primary-hover); } .btn--soft:hover { background: var(--grey-200); } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: rgba(25, 31, 40, .92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: opacity .25s, transform .35s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.rv { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.page { animation: fade-in .3s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ───────── cards & list rows (TDS ListHeader / ListRow) ───────── */
.card { background: var(--card); border-radius: var(--r-card); padding: 6px 0 8px; }
.card + .card, .card + .scard, .scard + .card { margin-top: 12px; }
.card__head { padding: 20px 24px 8px; }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; color: var(--ink); }
.card__sub { margin-top: 2px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.lrows { padding: 0 8px; }
.lrow { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px; border-radius: 16px; text-align: left; transition: background-color .15s, transform .13s; }
.lrow + .lrow::before { content: ""; position: absolute; top: 0; left: 70px; right: 16px; height: 1px; background: var(--line-soft); transition: opacity .15s; }
.lrow:active { transform: scale(.985); background: var(--grey-100); }
.lrow:active::before, .lrow:active + .lrow::before { opacity: 0; }
@media (hover: hover) {
  .lrow:hover { background: var(--grey-50); }
  .lrow:hover::before, .lrow:hover + .lrow::before { opacity: 0; }
  .lrow:hover .lrow__chev { transform: translateX(2px); color: var(--grey-600); }
}
.lrow__t { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); }
.lrow__s { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.lrow__chev { color: var(--grey-400); font-size: 20px; transition: transform .2s var(--ease-out), color .15s; }
.lrow__tag { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.lrow__tag .icon { font-size: 18px; color: var(--grey-400); }

.lrows--sep { position: relative; padding-top: 6px; }
.lrows--sep::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line-soft); }
.lrow__s--k { margin: 0 0 1px; font-size: 13px; font-weight: 600; }
.lrow--plain { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; }
.lrow--plain + .lrow--plain::before { left: 16px; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grey-100); color: var(--grey-700); flex: none; }
.ico .icon { font-size: 21px; }
.ico--brand { background: var(--primary-soft); color: var(--primary); }
.ico--kakao { background: #fee500; color: #191919; }

/* hub: sign-up → first trade as one connected line, no step numbers */
.flow { padding: 0 8px 8px; }
.flow__i { position: relative; }
.flow__i:not(:last-child)::after { content: ""; position: absolute; left: 35px; top: calc(50% + 24px); height: calc(100% - 48px); width: 2px; border-radius: 2px; background: var(--primary-weak); pointer-events: none; }
.flow__dot { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.flow__dot .icon { font-size: 20px; }
.flow__i:last-child .flow__dot { background: var(--primary); color: #fff; }

/* ───────── HUB ───────── */
.wrap { max-width: 600px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
/* silk backdrop from v1: full-bleed band behind the hub top, fading into the page.
   Positioned against the initial containing block (no positioned ancestor), so it spans the viewport minus the scrollbar. */
.hub-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 560px; z-index: -1;
  background: #e7f8fd url(../img/brand/silk.webp) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.icon-btn--glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(13, 25, 74, .05); }
@media (hover: hover) { .icon-btn--glass:hover { background: rgba(255, 255, 255, .92); } }
.hub-top { display: flex; align-items: center; justify-content: flex-end; height: 56px; margin-right: -8px; }
.id { text-align: center; padding: 12px 0 36px; }
.id__ring { width: 108px; height: 108px; margin: 0 auto 20px; border-radius: 50%; background: #fff; padding: 10px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .5), 0 16px 32px -12px rgba(22, 68, 146, .4); }
.id__ring img { width: 100%; height: 100%; }
.id__name { font-size: clamp(25px, 6.6vw, 32px); font-weight: 750; letter-spacing: -.03em; line-height: 1.3; }

.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 16px; }
@media (min-width: 560px) { .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--grey-100); transition: background-color .15s, transform .13s, box-shadow .15s; }
.tile .ico { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 23, 51, .08); }
.tile .ico .icon { font-size: 18px; }
.tile__t { font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); }
.tile:active { transform: scale(.97); background: var(--grey-100); }
@media (hover: hover) { .tile:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--primary-weak), 0 6px 18px -8px rgba(0, 29, 58, .2); } }
@media (min-width: 560px) { .tile { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 100px; padding: 14px; } }

.dtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 16px; }
.dtile { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--grey-100); text-align: left; transition: background-color .15s, transform .13s, box-shadow .15s; }
.dtile__ic { width: 52px; height: 52px; margin-bottom: 12px; filter: drop-shadow(0 6px 10px rgba(0, 29, 58, .14)); }
.dtile__t { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); }
.dtile__s { margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dtile__cta { margin-top: 14px; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background-color .15s, color .15s; }
.dtile__cta .icon { font-size: 17px; }
.dtile:active { transform: scale(.97); }
@media (hover: hover) { .dtile:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--primary-weak), 0 6px 18px -8px rgba(0, 29, 58, .2); } .dtile:hover .dtile__cta { background: var(--primary); color: #fff; box-shadow: none; } }

/* footer: its own full-width band below the cards */
.foot { margin-top: 40px; padding: 28px max(var(--gutter), env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: #fff; border-top: 1px solid var(--line); color: var(--grey-600); font-size: 12.5px; line-height: 1.7; }
.foot__in { max-width: 600px; margin: 0 auto; padding: 0 8px; }
.foot--wide .foot__in { max-width: 800px; padding: 0 4px; }
.foot__mark { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--grey-700); }
.foot__mark img { width: 20px; height: 20px; }
.foot p + p { margin-top: 8px; }
.foot b { color: var(--grey-700); font-weight: 650; }
.foot details { margin-top: 10px; }
.foot summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--grey-700); }
.foot summary::-webkit-details-marker { display: none; }
.foot summary .icon { transition: transform .35s var(--ease-out); }
.foot details[open]:not(.is-closing) summary .icon { transform: rotate(180deg); }
.foot details p { margin-top: 8px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.foot__links a { font-weight: 600; color: var(--grey-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey-300); }

/* ───────── GUIDE ───────── */
/* guide pages: the hub's silk band, a shade deeper, behind the title area */
.gbg {
  position: absolute; left: 0; right: 0; top: 0; height: 440px; z-index: -1;
  background: linear-gradient(rgba(22, 68, 146, .1), rgba(22, 68, 146, .1)), #dbeef8 url(../img/brand/silk.webp) center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 38%, transparent);
  mask-image: linear-gradient(#000 38%, transparent);
}
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 rgba(0, 27, 55, .07); }
.topbar__in { max-width: 800px; margin: 0 auto; height: 64px; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar__back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 14px 0 6px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink-2); transition: background-color .15s; }
.topbar__back .icon { font-size: 24px; }
.topbar__back:active { background: var(--o-200); }
@media (hover: hover) { .topbar__back:hover { background: var(--o-100); } }
.topbar__title { font-size: 18px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.topbar .icon-btn { justify-self: end; width: 44px; height: 44px; }
.topbar .icon-btn .icon { font-size: 24px; }

.gwrap { max-width: 800px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
/* page hero: centred eyebrow + heading + selectors, set apart from the content below */
.ghead { padding: 40px 4px 32px; text-align: center; }
.ghead__eb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .74); box-shadow: inset 0 0 0 1px rgba(22, 68, 146, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--primary); font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.ghead__eb .icon { font-size: 16px; }
.ghead h1 { margin: 14px auto 0; max-width: 20em; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.32; font-weight: 750; letter-spacing: -.03em; text-wrap: balance; }
.ghead__lead { margin: 10px auto 0; max-width: 34em; font-size: 16.5px; color: var(--grey-700); line-height: 1.6; text-wrap: pretty; }
/* selectors: equal-width switches side by side, centred under the heading */
.pick { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 10px; width: 100%; max-width: calc(var(--n, 1) * 236px + (var(--n, 1) - 1) * 10px); margin: 26px auto 0; }
.pick .seg { display: flex; width: 100%; }
.pick .seg__btn { flex: 1 1 0; padding: 0 10px; }

/* collapsible info rows (준비할 것 / 입금 조건 / 계좌 유형) */
.info { padding: 0 8px; }
.info details { position: relative; }
.info details + details::before { content: ""; position: absolute; top: 0; left: 68px; right: 16px; height: 1px; background: var(--line-soft); }
.info summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 68px; padding: 12px 16px; border-radius: 16px; transition: background-color .15s; }
.info summary::-webkit-details-marker { display: none; }
.info summary b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.info summary small { display: block; margin-top: 1px; font-size: 13.5px; color: var(--muted); font-weight: 450; line-height: 1.45; }
.info summary > .icon { color: var(--grey-400); font-size: 20px; transition: transform .35s var(--ease-out); }
.info details[open]:not(.is-closing) summary > .icon { transform: rotate(180deg); }
.info summary:active { background: var(--grey-100); }
@media (hover: hover) { .info summary:hover { background: var(--grey-50); } }
.info__body { padding: 2px 16px 18px 70px; font-size: 15px; color: var(--body); line-height: 1.65; }
.info__body li { position: relative; padding-left: 12px; }
.info__body li + li { margin-top: 5px; }
.info__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-400); }
.info__body h4 { margin: 14px 0 4px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.info__body h4:first-child { margin-top: 0; }
.info__body b { color: var(--ink-2); font-weight: 650; }
.info__body p + p, .info__body p + ul { margin-top: 4px; }
.info__body--wide { padding-left: 16px; }
.info__cap { margin-top: 8px; font-size: 13px; color: var(--muted); }
.info__body a { color: var(--primary); font-weight: 600; }
.atypes { display: grid; gap: 8px; }
@media (min-width: 640px) { .atypes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.atype { padding: 12px 14px; border-radius: 14px; background: var(--grey-50); }
.atype > b { display: block; margin-bottom: 6px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.atype .kv { grid-template-columns: 60px minmax(0, 1fr); font-size: 14px; line-height: 1.55; gap: 4px 12px; }
.atype .kv dt { font-size: 13px; }
.atype .kv dd { font-weight: 500; color: var(--body); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.kv dd { margin: 0; color: var(--ink-2); font-weight: 550; }
.tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tbl .na { color: var(--grey-500); }

/* topic tabs: underline tabs sitting on the page, with a hairline only as wide as the content.
   A glass bar (like the top bar) appears only once they stick under it. */
.controls { position: sticky; top: 64px; z-index: 30; transition: background-color .2s, box-shadow .2s; }
.controls__in { max-width: 800px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.controls.is-stuck { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 rgba(0, 27, 55, .07); }
.tabs { position: relative; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 rgba(0, 27, 55, .1); }
.controls.is-stuck .tabs { box-shadow: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__in { position: relative; display: flex; width: max-content; margin: 0 auto; padding: 0 6px; }
.tab { flex: none; height: 56px; padding: 0 14px; font-size: 16px; font-weight: 650; letter-spacing: -.02em; color: var(--grey-600); white-space: nowrap; transition: color .15s; }
.tab[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { color: var(--grey-800); } }
.tabs__bar { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transition: transform .3s var(--ease-out), width .3s var(--ease-out); }
/* pill switch (MT5/MT4, PC/모바일): navy thumb on a white glass track */
.seg { position: relative; display: inline-flex; flex: none; height: 46px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 1px rgba(0, 27, 55, .08), 0 2px 8px -4px rgba(0, 29, 58, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--primary); box-shadow: 0 6px 14px -6px rgba(22, 68, 146, .6); transition: transform .3s var(--ease-out), width .3s var(--ease-out); }
.seg__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--grey-600); white-space: nowrap; transition: color .2s; }
.seg__btn .icon { font-size: 17px; }
.seg__btn img { width: 20px; height: 20px; margin-left: -4px; }
.seg__btn[aria-pressed="true"] { color: #fff; }
.seg__btn:disabled { color: var(--grey-400); cursor: not-allowed; }
@media (hover: hover) { .seg__btn:not([aria-pressed="true"]):not(:disabled):hover { color: var(--ink); } }
.tab:focus-visible, .seg__btn:focus-visible { outline-offset: -2px; }

.vlead { margin: 18px 4px 0; font-size: 16px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.vlead b { color: var(--ink-2); font-weight: 650; }
.notice { margin-top: 12px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 14px 18px; border-radius: 18px; background: #fff; color: var(--grey-700); font-size: 14.5px; line-height: 1.6; }
.notice .icon { margin-top: 3px; color: var(--grey-500); font-size: 18px; }
.notice b { color: var(--ink-2); font-weight: 650; }
.notice--warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice--warn .icon { color: var(--warn); }

/* one-click trading switch (TDS ListRow + Switch) */
.ocrow { margin-top: 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px 14px 16px; border-radius: 20px; background: #fff; }
.ocrow b { display: block; font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.ocrow small { display: block; margin-top: 1px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--grey-300); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease-out); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* MT4 guide placeholder */
.empty { margin-top: 16px; padding: 36px 24px 30px; text-align: center; }
.empty img { width: 64px; height: 64px; margin: 0 auto 14px; }
.empty h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
.empty p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.empty .btn { margin-top: 20px; }

/* intro card: what the chosen topic/method is about, with its icon */
.intro { margin-top: 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 20px 16px 16px; border-radius: 20px; background: #fff; }
.intro p { font-size: 15.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.intro b { color: var(--ink-2); font-weight: 650; }
/* install topic: file or store buttons across the intro card; two side by side only when both labels fit */
.dlbtns { grid-column: 1 / -1; margin-right: -4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); gap: 8px; }

/* 주문하기: order type picker boxes */
.otypes { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.otypes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.otypes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .otypes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.otype { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background-color .15s, transform .13s; }
.otype__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grey-100); color: var(--grey-600); transition: background-color .15s, color .15s; }
.otype__ic .icon { font-size: 17px; }
.otype b { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); }
.otype[aria-checked="true"] { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.otype[aria-checked="true"] .otype__ic { background: var(--primary); color: #fff; }
.otype:active { transform: scale(.98); }
@media (hover: hover) { .otype:not([aria-checked="true"]):hover { box-shadow: inset 0 0 0 1px var(--grey-400); } }

/* "이런 경우엔?" — other situations around the same screen, folded at the bottom of a step */
.more { margin-top: 18px; border-radius: 18px; background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--grey-100); }
.more summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; transition: background-color .15s; }
.more summary::-webkit-details-marker { display: none; }
.more__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(0, 23, 51, .06); }
.more__ic .icon { font-size: 18px; }
.more summary b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; color: var(--ink); }
.more summary small { display: block; font-size: 13px; color: var(--muted); }
.more summary > .icon { color: var(--grey-400); font-size: 20px; transition: transform .35s var(--ease-out); }
.more[open]:not(.is-closing) summary > .icon { transform: rotate(180deg); }
@media (hover: hover) { .more summary:hover { background: var(--grey-100); } }
.more__body { padding: 0 16px 16px 60px; }
.case + .case { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-200); }
.case__t { font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.45; color: var(--ink); }
.case__d { margin-top: 3px; font-size: 14.5px; line-height: 1.65; color: var(--body); }
.case__d b { color: var(--ink-2); font-weight: 650; }
.case__img { margin-top: 10px; width: auto; max-width: min(100%, 420px); height: auto; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 27, 55, .08); }
@media (max-width: 420px) { .more__body { padding-left: 16px; } }

/* short tutorial clip recorded from the real terminal */
.vcard { margin-top: 16px; padding: 14px; border-radius: 20px; background: #fff; }
.vcard__head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 2px 6px 12px 2px; }
.vcard__head b { display: block; font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.vcard__frame { overflow: hidden; border-radius: 14px; background: #0b0f17; aspect-ratio: 16 / 9; }
.vcard video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* a re-typed table that only phones need (next to a wide screenshot) */
.m-only { display: none; }
@media (max-width: 600px) { .m-only { display: block; } }

/* step cards */
.vwrap { min-height: 40vh; position: relative; }
.vwrap:focus { outline: 0; }

/* side rail (wide screens): the steps of the open topic; the one being read is marked, a click scrolls to it */
.tocwrap { position: relative; }
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: block; position: absolute; top: 12px; bottom: 0; right: calc(100% + 28px); width: 212px; }
  .toc__in { position: sticky; top: calc(var(--sticky-top, 64px) + var(--controls-h, 0px) + 20px); max-height: calc(100vh - var(--sticky-top, 64px) - var(--controls-h, 0px) - 40px); overflow-y: auto; scrollbar-width: none; padding: 16px 10px 12px; border-radius: 20px; background: #fff; }
  .toc__in::-webkit-scrollbar { display: none; }
}
@media (min-width: 1440px) { .toc { width: 240px; right: calc(100% + 36px); } }
.toc__k { padding: 0 8px 10px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; color: var(--muted); }
.toc__list { position: relative; list-style: none; margin: 0; padding: 0; }
.toc__list::before, .toc__list::after { content: ""; position: absolute; z-index: 0; left: 20px; top: 20px; width: 2px; border-radius: 1px; }
.toc__list::before { height: var(--track, 0px); background: var(--grey-200); }
.toc__list::after { height: var(--fill, 0px); background: var(--primary); transition: height .35s var(--ease-out); }
.toc__i { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 7px 8px; border-radius: 12px; text-align: left; color: var(--muted); transition: background-color .15s, color .15s; }
.toc__n { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--grey-300); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--grey-500); transition: background-color .2s, box-shadow .2s, color .2s; }
.toc__n--dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.toc__t { padding-top: 3px; font-size: 14px; font-weight: 550; letter-spacing: -.015em; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toc__i.is-done { color: var(--ink-2); }
.toc__i.is-done .toc__n { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary-weak); color: var(--primary); }
.toc__i[aria-current="step"] { color: var(--ink); background: var(--primary-soft); }
.toc__i[aria-current="step"] .toc__t { font-weight: 700; }
.toc__i[aria-current="step"] .toc__n { background: var(--primary); box-shadow: none; color: #fff; }
@media (hover: hover) { .toc__i:not([aria-current="step"]):hover { background: var(--grey-50); color: var(--ink-2); } }
.scard { background: var(--card); border-radius: var(--r-card); padding: 24px; margin-top: 12px; }
.scard__head { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.snum { width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scard h2 { font-size: 19px; line-height: 1.5; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.scard__body { margin-top: 8px; padding-left: 40px; font-size: 16px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.scard__body b, .hsl__d b, .note b, .points b { color: var(--ink-2); font-weight: 650; }
.scard__grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.scard__grid > * { min-width: 0; }
.scard__more { display: grid; gap: 10px; }

.fig { position: relative; border-radius: 18px; background: var(--grey-100); padding: clamp(10px, 2.5vw, 20px); display: grid; place-items: center; }
.shot { position: relative; width: min(100%, calc(var(--maxh, 560px) * var(--ar, 1)), calc(var(--nat, 4000px) * 1.6)); }
.shot picture { display: block; }
.shot img { width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 27, 55, .06), 0 8px 24px -10px rgba(0, 23, 51, .16); }
.shot__dim { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; opacity: 0; background: rgba(17, 24, 39, .42);
  -webkit-mask-image: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0 var(--sr, 40px), #000 calc(var(--sr, 40px) + 1.5px));
  mask-image: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0 var(--sr, 40px), #000 calc(var(--sr, 40px) + 1.5px));
  transition: opacity .25s var(--ease-std); }
.shot.has-active .shot__dim { opacity: 1; }
.shot__img { display: block; width: 100%; border-radius: 10px; cursor: zoom-in; }
.shot.has-active .shot__img { cursor: pointer; }
.shot__img:focus-visible { outline-offset: 3px; }

/* hotspot markers */
.hs { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 29, 58, .3);
  transform: scale(0); transition: transform .4s var(--ease-back), background-color .15s; transition-delay: var(--d, 0s); }
.scard.in .hs, .lb .hs { transform: scale(1); }
.scard.hs-settled .hs { transition-delay: 0s; }
.hs::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; pointer-events: none; }
@media (hover: hover) { .scard.in .hs:hover { transform: scale(1.1); } }
.hs.is-active { transform: scale(1.16) !important; background: var(--primary-pressed); z-index: 5; }
.hs.is-active::after { animation: hs-pulse 1.3s var(--ease-out) 2; }
.hs.is-intro::after { animation: hs-pulse 1.4s var(--ease-out) 1 .4s; }
@keyframes hs-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

.coach { position: absolute; z-index: 6; left: 0; top: 0; width: max-content; max-width: min(280px, 86%); padding: 12px 14px; border-radius: 14px; background: var(--primary); color: #fff; box-shadow: var(--shadow-coach); pointer-events: none;
  opacity: 0; transform: translateY(var(--cy, 6px)) scale(.96); transition: opacity .2s var(--ease-std), transform .3s var(--ease-out); }
.coach.is-on { opacity: 1; transform: none; }
.coach__t { font-size: 14.5px; font-weight: 700; line-height: 1.4; display: flex; gap: 6px; align-items: baseline; }
.coach__t i { font-style: normal; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .2); border-radius: 6px; padding: 0 6px; line-height: 20px; flex: none; }
.coach__d { margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.coach::after { content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--primary); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.coach.is-below::after { top: -5px; }
.coach.is-above::after { bottom: -5px; }

/* numbered explanation list */
/* numbered explanations: one box each, so short and long items line up as a tidy grid */
.hsl { display: grid; gap: 8px; }
.hsl > li { display: grid; }
.hsl__i { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-content: start; width: 100%; text-align: left; padding: 14px 16px 14px 14px; border-radius: 16px; background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--grey-100); transition: background-color .2s, box-shadow .2s; }
@media (hover: hover) { .hsl__i:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--grey-300); } }
.hsl__i.is-active { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary-weak); }
.hsl__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-100); color: var(--grey-700); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.hsl__i.is-active .hsl__n { background: var(--primary); color: #fff; }
.hsl__t { display: block; font-size: 15.5px; font-weight: 650; line-height: 1.45; color: var(--ink); letter-spacing: -.015em; padding-top: 1px; }
.hsl__d { display: block; margin-top: 1px; font-size: 14.5px; line-height: 1.6; color: var(--muted); font-weight: 450; }

.points { display: grid; gap: 4px; padding: 0 4px; }
.points li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.6; color: var(--body); }
.points li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--grey-400); }
.note { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
.note .icon { font-size: 18px; margin-top: 2px; }
.note--tip { background: var(--grey-50); color: var(--grey-700); }
.note--tip .icon { color: var(--grey-500); }
.note--warn { background: var(--warn-soft); color: var(--warn-ink); }
.note--warn .icon { color: var(--warn); }

/* text-only steps (mobile MT5) */
.find { padding: 14px 16px; border-radius: 16px; background: var(--grey-50); }
.find__t { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.find ol { display: grid; gap: 8px; }
.find li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.find li > b:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--primary-weak); }
.find strong { color: var(--ink); font-weight: 650; }

/* MT5 trade/history rows */
.mtable__scroll { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.mtable table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mtable th, .mtable td { padding: 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.mtable thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--grey-50); }
.mtable tbody tr:last-child > * { border-bottom: 0; }
.mtable tbody th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-2); position: sticky; left: 0; background: #fff; }
.mtable thead th:first-child { position: sticky; left: 0; text-align: left; }
.mtable td { color: var(--ink); font-weight: 550; }
.mtable td.neg { color: #d22030; }
.mtable tr.is-pend td { color: var(--grey-600); }
.mtable__cap { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* FAQ (TDS BoardRow) */
.faq { padding: 0 8px 4px; }
.faq__i { position: relative; }
.faq__i + .faq__i::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.faq__q { width: 100%; display: grid; grid-template-columns: 20px 1fr 20px; gap: 10px; align-items: start; text-align: left; padding: 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; transition: background-color .15s; }
.faq__q > b { color: var(--primary); font-weight: 700; }
.faq__q .icon { color: var(--grey-400); margin-top: 3px; font-size: 20px; transition: transform .3s var(--ease-out); }
.faq__q:active { background: var(--grey-100); }
@media (hover: hover) { .faq__q:hover { background: var(--grey-50); } }
.faq__i.is-open .faq__q { font-weight: 650; }
.faq__i.is-open .faq__q .icon { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq__i.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0 16px 4px 46px; font-size: 15px; line-height: 1.7; color: var(--body); }
.faq__a a { display: inline-flex; align-items: center; gap: 2px; margin: 6px 0 16px 46px; font-size: 13.5px; font-weight: 600; color: var(--primary); }

.vwrap + .card { margin-top: 20px; }
.vwrap > .card { margin-top: 16px; }
.faq__more { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; height: 52px; margin-top: 2px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--grey-700); transition: background-color .15s; }
.faq__more::before { content: ""; position: absolute; top: -2px; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.faq__more .icon { color: var(--grey-500); font-size: 18px; }
.faq__more:active { background: var(--grey-100); }
@media (hover: hover) { .faq__more:hover { background: var(--grey-50); color: var(--ink); } }
/* next step: a big navy card at the end of each guide */
.nextcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) 48px; align-items: center; gap: 16px; margin-top: 16px; padding: 26px 24px; border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--primary) 0%, #1f5ac4 100%); color: #fff; box-shadow: 0 18px 36px -20px rgba(22, 68, 146, .75); transition: transform .15s, box-shadow .2s; }
.nextcard__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.nextcard__ic .icon { font-size: 26px; }
.nextcard__k { display: block; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.nextcard__txt b { display: block; margin-top: 2px; font-size: 22px; font-weight: 750; letter-spacing: -.025em; line-height: 1.35; }
.nextcard__txt small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.nextcard__go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); transition: transform .2s var(--ease-out); }
.nextcard__go .icon { font-size: 24px; }
.nextcard:active { transform: scale(.98); }
@media (hover: hover) { .nextcard:hover { box-shadow: 0 22px 44px -20px rgba(22, 68, 146, .9); } .nextcard:hover .nextcard__go { transform: translateX(3px); } }
.gfoot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; color: var(--grey-700); transition: background-color .15s, color .15s; }
.chip .icon { font-size: 16px; color: var(--grey-500); }
.chip:active { background: var(--grey-200); }
@media (hover: hover) { .chip:hover { color: var(--ink); } }
.gfoot__legal { margin-top: 20px; padding: 0 8px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--grey-500); }

@media (min-width: 760px) {
  .scard.is-tall .scard__grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; gap: 24px; }
  .scard.is-wide .hsl { grid-template-columns: 1fr 1fr; }
}

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; height: 100vh; height: 100dvh; background: rgba(13, 18, 28, .92); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity .25s; }
.lb.is-on { opacity: 1; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #fff; }
.lb__bar b { font-size: 15px; font-weight: 600; opacity: .9; }
.lb__bar .icon-btn { color: #fff; }
.lb__bar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.lb__stage { position: relative; display: grid; padding: 8px 16px; overflow: auto; overscroll-behavior: contain; }
.lb .shot { margin: auto; }
.lb .shot__img { cursor: zoom-out; }
.lb .shot { width: min(100%, calc((100vh - 170px) * var(--ar, 1))); }
@supports (height: 100dvh) { .lb .shot { width: min(100%, calc((100dvh - 170px) * var(--ar, 1))); } }
.lb .shot img { box-shadow: none; }
.lb__cap { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .82); font-size: 14.5px; text-align: center; min-height: 48px; }
.lb :focus-visible { outline-color: #fff; }

/* bottom sheet / dialog */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(25, 31, 40, .44); opacity: 0; transition: opacity .25s; }
.scrim.is-on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 71; width: min(520px, 100%); max-height: 86vh; max-height: 86dvh; overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px 24px 0 0; padding: 10px 8px calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%); transition: transform .45s var(--ease-out); box-shadow: 0 -10px 40px rgba(0, 23, 51, .14); }
.sheet.is-on { transform: translate(-50%, 0); }
@media (min-width: 640px) {
  .sheet { bottom: auto; top: 50%; border-radius: 24px; padding-top: 8px; transform: translate(-50%, -46%); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s; }
  .sheet.is-on { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--grey-200); margin: 0 auto 6px; }
@media (min-width: 640px) { .sheet__grip { display: none; } }
.sheet__head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 10px; }
.sheet__head > div { flex: 1; min-width: 0; }
.sheet__ic { flex: none; width: 44px; height: 44px; margin-top: 2px; }
.sheet__head h3 { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.sheet__head p { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.sheet__head .icon-btn { margin: -6px -6px 0 0; color: var(--grey-500); }
.sheet__body { padding: 4px 16px 8px; font-size: 16px; line-height: 1.75; color: var(--body); }
.sheet__one { font-size: 15.5px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.sheet__ex { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--grey-50); font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.sheet__ex b { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.sheet__f { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 650; font-size: 14.5px; }
.sheet .lrows { padding: 0; }
.sheet .lrow { min-height: 64px; }
.sheet__foot { padding: 12px 8px 0; }
.sheet__note { margin: 4px 16px 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* basics */
.bnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; }
.bnav::-webkit-scrollbar { display: none; }
.bnav a { flex: none; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--grey-700); }
@media (hover: hover) { .bnav a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--grey-400); } }
.bsec { scroll-margin-top: 72px; }
.accs { padding: 0 8px; }
.acc { position: relative; }
.acc + .acc::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 60px; padding: 14px 16px; border-radius: 16px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.45; color: var(--ink); transition: background-color .15s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary small { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 450; color: var(--muted); letter-spacing: -.01em; }
.acc summary > .icon { color: var(--grey-400); font-size: 20px; transition: transform .35s var(--ease-out); }
.acc[open]:not(.is-closing) summary > .icon { transform: rotate(180deg); }
.acc summary:active { background: var(--grey-100); }
@media (hover: hover) { .acc summary:hover { background: var(--grey-50); } }
.acc__body { padding: 0 16px 18px; }
.acc__body p { font-size: 15px; line-height: 1.7; color: var(--body); }
.acc__body p + p { margin-top: 4px; }
.item__num { margin-top: 10px; display: inline-block; padding: 6px 10px; border-radius: 10px; background: var(--primary-soft); font-size: 13.5px; font-weight: 650; color: var(--primary); line-height: 1.5; }
.item__hours { margin-top: 6px !important; display: flex; gap: 6px; font-size: 13.5px !important; color: var(--muted) !important; }
.item__hours .icon { margin-top: 3px; }
.acc__body dl { display: grid; grid-template-columns: 44px 1fr; gap: 6px 8px; font-size: 15px; line-height: 1.65; }
.acc__body dt { color: var(--muted); font-weight: 600; font-size: 14px; padding-top: 1px; }
.acc__body dd { margin: 0; color: var(--body); }

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .card__head { padding: 18px 20px 6px; }
  .lrows, .info, .faq { padding-left: 4px; padding-right: 4px; }
  .scard { padding: 20px 16px; }
  .scard__body { padding-left: 0; }
  .fig { padding: 8px; border-radius: 16px; }
  .scard.is-wide .fig { margin: 0 -6px; }
  .info__body { padding-left: 16px; }
  .tbl-wrap { margin-left: -16px; }
  .hs { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 29, 58, .3); }
  .accs { padding: 0 4px; }
}
/* phone crop for wide MT5 dialogs */
@media (max-width: 600px) {
  .shot.has-m { width: min(100%, calc(var(--maxh, 560px) * var(--arm, 1)), calc(var(--natm, 4000px) * 1.6)); }
  .shot.has-m .hs { left: var(--mx); top: var(--my); }
  .shot.has-m .hs.m-hide { display: none; }
  .lb .shot.has-m { width: min(100%, calc((100dvh - 170px) * var(--arm, 1))); }
  /* topic tabs scroll edge to edge on phones; the first label still lines up with the content */
  .controls__in { padding: 0; }
  .tabs__in { padding: 0 calc(var(--gutter) - 14px); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .topbar, .controls.is-stuck { background: #fff; } .icon-btn--glass { background: rgba(255, 255, 255, .92); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
  .hs { transform: scale(1); }
}
@media print {
  .rv { opacity: 1 !important; transform: none !important; }
  .hs { transform: scale(1) !important; }
  .topbar, .controls, .toast, .gfoot, .hub-bg, .gbg, .ocrow, .vcard, .toc { display: none !important; }
  body { background: #fff; }
  .scard, .card { break-inside: avoid; }
}
