/* 대지무역 · 데이터 하나로 사이트가 다시 만들어지는 데모 — 화면 스타일
   외부 라이브러리·웹폰트 0. PC/모바일 전환은 html[data-view] 하나로 바뀐다. */

:root {
  --ink: #0a111c;
  --ink2: #101b2b;
  --ink3: #16243a;
  --paper: #f2f4f7;
  --card: #ffffff;
  --line: #dde3ea;
  --line-d: #24354b;
  --text: #16202e;
  --muted: #5d6b7d;
  --muted-d: #9fb0c4;
  --gold: #c1903f;
  --gold-l: #f0d39a;
  --green: #1d8a5c;
  --amber: #b0741b;
  --grey: #79838f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 22, 38, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --switch-h: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: var(--switch-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 폭과 여백: 보기 모드에 따라 바뀐다 ─────────────────────────── */
.wrap { margin: 0 auto; }
html[data-view="pc"] .wrap { max-width: 1240px; padding: 0 40px; }
html[data-view="mo"] .wrap { max-width: 430px; padding: 0 18px; }
html[data-view="mo"] { background: #070d16; }
html[data-view="mo"] body { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }

/* 엔진이 켜지지 않아도(라이선스·로딩 실패) 글은 숨은 채로 두지 않는다 */
.pl-no-js [data-pl-reveal], html.nopl [data-pl-reveal] { opacity: 1 !important; transform: none !important; }

/* ── 머리 ─────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 17, 28, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #eef3f9;
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-l); letter-spacing: .12em; text-transform: uppercase; }
.top .tag { font-size: 12px; color: var(--muted-d); border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 12px; }
.top .spacer { flex: 1; }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 3px; }
.langs a { text-decoration: none; font-size: 12px; font-weight: 700; color: #c8d5e4; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.langs a[aria-current="true"] { background: var(--gold); color: #1b1205; }
html[data-view="mo"] .top .tag { display: none; }
html[data-view="mo"] .top .wrap { gap: 8px; padding: 0 14px; }
html[data-view="mo"] .brand em { display: none; }
html[data-view="mo"] .brand { font-size: 15px; }
html[data-view="mo"] .langs { padding: 2px; }
html[data-view="mo"] .langs a { font-size: 11px; padding: 4px 8px; }

/* ── 첫 화면 ──────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #f6f1e6;
  background: #0d1622;
}
.hero[data-pl-scene]::before { background: none; animation: none; }
.hero .shot { position: absolute; inset: 0; z-index: 0; }
.hero .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero .shot::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 14, 23, .94) 0%, rgba(8, 14, 23, .78) 38%, rgba(8, 14, 23, .38) 68%, rgba(8, 14, 23, .55) 100%),
    linear-gradient(0deg, rgba(8, 14, 23, .92) 0%, rgba(8, 14, 23, 0) 42%);
}
.hero .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; }
html[data-view="pc"] .hero { min-height: 600px; }
html[data-view="pc"] .hero .wrap { min-height: 600px; padding-top: 78px; padding-bottom: 44px; }
html[data-view="mo"] .hero { min-height: 560px; }
html[data-view="mo"] .hero .wrap { min-height: 560px; padding-top: 40px; padding-bottom: 26px; }
.kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-l);
}
.hero h1 {
  margin: 0 0 16px; font-weight: 800; letter-spacing: -.035em; line-height: 1.16;
  text-wrap: balance;
}
html[data-view="pc"] .hero h1 { font-size: 52px; max-width: 820px; }
html[data-view="mo"] .hero h1 { font-size: 27px; line-height: 1.25; }
.hero h1 u { text-decoration: none; color: var(--gold-l); box-shadow: inset 0 -.14em 0 rgba(193, 144, 63, .38); }
.hero .lede { margin: 0 0 26px; color: #d9e2ee; max-width: 660px; }
html[data-view="pc"] .hero .lede { font-size: 17px; }
html[data-view="mo"] .hero .lede { font-size: 15px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--gold); color: #1a1104; }
.btn.primary:hover { background: #d2a052; }
.btn.ghost { border-color: rgba(255, 255, 255, .28); color: #f2f6fb; background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .55); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.line { border-color: var(--line); background: #fff; color: var(--text); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
html[data-view="mo"] .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html[data-view="mo"] .stats li { min-width: 0; padding: 8px 9px; }
html[data-view="mo"] .stats b { font-size: 18px; }
html[data-view="mo"] .stats span { font-size: 10.5px; }
.stats li {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 10px 14px; min-width: 104px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stats span { font-size: 11.5px; color: #c9d6e5; letter-spacing: .02em; }

.aibadge {
  position: absolute; z-index: 3; right: 14px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #f4e8cf;
  background: rgba(8, 14, 23, .62); border: 1px solid rgba(240, 211, 154, .38);
  border-radius: 999px; padding: 5px 10px; letter-spacing: .01em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.aibadge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-l); display: inline-block; }
html[data-view="mo"] .hero .aibadge { top: 74px; bottom: auto; right: 12px; font-size: 10.5px; }

/* ── 공통 섹션 ─────────────────────────────────────────────── */
.sec { padding: 62px 0; scroll-margin-top: 66px; }
html[data-view="mo"] .sec { padding: 40px 0; }
#detail { scroll-margin-top: 66px; }
.sec-head { margin-bottom: 24px; }
.sec-head .kicker { color: var(--gold); }
h2 { margin: 0 0 10px; font-size: 27px; line-height: 1.3; letter-spacing: -.03em; font-weight: 800; }
html[data-view="mo"] h2 { font-size: 22px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 720px; }
html[data-view="pc"] .sec-head p { font-size: 15.5px; }
html[data-view="mo"] .sec-head p { font-size: 14.5px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  border-radius: 999px; padding: 4px 10px; border: 1px solid currentColor;
}
.pill.auto { color: #8a5a12; background: #fdf4e3; border-color: #ecd5a9; }
.pill.live { color: #146b47; background: #e9f7ef; border-color: #bfe6d1; }
.pill.sm { font-size: 10.5px; padding: 3px 8px; }

/* ── 데이터 편집실 ─────────────────────────────────────────── */
.studio { background: #e9edf2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-grid { display: grid; gap: 18px; align-items: start; }
html[data-view="pc"] .studio-grid { grid-template-columns: 400px minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.card-h b { font-size: 15px; letter-spacing: -.01em; }
.card-h .hint { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.card-b { padding: 18px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .lab { display: block; font-size: 12.5px; font-weight: 800; color: #46536a; margin-bottom: 7px; letter-spacing: .01em; }
select, input[type="number"] {
  width: 100%; min-height: 46px; padding: 0 12px; font: inherit; font-size: 15px;
  color: var(--text); background: #fff; border: 1px solid #c9d2dd; border-radius: 10px;
}
select:focus-visible, input:focus-visible, .seg button:focus-visible, .btn:focus-visible {
  outline: 2px solid #2f6fb2; outline-offset: 2px;
}
.input-row { display: flex; align-items: center; gap: 8px; }
.input-row input { flex: 1; }
.input-row .unit { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button {
  min-height: 42px; border-radius: 9px; border: 1px solid #c9d2dd; background: #fff;
  font-size: 13.5px; font-weight: 700; color: #46536a; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.acts { display: flex; gap: 8px; margin-top: 18px; }
.acts .btn { flex: 1; }
.delta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0;
  padding: 10px 12px; border-radius: 10px; background: #0f2436; color: #dfe9f4; font-size: 13.5px;
}
.delta .lab { font-size: 11px; font-weight: 800; color: var(--gold-l); letter-spacing: .04em; }
.delta .old { color: #9fb0c4; text-decoration: line-through; }
.delta .ar { color: var(--gold-l); font-weight: 800; }
.delta .new { font-weight: 800; color: #fff; background: rgba(240, 211, 154, .16); padding: 1px 6px; border-radius: 5px; }
.delta.on { animation: deltaIn 1.2s var(--ease); }
@keyframes deltaIn { 0% { box-shadow: 0 0 0 2px rgba(240, 211, 154, .6); } 100% { box-shadow: 0 0 0 2px rgba(240, 211, 154, 0); } }
.note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.note b { color: #46536a; }

/* 재생성 기록 */
.trace { background: var(--ink2); border-color: #1d2c42; color: #e9eff7; }
.trace .card-h { border-color: #22324a; }
.trace .card-h .hint { color: #93a6bd; }
.trace-total { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 6px; }
.trace-total b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--gold-l); line-height: 1; }
.trace-total span { font-size: 12.5px; color: #9db0c6; }
.trace-list { list-style: none; margin: 0; padding: 8px 10px 14px; }
.trace-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px; border-radius: 10px; border: 1px solid transparent;
}
.trace-list .ic {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); font-size: 12px; color: var(--gold-l); font-weight: 800;
}
.trace-list .nm { min-width: 0; }
.trace-list .nm b { display: block; font-size: 13.5px; font-weight: 700; }
.trace-list .nm span { display: block; font-size: 11.5px; color: #93a6bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-list .ms { font-size: 12px; color: #c6d4e4; font-variant-numeric: tabular-nums; }
.trace-list li.hit { animation: hit 1.9s var(--ease); border-color: rgba(240, 211, 154, .5); }
.trace-list li.hit .ms { color: var(--gold-l); }
@keyframes hit {
  0% { background: rgba(240, 211, 154, .26); }
  60% { background: rgba(240, 211, 154, .1); }
  100% { background: transparent; }
}

/* ── 매물 목록 ─────────────────────────────────────────────── */
.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.list-meta { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.list-meta b { color: #46536a; font-variant-numeric: tabular-nums; }
.cards { display: grid; gap: 16px; }
html[data-view="pc"] .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-view="mo"] .cards { grid-template-columns: 1fr; gap: 14px; }

.car {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(10, 22, 38, .06);
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
}
.car:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 22, 38, .13); border-color: #c5d0dd; }
.car .ph { position: relative; aspect-ratio: 4 / 3; background: #dfe4ea; overflow: hidden; }
.car .ph img { width: 100%; height: 100%; object-fit: cover; }
.car .ph .tag-ai {
  position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .02em;
  color: #fff; background: rgba(10, 17, 28, .62); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: 2px 7px;
}
.car .st {
  position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 3px 9px; color: #fff; background: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.car .st.예약중 { background: var(--amber); }
.car .st.판매완료 { background: #5d6674; }
.car .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car .nm { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.car .sp { font-size: 12.5px; color: var(--muted); }
.car .pr { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.car .pr b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.car .pr span { font-size: 12px; color: var(--muted); }
html[data-view="mo"] .car { flex-direction: row; align-items: stretch; }
html[data-view="mo"] .car .ph { width: 42%; aspect-ratio: auto; min-height: 128px; flex: none; }
html[data-view="mo"] .car .body { padding: 12px 13px; }
html[data-view="mo"] .car .nm { font-size: 15px; }
html[data-view="mo"] .car .pr { margin-top: 6px; padding-top: 0; }
html[data-view="mo"] .car .pr b { font-size: 17.5px; }

/* ── 차량 상세 ─────────────────────────────────────────────── */
.detail { display: none; }
.detail.on { display: block; }
.detail .back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #46536a; text-decoration: none; margin-bottom: 16px; }
.detail .back:hover { color: var(--ink); }
.detail-grid { display: grid; gap: 22px; align-items: start; }
html[data-view="pc"] .detail-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.detail .photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #dfe4ea; }
.detail .photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.detail h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.03em; line-height: 1.2; }
html[data-view="mo"] .detail h1 { font-size: 23px; }
.detail .sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.detail .price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.detail .price b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
html[data-view="mo"] .detail .price b { font-size: 27px; }
.detail .price span { font-size: 13px; color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec div { background: #fff; padding: 11px 13px; }
.spec dt { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.spec dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.detail .genline { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.detail .genline b { color: #46536a; }

/* ── 생성 결과물 ───────────────────────────────────────────── */
.artifacts { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #f7f8fa; font-size: 13px; font-weight: 700; color: #46536a; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pane { display: none; }
.pane.on { display: block; }
.pane-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pane-meta b { color: #46536a; font-variant-numeric: tabular-nums; }
pre.code {
  margin: 0; padding: 16px; border-radius: 12px; background: #0e1724; color: #d7e3f2;
  font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "D2Coding", monospace;
  overflow: auto; max-height: 340px; white-space: pre; tab-size: 2;
}
pre.code .k { color: #f0d39a; }
.urls { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.urls li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #fbfcfd; }
.urls .lc { font-size: 11px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 5px; padding: 2px 7px; flex: none; }
.urls a { font-size: 13px; color: #1d4f86; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urls a:hover { text-decoration: underline; }
.urls .st { margin-left: auto; font-size: 11px; color: var(--muted); flex: none; }

/* ── 왜 다른가 + 파이프라인 ────────────────────────────────── */
.why { background: var(--ink); color: #e8eef6; }
.why h2 { color: #fff; }
.why .kicker { color: var(--gold-l); }
.why .lede { color: #b8c6d7; max-width: 760px; margin: 0 0 30px; }
.why-grid { display: grid; gap: 16px; margin-bottom: 34px; }
html[data-view="pc"] .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-card { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px; }
.why-card b { display: block; font-size: 15.5px; margin-bottom: 6px; color: #fff; }
.why-card p { margin: 0; font-size: 13.5px; color: #a9bacc; }
.why-card .no { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--gold-l); display: block; margin-bottom: 8px; }

.pipe { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.pipe .node {
  flex: 1 1 150px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 12px 14px;
}
.pipe .node b { display: block; font-size: 13.5px; color: #fff; }
.pipe .node span { font-size: 11.5px; color: #9db0c6; }
.pipe .node.src { border-color: rgba(240, 211, 154, .5); background: rgba(240, 211, 154, .08); }
.pipe .arr { display: grid; place-items: center; color: var(--gold-l); font-size: 18px; flex: 0 0 auto; }
html[data-view="mo"] .pipe { flex-direction: column; }
html[data-view="mo"] .pipe .arr { transform: rotate(90deg); }
.pipe-multi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── 바닥 ─────────────────────────────────────────────────── */
.foot { background: #070d16; color: #93a6bd; padding: 34px 0 26px; font-size: 12.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.foot b { color: #dfe8f2; font-weight: 700; }
.foot .eng { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.foot .eng i { width: 7px; height: 7px; border-radius: 50%; background: #6c7a8b; display: inline-block; }
.foot .eng[data-state="ok"] i { background: #35c184; box-shadow: 0 0 0 3px rgba(53, 193, 132, .18); }
.foot .eng[data-state="no"] i { background: #d4553f; }

/* ── PC/모바일 전환 (항상 화면 아래 고정) ──────────────────── */
.viewbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: var(--switch-h);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(7, 13, 22, .95); border-top: 1px solid rgba(255, 255, 255, .1);
  color: #dbe6f2; padding: 0 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html[data-view="mo"] .viewbar { left: 50%; right: auto; transform: translateX(-50%); width: min(100%, 430px); }
.viewbar .now { font-size: 11.5px; color: #93a6bd; }
.viewbar button {
  min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(240, 211, 154, .5); background: rgba(240, 211, 154, .1);
  color: var(--gold-l); font-size: 13px; font-weight: 800;
}
.viewbar button:hover { background: rgba(240, 211, 154, .2); }

/* ── 순간 표시(다시 만듦) ──────────────────────────────────── */
.regen { position: relative; }
.regen.fresh { animation: fresh 1.8s var(--ease); }
@keyframes fresh {
  0% { box-shadow: 0 0 0 3px rgba(193, 144, 63, .55), 0 0 26px rgba(193, 144, 63, .3); }
  100% { box-shadow: 0 0 0 3px rgba(193, 144, 63, 0); }
}
.toast {
  position: fixed; left: 50%; bottom: calc(var(--switch-h) + 14px); transform: translate(-50%, 12px);
  z-index: 95; max-width: min(92vw, 520px);
  background: #13352a; color: #eafff4; border: 1px solid #2c7a5c;
  border-radius: 12px; padding: 10px 16px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.updated-at { font-variant-numeric: tabular-nums; }

/* 공통 유틸 */
.hide { display: none !important; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car, .btn, .toast { transition: none; }
  .trace-list li.hit, .regen.fresh { animation: none; }
}
