:root {
  --navy-950: #101041;
  --navy-900: #17175a;
  --navy-800: #202070;
  --navy-700: #30358a;
  --blue-500: #4c79d8;
  --yellow-400: #e4e500;
  --yellow-300: #eff05a;
  --ink: #181b2c;
  --muted: #667085;
  --line: #e5e8ef;
  --surface: #ffffff;
  --canvas: #f5f6fa;
  --success: #17875b;
  --warning: #b85c15;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(23, 23, 90, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

.marketplace-trust-actions { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-top:1rem; font-size:.9rem; }
.marketplace-trust-actions form { margin:0; }
.marketplace-trust-actions a, .text-button { color:var(--navy-800); font:inherit; font-weight:700; text-decoration:none; }
.text-button { border:0; background:transparent; padding:0; cursor:pointer; }
.public-form-shell { max-width:720px; margin:4rem auto; background:var(--surface); padding:clamp(1.5rem, 4vw, 3rem); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.public-hero.compact { min-height:auto; }
.settings-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:20px; align-items:start; }
.account-security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-security-grid .form-card { width: 100%; margin: 0; }
.account-security-grid h2 { margin: 6px 0 10px; }
.account-current { display: grid; gap: 3px; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.account-current small { color: var(--muted); }
.account-current strong { overflow-wrap: anywhere; color: var(--navy-900); }
.account-security-grid .simple-form { margin-top: 20px; }
.account-language-card { grid-column: 1 / -1; }
.language-preference-form { display: grid; grid-template-columns: minmax(220px, 420px) auto; gap: 16px; align-items: end; margin-top: 20px; }
.password-help ul { margin: 6px 0 0; padding-left: 18px; }
.account-confirmation { max-width: 680px; margin: 0 auto; }
.confirmation-card { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; padding: 24px; }
.form-panel { padding:28px; }
.form-panel h2, .detail-section h2 { margin:6px 0 22px; }
.stacked-form { display:grid; gap:16px; }
.stacked-form .button { justify-self:start; }
.record-list { display:grid; }
.record-list article { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.record-list article:last-child { border-bottom:0; }
.record-list strong, .record-list small { display:block; }
.record-list small { margin-top:3px; color:var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(76, 121, 216, .45); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--surface); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; z-index: 30; display: flex; flex-direction: column; gap: 18px; padding: 26px 20px 18px; color: #fff; background: linear-gradient(165deg, var(--navy-950), var(--navy-800)); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { position: relative; flex: 0 0 44px; width: 44px; height: 44px; display: block; overflow: hidden; border-radius: 12px; background: #fff; }
.brand-mark img { position: absolute; width: 93px; max-width: none; left: -25px; top: -1px; }
.brand-mark.customer-brand-mark img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: 100%; object-fit: contain; }
.brand-word { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.loft-switcher { display: grid; gap: 4px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07); }
.loft-switcher strong { font-size: .96rem; }
.loft-switcher span:last-child { color: rgba(255,255,255,.63); font-size: .76rem; }
.eyebrow { display: block; color: var(--blue-500); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar .eyebrow { color: var(--yellow-300); }
.sidebar-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; padding: 0 4px 8px 0; }
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(255,255,255,.28); }
.main-nav, .sidebar-footer { display: grid; gap: 5px; }
.sidebar-footer { margin-top: 18px; }
.sidebar-account { flex: 0 0 auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(32,32,112,0), rgba(32,32,112,.2)); }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 10px 13px; border-radius: 12px; color: rgba(255,255,255,.72); font-size: .9rem; font-weight: 650; transition: .18s ease; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: rgba(255,255,255,.11); }
.nav-item.is-active { box-shadow: inset 3px 0 var(--yellow-400); }
.nav-item.is-disabled { opacity: .55; cursor: default; }
.nav-item small { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.1); font-size: .62rem; }
.nav-icon { width: 24px; text-align: center; font-size: 1.15rem; }
.account-chip { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; gap: 10px; align-items: center; padding: 13px 10px 0; border-top: 1px solid rgba(255,255,255,.13); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); background: var(--yellow-400); font-weight: 800; }
.account-chip strong, .account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-size: .82rem; }
.account-chip small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: .67rem; }

.workspace { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.language-form select { min-height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-weight: 700; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.sidebar .icon-button { border: 0; color: rgba(255,255,255,.7); }
.notification-button { color: var(--yellow-400); font-size: .65rem; }
.menu-button, .mobile-brand { display: none; }
.content { width: min(1480px, 100%); margin: auto; padding: 36px clamp(20px, 4vw, 52px) 64px; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1, .help-hero h1 { margin: 7px 0 8px; color: var(--navy-950); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.06; letter-spacing: -.04em; }
.page-header p, .help-hero p { margin: 0; color: var(--muted); line-height: 1.65; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 750; }
.button-primary { color: var(--navy-950); background: var(--yellow-400); box-shadow: 0 7px 18px rgba(228,229,0,.2); }
.button-primary:hover { background: var(--yellow-300); }
.button-secondary { color: var(--navy-800); border-color: #cdd3e7; background: #fff; }
.button-ghost { min-height: 38px; color: var(--navy-800); border-color: var(--line); background: #fafbfe; }
.button-block { width: 100%; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px rgba(23, 23, 90, .025); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-header h2, .detail-section h2 { margin: 4px 0 0; color: var(--navy-950); font-size: 1.15rem; }
.panel-header > a { color: var(--navy-700); font-size: .83rem; font-weight: 750; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-icon { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; font-size: 1.25rem; }
.metric-icon.indigo { color: #4e4ab6; background: #ededfb; }
.metric-icon.blue { color: #2563b4; background: #e7f0fc; }
.metric-icon.yellow { color: #777900; background: #f9fad8; }
.metric-icon.green { color: #147052; background: #e1f5ed; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: .76rem; font-weight: 650; }
.metric-card strong { display: block; margin: 2px 0; color: var(--navy-950); font-size: 1.65rem; }
.metric-card small { font-size: .68rem; }
.dashboard-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 20px; }
.dashboard-grid > * { min-width: 0; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: .83rem; }
.data-table th { color: var(--muted); background: #fafbfc; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.pigeon-cell { display: flex; align-items: center; gap: 11px; }
.pigeon-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--navy-800); font-size: .7rem; font-weight: 800; }
.pigeon-avatar { overflow: hidden; }
.pigeon-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pigeon-cell strong, .pigeon-cell small { display: block; }
.pigeon-cell small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: var(--navy-700); background: #eceefa; font-size: .67rem; font-weight: 800; text-transform: capitalize; }
.status-racing, .status-active { color: #1763a0; background: #e2f1fb; }
.status-breeding, .status-hatched { color: #785700; background: #fbf3cf; }
.status-young, .status-planned { color: #137355; background: #e1f5ed; }
.attention-panel { overflow: hidden; }
.attention-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.attention-item:hover { background: #fafbfe; }
.attention-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-weight: 850; }
.attention-dot.warning { color: #9b4c10; background: #fff0e2; }
.attention-dot.info { color: var(--navy-700); background: #eceefa; }
.attention-item strong, .attention-item small { display: block; }
.attention-item strong { font-size: .8rem; }
.attention-item small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.help-cta { display: flex; gap: 12px; align-items: center; margin: 16px; padding: 16px; border-radius: 13px; color: #fff; background: var(--navy-800); }
.help-cta > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); background: var(--yellow-400); font-weight: 900; }
.help-cta strong, .help-cta small { display: block; }
.help-cta small { margin-top: 3px; color: rgba(255,255,255,.68); }
.empty-card, .empty-cell { padding: 22px; color: var(--muted); text-align: center; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; margin-bottom: 20px; }
.filter-form { display: flex; gap: 10px; flex: 1; }
.filter-form select, .search-field { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-field { min-width: 240px; max-width: 480px; display: flex; align-items: center; gap: 8px; flex: 1; padding: 0 12px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }
.filter-form select { padding: 0 34px 0 12px; }
.result-count { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.pigeon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pigeon-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.pigeon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pigeon-card-visual { position: relative; height: 155px; display: grid; place-items: center; background: linear-gradient(135deg, #edeef8, #f8f8fb); }
.pigeon-card-visual > img { width: 100%; height: 100%; object-fit: cover; }
.ring-pill { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.9); font-size: .63rem; font-weight: 750; }
.pigeon-card-visual .status { position: absolute; right: 14px; top: 14px; }
.bird-monogram { width: 76px; height: 76px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.85); border-radius: 50%; color: #fff; background: var(--navy-800); box-shadow: 0 9px 20px rgba(32,32,112,.2); font-size: 1.6rem; font-weight: 850; }
.pigeon-card-body { padding: 19px; }
.pigeon-card-body h2 { margin: 0 0 4px; color: var(--navy-950); font-size: 1.08rem; }
.pigeon-card-body p { margin: 0; color: var(--muted); font-size: .78rem; }
.pigeon-card dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pigeon-card dt, .pigeon-card dd { margin: 0; }
.pigeon-card dt { color: var(--muted); font-size: .65rem; }
.pigeon-card dd { margin-top: 4px; overflow: hidden; color: var(--ink); font-size: .76rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; padding: 70px 24px; border: 1px dashed #cdd3de; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state > span { font-size: 2rem; }
.empty-state h2 { color: var(--navy-950); }

.breadcrumbs { display: flex; gap: 8px; align-items: center; margin: -8px 0 18px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--navy-700); font-weight: 700; }
.profile-header { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px; margin-bottom: 20px; }
.profile-image { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 19px; color: #fff; background: linear-gradient(145deg, var(--navy-700), var(--navy-950)); font-size: 2.4rem; font-weight: 850; }
.profile-image { overflow: hidden; }
.profile-image img, .media-grid img { width: 100%; height: 100%; object-fit: cover; }
.profile-kicker, .profile-meta, .profile-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.profile-intro h1 { margin: 8px 0 3px; color: var(--navy-950); font-size: 2rem; }
.ring-number { margin: 0 0 13px; color: var(--muted); font-weight: 700; }
.profile-meta span { padding-right: 10px; border-right: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.profile-meta span:last-child { border: 0; }
.public-badge { color: var(--success); font-size: .7rem; font-weight: 750; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .65fr); gap: 20px; }
.detail-main, .detail-aside { display: grid; gap: 20px; align-content: start; }
.detail-section { padding: 24px; }
.detail-section > .panel-header { margin: -24px -24px 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.detail-grid div { padding: 13px; border-radius: 11px; background: #f8f9fc; }
.detail-grid dt, .detail-grid dd { margin: 0; }
.detail-grid dt { color: var(--muted); font-size: .68rem; }
.detail-grid dd { margin-top: 5px; font-weight: 750; }
.pedigree { display: grid; grid-template-columns: 1fr 1.25fr; gap: 46px; align-items: center; }
.pedigree-parents { position: relative; display: grid; gap: 14px; }
.pedigree-card { position: relative; display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.pedigree-card.current { border-color: #b9bce5; background: #f4f4fc; }
.pedigree-card small, .pedigree-card span { color: var(--muted); font-size: .68rem; }
.health-status { display: flex; gap: 12px; padding: 15px; margin: 17px 0; border-radius: 12px; background: #edf8f4; }
.health-status.warning { background: #fff3e7; }
.health-status > span { font-size: 1.35rem; }
.health-status strong, .health-status small { display: block; }
.health-status small { margin-top: 3px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 18px 0; }
.media-grid div { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: #f0f2f7; font-size: .65rem; }

.breeding-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px; margin-bottom: 20px; }
.breeding-intro h2 { margin: 5px 0; }
.breeding-intro p { margin: 0; color: var(--muted); }
.formula { display: flex; gap: 12px; }
.formula span { display: grid; padding: 11px 17px; border-radius: 11px; color: var(--muted); background: #f4f5f9; font-size: .68rem; }
.formula strong { color: var(--navy-800); font-size: 1.1rem; }
.cycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cycle-card { padding: 22px; }
.cycle-header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .72rem; }
.pairing { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 24px 0; }
.pairing > div { display: grid; gap: 4px; }
.pairing > div:last-child { text-align: right; }
.pairing small, .pairing span { color: var(--muted); font-size: .68rem; }
.pairing-x { color: var(--navy-700); font-size: 1.4rem; font-weight: 300; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 18px; }
.breeding-outcome { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0; }.breeding-outcome span { padding:10px;border-radius:10px;background:#f7f8fb;color:var(--muted);font-size:.68rem; }.breeding-outcome strong { display:block;color:var(--navy-950);font-size:1rem; }
.timeline div { position: relative; display: grid; gap: 4px; text-align: center; }
.timeline strong { font-size: .7rem; }
.timeline small { color: var(--muted); }
.timeline .highlight strong, .timeline .highlight small { color: var(--warning); }

.help-hero { padding: 38px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 0, #3b3b9f, transparent 42%), var(--navy-950); }
.help-hero .eyebrow { color: var(--yellow-300); }
.help-hero h1 { color: #fff; }
.help-hero p { color: rgba(255,255,255,.7); }
.help-search { max-width: 700px; display: flex; gap: 8px; align-items: center; margin-top: 24px; padding: 7px; border-radius: 13px; background: #fff; }
.help-search > span { margin-left: 8px; color: var(--muted); }
.help-search input { min-width: 0; flex: 1; border: 0; outline: 0; }
.search-summary { color: var(--muted); }
.help-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.help-nav { position: sticky; top: 92px; display: grid; gap: 4px; padding: 18px; }
.help-nav strong { padding: 5px 8px 12px; color: var(--navy-950); }
.help-nav a { display: flex; justify-content: space-between; padding: 10px 8px; border-radius: 8px; color: var(--muted); font-size: .78rem; }
.help-nav a:hover { color: var(--navy-800); background: #f3f4f9; }
.help-nav span { font-weight: 750; }
.help-content { display: grid; gap: 28px; }
.section-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { color: var(--navy-950); }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.category-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--navy-800); font-weight: 850; }
.article-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article-list a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.article-list a:last-child { border-bottom: 0; }
.article-list a:hover { background: #fafbfe; }
.article-list strong, .article-list small { display: block; }
.article-list strong { color: var(--navy-950); }
.article-list small { margin-top: 4px; color: var(--muted); }
.article-detail { max-width: 860px; margin: auto; padding: clamp(24px, 5vw, 54px); }
.article-detail h1 { color: var(--navy-950); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.article-summary { color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.article-body { margin: 34px 0; line-height: 1.75; }
.article-detail footer { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.article-detail footer a { color: var(--navy-700); font-weight: 750; }

.login-body { min-height: 100vh; background: var(--navy-950); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-visual { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 82px); color: #fff; background: radial-gradient(circle at 18% 20%, rgba(64,73,173,.8), transparent 36%), linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.login-brand { display: flex; gap: 13px; align-items: center; font-size: 1.45rem; font-weight: 850; }
.login-copy { max-width: 630px; }
.login-copy .eyebrow { color: var(--yellow-300); }
.login-copy h1 { margin: 15px 0 20px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.login-copy p { max-width: 580px; color: rgba(255,255,255,.68); font-size: 1.02rem; line-height: 1.75; }
.login-proof { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.7); font-size: .74rem; }
.login-proof span::first-letter { color: var(--yellow-400); }
.login-panel { display: grid; place-items: center; padding: 30px; background: #fff; }
.login-form-wrap { width: min(400px, 100%); }
.login-form-wrap h2 { margin: 8px 0; color: var(--navy-950); font-size: 2rem; }
.login-form-wrap > p { color: var(--muted); }
.login-form { display: grid; gap: 10px; margin-top: 28px; }
.login-form label { margin-top: 6px; color: var(--ink); font-size: .76rem; font-weight: 750; }
.login-form input { min-height: 48px; padding: 0 13px; border: 1px solid #d5d9e2; border-radius: 10px; outline: 0; }
.login-form input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(76,121,216,.12); }
.login-form .button { margin-top: 10px; }
.form-alert { padding: 12px; margin-top: 18px; border-radius: 9px; color: #922; background: #fde9e9; font-size: .78rem; }
.demo-note { padding: 12px 14px; margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; font-size: .72rem; }
.login-help-link { display:inline-block;margin-top:12px;color:var(--navy-700);font-size:.76rem;font-weight:700; }

.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 13px 16px; border: 1px solid #bce1d2; border-radius: 10px; color: #126343; background: #eaf8f2; font-size: .82rem; }
.record-form { overflow: visible; }
.form-section { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 38px; padding: 28px; border-bottom: 1px solid var(--line); }
.form-section-heading { display: flex; gap: 12px; align-items: flex-start; }
.form-section-heading > span { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--navy-700); background: #eceefa; font-size: .68rem; font-weight: 850; }
.form-section-heading h2, .form-section-heading p { margin: 0; }
.form-section-heading h2 { color: var(--navy-950); font-size: 1rem; }
.form-section-heading p { margin-top: 5px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; align-content: start; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: .73rem; font-weight: 750; }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #d6dae4; border-radius: 10px; color: var(--ink); background: #fff; outline: 0; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(76,121,216,.11); }
.field-error { color: #a02828; }
.checkbox-field { display: flex; align-items: center; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 28px; background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }
.field-help { position: relative; display: inline-flex; margin-left: 5px; vertical-align: middle; }
.help-button { width: 19px; height: 19px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--navy-700); font-size: .66rem; font-weight: 850; cursor: pointer; }
.help-popover { position: absolute; left: 26px; top: -10px; z-index: 8; width: min(290px, 75vw); display: none; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; box-shadow: var(--shadow); font-size: .72rem; font-weight: 400; line-height: 1.45; }
.help-popover strong, .help-popover span { display: block; }
.help-popover a { color: var(--navy-700); font-weight: 750; }
.help-button[aria-expanded="true"] + .help-popover, .help-button:focus + .help-popover, .help-button:hover + .help-popover { display: grid; }

.product-credit { display: grid; gap: 2px; padding: 10px 12px 0; color: rgba(255,255,255,.42); font-size: .58rem; line-height: 1.4; }
.profile-image { overflow: hidden; }
.profile-image img, .media-grid img { width: 100%; height: 100%; object-fit: cover; }
.form-card { max-width: 920px; margin: 0 auto; padding: 28px; }
.simple-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.simple-form > .form-actions, .simple-form > .info-banner, .simple-form > .button, .simple-form > .errorlist { grid-column: 1 / -1; }
.simple-form .form-actions { margin: 8px -28px -28px; }
.media-upload-actions { display:none;flex-wrap:wrap;gap:10px; }
.media-upload-selection,.media-upload-help { display:none; }
.media-upload-field.is-enhanced .media-upload-actions { display:flex; }
.media-upload-field.is-enhanced .media-native-input { display:none; }
.media-upload-field.is-enhanced .media-upload-selection { display:block;color:var(--ink);font-weight:700; }
.media-upload-field.is-enhanced .media-upload-help { display:block;color:var(--muted);line-height:1.5; }
.media-camera-button { display:none; }
.two-column { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.asset-list, .data-list, .ranking-list, .offer-list { display: grid; }
.asset-list a, .data-list a, .ranking-list a, .offer-list article { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.asset-list a:last-child, .data-list a:last-child, .ranking-list a:last-child, .offer-list article:last-child { border-bottom: 0; }
.asset-list span, .data-list span { display: grid; gap: 3px; }
.asset-list small, .data-list small, .ranking-list span, .muted { color: var(--muted); }
.warning-banner, .info-banner { padding: 13px 15px; border-radius: 10px; font-size: .75rem; line-height: 1.5; }
.warning-banner { margin-top: 15px; color: #7a4a05; background: #fff2d9; }
.info-banner { margin-top: 18px; color: var(--navy-800); background: #eef2fb; }
.generation-control { display: flex; gap: 10px; align-items: center; }
.generation-control select { min-height: 42px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.pedigree-canvas { overflow: auto; padding: 30px; }
.tree-node { display: flex; gap: 34px; align-items: center; min-width: max-content; }
.tree-card { width: 190px; display: grid; gap: 4px; padding: 15px; border: 1px solid #cfd4e1; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 4px 12px rgba(25,28,74,.06); }
.tree-card small, .tree-card span, .tree-card em { color: var(--muted); font-size: .64rem; font-style: normal; }
.tree-parents { position: relative; display: grid; gap: 12px; padding-left: 24px; }
.tree-parents::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: #bfc5d4; }
.tree-node.missing .tree-card { border-style: dashed; background: #fafbfc; }
.metric-icon.yellow { color: #875c00; background: #fff5d5; }
.metric-icon.red { color: #a22; background: #fdeaea; }
.empty-state.compact { padding: 25px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); background: #fafbfc; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.row-error { display: block; max-width: 260px; margin-top: 4px; color: #a22; white-space: normal; }
.current-plan { display: grid; gap: 3px; min-width: 170px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.current-plan small, .current-plan span { color: var(--muted); font-size: .68rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-card { display: grid; gap: 18px; padding: 26px; }
.plan-card.featured { border: 2px solid var(--navy-700); box-shadow: var(--shadow); }
.plan-card h2 { margin: 7px 0 2px; }
.plan-price strong { color: var(--navy-950); font-size: 2rem; }
.plan-price span, .billing-note { color: var(--muted); font-size: .7rem; }
.plan-card ul { display: grid; gap: 11px; min-height: 150px; padding: 0; color: var(--muted); font-size: .78rem; list-style: none; }
.marketplace-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 34px; margin-bottom: 24px; border-radius: 24px; color: white; background: radial-gradient(circle at 85% 5%, #3d3da3, transparent 40%), var(--navy-950); }
.marketplace-hero .eyebrow { color: var(--yellow-300); }
.marketplace-hero h1 { max-width: 680px; margin: 8px 0; color: white; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.04em; }
.marketplace-hero p { max-width: 700px; color: rgba(255,255,255,.7); }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.market-card { overflow: hidden; }
.market-visual { position: relative; height: 180px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #3a3aa1, var(--navy-950)); font-size: 2.6rem; font-weight: 850; }
.market-visual em { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 8px; color: var(--navy-950); background: var(--yellow-400); font-size: .75rem; font-style: normal; }
.market-card > div:last-child { padding: 18px; }
.market-card h2 { margin: 4px 0; color: var(--navy-950); }
.market-card p, .market-card small { color: var(--muted); }
.my-listings { margin-top: 24px; }
.listing-header { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 24px; margin-bottom: 20px; }
.listing-mark { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--navy-800); font-size: 2.2rem; font-weight: 850; }
.listing-header h1 { margin: 8px 0; color: var(--navy-950); }
.listing-header p, .listing-header small { color: var(--muted); }
.listing-price { text-align: right; }
.listing-price strong, .listing-price small { display: block; }
.listing-price strong { color: var(--navy-950); font-size: 1.5rem; }
.long-copy { color: var(--muted); line-height: 1.7; }
.compact-form { grid-template-columns: 1fr; }
.legal-note { display: block; margin-top: 14px; color: var(--muted); line-height: 1.5; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.results-page { width:min(1260px,100%);margin:0 auto; }
.results-header { align-items:center; }
.results-header p { max-width:760px; }
.results-summary { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px; }
.results-summary-card { display:flex;align-items:center;gap:15px;min-height:112px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface); }
.results-summary-card span,.results-summary-card small { display:block;color:var(--muted); }
.results-summary-card span { font-size:.76rem;font-weight:700; }.results-summary-card strong { display:block;margin:2px 0;color:var(--navy-950);font-size:1.65rem; }.results-summary-card small { font-size:.68rem; }
.results-content-grid { display:grid;grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr);gap:20px;align-items:start; }
.results-panel { overflow:hidden; }
.panel-count { min-width:30px;height:30px;display:grid;place-items:center;border-radius:999px;color:var(--navy-700);background:#f0f1f7;font-size:.72rem;font-weight:800; }
.results-history-list,.ranking-card-list { display:grid;padding:10px 14px 14px; }
.result-history-row { min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr) auto 32px;gap:13px;align-items:center;padding:14px 8px;border-bottom:1px solid var(--line); }
.result-history-row:last-child,.ranking-row:last-child { border-bottom:0; }
.result-history-row:hover,.ranking-row:hover { background:#f8f9fc; }
.result-file-icon { width:46px;height:46px;display:grid;place-items:center;border-radius:11px;color:#2563b4;background:#e7f0fc;font-size:.6rem;font-weight:850;letter-spacing:.04em; }
.result-history-copy { min-width:0;display:grid;gap:3px; }.result-history-copy strong,.result-history-copy small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.result-history-copy strong { color:var(--navy-950); }.result-history-copy small,.result-history-copy em { color:var(--muted);font-size:.7rem;font-style:normal; }.result-history-copy em { font-size:.62rem; }
.result-row-arrow { width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:var(--navy-700);background:#f0f1f7;font-size:1.3rem; }
.ranking-row { min-width:0;display:grid;grid-template-columns:54px minmax(120px,.8fr) minmax(130px,1fr) auto;gap:12px;align-items:center;padding:16px 8px;border-bottom:1px solid var(--line); }
.ranking-position { width:48px;height:36px;display:grid;place-items:center;border-radius:9px;color:var(--navy-800);background:#eef0fa;font-size:.74rem;font-weight:850; }
.ranking-pigeon { min-width:0;display:grid;gap:3px; }.ranking-pigeon strong { overflow:hidden;color:var(--navy-950);text-overflow:ellipsis;white-space:nowrap; }.ranking-pigeon small,.ranking-race,.ranking-score small { color:var(--muted);font-size:.68rem; }.ranking-race { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.ranking-score { display:grid;gap:3px;text-align:right; }.ranking-score strong { color:var(--navy-950);font-size:.92rem;font-variant-numeric:tabular-nums; }
.brand-preview { display: grid; align-content: start; justify-items: center; padding: 30px; text-align: center; }
.brand-preview img, .brand-preview-fallback { width: min(220px, 80%); height: 130px; object-fit: contain; margin: 24px 0 10px; }
.brand-preview-fallback { display: grid; place-items: center; border-radius: 22px; color: white; background: var(--navy-800); font-size: 3rem; font-weight: 850; }

/* Release 0.4 commercial, onboarding and workflow polish */
.marketing-body { color: var(--ink); background: #fff; }
.marketing-nav { position: sticky; top: 0; z-index: 40; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; padding: 12px clamp(20px, 5vw, 80px); border-bottom: 1px solid rgba(229,232,239,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.marketing-brand { display: flex; gap: 10px; align-items: center; color: var(--navy-950); font-size: 1.25rem; }
.marketing-brand img { width: 46px; height: 46px; object-fit: contain; object-position: center; }
.marketing-nav nav, .marketing-actions { display: flex; gap: 24px; align-items: center; }
.marketing-nav nav a { color: var(--muted); font-size: .86rem; font-weight: 700; }
.marketing-actions { justify-content: flex-end; gap: 10px; }
.marketing-hero { min-height: 720px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding: 80px clamp(24px, 7vw, 120px); color: #fff; background: radial-gradient(circle at 82% 15%, rgba(76,121,216,.38), transparent 33%), linear-gradient(145deg, #0d0d38, #202070); overflow: hidden; }
.hero-copy h1 { max-width: 720px; margin: 18px 0 24px; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .92; letter-spacing: -.065em; }
.hero-copy > p { max-width: 660px; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 24px; }
.button-light { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.62); font-size: .76rem; }
.product-window { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: #f7f8fb; box-shadow: 0 40px 100px rgba(0,0,0,.4); transform: rotate(1deg); }
.product-top { height: 46px; display: flex; gap: 6px; align-items: center; padding: 0 16px; color: var(--muted); background: #fff; }
.product-top span { width: 8px; height: 8px; border-radius: 50%; background: #d7dae2; }.product-top b { margin-left: auto; font-size: .7rem; }
.product-grid { min-height:420px;display:grid;grid-template-columns:76px 1fr; }
.product-sidebar { display:grid;align-content:start;justify-items:center;gap:18px;padding:18px 10px;background:var(--navy-950); }
.product-sidebar .mini-brand { width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:var(--yellow-400);background:#fff;font-weight:900; }
.product-sidebar i { width:30px;height:7px;border-radius:9px;background:rgba(255,255,255,.17); }
.product-main { padding:24px; }
.mock-heading { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;color:var(--navy-950); }
.mock-heading span,.mock-heading small,.mock-heading strong { display:block; }.mock-heading small { margin-bottom:3px;color:var(--muted);font-size:.54rem; }.mock-heading strong { font-size:1rem; }.mock-heading > b { padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:.55rem; }
.mock-kpis { display:grid;grid-template-columns:repeat(3,1fr);gap:10px; }.mock-kpis article { min-width:0;display:grid;gap:4px;padding:13px;border-radius:12px;background:#fff;box-shadow:0 3px 15px rgba(23,23,90,.08); }.mock-kpis small { overflow:hidden;color:var(--muted);font-size:.5rem;text-overflow:ellipsis;white-space:nowrap; }.mock-kpis strong { color:var(--navy-950);font-size:1.25rem; }.mock-kpis em { color:var(--success);font-size:.5rem;font-style:normal; }
.mock-champion { position:relative;display:grid;grid-template-columns:68px auto 1fr;gap:13px;align-items:center;overflow:hidden;padding:12px;margin:14px 0;border-radius:14px;color:var(--navy-950);background:linear-gradient(110deg,#fff9d8,#fff); }.mock-champion img { width:68px;height:68px;object-fit:cover;border-radius:11px; }.mock-champion > strong { font-size:1.7rem; }.mock-champion span small,.mock-champion b,.mock-champion em { display:block; }.mock-champion span small { color:#8a7410;font-size:.5rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em; }.mock-champion b { margin-top:3px;font-size:.9rem; }.mock-champion em { margin-top:4px;color:var(--muted);font-size:.58rem;font-style:normal; }
.mock-dashboard-grid { display:grid;grid-template-columns:1.25fr .75fr;gap:10px; }.mock-dashboard-grid section { display:grid;gap:0;padding:12px;border-radius:12px;background:#fff; }.mock-dashboard-grid section > span { display:flex;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:.55rem; }.mock-dashboard-grid section > span small { color:var(--muted); }.mock-dashboard-grid section > div { min-width:0;display:grid;grid-template-columns:18px auto 1fr;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #f0f1f5;font-size:.52rem; }.mock-dashboard-grid section > div:last-child { border-bottom:0; }.mock-dashboard-grid section > div em { overflow:hidden;color:var(--muted);font-style:normal;text-align:right;text-overflow:ellipsis;white-space:nowrap; }.avatar-dot { width:16px;height:16px;border-radius:5px;background:linear-gradient(145deg,#4c79d8,#202070); }.avatar-dot.second { background:linear-gradient(145deg,#38a786,#202070); }
.marketing-proof { padding: 28px 24px; color: var(--navy-800); background: var(--yellow-400); text-align: center; font-size: 1.15rem; font-weight: 800; }
.feature-story,.pricing-section,.demo-section { padding: 100px clamp(24px,7vw,120px); }.section-intro { max-width: 780px; margin-bottom: 44px; }.section-intro h2,.market-teaser h2,.demo-section h2 { margin: 10px 0 16px; color:var(--navy-950);font-size:clamp(2.2rem,4vw,4.2rem);line-height:1;letter-spacing:-.05em; }.section-intro p,.market-teaser p,.demo-section p { color:var(--muted);line-height:1.7; }
.feature-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:24px;overflow:hidden; }.feature-grid article { min-height:250px;padding:34px;background:#fff; }.feature-grid article > span { color:var(--blue-500);font-weight:850; }.feature-grid h3 { margin:45px 0 12px;color:var(--navy-950);font-size:1.25rem; }.feature-grid p { margin:0;color:var(--muted);line-height:1.65; }
.market-teaser { display:grid;grid-template-columns:1fr .55fr;gap:60px;align-items:center;padding:90px clamp(24px,7vw,120px);color:#fff;background:var(--navy-950); }.market-teaser h2 { color:#fff; }.market-teaser p { color:rgba(255,255,255,.66); }.market-bird { position:relative;aspect-ratio:1;overflow:hidden;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:#252570;box-shadow:0 30px 70px rgba(0,0,0,.24); }.market-bird::after { content:"";position:absolute;inset:0;background:linear-gradient(160deg,transparent 55%,rgba(16,16,65,.62)); }.market-bird img { width:100%;height:100%;display:block;object-fit:cover;object-position:54% center;transition:transform .35s ease; }.market-bird:hover img { transform:scale(1.035); }.market-bird span { position:absolute;right:13%;bottom:11%;z-index:2;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;color:var(--navy-950);background:var(--yellow-400);font-size:1.5rem;font-weight:900; }
.pricing-section { background:#f6f7fb; }.public-plan-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }.public-plan-card { display:grid;gap:22px;padding:32px;border:1px solid var(--line);border-radius:22px;background:#fff; }.public-plan-card.featured { border:2px solid var(--navy-700);box-shadow:var(--shadow); }.plan-label { color:var(--navy-950);font-weight:850; }.public-price strong { font-size:2.4rem;color:var(--navy-950); }.public-price span { color:var(--muted); }.public-plan-card ul { min-height:150px;display:grid;gap:12px;padding:0;color:var(--muted);list-style:none; }
.demo-section { display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start; }.demo-form,.onboarding-form { display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:30px; }.demo-form .form-field:last-of-type,.demo-form .button { grid-column:1/-1; }
.marketing-footer { display:grid;grid-template-columns:1fr auto;gap:30px;padding:55px clamp(24px,7vw,120px);color:rgba(255,255,255,.7);background:#0c0c32; }.marketing-footer strong { color:#fff;font-size:1.3rem; }.marketing-footer div:nth-child(2) { display:grid;gap:9px; }.marketing-footer small { grid-column:1/-1;padding-top:25px;border-top:1px solid rgba(255,255,255,.1); }

/* Release 0.6 commercial story */
.journey-section,.collaboration-section,.trust-section,.faq-section { padding:100px clamp(24px,7vw,120px); }
.journey-section,.faq-section { background:#fff; }
.journey-section .section-intro h2,.collaboration-section .section-intro h2,.trust-section .section-intro h2,.faq-section .section-intro h2,.certificate-copy h2 { margin:10px 0 16px;color:var(--navy-950);font-size:clamp(2.2rem,4vw,4.2rem);line-height:1;letter-spacing:-.05em; }
.journey-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;position:relative; }
.journey-grid::before { content:"";position:absolute;left:8%;right:8%;top:30px;height:1px;background:#dfe3ee; }
.journey-grid article { position:relative;min-width:0;padding:0 22px 28px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(23,23,90,.06); }
.journey-grid article > span { position:relative;z-index:1;display:grid;width:60px;height:60px;place-items:center;margin:-1px 0 28px;color:var(--navy-950);border-radius:0 0 16px 16px;background:var(--yellow-400);font-size:.76rem;font-weight:900; }
.journey-icon { width:44px;height:44px;display:grid;place-items:center;margin-bottom:18px;border-radius:13px;color:#fff;background:var(--navy-800);font-size:1.25rem; }
.journey-grid h3,.feature-bento h3,.collaboration-grid h3,.trust-grid h3 { margin:0 0 10px;color:var(--navy-950);font-size:1.15rem; }
.journey-grid p,.feature-bento p,.collaboration-grid p,.trust-grid p { margin:0;color:var(--muted);line-height:1.65; }
.feature-story { background:#f6f7fb; }
.feature-bento { display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:16px; }
.feature-bento article { min-width:0;min-height:250px;padding:30px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(23,23,90,.045); }
.feature-bento .feature-primary { grid-row:span 2;display:grid;grid-template-rows:auto 1fr;color:#fff;border:0;background:radial-gradient(circle at 90% 8%,rgba(76,121,216,.42),transparent 35%),linear-gradient(145deg,#101041,#202070); }
.feature-bento .feature-primary h3 { color:#fff;font-size:1.55rem; }
.feature-bento .feature-primary p { color:rgba(255,255,255,.68); }
.feature-bento .feature-primary ul { display:grid;gap:10px;margin:24px 0 0;padding:0;list-style:none;color:rgba(255,255,255,.86);font-size:.83rem; }
.feature-bento .feature-primary li::before { content:"✓";margin-right:8px;color:var(--yellow-400);font-weight:900; }
.feature-number { display:block;margin-bottom:38px;color:var(--blue-500);font-size:.72rem;font-weight:900;letter-spacing:.12em; }
.feature-primary .feature-number { color:var(--yellow-400); }
.certificate-section { display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(50px,8vw,120px);align-items:center;padding:110px clamp(24px,9vw,150px);overflow:hidden;background:#fffdf1; }
.certificate-copy > p { max-width:650px;color:var(--muted);line-height:1.75; }
.certificate-points { display:grid;gap:12px;margin-top:30px;color:var(--navy-800);font-weight:750; }
.certificate-points span::first-letter { color:var(--success); }
.document-preview { display:grid;place-items:center;min-height:520px;padding:50px;border-radius:30px;background:radial-gradient(circle at 80% 15%,#3c3c9b,transparent 34%),linear-gradient(145deg,#101041,#202070);box-shadow:0 35px 80px rgba(16,16,65,.22); }
.document-sheet { position:relative;width:min(500px,100%);aspect-ratio:.76;padding:34px;border-radius:6px;background:#fff;box-shadow:0 28px 60px rgba(0,0,0,.3);transform:rotate(1.5deg); }
.document-brand { display:flex;gap:14px;align-items:center;padding-bottom:20px;border-bottom:3px solid var(--navy-800); }.document-brand img { width:58px;height:58px;object-fit:contain; }.document-brand span,.document-brand small,.document-brand strong { display:block; }.document-brand small { color:var(--blue-500);font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em; }.document-brand strong { margin-top:4px;color:var(--navy-950);font-size:1.5rem; }
.document-id { display:flex;justify-content:space-between;gap:20px;margin:24px 0;padding:17px;border-radius:10px;background:#f4f5f9; }.document-id span { color:var(--navy-950);font-weight:850; }.document-id em { color:var(--success);font-size:.68rem;font-style:normal;font-weight:800; }
.document-profile { display:grid;grid-template-columns:120px 1fr;gap:14px; }.document-profile > img { width:120px;height:112px;object-fit:cover;border-radius:10px; }.document-profile dl { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0; }.document-profile dl div { min-width:0;padding:10px;border-radius:8px;background:#f4f5f9; }.document-profile dt { color:var(--muted);font-size:.5rem; }.document-profile dd { overflow:hidden;margin:3px 0 0;color:var(--navy-950);font-size:.68rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap; }
.document-performance { display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:9px;background:#fff9d8; }.document-performance > span { font-size:1.2rem; }.document-performance small,.document-performance strong,.document-performance em { display:block; }.document-performance small { color:#8a7410;font-size:.47rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em; }.document-performance strong { margin-top:2px;color:var(--navy-950);font-size:.68rem; }.document-performance em { margin-top:2px;color:var(--muted);font-size:.5rem;font-style:normal; }
.document-pedigree { display:grid;grid-template-columns:1.05fr 1fr 1fr;grid-template-rows:repeat(2,48px);gap:7px;margin-top:12px;padding-right:76px; }.document-pedigree > div { min-width:0;display:grid;align-content:center;padding:7px 9px;border:1px solid #dfe2eb;border-radius:7px;background:#f8f9fb; }.document-pedigree .pedigree-root { grid-row:1/-1;background:#eef0fa; }.document-pedigree small,.document-pedigree strong,.document-pedigree em { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.document-pedigree small { color:var(--blue-500);font-size:.43rem;font-weight:850;text-transform:uppercase; }.document-pedigree strong { margin-top:2px;color:var(--navy-950);font-size:.55rem; }.document-pedigree em { margin-top:1px;color:var(--muted);font-size:.42rem;font-style:normal; }
.document-seal { position:absolute;right:22px;bottom:18px;width:108px;height:108px;filter:drop-shadow(0 5px 9px rgba(16,16,65,.24)); }
.collaboration-section { background:#f6f7fb; }
.collaboration-grid,.trust-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
.collaboration-grid article { min-height:230px;padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff; }
.collaboration-grid article > span { width:46px;height:46px;display:grid;place-items:center;margin-bottom:32px;border-radius:13px;color:var(--navy-950);background:var(--yellow-400);font-size:1.15rem;font-weight:900; }
.market-proof-list { display:flex;flex-wrap:wrap;gap:10px 18px;margin:24px 0 30px;color:rgba(255,255,255,.85);font-size:.78rem;font-weight:750; }
.trust-section { color:#fff;background:linear-gradient(145deg,#0d0d38,#202070); }
.trust-section .section-intro h2 { color:#fff; }.trust-section .section-intro .eyebrow { color:var(--yellow-400); }
.trust-grid article { padding:26px;border-top:1px solid rgba(255,255,255,.22); }.trust-grid article > strong { color:var(--yellow-400);font-size:.7rem;letter-spacing:.14em; }.trust-grid h3 { margin-top:30px;color:#fff; }.trust-grid p { color:rgba(255,255,255,.62); }
.public-plan-card > div:first-child { display:flex;align-items:center;justify-content:space-between;gap:12px; }.plan-highlight { padding:6px 9px;border-radius:99px;color:var(--navy-950);background:var(--yellow-400);font-size:.56rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em; }
.public-plan-card ul { min-height:225px; }.pricing-note { margin:26px auto 0;color:var(--muted);font-size:.76rem;text-align:center; }
.faq-section { background:#fff; }.faq-list { max-width:960px;border-top:1px solid var(--line); }.faq-list details { border-bottom:1px solid var(--line); }.faq-list summary { position:relative;padding:24px 54px 24px 0;color:var(--navy-950);font-size:1.05rem;font-weight:820;cursor:pointer;list-style:none; }.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary::after { content:"+";position:absolute;right:8px;top:19px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#f0f1f7;font-size:1.25rem; }.faq-list details[open] summary::after { content:"−"; }.faq-list p { max-width:780px;margin:0;padding:0 50px 24px 0;color:var(--muted);line-height:1.7; }
.demo-assurance { display:block;margin-top:24px;padding-left:16px;border-left:3px solid var(--yellow-400);color:var(--navy-800);font-weight:750; }
.public-messages { max-width:1100px;margin:18px auto;padding:0 20px; }.onboarding-shell { min-height:calc(100vh - 76px);display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;padding:70px clamp(24px,10vw,170px);background:#f6f7fb; }.onboarding-copy h1,.status-page h1 { color:var(--navy-950);font-size:clamp(2.3rem,5vw,4.5rem);letter-spacing:-.05em; }.onboarding-copy p,.onboarding-copy li,.status-page p { color:var(--muted);line-height:1.7; }.onboarding-copy ol { display:grid;gap:14px;padding-left:20px; }.onboarding-form { grid-template-columns:1fr; }.onboarding-form .checkbox-field { display:grid;grid-template-columns:auto 1fr;justify-content:start; }.onboarding-form .checkbox-field input { grid-column:1; }.onboarding-form .checkbox-field label { grid-column:2;grid-row:1; }.status-page { min-height:65vh;display:grid;place-items:center;align-content:center;gap:18px;padding:60px 24px;text-align:center; }.status-page h1,.status-page p { max-width:760px;margin:0; }.status-icon { width:70px;height:70px;display:grid;place-items:center;border-radius:50%;color:var(--navy-950);background:var(--yellow-400);font-size:2rem;font-weight:900; }
.champion-card { display:grid;grid-template-columns:auto 105px minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px;margin-bottom:20px;background:linear-gradient(115deg,#fffbe4,#fff); }.champion-trophy { font-size:2.5rem; }.champion-photo { width:105px;height:90px;overflow:hidden;border-radius:14px;background:var(--navy-800); }.champion-photo img { width:100%;height:100%;object-fit:cover; }.champion-copy h2,.champion-copy p { margin:4px 0; }.champion-copy h2 { color:var(--navy-950); }.champion-copy p { color:var(--muted); }.champion-stats { display:flex;gap:24px;margin-top:12px; }.champion-stats span { color:var(--muted);font-size:.68rem; }.champion-stats strong { display:block;color:var(--navy-950);font-size:1rem; }.champion-actions { display:grid;gap:8px; }
.dashboard-hero.has-loft-logo { align-items:center; }.dashboard-loft-brand { min-width:150px;display:grid;justify-items:end;gap:4px;margin-left:auto; }.dashboard-loft-brand img { width:150px;height:70px;object-fit:contain;object-position:right center; }.dashboard-loft-brand small { color:var(--muted);font-size:.65rem; }
.seller-list { display:grid;gap:14px; }.seller-row { min-height:150px;display:grid;grid-template-columns:300px minmax(0,1fr) auto;gap:22px;align-items:stretch;overflow:hidden; }.seller-row-media { display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px;height:150px; }.seller-primary,.seller-detail-thumb { position:relative;overflow:hidden;background:#e9ebf3; }.seller-primary img,.seller-detail-thumb img { width:100%;height:100%;object-fit:cover;display:block; }.seller-primary span { height:100%;display:grid;place-items:center;color:#fff;background:var(--navy-800);font-size:2rem; }.seller-detail-thumb span { position:absolute;z-index:2;left:5px;bottom:5px;padding:3px 5px;border-radius:5px;color:#fff;background:rgba(16,16,65,.75);font-size:.55rem;font-weight:800; }.seller-row-copy { min-width:0;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 0; }.seller-row-copy h2 { max-width:680px;margin:8px 0 5px;overflow:hidden;color:var(--navy-950);font-size:1.08rem;text-overflow:ellipsis;white-space:nowrap; }.seller-row-copy p { margin:0;color:var(--muted); }.seller-card-meta { min-width:125px;display:grid;gap:7px;text-align:right; }.seller-card-meta span { color:var(--muted);font-size:.75rem; }.seller-row-arrow { align-self:center;padding-right:22px;color:var(--muted);font-size:1.7rem; }.cycle-actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line); }.hatchling-chip { display:inline-flex;align-items:center;min-height:38px;padding:0 11px;border-radius:9px;color:var(--navy-800);background:#eef0fa;font-size:.7rem;font-weight:750; }.hatchling-chip.complete { color:var(--success);background:#e9f8f2; }.medical-list { padding:0 22px; }.medical-list article { padding:18px 0;border-bottom:1px solid var(--line); }.medical-list strong,.medical-list small { display:block; }.medical-list small { margin-top:4px;color:var(--muted); }

.sales-media-strip { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px; }
.sales-media-strip button { position:relative;height:110px;overflow:hidden;padding:0;border:0;border-radius:12px;background:#e9ebf3;cursor:zoom-in; }
.sales-media-strip img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease; }
.sales-media-strip button:hover img { transform:scale(1.025); }
.sales-media-strip span { position:absolute;left:8px;bottom:8px;padding:4px 7px;border-radius:6px;color:#fff;background:rgba(16,16,65,.78);font-size:.65rem;font-weight:800; }

.attention-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start; }
.notification-panel { overflow:hidden; }
.notification-panel .panel-header { display:grid;grid-template-columns:42px minmax(0,1fr) auto;padding:20px 22px; }
.notification-panel .panel-header h2 { margin:0; }
.notification-panel-icon { width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-size:1.25rem;font-weight:800; }
.notification-panel-icon.health { color:#147052;background:#e1f5ed; }
.notification-panel-icon.breeding { color:#4e4ab6;background:#ededfb; }
.notification-count { min-width:30px;height:30px;display:grid;place-items:center;border-radius:999px;color:var(--navy-700);background:#f0f1f7;font-size:.72rem;font-weight:800; }
.notification-list { display:grid;gap:8px;padding:14px; }
.notification-row { min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr) 34px;gap:14px;align-items:center;padding:13px;border:1px solid transparent;border-radius:13px;transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.notification-row:hover { border-color:#dce1ee;background:#f8f9fc;transform:translateY(-1px); }
.notification-row + .notification-row { border-top-color:var(--line); }
.notification-date { width:48px;height:48px;display:grid;place-content:center;border-radius:11px;color:var(--navy-800);background:#eef2fb;text-align:center;line-height:1; }
.notification-date strong,.notification-date small { display:block; }
.notification-date strong { font-size:1.05rem; }
.notification-date small { margin-top:4px;color:var(--muted);font-size:.57rem;font-weight:800;text-transform:uppercase; }
.notification-copy { min-width:0;display:grid;gap:4px; }
.notification-copy strong { overflow:hidden;color:var(--navy-950);text-overflow:ellipsis;white-space:nowrap; }
.notification-copy small { color:var(--muted);font-size:.75rem; }
.notification-arrow { width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--navy-700);background:#f0f1f7;font-size:1.35rem;transition:transform .18s ease,background .18s ease; }
.notification-row:hover .notification-arrow { background:#e5e8f5;transform:translateX(2px); }
.notification-button { position:relative; }.notification-button > span { position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid #fff;border-radius:999px;color:#fff;background:#d04a5b;font-size:.56rem;font-weight:850; }
.preference-form { display:grid;gap:12px; }.preference-row { display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:16px;border:1px solid var(--line);border-radius:12px;cursor:pointer; }.preference-row input { margin-top:3px; }.preference-row strong,.preference-row small { display:block; }.preference-row small { margin-top:4px;color:var(--muted); }
.provenance-list { display:grid;gap:10px;margin-top:18px; }
.provenance-list article { display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;padding:14px;border-radius:12px;background:#f7f8fb; }
.provenance-list article > span { width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#147052;background:#e1f5ed;font-weight:850; }
.provenance-list strong,.provenance-list small { display:block; }.provenance-list small { margin-top:4px;color:var(--muted); }
.verification-card { width:min(820px,100%);margin:40px auto;padding:clamp(28px,6vw,70px);border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:var(--shadow);text-align:center; }
.verification-card h1 { margin:12px 0;color:var(--navy-950);font-size:clamp(2.2rem,5vw,4rem); }.verification-card > p { max-width:650px;margin:0 auto 30px;color:var(--muted);line-height:1.7; }
.verification-seal { width:82px;height:82px;display:grid;place-items:center;margin:0 auto 22px;border:6px double var(--yellow-400);border-radius:50%;color:#fff;background:var(--navy-800);font-size:2rem;font-weight:900; }.verification-seal.revoked { border-color:#d66;background:#842f3d; }
.verification-card dl { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;text-align:left; }.verification-card dl div { padding:16px;border-radius:12px;background:#f7f8fb; }.verification-card dt { color:var(--muted);font-size:.68rem; }.verification-card dd { margin:5px 0 0;color:var(--navy-950);font-weight:750;overflow-wrap:anywhere; }

@media (max-width: 900px) {
  .attention-columns { grid-template-columns:1fr; }
  .journey-grid,.collaboration-grid,.trust-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .journey-grid::before { display:none; }
  .feature-bento { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feature-bento .feature-primary { grid-column:1/-1;grid-row:auto;grid-template-columns:auto 1fr;gap:40px; }
  .certificate-section { grid-template-columns:1fr; }
  .document-preview { max-width:720px;width:100%;margin:auto; }
  .marketing-nav { grid-template-columns:1fr auto; }.marketing-nav nav { display:none; }.marketing-hero,.market-teaser,.demo-section,.onboarding-shell { grid-template-columns:1fr; }.marketing-hero { padding-top:55px; }.hero-product { max-width:720px; }.feature-grid { grid-template-columns:1fr 1fr; }.public-plan-grid { grid-template-columns:1fr; }.champion-card { grid-template-columns:auto 90px 1fr; }.champion-actions { grid-column:2/-1;grid-template-columns:1fr 1fr; }.seller-row { grid-template-columns:240px minmax(0,1fr); }.seller-row-media { grid-template-columns:2fr 1fr 1fr;height:145px; }.seller-row-copy { display:block;padding:14px 12px 14px 0; }.seller-card-meta { margin-top:12px;display:flex;justify-content:space-between;text-align:left; }.seller-row-arrow { display:none; }
}
@media (max-width: 640px) {
  .journey-section,.collaboration-section,.trust-section,.faq-section { padding:70px 20px; }
  .journey-grid,.feature-bento,.collaboration-grid,.trust-grid { grid-template-columns:1fr; }
  .feature-bento .feature-primary { grid-column:auto;grid-template-columns:1fr;gap:0; }
  .certificate-section { padding:75px 20px; }
  .document-preview { min-height:auto;padding:24px; }
  .document-sheet { padding:22px; }
  .document-seal { right:14px;bottom:14px;width:92px;height:92px; }
  .document-id { display:grid; }
  .document-profile { grid-template-columns:90px 1fr; }.document-profile > img { width:90px;height:100%; }
  .document-pedigree { padding-right:62px; }
  .trust-grid article { padding:24px 0; }
  .marketing-nav { padding:10px 16px; }.marketing-nav .button { min-height:38px;padding:0 10px;font-size:.72rem; }.marketing-brand strong { display:none; }.marketing-hero { min-height:auto;padding:60px 20px; }.hero-copy h1 { font-size:3.1rem; }.product-grid { min-height:300px;grid-template-columns:55px 1fr; }.product-main { padding:14px; }.feature-story,.pricing-section,.demo-section { padding:70px 20px; }.feature-grid { grid-template-columns:1fr; }.market-teaser { padding:70px 20px; }.market-bird { width:220px;margin:auto;font-size:5rem; }.demo-form { grid-template-columns:1fr; }.demo-form .form-field { grid-column:1; }.marketing-footer { grid-template-columns:1fr; }.onboarding-shell { padding:50px 20px; }.champion-card { grid-template-columns:70px 1fr; }.champion-trophy { display:none; }.champion-photo { width:70px;height:70px; }.champion-copy { min-width:0; }.champion-stats { gap:10px;flex-wrap:wrap; }.champion-actions { grid-column:1/-1; }.seller-row { grid-template-columns:145px minmax(0,1fr);gap:10px;min-height:120px; }.seller-row-media { grid-template-columns:2fr 1fr 1fr;height:120px; }.seller-row-copy { display:block;padding:12px 8px 12px 0; }.seller-row-copy h2 { white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }.seller-card-meta { margin-top:10px;display:flex;justify-content:space-between;text-align:left; }.seller-row-arrow { display:none; }.dashboard-loft-brand { order:3;width:100%;justify-items:start; }.dashboard-loft-brand img { width:120px;height:55px;object-position:left center; }
}

.public-body { background: #f6f7fb; }
.public-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.public-brand, .public-header nav { display: flex; align-items: center; gap: 18px; }
.public-brand { color: var(--navy-950); font-size: 1.2rem; font-weight: 850; }
.public-brand em { color: var(--blue-500); font-style: normal; }
.public-header nav > a:not(.button) { color: var(--muted); font-size: .82rem; font-weight: 700; }
.public-content { width: min(1360px, 100%); margin: auto; padding: 42px clamp(20px, 5vw, 72px) 72px; }
.public-hero { min-height: 300px; display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: clamp(30px, 6vw, 70px); margin-bottom: 30px; overflow: hidden; border-radius: 28px; color: white; background: radial-gradient(circle at 88% 5%, #4646ae, transparent 42%), linear-gradient(145deg, #101041, #202070); }
.public-hero .eyebrow { color: var(--yellow-300); }
.public-hero h1 { max-width: 720px; margin: 12px 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.public-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.public-hero-proof { min-width: 160px; padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.public-hero-proof strong, .public-hero-proof span { display: block; }
.public-hero-proof strong { color: var(--yellow-300); font-size: 2.2rem; }
.public-hero-proof span { color: rgba(255,255,255,.7); font-size: .72rem; }
.public-market-grid, .seller-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.market-filter { display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(100px,1fr)) auto;gap:12px;align-items:end;padding:16px;margin-bottom:24px; }.market-filter label { display:grid;gap:5px; }.market-filter label span { color:var(--muted);font-size:.65rem;font-weight:750; }.market-filter input,.market-filter select { width:100%;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff; }
.public-listing-card, .seller-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 4px 18px rgba(23,23,90,.04); transition: transform .18s ease, box-shadow .18s ease; }
.public-listing-card:hover, .seller-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.public-listing-image, .seller-card-image { position: relative; height: 250px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #3a3aa1, var(--navy-950)); font-size: 3rem; font-weight: 850; }
.public-listing-image img, .seller-card-image img { width: 100%; height: 100%; object-fit: cover; }
.public-listing-image strong { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; border-radius: 9px; color: var(--navy-950); background: var(--yellow-400); font-size: .83rem; }
.public-listing-copy, .seller-card > div:last-child { padding: 20px; }
.public-listing-copy h2, .seller-card h2 { margin: 5px 0 9px; color: var(--navy-950); font-size: 1.15rem; }
.public-listing-copy p, .public-listing-copy small, .seller-card p { color: var(--muted); }
.listing-facts, .seller-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .72rem; }
.public-empty { grid-column: 1 / -1; padding: 70px; text-align: center; }
.public-breadcrumb { display: flex; gap: 9px; margin-bottom: 20px; color: var(--muted); font-size: .8rem; }
.public-detail-hero { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; }
.public-gallery { min-width:0;padding:12px;background:#f0f2f7; }
.public-detail-image { min-height:440px;display:grid;place-items:center;overflow:hidden;border-radius:16px;color:white;background:var(--navy-800);font-size:4rem;font-weight:850; }
.gallery-trigger { position:relative;width:100%;height:100%;min-height:440px;padding:0;border:0;background:transparent;cursor:zoom-in; }
.public-detail-image img { width:100%;height:100%;object-fit:cover;display:block; }
.gallery-zoom { position:absolute;right:14px;bottom:14px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#fff;background:rgba(16,16,65,.78);font-size:1rem; }
.media-lightbox { width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:rgba(8,8,30,.92); }
.media-lightbox::backdrop { background:rgba(8,8,30,.92); }
.media-lightbox-shell { position:relative;width:100%;height:100%;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;padding:28px; }
.media-lightbox figure { min-width:0;max-width:calc(100vw - 190px);max-height:calc(100vh - 56px);display:grid;gap:12px;justify-items:center;margin:0; }
.media-lightbox figure img { max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:12px;box-shadow:0 22px 70px rgba(0,0,0,.45); }
.media-lightbox figcaption { min-height:20px;color:#fff;font-size:.82rem;font-weight:750; }
.media-lightbox button { border:0;color:#fff;background:rgba(255,255,255,.12);cursor:pointer; }
.media-lightbox-close { position:absolute;right:24px;top:20px;z-index:2;width:46px;height:46px;border-radius:50%;font-size:1.8rem; }
.media-lightbox-nav { width:48px;height:48px;border-radius:50%;font-size:2rem; }
.media-lightbox button:hover { background:rgba(255,255,255,.22); }
.public-detail-copy { padding: clamp(28px, 5vw, 60px); }
.public-seller { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.public-seller img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; }
.public-seller small, .public-seller strong { display: block; }
.public-seller small, .public-ring { color: var(--muted); }
.public-detail-copy h1 { margin: 12px 0 5px; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.public-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.public-facts span { padding: 14px; border-radius: 12px; background: #f7f8fb; }
.public-facts small, .public-facts strong { display: block; }
.public-facts small { color: var(--muted); font-size: .65rem; }
.public-facts strong { margin-top: 4px; }
.public-price { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.public-price small, .public-price strong { display: block; }
.public-price small { color: var(--muted); }
.public-price strong { margin-top: 4px; color: var(--navy-950); font-size: 1.6rem; }
.public-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); gap: 24px; align-items: start; margin-top: 24px; }
.public-detail-grid main { display: grid; gap: 20px; }
.public-section, .public-offer-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.public-section h2, .public-offer-card h2 { color: var(--navy-950); }
.public-section p { color: var(--muted); line-height: 1.7; }
.public-results > div, .public-parent-grid { display: grid; gap: 8px; }
.public-results > div { grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
.public-results span, .public-parent-grid span, .public-parent-grid small { color: var(--muted); }
.public-parent-grid { grid-template-columns: 1fr 1fr; }
.public-parent-grid > div { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: #f7f8fb; }
.public-offer-form { display: grid; gap: 12px; }
.public-offer-card { position: sticky; top: 20px; }
.public-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px clamp(20px, 5vw, 72px); color: rgba(255,255,255,.7); background: var(--navy-950); }
.public-footer div { display: grid; gap: 5px; font-size: .72rem; }
.public-footer strong { color: white; }

@media (max-width: 1120px) {
  .media-camera-button:not([hidden]) { display:inline-flex; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
  .pigeon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid, .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-market-grid, .seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-detail-grid { grid-template-columns: 1fr; }
  .public-offer-card { position: static; }
  .results-content-grid { grid-template-columns:1fr; }
  .market-filter { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  body.menu-open { overflow: hidden; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 310px); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 16px 0 40px rgba(0,0,0,.25); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 20; background: rgba(13,13,48,.46); }
  .topbar { position: sticky; top: 0; z-index: 15; height: 62px; justify-content: space-between; padding: 0 18px; }
  .menu-button { width: 40px; height: 40px; display: grid; align-content: center; gap: 5px; padding: 9px; border: 0; border-radius: 9px; background: transparent; }
  .menu-button > span:not(.sr-only) { display: block; height: 2px; border-radius: 2px; background: var(--navy-800); }
  .mobile-brand { display: block; color: var(--navy-950); font-weight: 850; }
  .content { padding: 27px 18px 54px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: auto; gap: 46px; padding: 36px 28px; }
  .login-copy h1 { font-size: 2.5rem; }
  .login-panel { padding: 46px 24px; }
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-nav strong { grid-column: 1 / -1; }
  .form-section { grid-template-columns: 1fr; gap: 20px; }
  .two-column { grid-template-columns: 1fr; }
  .public-header { align-items: flex-start; flex-direction: column; }
  .public-header nav { width: 100%; flex-wrap: wrap; }
  .public-hero { align-items: flex-start; flex-direction: column; }
  .public-detail-hero { grid-template-columns: 1fr; }
  .public-detail-image { min-height: 340px; }
  .settings-grid { grid-template-columns:1fr; }
  .language-preference-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-header { align-items: stretch; flex-direction: column; }
  .page-header .button, .page-header > button { width: 100%; }
  .header-actions { width: 100%; }
  .metric-grid, .pigeon-grid, .cycle-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 17px; }
  .toolbar, .filter-form { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; max-width: none; min-width: 0; }
  .result-count { align-self: flex-end; }
  .profile-header { grid-template-columns: 76px minmax(0, 1fr); padding: 18px; }
  .profile-image { width: 76px; height: 76px; border-radius: 14px; font-size: 1.7rem; }
  .profile-intro h1 { font-size: 1.55rem; }
  .profile-actions { grid-column: 1 / -1; }
  .profile-actions .button { flex: 1; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pedigree { grid-template-columns: 1fr; gap: 12px; }
  .panel-header { align-items: flex-start; }
  .panel-header .button { display: none; }
  .breeding-intro { align-items: stretch; flex-direction: column; }
  .formula span { flex: 1; }
  .pairing { gap: 8px; }
  .help-hero { padding: 28px 20px; }
  .help-search { align-items: stretch; flex-wrap: wrap; }
  .help-search input { min-height: 42px; flex-basis: calc(100% - 36px); }
  .help-search .button { width: 100%; }
  .help-nav { grid-template-columns: 1fr; }
  .article-detail footer { gap: 12px; flex-direction: column; }
  .login-proof { display: grid; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .form-section { padding: 22px 18px; }
  .form-actions { position: sticky; bottom: 0; z-index: 5; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .form-actions .button { flex: 1; }
  .simple-form, .plan-grid, .market-grid { grid-template-columns: 1fr; }
  .simple-form > * { grid-column: auto; }
  .marketplace-hero { align-items: stretch; flex-direction: column; padding: 26px 20px; }
  .listing-header { grid-template-columns: 72px 1fr; }
  .listing-mark { width: 72px; height: 72px; }
  .listing-price { grid-column: 1 / -1; text-align: left; }
  .public-market-grid, .seller-grid { grid-template-columns: 1fr; }
  .market-filter { grid-template-columns:1fr; }
  .public-content { padding-inline: 14px; }
  .public-hero { padding: 28px 22px; border-radius: 20px; }
  .public-header nav > a:not(.button) { display: none; }
  .public-facts, .public-parent-grid { grid-template-columns: 1fr; }
  .public-price, .public-footer { align-items: stretch; flex-direction: column; }
  .notification-row { grid-template-columns:44px minmax(0,1fr) 30px;gap:10px;padding:10px; }
  .notification-date { width:44px;height:44px; }
  .notification-copy small { font-size:.68rem; }
  .gallery-trigger { min-height:340px; }
  .media-lightbox-shell { grid-template-columns:42px minmax(0,1fr) 42px;padding:16px 8px; }
  .media-lightbox figure { max-width:calc(100vw - 100px); }
  .media-lightbox figure img { max-height:calc(100vh - 90px);border-radius:8px; }
  .media-lightbox-nav { width:38px;height:38px;font-size:1.6rem; }
  .media-lightbox-close { right:12px;top:12px;width:40px;height:40px; }
  .verification-card dl { grid-template-columns:1fr; }
  .mock-dashboard-grid { grid-template-columns:1fr; }
  .mock-dashboard-grid section:last-child { display:none; }
  .results-summary { grid-template-columns:1fr; }
  .results-summary-card { min-height:92px;padding:16px; }
  .result-history-row { grid-template-columns:42px minmax(0,1fr) 30px;gap:10px;padding:12px 4px; }
  .result-file-icon { width:40px;height:40px; }
  .result-history-row .status { grid-column:2;justify-self:start; }
  .result-row-arrow { grid-column:3;grid-row:1 / span 2; }
  .ranking-row { grid-template-columns:48px minmax(0,1fr) auto;gap:9px;padding:13px 4px; }
  .ranking-position { width:44px; }.ranking-race { grid-column:2 / -1; }.ranking-score { grid-column:3;grid-row:1;text-align:right; }
}

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

/* Legal, marketplace commerce and pedigree polish */
.pairing-parent { min-width:0;display:grid;justify-items:start;gap:8px;text-align:left; }
.pairing-parent-female { justify-items:end;text-align:right; }
.pairing-parent > span:not(.pairing-parent-photo) { min-width:0;display:grid;gap:2px; }
.pairing-parent-photo { width:58px;height:58px;flex:0 0 58px;object-fit:cover;border:2px solid #fff;border-radius:50%;box-shadow:0 3px 12px rgba(18,18,75,.13); }
.pairing-parent-photo.fallback { display:grid;place-items:center;color:#fff;background:var(--navy-800);font-weight:850; }
.listing-mark img { width:100%;height:100%;object-fit:cover;border-radius:inherit; }
.sale-completion { display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0;padding:24px; }
.sale-completion h2 { margin:5px 0;color:var(--navy-950); }
.sale-completion p { margin:0;color:var(--muted); }
.sale-completion form { display:flex;align-items:end;gap:10px; }
.sale-completion form label { display:block;color:var(--muted);font-size:.7rem;font-weight:750; }
.sale-completion form input { width:170px; }
.sale-completion.sold { border-color:#bce8d8;background:#f2fbf7; }
.commission-consent { display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;align-items:center;padding:20px;border:1px solid #daddf0;border-radius:15px;background:#f8f8fd; }
.commission-rate { display:grid;padding:16px;border-radius:12px;color:#fff;background:var(--navy-800); }
.commission-rate strong { color:var(--yellow-300);font-size:1.8rem; }
.commission-rate span { font-size:.65rem; }
.commission-consent label { display:flex;gap:11px;align-items:flex-start;line-height:1.55; }
.commission-consent input { width:19px;height:19px;flex:0 0 19px;margin-top:2px; }
.sold-ribbon { position:absolute;top:15px;right:15px;padding:8px 13px;border-radius:999px;color:#fff;background:var(--navy-950);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em; }
.public-listing-card.is-sold { opacity:.82; }
.public-listing-card.is-sold .public-listing-image img { filter:saturate(.7); }
.sold-callout { padding:10px 14px;border-radius:10px;color:#146947;background:#e4f6ee;font-weight:800; }
.sold-panel { border-color:#bce8d8;background:#f2fbf7; }
.legal-hero { padding:80px clamp(20px,8vw,130px) 50px;color:#fff;background:linear-gradient(135deg,var(--navy-950),var(--navy-700)); }
.legal-hero h1 { max-width:900px;margin:12px 0;font-size:clamp(2.7rem,6vw,5rem);letter-spacing:-.05em; }
.legal-hero p { max-width:780px;color:rgba(255,255,255,.75);font-size:1.05rem;line-height:1.7; }
.legal-hero small { color:rgba(255,255,255,.6); }
.legal-layout { width:min(1180px,calc(100% - 40px));display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start;margin:38px auto 80px; }
.legal-navigation { position:sticky;top:20px;display:grid;gap:12px;padding:22px; }
.legal-navigation a { color:var(--navy-700);font-weight:750; }
.legal-document { padding:clamp(24px,5vw,58px); }
.legal-document section { padding:22px 0;border-bottom:1px solid var(--line); }
.legal-document h2 { margin:0 0 12px;color:var(--navy-950);font-size:1.25rem; }
.legal-document p { color:#565f78;line-height:1.75; }
.legal-document footer { display:flex;gap:12px;margin-top:28px; }
.legal-review { padding:16px;border-left:4px solid #da9a25;border-radius:8px;background:#fff7e7;color:#6f511a;font-size:.8rem;line-height:1.5; }
.cookie-notice { position:fixed;right:22px;bottom:22px;z-index:100;width:min(570px,calc(100% - 44px));display:flex;align-items:center;gap:20px;padding:18px 20px;border:1px solid #d9dceb;border-radius:16px;background:#fff;box-shadow:0 18px 60px rgba(14,14,55,.22); }
.cookie-notice[hidden] { display:none; }
.cookie-notice p { margin:5px 0 0;color:var(--muted);font-size:.72rem;line-height:1.5; }
.cookie-notice .button { flex:0 0 auto; }
.public-footer a { color:#fff; }

@media (max-width: 760px) {
  .pairing-parent { justify-items:start; }
  .pairing-parent-female { justify-items:end; }
  .pairing-parent-photo { width:50px;height:50px;flex-basis:50px; }
  .sale-completion,.sale-completion form { align-items:stretch;flex-direction:column; }
  .sale-completion form input { width:100%; }
  .commission-consent { grid-template-columns:1fr; }
  .legal-layout { grid-template-columns:1fr; }
  .legal-navigation { position:static; }
  .cookie-notice { right:12px;bottom:12px;width:calc(100% - 24px);align-items:stretch;flex-direction:column; }
}
