/* Loupe & Ledger — Crisp Studio & Architectural Edge Design System (Brilliant Earth Inspired) */

:root {
  --bg-outer: #ECEFF2;
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-studio: #F5F7F9;
  --bg-subtle: #F3F5F7;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-primary: #0D0F12;
  --text-secondary: #4B5563;
  --text-muted: #7B8492;

  --border-hairline: #E4E7EC;
  --border-strong: #CBD2D9;
  --border-ink: #0D0F12;

  /* Signature Brilliant Earth Deep Botanical Emerald + Jet Carbon */
  --emerald-primary: #0B4F3F;
  --emerald-hover: #083D30;
  --emerald-soft: #ECF5F2;
  --emerald-border: #B6D7CE;
  --emerald-text: #0B4F3F;

  --accent-ink: #0D0F12;
  --accent-ink-fg: #FFFFFF;

  --hero-bg: #0D0F12;
  --hero-fg: #FFFFFF;
  --hero-muted: #94A3B8;
  --hero-accent: #5EEAD4;
  --hero-divider: #22272E;

  --danger: #BE123C;
  --danger-bg: #FFF1F2;

  --radius-sharp: 0px;
  --radius-sm: 0px;
  --radius-sheet: 0px;

  --shadow-xs: 0 1px 2px rgba(13, 15, 18, 0.04);
  --shadow-md: 0 12px 32px rgba(13, 15, 18, 0.12);
  --shadow-shell: 0 0 48px rgba(13, 15, 18, 0.09);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg-outer: #040506;
  --bg-canvas: #0A0C0E;
  --bg-surface: #111418;
  --bg-studio: #161A20;
  --bg-subtle: #181C22;
  --bg-elevated: #13171C;
  --bg-glass: rgba(10, 12, 14, 0.94);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-hairline: #21262E;
  --border-strong: #323944;
  --border-ink: #F8FAFC;

  --emerald-primary: #10B981;
  --emerald-hover: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.32);
  --emerald-text: #34D399;

  --accent-ink: #F8FAFC;
  --accent-ink-fg: #0A0C0E;

  --hero-bg: #12161B;
  --hero-fg: #FFFFFF;
  --hero-muted: #94A3B8;
  --hero-accent: #34D399;
  --hero-divider: #232A34;

  --danger: #FB7185;
  --danger-bg: rgba(251, 113, 133, 0.12);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-shell: 0 0 60px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-outer);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

button, input, select, textarea {
  font-family: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* Mobile-First App Frame */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-canvas);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(74px + var(--safe-bottom));
  box-shadow: var(--shadow-shell);
}

@media (max-width: 500px) {
  body {
    background: var(--bg-canvas);
  }
  .mobile-app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Crisp Architectural Top App Bar */
.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-gem {
  width: 30px;
  height: 30px;
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
  border-radius: var(--radius-sharp);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-gem svg {
  width: 17px;
  height: 17px;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--emerald-text);
  margin-top: 2px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-tap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.icon-tap:active {
  background: var(--bg-subtle);
  border-color: var(--border-ink);
}

.icon-tap svg {
  width: 17px;
  height: 17px;
}

.filter-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--emerald-primary);
}

/* Search Drawer */
.mobile-search-drawer {
  padding: 10px 16px 6px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 36px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-strong);
  background: var(--bg-studio);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-family: inherit;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--border-ink);
  background: var(--bg-surface);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  display: grid;
  place-items: center;
}

/* Tab Screens */
.tab-screen {
  padding: 14px 16px 22px;
  flex: 1;
  animation: fadeScreen 0.14s ease;
}

@keyframes fadeScreen {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Edgy Architectural Ledger Hero Block */
.portfolio-hero-card {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: var(--radius-sharp);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--emerald-primary);
}

.hero-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hero-divider);
}

.hero-eyebrow {
  display: block;
  font-size: 0.61rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hero-muted);
  margin-bottom: 3px;
}

.hero-total-spend {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--hero-fg);
}

.hero-ship-note {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-accent);
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 10px;
}

.hero-mini-stat {
  padding-right: 8px;
  border-right: 1px solid var(--hero-divider);
}

.hero-mini-stat:nth-child(2) {
  padding-left: 12px;
}

.hero-mini-stat:last-child {
  padding-left: 12px;
  padding-right: 0;
  border-right: none;
}

.hero-mini-stat span {
  display: block;
  font-size: 0.59rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--hero-muted);
  margin-bottom: 2px;
}

.hero-mini-stat strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hero-fg);
}

/* Sample Preview Bar — Razor Architectural Strip */
.sample-chip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 12px;
  border-radius: var(--radius-sharp);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--emerald-text);
}

.sample-chip-btn {
  border: 1px solid var(--emerald-text);
  background: transparent;
  color: var(--emerald-text);
  border-radius: var(--radius-sharp);
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

/* Brilliant Earth Style Underline Category Bar */
.category-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.pill-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.pill-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 2px 10px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.cat-pill.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.cat-pill small {
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.7;
}

/* Active Filter Chips */
.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-sharp);
  background: var(--accent-ink);
  border: 1px solid var(--accent-ink);
  color: var(--accent-ink-fg);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Crisp 2-Column Studio Diamond Grid */
.mobile-stone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.stone-card:hover,
.stone-card:active {
  border-color: var(--border-ink);
}

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

.stone-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-card-media img.is-video-poster {
  object-fit: contain;
  background: #080A0C;
}

.stone-placeholder {
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stone-placeholder svg {
  width: 46px;
  height: 46px;
}

.media-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.mini-badge {
  padding: 2px 6px;
  border-radius: var(--radius-sharp);
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.mini-badge-cert {
  background: var(--emerald-primary);
  color: #FFFFFF;
}

[data-theme="dark"] .mini-badge-cert {
  color: #06140F;
}

.mini-badge-dark {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.media-bottom-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.mini-badge-video {
  background: rgba(13, 15, 18, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.stone-card-body {
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border-hairline);
}

.stone-card-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stone-card-specs {
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stone-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.card-seller-tag {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.card-price-stack {
  text-align: right;
  flex-shrink: 0;
}

.card-price-main {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-price-ppc {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--emerald-text);
  letter-spacing: 0.02em;
}

/* Compact Ledger List Mode */
.mobile-ledger-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
}

.ledger-row-card {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  padding: 11px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ledger-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sharp);
  object-fit: cover;
  background: var(--bg-studio);
  flex-shrink: 0;
  border: 1px solid var(--border-hairline);
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.ledger-row-info {
  flex: 1;
  min-width: 0;
}

.ledger-row-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-row-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-row-price {
  text-align: right;
  flex-shrink: 0;
}

/* Screen Headings */
.section-screen-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-screen-sub {
  margin: 0 0 16px;
  font-size: 0.80rem;
  color: var(--text-secondary);
}

/* Certificates Binder */
.cert-binder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-binder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.cert-binder-preview {
  aspect-ratio: 16 / 10;
  background: var(--bg-studio);
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid var(--border-hairline);
}

.cert-binder-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-binder-meta {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Sellers & Analytics Cards */
.analytics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  padding: 15px;
  margin-bottom: 14px;
}

.analytics-card h3 {
  margin: 0 0 12px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-text);
}

.seller-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: var(--radius-sharp);
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  margin-bottom: 8px;
  cursor: pointer;
}

.seller-stat-item:hover {
  border-color: var(--border-ink);
}

.seller-stat-item:last-child {
  margin-bottom: 0;
}

/* Settings Groups */
.settings-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  padding: 16px;
  margin-bottom: 14px;
}

.settings-group h3 {
  margin: 0 0 6px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-text);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: var(--bg-studio);
}

.segmented-control.seg-3 {
  grid-template-columns: repeat(3, 1fr);
}

.segmented-control.seg-3 .seg-btn {
  padding: 10px 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--border-hairline);
}

.segmented-control.seg-3 .seg-btn:last-child {
  border-right: none;
}

.seg-btn {
  padding: 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.seg-btn.active {
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
}

/* Architectural 5-Tab Bottom Dock */
.bottom-tab-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-hairline);
  padding: 6px 8px calc(8px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 2px;
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.nav-tab svg {
  width: 19px;
  height: 19px;
}

.nav-tab.active {
  color: var(--text-primary);
}

.nav-add-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
}

.nav-add-orb {
  width: 44px;
  height: 40px;
  border-radius: var(--radius-sharp);
  background: var(--emerald-primary);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.14s ease;
}

[data-theme="dark"] .nav-add-orb {
  color: #05130E;
}

.nav-add-center:active .nav-add-orb {
  transform: scale(0.94);
}

/* Native Full-Screen Detail Page */
.fullscreen-page {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 55;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translate(-44%, 0); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.page-nav-bar {
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.back-btn {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
}

.page-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(32px + var(--safe-bottom));
}

.detail-hero-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-hero-media.detail-video-stage {
  aspect-ratio: auto;
  min-height: 240px;
  max-height: 78dvh;
  background: #06080A;
  cursor: default;
}

.detail-hero-media.detail-video-stage video {
  width: 100%;
  height: auto;
  max-height: 78dvh;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: #06080A;
}

.detail-clip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-top: none;
  border-radius: 0;
}

.clip-kind-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 0;
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.clip-kind-sparkle {
  background: var(--emerald-primary);
  color: #FFFFFF;
}

[data-theme="dark"] .clip-kind-sparkle {
  color: #05130E;
}

.clip-kind-auction {
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
}

.clip-audio-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.btn-auction-clip {
  background: var(--bg-studio);
  border-style: solid;
  border-color: var(--border-ink);
}

.video-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
}

.video-strip:empty {
  margin-top: 0;
}

.video-thumb-card {
  position: relative;
  width: 112px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-surface);
  flex-shrink: 0;
  overflow: hidden;
}

.video-thumb-card.active-clip {
  border: 2px solid var(--emerald-primary);
}

.video-thumb-frame {
  position: relative;
  width: 100%;
  height: 108px;
  background: #080A0C;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.94;
}

.video-play-glyph {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(13, 15, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 10px;
  pointer-events: none;
}

.video-duration-chip {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 1px 5px;
  background: rgba(10, 12, 14, 0.86);
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.video-thumb-meta {
  padding: 5px 6px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.video-type-toggle {
  width: 100%;
  padding: 3px 4px;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  background: var(--bg-studio);
  color: var(--text-primary);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.video-type-toggle.is-sparkle {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
  padding: 14px 15px;
  margin-top: 12px;
}

.dossier-card h4 {
  margin: 0 0 11px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-text);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 12px;
}

.dossier-cell span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.dossier-cell strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Crisp Architectural Bottom Sheets */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(9, 11, 14, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: var(--bg-elevated);
  border-radius: 0;
  border-top: 2px solid var(--border-ink);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 3px;
  background: var(--border-strong);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.sheet-header {
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 12px 18px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  display: flex;
  gap: 10px;
}

/* Quick Action Tiles */
.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: calc(10px + var(--safe-bottom));
}

.quick-action-tile {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color 0.14s ease;
}

.quick-action-tile:hover,
.quick-action-tile:active {
  border-color: var(--border-ink);
}

.quick-action-tile.highlight {
  background: var(--emerald-soft);
  border-color: var(--emerald-primary);
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sharp);
  background: var(--bg-studio);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quick-action-tile.highlight .qa-icon {
  background: var(--emerald-primary);
  color: #FFFFFF;
}

[data-theme="dark"] .quick-action-tile.highlight .qa-icon {
  color: #06140F;
}

/* Crisp Architectural Buttons & Inputs */
.btn {
  height: 44px;
  padding: 0 15px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.14s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
  border-color: var(--accent-ink);
}

.btn-gold {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border-color: var(--emerald-primary);
}

[data-theme="dark"] .btn-gold {
  color: #05130E;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.28);
}

.btn-block {
  width: 100%;
}

.form-block {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.form-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-block-title {
  margin: 0 0 11px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-text);
  font-weight: 700;
}

.field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 11px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 11px;
}

.field-group {
  margin-bottom: 11px;
}

.field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.input, select, textarea {
  width: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.90rem;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230D0F12' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='2 4.2 6 8.2 10 4.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 12px;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F8FAFC' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='2 4.2 6 8.2 10 4.2'/%3E%3C/svg%3E");
}

textarea {
  min-height: 74px;
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-ink);
}

/* Category Selector in Form */
.cat-seg-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cat-seg-btn {
  padding: 10px 6px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-hairline);
  background: var(--bg-studio);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.cat-seg-btn svg {
  width: 19px;
  height: 19px;
}

.cat-seg-btn.selected {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--accent-ink-fg);
}

/* Shape Picker Grid */
.shape-scroll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.shape-btn {
  padding: 8px 4px;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
}

.shape-btn svg {
  width: 24px;
  height: 24px;
}

.shape-btn.selected {
  border-color: var(--emerald-primary);
  background: var(--emerald-soft);
  color: var(--emerald-text);
  font-weight: 700;
}

/* Cert Scanner Box */
.mobile-cert-box {
  background: var(--bg-studio);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--emerald-primary);
  border-radius: var(--radius-sharp);
  padding: 13px;
}

.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
}

.photo-thumb-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.photo-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sharp);
  border: none;
  background: rgba(13, 15, 18, 0.85);
  color: #FFF;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.cost-live-pill {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sharp);
  background: var(--hero-bg);
  color: var(--hero-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ocr-banner {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sharp);
  font-size: 0.78rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.ocr-banner.success {
  background: var(--emerald-soft);
  color: var(--emerald-text);
  border-color: var(--emerald-border);
}

.ocr-banner.error {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Empty State */
.empty-vault-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sharp);
}

.empty-vault-card svg {
  width: 42px;
  height: 42px;
  color: var(--emerald-text);
  margin-bottom: 8px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 6, 8, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 16px) 14px calc(var(--safe-bottom) + 16px);
}

.lightbox-overlay img {
  max-width: 96vw;
  max-height: 82dvh;
  object-fit: contain;
}

.lightbox-overlay video {
  max-width: min(96vw, 480px);
  max-height: 86dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000000;
  border-radius: 0;
}

/* Toast */
.toast-stack {
  position: fixed;
  bottom: calc(84px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 36px);
}

.toast-pill {
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
  padding: 9px 16px;
  border-radius: var(--radius-sharp);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  box-shadow: var(--shadow-md);
}

/* Membership, Paywall & Legal Store Compliance (0px Sharp Edges) */
.membership-card {
  border-left: 3px solid var(--emerald-primary);
}

.legal-links-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
}

.legal-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.paywall-hero-banner {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 16px;
  border: 1px solid var(--border-ink);
  border-radius: 0;
  margin-bottom: 12px;
}

.paywall-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-accent);
  margin-bottom: 4px;
}

.paywall-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.28;
  font-weight: 700;
}

.paywall-reason {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
  color: var(--text-primary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.paywall-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.paywall-perk-item {
  font-size: 0.80rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.paywall-perk-item span {
  color: var(--emerald-text);
  font-weight: 700;
  margin-right: 4px;
}

.paywall-perk-item strong {
  color: var(--text-primary);
}

.paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paywall-plan-card {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.paywall-plan-card.selected {
  border: 2px solid var(--emerald-primary);
  background: var(--emerald-soft);
}

.paywall-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.paywall-save-tag {
  background: var(--emerald-primary);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

[data-theme="dark"] .paywall-save-tag {
  color: #05130E;
}

.paywall-plan-price span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.paywall-plan-price small {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.paywall-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.paywall-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
  text-decoration: underline;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.paywall-legal-note {
  margin: 10px 0 4px;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

/* Collectors Lounge Community (Strict 0px Sharp Architectural Edges) */
.icon-tap.active-top {
  background: var(--accent-ink);
  color: var(--accent-ink-fg);
  border-color: var(--accent-ink);
}

.community-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.community-header-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.community-acct-btn {
  height: 36px;
  padding: 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-privacy-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 10px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.community-privacy-strip span:first-child {
  color: var(--emerald-text);
  font-weight: 700;
}

.community-privacy-strip strong {
  color: var(--text-primary);
}

.community-search-row {
  margin-bottom: 10px;
}

.community-cat-strip {
  margin-bottom: 12px;
}

.community-feed-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.comm-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  padding: 14px;
  transition: border-color 0.14s ease;
}

.comm-post-card:hover {
  border-color: var(--border-strong);
}

.comm-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.68rem;
}

.comm-author-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.comm-handle {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.comm-flair {
  padding: 2px 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-studio);
  border-radius: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.comm-cat-tag {
  padding: 2px 7px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: 0;
  color: var(--emerald-text);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.comm-post-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  cursor: pointer;
}

.comm-post-body {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-line;
  cursor: pointer;
}

.comm-post-body.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comm-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.comm-spec-chip {
  padding: 3px 8px;
  background: var(--bg-studio);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comm-seller-chip {
  padding: 3px 8px;
  background: var(--bg-studio);
  border: 1px solid var(--emerald-border);
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald-text);
}

.comm-post-photo {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  margin-bottom: 10px;
  display: block;
  background: var(--bg-studio);
  cursor: pointer;
}

.comm-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border-hairline);
}

.comm-actions-left,
.comm-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comm-act-btn {
  border: 1px solid var(--border-hairline);
  background: var(--bg-studio);
  color: var(--text-secondary);
  border-radius: 0;
  height: 30px;
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.comm-act-btn.liked {
  border-color: var(--emerald-primary);
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.comm-time {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.comm-comment-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.comm-comment-card {
  padding: 11px 12px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-left: 2px solid var(--border-strong);
  border-radius: 0;
}

.comm-comment-body {
  margin: 5px 0 6px;
  font-size: 0.81rem;
  line-height: 1.46;
  color: var(--text-primary);
  white-space: pre-line;
}

.community-reply-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.community-reply-bar .input {
  flex: 1;
}

.comm-photo-preview {
  margin-top: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-studio);
  padding: 4px;
}

.comm-photo-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.comm-guidelines-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  font-size: 0.74rem;
  line-height: 1.42;
  color: var(--text-secondary);
  cursor: pointer;
}

.comm-guidelines-check input[type="checkbox"] {
  margin-top: 2px;
  border-radius: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--emerald-primary);
  flex-shrink: 0;
}

.comm-blocked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.comm-blocked-row:last-child {
  border-bottom: none;
}

/* Sharp 0px Apple & Google Sign-In Buttons */
.oauth-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oauth-btn {
  width: 100%;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0 14px;
}

.oauth-btn-apple {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

[data-theme="dark"] .oauth-btn-apple {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}

.oauth-btn-google {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-hairline);
}

.hidden {
  display: none !important;
}

/* =========================================================
   v1.1 COLLECTOR UPGRADES (STRICT 0px ARCHITECTURAL EDGES)
   ========================================================= */

/* 1. Saved @Seller Quick-Pick Chips & Typo Guard */
.seller-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px 0 10px;
  padding-bottom: 2px;
}

.seller-quick-chips::-webkit-scrollbar {
  display: none;
}

.seller-chip-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-studio);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.seller-chip-btn.active {
  background: var(--emerald-soft);
  border-color: var(--emerald-primary);
  color: var(--emerald-text);
}

.seller-typo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 11px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
  font-size: 0.74rem;
  color: var(--text-primary);
}

.seller-typo-fix-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 0;
  border: 1px solid var(--emerald-primary);
  background: var(--emerald-primary);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

[data-theme="dark"] .seller-typo-fix-btn {
  color: #05130E;
}

/* Live Auction Bid Verdict Banner */
.bid-verdict-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--border-strong);
  background: var(--bg-studio);
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.bid-verdict-banner.ideal {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  border-left-color: var(--emerald-primary);
  color: var(--emerald-text);
}

.bid-verdict-banner.good {
  border-left-color: var(--accent-ink);
  color: var(--text-primary);
}

.bid-verdict-banner.watch {
  background: var(--danger-bg);
  border-color: rgba(190, 18, 60, 0.25);
  border-left-color: var(--danger);
  color: var(--danger);
}

/* 2. Lifecycle Status Badges, Arrival Checklist & Custom Setting Roll-Up */
.mini-badge-transit {
  background: #0D0F12;
  color: #FDE047;
  border: 1px solid rgba(253, 224, 71, 0.45);
}

.mini-badge-jeweler {
  background: #0D0F12;
  color: #5EEAD4;
  border: 1px solid rgba(94, 234, 212, 0.45);
}

.arrival-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.arrival-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.arrival-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 0;
  accent-color: var(--emerald-primary);
  flex-shrink: 0;
  margin: 0;
}

.arrival-check-row.done {
  border-color: var(--emerald-border);
  background: var(--emerald-soft);
}

.custom-setting-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-studio);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
}

.setting-rollup-note {
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  font-size: 0.74rem;
  color: var(--text-primary);
}

/* 3. Gemology Proportion & Cut Sweet-Spot Badges */
.prop-badges-panel {
  padding: 10px 11px;
  margin-bottom: 11px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
}

.prop-overall-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--emerald-text);
}

.prop-overall-head.watch {
  color: var(--danger);
}

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

.prop-metric-tile {
  padding: 7px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
}

.prop-metric-tile.ideal {
  border-color: var(--emerald-border);
}

.prop-metric-tile.watch {
  border-color: rgba(190, 18, 60, 0.35);
}

.prop-metric-lbl {
  display: block;
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.prop-metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1px 0 2px;
}

.prop-metric-tag {
  display: block;
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--emerald-text);
}

.prop-metric-tile.watch .prop-metric-tag {
  color: var(--danger);
}

/* 4. 9:16 Collector Spec Card Preview Stage */
.spec-card-preview-stage {
  background: var(--bg-studio);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.spec-card-preview-stage canvas {
  width: auto;
  max-width: 100%;
  max-height: 58dvh;
  height: auto;
  display: block;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  box-shadow: var(--shadow-md);
}

/* 5. Insurance & Appraisal Schedule Preview & @media print */
.insurance-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insurance-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bg-studio);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
}

.print-only-schedule {
  display: none;
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #0D0F12 !important;
  }
  .mobile-app-shell,
  .sheet-backdrop,
  .fullscreen-page,
  .lightbox-overlay,
  .toast-stack {
    display: none !important;
  }
  .print-only-schedule {
    display: block !important;
    width: 100%;
    padding: 8px;
  }
}

/* 6. Web Beta Step-by-Step Install Video Guide */
.web-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 10px;
  background: var(--bg-studio);
  border: 1px solid var(--border-strong);
  border-left: 3px solid #D4AF37;
  border-radius: 0;
}

.web-install-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.web-install-banner-copy strong {
  font-size: 0.70rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.web-install-banner-copy span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.web-install-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.install-step-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.install-step-pill {
  height: 32px;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-studio);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  cursor: pointer;
}

.install-step-pill.active {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border-color: var(--emerald-primary);
}

.install-video-stage {
  background: #05080B;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-video-stage canvas {
  width: 100%;
  max-width: 340px;
  max-height: 54dvh;
  height: auto;
  display: block;
  border-radius: 0;
}

/* 7. Launch-Day Mandatory Official App Store / Google Play Gate */
.mandatory-store-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #072219 0%, #05080B 72%);
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.store-gate-card {
  width: 100%;
  max-width: 420px;
  background: #0B1015;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-top: 3px solid #D4AF37;
  border-radius: 0;
  padding: 24px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

.store-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.store-gate-brand img {
  width: 52px;
  height: 52px;
  border: 1px solid #D4AF37;
  border-radius: 0;
}

.store-gate-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #F5D061;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.store-gate-brand strong {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.store-gate-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
  line-height: 1.2;
}

.store-gate-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #CBD5E1;
  margin: 0 0 18px;
}

.store-gate-rescue {
  background: rgba(6, 40, 30, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-left: 3px solid #10B981;
  border-radius: 0;
  padding: 13px 12px;
  margin-bottom: 14px;
}

.store-gate-rescue-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34D399;
  margin-bottom: 6px;
}

.store-gate-rescue p {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #E2E8F0;
  margin: 0 0 10px;
}

.store-gate-piece-list {
  max-height: 112px;
  overflow-y: auto;
  margin-bottom: 11px;
  padding: 7px 9px;
  background: rgba(5, 8, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  font-size: 0.72rem;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-gate-download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-gate-download-actions a.btn {
  height: 48px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 0;
}

/* =========================================================
   COLLECTOR STONE EXCHANGE (PEER-TO-PEER DIRECTORY, 0px EDGES)
   ========================================================= */

.exchange-directory-banner {
  margin-bottom: 10px;
}

.exchange-filter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  padding: 11px;
  margin-bottom: 10px;
}

.exchange-filter-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.exchange-filter-box .field-label {
  font-size: 0.60rem;
  margin-bottom: 3px;
}

.exchange-filter-box .input,
.exchange-filter-box select {
  height: 36px;
  font-size: 0.78rem;
  padding: 0 8px;
  border-radius: 0;
}

.exchange-search-bar-row {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 7px;
}

.exchange-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.exchange-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exchange-card.is-mine {
  border-left: 3px solid var(--emerald-primary);
}

.exchange-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.exchange-card-main {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.exchange-thumb {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.exchange-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange-title {
  margin: 2px 0 3px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.exchange-subspec {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.exchange-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.ex-avail-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
}

.ex-avail-tag.trade {
  background: rgba(13, 92, 70, 0.14);
  color: var(--emerald-text);
  border: 1px solid rgba(13, 92, 70, 0.35);
}

.ex-avail-tag.purchase {
  background: rgba(180, 138, 46, 0.14);
  color: #9A6F12;
  border: 1px solid rgba(180, 138, 46, 0.38);
}

[data-theme="dark"] .ex-avail-tag.purchase {
  color: #F5D061;
}

.ex-avail-tag.both {
  background: var(--hero-bg);
  color: var(--hero-accent);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.ex-sample-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
}

.exchange-prefs-box {
  background: var(--bg-subtle);
  border-left: 2px solid var(--emerald-primary);
  border-radius: 0;
  padding: 7px 9px;
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.exchange-connect-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
}

.exchange-owner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.exchange-connect-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.exchange-connect-btns a.btn,
.exchange-connect-btns button.btn {
  min-height: 38px;
  height: auto;
  padding: 8px 11px;
  font-size: 0.70rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0;
  flex: 1;
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-badge-exchange {
  background: #0D5C46;
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.55);
}

.detail-exchange-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--emerald-primary);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0;
}

