:root {
  /* Awwwards Quality Luxury Gallery — Velvet Obsidian + Metallic Warm Gold */
  color-scheme: dark;
  --bg: #090a0f;
  --bg-elevated: #13151f;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.16);
  --accent-strong: #f59e0b;
  --danger: #ef4444;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --warn-ink: #fbbf24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(9, 10, 15, 0.65);
  --chrome-deep: #090a0f;
  --chrome-toolbar: #11131c;
  --panel-bg: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-muted: rgba(255, 255, 255, 0.02);
  --media-ph: linear-gradient(145deg, #1c1f2e, #11131c);
  --focus-ring: rgba(245, 158, 11, 0.5);
  --accent-ring: rgba(245, 158, 11, 0.3);
  --danger-soft: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(239, 68, 68, 0.5);
  --danger-ink: #f87171;
  --danger-ink-strong: #fca5a5;
  --noise-opacity: 0.08;
  --noise-blend: overlay;
  --tabbar-bg: rgba(9, 10, 15, 0.85);
  --body-bg-image: radial-gradient(1200px 800px at 50% -10%, #151828 0%, #090a0f 70%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-media: 12px;
  --radius-panel: 14px;
  --jade: var(--accent);
  --gold: #f59e0b;
  --font-display: "Playfair Display", "Cinzel", "Cormorant Garamond", serif;
  --font-body: "Inter", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --space: clamp(1.25rem, 3.5vw, 3rem);
  --page-pad-x: var(--space);
  --page-pad-y: clamp(1.5rem, 3.5vw, 2.5rem);
  --page-pad-bottom: clamp(2rem, 5vw, 3.5rem);
  --grid-gap: 2rem 1.5rem;
  --empty-pad: 2.5rem 1.5rem;
  --header-h: 4.5rem;
  --tabbar-h: 0px;
  --footer-approx: 8rem;
  --touch: 44px;
  --content-max: 76rem;
  --z-header: 30;
  --z-bid-bar: 35;
  --z-tabbar: 40;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-image: url("/assets/hero-gallery.jpg");
  --hero-overlay:
    linear-gradient(110deg, rgba(9, 10, 15, 0.88) 0%, rgba(9, 10, 15, 0.6) 45%, rgba(9, 10, 15, 0.3) 70%, rgba(9, 10, 15, 0.5) 100%),
    linear-gradient(180deg, rgba(9, 10, 15, 0.4) 0%, transparent 30%, rgba(9, 10, 15, 0.7) 100%);
  --btn-on-accent: #090a0f;
}

html[data-color-theme='light'] {
  color-scheme: light;
  --bg: #f3f5f4;
  --bg-elevated: #ffffff;
  --ink: #12161c;
  --muted: #5a6570;
  --accent: #0e7c70;
  --accent-soft: #e3f4f1;
  --accent-strong: #0a6359;
  --danger: #c23b3b;
  --warn-bg: #fff6e8;
  --warn-ink: #8a5a00;
  --line: rgba(18, 22, 28, 0.09);
  --line-strong: rgba(18, 22, 28, 0.16);
  --shadow: 0 24px 60px rgba(18, 40, 50, 0.07);
  --shadow-sm: 0 10px 28px rgba(18, 40, 50, 0.05);
  --header-bg: rgba(255, 255, 255, 0.9);
  --chrome-deep: #ffffff;
  --chrome-toolbar: #e8eceb;
  --panel-bg: #ffffff;
  --surface-hover: rgba(18, 22, 28, 0.05);
  --surface-muted: rgba(18, 22, 28, 0.035);
  --media-ph: linear-gradient(145deg, #e8eeef, #dde5e7);
  --focus-ring: rgba(14, 124, 112, 0.4);
  --accent-ring: rgba(14, 124, 112, 0.22);
  --danger-soft: rgba(194, 59, 59, 0.1);
  --danger-border: rgba(194, 59, 59, 0.45);
  --danger-ink: #a22;
  --danger-ink-strong: #8a1f1f;
  --noise-opacity: 0.045;
  --noise-blend: multiply;
  --tabbar-bg: rgba(255, 255, 255, 0.94);
  --body-bg-image:
    radial-gradient(1100px 640px at 0% -10%, rgba(180, 210, 220, 0.38), transparent 58%),
    radial-gradient(900px 560px at 100% 0%, rgba(170, 215, 200, 0.28), transparent 55%),
    linear-gradient(180deg, #f7f8f7 0%, #eef1f0 100%);
  --hero-overlay:
    linear-gradient(105deg, rgba(243, 245, 244, 0.78) 0%, rgba(243, 245, 244, 0.42) 40%, rgba(18, 22, 28, 0.12) 100%),
    linear-gradient(180deg, rgba(243, 245, 244, 0.28) 0%, transparent 48%, rgba(243, 245, 244, 0.62) 100%);
  --btn-on-accent: #ffffff;
  --gold: #0e7c70;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: var(--body-bg-image);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: var(--noise-blend, soft-light);
}

body::after {
  content: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 22px, 0) scale(1.08); }
}

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

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

@keyframes soft-in {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header,
.app,
.site-footer,
.mobile-tabbar {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-h);
  padding: 0.55rem var(--space);
  padding-top: max(0.55rem, env(safe-area-inset-top));
  backdrop-filter: blur(16px) saturate(1.1);
  background: var(--header-bg);
  box-shadow: inset 0 -1px 0 var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease-out);
}

.brand:hover { opacity: 0.72; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: color 0.18s var(--ease-out);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: transparent;
}

.site-nav a.is-active {
  color: var(--accent-strong);
  background: transparent;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  justify-content: flex-end;
}

.cart-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-hover);
}

.cart-nav-link.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--btn-on-accent);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.cart-tab-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
}

.shop-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.shop-buy-row .qty-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-buy-row input[type='number'] {
  width: 5.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  border-radius: var(--radius-sm, 6px);
}

.shop-buy-row .buy-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-code-tag,
.art-code-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, SFMono-Regular, Consolas, monospace);
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  vertical-align: middle;
}

.detail-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.stock-badge {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 0.4rem;
}

/* Unified Detail Page Primary Action Card & Utility Toolbar */
.detail-primary-card {
  background: var(--bg-elevated, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pf-inquiry-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pf-inquiry-box .btn-primary {
  width: 100%;
  height: 2.9rem;
  font-size: 0.98rem;
  font-weight: 700;
  justify-content: center;
}

.detail-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}

.detail-utility-bar .utility-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.detail-utility-bar .btn {
  height: 2.5rem;
  padding: 0 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Modal & Dialog Luxury Design System */
dialog.modal {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink, #fff);
  max-width: min(90vw, 480px);
  width: 100%;
  margin: auto;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}

dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.modal-card {
  background: var(--bg-surface, #1e1e24);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink, #fff);
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--ink-muted, #999);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-body .form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink, #fff);
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}

.modal-foot .btn {
  height: 2.65rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
}

.cart-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 1rem;
  margin: 0;
  background: var(--surface-hover);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
}

.cart-thumb img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: var(--radius-media);
  background: var(--surface-hover);
}

.cart-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.cart-summary {
  max-width: 28rem;
}

.shop-line-items {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
}

.price-lg {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.mobile-tabbar {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.18rem;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.52rem;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
  touch-action: manipulation;
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--btn-on-accent);
}

.lang-btn:hover:not(.is-active) { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 0;
  letter-spacing: -0.01em;
}

.nav-action {
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}

.nav-action:hover { color: var(--ink); }

.btn-nav {
  padding: 0.45rem 0.85rem;
  min-height: 2.2rem;
  font-size: 0.84rem;
}

.nav-label-short { display: none; }

.nav-mypage-link {
  display: inline;
}

.nav-admin,
.nav-account {
  position: relative;
  flex: 0 0 auto;
}

.nav-account-btn,
.nav-admin-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  white-space: nowrap;
  touch-action: manipulation;
}

.nav-admin-btn:hover,
.nav-account-btn:hover { color: var(--ink); }

.nav-admin-caret {
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform 0.18s var(--ease-out);
}

.nav-admin.is-open .nav-admin-caret,
.nav-account.is-open .nav-admin-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-admin-panel,
.nav-account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 11rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 40;
  animation: soft-in 0.2s var(--ease-out) both;
}

.nav-admin.is-open .nav-admin-panel,
.nav-account.is-open .nav-account-panel {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.nav-admin-group {
  margin: 0.45rem 0.55rem 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-admin-home { font-weight: 700 !important; }

.nav-admin-panel a,
.nav-account-panel a,
.nav-account-logout {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-admin-panel a:hover,
.nav-account-panel a:hover,
.nav-account-logout:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-account-logout {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 0.2rem;
}

.cart-label-short { display: none; }

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.admin-subnav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.admin-subnav a:hover {
  color: var(--ink);
  background: var(--panel-bg);
}

.admin-subnav a.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-hub-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-hub-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.admin-hub-links a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-hover);
  border: 1px solid var(--line);
}

.admin-hub-links a:hover {
  background: var(--accent-soft);
  border-color: transparent;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 0 0 auto;
  margin-left: 0.15rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}

.nav-name {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.nav-profile-short { display: inline-flex; }

.app {
  flex: 1 0 auto;
  padding: 0;
  width: 100%;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface-hover);
  backdrop-filter: blur(12px);
  /* Clear fixed mobile tab bar */
  padding-bottom: var(--tabbar-h);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--space) calc(1.75rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, auto);
  gap: 1.25rem 2.5rem;
  align-items: end;
}

.footer-main {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.footer-top {
  display: grid;
  gap: 0.25rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-aside {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  text-align: right;
}

.footer-aside .footer-links {
  justify-content: flex-end;
}

.footer-legal {
  font-size: 0.78rem;
  opacity: 0.92;
}

.footer-links a {
  position: relative;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent-strong); }

.footer-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 22rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vh, 3.25rem) var(--space) clamp(1.5rem, 3.5vh, 2.25rem);
  max-width: none;
  width: 100%;
  animation: rise 0.9s var(--ease-out) both;
  overflow: hidden;
}

.hero-home {
  min-height: min(92dvh, calc(100dvh - var(--header-h)));
  justify-content: center;
  padding-top: clamp(3rem, 10vh, 6rem);
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--hero-overlay),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-ken 28s var(--ease-out) infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.2%, 0.6%, 0); }
}

.hero-atmosphere::after {
  content: none;
}

.hero-copy {
  position: relative;
  max-width: 38rem;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: auto;
  height: clamp(3.25rem, 8vw, 4.75rem);
  max-width: min(14rem, 60vw);
  margin: 0 0 1.35rem;
  object-fit: contain;
  object-position: left center;
  animation: rise 0.85s var(--ease-out) both;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

html[data-color-theme='light'] .hero-logo {
  filter: drop-shadow(0 6px 18px rgba(18, 40, 50, 0.12));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.hero h1,
.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 8.5vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  animation: rise 0.95s var(--ease-out) 0.08s both;
  font-optical-sizing: auto;
  text-transform: uppercase;
}

.hero-brand-line {
  display: block;
}

.hero-brand-accent {
  display: block;
  color: var(--accent);
  font-weight: 500;
}

.lede {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.75;
  font-weight: 400;
  animation: rise 0.95s var(--ease-out) 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.95s var(--ease-out) 0.24s both;
}

.cta-row .btn {
  flex: 0 1 auto;
  min-width: 10.5rem;
  text-align: center;
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  animation: rise 1.1s var(--ease-out) 0.4s both;
  pointer-events: none;
  width: max-content;
  margin: 0;
  padding: 0;
}

.hero-scroll-mouse {
  width: 1.1rem;
  height: 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
}

.hero-scroll-mouse::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 50%;
  width: 0.2rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scroll-dot 1.6s var(--ease-out) infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  70% { opacity: 0; transform: translateX(-50%) translateY(0.55rem); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0.55rem); }
}

.hero-scroll-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  padding: 0.92rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
  touch-action: manipulation;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.btn-danger {
  background: transparent;
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.btn-danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger-ink-strong);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-tabs {
  margin-bottom: 1rem;
}

/* role guide on home */
.role-guide {
  position: relative;
  z-index: 1;
  padding: 0 var(--space) clamp(3rem, 8vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.role-guide-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.role-guide-head {
  margin-bottom: 1.25rem;
}

.role-guide-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.role-guide-head-top .role-guide-badge {
  margin-bottom: 0;
}

.role-guide-close {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.role-guide-close:hover {
  color: var(--ink);
}

.role-guide-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.role-guide-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.role-guide-head .lede {
  margin: 0 0 0.5rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.55;
}

.role-guide-me {
  margin: 0;
}

.role-guide-overview {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-hover);
}

.role-guide-overview h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role-guide-overview-p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.role-guide-overview-p:last-child {
  margin-bottom: 0;
}

.role-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.role-guide-tabs .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.role-guide-code {
  font-size: 0.68rem;
  opacity: 0.72;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.role-guide-panel {
  padding: 1.1rem 1.15rem 1.2rem;
}

.role-guide-summary {
  margin: 0;
  line-height: 1.65;
  color: var(--ink);
  font-size: 1.02rem;
}

.role-guide-block {
  margin-bottom: 1.25rem;
}

.role-guide-block:last-child {
  margin-bottom: 0;
}

.role-guide-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  margin-bottom: 0.35rem;
}

.role-guide-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.role-guide-list,
.role-guide-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.65;
}

.role-guide-list li,
.role-guide-steps li {
  margin-bottom: 0.55rem;
}

.role-guide-steps li::marker {
  font-weight: 700;
  color: var(--accent-strong);
}

.role-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-guide-note {
  margin: 0.35rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.92rem;
  line-height: 1.55;
}

.role-guide-scenario-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin: 0 0 0.4rem;
}

.role-guide-scenes {
  display: grid;
  gap: 1.15rem;
}

.role-guide-scene {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-guide-scene-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.role-guide-scene-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.role-guide-scene-p {
  margin: 0 0 0.55rem;
  color: var(--ink);
  line-height: 1.65;
  font-size: 0.95rem;
}

.role-guide-callout {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.role-guide-callout.is-tip {
  background: var(--surface-hover);
  border: 1px solid var(--line);
}

.role-guide-callout.is-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.role-guide-troubles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.role-guide-troubles li {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
}

.role-guide-if,
.role-guide-then {
  margin: 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.role-guide-if {
  margin-bottom: 0.35rem;
}

.role-guide-if span,
.role-guide-then span {
  display: inline-block;
  min-width: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.25rem;
}

.role-guide-faq {
  display: grid;
  gap: 0.55rem;
}

.role-guide-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.15rem 0.85rem;
}

.role-guide-faq-item summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-weight: 650;
  line-height: 1.4;
}

.role-guide-faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.55rem;
}

.role-guide-faq-item p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.role-guide-matrix {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  padding: 0.75rem 1rem 1rem;
}

.role-guide-matrix-hint {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.88rem;
}

.role-guide-matrix summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.role-guide-matrix summary::-webkit-details-marker {
  display: none;
}

.role-guide-matrix summary::before {
  content: "▸ ";
  color: var(--accent);
}

.role-guide-matrix[open] summary::before {
  content: "▾ ";
}

.role-guide-table-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
}

.role-guide-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.role-guide-matrix th,
.role-guide-matrix td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.role-guide-matrix th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.role-guide-matrix td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}

.role-guide-matrix td:first-child {
  white-space: normal;
  min-width: 9rem;
}

@media (max-width: 767px) {
  .role-guide-cols {
    grid-template-columns: 1fr;
  }

  .role-guide-panel {
    padding: 1.05rem 1rem 1.15rem;
  }

  .role-guide-head h2 {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
    overflow-wrap: anywhere;
  }

  .role-guide-scene-title {
    flex-wrap: wrap;
  }

  .role-guide-if,
  .role-guide-then {
    flex-wrap: wrap;
  }
}

/* Shared surfaces */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
textarea.input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

textarea.input {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.input:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--accent);
}

select.input,
select.toolbar-select {
  color-scheme: inherit;
}

select.input option,
select.toolbar-select option {
  background: var(--bg-elevated);
  color: var(--ink);
}

/* Chrome autofill on dark surfaces */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.deposit-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 99999s ease-out;
}

.deposit-form input,
.deposit-form textarea,
.deposit-form select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.payment-box {
  margin: 1.25rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
}

.payment-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.payment-box .account-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.font-theme-preview {
  display: grid;
  gap: 0.35rem;
  margin: -0.25rem 0 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

.font-theme-preview-display {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.font-theme-preview-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}

.settings-lang-tabs {
  margin: 0.35rem 0 1rem;
}

.brand-hero-preview-wrap {
  display: grid;
  gap: 0.55rem;
  margin: -0.15rem 0 0.85rem;
}

.brand-hero-preview {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--chrome-deep) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
}

.brand-hero-preview-wrap .btn-sm {
  width: fit-content;
}

.theme-tone-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 0.5rem;
}

.theme-tone-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.theme-tone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.theme-tone-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-tone-card:hover {
  border-color: var(--line-strong);
}

.theme-tone-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-tone-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-tone-swatch {
  display: block;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.theme-tone-dark {
  background:
    linear-gradient(135deg, #141210 40%, #c4a574 40% 55%, #1c1a17 55%);
}

.theme-tone-light {
  background:
    linear-gradient(135deg, #f3f5f4 40%, #0e7c70 40% 55%, #ffffff 55%);
}

.theme-tone-label {
  font-weight: 700;
  color: var(--ink);
}

.theme-tone-hint {
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .theme-tone-grid {
    grid-template-columns: 1fr;
  }
}

.deposit-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.deposit-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.deposit-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

/* Home path strip (below hero) */
.home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  animation: rise 0.9s var(--ease-out) 0.12s both;
}

.home-paths-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-path {
  display: grid;
  gap: 0.45rem;
  padding: 1.55rem 1.25rem;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.25s var(--ease-out);
  position: relative;
}

.home-path:last-child { border-right: 0; }

.home-path::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.home-path:hover {
  background: var(--panel-bg);
}

.home-path:hover::after {
  transform: scaleX(1);
}

.home-path-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.home-path-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-path-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-guide-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.95rem var(--space) 1.05rem;
  border-bottom: 1px solid var(--line);
}

.home-guide-bar-copy {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.home-guide-bar-cta {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.home-guide-bar-cta:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent-strong);
}

.home-guide-bar-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Shared page shell — single padding source for .page and .page-shell */
.page,
.page.page-shell,
.page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x) var(--page-pad-bottom);
  animation: rise 0.7s var(--ease-out) both;
}

.section-head {
  margin-bottom: 1.15rem;
  max-width: none;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
}

.section-head h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42rem;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.filter-row-sticky {
  position: sticky;
  top: calc(var(--header-h) + 0.25rem);
  z-index: 5;
  padding: 0.55rem 0;
  margin: 0 0 1.15rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  backdrop-filter: blur(10px);
  animation: soft-in 0.35s var(--ease-out) both;
}

/* About — full shell width, dense two-column */
.page-about .section-head {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(13.5rem, 17rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  width: 100%;
  max-width: none;
}

.about-aside {
  display: grid;
  gap: 0.95rem;
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}

.about-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

/* 기본 로고 SVG fill이 어두움 → dark 테마에서 밝게 */
html:not([data-color-theme='light']) .about-logo img[src*='logo.svg'],
html:not([data-color-theme='light']) .hero-logo img[src*='logo.svg'] {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.about-logo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.about-contact h2 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-contact p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.about-contact a {
  color: var(--accent-strong);
  text-decoration: none;
}

.about-contact a:hover {
  text-decoration: underline;
}

.about-links {
  display: grid;
  gap: 0.4rem;
}

.about-links .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.9rem;
  min-height: 2.55rem;
}

.about-bio {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-bio > *:first-child {
  margin-top: 0;
}

.about-bio h2,
.about-bio h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.about-bio h2:first-child,
.about-bio h3:first-child {
  margin-top: 0;
}

.about-bio p {
  margin: 0 0 0.75rem;
}

.about-bio ul,
.about-bio ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.about-bio li {
  margin: 0.25rem 0;
}

.about-bio li + li {
  margin-top: 0.35rem;
}

.about-bio img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
  border-radius: var(--radius-sm);
}

/* Document pages (shipping) */
.page-doc .section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.page-doc .doc-body {
  max-width: none;
  padding: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
}

.page-doc .doc-body h2,
.page-doc .doc-body h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-doc .doc-body h2:first-child,
.page-doc .doc-body h3:first-child {
  margin-top: 0;
}

.page-doc .doc-body p {
  margin: 0 0 0.75rem;
}

.page-doc .doc-body ul,
.page-doc .doc-body ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.about-bio,
.detail-body,
.rich-body,
.page-doc .doc-body {
  color: var(--ink);
}

/* 다크 테마: 밝은 배경용 검정 글자색 → 본문색 */
html:not([data-color-theme='light']) .about-bio [style*="color:#000"],
html:not([data-color-theme='light']) .about-bio [style*="color: #000"],
html:not([data-color-theme='light']) .about-bio [style*="color:#111"],
html:not([data-color-theme='light']) .about-bio [style*="color: #111"],
html:not([data-color-theme='light']) .about-bio [style*="color:#1a1a1a"],
html:not([data-color-theme='light']) .about-bio [style*="color: #1a1a1a"],
html:not([data-color-theme='light']) .about-bio [style*="color:#12161c"],
html:not([data-color-theme='light']) .about-bio [style*="color: #12161c"],
html:not([data-color-theme='light']) .about-bio [style*="color:rgb(0, 0, 0"],
html:not([data-color-theme='light']) .about-bio [style*="color: rgb(0, 0, 0"],
html:not([data-color-theme='light']) .about-bio [style*="color:rgb(18, 22, 28"],
html:not([data-color-theme='light']) .about-bio [style*="color: rgb(18, 22, 28"],
html:not([data-color-theme='light']) .about-bio [style*="color:rgb(26, 26, 26"],
html:not([data-color-theme='light']) .about-bio [style*="color: rgb(26, 26, 26"],
html:not([data-color-theme='light']) .detail-body [style*="color:#000"],
html:not([data-color-theme='light']) .rich-body [style*="color:#000"],
html:not([data-color-theme='light']) .detail-body [style*="color: #000"],
html:not([data-color-theme='light']) .rich-body [style*="color: #000"],
html:not([data-color-theme='light']) .detail-body [style*="color:#111"],
html:not([data-color-theme='light']) .rich-body [style*="color:#111"],
html:not([data-color-theme='light']) .detail-body [style*="color: #111"],
html:not([data-color-theme='light']) .rich-body [style*="color: #111"],
html:not([data-color-theme='light']) .detail-body [style*="color:#1a1a1a"],
html:not([data-color-theme='light']) .rich-body [style*="color:#1a1a1a"],
html:not([data-color-theme='light']) .detail-body [style*="color: #1a1a1a"],
html:not([data-color-theme='light']) .rich-body [style*="color: #1a1a1a"],
html:not([data-color-theme='light']) .detail-body [style*="color:#12161c"],
html:not([data-color-theme='light']) .rich-body [style*="color:#12161c"],
html:not([data-color-theme='light']) .detail-body [style*="color: #12161c"],
html:not([data-color-theme='light']) .rich-body [style*="color: #12161c"],
html:not([data-color-theme='light']) .detail-body [style*="color:rgb(0, 0, 0"],
html:not([data-color-theme='light']) .rich-body [style*="color:rgb(0, 0, 0"],
html:not([data-color-theme='light']) .detail-body [style*="color: rgb(0, 0, 0"],
html:not([data-color-theme='light']) .rich-body [style*="color: rgb(0, 0, 0"],
html:not([data-color-theme='light']) .detail-body [style*="color:rgb(18, 22, 28"],
html:not([data-color-theme='light']) .rich-body [style*="color:rgb(18, 22, 28"],
html:not([data-color-theme='light']) .detail-body [style*="color: rgb(18, 22, 28"],
html:not([data-color-theme='light']) .rich-body [style*="color: rgb(18, 22, 28"],
html:not([data-color-theme='light']) .detail-body [style*="color:rgb(26, 26, 26"],
html:not([data-color-theme='light']) .rich-body [style*="color:rgb(26, 26, 26"],
html:not([data-color-theme='light']) .detail-body [style*="color: rgb(26, 26, 26"],
html:not([data-color-theme='light']) .rich-body [style*="color: rgb(26, 26, 26"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:#000"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: #000"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:#111"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: #111"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:#1a1a1a"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: #1a1a1a"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:#12161c"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: #12161c"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:rgb(0, 0, 0"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: rgb(0, 0, 0"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:rgb(18, 22, 28"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: rgb(18, 22, 28"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color:rgb(26, 26, 26"],
html:not([data-color-theme='light']) .page-doc .doc-body [style*="color: rgb(26, 26, 26"],
html:not([data-color-theme='light']) .rich-editor [style*="color:#000"],
html:not([data-color-theme='light']) .rich-editor [style*="color: #000"],
html:not([data-color-theme='light']) .rich-editor [style*="color:#111"],
html:not([data-color-theme='light']) .rich-editor [style*="color: #111"],
html:not([data-color-theme='light']) .rich-editor [style*="color:#1a1a1a"],
html:not([data-color-theme='light']) .rich-editor [style*="color: #1a1a1a"],
html:not([data-color-theme='light']) .rich-editor [style*="color:#12161c"],
html:not([data-color-theme='light']) .rich-editor [style*="color: #12161c"],
html:not([data-color-theme='light']) .rich-editor [style*="color:rgb(0, 0, 0"],
html:not([data-color-theme='light']) .rich-editor [style*="color: rgb(0, 0, 0"],
html:not([data-color-theme='light']) .rich-editor [style*="color:rgb(18, 22, 28"],
html:not([data-color-theme='light']) .rich-editor [style*="color: rgb(18, 22, 28"],
html:not([data-color-theme='light']) .rich-editor [style*="color:rgb(26, 26, 26"],
html:not([data-color-theme='light']) .rich-editor [style*="color: rgb(26, 26, 26"] {
  color: var(--ink) !important;
}

/* 라이트 테마: 다크용 크림/흰색/골드(hex·rgb) → 본문색 */
html[data-color-theme='light'] .about-bio [style*="color:#f3efe6"],
html[data-color-theme='light'] .about-bio [style*="color: #f3efe6"],
html[data-color-theme='light'] .about-bio [style*="color:#F3EFE6"],
html[data-color-theme='light'] .about-bio [style*="color: #F3EFE6"],
html[data-color-theme='light'] .about-bio [style*="color:#fff"],
html[data-color-theme='light'] .about-bio [style*="color: #fff"],
html[data-color-theme='light'] .about-bio [style*="color:#ffffff"],
html[data-color-theme='light'] .about-bio [style*="color: #ffffff"],
html[data-color-theme='light'] .about-bio [style*="color:#c4a574"],
html[data-color-theme='light'] .about-bio [style*="color: #c4a574"],
html[data-color-theme='light'] .about-bio [style*="color:#a89f90"],
html[data-color-theme='light'] .about-bio [style*="color: #a89f90"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(243, 239, 230"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(243, 239, 230"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(255, 255, 255"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(255, 255, 255"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .detail-body [style*="color:#f3efe6"],
html[data-color-theme='light'] .rich-body [style*="color:#f3efe6"],
html[data-color-theme='light'] .detail-body [style*="color: #f3efe6"],
html[data-color-theme='light'] .rich-body [style*="color: #f3efe6"],
html[data-color-theme='light'] .detail-body [style*="color:#F3EFE6"],
html[data-color-theme='light'] .rich-body [style*="color:#F3EFE6"],
html[data-color-theme='light'] .detail-body [style*="color: #F3EFE6"],
html[data-color-theme='light'] .rich-body [style*="color: #F3EFE6"],
html[data-color-theme='light'] .detail-body [style*="color:#fff"],
html[data-color-theme='light'] .rich-body [style*="color:#fff"],
html[data-color-theme='light'] .detail-body [style*="color: #fff"],
html[data-color-theme='light'] .rich-body [style*="color: #fff"],
html[data-color-theme='light'] .detail-body [style*="color:#ffffff"],
html[data-color-theme='light'] .rich-body [style*="color:#ffffff"],
html[data-color-theme='light'] .detail-body [style*="color: #ffffff"],
html[data-color-theme='light'] .rich-body [style*="color: #ffffff"],
html[data-color-theme='light'] .detail-body [style*="color:#c4a574"],
html[data-color-theme='light'] .rich-body [style*="color:#c4a574"],
html[data-color-theme='light'] .detail-body [style*="color: #c4a574"],
html[data-color-theme='light'] .rich-body [style*="color: #c4a574"],
html[data-color-theme='light'] .detail-body [style*="color:#a89f90"],
html[data-color-theme='light'] .rich-body [style*="color:#a89f90"],
html[data-color-theme='light'] .detail-body [style*="color: #a89f90"],
html[data-color-theme='light'] .rich-body [style*="color: #a89f90"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(243, 239, 230"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(243, 239, 230"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(243, 239, 230"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(243, 239, 230"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(255, 255, 255"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(255, 255, 255"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(255, 255, 255"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(255, 255, 255"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#f3efe6"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #f3efe6"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#F3EFE6"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #F3EFE6"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#fff"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #fff"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#ffffff"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #ffffff"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#c4a574"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #c4a574"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#a89f90"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #a89f90"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(243, 239, 230"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(243, 239, 230"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(255, 255, 255"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(255, 255, 255"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-editor [style*="color:#f3efe6"],
html[data-color-theme='light'] .rich-editor [style*="color: #f3efe6"],
html[data-color-theme='light'] .rich-editor [style*="color:#F3EFE6"],
html[data-color-theme='light'] .rich-editor [style*="color: #F3EFE6"],
html[data-color-theme='light'] .rich-editor [style*="color:#fff"],
html[data-color-theme='light'] .rich-editor [style*="color: #fff"],
html[data-color-theme='light'] .rich-editor [style*="color:#ffffff"],
html[data-color-theme='light'] .rich-editor [style*="color: #ffffff"],
html[data-color-theme='light'] .rich-editor [style*="color:#c4a574"],
html[data-color-theme='light'] .rich-editor [style*="color: #c4a574"],
html[data-color-theme='light'] .rich-editor [style*="color:#a89f90"],
html[data-color-theme='light'] .rich-editor [style*="color: #a89f90"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(243, 239, 230"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(243, 239, 230"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(255, 255, 255"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(255, 255, 255"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(168, 159, 144"] {
  color: var(--ink) !important;
}

/* 라이트: 다크 테마 골드/뮤트 강조색은 본문색이 아니라 accent/muted로 매핑 */
html[data-color-theme='light'] .about-bio [style*="color:#c4a574"],
html[data-color-theme='light'] .about-bio [style*="color: #c4a574"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .detail-body [style*="color:#c4a574"],
html[data-color-theme='light'] .rich-body [style*="color:#c4a574"],
html[data-color-theme='light'] .detail-body [style*="color: #c4a574"],
html[data-color-theme='light'] .rich-body [style*="color: #c4a574"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#c4a574"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #c4a574"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-editor [style*="color:#c4a574"],
html[data-color-theme='light'] .rich-editor [style*="color: #c4a574"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(196, 165, 116"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(196, 165, 116"] {
  color: var(--accent) !important;
}

html[data-color-theme='light'] .about-bio [style*="color:#a89f90"],
html[data-color-theme='light'] .about-bio [style*="color: #a89f90"],
html[data-color-theme='light'] .about-bio [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .about-bio [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .detail-body [style*="color:#a89f90"],
html[data-color-theme='light'] .rich-body [style*="color:#a89f90"],
html[data-color-theme='light'] .detail-body [style*="color: #a89f90"],
html[data-color-theme='light'] .rich-body [style*="color: #a89f90"],
html[data-color-theme='light'] .detail-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .detail-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:#a89f90"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: #a89f90"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .page-doc .doc-body [style*="color: rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-editor [style*="color:#a89f90"],
html[data-color-theme='light'] .rich-editor [style*="color: #a89f90"],
html[data-color-theme='light'] .rich-editor [style*="color:rgb(168, 159, 144"],
html[data-color-theme='light'] .rich-editor [style*="color: rgb(168, 159, 144"] {
  color: var(--muted) !important;
}

/* 라이트: 다크용 어두운 하이라이트 배경 → soft accent */
html[data-color-theme='light'] .about-bio [style*="background-color:#1a1a1a"],
html[data-color-theme='light'] .about-bio [style*="background-color: #1a1a1a"],
html[data-color-theme='light'] .about-bio [style*="background:#1a1a1a"],
html[data-color-theme='light'] .about-bio [style*="background: #1a1a1a"],
html[data-color-theme='light'] .detail-body [style*="background-color:#1a1a1a"],
html[data-color-theme='light'] .rich-body [style*="background-color:#1a1a1a"],
html[data-color-theme='light'] .detail-body [style*="background-color: #1a1a1a"],
html[data-color-theme='light'] .rich-body [style*="background-color: #1a1a1a"],
html[data-color-theme='light'] .detail-body [style*="background:#1a1a1a"],
html[data-color-theme='light'] .rich-body [style*="background:#1a1a1a"],
html[data-color-theme='light'] .detail-body [style*="background: #1a1a1a"],
html[data-color-theme='light'] .rich-body [style*="background: #1a1a1a"],
html[data-color-theme='light'] .rich-editor [style*="background-color:#1a1a1a"],
html[data-color-theme='light'] .rich-editor [style*="background-color: #1a1a1a"],
html[data-color-theme='light'] .rich-editor [style*="background:#1a1a1a"],
html[data-color-theme='light'] .rich-editor [style*="background: #1a1a1a"],
html[data-color-theme='light'] .about-bio [style*="background-color:rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .about-bio [style*="background-color: rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .detail-body [style*="background-color:rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .rich-body [style*="background-color:rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .detail-body [style*="background-color: rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .rich-body [style*="background-color: rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .rich-editor [style*="background-color:rgba(255, 255, 255, 0.12"],
html[data-color-theme='light'] .rich-editor [style*="background-color: rgba(255, 255, 255, 0.12"] {
  background-color: var(--accent-soft) !important;
  color: var(--ink) !important;
}

.page-doc .section-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.portfolio-grid .art-card-price { display: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-atmosphere::after {
    transform: none;
  }
}

/* Toast Notification for Link Sharing */
.aam-toast {
  position: fixed;
  bottom: calc(var(--tabbar-h, 3.65rem) + 1.25rem);
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--bg-elevated, #242220);
  color: var(--ink, #fff);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-btn, 8px);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.aam-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-share .share-icon {
  font-size: 0.9em;
}

/* Dimensions Spec Badge */
.detail-spec-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-sm, 8px);
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
  width: max-content;
  max-width: 100%;
}

.detail-spec-badge .spec-icon {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.85;
}

.detail-spec-badge .spec-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.detail-spec-badge .spec-kicker {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail-spec-badge .spec-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* Ambient Glow & Awwwards Glassmorphism Utilities */
.ambient-glow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: orbFloat 14s infinite ease-in-out alternate;
}

.orb-gold {
  width: 550px;
  height: 550px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #f59e0b 0%, rgba(217, 119, 6, 0) 70%);
}

.orb-violet {
  width: 650px;
  height: 650px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

.glass-header {
  background: var(--header-bg) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out) !important;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* ==========================================================================
   Image & Media Protection (이미지 무단 복제/드래그/모바일 저장 방지)
   ========================================================================== */
img,
.art-card-media,
.detail-media,
.detail-gallery,
.gallery-card,
.news-card-media,
.cart-thumb,
.about-logo,
.image-preview {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
