
.ds-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ds-row { width: 100%; min-height: 52px; display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: 700 16px/1.5 var(--sans); color: var(--ink); cursor: pointer; text-wrap: pretty; transition: transform var(--t-press) var(--e-brush), border-color var(--t-chip) var(--e-brush); }
.ds-row:active { transform: scale(.98); }
.ds-row small { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink2); }
.ds-row[aria-pressed="true"] { border-color: var(--pine); }
.ds-link { min-height: 44px; padding: 8px 0; border: 0; background: none; font: 700 15px var(--sans); color: var(--pine); cursor: pointer; transition: transform var(--t-press) var(--e-brush); }
.ds-link:active { transform: scale(.97); }
.ds-link.muted { color: var(--ink2); }
.ds-k { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink2); }
.ds-stage.ds-sangbox { padding: 20px; }
.ds-sangbox > .ds-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ds-who button { min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 700 15px var(--sans); color: var(--ink3); cursor: pointer; transition: transform var(--t-press) var(--e-brush); }
.ds-who button:active { transform: scale(.96); }
.ds-who button[aria-pressed="true"] { border-color: var(--pine); color: var(--pine); }
.ds-when { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.ds-when > span { min-width: 0; }
.ds-bookbtn { flex: none; min-height: 44px; padding: 0; margin: -12px 0; border: 0; background: none; font: 700 14px var(--sans); color: var(--pine); cursor: pointer; transition: transform var(--t-press) var(--e-brush); }
.ds-bookbtn:active { transform: scale(.96); }
.ds-ex { margin: -8px 0 16px; font-size: 14px; color: var(--ink2); }
.ds-lines { display: grid; gap: 12px; }
.ds-line { margin: 0; font: 400 17px/1.7 var(--sans); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.ds-line.me { justify-self: end; max-width: 80%; padding: 8px 16px; border-radius: 16px 16px 4px 16px; background: var(--pine); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.5; }
.ds-nb { white-space: nowrap; }
.ds-mini-seal { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; border-radius: 4px; background: var(--seal); color: #fff; font: 400 15px/1 var(--hanja); vertical-align: -4px; }
.ds-act { margin: 16px 0 0; }
.ds-act:empty { display: none; }
.ds-act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-act-row .btn { margin: 0; }
.ds-inbox { display: grid; gap: 16px; margin: 0 0 16px; }
.ds-inbox-m { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.ds-inbox-m b { display: block; font: 700 16px/1.5 var(--sans); color: var(--ink); }
.ds-inbox-m p { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink3); text-wrap: pretty; }
.ds-inbox-m small { display: block; margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
.ds-inbox-m .ds-act-row { margin: 12px 0 0; }
.ds-inbox-reply { display: grid; gap: 12px; margin: 12px 0 0; }
.ds-opt { justify-items: center; text-align: center; }
.ds-guess { display: grid; gap: 8px; }
.ds-guess .ds-link { justify-self: start; }
.ds-guess .ds-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.ds-mse { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ds-mse[hidden] { display: none; }
.ds-cols, .ds-luck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ds-luck { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line2); }
.ds-col { display: grid; gap: 8px; justify-items: center; }
.ds-colk { font-size: 14px; font-weight: 700; color: var(--ink2); }
.ds-gl { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 4px 0; text-align: center; }
.ds-gl small { font-size: 14px; line-height: 1.3; color: var(--ink2); white-space: nowrap; }
.ds-gl b { position: relative; display: inline-block; padding: 0 4px; font: 400 30px/1.15 var(--hanja); color: var(--ink); }
.ds-gl i { font-style: normal; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ds-gl.ds-none b { color: var(--line); }
.ds-luck .ds-gl b { font-size: 24px; }
.ds-luck .ds-gl i { color: var(--ink3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ds-luck .ds-gl.wide { grid-column: span 2; }
.ds-ring { position: absolute; inset: -4px -8px; border: 2.5px solid var(--ink); border-radius: 46% 54% 50% 48% / 52% 46% 54% 48%; opacity: 0; transform: scale(1.35) rotate(-10deg); transition: transform var(--t-seal) var(--e-seal), opacity var(--t-base) var(--e-brush); pointer-events: none; }
.ds-ring.on { opacity: .82; transform: none; }
.ds-mse-cap { margin: 12px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink3); min-height: 24px; text-wrap: pretty; }
.ds-mse-cap:empty { display: none; }
.ds-qa { margin: 16px 0 0; scroll-margin: 16px 0 120px; }
.ds-q { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.ds-q span { max-width: 86%; padding: 8px 16px; border-radius: 16px 16px 4px 16px; background: var(--pine); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.ds-a { position: relative; margin: 0; padding: 20px; }
.ds-head { margin: 0 44px 0 0; font: 700 20px/1.45 var(--sans); color: var(--ink); letter-spacing: -.02em; min-height: 29px; text-wrap: pretty; word-break: keep-all; }
.ds-head.wait { font-size: 16px; font-weight: 700; color: var(--ink2); }
.ds-body { margin: 16px 0 0; }
.ds-body p { margin: 0 0 12px; font-size: 17px; line-height: 1.75; color: var(--ink); text-wrap: pretty; }
.ds-body p:last-child { margin-bottom: 0; }
.ds-stamp { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 8px; background: var(--seal); color: #fff; display: grid; place-items: center; font: 400 20px/1 var(--hanja); opacity: 0; }
.ds-stamp.on { opacity: 1; }
.ds-part { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line2); }
.ds-foot { display: grid; gap: 0; margin: 20px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line2); }
.ds-foot small { font-size: 14px; color: var(--ink2); }
.ds-foot .ds-acts { display: flex; gap: 16px; }
.iu-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.iu-title b { font: 700 15px/1.4 var(--sans); color: var(--ink3); }
.iu-title small { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.iu-tool { margin: 16px 0 0; }
.iu-say:empty { display: none; }
.iu-say { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.iu-say b { color: var(--pine); }
.iu-chart { position: relative; padding: 24px 0 0; }
.iu-bars { display: grid; grid-template-columns: repeat(var(--n, 12), 1fr); gap: 4px; align-items: end; height: 72px; }
.iu-bar { display: block; width: 62%; justify-self: center; height: 100%; border-radius: 8px 8px 4px 4px; background: var(--ink); transform-origin: 50% 100%; transition: transform var(--t-reveal) var(--e-brush) calc(var(--i, 0) * 40ms); }
.iu-bar[data-lv="4"] { transform: scaleY(1); opacity: .9; }
.iu-bar[data-lv="3"] { transform: scaleY(.74); opacity: .7; }
.iu-bar[data-lv="2"] { transform: scaleY(.46); opacity: .4; }
.iu-bar[data-lv="1"] { transform: scaleY(.22); opacity: .2; }
.iu-ticks { display: grid; grid-template-columns: repeat(var(--n, 12), 1fr); gap: 4px; margin: 8px 0 0; }
.iu-ticks span { font-size: 14px; line-height: 1.3; text-align: center; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.iu-ticks span.on { color: var(--ink); font-weight: 700; text-decoration: underline 2px var(--ink); text-underline-offset: 4px; }
.iu-ticks span small { display: block; font-size: 14px; color: var(--pine); font-weight: 700; }
.iu-yr { position: absolute; top: 0; left: calc(var(--x) * (100% + 4px) / var(--n)); font-size: 14px; color: var(--ink2); border-left: 1px solid var(--line); padding-left: 4px; line-height: 20px; }
.iu-range { position: absolute; left: 0; right: 0; top: 16px; width: 100%; height: 88px; margin: 0; opacity: 0; cursor: pointer; touch-action: pan-y; }
.iu-chart:has(.iu-range:focus-visible) { outline: 2px solid var(--pine); outline-offset: 4px; border-radius: 8px; }
.iu-legend { margin: 8px 0 0; font-size: 14px; color: var(--ink2); }
.iu-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iu-fork .ds-row { position: relative; align-content: start; gap: 8px; padding: 16px 12px; }
.iu-fork .ds-row > b { font-size: 18px; }
.iu-fork .ds-row > b small { position: absolute; top: 16px; right: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--pine); }
.iu-fr { display: block; }
.iu-fr small { display: block; }
.iu-fr span { display: block; font-size: 15px; line-height: 1.5; text-wrap: balance; } 
.iu-note { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.iu-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iu-check { grid-template-columns: 24px 1fr; align-items: center; column-gap: 12px; position: relative; }
.iu-box { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--ink2); background: #fff; }
.iu-seal { position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 4px; background: var(--seal); color: #fff; display: grid; place-items: center; font: 400 16px/1 var(--hanja); opacity: 0; transform: scale(1.6) rotate(-8deg); pointer-events: none; }
.iu-check[aria-pressed="true"] { border-color: var(--line); }
.iu-check[aria-pressed="true"] .iu-seal { opacity: 1; transform: none; }
.iu-check[data-done] .iu-txt { color: var(--ink2); }
.ds-tip p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.ds-tip-row { display: grid; gap: 8px; margin: 8px 0 0; }
.ds-tip-row span { font-size: 14px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.ds-tip-row .btn.small { justify-self: start; margin: 0; }
.ds-tip.rest p { font-size: 15px; color: var(--ink2); }
.iu-more { display: grid; gap: 8px; }
.iu-chip { color: var(--pine); }
.ds-learn > p { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink3); }
.ds-learn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-learn li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-learn li span { font-size: 16px; line-height: 1.5; color: var(--ink); }
.ds-learn li span small { display: block; font-size: 14px; color: var(--ink2); }
.ds-learn .btn.small { flex: none; margin: 0; }
.ds-learn label { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.ds-learn label input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--pine); }
.ds-learn .ds-learn-note { margin: 8px 0 0; font-size: 14px; font-weight: 400; color: var(--ink2); }
.ds-mem { display: grid; gap: 8px; }
.ds-mem-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.ds-mem-row .ds-link { flex: none; }
.ds-mem-ask p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.ds-mem-ask .btn.small { margin: 0; }
.ds-delall { margin: 8px 0 0; }
.ds-ask { margin: 24px 0 0; }
.ds-ask h2 { margin: 0 0 12px; font: 700 18px var(--sans); }
.ds-form { display: grid; gap: 8px; scroll-margin: 16px 0 120px; }
.ds-form textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px 16px; border: 1px solid var(--ink2); border-radius: 16px; font: 17px/1.6 var(--sans); color: var(--ink); background: #fff; resize: none; }
.ds-form textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(18, 58, 44, .14); }
.ds-form .btn { margin: 0; }
.ds-form .ds-hint { margin: 0; font-size: 14px; color: var(--ink2); text-align: center; }
.ds-hint b { font-weight: 700; color: var(--ink); }
.ds-msg { margin: 8px 0 0; font-size: 15px; color: var(--seal2); }
.ds-msg:empty { display: none; }
.ds-cta { margin: 24px 0 0; padding: 20px; }
.ds-cta h2 { margin: 0 0 8px; font: 700 20px/1.4 var(--sans); }
.ds-cta p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--ink3); text-wrap: pretty; }
.ds-cta .btn + .btn { margin-top: 8px; }
.ds-thbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 8px; }
.ds-th-now { min-width: 0; margin: 0; display: grid; font-size: 14px; color: var(--ink2); }
.ds-th-now b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ink); }
.ds-th-acts { flex: none; display: flex; gap: 16px; }
.ds-th-ul { list-style: none; margin: 0; padding: 0; }
.ds-th-ul li { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.ds-th-ul li:last-child { border-bottom: 1px solid var(--line); }
.ds-th-open { flex: 1; min-width: 0; min-height: 56px; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; display: grid; gap: 4px; font-family: var(--sans); }
.ds-th-open b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ds-th-open[aria-current] b { color: var(--pine); }
.ds-th-open small { font-size: 14px; color: var(--ink2); }
.ds-th-ul .ds-link { flex: none; font-size: 14px; }
.ds-brief { line-height: 1.6; color: var(--ink); }
.ds-brief small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink2); }
.ds-past { margin: 24px 0 0; }
.ds-past h2 { margin: 0 0 8px; font: 700 18px var(--sans); }
.ds-past ol { list-style: none; margin: 0; padding: 0; }
.ds-past li { border-top: 1px solid var(--line); }
.ds-past li:last-child { border-bottom: 1px solid var(--line); }
.ds-past button.ds-open { width: 100%; min-height: 56px; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; display: grid; gap: 4px; font-family: var(--sans); }
.ds-past button.ds-open b { font-size: 16px; color: var(--ink); line-height: 1.5; }
.ds-past button.ds-open small { font-size: 14px; color: var(--ink2); }
.ds-past .ds-qa { margin: 0 0 16px; }
.ds-dim { position: fixed; inset: 0; z-index: 80; background: rgba(29, 26, 20, .42); display: flex; align-items: flex-end; justify-content: center; }
.ds-sheet { width: 100%; max-width: var(--app); max-height: 86vh; overflow: auto; box-sizing: border-box; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; display: grid; gap: 12px; outline: none; }
.ds-sh-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px; padding: 12px 20px 0; background: #fff; }
.ds-sheet h2 { margin: 0; font: 700 22px/1.4 var(--sans); text-wrap: balance; }
.ds-sheet h3 { margin: 12px 0 0; font-size: 15px; color: var(--ink3); }
.ds-sheet .btn { margin: 0; }
.ds-sheet .ds-pass { flex-direction: column; gap: 4px; }
.ds-pass small { font-size: 14px; font-weight: 600; color: var(--gold2); }
.ds-sheet > .ds-link { justify-self: center; }
.ds-sh-p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink3); text-wrap: pretty; }
.ds-sh-ul, .ds-book-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-sh-ul li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.ds-sh-ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 4px; height: 4px; border-radius: 4px; background: var(--ink2); }
.ds-sh-price { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.ds-book-ul li { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.ds-book-ul li small { grid-column: 2; font-size: 14px; font-weight: 400; color: var(--ink2); }
.ds-book-ul li.done { color: var(--ink2); }
.ds-facts li { grid-template-columns: 24px 1fr auto; }
.ds-facts li .ds-link { min-height: 44px; font-size: 14px; }
.ds-book-ul li .ds-mini-seal { margin: 0; justify-self: center; }
.ds-dot { justify-self: center; width: 8px; height: 8px; border-radius: 8px; background: var(--line); }
.ds-book-map { margin: 4px 0 0; }
.ds-book-acts { display: grid; gap: 12px; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line2); }
.ds-switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ds-switch input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--pine); }
.ds-switch span { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.ds-switch small { display: block; font-size: 14px; font-weight: 400; color: var(--ink2); text-wrap: pretty; }
.ds-sh-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.ds-viz { position: relative; }
.ds-cap { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink3); text-wrap: pretty; }
.ds-cap:empty { display: none; }
.dsa { display: block; width: 100%; height: auto; overflow: visible; }
.dsa text { text-anchor: middle; font-family: var(--sans); }
.dsa-ground { opacity: .2; }
.dsa-ring { fill: none; stroke: var(--ink2); stroke-width: 1; opacity: .45; }
.dsa-edge { stroke: var(--line); stroke-width: 1; }
[data-e].worn .dsa-edge { stroke: var(--ink2); stroke-opacity: var(--wear, .3); stroke-width: 2; }
.dsa-ink { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform: scaleX(0); transform-box: fill-box; transform-origin: 0% 50%; }
.dsa-node { transition: opacity var(--t-slow) var(--e-brush); }
.dsa-pop { transform-box: fill-box; transform-origin: center; }
.dsa-inks g { transform-box: fill-box; transform-origin: center; }
.dsa-me { stroke: none; }
.dsa-me-g { font-family: var(--hanja) !important; font-size: 32px; fill: #fff; }
.dsa-halo { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.dsa-lb { font-size: 15px; font-weight: 700; fill: var(--ink2); }
.dsa-dot { fill: #fff; stroke: var(--ink2); stroke-width: 1; }
.dsa-dot-on { fill: var(--pine); stroke: var(--pine); stroke-width: 1; }
.dsa-g { font-family: var(--hanja) !important; font-size: 19px; fill: var(--ink); }
.dsa-g-on { fill: var(--gold2); }
.dsa-pill, .dsa-dom, .dsa-dom.dsa-lock { fill: #fff; stroke: none; }
.dsa-pill-on, .dsa-dom-on { fill: none; stroke: none; }
.dsa-pt { font-size: 15px; font-weight: 700; fill: var(--ink3); }
.dsa-pt-on { fill: var(--pine); }
.dsa-dt { font-size: 15px; font-weight: 700; fill: var(--pine); }
.dsa-dt-lock { fill: var(--ink2); font-weight: 400; }
.dsa-fact { fill: var(--gold); }
.dsa-fact-on { fill: none; stroke: var(--ink); stroke-width: 2; }
.dsa-drop { fill: var(--ink); opacity: 0; pointer-events: none; }
.dsa .dsa-on { opacity: 0; transition: opacity var(--t-base) var(--e-brush); }
.dsa .on .dsa-on { opacity: 1; }
.dsa .on .dsa-g:not(.dsa-g-on), .dsa .on .dsa-pt:not(.dsa-pt-on) { opacity: 0; }
.ds-reading .dsa-node:not(.on) { opacity: .32; }
.ds-settled .dsa-node:not(.on) { opacity: .5; }
@media (max-width: 360px) {
  .ds-gl b { font-size: 26px; }
  .ds-luck .ds-gl b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dsa-node, .ds-row, .ds-who button, .ds-link, .dsa .dsa-on, .ds-ring, .iu-bar, .ds-bookbtn { transition: none !important; }
}
