@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 850;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 850;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #f7f4ee;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --surface-alt: #f6ead2;
  --text: #0f1b2e;
  --text-muted: #5f6672;
  --border: #e6e6e6;
  --gold: #d4af37;
  --gold-strong: #b88c1e;
  --navy: #0f1b2e;
  --navy-soft: #24364c;
  --success: #2f8a4f;
  --danger: #b74a3b;
  --warning: #b07400;
  --focus: #1f6feb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.35rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4.5rem;
  --leading-tight: 1.05;
  --leading-heading: 1.12;
  --leading-body: 1.62;
  --leading-ui: 1.35;
  --tracking-display: -0.04em;
  --tracking-heading: -0.025em;
  --tracking-ui: -0.01em;
  --font-hero: var(--text-5xl);
  --font-h1: var(--text-3xl);
  --font-h2: var(--text-2xl);
  --font-h3: var(--text-xl);
  --font-body: var(--text-base);
  --font-small: var(--text-sm);
  --shadow-sm: 0 1px 2px rgba(36, 28, 18, 0.08);
  --shadow-md: 0 14px 34px rgba(50, 38, 24, 0.12);
  --shadow-card: 0 20px 50px rgba(51, 39, 25, 0.16);
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--font-body);
  line-height: var(--leading-body);
  font-weight: 400;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 420px at 50% -140px, rgba(200, 148, 45, 0.13), transparent 68%),
    linear-gradient(180deg, #fbf4ed 0%, var(--canvas) 100%);
  color: var(--text);
}
a { color: var(--gold-strong); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-ui);
  font-weight: 450;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fffdf9;
  color: var(--text);
  padding: 10px 12px;
  min-height: 42px;
}
textarea { min-height: 96px; resize: vertical; }
button, .button, .btn-row a, .ot-btn {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--gold), var(--border) 48%);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #d9ab51, #b98121);
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(168, 116, 20, 0.2);
}
button:hover, .button:hover, .btn-row a:hover, .ot-btn:hover { text-decoration: none; filter: brightness(1.02); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.container, .ot-container { max-width: 1772px; margin: 0 auto; padding: var(--space-xl); }
.top-nav, .app-topbar, .ot-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 216, 199, 0.9);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
}
.top-nav-inner, .app-topbar-inner, .ot-topbar-inner {
  max-width: 1772px;
  margin: 0 auto;
  padding: 11px var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.brand, .ot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--text);
}
.ot-brand-logo {
  display: inline-block;
  width: auto;
  height: 34px;
  object-fit: contain;
}
.brand::before, .ot-brand::before {
  content: none;
}
.app-brand-block { display: grid; gap: 2px; }
.app-topbar-subtitle { color: var(--text-muted); font-size: 12px; line-height: 1.2; }
.top-nav-links, .app-topbar-links {
  max-width: 1772px;
  margin: 0 auto;
  padding: 0 var(--space-xl) 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.top-nav-links a, .app-nav-link {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--border), #fff 18%);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.app-nav-link.is-active, .top-nav-links a.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--gold), var(--border) 42%);
  background: #f8ead4;
  font-weight: 800;
}
.app-tabs, .ot-bottom-tabs { display: none; }
.app-tab-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  min-height: 48px;
}
.app-tab-link.is-active { color: var(--gold-strong); }

.hero, .ot-hero {
  position: relative;
  padding: var(--space-xxl) 0 var(--space-lg);
}
.ot-hero-card {
  overflow: hidden;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  align-items: stretch;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 216, 199, 0.95);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.ot-hero-copy { padding: 36px; align-self: center; }
.ot-hero-media {
  min-height: 310px;
  background:
    radial-gradient(420px 220px at 72% 24%, rgba(235, 203, 122, 0.3), transparent 58%),
    linear-gradient(135deg, rgba(20, 41, 66, 0.92), rgba(35, 63, 98, 0.74));
}
.hero h1, .ot-hero h1 {
  margin: var(--space-xs) 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--font-hero));
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-optical-sizing: auto;
}
h2, .ot-section-header h2 {
  font-family: var(--font-display);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 { font-size: var(--font-h2); margin: 0 0 var(--space-xs); }
h3 { font-family: var(--font-ui); font-size: var(--font-h3); line-height: 1.18; font-weight: 720; letter-spacing: -0.02em; margin: 0 0 var(--space-xs); }
h4, h5, h6 { font-family: var(--font-ui); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.muted { color: var(--text-muted); }
.mt-xs, .u-mt-xs { margin-top: var(--space-xs); }
.mt-sm, .u-mt-sm { margin-top: var(--space-sm); }
.mt-md, .section, .u-mt-md { margin-top: var(--space-md); }
.mb-xs, .u-mb-xs { margin-bottom: var(--space-xs); }
.u-hidden { display: none !important; }
.u-flex-row { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; }
.u-form-compact { display: grid; gap: 8px; margin-top: 12px; max-width: 420px; }
.u-form-grid { display: grid; gap: 8px; margin-top: 8px; }
.u-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.u-form-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.u-span-2 { grid-column: span 2; }
.u-scroll-panel { max-height: 240px; overflow: auto; border: 1px solid var(--border); padding: 8px; border-radius: var(--radius-sm); background: #fffdf9; }
.pre-wrap { white-space: pre-wrap; }

.card, .ot-card {
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card-compact { padding: 14px; border-radius: var(--radius-md); }
.panel {
  background: rgba(245, 235, 220, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}
.grid { display: grid; gap: var(--space-md); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.split-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-md); align-items: start; }
.section-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.stack { display: grid; gap: var(--space-sm); }
.chip-row, .btn-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chip, .badge, .ot-trust-chip {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.005em;
  background: rgba(255, 255, 255, 0.62);
}
.pill-success { background: rgba(47, 138, 79, 0.12); color: var(--success); }
.pill-gold { background: rgba(200, 148, 45, 0.15); color: var(--gold-strong); }
.pill-danger { background: rgba(183, 74, 59, 0.12); color: var(--danger); }
.pill-warning { background: rgba(176, 116, 0, 0.15); color: var(--warning); }
.value-xl { font-size: clamp(1.35rem, 4.2vw, 1.75rem); line-height: 1.05; font-weight: 800; color: var(--text); }
.value-xl,
.kpi strong,
.ot-admin-kpi strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv11" 1;
  letter-spacing: -0.035em;
}
.kpi, .ot-admin-kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  background: linear-gradient(180deg, #fff 0%, #fbf1e5 100%);
}
.kpi strong, .ot-admin-kpi strong { display: block; font-size: 1.2rem; margin-top: 4px; }
.ot-searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid rgba(229, 216, 199, 0.95);
  box-shadow: var(--shadow-md);
}
.ot-category-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.ot-category-card { min-height: 118px; display: grid; align-content: end; overflow: hidden; }
.ot-category-bars { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,250,244,0.9)), url("/assets/media/category-bars.svg") center / cover no-repeat; }
.ot-category-coins { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,250,244,0.9)), url("/assets/media/category-coins.svg") center / cover no-repeat; }
.ot-category-docs { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,250,244,0.9)), url("/assets/media/category-docs.svg") center / cover no-repeat; }
.ot-category-trust { background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,250,244,0.9)), url("/assets/media/category-trust.svg") center / cover no-repeat; }
.ot-product-card, .ot-listing-row {
  overflow: hidden;
  display: grid;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-sm);
}
.ot-product-card { padding: 10px; }
.ot-listing-row { grid-template-columns: 136px 1fr; padding: 10px; align-items: start; }
.ot-product-media, .ot-listing-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #efe2d0;
}
.ot-product-media img, .ot-listing-media img { width: 100%; height: 100%; object-fit: cover; }
.ot-dynamic-cover { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.ot-thumb { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; margin-right: 8px; }
.ot-media-missing {
  display: grid;
  place-items: center;
  min-height: 118px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff7ec;
}
.action-dock, .ot-action-dock {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
}
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
th, td { font-family: var(--font-ui); padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 0.9rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
th { color: var(--text); font-weight: 800; background: #f4e8d9; }
tr:last-child td { border-bottom: 0; }
code { background: var(--surface-alt); padding: 2px 6px; border-radius: 8px; font-size: 0.92em; }

.ot-runtime-page .container,
.ot-admin-page .container {
  max-width: 1772px;
}
.ot-runtime-page .top-nav-inner,
.ot-admin-page .top-nav-inner {
  max-width: 1772px;
}
.ot-runtime-page .top-nav-links,
.ot-admin-page .top-nav-links {
  max-width: none;
  margin: 0;
  padding: 0;
}
.ot-runtime-brand-block {
  display: grid;
  gap: 2px;
}
.ot-runtime-brand-copy {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
}
.ot-runtime-utility-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ot-runtime-utility-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--gold), var(--border) 48%);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.ot-runtime-subnav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px var(--space-md) 0;
  max-width: 1772px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.ot-runtime-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ot-runtime-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: var(--space-md);
  align-items: end;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(229, 216, 199, 0.95);
  background:
    radial-gradient(460px 240px at 84% 28%, rgba(235, 203, 122, 0.26), transparent 56%),
    linear-gradient(120deg, rgba(18, 36, 57, 0.96) 0%, rgba(18, 36, 57, 0.82) 42%, rgba(24, 52, 84, 0.62) 100%);
  box-shadow: var(--shadow-card);
}
.ot-runtime-hero-copy {
  max-width: 740px;
  padding: 42px;
  color: #fff;
}
.ot-runtime-hero-copy h1 {
  margin: 10px 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.ot-runtime-hero-copy p:not(.badge) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
}
.ot-runtime-hero-copy .ot-searchbar {
  max-width: 720px;
  margin: 22px 0 14px;
}
.ot-runtime-hero-actions,
.ot-runtime-trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ot-runtime-hero-actions {
  margin-bottom: 14px;
}
.ot-runtime-cta-primary,
.ot-runtime-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 750;
}
.ot-runtime-cta-primary {
  background: linear-gradient(180deg, #d9ab51, #b98121);
  color: #fff;
  box-shadow: 0 8px 16px rgba(168, 116, 20, 0.2);
}
.ot-runtime-cta-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.ot-runtime-hero-copy .chip {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
}
.ot-runtime-hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.85), rgba(255, 250, 244, 0.96));
  border-left: 1px solid rgba(255, 255, 255, 0.46);
}
.ot-runtime-hero-panel strong {
  font-size: 1.25rem;
}
.ot-runtime-trust-metrics {
  display: grid;
  gap: 10px;
}
.ot-runtime-trust-metrics div {
  border: 1px solid rgba(229, 216, 199, 0.95);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
}
.ot-runtime-trust-metrics span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.ot-category-card-copy {
  display: grid;
  gap: 8px;
}
.ot-runtime-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.ot-runtime-section-head h2 {
  margin-bottom: 6px;
}
.ot-runtime-session-summary {
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
}
.ot-runtime-session-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.ot-runtime-session-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ot-runtime-session-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}
.ot-runtime-page #session-section {
  display: grid;
  gap: 14px;
  margin-top: var(--space-md);
}
.ot-runtime-page #session-section .u-form-compact {
  margin: 0;
  max-width: none;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
}
.ot-runtime-page #seller-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.ot-runtime-page #seller-section > h2,
.ot-runtime-page #seller-section > #seller-dashboard-state,
.ot-runtime-page #seller-section > #seller-dashboard-cards,
.ot-runtime-page #seller-section > #seller-premium-state,
.ot-runtime-page #seller-section > .u-flex-row {
  grid-column: 1;
}
.ot-runtime-page #seller-section > h3,
.ot-runtime-page #seller-section > #seller-listings-filter-form,
.ot-runtime-page #seller-section > #seller-listings-state,
.ot-runtime-page #seller-section > #seller-listings-list {
  grid-column: 2;
}
.ot-runtime-page #seller-dashboard-cards,
.ot-runtime-page #listings-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.ot-runtime-page #discovery-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.ot-runtime-page #discovery-section > h2,
.ot-runtime-page #discovery-filter-form,
.ot-runtime-page #listings-state {
  grid-column: 1;
}
.ot-runtime-page #listings-grid {
  grid-column: 2;
  align-self: stretch;
}
.ot-runtime-page #discovery-filter-form {
  grid-template-columns: 1fr;
  position: sticky;
  top: 90px;
}
.ot-runtime-page #discovery-filter-form .u-span-2,
.ot-runtime-page #discovery-filter-form button {
  grid-column: auto;
}
.ot-runtime-page .section.card,
.ot-runtime-page section.card {
  background: rgba(255, 250, 244, 0.82);
}
.ot-runtime-page #publish-section .u-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ot-runtime-page #publish-section textarea,
.ot-runtime-page #publish-kind-fields,
.ot-runtime-page #publish-section button {
  grid-column: 1 / -1;
}
.ot-runtime-page #conversations-list article,
.ot-runtime-page #notifications-list article,
.ot-runtime-page #seller-listings-list article,
.ot-runtime-page #watchlist-list article,
.ot-runtime-page #saved-search-list article,
.ot-runtime-page #disputes-list article {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.9);
  padding: 14px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .container, .ot-container { padding: var(--space-md); }
  .top-nav-inner, .app-topbar-inner, .ot-topbar-inner { padding: 10px var(--space-md); }
  .top-nav-links, .app-topbar-links { display: none; }
  .ot-runtime-utility-links {
    display: none;
  }
  .app-topbar-inner > .app-nav-link,
  .ot-topbar-inner > .app-nav-link {
    display: none;
  }
  .ot-runtime-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .grid-3, .split-layout, .u-form-grid-4, .u-form-grid-6 { grid-template-columns: 1fr; }
  .u-span-2 { grid-column: auto; }
  .ot-hero-card { grid-template-columns: 1fr; min-height: 0; }
  .ot-hero-copy { padding: 24px; }
  .ot-hero-media {
    min-height: 180px;
    order: -1;
    background:
      radial-gradient(260px 180px at 72% 22%, rgba(235, 203, 122, 0.22), transparent 58%),
      linear-gradient(180deg, rgba(12, 31, 53, 0.96), rgba(24, 52, 84, 0.74));
  }
  .ot-searchbar {
    grid-template-columns: 1fr;
  }
  .ot-searchbar button {
    width: 100%;
  }
  .ot-category-strip { grid-template-columns: 1fr; }
  .ot-listing-row { grid-template-columns: 104px 1fr; }
  .app-tabs, .ot-bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    align-items: center;
    border-top: 1px solid var(--border);
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 18px rgba(50, 38, 24, 0.1);
  }
  .action-dock, .ot-action-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }
  .ot-runtime-hero,
  .ot-runtime-page #session-section,
  .ot-runtime-page #seller-section,
  .ot-runtime-page #discovery-section {
    grid-template-columns: 1fr;
  }
  .ot-runtime-hero-copy {
    padding: 28px;
  }
  .ot-runtime-hero-copy h1 {
    font-size: 2.45rem;
  }
  .ot-runtime-hero-actions,
  .ot-runtime-trust-row,
  .ot-runtime-session-actions,
  .ot-runtime-section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .ot-runtime-session-grid {
    grid-template-columns: 1fr;
  }
  .ot-runtime-hero-panel,
  .ot-runtime-page #seller-section > *,
  .ot-runtime-page #discovery-section > *,
  .ot-runtime-page #listings-grid {
    grid-column: auto;
  }
  .ot-runtime-page #session-section .u-form-compact,
  .ot-runtime-page #publish-section .u-form-grid {
    grid-template-columns: 1fr;
  }
  .ot-runtime-page #discovery-filter-form {
    position: static;
  }
}
