:root{--ink:#202521;--surface:#f5f3ed;--accent:#796348;--demo-header-height:72px;--demo-nav-height:calc(38px + env(safe-area-inset-bottom,0px));--demo-height:calc(100svh - var(--demo-header-height) - var(--demo-nav-height));font-family:'DM Sans','Noto Sans KR',sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:auto;scrollbar-width:none}html::-webkit-scrollbar{display:none}body{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{color:inherit}img{display:block;max-width:100%;height:auto}h1,h2,h3,p,figure,dl,blockquote{margin:0}h1,h2,h3{word-break:keep-all;letter-spacing:-.05em}p{word-break:keep-all;overflow-wrap:anywhere}ul{padding-left:1.2em}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--accent)}input[type=range]{touch-action:pan-y;max-width:100%}button,summary,label{touch-action:manipulation}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:8px;left:16px;z-index:300;background:#fff;color:#161816;padding:12px 18px;transform:translateY(-160%)}.skip-link:focus{transform:none}
.demo-header{position:fixed;inset:0 0 auto;height:var(--demo-header-height);z-index:80;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 5vw;background:var(--surface);border-bottom:1px solid color-mix(in srgb,var(--ink) 14%,transparent)}.demo-header a,.demo-header button{white-space:nowrap}.demo-header nav{display:flex;align-items:center;gap:24px}.demo-header nav a,.demo-header nav button{font-size:12px}.demo-back{font-size:11px}.demo-story{position:relative;min-height:100svh;outline:none}.demo-stage{position:fixed;top:var(--demo-header-height);left:0;width:100%;height:var(--demo-height);overflow:hidden;isolation:isolate}.demo-scene{position:absolute;inset:0;background:var(--surface);overflow:hidden;will-change:transform}.demo-scene:not(:first-child){transform:translateY(100%)}.demo-content{position:relative;min-height:var(--demo-height);padding:32px 6vw;will-change:transform}.demo-nav{position:fixed;inset:auto 0 0;z-index:90;display:flex;align-items:center;justify-content:center;gap:24px;min-height:var(--demo-nav-height);padding:0 16px env(safe-area-inset-bottom,0px);background:var(--surface);border-top:1px solid color-mix(in srgb,var(--ink) 14%,transparent)}.demo-nav button,.demo-nav a{border:0;background:none;padding:9px 3px;font-size:11px;color:inherit;white-space:nowrap;opacity:.55}.demo-nav [aria-current=step]{opacity:1;font-weight:700}.demo-nav:before{content:'';position:absolute;left:0;top:-2px;height:2px;width:100%;transform:scaleX(var(--story-progress,0));transform-origin:left;background:var(--accent)}.demo-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;padding:14px 22px;min-height:46px;background:var(--ink);color:var(--surface);border:1px solid var(--ink);border-radius:4px;font-size:13px;font-weight:600}.demo-button:hover{filter:brightness(1.1)}
dialog{width:min(540px,calc(100vw - 36px));max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:32px;border:1px solid #ddd;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #0004}dialog::backdrop{background:#12191788;backdrop-filter:blur(4px)}dialog h2{font-size:27px;line-height:1.5;margin-bottom:20px}dialog p{line-height:1.8}dialog button{min-height:44px}dialog dl{display:grid;grid-template-columns:100px 1fr;gap:16px 20px;margin:24px 0}dialog dt{opacity:.6}dialog dd{margin:0;overflow-wrap:anywhere}
html.is-flow .demo-story{height:auto!important;padding-top:var(--demo-header-height);padding-bottom:var(--demo-nav-height)}html.is-flow .demo-stage{position:relative;top:auto;height:auto;overflow:visible}html.is-flow .demo-scene{position:relative;inset:auto;transform:none!important;visibility:visible!important;height:auto;overflow:visible;will-change:auto}html.is-flow .demo-content{transform:none!important;will-change:auto}
@media(max-width:700px){:root{--demo-header-height:62px}.demo-header{padding:0 20px;gap:12px}.demo-header nav{gap:12px}.demo-header nav a,.demo-header nav button{font-size:11px}.demo-content{padding:30px 22px 34px}.demo-nav{gap:18px}.demo-nav button,.demo-nav a{font-size:10px}.demo-button{padding:13px 18px}dialog{padding:26px 22px}dialog dl{grid-template-columns:80px 1fr;font-size:13px}}
@media(max-width:370px){.demo-header{padding-inline:16px}.demo-content{padding-inline:18px}.demo-nav{gap:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Focused controls must use timeline panning, never a second native scroll area. */
@supports(overflow:clip){.demo-stage,.demo-scene{overflow:clip}}
