/* CardVault · 师傅端效果图 2026
   Motion: Fast 120 / Normal 180 / Page 280 / Emphasis 400 / Ceremony 800 */

:root {
  --bg: #0A0B0D;
  --bg-2: #111216;
  --elev: #17181D;
  --elev-2: #1E1F26;
  --elev-3: #262730;
  --line: rgba(243, 238, 228, 0.07);
  --line-2: rgba(243, 238, 228, 0.13);
  --line-gold: rgba(201, 168, 108, 0.35);
  --text: #F3EEE4;
  --text-2: #A39C90;
  --text-3: #6E695F;
  --gold: #C9A86C;
  --gold-2: #E8D5A3;
  --gold-soft: rgba(201, 168, 108, 0.14);
  --teal: #7DBBB4;
  --teal-soft: rgba(125, 187, 180, 0.14);
  --amber: #D4A85A;
  --amber-soft: rgba(212, 168, 90, 0.14);
  --sage: #96B196;
  --sage-soft: rgba(150, 177, 150, 0.14);
  --iris: #A8A0C4;
  --iris-soft: rgba(168, 160, 196, 0.14);
  --rose: #C98982;
  --danger: #C46B63;
  --ok: #7FAE8A;

  --font-serif: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;


  --fs-xs: 11px;   /* kicker / badge */
  --fs-sm: 12px;   /* helper, muted */
  --fs-body: 14px; /* default UI */
  --fs-md: 15px;   /* list primary */
  --fs-lg: 17px;   /* section title */
  --fs-xl: 22px;   /* screen title */
  --fs-display: 28px; /* hero / serif price */
  --lh-tight: 1.25;
  --lh-body: 1.45;
  --lh-relaxed: 1.6;
  --track-kicker: 0.14em;

  --t-fast: 120ms;
  --t-normal: 180ms;
  --t-page: 280ms;
  --t-emphasis: 400ms;
  --t-ceremony: 800ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --screen-w: 390px;
  --screen-h: 844px;
  --bezel: 12px;
  --radius-device: 54px;
  --radius-screen: 44px;
  --safe-t: 54px;
  --safe-b: 28px;
  --tab-h: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body.app-body {
  min-height: 100%;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(201, 168, 108, 0.07), transparent 55%),
    radial-gradient(700px 400px at 80% 110%, rgba(125, 187, 180, 0.04), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

body.app-body.embed {
  padding: 0;
  background: transparent;
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
}

/* ========== Device ========== */
.device {
  width: calc(var(--screen-w) + var(--bezel) * 2);
  height: calc(var(--screen-h) + var(--bezel) * 2);
  padding: var(--bezel);
  border-radius: var(--radius-device);
  background: linear-gradient(160deg, #2a2b30 0%, #0c0d10 40%, #15161a 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 2px #070708,
    0 30px 80px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  flex: 0 0 auto;
}
.device::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 51px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.device-screen {
  width: var(--screen-w);
  height: var(--screen-h);
  border-radius: var(--radius-screen);
  overflow: hidden;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.island::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a3a4a, #061018 70%);
  box-shadow: 0 0 0 2px #000;
}

.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--safe-t);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 10px;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  color: var(--text);
}
.status-bar .sb-right { display: flex; gap: 6px; align-items: center; }
.status-bar svg { display: block; }

.home-ind {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 100px;
  background: rgba(243,238,228,0.28);
  z-index: 50;
  pointer-events: none;
}

/* ========== App shell ========== */
.app {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.screen.is-on {
  display: flex;
  animation: screenIn var(--t-page) var(--ease);
}
@keyframes screenIn {
  from { opacity: 0; transform: translate3d(14px, 0, 0); }
  to { opacity: 1; transform: none; }
}
.screen.is-on.back-in {
  animation-name: screenBack;
}
@keyframes screenBack {
  from { opacity: 0; transform: translate3d(-12px, 0, 0); }
  to { opacity: 1; transform: none; }
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(var(--safe-t) + 6px) 20px 20px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.screen.has-tab .scroll { padding-bottom: 132px; }
.screen.is-full .scroll { padding-top: calc(var(--safe-t) + 48px); }
.screen.is-imm .scroll { padding: 0; }

/* Tab bar — Apple Store floating pill */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px max(14px, calc(var(--safe-b) - 6px));
  pointer-events: none;
  background: transparent;
  border: 0;
  height: auto;
  min-height: var(--tab-h);
}
.app[data-shell="main"] .tabbar { display: flex; }
.tabbar-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2px;
  padding: 8px 6px 10px;
  border-radius: 999px;
  background: rgba(44, 44, 46, 0.78);
  border: 0.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 999px;
  color: rgba(245,245,247,0.92);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background 160ms ease;
}
.tab::before {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
  z-index: 0;
}
.tab svg,
.tab .tab-label,
.tab .badge-dot { position: relative; z-index: 1; }
.tab svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab .tab-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab.is-on {
  color: var(--gold);
}
.tab.is-on::before {
  background: rgba(0, 0, 0, 0.28);
}
.tab:active { opacity: 0.65; }
.tab .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  position: absolute;
  margin-left: 14px;
  margin-top: 1px;
}

/* Nav bars */
.topbar {
  position: absolute;
  top: var(--safe-t);
  left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 8px;
  z-index: 20;
}
.topbar .title {
  position: absolute;
  left: 52px; right: 52px;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ico-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--t-fast);
}
.ico-btn:hover { background: var(--elev-2); }
.ico-btn svg { width: 22px; height: 22px; }

/* ========== Shared bits ========== */
.kicker {
  font-size: var(--fs-xs);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  line-height: var(--lh-tight);
}
.h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
}
.h2 {
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
}
.muted { color: var(--text-2); font-size: var(--fs-sm); line-height: var(--lh-body); }
.tiny { color: var(--text-3); font-size: var(--fs-xs); letter-spacing: 0.04em; line-height: var(--lh-tight); }

.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.sec h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
  margin: 0;
}
.sec .more { font-size: var(--fs-sm); color: var(--gold); line-height: var(--lh-tight); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--elev-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.badge.st-repair { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.badge.st-accept { color: var(--teal); background: var(--teal-soft); border-color: transparent; }
.badge.st-grade { color: var(--gold-2); background: var(--gold-soft); border-color: transparent; }
.badge.st-ok { color: var(--sage); background: var(--sage-soft); border-color: transparent; }
.badge.st-vault { color: var(--iris); background: var(--iris-soft); border-color: transparent; }
.badge.st-ship { color: var(--text-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  height: auto;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
  text-align: center;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(180deg, #E4C98A 0%, #C9A86C 48%, #B08F52 100%);
  color: #1A1408;
  box-shadow: 0 8px 20px rgba(201,168,108,0.18);
  min-height: 48px;
  padding: 12px 18px;
}
.btn-ghost {
  background: var(--elev-2);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-line {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; align-items: stretch; }
.btn-row .btn { flex: 1; min-width: 0; }
.btn-sm {
  min-height: 36px;
  height: auto;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: var(--fs-sm);
}

.sheet-actions {
  padding: 12px 20px calc(var(--safe-b) + 8px);
  background: linear-gradient(180deg, transparent, var(--bg) 20%);
}

/* Cards as objects */
.card-face {
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1e;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-face.foil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.16) 45%, transparent 60%);
  mix-blend-mode: soft-light;
  animation: foil 4.5s var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes foil {
  0% { transform: translateX(-40%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(40%); opacity: 0; }
}

/* ========== HOME ========== */
.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand i { font-style: italic; color: var(--gold-2); font-weight: 500; }
.greet { margin-top: 10px; }
.greet .h1 { font-size: var(--fs-xl); }
.greet .muted { margin-top: 4px; }

.vault {
  position: relative;
  border-radius: 20px;
  padding: 16px 18px 14px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(201,168,108,0.20), transparent 42%),
    linear-gradient(180deg, #1C1B17 0%, #12110F 100%);
  border: 1px solid rgba(201,168,108,0.28);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.32),
    0 0 0 1px rgba(201,168,108,0.08),
    0 0 48px rgba(201,168,108,0.10),
    inset 0 1px 0 rgba(232,213,163,0.12);
}
.vault::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  right: -40px; top: -50px;
  background: radial-gradient(circle, rgba(232,213,163,0.22), transparent 68%);
  pointer-events: none;
}
.vault::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  left: -36px; bottom: -50px;
  background: radial-gradient(circle, rgba(201,168,108,0.10), transparent 70%);
  pointer-events: none;
}
.vault .kicker { margin-bottom: 8px; }
.vault .val {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-display) + 8px);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #F6E7C3, #C9A86C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vault .delta { margin-top: 8px; font-size: var(--fs-sm); color: var(--sage); }
.vault-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(243,238,228,0.08);
}
.vault-meta div { display: flex; flex-direction: column; gap: 3px; }
.vault-meta b { font-size: var(--fs-lg); font-weight: 500; }
.vault-meta span { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; }

.todo-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.todo-row::-webkit-scrollbar { display: none; }
.todo {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  text-align: left;
}
.todo b { display: block; font-size: 18px; font-weight: 500; margin: 2px 0 0; }
.todo.is-hot {
  background: linear-gradient(160deg, rgba(125,187,180,0.22), rgba(125,187,180,0.08));
  border-color: rgba(125,187,180,0.45);
  box-shadow:
    0 0 0 1px rgba(125,187,180,0.12),
    0 8px 20px rgba(125,187,180,0.12);
  position: relative;
}
.todo.is-hot::before {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(125,187,180,0.55);
  animation: todoPulse 1.6s var(--ease-soft) infinite;
}
@keyframes todoPulse {
  0% { box-shadow: 0 0 0 0 rgba(125,187,180,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(125,187,180,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,187,180,0); }
}
.todo.is-hot .tiny { color: var(--teal); }
.todo.is-hot b { color: var(--text); }

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick a, .quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 16px;
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background var(--t-fast);
}
.quick a:active, .quick button:active { background: var(--elev-2); }
.q-ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold-2);
}
.q-ico svg { width: 18px; height: 18px; }

.order-h {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 2px 20px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.order-h::-webkit-scrollbar { display: none; }
.oc {
  flex: 0 0 272px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--elev);
  border: 1px solid var(--line);
  text-align: left;
  color: inherit;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.oc:last-child {
  margin-right: 12px;
}
.oc .thumb { width: 56px; height: 78px; flex: 0 0 auto; border-radius: 6px; }
.oc .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.oc .name { font-size: 14px; font-weight: 500; }
.oc .sub { font-size: 11px; color: var(--text-3); }
.oc .step { margin-top: auto; font-size: 12px; color: var(--text-2); }

/* ========== ALBUM ========== */
.pick-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(201,168,108,0.18), rgba(201,168,108,0.06));
  border: 1px solid rgba(201,168,108,0.4);
  box-shadow: 0 8px 24px rgba(201,168,108,0.08);
  animation: bannerIn var(--t-emphasis) var(--ease);
}
.pick-banner[hidden] { display: none !important; }
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.pick-ico {
  color: var(--gold-2);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 1px;
}
.pick-banner b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.pick-banner p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.45;
}
.pick-dismiss {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.pick-dismiss:hover { background: rgba(255,255,255,0.06); color: var(--text); }
#s-album.is-pick .gc[data-go="detail"],
#s-album.is-pick .gc[data-go="detail-mew"] {
  outline: 1px solid rgba(201,168,108,0.35);
  outline-offset: 2px;
  border-radius: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  margin: 8px 0 12px;
}
.search input { flex: 1; outline: none; color: var(--text); }
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--elev);
  border: 1px solid var(--line);
}
.chip.is-on {
  color: #1A1408;
  background: linear-gradient(180deg, #E4C98A, #C9A86C);
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}
.gc {
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc .face { aspect-ratio: 63 / 88; }
.gc .nm { font-size: 13px; font-weight: 500; }
.gc .sub { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; }

/* ========== DETAIL ========== */
.detail-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
  perspective: 900px;
}
.hero-stage {
  position: relative;
  width: 210px;
  height: 294px;
  transform-style: preserve-3d;
  perspective: 900px;
}
.detail-hero .face,
.detail-hero .hero-card {
  width: 210px;
  height: 294px;
  border-radius: 12px;
}
.hero-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform var(--t-normal) var(--ease);
  box-shadow:
    0 22px 48px rgba(0,0,0,0.55),
    0 8px 16px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 40px rgba(201,168,108,0.08);
  animation: heroFloat 5.5s var(--ease-soft) infinite;
}
.hero-stage.is-tilting .hero-card {
  animation: none;
  transition: transform 60ms linear;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-3deg); }
  50% { transform: translateY(-6px) rotateX(-1deg) rotateY(3deg); }
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  bottom: -18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45), transparent 70%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}
.holo-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      transparent 20%,
      rgba(255,255,255,0.08) 35%,
      rgba(232,213,163,0.22) 48%,
      rgba(125,187,180,0.12) 55%,
      transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
  background-size: 220% 220%;
  animation: holoSweep 4.8s var(--ease-soft) infinite;
}
@keyframes holoSweep {
  0% { background-position: 0% 40%; opacity: 0.35; }
  40% { opacity: 0.95; }
  100% { background-position: 100% 60%; opacity: 0.4; }
}
.btn-gold.is-pulse {
  animation: ctaPulse var(--t-ceremony) var(--ease) 1;
  box-shadow: 0 8px 28px rgba(201,168,108,0.35);
}
@keyframes ctaPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.detail-id { text-align: center; margin-top: 16px; }
.detail-id .h1 { font-size: var(--fs-xl); }
.detail-id .muted { margin-top: 4px; }
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
}
.price-box .p {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold-2);
}
.rows { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 16px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  width: 100%;
}
.row .ic {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--elev-2);
  color: var(--gold);
}
.row .ic svg { width: 16px; height: 16px; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b {
  display: block;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .tx span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: var(--lh-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .chev { color: var(--text-3); flex-shrink: 0; }

/* ========== SCAN ========== */
.scan {
  background: #050505;
  color: #fff;
}
.scan-cam {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(20,18,14,0.2), rgba(0,0,0,0.55) 70%),
    #0c0c0e;
}
.scan-desk {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 80px;
}
.scan-desk .ghost-card {
  width: 236px;
  height: 330px;
  border-radius: 12px;
  opacity: 0.92;
  filter: saturate(0.85) brightness(0.78);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.vf {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 252px;
  height: 352px;
  transform: translate(-50%, -50%);
  border-radius: 16px;
}
.vf i {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--gold-2);
}
.vf i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.vf i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.vf i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.vf i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-line {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 16px var(--gold);
  animation: scanMove 2.2s var(--ease-soft) infinite;
}
@keyframes scanMove {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}
.scan-hint {
  position: absolute;
  left: 0; right: 0;
  top: calc(46% + 196px);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(243,238,228,0.7);
}
.scan-tools {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 5;
}
.shutter {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: grid; place-items: center;
}
.shutter span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
}
.scan-tools .side {
  width: 48px; color: #fff; font-size: 11px; letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.scan.is-lock .scan-line { animation: none; top: 50%; }
.scan.is-lock .vf { box-shadow: 0 0 0 2000px rgba(0,0,0,0.45); }
.result-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  padding: 14px 20px calc(var(--safe-b) + 12px);
  transform: translateY(110%);
  transition: transform var(--t-emphasis) var(--ease);
  z-index: 8;
  border-top: 1px solid var(--line-2);
}
.scan.is-lock .result-sheet { transform: none; }
.handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: var(--line-2); margin: 0 auto 14px;
}
.rs-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.rs-row .face { width: 72px; height: 100px; border-radius: 6px; flex: 0 0 auto; }

/* ========== DAMAGE ========== */
.dmg-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}
.dmg-wrap {
  position: relative;
  width: 230px;
  height: 322px;
}
.dmg-wrap .face { width: 100%; height: 100%; border-radius: 10px; }
.pin {
  position: absolute;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: linear-gradient(160deg, #D4847C, #C46B63 55%, #A8554E);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  box-shadow:
    0 0 0 3px rgba(196,107,99,0.28),
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
  cursor: pointer;
  border: 0;
  z-index: 2;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pin i {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(196,107,99,0.45);
  opacity: 0.7;
  pointer-events: none;
  animation: pinRing 2s var(--ease-soft) infinite;
}
.pin.is-on i {
  border-color: rgba(201,168,108,0.55);
  animation-duration: 1.4s;
}
@keyframes pinRing {
  0% { transform: scale(0.85); opacity: 0.8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pin:active { transform: scale(0.92); }
.pin.is-on {
  background: linear-gradient(160deg, #E8D5A3, #C9A86C 55%, #B08F52);
  color: #1A1408;
  box-shadow:
    0 0 0 3px rgba(201,168,108,0.35),
    0 10px 18px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transform: scale(1.08);
}
.dmg-list { display: flex; flex-direction: column; gap: 8px; }
.dmg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  text-align: left;
  color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.dmg-item.is-on { border-color: var(--line-gold); background: var(--gold-soft); }
.dmg-item .n {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  flex: 0 0 auto;
}
.dmg-item .dmg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dmg-item b { font-size: 13px; font-weight: 500; display: block; color: var(--text); }
.dmg-item .sev { font-size: 11px; letter-spacing: 0.02em; }
.dmg-item.sev-low .n { background: rgba(150,177,150,0.22); color: var(--sage); }
.dmg-item.sev-low .sev { color: var(--sage); }
.dmg-item.sev-mid .n { background: rgba(212,168,90,0.22); color: var(--amber); }
.dmg-item.sev-mid .sev { color: var(--amber); }
.dmg-item.sev-high .n { background: rgba(196,107,99,0.22); color: var(--danger); }
.dmg-item.sev-high .sev { color: var(--danger); }
.dmg-item.is-on .n { background: var(--gold); color: #1A1408; }
.dmg-item span { font-size: 11px; color: var(--text-3); }
.stepper {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.stepper b { color: var(--gold-2); font-weight: 500; }

/* ========== PLAN ========== */
.plan-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.plan-card .face { width: 52px; height: 72px; border-radius: 6px; }
.opt {
  width: 100%;
  text-align: left;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: var(--elev);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  color: inherit;
  position: relative;
}
.opt.is-on {
  border-color: rgba(201,168,108,0.45);
  background: linear-gradient(180deg, rgba(201,168,108,0.1), var(--elev));
}
.opt .tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 7px;
  border-radius: 100px;
}
.opt h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.opt p { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.opt .fee {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-2);
}
.master {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
}
.av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #3a3428, #1a1814);
  display: grid; place-items: center;
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 18px;
}
.quote {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
}
.quote.total { color: var(--text); font-size: 15px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.quote.total b { font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--gold-2); font-weight: 500; }

/* ========== ORDER ========== */
.tl { position: relative; padding: 8px 0 8px 8px; }
.tl::before {
  content: "";
  position: absolute;
  left: 15px; top: 18px; bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line-2) 70%);
}
.tn {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}
.tn .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--elev-3);
  border: 1px solid var(--line-2);
  margin-top: 2px;
  z-index: 1;
}
.tn.done .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.tn.now .dot {
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
.tn.now h4 { color: var(--gold-2); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,108,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(201,168,108,0.06); }
}
.tn h4 { font-size: 14px; font-weight: 500; }
.tn .when { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.tn p { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.ev {
  display: flex; gap: 8px; margin-top: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(201,168,108,0.06);
  border: 1px solid rgba(201,168,108,0.18);
}
.ev.is-highlight {
  box-shadow: inset 0 0 0 1px rgba(201,168,108,0.08);
}
.ev img, .ev .ph {
  width: 58px; height: 58px; border-radius: 9px; object-fit: cover;
  background: var(--elev-2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
}
.ev .ph {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  background: linear-gradient(160deg, var(--elev-3), var(--elev-2));
  border: 1px dashed rgba(201,168,108,0.35);
}

/* ========== ACCEPT / BA ========== */
.ba-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}
#s-accept.is-on .ba-stage {
  animation: baEnter var(--t-ceremony) var(--ease);
}
@keyframes baEnter {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.ba {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  aspect-ratio: 63 / 88;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  box-shadow:
    0 20px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(201,168,108,0.18),
    0 0 36px rgba(201,168,108,0.08);
  touch-action: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  transition: width 40ms linear;
}
.ba-before-clip img {
  width: 280px;
  max-width: none;
  height: 100%;
  filter: saturate(0.35) contrast(0.82) sepia(0.62) brightness(0.72);
}
.ba-before-clip .wear {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 36%, rgba(255,255,255,0.22) 37%, transparent 38.5%),
    linear-gradient(28deg, transparent 58%, rgba(40,20,10,0.28) 59%, transparent 61%),
    radial-gradient(18px 14px at 12% 10%, rgba(255,255,255,0.35), transparent 70%),
    radial-gradient(16px 12px at 90% 88%, rgba(255,255,255,0.3), transparent 70%),
    repeating-linear-gradient(-22deg, transparent, transparent 9px, rgba(255,255,255,0.07) 10px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(232,213,163,0.2), #E8D5A3 20%, #C9A86C 50%, #E8D5A3 80%, rgba(232,213,163,0.2));
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 0 12px rgba(201,168,108,0.35);
  pointer-events: none;
  transition: left 40ms linear;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg, #F3E6C4, #C9A86C 55%, #A8894A);
  color: #1A1408;
  display: grid; place-items: center;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.4),
    0 0 0 3px rgba(201,168,108,0.35),
    inset 0 1px 0 rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
}
.ba-knob svg { width: 18px; height: 18px; }
.ba-label {
  position: absolute;
  top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(10,11,13,0.62);
  color: #F3EEE4;
  border: 1px solid rgba(201,168,108,0.35);
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.ba-label.l { left: 10px; color: var(--text-2); }
.ba-label.r {
  right: 10px;
  color: var(--gold-2);
  border-color: rgba(201,168,108,0.55);
  background: rgba(26,20,8,0.55);
}
.ba-range {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  width: 100%;
  height: 100%;
}

.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  max-width: 34em;
}

/* ========== MESSAGES / ME ========== */
.msg {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  color: inherit;
}
.msg .av { flex: 0 0 auto; }
.msg b { font-size: 14px; font-weight: 500; }
.msg p { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.msg .t { font-size: 11px; color: var(--text-3); margin-left: auto; }

.me-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; }
.me-head .av { width: 56px; height: 56px; font-size: 22px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.stats div {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--elev);
  text-align: center;
  border: 1px solid var(--line);
}
.stats b { display: block; font-size: 18px; font-weight: 500; }
.stats span { font-size: 11px; color: var(--text-3); }

/* history */
.hy { padding: 8px 0; }
.hy-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; }
.hy-item .d { font-size: 11px; color: var(--text-3); padding-top: 2px; }
.hy-item h4 { font-size: 14px; font-weight: 500; }
.hy-item p { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  background: rgba(28,29,35,0.94);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity var(--t-emphasis) var(--ease), transform var(--t-emphasis) var(--ease);
  white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* album filter */
.gc.is-filtered-out,
.gc[hidden] { display: none !important; }

/* accept doubt flash */
.btn.is-flash {
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(201,168,108,0.35);
  border-color: var(--gold);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* me subpages */
.addr-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.addr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.addr-top b { font-weight: 500; font-size: 15px; }
.addr-phone { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.addr-line { font-size: 13px; color: var(--text); line-height: 1.5; margin-top: 8px; }

.toggle-row { cursor: default; }
.toggle {
  --w: 42px;
  --h: 26px;
  width: var(--w);
  height: var(--h);
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.06);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfc8bc;
  transition: transform 0.2s ease, background 0.2s ease;
}
.toggle.is-on {
  background: rgba(201,168,108,0.28);
  border-color: rgba(201,168,108,0.55);
}
.toggle.is-on::after {
  transform: translateX(16px);
  background: var(--gold);
}

/* ========== STUDIO / BOARD ========== */
body.studio {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(201,168,108,0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
.studio-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 16px;
  background: linear-gradient(180deg, rgba(10,11,13,0.96), rgba(10,11,13,0.86) 70%, transparent);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.studio-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.studio-brand .logo {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
}
.studio-brand .logo i { font-style: italic; color: var(--gold-2); }
.studio-brand em {
  font-style: normal;
  font-size: var(--fs-sm);
  letter-spacing: var(--track-kicker);
  color: var(--text-3);
  line-height: var(--lh-tight);
}
.modes {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,108,0.28);
  background: rgba(12,13,16,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  pointer-events: auto;
}
.modes a.nav-link,
.modes button { pointer-events: auto; position: relative; z-index: 1; }
.modes a.nav-link,
.modes button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-2, rgba(243,238,228,0.55));
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms, background 160ms, filter 160ms;
}
.modes a.nav-link:hover,
.modes button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.modes button.is-on,
.modes a.nav-link.is-on {
  color: #1a140c;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 16px rgba(201,168,108,0.28);
}
.modes button.is-on:hover,
.modes a.nav-link.is-on:hover { filter: brightness(1.05); color: #1a140c; }
.modes a.nav-link.dim { color: rgba(243,238,228,0.45); }
.modes .modes-seg {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(243,238,228,0.12);
  flex: 0 0 auto;
}
.flow-hint {
  padding: 0 28px 10px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  letter-spacing: 0.02em;
  line-height: var(--lh-body);
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.flow-hint b { color: var(--gold-2); font-weight: 500; }

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 16px;
  padding: 12px 28px 110px;
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  justify-items: center;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  color: inherit;
}
.shot-phone {
  width: 207px;
  height: 434px;
  overflow: hidden;
  border-radius: 27px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  background: #0c0d10;
}
.shot iframe {
  width: 414px;
  height: 868px;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}
.shot .cap {
  text-align: center;
}
.shot .cap b {
  display: block;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
}
.shot .cap span { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; line-height: var(--lh-body); }
.shot:hover .cap b { color: var(--gold-2); }

/* PC mouse: album / hero / board previews */
@media (hover: hover) and (pointer: fine) {
  .hero-stage { cursor: grab; }
  .hero-stage.is-tilting { cursor: grabbing; }
  .gc {
    position: relative;
    transition: transform 180ms var(--ease, ease);
  }
  .gc .face {
    transition: transform 180ms var(--ease, ease), box-shadow 180ms var(--ease, ease);
  }
  .gc:hover {
    z-index: 3;
    transform: translateY(-4px);
  }
  .gc:hover .face {
    transform: scale(1.04);
    box-shadow:
      0 16px 32px rgba(0,0,0,0.45),
      0 0 0 1px rgba(255,255,255,0.1),
      0 0 28px rgba(201,168,108,0.18);
  }
  .case-row .face,
  .plan-card .face,
  .rs-row .face {
    transition: transform 180ms var(--ease, ease), box-shadow 180ms var(--ease, ease);
  }
  .case-row:hover .face,
  .plan-card:hover .face {
    transform: scale(1.03);
    box-shadow: 0 10px 22px rgba(0,0,0,0.4);
  }
  .shot {
    transition: transform 200ms var(--ease, ease);
  }
  .shot-phone {
    transition: transform 200ms var(--ease, ease), box-shadow 200ms var(--ease, ease);
  }
  .shot:hover {
    z-index: 2;
  }
  .shot:hover .shot-phone {
    transform: translateY(-6px) scale(1.035);
    box-shadow: 0 26px 52px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,168,108,0.25);
  }
}


.play {
  display: none;
  grid-template-columns: 220px 1fr 260px;
  gap: 16px 20px;
  padding: 8px 28px 40px;
  align-items: stretch;
  min-height: 0;
}
body.studio[data-mode="play"] {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.studio[data-mode="play"] .studio-top,
body.studio[data-mode="play"] .flow-hint {
  flex-shrink: 0;
}
body.studio[data-mode="play"] .board { display: none; }
body.studio[data-mode="play"] .play {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 28px 96px;
  overflow: hidden;
}
body.studio[data-mode="board"] {
  height: auto;
  overflow: auto;
  display: block;
}
body.studio[data-mode="board"] .board { display: grid; }
body.studio[data-mode="board"] .play { display: none; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,108,0.35) transparent;
}
.nav-list::-webkit-scrollbar { width: 6px; }
.nav-list::-webkit-scrollbar-thumb {
  background: rgba(201,168,108,0.35);
  border-radius: 999px;
}
.nav-list button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
  flex-shrink: 0;
}
.nav-list button.is-on { background: var(--elev); color: var(--text); }
.nav-list button small { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; line-height: var(--lh-body); }
.play-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.play-stage iframe {
  width: 414px;
  height: 868px;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}
.anno {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.anno h4 { color: var(--text); font-size: 15px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.06em; }
.anno ol { padding-left: 18px; }
.anno li { margin: 6px 0; }

@media (max-width: 980px) and (min-width: 721px) {
  .play { grid-template-columns: 1fr; }
  body.studio[data-mode="play"] .play {
    overflow-y: auto;
  }
  .play-stage { order: -1; max-height: 56vh; }
  .nav-list { max-height: 40vh; }
}

.screen.has-dock .scroll { padding-bottom: 128px; }
.screen.has-dock.dock-quote .scroll { padding-bottom: 156px; }
body.embed { display: flex; align-items: center; justify-content: center; }
body.embed .device { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 2px #070708, inset 0 1px 0 rgba(255,255,255,0.12); }

/* 手机交互全屏：去掉外框，铺满 iframe */
body.fill {
  margin: 0 !important;
  min-height: 100%;
  height: 100%;
  background: var(--bg);
  display: block !important;
}
body.fill .device {
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh;
  padding: 0 !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  box-shadow: none !important;
}
body.fill .device::before { display: none !important; }
body.fill .device-screen {
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh;
  border-radius: 0 !important;
}
body.fill .island {
  top: max(11px, env(safe-area-inset-top));
}

body.fill .status-bar,
body.fill .island {
  display: none !important;
}
body.fill {
  --safe-t: max(12px, env(safe-area-inset-top, 0px));
}

/* H5 全屏：整页锁视口，tabbar 钉在屏幕底部 */
body.fill {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100dvh;
}
html:has(body.fill) {
  height: 100%;
  overflow: hidden;
}
body.fill .device,
body.fill .device-screen {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body.fill .app {
  inset: 0;
  height: 100% !important;
  max-height: 100dvh;
  overflow: hidden;
}
body.fill .tabbar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
}
body.fill .screen.has-tab .scroll {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}
body.fill .home-indicator {
  display: none !important;
}




.dock-quote .sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dock-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-2);
}
.dock-sum b {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold-2);
  font-weight: 500;
}
.ba-knob svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 全屏 / 宽屏：内容居中，并加列数吃满宽度 */
@media (min-width: 1500px) {
  .studio-top,
  .flow-hint,
  .board {
    max-width: 1640px;
  }
  .board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1800px) {
  .studio-top,
  .flow-hint,
  .board {
    max-width: 1960px;
  }
  .board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.tab { position: relative; }
.tab .badge-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #F5F5F7;
  color: #1C1C1E;
  border: 0;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.tab .badge-dot:empty {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  background: #FF453A;
  top: 8px;
  right: calc(50% - 14px);
}



/* ========== STUDIO MOBILE ==========
   手机上画板机位墙不适合；交互铺满，画板改为页面目录。 */
@media (max-width: 720px) {
  html { overflow-x: hidden; }
  body.studio {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .studio-top,
  .flow-hint,
  .board,
  body.studio[data-mode="play"] .play {
    max-width: none !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .studio-top { padding: 12px 14px 8px; }
  .studio-brand .logo { font-size: 24px; }
  .flow-hint {
    padding: 0 14px 8px;
    font-size: 12px;
  }

  /* 画板：隐藏 iframe 机位，改成可点目录卡 */
  .board {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    padding: 8px 14px 120px;
    justify-items: stretch;
  }
  .shot {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(243,238,228,0.08);
  }
  .shot-phone { display: none !important; }
  .shot .cap {
    text-align: left;
    width: 100%;
  }
  .shot .cap b {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .shot .cap span { font-size: 11px; }
  .shot:active { background: rgba(201,168,108,0.12); }

  /* 交互：接近真机全屏预览 */
  body.studio[data-mode="play"] {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.studio.is-phone[data-mode="play"] .studio-top,
  body.studio.is-phone[data-mode="play"] .flow-hint,
  body.studio.is-phone[data-mode="play"] .anno {
    display: none !important;
  }
  body.studio[data-mode="play"] .play {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 64px;
    gap: 0;
    overflow: hidden;
  }
  body.studio.is-phone[data-mode="play"] .nav-list {
    order: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    max-height: none !important;
    width: 100%;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(243,238,228,0.08);
    background: rgba(10,11,13,0.92);
  }
  body.studio.is-phone[data-mode="play"] .nav-list::-webkit-scrollbar { display: none; }
  body.studio.is-phone[data-mode="play"] .nav-list button {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(243,238,228,0.1);
    background: rgba(255,255,255,0.04);
    font-size: 12px;
    white-space: nowrap;
  }
  body.studio.is-phone[data-mode="play"] .nav-list button small { display: none; }
  body.studio.is-phone[data-mode="play"] .nav-list button.is-on {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #1a140c;
    border-color: transparent;
  }
  body.studio.is-phone[data-mode="play"] .play-stage {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    width: 100%;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
  }
  body.studio.is-phone[data-mode="play"] .play-stage iframe {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: #0A0B0D;
  }

  .modes {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    padding: 5px;
    gap: 3px;
  }
  .modes a.nav-link,
  .modes button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  body.studio:not(.is-phone) .board,
  .board {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ========== NEW SCREENS 2026-09 ========== */
.screen.has-dock.dock-stack .scroll { padding-bottom: 176px; }

.skip-link {
  font-size: 13px;
  color: var(--gold);
  padding: 0 10px;
  letter-spacing: 0.06em;
  z-index: 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span,
.field > .tiny,
.field label,
.field .label {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-tight);
}
.field input,
.field textarea,
.field select {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  outline: none;
  font-size: 16px; /* avoid iOS zoom */
  line-height: var(--lh-body);
  color: var(--text);
}
.field textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--line-gold); }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; min-width: 0; }

.splash {
  background:
    radial-gradient(620px 420px at 50% 28%, rgba(201,168,108,0.18), transparent 62%),
    radial-gradient(480px 280px at 80% 90%, rgba(125,187,180,0.06), transparent 50%),
    var(--bg);
}
.splash-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 36px 72px;
}
.splash-mark {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: grid; place-items: center;
  background:
    linear-gradient(160deg, rgba(232,213,163,0.22), rgba(201,168,108,0.08));
  border: 1px solid rgba(201,168,108,0.4);
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 34px;
  margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(201,168,108,0.12);
}
.splash-brand { font-size: 44px; letter-spacing: 0.02em; }
.splash-inner .muted { margin-top: 8px; max-width: 240px; }
.splash-inner .btn { margin-top: 28px; min-width: 200px; }

.qr-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(20,18,14,0.15), rgba(0,0,0,0.55) 70%),
    #0c0c0e;
}
.qr-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 18px;
}
.qr-frame i {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--gold-2);
}
.qr-frame i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.qr-frame i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.qr-frame i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.qr-frame i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.qr-ghost {
  position: absolute;
  inset: 28px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(243,238,228,0.08) 0 10px, transparent 10px 18px),
    repeating-linear-gradient(0deg, rgba(243,238,228,0.08) 0 10px, transparent 10px 18px);
  opacity: 0.55;
}
.qr-line {
  position: absolute;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 16px var(--gold);
  animation: scanMove 2.2s var(--ease-soft) infinite;
}
.qr-hint {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(243,238,228,0.7);
  text-align: center;
}
.qr-dock {
  padding: 16px 20px calc(var(--safe-b) + 12px);
  background: var(--bg);
}

.range-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--elev);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.range-card .pair {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}
.range-card .pair b {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold-2);
  font-weight: 500;
}
.bar {
  height: 6px;
  border-radius: 100px;
  background: var(--elev-3);
  margin: 12px 0 4px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, #B08F52, #E8D5A3);
}

.master-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.master-hero .av { width: 64px; height: 64px; font-size: 26px; }
.rate { color: var(--gold-2); font-size: 14px; margin-top: 4px; }
.case-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 16px;
}
.case-row .face { aspect-ratio: 63 / 88; border-radius: 8px; }
.case-row .cap { font-size: 11px; color: var(--text-3); margin-top: 6px; text-align: center; }

.button.master,
button.master {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.pay-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-gold);
  background: var(--gold-soft);
  width: 100%;
  color: inherit;
  text-align: left;
}
.pay-pick .wx {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #2aae67;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pay-pick b { display: block; font-weight: 500; font-size: 14px; }
.pay-pick span { font-size: 12px; color: var(--text-3); }

.ship-code {
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(201,168,108,0.14), var(--elev));
  border: 1px solid var(--line-gold);
  margin-bottom: 14px;
}
.ship-code .code {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  margin: 8px 0 4px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}
.bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 6px;
  font-size: 13px;
  line-height: 1.55;
  background: var(--elev);
  border: 1px solid var(--line);
  align-self: flex-start;
}
.bubble.me {
  align-self: flex-end;
  background: var(--gold-soft);
  border-color: rgba(201,168,108,0.35);
  border-radius: 14px 14px 6px 14px;
}
.bubble .when {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.composer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px calc(var(--safe-b) + 8px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg) 18%);
}
.composer input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  outline: none;
}
.composer input:focus { border-color: var(--line-gold); }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-list .oc {
  flex: none;
  width: 100%;
  cursor: pointer;
}

.ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ev-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--elev);
  border: 1px solid var(--line);
  text-align: left;
  color: inherit;
  padding: 0;
}
.ev-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.ev-cell .tag {
  position: absolute;
  left: 8px; bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(10,11,13,0.72);
  color: var(--gold-2);
  border: 1px solid rgba(201,168,108,0.35);
  backdrop-filter: blur(6px);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 8px;
}
.star {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-3);
  font-size: 26px;
  line-height: 1;
  display: grid; place-items: center;
  transition: color var(--t-fast), transform var(--t-fast);
}
.star.is-on { color: var(--gold); transform: scale(1.06); }

.share-link {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px dashed rgba(201,168,108,0.4);
  font-size: 13px;
  color: var(--gold-2);
  letter-spacing: 0.02em;
  word-break: break-all;
  text-align: center;
}

.grade-org {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.grade-org .opt { margin-bottom: 0; text-align: center; padding: 16px 10px; }
.grade-org .opt h4 { margin-bottom: 2px; }

.head-actions { display: flex; gap: 6px; }

.master { cursor: pointer; }

/* ========== Master-specific ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}
.stat-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.stat-card:hover, .stat-card.is-hot {
  border-color: var(--line-gold);
  background: var(--gold-soft);
}
.stat-card b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-2);
  line-height: 1.1;
}
.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  text-align: left;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.job-card:hover { border-color: var(--line-gold); }
.job-card:active { transform: scale(0.99); }
.job-card .thumb { width: 58px; height: 80px; flex: 0 0 auto; border-radius: 7px; }
.job-card .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.job-card .name { font-size: var(--fs-md); font-weight: 500; line-height: var(--lh-tight); }
.job-card .sub { font-size: var(--fs-xs); color: var(--text-3); line-height: var(--lh-body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.job-card .step { margin-top: auto; font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-tight); }
.job-card .sla { font-size: 11px; color: var(--amber); }

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}
.upload-slot {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: var(--elev);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.upload-slot:hover { border-color: var(--line-gold); color: var(--gold-2); }
.upload-slot.is-filled {
  border-style: solid;
  border-color: var(--line-gold);
  background: var(--gold-soft);
  color: var(--gold-2);
}
.upload-slot .plus { font-size: 22px; line-height: 1; color: var(--gold); }

.log-timeline { display: flex; flex-direction: column; gap: 0; margin: 8px 0 16px; }
.log-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.log-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.log-item:last-child::before { display: none; }
.log-item .dot {
  width: 14px; height: 14px; border-radius: 50%;
  margin-top: 3px;
  background: var(--elev-2);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.log-item .body {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.log-item .body b { display: block; font-size: 13px; font-weight: 500; }
.log-item .body p { margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.log-item .body .when { margin-top: 6px; font-size: 11px; color: var(--text-3); }

.ba-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}
.ba-slot {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 10px;
  text-align: center;
}
.ba-slot .lab { font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; margin-bottom: 8px; }
.ba-slot .face { width: 100%; aspect-ratio: 5/7; border-radius: 8px; margin: 0 auto; max-width: 120px; }
.ba-slot .hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gold);
  cursor: pointer;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tag {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--gold-soft);
  color: var(--gold-2);
  border: 1px solid transparent;
}

.wallet-card {
  background:
    linear-gradient(145deg, rgba(201,168,108,0.18), transparent 55%),
    var(--elev);
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  padding: 18px 16px;
  margin: 8px 0 14px;
}
.wallet-card .lab { font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }
.wallet-card .amt {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-display) + 8px);
  font-weight: 500;
  color: var(--gold-2);
  margin: 6px 0 4px;
}
.wallet-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.wallet-meta div {
  background: rgba(0,0,0,0.22);
  border-radius: 12px;
  padding: 10px 12px;
}
.wallet-meta b { display: block; font-size: 15px; font-weight: 500; }
.wallet-meta span { font-size: 11px; color: var(--text-3); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.case-tile {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.case-tile .face { width: 100%; aspect-ratio: 5/7; border-radius: 0; }
.case-tile .cap { padding: 10px 10px 12px; }
.case-tile .cap b { display: block; font-size: 13px; font-weight: 500; }
.case-tile .cap span { font-size: 11px; color: var(--text-3); }

.action-stack { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 8px; }

.inbox-actions { display: flex; gap: 8px; margin-top: 10px; }
.inbox-actions .btn { flex: 1; }

.master-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 6px;
}

