/* AFTER/SCHOOL — Locked Visual Direction 01 (Full-Bleed Gallery — Toteme / SSENSE Style)
   Strictly Light Mode inside the app; Jet Black (#0B0D11) Splash S2 & Tile T1 Icon.
   Zero Emojis. Zero Monospace/Terminal Fonts. Plus Jakarta Sans & Inter only. */

:root {
  --bg-canvas: #F5F4F0;
  --surface: #FFFFFF;
  --ink: #0B0D11;
  --muted: #57534E;
  --muted-light: #78716C;
  --hairline: #E4E2DC;
  --header-border: #E6E4DD;
  --cobalt: #1D4ED8;
  --cobalt-hover: #1E40AF;
  --cobalt-bright: #3B82F6;
  --cobalt-tint: #EFF6FF;
  --emerald: #047857;
  --emerald-dot: #34D399;
  --emerald-tint: #ECFDF5;
  --font-brand: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-brand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

button, input, select, textarea {
  font-family: var(--font-brand);
}

/* =====================================================================
   LOCKED LAUNCH SPLASH SCREEN — EXACT SPLASH S2 (JET BLACK LUXURY)
   ===================================================================== */
.as-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B0D11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 36px 24px 32px;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s;
  cursor: pointer;
}
.as-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.as-splash-top {
  width: 100%;
  display: flex;
  justify-content: center;
}
.as-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.as-splash-wm {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  line-height: 1;
}
.as-splash-wm .slash {
  color: #3B82F6;
  margin: 0 2px;
}
.as-splash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: 999px;
}
.as-splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}
.as-splash-tagline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #E2E8F0;
  text-transform: uppercase;
}
.as-splash-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.as-splash-bar-track {
  width: 128px;
  height: 3px;
  background: #1E293B;
  border-radius: 999px;
  overflow: hidden;
}
.as-splash-bar-fill {
  width: 75%;
  height: 100%;
  background: #1D4ED8;
  border-radius: 999px;
  animation: asSplashLoad 1.1s ease-out forwards;
}
@keyframes asSplashLoad {
  0% { width: 18%; }
  100% { width: 100%; }
}
.as-splash-est {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748B;
  text-transform: uppercase;
}

/* =====================================================================
   LOCKED TOP HEADER BAR — EXACT OPTION 2 (CLEAN WHITE + 1 RIGHT PILL)
   ===================================================================== */
.as-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 58px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--header-border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.as-topbar-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.as-brand-link {
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.as-brand-link .slash {
  color: var(--cobalt);
  margin: 0 1.5px;
}
.as-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-right-pill {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.as-right-pill.scout-mode {
  background: #0B0D11;
  color: #FFFFFF;
}
.as-right-pill.scout-mode:hover {
  background: #1E293B;
}
.as-right-pill.shop-mode {
  background: var(--cobalt);
  color: #FFFFFF;
}
.as-right-pill.shop-mode:hover {
  background: var(--cobalt-hover);
}
.as-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-dot);
  flex-shrink: 0;
}

/* Subtle secondary mode switcher bar directly under header for 1-tap testing */
.as-subbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 20px;
}
.as-subbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.as-landing-switch {
  display: inline-flex;
  background: var(--bg-canvas);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.as-switch-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.as-switch-btn.active {
  background: #0B0D11;
  color: #FFFFFF;
}
.as-switch-btn.active.shop {
  background: var(--cobalt);
  color: #FFFFFF;
}
.as-subbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-ghost-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.as-ghost-pill:hover {
  border-color: var(--ink);
}

/* =====================================================================
   MAIN CONTAINER & LAYOUT
   ===================================================================== */
.as-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}
.as-view {
  display: none;
}
.as-view.active {
  display: block;
}

/* Two-column responsive desktop layout, stacked cleanly on mobile */
.as-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 940px) {
  .as-split-grid {
    grid-template-columns: 440px 1fr;
    gap: 24px;
  }
}

/* =====================================================================
   CARDS, HERO CAPTURE & BUTTONS
   ===================================================================== */
.as-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(11, 13, 17, 0.035);
}
.as-card.primary-border {
  border: 1.5px solid var(--ink);
}
.as-card.cobalt-border {
  border: 1.5px solid var(--cobalt);
}

.as-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.as-kicker.emerald {
  color: var(--emerald);
  background: var(--emerald-tint);
}
.as-kicker.dark {
  color: #FFFFFF;
  background: var(--ink);
}

.as-hero-title {
  font-size: clamp(22px, 3.5vw, 27px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
}
.as-hero-sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
  font-weight: 500;
}

/* GIANT PRIMARY CAPTURE BUTTONS (TAKE PHOTO / UPLOAD PHOTO) */
.as-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.as-btn-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.as-btn-capture:active {
  transform: scale(0.985);
}
.as-btn-capture.take-photo {
  background: var(--cobalt);
  color: #FFFFFF;
  border: 1.5px solid var(--cobalt);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
}
.as-btn-capture.take-photo:hover {
  background: var(--cobalt-hover);
}
.as-btn-capture.upload-photo {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.as-btn-capture.upload-photo:hover {
  background: var(--bg-canvas);
}
.as-btn-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.84;
}

/* Quick URL / Brand Search Bar */
.as-search-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.as-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: var(--bg-canvas);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.as-input:focus {
  border-color: var(--cobalt);
  background: #FFFFFF;
}
.as-btn-solid {
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: none;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.as-btn-solid.cobalt {
  background: var(--cobalt);
}
.as-btn-solid.cobalt:hover {
  background: var(--cobalt-hover);
}
.as-btn-solid.emerald {
  background: var(--emerald);
}

/* Preset Strip */
.as-preset-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.as-preset-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.as-preset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.as-preset-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: var(--bg-canvas);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.as-preset-chip:hover,
.as-preset-chip.active {
  background: #FFFFFF;
  border-color: var(--cobalt);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}
.as-preset-thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
}
.as-preset-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.as-preset-text span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* 3-Step Progress Bar */
.as-progress-box {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  border: 1px solid rgba(29, 78, 216, 0.25);
}
.as-progress-box.active {
  display: block;
}
.as-progress-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--cobalt);
}
.as-progress-bar {
  height: 4px;
  background: rgba(29, 78, 216, 0.15);
  border-radius: 999px;
  margin-top: 7px;
  overflow: hidden;
}
.as-progress-fill {
  height: 100%;
  width: 35%;
  background: var(--cobalt);
  transition: width 0.25s ease;
}

/* =====================================================================
   RESULT CARD: GALLERY PHOTO + DELIVERED PRICE COMPARISON
   ===================================================================== */
.as-result-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #E5E4DF;
  height: 320px;
  border: 1px solid var(--hairline);
}
.as-result-hero img.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.as-result-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.as-result-overlay-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.as-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0B0D11;
  color: #FFFFFF;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.as-match-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--cobalt-bright);
}
.as-deal-pill {
  background: var(--emerald-tint);
  color: var(--emerald);
  border: 1px solid #A7F3D0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.as-item-header {
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
}
.as-item-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.as-item-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.as-item-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.2;
}
.as-item-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* Price Comparison Sections */
.as-price-section {
  margin-top: 16px;
}
.as-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.as-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.as-offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-canvas);
  margin-bottom: 8px;
  gap: 10px;
}
.as-offer-row.best {
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
}
.as-offer-store {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.as-offer-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.as-offer-right {
  text-align: right;
  flex-shrink: 0;
}
.as-delivered-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald);
}
.as-delivered-price.cobalt {
  color: var(--cobalt);
}
.as-save-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
  background: var(--emerald-tint);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 2px;
}

/* Primary Buy Action Bar */
.as-buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.as-cta-btn {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.as-cta-btn.primary {
  background: var(--cobalt);
  color: #FFFFFF;
}
.as-cta-btn.dark {
  background: var(--ink);
  color: #FFFFFF;
}

/* Spec Grid */
.as-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.as-spec-cell {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
}
.as-spec-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.as-spec-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

/* Similar Under $X Cards */
.as-alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .as-alt-grid {
    grid-template-columns: 1fr;
  }
}
.as-alt-card {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.as-alt-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Local Beacon Banner */
.as-beacon-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--emerald-tint);
  border: 1.5px solid #A7F3D0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shop Engine Tabs & Builder */
.as-shop-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
}
.as-shop-tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: #FFFFFF;
  color: var(--muted);
  border: 1px solid var(--hairline);
  cursor: pointer;
  white-space: nowrap;
}
.as-shop-tab.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.as-shop-panel {
  display: none;
}
.as-shop-panel.active {
  display: block;
}

/* Inventory Table / Cards */
.as-inv-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  margin-bottom: 10px;
}
.as-inv-row.sold {
  opacity: 0.72;
  background: var(--bg-canvas);
}
.as-inv-thumb {
  width: 64px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.as-channel-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.as-ch-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
}
.as-ch-badge.sold {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Studio Cutout Toggle Preview */
.as-studio-stage {
  position: relative;
  height: 290px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #E5E4DF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.as-studio-stage.cutout-active {
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F5F4F0 78%);
}
.as-studio-stage.cutout-active img {
  width: 82%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(11, 13, 17, 0.18)) contrast(1.04);
  border-radius: 12px;
}
.as-studio-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.22s ease;
}

/* SMS Thread Simulator */
.as-sms-thread {
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-sms-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
}
.as-sms-bubble.owner {
  align-self: flex-end;
  background: var(--cobalt);
  color: #FFFFFF;
}
.as-sms-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.as-sms-time {
  font-size: 11px;
  opacity: 0.72;
  margin-bottom: 3px;
  font-weight: 700;
}

/* Modal for 4x6 USPS Thermal Label & Shopify Connect */
.as-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(11, 13, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.as-modal-backdrop.active {
  display: flex;
}
.as-modal {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 24px 48px rgba(11, 13, 17, 0.25);
}
.as-thermal-label {
  border: 2px solid #0B0D11;
  border-radius: 8px;
  padding: 16px;
  background: #FFFFFF;
  color: #0B0D11;
  margin: 12px 0;
}


/* =====================================================================
   AUDIT UPGRADES: ZERO MOBILE OVERFLOW, CELEB ARCHIVE, TWO-WAY SHOP SYNC
   ===================================================================== */
.as-shell, .as-container, .as-view, .as-shop-panel, .as-card {
  max-width: 100%;
  overflow-x: hidden;
}
.as-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.as-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.as-table th, .as-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.as-table th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-canvas);
}

@media (max-width: 520px) {
  .as-inv-row {
    grid-template-columns: 56px 1fr;
  }
  .as-inv-row > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
  }
  .as-buy-grid, .as-capture-grid, .as-preset-list {
    grid-template-columns: 1fr;
  }
}

/* Celebrity Portrait Strip & Two-Tier Cross-Celebrity Match Graph */
.as-celeb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.as-celeb-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.as-celeb-pill.active, .as-celeb-pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}
.as-celeb-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--cobalt-bright);
}
.as-celeb-pill-name {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.15;
}
.as-celeb-pill-sub {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 600;
}

.as-cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.as-cat-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid var(--hairline);
  background: #FFFFFF;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.as-cat-pill.active {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
}

.as-celeb-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.as-celeb-item-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.as-tier-box {
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 9px 11px;
  margin-top: 6px;
}
.as-tier-box.exact {
  background: var(--emerald-tint);
  border-color: #A7F3D0;
}
.as-tier-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 5px;
}
.as-tier-box.exact .as-tier-label {
  color: var(--emerald);
}
.as-peer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.as-peer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.as-peer-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.as-owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.as-owner-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
}


/* === ROUND 2 AUDIT FIXES: WCAG AA CONTRAST, ZERO MOBILE HORIZONTAL OVERFLOW, 11PX FLOOR === */
html, body.as-body {
  max-width: 100vw;
  overflow-x: hidden !important;
}
.as-shell, .as-main, .as-section, .as-card {
  max-width: 100%;
  box-sizing: border-box;
}
.as-table-wrap, .as-ledger-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.as-badge-green, .as-save-pill, .as-price-winner-badge, .as-status-connected {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border-color: #A7F3D0 !important;
  font-weight: 700 !important;
}
.as-btn-green {
  background: #047857 !important;
  color: #FFFFFF !important;
}
@media (max-width: 768px) {
  .as-topbar-inner, .as-hero-grid, .as-grid-2, .as-grid-3, .as-grid-4, .as-shop-kpi-grid, .as-conn-grid {
    grid-template-columns: 1fr !important;
  }
  .as-table th, .as-table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
}
