/* v2 Modular CSS Manifest (Buildless Native @import) */
/* Apple DESIGN.md Precision Tokens — Light (#2 Titanium Mist) & Dark (#5 Graphite Indigo) */
:root {
  /* Light Mode: ② Titanium Mist (무채색 갤러리 그레이 · 원화 색감 보존) */
  --bg-main: #E5E7EB;
  --bg-card: #F1F2F5;
  --bg-elevated: #DBDDE3;
  --nav-bg: rgba(229, 231, 235, 0.84);
  --text-primary: #1D1D1F;
  --text-muted: #555861;
  --border-subtle: rgba(29, 29, 31, 0.10);
  --border-strong: rgba(29, 29, 31, 0.22);
  --accent-primary: #0071E3;
  --accent-hover: #005BB5;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --status-open: #1E8E5A;
  --status-closed: #C54B4B;
  --status-busy: #C97A00;
  --shadow-media: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 2px rgba(29, 29, 31, 0.04), 0 10px 28px rgba(29, 29, 31, 0.045);

  /* Apple & Editorial Geometry + Rhythmic Spacing Tokens */
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Pretendard', system-ui, sans-serif;
  --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Pretendard', system-ui, sans-serif;
  --radius-pill: 980px;
  --radius-card: 20px;
  --radius-subtle: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: clamp(48px, 6.5vw, 76px);

  --max-width: 1060px;
  --gnb-max-width: 1440px;
  --gnb-height: 58px;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 200ms var(--ease-apple);
}

:root[data-theme="dark"] {
  /* Dark Mode: ⑤ Graphite Indigo (매트 차콜 + 블루 포인트 · 저자극 스튜디오) */
  --bg-main: #1C1E24;
  --bg-card: #252830;
  --bg-elevated: #30343F;
  --nav-bg: rgba(28, 30, 36, 0.84);
  --text-primary: #E9EBEF;
  --text-muted: #9BA1AE;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.20);
  --accent-primary: #5E8BFF;
  --accent-hover: #799FFF;
  --accent-ink: #0B1222;
  --accent-soft: rgba(94, 139, 255, 0.15);
  --status-open: #34D399;
  --status-closed: #E06C6C;
  --status-busy: #FBBF24;
  --shadow-media: 0 20px 40px rgba(0, 0, 0, 0.36);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.22), 0 14px 36px rgba(0, 0, 0, 0.26);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
  transition: background 240ms var(--ease-apple), color 240ms var(--ease-apple);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-main);
  color: var(--text-primary);
  padding-bottom: var(--space-lg);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

strong,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

[hidden] {
  display: none !important;
}

/* ===== Apple Frosted Glass Sticky Top GNB ===== */
.gnb {
  position: sticky;
  top: 0;
  z-index: 60;
  max-width: 100%;
  overflow-x: clip;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.gnb-inner {
  width: 100%;
  max-width: var(--gnb-max-width);
  margin: 0 auto;
  min-height: var(--gnb-height);
  padding: 8px clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 36px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.brand:hover .brand-mark {
  border-color: var(--border-strong);
}

.brand-copy {
  display: flex;
  align-items: center;
  line-height: 1.1;
  min-width: 0;
}

.brand-copy strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  white-space: nowrap;
}

.brand-copy small {
  display: none;
}

.gnb-tabs {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.gnb-hover-pill,
.gnb-active-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: var(--radius-pill);
  pointer-events: none;
  will-change: transform, width, opacity;
}

.gnb-hover-pill {
  z-index: 1;
  background: var(--bg-elevated);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), width 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.gnb-active-pill {
  z-index: 2;
  background: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.28);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 140ms ease;
}

.gnb-tabs.has-pill .gnb-active-pill {
  opacity: 1;
}

.gnb-tabs::-webkit-scrollbar {
  display: none;
}

.gnb-tab {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 30px;
  padding: 5px 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease-apple), transform 140ms var(--ease-apple);
}

.gnb-tab:hover,
.gnb-tab.is-hovered {
  color: var(--text-primary);
}

.gnb-tab:active {
  transform: scale(0.96);
}

.gnb-tabs:not(.has-pill) .gnb-tab.is-active {
  background: var(--accent-primary);
}

.gnb-tab.is-active {
  color: var(--accent-ink);
}

.gnb-controls {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Native-Script 1-Click Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-opt:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.lang-opt.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Sticky Top GNB Compact Monochrome Theme Switch (Light ↔ Dark) */
.theme-switch {
  position: relative;
  width: 62px;
  height: 34px;
  padding: 0 2px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.theme-switch:hover {
  border-color: var(--border-strong);
}

.theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 220ms var(--ease-apple), background var(--transition);
  pointer-events: none;
}

:root[data-theme="dark"] .theme-thumb {
  transform: translateX(28px);
}

.theme-ico {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color var(--transition), opacity var(--transition);
}

.theme-ico svg {
  width: 13px;
  height: 13px;
  display: block;
}

.gnb-tab:focus-visible,
.lang-opt:focus-visible,
.theme-switch:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

:root:not([data-theme="dark"]) .theme-ico-sun,
:root[data-theme="dark"] .theme-ico-moon {
  color: var(--text-primary);
  opacity: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-open);
}

/* ===== Main Container & Open-Canvas Chapters ===== */
/* DO NOT set overflow-x: clip/hidden on .app-shell: .playground-stage and .gallery-viewer intentionally break out wider than --max-width on desktop */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 24px 96px;
}

.tab-panel,
.lazy-mount-root {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

.tab-panel {
  animation: panelFade 160ms var(--ease-apple);
}

#panel-home.is-active {
  min-height: min(600px, calc(100dvh - 150px));
  justify-content: center;
}

@keyframes panelFade {
  from {
    opacity: 0.96;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chapter-section {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.chapter-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-head.is-centered {
  align-items: center;
  text-align: center;
}

.chapter-head h2 {
  margin: 0;
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.chapter-sub {
  margin: 2px auto 0;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.chapter-head .pill-row {
  justify-content: center;
  margin-top: 8px;
  gap: 8px;
}

.focal-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-card);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--text-muted);
}

/* Apple single permitted elevation rule: reserved for media & floating artwork containers */
.media-elevated {
  box-shadow: var(--shadow-media);
}

/* ===== Apple Capsule Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  padding-inline: 8px;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ===== Pills & Sub-Switches ===== */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ease-apple), color 140ms var(--ease-apple), border-color 140ms var(--ease-apple);
}

.pill-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 113, 227, 0.38);
}

.pill-btn.is-active {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
}

.apply-guide-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

/* Notion Rich HTML Renderer (Notice / Apply Guide / Dollar Policy) */
.notice-rich-wrap {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.notice-rich-wrap p,
.notice-rich-wrap ul,
.notice-rich-wrap ol {
  margin: 0;
}

.notice-rich-wrap ul,
.notice-rich-wrap ol {
  padding-left: 20px;
}

.notice-rich-wrap h2,
.notice-rich-wrap h3,
.notice-rich-wrap h4,
.notice-rich-wrap h5 {
  margin: 12px 0 4px;
  font-weight: 600;
  color: var(--text-primary);
}

.notice-rich-wrap hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 8px 0;
}

.notice-rich-wrap blockquote {
  margin: 0;
  padding: 8px 14px;
  border-left: 3px solid var(--accent-primary);
  color: var(--text-muted);
}

.notice-rich-wrap code {
  background: var(--accent-soft);
  color: var(--accent-primary);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
}

.notice-rich-wrap .notion-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-subtle);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.notice-rich-wrap .callout-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.notice-rich-wrap details.notion-toggle-heading,
.notice-rich-wrap details.content-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-subtle);
  overflow: hidden;
}

.notice-rich-wrap details.notion-toggle-heading > summary,
.notice-rich-wrap details.content-toggle > summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-rich-wrap details > summary::-webkit-details-marker {
  display: none;
}

.notice-rich-wrap details.content-toggle > summary .toggle-open {
  display: none;
}

.notice-rich-wrap details.content-toggle[open] > summary .toggle-closed {
  display: none;
}

.notice-rich-wrap details.content-toggle[open] > summary .toggle-open {
  display: inline;
}

.notice-rich-wrap details.notion-toggle-heading > summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
}

.notice-rich-wrap details.notion-toggle-heading[open] > summary::after {
  content: '−';
}

.notice-rich-wrap .notion-toggle-body,
.notice-rich-wrap .content-toggle-body {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
}

.notice-rich-wrap .table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.notice-rich-wrap .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.notice-rich-wrap .table-wrap th,
.notice-rich-wrap .table-wrap td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: left;
}

.notice-rich-wrap .table-wrap th {
  background: var(--bg-main);
  font-weight: 600;
  color: var(--text-primary);
}

.notice-rich-wrap .table-wrap tr:last-child td,
.notice-rich-wrap .table-wrap tr:last-child th {
  border-bottom: 0;
}

.notice-rich-wrap .table-wrap th:last-child,
.notice-rich-wrap .table-wrap td:last-child {
  border-right: 0;
}

.notice-rich-wrap .price-ref {
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.notice-rich-wrap .notion-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-rich-wrap .notion-image {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
}


@media (max-width: 1120px) {
  .gnb-inner {
    padding: 8px 18px;
    gap: 10px;
  }
  .gnb-tab {
    min-width: 44px;
    padding: 5px 12px;
  }
  .gnb-controls {
    gap: 8px;
  }
  .lang-opt {
    padding: 3px 8px;
  }
}

@media (max-width: 960px) {
  .gnb-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 16px;
    gap: 10px 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .gnb-controls {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  .gnb-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }
  .gnb-tab {
    padding: 5px 14px;
  }
  .lang-switch {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .lang-switch::-webkit-scrollbar {
    display: none;
  }
  .lang-opt {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 24px;
  }
  .app-shell {
    padding: 28px 16px 64px;
  }
  .tab-panel,
  .lazy-mount-root {
    gap: 40px;
    min-width: 0;
    max-width: 100%;
  }
  .chapter-section {
    gap: 20px;
    min-width: 0;
    max-width: 100%;
  }
  .gnb-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand {
    min-height: 30px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10.5px;
  }
  .brand-copy {
    display: none;
  }
  .gnb-controls {
    gap: 6px;
  }
  .lang-opt {
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .theme-switch {
    width: 54px;
    height: 30px;
  }
  .theme-thumb {
    width: 24px;
    height: 24px;
  }
  :root[data-theme="dark"] .theme-thumb {
    transform: translateX(24px);
  }
  .theme-ico,
  .theme-ico svg {
    width: 12px;
    height: 12px;
  }
  .gnb-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .gnb-tab {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .card,
  .focal-frame {
    padding: 20px;
    min-width: 0;
  }
}

/* ===== Artmug / Kmong Mode Restrictions (SNS / Email / Payment Channel / Language Switcher / Home Tab Hidden) ===== */
html.is-artmug-mode #tab-home,
html.is-artmug-embed #tab-home,
html.is-kmong-mode #tab-home,
html.is-artmug-mode #panel-home,
html.is-artmug-embed #panel-home,
html.is-kmong-mode #panel-home,
html.is-artmug-mode .creator-links,
html.is-artmug-embed .creator-links,
html.is-kmong-mode .creator-links,
html.is-artmug-mode #lang-switch,
html.is-artmug-embed #lang-switch,
html.is-kmong-mode #lang-switch,
html.is-artmug-mode .channel-block,
html.is-artmug-embed .channel-block,
html.is-kmong-mode .channel-block,
html.is-artmug-mode .review-proof-link,
html.is-artmug-embed .review-proof-link,
html.is-kmong-mode .review-proof-link {
  display: none !important;
}

/* ===== Artmug Iframe Embed Overrides ===== */
html.is-artmug-embed,
html.is-artmug-embed body,
html.is-artmug-embed body:has(#panel-home.is-active) {
  min-height: 0 !important;
  overflow-y: visible !important;
  padding-bottom: 24px !important;
}

html.is-artmug-embed .app-shell,
html.is-artmug-embed #panel-home.is-active {
  min-height: 0 !important;
}

@media (min-width: 721px) {
  html.is-artmug-embed .app-shell:has(#panel-home.is-active) {
    min-height: calc(var(--artmug-vh, 860px) - 96px) !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  html.is-artmug-embed .app-shell:has(#panel-home.is-active) {
    min-height: 0 !important;
  }
}

html.is-artmug-embed .gallery-deck.is-illust,
html.is-artmug-embed .gallery-deck-wrap.is-illust {
  --deck-h: clamp(440px, calc(var(--artmug-vh, 860px) - 210px), 820px);
  height: var(--deck-h);
}

html.is-artmug-embed .gallery-deck.is-video,
html.is-artmug-embed .gallery-deck-wrap.is-video {
  --deck-h: clamp(440px, calc(var(--artmug-vh, 860px) - 210px), 820px);
  height: var(--deck-h);
}

html.is-artmug-embed .l2d-stage-wrap {
  height: clamp(560px, calc(var(--artmug-vh, 860px) - 220px), 760px);
  max-height: none;
}

@media (max-width: 720px) {
  html.is-artmug-embed .gallery-deck.is-illust,
  html.is-artmug-embed .gallery-deck-wrap.is-illust {
    --deck-h: 360px;
  }
  html.is-artmug-embed .gallery-deck.is-video,
  html.is-artmug-embed .gallery-deck-wrap.is-video {
    --deck-h: 300px;
  }
  html.is-artmug-embed .l2d-stage-wrap {
    height: 390px;
    max-height: none;
  }
}

/* ===== Tab 1: Home (Open Canvas Editorial Business Card) ===== */
@media (min-width: 721px) {
  body:has(#panel-home.is-active) {
    padding-bottom: 0 !important;
    overflow-y: hidden;
  }

  .app-shell:has(#panel-home.is-active) {
    min-height: calc(100dvh - 57px);
    padding-top: clamp(8px, 1.8vh, 22px) !important;
    padding-bottom: clamp(8px, 1.8vh, 22px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #panel-home.is-active {
    min-height: 0 !important;
    justify-content: center;
  }

  #panel-home .home-hero {
    padding: 4px 12px;
  }

  #panel-home .hero-copy h1 {
    margin-bottom: clamp(14px, 2.2vh, 22px);
    font-size: clamp(28px, min(3.6vw, 4.5vh), 46px);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.028em;
  }

  #panel-home .hero-desc {
    font-size: clamp(14.5px, min(1.4vw, 1.95vh), 16.5px);
    line-height: 1.72;
    letter-spacing: -0.01em;
  }

  #panel-home .intro-artists {
    margin-top: clamp(28px, 4.8vh, 52px);
    gap: clamp(36px, 4vw, 56px);
  }

  #panel-home .lanyard-strap {
    height: clamp(42px, 5.8vh, 58px);
    margin-bottom: clamp(8px, 1.1vh, 12px);
  }

  #panel-home .lanyard-ribbon {
    height: 100%;
  }

  #panel-home .lanyard-front {
    padding: clamp(12px, 1.8vh, 16px) 18px clamp(12px, 1.8vh, 18px);
    gap: clamp(8px, 1.2vh, 12px);
  }

  #panel-home .creator-avatar {
    width: clamp(72px, 9.5vh, 92px);
    height: clamp(72px, 9.5vh, 92px);
  }
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(12px, 2.5vw, 28px) 12px 12px;
}

.duo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.duo-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 8px 16px 8px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.artist-chip strong {
  display: block;
  font-size: 13.5px;
}

.artist-chip > div > span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.avatar-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.avatar-momoru {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.avatar-toe {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.duo-cross {
  color: var(--text-muted);
  font-size: 13px;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tag-accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-primary);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

:root[lang="ko"] .hero-copy,
:root[lang="ko"] .pillar-card {
  word-break: keep-all;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.028em;
}

.hero-desc {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.72;
  letter-spacing: -0.01em;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-subnote {
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* 3대 강점 Bento 카드 */
.intro-pillars {
  width: 100%;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: border-color var(--transition), transform var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.pillar-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pillar-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.pillar-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* 작가별 목걸이 명함 (Lanyard ID Badge) & 공식 연락처 카드 */
.intro-artists {
  width: 100%;
  max-width: 616px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
  text-align: center;
}

.lanyard-unit {
  width: 100%;
  max-width: 276px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.lanyard-strap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 54px;
  margin-bottom: 10px;
  pointer-events: none;
  transform-origin: top center;
  will-change: transform;
}

.lanyard-ribbon {
  width: 22px;
  height: 54px;
  border-radius: 3px 3px 1px 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1.5px,
      transparent 1.5px,
      transparent 4px
    ),
    linear-gradient(180deg, rgba(29, 29, 31, 0.65) 0%, #1d1d1f 100%);
  box-shadow: inset 1.5px 0 0 rgba(255, 255, 255, 0.16), inset -1.5px 0 0 rgba(0, 0, 0, 0.25);
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%);
}

.lanyard-ribbon span {
  writing-mode: vertical-rl;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
  transform: rotate(180deg);
}

.lanyard-unit.is-left .lanyard-ribbon {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1.5px,
      transparent 1.5px,
      transparent 4px
    ),
    linear-gradient(180deg, rgba(37, 99, 235, 0.55) 0%, #1d4ed8 100%);
}

.lanyard-clasp {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%) translateZ(4px);
  width: 36px;
  height: 48px;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
  z-index: 12;
  pointer-events: none;
}

.creator-card.lanyard-card {
  width: 100%;
  flex: 1;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0;
  box-shadow:
    0 16px 34px -10px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  display: grid;
  position: relative;
  overflow: visible;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform-origin: center 14px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 220ms ease, border-color 180ms ease;
}

.lanyard-face {
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.lanyard-front {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateZ(1px);
  background: linear-gradient(158deg, #f8fafc 0%, #e8edf4 54%, #dce3ec 100%);
}

.lanyard-unit.is-left .lanyard-front {
  background: linear-gradient(158deg, #eff6ff 0%, #dbeafe 52%, #cbe0fd 100%);
}

.lanyard-unit.is-left .creator-card.lanyard-card {
  border-color: rgba(37, 99, 235, 0.22);
}

:root[data-theme="dark"] .creator-card.lanyard-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 36px -10px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .lanyard-front {
  background: linear-gradient(158deg, #222630 0%, #171a22 100%);
}

:root[data-theme="dark"] .lanyard-unit.is-left .creator-card.lanyard-card {
  border-color: rgba(96, 165, 250, 0.24);
}

:root[data-theme="dark"] .lanyard-unit.is-left .lanyard-front {
  background: linear-gradient(158deg, #1b2842 0%, #11192b 100%);
}

.lanyard-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 18px 18px;
  background: linear-gradient(158deg, #1e293b 0%, #0f172a 60%, #090d16 100%);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lanyard-unit.is-left .lanyard-back {
  background: linear-gradient(158deg, #1e3a8a 0%, #172554 58%, #0b132b 100%);
}

.lanyard-back .lanyard-slot {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.lanyard-back-mark {
  margin-top: auto;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lanyard-back-sub {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(226, 232, 240, 0.72);
}

.lanyard-back-id {
  margin-top: auto;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.78);
}

.lanyard-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(4, 8, 16, var(--shade-alpha, 0));
  pointer-events: none;
  z-index: 5;
}

.lanyard-unit.is-left:hover .creator-card.lanyard-card {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 22px 46px -12px rgba(10, 132, 255, 0.18), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.lanyard-unit.is-right:hover .creator-card.lanyard-card {
  border-color: var(--border-strong);
  box-shadow: 0 22px 46px -12px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* Specular & Holographic Foil Card Sheen */
.lanyard-foil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: var(--shine-opacity, 0.28);
  background:
    radial-gradient(
      circle 220px at var(--shine-x, 50%) var(--shine-y, 30%),
      rgba(255, 255, 255, 0.52) 0%,
      rgba(255, 255, 255, 0.14) 38%,
      transparent 72%
    ),
    linear-gradient(
      var(--shine-angle, 118deg),
      transparent 18%,
      rgba(120, 200, 255, 0.14) 36%,
      rgba(210, 160, 255, 0.14) 48%,
      rgba(255, 240, 180, 0.14) 58%,
      rgba(255, 255, 255, 0.34) 64%,
      transparent 80%
    );
  mix-blend-mode: overlay;
  transition: opacity 220ms ease;
}

:root[data-theme="dark"] .lanyard-foil {
  mix-blend-mode: screen;
  opacity: calc(var(--shine-opacity, 0.22) * 0.55);
}

.lanyard-slot {
  width: 44px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
  margin-bottom: 2px;
}

.lanyard-header-band {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 2px;
}

.lanyard-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.creator-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.creator-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}

.lanyard-card .creator-avatar:has(img) {
  background: transparent;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.creator-identity strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.creator-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.creator-links {
  position: relative;
  z-index: 10;
  transform: translateZ(2px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: auto;
}

:root[data-theme="dark"] .creator-links {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.creator-social-row {
  justify-content: center;
  gap: 6px;
}

.creator-social-row .creator-link {
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
}

:root[data-theme="dark"] .creator-social-row .creator-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.creator-social-row .creator-link:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

:root[data-theme="dark"] .creator-social-row .creator-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.creator-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.creator-email-row .creator-link {
  min-width: 0;
}

.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.creator-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--accent-primary);
  text-decoration: none;
}

:root[data-theme="dark"] .creator-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.creator-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.creator-link svg:not([fill="none"]) {
  fill: currentColor;
}

.creator-copy-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.creator-copy-btn svg {
  width: 15px;
  height: 15px;
}

.creator-copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-soft);
}

.creator-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.creator-social-row .dock-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.creator-social-row .dock-circle svg {
  width: 17px;
  height: 17px;
  display: block;
}

.creator-social-row .artist-btn-artmug svg {
  width: 22px;
  height: 22px;
}

.creator-social-row .dock-circle svg:not([fill="none"]) {
  fill: currentColor;
}

.creator-social-row .dock-circle:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* 한국어일 때 아트머그 표시, Ko-fi 숨김 */
html[lang="ko"] .artist-btn-artmug {
  display: inline-flex !important;
}
html[lang="ko"] .artist-btn-kofi {
  display: none !important;
}

/* 외국어(en, ja, zh 등)일 때 Ko-fi 표시, 아트머그 숨김 */
html:not([lang="ko"]) .artist-btn-artmug {
  display: none !important;
}
html:not([lang="ko"]) .artist-btn-kofi {
  display: inline-flex !important;
}

.showcase-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.media-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-card .media-frame figcaption {
  text-align: center;
}

.media-frame figcaption {
  font-size: 12.5px;
  color: var(--text-muted);
}

.media-box {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-subtle);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box img,
.media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.ph-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}


@media (max-width: 820px) {
  .intro-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 720px), (pointer: coarse) {
  .creator-card.lanyard-card {
    cursor: default;
    touch-action: pan-y !important;
    transform: none !important;
  }
  .lanyard-strap {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  #panel-home.is-active {
    min-height: auto;
    justify-content: flex-start;
  }
  .home-hero {
    padding: 12px 4px 8px;
  }
  .duo-avatars {
    gap: 6px;
  }
  .artist-chip {
    padding: 6px 10px 6px 6px;
    gap: 7px;
  }
  .avatar-badge {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .intro-pillars {
    margin-top: 20px;
  }
  .intro-artists {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lanyard-ribbon {
    height: 32px;
  }
  .pillar-card,
  .creator-card.lanyard-card {
    padding: 16px 18px;
  }
  .showcase-split {
    grid-template-columns: 1fr;
  }
}

/* ===== Tab 2: Portfolio (Zero-Bloat Filter Bar + Single-Screen Stage Gallery) ===== */
body:has(#panel-portfolio.is-active) {
  padding-bottom: 0 !important;
}

.app-shell:has(#panel-portfolio.is-active) {
  padding-top: clamp(12px, 1.8vw, 20px) !important;
  padding-bottom: 6px !important;
}

#panel-portfolio {
  margin-top: 0;
}

#panel-portfolio .lazy-mount-root {
  gap: 12px;
}

.pf-nav-shell {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.pf-nav-dock {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

:root[data-theme="dark"] .pf-nav-dock {
  background: rgba(26, 28, 35, 0.78);
}

.pf-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
}

.pf-filter-bar .pill-btn {
  padding: 7px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 140ms var(--ease-apple), color 140ms var(--ease-apple), box-shadow 140ms var(--ease-apple), transform 120ms var(--ease-apple);
}

.pf-filter-bar .pill-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: transparent;
}

.pf-filter-bar .pill-btn:active {
  transform: scale(0.97);
}

/* 2층 하위 카테고리는 상단 GNB와 계층을 구분하면서도 선명한 액티브 상태 표시 */
.pf-filter-bar .pill-btn.is-active {
  background: var(--text-primary);
  color: var(--bg-card);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pf-sub-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.pf-sub-tray[hidden] {
  display: none;
}

.pf-section-wrap {
  gap: 10px;
}

.pf-section-wrap[hidden] {
  display: none;
}

.pf-notion-note {
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.pf-notion-note p {
  margin: 0;
}

.pf-rigging-desc {
  margin: 0 auto 10px;
  padding: 0 12px;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  text-align: center;
  word-break: keep-all;
}

.pf-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

/* 3층 서브탭은 알약 대신 가벼운 번호 + 밑줄 탭으로 계층 차등 */
.pf-sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms var(--ease-apple), border-color 140ms var(--ease-apple), transform 120ms var(--ease-apple);
}

.pf-sub-num {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

.pf-sub-tab:hover {
  color: var(--text-primary);
}

.pf-sub-tab:active {
  transform: translateY(1px);
}

.pf-sub-tab.is-active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 700;
}

.pf-sub-tab.is-active .pf-sub-num {
  opacity: 1;
}

/* 3D Coverflow Card Deck + All-Works Index Grid Gallery (Floating style without block box) */
.gallery-viewer {
  width: calc(100vw - 24px);
  max-width: none;
  margin-left: calc(50% - 50vw + 12px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gallery-deck-wrap {
  position: relative;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  border-radius: 14px;
  padding: 0;
  user-select: none;
}

.gallery-deck {
  position: relative;
  width: 100%;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.gallery-deck.is-illust,
.gallery-deck-wrap.is-illust {
  --deck-h: clamp(260px, calc(100dvh - 190px), 960px);
  height: var(--deck-h);
}

.gallery-deck.is-video,
.gallery-deck-wrap.is-video {
  --deck-h: clamp(260px, calc(100dvh - 190px), 940px);
  height: var(--deck-h);
}

.gallery-deck-card {
  position: absolute;
  inset: 0;
  margin: auto;
  padding: 0;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: none;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 340ms ease, filter 280ms ease, box-shadow 340ms ease, width 280ms var(--ease-apple), height 280ms var(--ease-apple);
  user-select: none;
}

.gallery-deck.is-illust .gallery-deck-card {
  background: var(--bg-card);
}

.gallery-deck.is-video .gallery-deck-card {
  background: #0d0f14;
}

@media (min-width: 721px) {
  .gallery-deck-card {
    aspect-ratio: var(--card-ratio, 0.75);
    width: min(92%, calc((var(--deck-h) - 6px) * var(--card-ratio, 0.75)));
    height: auto;
    max-height: calc(100% - 6px);
    padding: 0;
    border-radius: 16px;
  }

  .gallery-deck.is-video .gallery-deck-card {
    aspect-ratio: var(--card-ratio, 1.778);
    width: min(94%, calc((var(--deck-h) - 6px) * var(--card-ratio, 1.778)));
    height: auto;
    max-height: calc(100% - 6px);
  }
}

/* 3D Coverflow Offset States */
.gallery-deck-card[data-offset="0"],
.gallery-deck-card[data-pos="0"] {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  z-index: 30;
  opacity: 1;
  box-shadow:
    0 20px 48px -12px rgba(15, 23, 42, 0.24),
    0 8px 20px -6px rgba(15, 23, 42, 0.12),
    0 1px 4px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .gallery-deck-card[data-offset="0"],
[data-theme="dark"] .gallery-deck-card[data-pos="0"] {
  box-shadow:
    0 24px 48px -8px rgba(0, 0, 0, 0.72),
    0 10px 22px -4px rgba(0, 0, 0, 0.52);
}

.gallery-deck.is-illust .gallery-deck-card[data-offset="0"],
.gallery-deck.is-illust .gallery-deck-card[data-pos="0"] {
  cursor: zoom-in;
}

.gallery-deck-card[data-offset="-1"],
.gallery-deck-card[data-pos="-1"] {
  transform: translate3d(calc(-1 * (var(--center-w, 420px) * 0.5 + 105px)), 10px, 0) scale(0.83) rotateY(12deg);
  z-index: 20;
  opacity: 1 !important;
  filter: blur(0.8px) brightness(0.88) saturate(0.9);
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.gallery-deck-card[data-offset="1"],
.gallery-deck-card[data-pos="1"] {
  transform: translate3d(calc(var(--center-w, 420px) * 0.5 + 105px), 10px, 0) scale(0.83) rotateY(-12deg);
  z-index: 20;
  opacity: 1 !important;
  filter: blur(0.8px) brightness(0.88) saturate(0.9);
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.gallery-deck-card[data-offset="-2"],
.gallery-deck-card[data-pos="-2"] {
  transform: translate3d(calc(-1 * (var(--center-w, 420px) * 0.5 + 245px)), 20px, 0) scale(0.68) rotateY(18deg);
  z-index: 10;
  opacity: 1 !important;
  filter: blur(1.8px) brightness(0.74) saturate(0.82);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.gallery-deck-card[data-offset="2"],
.gallery-deck-card[data-pos="2"] {
  transform: translate3d(calc(var(--center-w, 420px) * 0.5 + 245px), 20px, 0) scale(0.68) rotateY(-18deg);
  z-index: 10;
  opacity: 1 !important;
  filter: blur(1.8px) brightness(0.74) saturate(0.82);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.gallery-deck-card[data-offset="-3"],
.gallery-deck-card[data-pos="-3"] {
  transform: translate3d(calc(-1 * (var(--center-w, 420px) * 0.46 + 380px)), 34px, -290px) scale(0.54) rotateY(28deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.gallery-deck-card[data-offset="3"],
.gallery-deck-card[data-pos="3"] {
  transform: translate3d(calc(var(--center-w, 420px) * 0.46 + 380px), 34px, -290px) scale(0.54) rotateY(-28deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.gallery-deck-card[data-offset="-1"]:hover,
.gallery-deck-card[data-offset="1"]:hover,
.gallery-deck-card[data-pos="-1"]:hover,
.gallery-deck-card[data-pos="1"]:hover {
  opacity: 1 !important;
  filter: blur(0px) brightness(1) saturate(1);
}

[data-theme="dark"] .gallery-deck-card[data-offset="-1"],
[data-theme="dark"] .gallery-deck-card[data-offset="1"],
[data-theme="dark"] .gallery-deck-card[data-pos="-1"],
[data-theme="dark"] .gallery-deck-card[data-pos="1"] {
  filter: blur(1.1px) brightness(0.82) saturate(0.88);
}

[data-theme="dark"] .gallery-deck-card[data-offset="-2"],
[data-theme="dark"] .gallery-deck-card[data-offset="2"],
[data-theme="dark"] .gallery-deck-card[data-pos="-2"],
[data-theme="dark"] .gallery-deck-card[data-pos="2"] {
  filter: blur(2.2px) brightness(0.68) saturate(0.8);
}

/* Card Media & Controls */
.gallery-card-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.gallery-card-media img,
.gallery-deck-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 0;
}

.gallery-deck.is-illust .gallery-card-media img {
  position: relative;
  z-index: 1;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  max-height: none;
  margin: -1px;
  object-fit: cover;
  border-radius: 0;
}

.gallery-card-media video,
.gallery-card-media iframe {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px;
  object-fit: cover;
  background: transparent;
  border: 0;
  display: block;
}

.gallery-card-play {
  display: none !important;
}

.gallery-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(10, 12, 16, 0.85));
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 2;
}

/* Apple-style Navigation Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-primary);
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    0 8px 24px -4px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: background-color 160ms var(--ease-apple), border-color 160ms var(--ease-apple), color 160ms ease, transform 140ms var(--ease-apple), box-shadow 160ms ease;
  z-index: 25;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

:root[data-theme="dark"] .gallery-arrow {
  background: rgba(28, 31, 38, 0.74);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 26px -4px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gallery-arrow:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.07);
  box-shadow:
    0 12px 28px -4px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--accent-soft);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-arrow.is-prev {
  left: 18px;
}

.gallery-arrow.is-next {
  right: 18px;
}

/* Apple-style Horizontal Filmstrip + Scrubber Rail */
.gallery-scrubber-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 14px;
  user-select: none;
}

.gallery-scrubber-dock[hidden] {
  display: none;
}

.gallery-filmstrip {
  max-width: 100%;
  width: fit-content;
  border-radius: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 3px 6px;
  box-shadow: inset 0 1px 2px rgba(29, 29, 31, 0.04);
  overflow: hidden;
}

:root[data-theme="dark"] .gallery-filmstrip {
  background: rgba(18, 20, 26, 0.56);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.gallery-filmstrip-track {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 5px;
  touch-action: pan-x;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.gallery-filmstrip-track::-webkit-scrollbar {
  display: none;
}

.gallery-scrub-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.62;
  transform-origin: center center;
  transition: opacity 180ms var(--ease-apple), transform 220ms cubic-bezier(0.22, 1, 0.36, 1), margin 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 220ms ease;
}

.gallery-filmstrip.is-video .gallery-scrub-thumb {
  width: 44px;
  height: 28px;
}

.gallery-scrub-thumb:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.gallery-scrub-thumb.is-active {
  opacity: 1;
  margin-inline: 5px;
  transform: scale(1.13);
  border-color: var(--accent-primary);
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.24);
  z-index: 2;
}

:root[data-theme="dark"] .gallery-scrub-thumb.is-active {
  box-shadow: 0 3px 12px rgba(94, 139, 255, 0.3);
}

.gallery-scrub-thumb:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.gallery-scrub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  pointer-events: none;
  border-radius: 4.5px;
}

.gal-scrub-num {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.gallery-scrub-rail {
  width: 100%;
  max-width: min(1280px, 88vw);
  padding: 6px 0;
  cursor: pointer;
  touch-action: none;
}

.gallery-scrub-rail:focus-visible {
  outline: none;
}

.gallery-scrub-rail:focus-visible .gallery-scrub-track {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.gallery-scrub-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
  transition: height 160ms var(--ease-apple), background-color 160ms var(--ease-apple);
}

.gallery-scrub-pill {
  --thumb-w: clamp(44px, calc(100% / var(--scrub-count, 10)), 96px);
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - var(--thumb-w)) * var(--scrub-ratio, 0));
  width: var(--thumb-w);
  border-radius: 999px;
  background: var(--text-muted);
  opacity: 0.75;
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease, opacity 160ms ease;
}

.gallery-scrub-rail:hover .gallery-scrub-track,
.gallery-scrub-rail.is-scrubbing .gallery-scrub-track {
  height: 8px;
}

.gallery-scrub-rail:hover .gallery-scrub-pill,
.gallery-scrub-rail.is-scrubbing .gallery-scrub-pill {
  background: var(--accent-primary);
  opacity: 1;
}

.gallery-scrub-rail.is-scrubbing .gallery-scrub-pill {
  transition: none;
}

/* Meta + View Mode Switcher Bar */
.gallery-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: min(980px, 100%);
  margin: 2px auto 0;
  padding: 7px 14px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 12.5px;
  color: var(--text-muted);
}

.gallery-meta-caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gallery-counter {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-view-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.gallery-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 140ms var(--ease-apple), color 140ms var(--ease-apple), box-shadow 140ms var(--ease-apple);
}

.gallery-switch-btn:hover {
  color: var(--text-primary);
}

.gallery-switch-btn.is-active {
  background: var(--bg-main);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gal-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--border-subtle);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.gallery-switch-btn.is-active .gal-count-pill {
  background: var(--accent-primary);
  color: #fff;
}

.gallery-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 140ms var(--ease-apple), background-color 140ms var(--ease-apple), color 140ms var(--ease-apple);
}

.gallery-zoom-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* All-Works Index Grid */
.gallery-all-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.gallery-all-grid.is-video {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-main);
  border: 2px solid var(--border-subtle);
  padding: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-apple), border-color 160ms var(--ease-apple), box-shadow 160ms var(--ease-apple);
}

.gallery-grid-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-media);
}

.gallery-grid-card.is-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-media);
}

.gallery-grid-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-all-grid.is-video .gallery-grid-media {
  aspect-ratio: 16 / 9;
}

.gallery-grid-media img,
.gallery-grid-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 220ms ease;
  pointer-events: none;
}

.gallery-grid-card:hover .gallery-grid-media img,
.gallery-grid-card:hover .gallery-grid-media video {
  transform: scale(1.04);
}

.gallery-grid-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.gallery-grid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.gallery-grid-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  background: linear-gradient(transparent, rgba(10, 12, 16, 0.88));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 960px) {
  .gallery-all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-grid.pf-rigging-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: pfRiggingFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid.pf-rigging-grid.is-balanced {
  row-gap: 0;
}

@keyframes pfRiggingFadeIn {
  from {
    opacity: 0.35;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-grid.pf-rigging-grid > .grid-break {
  flex: 0 0 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.portfolio-grid.pf-rigging-grid .work-card.is-option {
  flex: 0 0 calc((100% - 36px) / 4);
  max-width: 268px;
  margin-bottom: 0;
}

.portfolio-grid.pf-rigging-grid.is-balanced .work-card.is-option {
  margin-bottom: 12px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 150ms var(--ease-apple), box-shadow 150ms var(--ease-apple), background-color 150ms var(--ease-apple);
}

.work-card:hover {
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.06), var(--shadow-card);
}

.work-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.work-card.is-video .work-thumb {
  aspect-ratio: 16 / 9;
}

.work-card.is-illust .work-thumb {
  aspect-ratio: 4 / 5;
  border-bottom: 0;
}

.work-card.is-option .work-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
}

.work-card.is-option .work-thumb img,
.work-card.is-option .work-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 280ms var(--ease-apple);
}

.work-card.is-option .work-thumb video::-webkit-media-controls,
.work-card.is-option .work-thumb video::-webkit-media-controls-enclosure,
.work-card.is-option .work-thumb video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
}

.work-card.is-option .work-thumb > :not(video):not(img):not(.media-placeholder):not(.work-card-badge) {
  display: none !important;
}

/* 기본 제공 코너 북마크 리본 뱃지 (양식 A) */
.badge-bookmark-ribbon,
.badge-demo-bookmark {
  position: absolute;
  top: 0;
  right: 12px;
  z-index: 10;
  padding: 4px 8px 7px;
  background: linear-gradient(135deg, #0071e3, #3b82f6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35);
  border-radius: 0 0 3px 3px;
  letter-spacing: -0.3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%);
  pointer-events: none;
}

.badge-demo-glass {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.badge-demo-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 113, 227, 0.25);
  vertical-align: middle;
  margin-left: 6px;
}

.work-card.is-demo-glow {
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.badge-demo-sash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3px 8px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.pf-badge-demo-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px dashed var(--accent-primary);
  font-size: 12.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.work-card.is-option:hover .work-thumb img,
.work-card.is-option:hover .work-thumb video {
  transform: scale(1.11) translateY(-2px);
}

.work-card.is-option .work-body {
  padding: 10px 12px;
  gap: 3px;
  align-items: center;
  text-align: center;
}

.work-card.is-option .work-body strong {
  font-size: 13px;
}

.work-card.is-option:hover .work-body strong {
  color: var(--accent-primary);
}

.work-thumb img,
.work-thumb video,
.work-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

.work-play-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 28, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.work-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.work-body strong {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.work-body > span:last-child {
  font-size: 12px;
  color: var(--text-muted);
}

/* Interactive Rigging Playground */
.playground-stage {
  border-radius: 0;
  border: none;
  background: transparent;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(calc(100vw - 56px), 1360px);
  max-width: none;
  margin-left: calc(50% - min(calc(50vw - 28px), 680px));
  padding: 0;
  text-align: center;
  gap: 16px;
  position: relative;
  overflow: visible;
}

.playground-live {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 31vw, 400px);
  gap: 20px;
  align-items: start;
  text-align: left;
}

.playground-live > * {
  min-width: 0;
  max-width: 100%;
}

/* Live2D Stage Wrap & Presets */
.l2d-stage-wrap {
  position: relative;
  border-radius: var(--radius-subtle, 18px);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: clamp(600px, 74vh, 760px);
  max-height: 78vh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  user-select: none;
  background-color: var(--bg-card);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.l2d-stage-wrap.is-bg-checker {
  background-color: var(--bg-elevated);
  background-image: linear-gradient(45deg, var(--border-subtle) 25%, transparent 25%),
                    linear-gradient(-45deg, var(--border-subtle) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, var(--border-subtle) 75%),
                    linear-gradient(-45deg, transparent 75%, var(--border-subtle) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.l2d-stage-wrap.is-bg-light {
  background: #fbfbfd;
}

.l2d-stage-wrap.is-bg-dark {
  background: #111215;
}

.l2d-stage-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--l2d-effect-bg, #140c1f);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.25s ease, background-color 0.2s ease;
}

.l2d-stage-wrap.is-effect-dark::before {
  opacity: var(--l2d-effect-bg-alpha, 0.94);
}

.btn-mesh-highlight.is-on {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
}

.eff-pick-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.14);
  color: var(--text-main);
}

.playground-stage.is-drag-over,
.l2d-stage-wrap.is-drag-over {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.l2d-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.l2d-top-bar > * {
  pointer-events: auto;
}

.l2d-top-pill {
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(18, 19, 22, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11.5px;
  pointer-events: none;
  max-width: 100%;
}

.l2d-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: l2dLivePulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes l2dLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.l2d-status-badge {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
  font-size: 11.5px;
}

.l2d-model-name {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2d-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
  cursor: default;
}

.l2d-loader-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 20;
}

.l2d-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: l2d-spin 0.8s linear infinite;
}

@keyframes l2d-spin {
  to { transform: rotate(360deg); }
}

.l2d-loader-text {
  font-size: 13px;
  color: var(--text-muted);
}

.l2d-fallback-stage {
  width: 100%;
  padding: 58px 16px 64px;
}

.l2d-dropzone-bar {
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

.l2d-dropzone-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
  color: var(--text-muted);
}

@media (max-width: 1120px) {
  .l2d-dropzone-text {
    display: none;
  }
}

.l2d-bottom-toolbar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.l2d-bottom-toolbar > * {
  pointer-events: auto;
}

.l2d-bg-toggles {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 19, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: var(--radius-pill, 9999px);
  gap: 2px;
}

.l2d-bg-btn {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 140ms ease;
  color: #fff;
  padding: 0;
}

.l2d-bg-btn.is-active {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.06);
}

.l2d-view-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 19, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: var(--radius-pill, 9999px);
  gap: 3px;
}

.l2d-view-pill-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}

.l2d-view-pill-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.l2d-view-pill-btn.is-active {
  background: var(--accent-primary, #5b8def);
  color: #fff;
}

@media (max-width: 720px) {
  .l2d-view-pill-btn {
    padding: 3px 6px;
    font-size: 10.5px;
  }
}

.l2d-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  gap: 6px;
}

.l2d-toolbar-actions #btn-l2d-reset {
  background: rgba(18, 19, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-pill, 9999px);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.l2d-toolbar-actions #btn-l2d-reset:hover {
  background: rgba(18, 19, 22, 0.85);
}

.l2d-touch-hint,
.l2d-desc-touch {
  display: none;
}

@media (max-width: 720px), (pointer: coarse) {
  .l2d-desc-desktop {
    display: none;
  }
  .l2d-desc-touch {
    display: block;
  }
  .l2d-touch-hint {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    z-index: 9;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 9999px;
    background: rgba(18, 19, 22, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: opacity 280ms ease;
  }
  .l2d-touch-hint.is-hidden {
    opacity: 0;
  }
}

.l2d-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.l2d-exp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.l2d-exp-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.l2d-motion-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.l2d-motion-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.l2d-motion-section .l2d-control-group .btn {
  font-size: 12px;
  padding: 5px 11px;
}

.l2d-control-group .btn.is-on {
  background: rgba(59, 130, 246, 0.13);
  border-color: rgba(59, 130, 246, 0.34);
  color: var(--accent-primary);
  font-weight: 600;
}

.l2d-exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.l2d-exp-chips .btn.is-on {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
}

.l2d-sec-notice {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 4px 2px;
  border-top: 1px dashed var(--border-subtle);
}

.rig-avatar-stage {
  padding: 22px 14px 16px;
  gap: 14px;
  min-height: 210px;
  border-radius: var(--radius-subtle);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.rig-head-sim {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 80ms linear, box-shadow 180ms ease;
}

.rig-head-sim.has-outer {
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.rig-eyes {
  display: flex;
  gap: 22px;
}

.rig-eye {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform 60ms linear;
}

.rig-mouth {
  width: 22px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  transition: all 150ms ease;
}

.rig-head-sim.is-tongue .rig-mouth {
  height: 16px;
  width: 16px;
  border-radius: 6px 6px 12px 12px;
}

.rig-head-sim.is-pout {
  transform: scale(1.06);
}

.rig-head-sim.is-pout .rig-mouth {
  width: 11px;
  height: 9px;
}

.rig-state-readout {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

.gimmick-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gimmick-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gimmick-btn.is-on {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}


@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-grid.pf-rigging-grid .work-card.is-option {
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: none;
  }
  .playground-stage {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 14px;
    overflow-x: clip;
  }
  .gallery-viewer {
    width: 100%;
    margin-left: 0;
  }
  .playground-live {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .playground-stage {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 10px;
    border-radius: 16px;
    overflow-x: clip;
  }
  .l2d-stage-wrap {
    width: 100%;
    max-width: 100%;
    height: clamp(340px, 48dvh, 430px);
    max-height: 52dvh;
  }
  .l2d-bottom-toolbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }
  .l2d-toolbar-actions .btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .gimmick-controls .l2d-exp-section {
    padding-top: 2px;
  }
  .gimmick-controls .l2d-exp-chips {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
  }
  .gimmick-controls .l2d-exp-chips .exp-chip {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 5px 10px;
    font-size: 12px;
    min-height: 32px;
    white-space: nowrap;
  }
  .gimmick-controls p.muted {
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .gimmick-controls .gimmick-btn-group {
    order: -1;
  }
  .gimmick-controls .l2d-control-group .btn,
  .gimmick-controls .gimmick-btn-group .btn {
    padding: 5px 10px;
    font-size: 12px;
    min-height: 32px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid.pf-illust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .portfolio-grid.pf-rigging-grid {
    gap: 10px;
  }
  .portfolio-grid.pf-rigging-grid .work-card.is-option {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: none;
  }
  .portfolio-grid.pf-rigging-grid.is-balanced .work-card.is-option {
    margin-bottom: 10px;
  }
  .pf-nav-dock {
    border-radius: 14px;
    width: 100%;
  }
  .pf-filter-bar {
    padding: 4px;
    gap: 4px;
  }
  .pf-filter-bar .pill-btn {
    padding: 7px 11px;
    font-size: 12px;
    border-radius: 10px;
  }
  .pf-sub-tray {
    padding: 0 10px;
    justify-content: center;
  }
  .pf-sub-tab {
    padding: 8px 8px 6px;
    font-size: 11.5px;
  }
  .gallery-viewer {
    width: calc(100% + 12px);
    margin-left: -6px;
    padding: 4px 0 12px;
    gap: 10px;
  }
  .gallery-deck.is-illust,
  .gallery-deck-wrap.is-illust {
    --deck-h: clamp(330px, 50dvh, 420px);
    height: var(--deck-h);
  }
  .gallery-deck.is-video,
  .gallery-deck-wrap.is-video {
    --deck-h: clamp(250px, 40dvh, 330px);
    height: var(--deck-h);
  }
  .gallery-scrub-thumb {
    width: 24px;
    height: 32px;
  }
  .gallery-filmstrip.is-video .gallery-scrub-thumb {
    width: 38px;
    height: 24px;
  }
  .gallery-scrub-rail {
    width: 100%;
    max-width: 100%;
  }
  .gallery-deck-card {
    padding: 0;
    border-radius: 14px;
    aspect-ratio: var(--card-ratio, 0.75);
    width: min(84%, calc((var(--deck-h) - 8px) * var(--card-ratio, 0.75)));
    height: auto;
    max-height: calc(100% - 8px);
  }
  .gallery-deck.is-video .gallery-deck-card {
    aspect-ratio: var(--card-ratio, 1.778);
    width: min(88%, calc((var(--deck-h) - 8px) * var(--card-ratio, 1.778)));
    height: auto;
    max-height: calc(100% - 8px);
  }
  .gallery-deck-card[data-offset="-1"],
  .gallery-deck-card[data-pos="-1"] {
    transform: translate3d(calc(-1 * (var(--center-w, 230px) * 0.42 + 52px)), 8px, 0) scale(0.86) rotateY(12deg);
  }
  .gallery-deck-card[data-offset="1"],
  .gallery-deck-card[data-pos="1"] {
    transform: translate3d(calc(var(--center-w, 230px) * 0.42 + 52px), 8px, 0) scale(0.86) rotateY(-12deg);
  }
  .gallery-deck-card[data-offset="-2"],
  .gallery-deck-card[data-offset="2"],
  .gallery-deck-card[data-pos="-2"],
  .gallery-deck-card[data-pos="2"] {
    opacity: 0 !important;
    pointer-events: none;
  }
  .gallery-deck-wrap {
    overflow: hidden;
    border-radius: 12px;
  }
  .gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
    border-radius: 10px;
  }
  .gallery-arrow.is-prev {
    left: 6px;
  }
  .gallery-arrow.is-next {
    right: 6px;
  }
  .gallery-meta-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .gallery-meta-caption {
    order: 2;
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 11.5px;
  }
  .gallery-meta-right {
    order: 1;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  .gallery-all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gallery-all-grid.is-video {
    grid-template-columns: 1fr;
  }
}

/* ===== Live2D Visual Admin Button & Parameter Inspector Panel ===== */
.btn-admin-config {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 140ms var(--ease-apple);
}
.btn-admin-config:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.l2d-config-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  animation: l2dFadeIn 220ms ease;
}

@keyframes l2dFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.l2d-cfg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.l2d-cfg-tab-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.l2d-cfg-tab-btn.is-active {
  background: var(--bg-card);
  color: var(--accent-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.l2d-cfg-body {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.l2d-cfg-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l2d-cfg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.l2d-cfg-input, .l2d-cfg-select {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.l2d-cfg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.l2d-param-explorer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l2d-param-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.l2d-param-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  font-size: 11.5px;
}

.l2d-param-item input[type="range"] {
  flex: 1;
  max-width: 140px;
}

.l2d-cfg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* ===== Live2D Model Manager Tab ===== */
.l2d-model-card {
  border-color: color-mix(in srgb, var(--accent-primary) 28%, var(--border-subtle));
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.l2d-model-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.l2d-model-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.l2d-model-item:hover {
  border-color: var(--accent-primary);
}

.l2d-model-item.is-loaded {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.l2d-model-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.l2d-local-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--border-subtle);
  background: var(--bg-elevated);
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.l2d-local-drop:hover,
.l2d-local-drop.is-dragover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

/* ===== Live2D Effects & VTS Eye Glow Editor ===== */
.l2d-effect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l2d-effect-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.l2d-effect-slider-row > span:first-child {
  width: 112px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.l2d-effect-slider-row input[type="range"] {
  flex: 1;
  min-width: 70px;
}

.l2d-effect-slider-val {
  width: 44px;
  text-align: right;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-primary);
}

.l2d-vts-import-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-subtle);
}

.l2d-vts-import-box textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 6px 8px;
  font-family: monospace;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
}

.l2d-mesh-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.l2d-mesh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.l2d-mesh-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, transparent);
  color: var(--text-primary);
  font-size: 11px;
  font-family: monospace;
}

.l2d-mesh-chip button {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

.l2d-mesh-chip button:hover {
  color: #e53e3e;
}

.btn-pick-mesh.is-picking {
  background: var(--accent-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.l2d-mesh-list {
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.l2d-mesh-group-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 4px 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.l2d-mesh-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.l2d-mesh-item:hover {
  background: var(--bg-elevated);
}



/* ===== Tab 3: Commission ===== */
.slot-banner {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.slot-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.slot-kv-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-kv-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.slot-kv-row:not(:first-child) {
  font-size: 14px;
}

.slot-kv-row:not(:first-child) .slot-key {
  color: var(--text-muted);
}

.slot-key {
  color: var(--text-primary);
  font-weight: 400;
}

.slot-val {
  font-weight: 600;
}

.slot-val.is-open {
  color: var(--status-open);
}

.slot-val.is-closed {
  color: var(--status-closed);
}

.slot-val-opening {
  color: var(--text-primary);
  font-weight: 600;
}

.slot-val-opening.is-closed {
  color: var(--text-muted);
  font-weight: 600;
}

.slot-sub-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 10px;
}

.tier-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms var(--ease-apple), background-color 160ms var(--ease-apple), box-shadow 160ms var(--ease-apple);
}

.tier-discount-bookmark {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent-primary, #0066cc);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.35);
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

html[data-theme='dark'] .tier-discount-bookmark {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45);
}

.tier-card:hover {
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.06), var(--shadow-card);
}

.tier-card:active {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

.tier-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.tier-card.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary) inset, var(--shadow-card);
  background: var(--accent-soft);
}

.tier-card.is-selected:hover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-primary) inset, var(--shadow-card);
}

.tier-card-top {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

.tier-card.has-discount .tier-card-top {
  top: auto;
  bottom: 14px;
}

.tier-card .tag-badge.tag-accent {
  position: absolute;
  top: -11px;
  left: 18px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tier-pick-state {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.tier-card.is-selected .tier-pick-state {
  color: var(--accent-primary);
}

.tier-card h3 {
  margin: 2px 0 4px;
  font-size: 17.5px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-subtitle {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: keep-all;
}

.tier-price {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tier-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Unified Click-to-Select Price Table Sections */
#price-options-mount {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.price-opt-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Collapsible Add-on Toggle Section (<details>) */
.price-opt-fold {
  display: block;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms var(--ease-apple), box-shadow 160ms var(--ease-apple);
}

.price-opt-fold[open] {
  border-color: var(--border-strong);
}

.price-opt-fold-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 140ms var(--ease-apple);
}

.price-opt-fold-summary::-webkit-details-marker,
.price-opt-fold-summary::marker {
  display: none;
}

.price-opt-fold-summary:hover {
  background: var(--accent-soft);
}

.price-opt-fold[open] > .price-opt-fold-summary {
  border-bottom: 1px solid var(--border-subtle);
}

.price-fold-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.price-fold-left h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text-primary);
}

.price-fold-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-apple), background-color 160ms var(--ease-apple), color 160ms var(--ease-apple), border-color 160ms var(--ease-apple);
}

.price-opt-fold[open] .price-fold-chevron {
  transform: rotate(90deg);
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.3);
  color: var(--accent-primary);
}

.price-fold-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.opt-total-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
}

.opt-selected-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-primary);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.opt-selected-badge[hidden] {
  display: none;
}

.opt-fold-state {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  transition: color 140ms var(--ease-apple), border-color 140ms var(--ease-apple);
}

.opt-fold-state .is-open-lbl {
  display: none;
}

.opt-fold-state .is-closed-lbl {
  display: inline;
}

.price-opt-fold[open] .opt-fold-state .is-open-lbl {
  display: inline;
  color: var(--accent-primary);
}

.price-opt-fold[open] .opt-fold-state .is-closed-lbl {
  display: none;
}

.price-opt-fold-body {
  padding: 14px;
}

.price-opt-fold-body .price-opt-row:not(.is-selected):not(:active) {
  background: var(--bg-main);
}

.price-opt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.price-opt-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.opt-rule-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.price-opt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.price-opt-grid.is-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 140ms var(--ease-apple), background-color 140ms var(--ease-apple), box-shadow 140ms var(--ease-apple);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.price-opt-row:hover {
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.06);
}

.price-opt-row:active {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

.price-opt-row:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.price-opt-row.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary) inset;
  background: var(--accent-soft);
}

.price-opt-row.is-selected:hover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.price-opt-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.opt-indicator {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: transparent;
  transition: background-color 140ms var(--ease-apple), border-color 140ms var(--ease-apple), color 140ms var(--ease-apple);
}

.opt-indicator.is-radio {
  border-radius: 50%;
}

.price-opt-row.is-selected .opt-indicator {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-ink);
}

.price-opt-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-width: 0;
  flex: 1 1 auto;
}

.price-opt-val {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: right;
  margin-left: 8px;
}

.price-opt-row.is-selected .price-opt-val {
  color: var(--accent-primary);
}

/* Selected Quote Summary + Minimal Application Form */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 26px;
  align-items: start;
}

.quote-receipt {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.quote-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-reset-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.quote-reset-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.quote-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-top: 6px;
}

.quote-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
}

.quote-line-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quote-remove-btn {
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  box-shadow: 0 1px 1.5px rgba(29, 29, 31, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 140ms var(--ease-apple), border-color 140ms var(--ease-apple), color 140ms var(--ease-apple), transform 120ms var(--ease-apple);
}

.quote-remove-btn svg {
  display: block;
}

.quote-remove-btn:hover {
  background: rgba(197, 75, 75, 0.10);
  border-color: rgba(197, 75, 75, 0.34);
  color: var(--status-closed);
}

.quote-remove-btn:active {
  transform: scale(0.92);
}

.channel-block {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.channel-fee-row strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

#calc-channel-action {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn.btn-artmug {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ff7a18 0%, #f95700 100%);
  color: #ffffff;
  border: 1px solid rgba(249, 87, 0, 0.35);
  box-shadow: 0 4px 14px rgba(249, 87, 0, 0.24);
}

.btn.btn-artmug:hover {
  background: linear-gradient(135deg, #ff6a00 0%, #e04d00 100%);
  color: #ffffff;
  border-color: rgba(224, 77, 0, 0.5);
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-pill {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ease-apple), border-color 140ms var(--ease-apple), color 140ms var(--ease-apple);
}

.channel-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.channel-pill.is-active {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
}

.calc-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.calc-total-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.req-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.req-field label b {
  color: var(--accent-primary);
}

.req-field small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.req-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
  transition: border-color var(--transition), background var(--transition);
}

.req-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.req-field.is-error .req-input {
  border-color: var(--status-closed);
}


@media (max-width: 960px) {
  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-opt-grid,
  .price-opt-grid.is-three-col {
    grid-template-columns: 1fr;
  }
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quote-receipt,
  .quote-form,
  .tier-card {
    padding: 20px;
    min-width: 0;
  }
  .tier-grid,
  .price-opt-grid,
  .price-opt-grid.is-three-col {
    grid-template-columns: 1fr;
  }
  .price-opt-row {
    padding: 12px 13px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .price-opt-left {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }
  .price-opt-name {
    font-size: 13px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .price-opt-val {
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .price-opt-fold-summary {
    padding: 13px 14px;
  }
  .price-opt-fold-body {
    padding: 10px;
  }
  .price-fold-left h3 {
    font-size: 15px;
  }
}

/* ===== Accordion / Reviews / Stepper ===== */
.accordion-stack {
  max-width: 780px;
  width: 100%;
  margin: 4px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-accordion-stack {
  max-width: 920px;
}

.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-subtle);
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  overflow: hidden;
}

.accordion + .accordion {
  margin-top: 0;
}

.accordion > summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 140ms var(--ease-apple);
}

.accordion > summary:hover {
  background: var(--bg-elevated);
}

.accordion > summary::-webkit-details-marker {
  display: none;
}

.accordion > summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}

.accordion[open] > summary::after {
  content: '−';
}

.notice-acc-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notice-acc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.accordion-body {
  padding: 14px 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
}

.accordion-body.notice-rich-wrap {
  max-width: none;
  margin: 0;
  gap: 10px;
}

.accordion-body.notice-rich-wrap .workflow-pipeline {
  max-width: 100%;
  margin: 0;
  gap: 12px;
}

.accordion-body.notice-rich-wrap .workflow-track-card {
  background: var(--bg-main);
  box-shadow: none;
}

.accordion-body.notice-rich-wrap .workflow-common-note {
  max-width: 100%;
  background: var(--bg-main);
}

.review-section-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.review-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.review-top {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.review-quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 180ms ease;
}

.review-em {
  font-weight: 700;
  color: var(--text-primary);
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.review-client {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-client-name {
  font-weight: 600;
  color: var(--text-primary);
}

.review-client-scope {
  color: var(--text-muted);
}

.review-proof-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}

.review-proof-link:hover {
  text-decoration: underline;
}

.reviews-grid:hover .review-card:not(:hover) {
  opacity: 0.72;
  transform: scale(0.99);
}

.review-card.has-full-text {
  cursor: pointer;
  outline: none;
}
.review-card.has-full-text:hover,
.review-card.has-full-text:focus-visible {
  transform: translateY(-6px) scale(1.018);
  z-index: 5;
  opacity: 1;
  border-color: var(--border-strong);
  box-shadow:
    0 22px 44px -12px rgba(0, 0, 0, 0.14),
    0 8px 18px -6px rgba(0, 0, 0, 0.06);
}

.review-card.has-full-text:hover .review-quote,
.review-card.has-full-text:focus-visible .review-quote {
  color: var(--text-primary);
}

.btn-read-full-review {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  background: transparent;
  color: var(--accent-primary);
  border: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--ease-apple), color 140ms ease;
}

.review-card.has-full-text:hover .btn-read-full-review,
.review-card.has-full-text:focus-visible .btn-read-full-review {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (hover: none) {
  .btn-read-full-review {
    opacity: 0.85;
    transform: none;
    pointer-events: auto;
  }
}

.review-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.review-tag-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.review-tag-badge.is-tone-0 {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.22);
  color: #0066cc;
}

.review-tag-badge.is-tone-1 {
  background: rgba(124, 58, 237, 0.09);
  border-color: rgba(124, 58, 237, 0.2);
  color: #6d28d9;
}

.review-tag-badge.is-tone-2 {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
  color: #059669;
}

:root[data-theme="dark"] .review-tag-badge.is-tone-0 {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
  color: #60a5fa;
}

:root[data-theme="dark"] .review-tag-badge.is-tone-1 {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.28);
  color: #a78bfa;
}

:root[data-theme="dark"] .review-tag-badge.is-tone-2 {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.28);
  color: #34d399;
}

.review-modal-card {
  max-width: 660px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.review-modal-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.review-modal-header-meta {
  margin-bottom: 12px;
}

.review-modal-quote-box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 14px 0 18px;
}

.review-modal-paragraphs p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
.review-modal-paragraphs p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.review-section-block {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.review-section-block + .review-section-block {
  margin-top: 14px;
}

.review-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.review-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  color: var(--accent-ink, #fff);
  font-size: 11px;
  font-weight: 700;
}

.workflow-pipeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.workflow-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.workflow-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-track-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.workflow-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.workflow-track-title strong {
  font-size: 15.5px;
  letter-spacing: -0.015em;
}

.workflow-period-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.workflow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}

.workflow-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.workflow-node .wf-step-idx {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-node.is-checkpoint {
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.28);
  color: var(--accent-primary);
}

.workflow-node.is-checkpoint .wf-step-idx {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--accent-ink);
}

.workflow-node.is-terminal {
  border-color: rgba(30, 142, 90, 0.34);
  background: rgba(30, 142, 90, 0.08);
  color: var(--status-open);
}

.workflow-node.is-terminal .wf-step-idx {
  background: var(--status-open);
  border-color: transparent;
  color: var(--accent-ink);
}

.workflow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  opacity: 0.85;
  flex-shrink: 0;
}

.workflow-stage-next {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  opacity: 0.72;
  padding: 2px 0;
}

.workflow-notes {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.workflow-notes b,
.workflow-notes strong {
  color: var(--text-primary);
}

.workflow-common-note {
  max-width: 920px;
  width: 100%;
  margin: 6px auto 0;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.workflow-common-note b,
.workflow-common-note strong {
  color: var(--text-primary);
}

.notice-callout-card {
  max-width: 780px;
  width: 100%;
  margin: 0 auto 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-subtle);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.notice-callout-card p {
  margin: 0;
}


@media (max-width: 820px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .review-card {
    padding: 20px;
    min-width: 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .workflow-track-card {
    padding: 16px;
  }
  .workflow-node {
    padding: 6px 10px;
    font-size: 12.5px;
  }
}

/* ===== Lightbox Modal & Toast ===== */
.v2-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.v2-modal.is-open {
  display: flex;
}

.v2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.v2-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-modal-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v2-modal-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.v2-modal-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms var(--ease-apple), background-color 140ms var(--ease-apple);
}

.v2-modal-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.v2-modal-btn[hidden] {
  display: none;
}

.v2-modal-media {
  aspect-ratio: 16 / 10;
  max-height: 70dvh;
  border-radius: var(--radius-subtle);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v2-modal-media img,
.v2-modal-media video,
.v2-modal-media iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.v2-modal-meta h3 {
  margin: 8px 0 4px;
}

.v2-modal-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Full-Viewport Blurred v1-Style Lightbox */
.v2-modal.is-fullscreen-lb {
  padding: 0;
}

.v2-modal.is-embed-vp {
  display: none;
  padding: 0;
}

.v2-modal.is-embed-vp.is-open {
  display: block;
}

.v2-modal.is-embed-vp .v2-lb-stage {
  position: fixed;
  left: 50%;
  top: var(--lb-vp-center, 50%);
  transform: translate(-50%, -50%);
  width: min(94vw, 1480px);
  max-height: calc(var(--lb-vp-h, 86dvh) - 36px);
}

.v2-modal.is-embed-vp .v2-lb-stage img,
.v2-modal.is-embed-vp .v2-lb-stage video {
  max-height: calc(var(--lb-vp-h, 86dvh) - 48px);
}

.v2-modal.is-embed-vp .v2-lb-stage video.is-option-lb {
  width: min(680px, 90vw, calc(var(--lb-vp-h, 86dvh) - 64px));
}

.v2-modal.is-embed-vp .v2-lb-stage iframe {
  width: min(92vw, calc((var(--lb-vp-h, 86dvh) - 64px) * 16 / 9));
  max-height: calc(var(--lb-vp-h, 86dvh) - 48px);
}

.v2-modal.is-embed-vp .v2-lb-close {
  position: fixed;
  top: var(--lb-vp-top, 18px);
  right: 18px;
}

.v2-modal.is-embed-vp .v2-lb-zoom-hud {
  position: fixed;
  left: 50%;
  top: var(--lb-vp-bottom, auto);
  bottom: var(--lb-vp-hud-bottom, 22px);
  transform: translateX(-50%);
}

.v2-modal.review-modal.is-embed-vp .review-modal-card {
  position: fixed;
  left: 50%;
  top: var(--lb-vp-center, 50%);
  transform: translate(-50%, -50%);
  max-height: calc(var(--lb-vp-h, 85vh) - 32px);
}

.v2-modal.is-fullscreen-lb .v2-modal-backdrop {
  background: rgba(14, 14, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  backdrop-filter: blur(18px) saturate(0.9);
  cursor: zoom-out;
}

[data-theme="dark"] .v2-modal.is-fullscreen-lb .v2-modal-backdrop {
  background: rgba(6, 6, 8, 0.80);
}

.v2-lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(24, 24, 26, 0.74);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 140ms var(--ease-apple), transform 140ms var(--ease-apple);
}

.v2-lb-close:hover {
  background: rgba(42, 42, 46, 0.92);
  transform: scale(1.06);
}

.v2-lb-stage {
  position: relative;
  z-index: 2;
  max-width: 94vw;
  max-height: 92dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v2-lb-stage img,
.v2-lb-stage video {
  pointer-events: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1480px);
  max-height: 92dvh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  animation: v2-lb-pop 200ms var(--ease-apple);
}

.v2-lb-stage img {
  background: transparent;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
}

.v2-lb-zoom-hud {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 160ms ease;
}

.v2-lb-zoom-hud.is-visible {
  opacity: 1;
}

.v2-lb-stage video {
  background: #000;
}

.v2-lb-stage video.is-option-lb {
  width: min(680px, 90vw, 86dvh);
  aspect-ratio: 1 / 1;
  background: #fffdf8;
  cursor: zoom-out;
}

[data-theme="dark"] .v2-lb-stage video.is-option-lb {
  background: #141518;
}

.v2-lb-stage iframe {
  pointer-events: auto;
  width: min(92vw, calc((100dvh - 80px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 90dvh;
  border: 0;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  animation: v2-lb-pop 200ms var(--ease-apple);
}

@keyframes v2-lb-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.v2-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 10px);
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 180ms ease, transform 180ms ease;
}

.v2-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

