/* 유니UI 템플릿 화면 — scripts/sync-youniui.mjs 가 방향 판에서 만든다. 손으로 고치지 말 것 */
:root { --font: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { -webkit-font-smoothing: antialiased; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.mock { min-height: 100vh; }
html.yu-app, html.yu-app body { height: 100%; }
html.yu-app .mock { height: 100vh; overflow: hidden; }
.dk { background: radial-gradient(120% 70% at 85% -10%, var(--yc-b1, rgba(245,165,36,.18)), transparent 55%), var(--yc-b2, #0e0f12); color: var(--yc-t1, #e9eaee); font-family: var(--yu-font-body, 'Noto Sans KR', var(--font)); padding: 0 0 28px; }
.dk-h { display: flex; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--yc-l1, rgba(255,255,255,.07)); flex-wrap: wrap; }
.dk-logo { font-weight: 700; font-size: calc(16px * var(--yu-fs, 1)); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.dk-logo i { width: 18px; height: 18px; border-radius: calc(5px * var(--yu-r, 1)); background: linear-gradient(135deg, var(--yc-b3, #f5a524), var(--yc-b4, #f06d2a)); display: block; }
.dk-search { flex: 1; min-width: 180px; background: var(--yc-b5, rgba(255,255,255,.05)); border: 1px solid var(--yc-l2, rgba(255,255,255,.08)); border-radius: calc(10px * var(--yu-r, 1)); padding: 8px 12px; font-size: calc(13px * var(--yu-fs, 1)); color: var(--yc-t2, #8b8f99); }
.dk-nav { display: flex; gap: 18px; font-size: calc(13px * var(--yu-fs, 1)); color: var(--yc-t3, #a6aab3); flex-wrap: wrap; }
.dk-nav b { color: var(--yc-t4, #fff); font-weight: 500; }
.dk-hero { padding: 34px 28px 22px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; }
.dk-hero h3 { font-size: calc(clamp(26px, 3.4vw, 38px) * var(--yu-fs, 1)); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; max-width: 15em; }
.dk-hero h3 span { color: var(--yc-t5, #f5a524); }
.dk-stats { display: flex; gap: 28px; }
.dk-stats div { display: flex; flex-direction: column-reverse; }
.dk-stats b { font-family: 'IBM Plex Mono', monospace; font-size: calc(26px * var(--yu-fs, 1)); font-weight: 500; color: var(--yc-t6, #fff); font-variant-numeric: tabular-nums; }
.dk-stats span { font-size: calc(12px * var(--yu-fs, 1)); color: var(--yc-t7, #8b8f99); }
.dk-chips { display: flex; gap: 6px; padding: 0 28px 18px; flex-wrap: wrap; align-items: center; }
.dk-chips span { font-size: calc(12.5px * var(--yu-fs, 1)); padding: 6px 12px; border-radius: calc(999px * var(--yu-r, 1)); border: 1px solid var(--yc-l3, rgba(255,255,255,.1)); color: var(--yc-t8, #b8bcc5); }
.dk-chips span.on { background: var(--yc-b6, #f5a524); color: var(--yc-t9, #17130a); border-color: var(--yc-l4, #f5a524); font-weight: 700; }
.dk-chips .sort { margin-left: auto; border: 0; color: var(--yc-t10, #8b8f99); }
.dk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 28px; }
.dk-card { background: linear-gradient(180deg, var(--yc-b7, rgba(255,255,255,.045)), var(--yc-b8, rgba(255,255,255,.02))); border: 1px solid var(--yc-l5, rgba(255,255,255,.08)); border-radius: calc(16px * var(--yu-r, 1)); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dk-top { display: flex; justify-content: space-between; align-items: center; font-size: calc(12px * var(--yu-fs, 1)); color: var(--yc-t11, #a6aab3); }
.dk-top .c { display: inline-flex; align-items: center; gap: 7px; }
.dk-top .c i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dk-top .d { font-family: 'IBM Plex Mono', monospace; font-weight: 500; padding: 3px 8px; border-radius: calc(6px * var(--yu-r, 1)); background: var(--yc-b9, rgba(255,255,255,.06)); color: var(--yc-t12, #d5d8de); }
.dk-top .d.hot { background: var(--yc-b10, rgba(240,90,60,.16)); color: var(--yc-t13, #ff8a6b); }
.dk-card h4 { font-size: calc(17px * var(--yu-fs, 1)); letter-spacing: -0.01em; font-weight: 600; }
.dk-card .sub { font-size: calc(12.5px * var(--yu-fs, 1)); color: var(--yc-t14, #8b8f99); margin-top: 2px; }
.dk-spec { display: flex; gap: 8px; flex-wrap: wrap; font-size: calc(11.5px * var(--yu-fs, 1)); color: var(--yc-t15, #a6aab3); }
.dk-spec span { border: 1px solid var(--yc-l6, rgba(255,255,255,.08)); border-radius: calc(6px * var(--yu-r, 1)); padding: 2px 7px; }
.dk-pr { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--yc-l7, rgba(255,255,255,.07)); padding-top: 12px; }
.dk-pr s { font-family: 'IBM Plex Mono', monospace; font-size: calc(11.5px * var(--yu-fs, 1)); color: var(--yc-t16, #6f737d); display: block; }
.dk-pr b { font-family: 'IBM Plex Mono', monospace; font-size: calc(21px * var(--yu-fs, 1)); font-weight: 500; color: var(--yc-t17, #f5a524); font-variant-numeric: tabular-nums; }
.dk-pr b small { font-size: calc(11px * var(--yu-fs, 1)); color: var(--yc-t18, #8b8f99); }
.dk-pr em { font-style: normal; font-size: calc(12px * var(--yu-fs, 1)); font-weight: 700; color: var(--yc-t19, #17130a); background: var(--yc-b11, #f5a524); padding: 4px 8px; border-radius: calc(6px * var(--yu-r, 1)); }
@keyframes tmblink { 50% { opacity: 0; } }
@media (max-width: 900px) {
  .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dk-grid { grid-template-columns: 1fr; }
  .dk-h { padding-left: 16px; padding-right: 16px; }
  .dk-hero, .dk-chips, .dk-grid { padding-left: 16px; padding-right: 16px; }
}
.dt { padding: 18px 28px 8px; display: flex; flex-direction: column; gap: 26px; }
.dt-crumb { font-size: calc(12.5px * var(--yu-fs, 1)); }
.dt-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dt-gal { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dt-main { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.dt-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dt-thumbs i { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.dt-buy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dt-buy h3 { font-size: calc(26px * var(--yu-fs, 1)); line-height: 1.25; margin: 0; }
.dt-cat { font-size: calc(12px * var(--yu-fs, 1)); }
.dt-sub { font-size: calc(13px * var(--yu-fs, 1)); margin: 0; }
.dt-join span { font-size: calc(12.5px * var(--yu-fs, 1)); }
.dt-bar { height: 8px; margin-bottom: 6px; overflow: hidden; }
.dt-bar i { display: block; height: 100%; }
.dt-due { font-size: calc(13px * var(--yu-fs, 1)); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-dd { font-size: calc(12px * var(--yu-fs, 1)); font-weight: 700; padding: 2px 8px; }
.dt-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dt-price s { font-size: calc(14px * var(--yu-fs, 1)); }
.dt-price b { font-size: calc(32px * var(--yu-fs, 1)); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dt-price b small { font-size: calc(15px * var(--yu-fs, 1)); font-weight: 600; margin-left: 2px; }
.dt-price em { font-style: normal; font-weight: 800; font-size: calc(15px * var(--yu-fs, 1)); }
.dt-opts { display: flex; flex-direction: column; gap: 6px; }
.dt-lb { font-size: calc(12px * var(--yu-fs, 1)); font-weight: 700; }
.dt-opt { font-size: calc(13px * var(--yu-fs, 1)); padding: 9px 12px; }
.dt-pack { font-size: calc(12.5px * var(--yu-fs, 1)); }
.dt-qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dt-step { display: inline-flex; align-items: center; }
.dt-step i { font-style: normal; width: 32px; height: 32px; display: inline-grid; place-items: center; font-size: calc(16px * var(--yu-fs, 1)); }
.dt-step b { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.dt-total { margin-left: auto; font-size: calc(13px * var(--yu-fs, 1)); }
.dt-total b { font-size: calc(18px * var(--yu-fs, 1)); font-variant-numeric: tabular-nums; }
.dt-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dt-cta, .dt-save { display: flex; align-items: center; justify-content: center; white-space: nowrap; padding: 13px 18px; font-size: calc(15px * var(--yu-fs, 1)); font-weight: 700; text-align: center; }
.dt-note { font-size: calc(12px * var(--yu-fs, 1)); margin: 0; }
.dt-secs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.dt-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dt-sec h4 { margin: 0; font-size: calc(15px * var(--yu-fs, 1)); }
.dt-sec p, .dt-sec li { font-size: calc(13px * var(--yu-fs, 1)); line-height: 1.7; margin: 0; }
.dt-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.dt-seller b { font-size: calc(16px * var(--yu-fs, 1)); }
.dt-seller > span { font-size: calc(12.5px * var(--yu-fs, 1)); }
.dt-seller dl { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dt-seller dt { font-size: calc(11.5px * var(--yu-fs, 1)); }
.dt-seller dd { margin: 0; font-size: calc(15px * var(--yu-fs, 1)); font-weight: 700; }
.dt-rel { display: flex; flex-direction: column; gap: 12px; }
.dt-rel h4 { margin: 0; font-size: calc(16px * var(--yu-fs, 1)); }
.dt .dt-relg { padding: 0; margin: 0; }
.dk-dt { padding: 20px 28px 8px; }
.dk-crumb { color: var(--yc-t20, #8b8f99); }
.dk-crumb b { color: var(--yc-t21, #e9eaee); }
.dk-gal .dt-main, .dk-gal .dt-thumbs i { border-radius: calc(14px * var(--yu-r, 1)); border: 1px solid var(--yc-l8, rgba(255,255,255,.08)); }
.dk-buy { background: var(--yc-b12, #15171c); border: 1px solid var(--yc-l9, rgba(255,255,255,.08)); border-radius: calc(18px * var(--yu-r, 1)); padding: 20px; }
.dk-buy h3 { font-size: calc(26px * var(--yu-fs, 1)); font-weight: 700; }
.dk-buy .dt-cat, .dk-buy .dt-sub, .dk-buy .dt-join span, .dk-buy .dt-pack, .dk-buy .dt-note { color: var(--yc-t22, #a6aab3); }
.dk-buy .dt-doc { border: 1px solid var(--yc-l10, rgba(245,165,36,.6)); color: var(--yc-t23, #f5c46a); border-radius: calc(6px * var(--yu-r, 1)); padding: 0 6px; font-size: calc(11px * var(--yu-fs, 1)); }
.dk-buy .dt-bar { background: var(--yc-b13, rgba(255,255,255,.08)); border-radius: calc(999px * var(--yu-r, 1)); }
.dk-buy .dt-bar i { background: linear-gradient(90deg, var(--yc-b14, #f5a524), var(--yc-b15, #f06d2a)); }
.dk-dd { border-radius: calc(6px * var(--yu-r, 1)); background: var(--yc-b16, rgba(255,255,255,.08)); color: var(--yc-t24, #e9eaee); }
.dk-dd.hot { background: var(--yc-b17, #f5a524); color: var(--yc-t25, #17130a); }
.dk-buy .dt-price b { font-family: 'IBM Plex Mono', monospace; }
.dk-buy .dt-price s { color: var(--yc-t26, #8b8f99); }
.dk-buy .dt-price em { color: var(--yc-t27, #f5a524); }
.dk-buy .dt-opt { border: 1px solid var(--yc-l11, rgba(255,255,255,.1)); border-radius: calc(10px * var(--yu-r, 1)); color: var(--yc-t28, #d4d7de); }
.dk-buy .dt-opt.on { border-color: var(--yc-l12, #f5a524); color: var(--yc-t29, #fff); }
.dk-buy .dt-step { border: 1px solid var(--yc-l13, rgba(255,255,255,.12)); border-radius: calc(10px * var(--yu-r, 1)); }
.dk-buy .dt-cta { background: var(--yc-b18, #f5a524); color: var(--yc-t30, #17130a); border-radius: calc(12px * var(--yu-r, 1)); }
.dk-buy .dt-save { border: 1px solid var(--yc-l14, rgba(255,255,255,.14)); border-radius: calc(12px * var(--yu-r, 1)); color: var(--yc-t31, #e9eaee); }
.dk-sec { background: var(--yc-b19, #15171c); border: 1px solid var(--yc-l15, rgba(255,255,255,.08)); border-radius: calc(16px * var(--yu-r, 1)); padding: 16px; }
.dk-sec p, .dk-sec li, .dk-seller > span, .dk-seller dt { color: var(--yc-t32, #a6aab3); }
@media (max-width: 900px) {
  .dt-top { grid-template-columns: 1fr; }
  .dt-secs { grid-template-columns: 1fr 1fr; }
  .dt-story { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .dt, .dk-dt { padding: 14px 16px 6px; gap: 20px; }
  .dt-secs { grid-template-columns: 1fr; }
  .dt-buy h3 { font-size: calc(22px * var(--yu-fs, 1)); }
  .dt-price b { font-size: calc(28px * var(--yu-fs, 1)); }
  .dt-act { grid-template-columns: 1fr; }
  .dt-total { margin-left: 0; }
}
.od-steps { font-size: calc(13px * var(--yu-fs, 1)); }
.od-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.od-main, .od-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.od .dt-buy h3.od-h { font-size: calc(18px * var(--yu-fs, 1)); line-height: 1.3; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.od-n { font-size: 0.8em; opacity: 0.8; }
.od-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); }
.od-line:first-of-type { border-top: 0; padding-top: 2px; }
.od-ph { display: block; }
.od .od-ph .dt-main { display: block; aspect-ratio: 1 / 1; width: 88px; }
.od-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.od-info .dt-cat { width: fit-content; }
.od-name { font-size: calc(16px * var(--yu-fs, 1)); line-height: 1.3; }
.od-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.od-due { font-size: calc(12.5px * var(--yu-fs, 1)); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.od-lp { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.od-lp s { font-size: calc(12px * var(--yu-fs, 1)); opacity: 0.85; }
.od-lp b { font-size: calc(17px * var(--yu-fs, 1)); }
.od-to { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.od-to b { font-size: calc(16px * var(--yu-fs, 1)); }
.od .od-chg { margin-left: auto; padding: 4px 12px; font-size: calc(12px * var(--yu-fs, 1)); }
.od-req, .od-pay { flex-direction: row; flex-wrap: wrap; }
.od-req .dt-opt, .od-pay .dt-opt { flex: 1 1 0; text-align: center; white-space: nowrap; }
.od-rows { margin: 0; display: grid; gap: 8px; }
.od-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: calc(13.5px * var(--yu-fs, 1)); }
.od-rows dt, .od-rows dd { margin: 0; }
.od-rows dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.od-total { justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.od-total .dt-lb { font-size: calc(13px * var(--yu-fs, 1)); }
.od-agree { margin: 0; display: flex; align-items: center; gap: 8px; font-size: calc(12.5px * var(--yu-fs, 1)); }
.od-check { flex: none; width: 16px; height: 16px; border: 2px solid currentColor; display: inline-block; position: relative; }
.od-check::after { content: ''; position: absolute; left: 4px; top: 0; width: 4px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.od .od-act { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .od-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .od-line { grid-template-columns: 64px minmax(0, 1fr); }
  .od .od-ph .dt-main { width: 64px; }
  .od-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .od-req .dt-opt, .od-pay .dt-opt { flex-basis: 100%; }
}
.app-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: inherit; }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 4px; font-size: calc(14px * var(--yu-fs, 1)); font-weight: 600; font-variant-numeric: tabular-nums; }
.app-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.app-sig i { width: 3px; background: currentColor; border-radius: calc(1px * var(--yu-r, 1)); }
.app-sig i:nth-child(1) { height: 4px; }
.app-sig i:nth-child(2) { height: 6px; }
.app-sig i:nth-child(3) { height: 8px; }
.app-sig i:nth-child(4) { height: 10px; }
.app-sig em { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: calc(3px * var(--yu-r, 1)); margin-left: 6px; box-sizing: border-box; position: relative; }
.app-sig em::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: calc(1px * var(--yu-r, 1)); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; min-height: 52px; box-sizing: border-box; }
.app-ics { margin-left: auto; display: inline-flex; gap: 16px; }
.app-search { padding: 0 16px 12px; }
.app-search > [data-search] { display: flex; align-items: center; gap: 8px; width: 100%; max-width: none; min-width: 0; margin: 0; box-sizing: border-box; }
.app-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 4px 0 96px; overflow: hidden; }
.app-body > * { flex-shrink: 0; }
.app-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-h { margin: 0; padding: 0 16px; font-size: calc(17px * var(--yu-fs, 1)); display: flex; align-items: baseline; gap: 6px; }
.app-screen .app-top { display: block; padding: 0; margin: 0; gap: 0; height: auto; min-height: 0; position: static; border-radius: 0; }
.app-screen .dt-buy.app-hero { margin: 0 16px; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-content: start; }
.app-screen .app-hero .dt-gal { grid-row: span 3; }
.app-screen .app-hero .dt-main { aspect-ratio: 1 / 1; }
.app-screen .app-hero .dt-cat { align-self: end; }
.app-screen .dt-buy.app-hero h3 { font-size: calc(20px * var(--yu-fs, 1)); }
.app-screen .app-hero .dt-sub { align-self: start; font-size: calc(12px * var(--yu-fs, 1)); }
.app-screen .app-hero .dt-due, .app-screen .app-hero .dt-price, .app-screen .app-hero .dt-pack, .app-screen .app-hero .app-act { grid-column: 1 / -1; }
.app-screen .app-hero .dt-price b { font-size: calc(24px * var(--yu-fs, 1)); }
.app-screen .app-hero .app-act { grid-template-columns: minmax(0, 1fr); }
.app-screen .app-hero .dt-cta { padding-top: 10px; padding-bottom: 10px; }
.app-screen .app-chips { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow: hidden; gap: 8px; margin: 0; padding-left: 16px; padding-right: 16px; }
.app-screen .app-chips > span { flex: none; white-space: nowrap; }
.app-screen .app-cats { margin: 0 16px; }
.app-screen .app-cats .app-chips { padding-left: 0; padding-right: 0; }
.app-screen .app-rail { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 12px; padding: 0 16px; margin: 0; }
.app-screen .app-rail > * { flex: 0 0 248px; min-width: 0; }
.app-screen .app-list { margin: 0 16px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.app-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px 24px; background: inherit; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 14%, transparent); }
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: calc(11px * var(--yu-fs, 1)); }
.app-tab .ti { width: 52px; height: 30px; border-radius: calc(15px * var(--yu-r, 1)); display: grid; place-items: center; font-style: normal; }
.app-tab.on { font-weight: 700; }
.app-bd { display: inline-block; margin-left: 3px; min-width: 16px; padding: 0 4px; border-radius: calc(8px * var(--yu-r, 1)); font-size: calc(10px * var(--yu-fs, 1)); line-height: 16px; text-align: center; box-sizing: border-box; }
.dk-app .app-bd, .dk-app .app-tab.on .ti { background: var(--yc-b20, #f5a524); color: var(--yc-t33, #17130a); }
