:root{
  --ink:#112019;
  --ink-soft:#21362c;
  --slate:#4b5c54;
  --muted:#64756d;
  --forest:#2b6a4d;
  --forest-deep:#1f4f3a;
  --leaf:#78a563;
  --gold:#d4a548;
  --sand:#ead9be;
  --paper:#fffdfa;
  --mist:#f4f1ea;
  --line:rgba(17,32,25,.1);
  --line-strong:rgba(17,32,25,.16);
  --white:#ffffff;
  --shadow-lg:0 32px 80px rgba(17,32,25,.12);
  --shadow-md:0 20px 48px rgba(17,32,25,.1);
  --shadow-sm:0 10px 24px rgba(17,32,25,.08);
  --radius-2xl:30px;
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;
  --touch-min:44px;
  --panel-pad:24px;
  --panel-pad-compact:18px;
  --surface-radius:28px;
  --font-body:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  --font-display:"Avenir Next","Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-brand:"Arial Narrow","Avenir Next Condensed","DIN Alternate","PingFang SC",sans-serif;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  line-height:1.7;
  background:
    radial-gradient(circle at top left,rgba(120,165,99,.18),transparent 32%),
    radial-gradient(circle at 90% 8%,rgba(212,165,72,.2),transparent 22%),
    linear-gradient(180deg,#f2eee6 0%,#fbfaf6 24%,#f8faf8 68%,#f2f4ef 100%);
}

body.public-shell{
  position:relative;
}

body.dashboard{
  background:
    radial-gradient(circle at top left,rgba(120,165,99,.14),transparent 30%),
    linear-gradient(180deg,#eef3ee 0%,#f7f7f3 100%);
  overflow-x:hidden;
}

main,
.section,
.dash-section{
  min-width:0;
}

.section,
.dash-section{
  min-width:0;
}

img{max-width:100%;display:block}
a{color:inherit}

.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(16px,4vw,28px)}

.skip-link{
  position:absolute;
  left:24px;
  top:-48px;
  background:var(--ink);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  z-index:100;
}

.skip-link:focus{top:16px}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--forest);
}

.lead{font-size:18px;color:var(--slate)}
.muted{color:var(--muted)}
.link{color:var(--forest);font-weight:700;text-decoration:none}
.link:hover{color:var(--forest-deep)}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:28px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(212,165,72,.18);
  color:var(--ink);
  font-size:12px;
  font-weight:700;
}

.tag{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(120,165,99,.12);
  color:var(--forest-deep);
  font-size:12px;
  font-weight:700;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:var(--touch-min);
  padding:11px 18px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--forest) 0%,#367e5b 100%);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 16px 32px rgba(43,106,77,.24);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 36px rgba(43,106,77,.28);
}

.btn-ghost{
  background:rgba(255,255,255,.8);
  color:var(--forest-deep);
  border:1px solid rgba(43,106,77,.18);
  box-shadow:none;
}

.btn-dark{
  background:linear-gradient(135deg,#102218 0%,#1c3528 100%);
}

.btn.small{
  min-height:36px;
  padding:6px 12px;
  font-size:12px;
  box-shadow:none;
}

.top-banner{
  position:relative;
  z-index:25;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(90deg,#102218 0%,#183326 60%,#214534 100%);
  color:#ecf2ed;
  font-size:13px;
}

.top-banner .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  min-height:52px;
  padding-top:10px;
  padding-bottom:10px;
  flex-wrap:wrap;
}

.top-banner-copy,
.role-switch{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.role-switch{
  justify-content:flex-end;
  position:relative;
  z-index:1;
}

.role-switch-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:var(--touch-min);
  padding:6px 6px 6px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.role-switch-label{
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
}

.role-switch-link .badge{
  min-height:32px;
  padding:5px 11px;
  background:rgba(255,255,255,.12);
  color:#fff;
  white-space:nowrap;
}

.role-switch-link:hover,
.role-switch-link:focus-visible{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
  transform:translateY(-1px);
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(18px);
  background:rgba(255,253,250,.84);
  border-bottom:1px solid rgba(17,32,25,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:82px;
  flex-wrap:wrap;
}

.header-brand{
  display:grid;
  gap:4px;
}

.header-brand p{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

.logo{
  font-family:var(--font-brand);
  font-size:30px;
  line-height:1;
  letter-spacing:1px;
  color:var(--ink);
  text-decoration:none;
}

.logo span{color:var(--forest)}

nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

nav a{
  position:relative;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  color:var(--ink-soft);
  font-size:14px;
  font-weight:600;
  transition:background .18s ease,color .18s ease;
}

nav a:hover{
  background:rgba(43,106,77,.08);
  color:var(--forest-deep);
}

.header-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero{
  position:relative;
  padding:92px 0 54px;
}

.hero-alt{
  padding-top:74px;
  padding-bottom:20px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:28px;
  align-items:start;
}

.hero-tight{
  align-items:center;
}

.hero-copy,
.hero-board{
  min-width:0;
}

.hero-title{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  letter-spacing:-1px;
}

.hero-copy .lead{
  margin-top:18px;
  max-width:760px;
}

.hero-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0 0;
}

.hero-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(17,32,25,.08);
  color:var(--ink-soft);
  font-size:13px;
  font-weight:600;
  box-shadow:var(--shadow-sm);
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:26px 0 0;
}

.hero-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}

.hero-kpi{
  padding:18px;
  border:1px solid rgba(17,32,25,.08);
  border-radius:22px;
  background:rgba(255,255,255,.74);
  backdrop-filter:blur(8px);
  box-shadow:var(--shadow-sm);
}

.hero-kpi strong{
  display:block;
  margin-bottom:6px;
  font-size:24px;
  line-height:1;
  color:var(--forest-deep);
}

.hero-kpi span{
  display:block;
  color:var(--muted);
  font-size:13px;
}

.hero-board{
  display:grid;
  gap:16px;
}

.hero-text{
  display:grid;
  gap:18px;
  align-content:start;
}

.hero-tile{
  display:grid;
  gap:14px;
  align-content:start;
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));
  gap:14px;
  margin-top:4px;
}

.hero-metrics > div{
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(17,32,25,.08);
  background:rgba(255,255,255,.76);
  box-shadow:var(--shadow-sm);
}

.hero-metrics strong{
  display:block;
  margin-bottom:6px;
  font-family:var(--font-display);
  font-size:24px;
  line-height:1;
  color:var(--forest-deep);
}

.hero-signal-card,
.hero-proof,
.hero-stage-card,
.timeline-card,
.quote-card,
.store-card,
.persona-card,
.panel,
.entry-card,
.dash-card,
.ad-card,
.tile{
  border:1px solid rgba(17,32,25,.08);
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-md);
}

.hero-signal-card,
.hero-proof{
  padding:22px;
  border-radius:26px;
}

.tile{
  display:grid;
  gap:8px;
  padding:22px;
  border-radius:24px;
}

.tile h4{
  margin:0;
  font-size:22px;
  line-height:1.1;
}

.tile p{
  margin:0;
  color:var(--ink-soft);
  font-size:18px;
  line-height:1.45;
}

.tile span{
  color:var(--muted);
  font-size:14px;
}

.signal-label{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:5px 10px;
  margin-bottom:12px;
  border-radius:999px;
  background:rgba(212,165,72,.18);
  color:#6b4b14;
  font-size:12px;
  font-weight:700;
}

.hero-signal-card strong{
  display:block;
  margin-bottom:10px;
  font-size:24px;
  line-height:1.28;
  font-family:var(--font-display);
}

.hero-signal-card p,
.hero-proof p{
  margin:0;
  color:var(--slate);
}

.hero-stage-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.hero-stage-card{
  padding:18px;
  border-radius:22px;
}

.hero-stage-card span,
.trust-card span,
.timeline-card span,
.persona-label{
  display:block;
  margin-bottom:8px;
  color:var(--forest);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-stage-card strong{
  display:block;
  margin-bottom:8px;
  font-size:17px;
  line-height:1.35;
}

.hero-stage-card p{margin:0;color:var(--muted);font-size:14px}

.section{padding:78px 0}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:28px;
  flex-wrap:wrap;
}

.section-header h2{
  margin:0;
  font-size:clamp(28px,3.4vw,40px);
  line-height:1.08;
  font-family:var(--font-display);
}

.section-header p{
  margin:0;
  max-width:620px;
  color:var(--muted);
}

.grid{display:grid;gap:20px}
.cards{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}

.card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
  text-decoration:none;
  color:inherit;
}

.card-img{
  position:relative;
  height:210px;
  overflow:hidden;
  background:#edf2ed;
  isolation:isolate;
}

.card-media,
.detail-media-image,
.cart-thumb-image,
.editorial-media{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#edf2ed;
}

.card-body{
  display:grid;
  gap:8px;
  padding:20px;
}

.card-body h3{
  margin:0;
  font-size:20px;
  line-height:1.32;
}

.card-body p{
  margin:0;
  color:var(--slate);
}

.price{
  color:var(--forest-deep);
  font-size:22px;
  font-weight:800;
  letter-spacing:-.02em;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.tags span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(234,217,190,.4);
}

.rating{
  font-size:12px;
  color:#d69516;
}

.meta{
  color:var(--muted);
  font-size:13px;
}

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

.persona-card{
  padding:24px;
  border-radius:24px;
}

.persona-card h3{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.2;
}

.persona-card p{
  margin:0 0 16px;
  color:var(--slate);
}

.editorial-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.editorial-card{
  position:relative;
  min-height:320px;
  border-radius:28px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  text-decoration:none;
  color:#fff;
  box-shadow:var(--shadow-lg);
}

.editorial-media{
  position:absolute;
  inset:0;
}

.editorial-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(10,17,13,.08),rgba(10,17,13,.78));
}

.editorial-card .overlay{
  position:relative;
  z-index:1;
  width:100%;
  padding:22px;
}

.editorial-card h3{
  margin:8px 0 10px;
  font-size:24px;
  line-height:1.2;
}

.editorial-card p{
  margin:0;
  color:rgba(255,255,255,.86);
}

.highlight{
  padding:34px;
  border-radius:34px;
  background:linear-gradient(135deg,#102218 0%,#173226 100%);
  color:#fff;
}

.highlight .section-header h2,
.highlight .section-header p{
  color:#fff;
}

.steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.step-card{
  min-height:220px;
  padding:24px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.step-card span{
  display:block;
  color:var(--gold);
  font-size:28px;
  font-weight:800;
  line-height:1;
}

.step-card h4{
  margin:14px 0 10px;
  font-size:20px;
}

.step-card p{
  margin:0;
  color:rgba(255,255,255,.78);
}

.quote-board{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.quote-card{
  padding:20px;
  border-radius:22px;
}

.quote-card h3{
  margin:12px 0 8px;
  font-size:20px;
}

.quote-card p{
  margin:0;
}

.quote-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 10px;
  color:var(--muted);
  font-size:13px;
}

.store-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

.store-card{
  display:grid;
  gap:10px;
  padding:24px;
  border-radius:24px;
}

.store-card h3{
  margin:0;
  font-size:24px;
}

.store-card p{
  margin:0;
  color:var(--slate);
}

.timeline-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.timeline-card{
  padding:22px;
  border-radius:24px;
}

.timeline-card h3{
  margin:0 0 8px;
  font-size:22px;
}

.timeline-card p{
  margin:0;
  color:var(--slate);
}

.cta-strip{
  margin-top:36px;
  padding:54px 0;
  background:linear-gradient(135deg,#254f3b 0%,#183126 100%);
  color:#fff;
}

.cta-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.cta-grid h2{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.1;
  font-family:var(--font-display);
}

.cta-grid p{margin:0;color:rgba(255,255,255,.82)}

.market-hero{
  border-bottom:1px solid rgba(17,32,25,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.46));
}

.market-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:168px;
  flex-wrap:wrap;
}

.market-bar h2{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.08;
  font-family:var(--font-display);
}

.market-tags{margin-top:14px}

.search-box{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.search-box input{
  min-width:280px;
  min-height:48px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(17,32,25,.12);
  background:rgba(255,255,255,.9);
  font:inherit;
}

.market-grid{
  display:grid;
  grid-template-columns:minmax(240px,280px) minmax(0,1fr);
  align-items:start;
}

.filter-panel{
  display:grid;
  gap:14px;
  padding:22px;
  border:1px solid rgba(17,32,25,.08);
  border-radius:24px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-md);
  position:sticky;
  top:108px;
}

.filter-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:fit-content;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(17,32,25,.12);
  background:#fff;
  color:var(--ink-soft);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}

.pill.active{
  background:var(--forest);
  border-color:var(--forest);
  color:#fff;
}

.filter-panel .pill{width:100%}

.filter-block{
  display:grid;
  gap:8px;
  padding-top:12px;
  border-top:1px dashed rgba(17,32,25,.12);
  font-size:13px;
  color:var(--slate);
}

.filter-block:first-of-type{
  padding-top:0;
  border-top:none;
}

.filter-block h5{
  margin:0;
  font-size:14px;
  color:var(--ink-soft);
}

.filter-block label{
  display:flex;
  gap:8px;
  align-items:center;
}

.deal-strip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 18px;
  margin-bottom:18px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(234,217,190,.66),rgba(255,255,255,.9));
  border:1px solid rgba(17,32,25,.08);
  flex-wrap:wrap;
}

.ad-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-bottom:22px;
}

.ad-card{
  display:grid;
  gap:6px;
  padding:18px;
  border-radius:18px;
}

.ad-card h4{margin:0;font-size:18px}
.ad-card p{margin:0;color:var(--slate)}
.ad-card span{color:var(--muted);font-size:13px}

.wholesale-hero{
  background:linear-gradient(135deg,rgba(234,217,190,.72),rgba(255,255,255,.86));
}

.wholesale-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.wholesale-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}

.detail-grid{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:28px;
  align-items:start;
}

.detail-media-stack{
  display:grid;
  gap:18px;
}

.detail-media{
  position:relative;
  min-height:440px;
  border-radius:32px;
  overflow:hidden;
  background:#e6ece6;
  box-shadow:var(--shadow-lg);
}

.detail-info h2{
  margin:0;
  font-size:clamp(32px,4vw,46px);
  line-height:1.08;
  font-family:var(--font-display);
}

.detail-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:24px 0 18px;
}

.detail-meta div{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(17,32,25,.08);
  box-shadow:var(--shadow-sm);
}

.detail-meta span{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.detail-meta strong{
  font-size:18px;
  color:var(--ink-soft);
}

.store-box{
  margin-top:22px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(234,217,190,.44),rgba(255,255,255,.92));
  border:1px solid rgba(17,32,25,.08);
}

.store-box h4{
  margin:0 0 6px;
  font-size:18px;
}

.store-box p,
.store-box span{margin:0;color:var(--slate)}

.trust-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.trust-card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(17,32,25,.08);
}

.trust-card strong{
  display:block;
  margin-bottom:8px;
  font-size:17px;
}

.trust-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.entry-cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

.entry-card{
  display:grid;
  gap:10px;
  padding:22px;
  border-radius:22px;
}

.entry-card h3,
.entry-card h4{
  margin:0;
}

.entry-card p{
  margin:0;
  color:var(--slate);
}

.video-placeholder{
  display:flex;
  align-items:flex-end;
  min-height:250px;
  padding:32px;
  border-radius:30px;
  color:#fff;
  background:
    linear-gradient(135deg,rgba(9,18,13,.78),rgba(28,68,52,.8)),
    url('/static/img/products/ecom.svg') center/cover no-repeat;
  box-shadow:var(--shadow-lg);
}

.video-placeholder h3{
  margin:0 0 8px;
  font-size:28px;
}

.video-placeholder p{margin:0;color:rgba(255,255,255,.84)}

.map-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  border:1px dashed rgba(17,32,25,.16);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(234,217,190,.22),rgba(255,255,255,.88));
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.contact-grid{align-items:stretch}
.contact-card{height:100%}

.step-list{
  list-style:none;
  display:grid;
  gap:12px;
  padding:0;
  margin:0;
}

.step-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:var(--slate);
}

.step-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:50%;
  background:var(--forest);
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.form{
  display:grid;
  gap:16px;
}

.form label{
  display:grid;
  gap:8px;
  font-weight:600;
  color:var(--ink-soft);
}

.form input,
.form textarea,
.form select{
  min-height:48px;
  padding:11px 14px;
  border:1px solid rgba(17,32,25,.12);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  font:inherit;
  color:var(--ink);
}

.form input[type="file"]{
  padding-top:10px;
}

.hint{font-size:12px;color:var(--muted)}

.panel{
  padding:var(--panel-pad);
  border-radius:var(--surface-radius);
  overflow:hidden;
}

.panel h3{
  margin:0 0 16px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(17,32,25,.08);
  font-size:22px;
  line-height:1.2;
}

.panel-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid rgba(17,32,25,.08);
  flex-wrap:wrap;
}

.panel-row:last-child{border-bottom:none}

.panel-row > div{flex:1;min-width:0}

.panel-row strong{
  display:block;
  line-height:1.3;
}

.panel-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  min-height:30px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(234,217,190,.66);
  color:var(--ink-soft);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin-bottom:16px;
}

.kpi-card{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(17,32,25,.08);
}

.kpi-card .label{font-size:12px;color:var(--muted)}
.kpi-card .value{margin-top:4px;font-size:24px;font-weight:800}

.chart{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.76);
  border:1px dashed rgba(17,32,25,.16);
}

.chart-title{font-weight:700;margin-bottom:10px}

.chart-row{
  display:grid;
  grid-template-columns:minmax(72px,94px) minmax(0,1fr) 44px;
  align-items:center;
  gap:12px;
  margin:10px 0;
}

.chart-row span:last-child{
  text-align:right;
  font-weight:700;
}

.bar-track{
  flex:1;
  height:10px;
  border-radius:999px;
  background:#e7ece7;
  overflow:hidden;
}

.bar{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--forest),#4d8d62);
}

.chart-note{font-size:12px;color:var(--muted)}

.data-board{
  display:grid;
  gap:20px;
}

.data-hero{
  display:grid;
  gap:18px;
}

.data-copy{
  display:grid;
  gap:10px;
}

.data-copy h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(30px,3.8vw,42px);
  line-height:1.08;
}

.data-kpis{
  margin-bottom:0;
}

.data-viz-grid{
  align-items:stretch;
}

.viz-card{
  display:grid;
  gap:18px;
  align-content:start;
  min-width:0;
}

.viz-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.viz-meta h3{
  margin:6px 0 0;
  padding:0;
  border-bottom:none;
}

.line-chart{
  display:grid;
  gap:10px;
  min-width:0;
}

.line-chart svg{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.88),rgba(245,248,244,.82)),
    repeating-linear-gradient(
      to top,
      rgba(17,32,25,.04) 0,
      rgba(17,32,25,.04) 1px,
      transparent 1px,
      transparent 36px
    );
  padding:10px;
}

.trend-line{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:4;
}

.admin-line{stroke:#365f87}
.merchant-line{stroke:#8d6328}
.alt-line{
  stroke:rgba(212,165,72,.9);
  stroke-width:3;
  stroke-dasharray:10 9;
}

.axis-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  font-size:11px;
  color:var(--muted);
  text-align:center;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.trend-legend{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--slate);
}

.legend-dot{
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:6px;
  border-radius:50%;
  vertical-align:middle;
}

.admin-tone{background:#365f87}
.merchant-tone{background:#8d6328}
.sand-tone{background:#d4a548}

.donut-grid{
  display:grid;
  grid-template-columns:minmax(160px,200px) minmax(0,1fr);
  gap:18px;
  align-items:center;
  min-width:0;
}

.donut-card{
  display:grid;
  gap:10px;
  justify-items:center;
  text-align:center;
}

.donut-card strong{
  font-size:18px;
}

.donut-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.donut-meter{
  --value:72;
  --ring:#365f87;
  width:148px;
  height:148px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at center,#fff 0 56%,transparent 57%),
    conic-gradient(var(--ring) calc(var(--value) * 1%), rgba(17,32,25,.09) 0);
  box-shadow:inset 0 0 0 14px rgba(255,255,255,.72);
}

.donut-meter span{
  font-family:var(--font-display);
  font-size:28px;
  font-weight:800;
  color:var(--ink-soft);
}

.donut-meter.admin-tone{--ring:#365f87}
.donut-meter.merchant-tone{--ring:#8d6328}

.stack-metrics{
  display:grid;
  gap:12px;
  min-width:0;
}

.stack-row{
  display:grid;
  grid-template-columns:minmax(78px,102px) minmax(0,1fr) 48px;
  gap:12px;
  align-items:center;
}

.stack-row strong{
  text-align:right;
  font-size:14px;
}

.funnel-list,
.heat-list{
  display:grid;
  gap:12px;
  min-width:0;
}

.funnel-step,
.heat-row{
  display:grid;
  grid-template-columns:minmax(86px,108px) minmax(0,1fr) 44px;
  gap:12px;
  align-items:center;
}

.funnel-step strong,
.heat-row strong{
  text-align:right;
  font-size:14px;
}

.funnel-track,
.heat-bar{
  position:relative;
  height:12px;
  border-radius:999px;
  background:#e7ece7;
  overflow:hidden;
}

.funnel-fill,
.heat-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#365f87,#5a88b5);
}

.merchant-fill,
.heat-bar i.merchant-fill{
  background:linear-gradient(90deg,#8d6328,#b5833e);
}

.order-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:12px;
}

.order-summary div{
  padding:14px;
  border-radius:16px;
  background:rgba(234,217,190,.42);
}

.site-footer{
  margin-top:72px;
  padding:60px 0 24px;
  background:linear-gradient(180deg,#0c1711 0%,#14251c 100%);
  color:#fff;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr repeat(3,minmax(0,1fr));
  gap:28px;
}

.footer-brand p{color:rgba(255,255,255,.74)}

.footer-grid h4,
.footer-grid h5{
  margin:0 0 12px;
}

.footer-grid ul{
  list-style:none;
  display:grid;
  gap:8px;
  padding:0;
  margin:0;
  color:rgba(255,255,255,.74);
}

.footer-grid a{
  color:rgba(255,255,255,.8);
  text-decoration:none;
}

.footer-grid a:hover{color:#fff}

.footer-bottom{
  margin-top:32px;
  text-align:center;
  color:rgba(255,255,255,.54);
  font-size:12px;
}

.dashboard .top-banner{
  background:linear-gradient(90deg,#101a14 0%,#18261e 100%);
}

.dash-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  min-height:100vh;
  align-items:start;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:20px;
  color:#fff;
  overflow:auto;
  min-width:0;
}

.buyer .sidebar{
  background:linear-gradient(180deg,#123227 0%,#193f31 100%);
}

.merchant .sidebar{
  background:linear-gradient(180deg,#2a2418 0%,#443420 100%);
}

.admin .sidebar{
  background:linear-gradient(180deg,#172028 0%,#253240 100%);
}

.sidebar-head{
  display:grid;
  gap:6px;
}

.sidebar-head p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:13px;
}

.brand{
  font-family:var(--font-display);
  font-size:26px;
  font-weight:700;
  line-height:1.1;
}

.side-nav{
  display:grid;
  gap:8px;
}

.side-nav a{
  display:flex;
  align-items:center;
  min-height:var(--touch-min);
  padding:12px 14px;
  border-radius:16px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-size:14px;
  line-height:1.35;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.side-nav a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
  transform:translateX(2px);
}

.side-nav a.is-active{
  background:rgba(255,255,255,.14);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  text-decoration:none;
  font-size:13px;
}

.back-link:hover{background:rgba(255,255,255,.08)}

.side-card{
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.side-card p{
  margin:0 0 4px;
  font-weight:700;
}

.side-card span{
  color:rgba(255,255,255,.74);
  font-size:13px;
}

.dash-main{
  padding:34px;
  min-width:0;
}

.dash-toolbar{
  display:none;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.dash-toolbar.is-visible{
  display:flex;
}

.dash-section{margin-bottom:28px}
.dash-section > .panel + .panel,
.dash-section > .panel + .grid,
.dash-section > .grid + .panel,
.dash-section > .grid + .grid{margin-top:24px}

.dash-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  grid-auto-rows:1fr;
  gap:20px;
  align-items:stretch;
}

.dash-card{
  display:grid;
  grid-template-rows:auto auto 1fr;
  align-content:stretch;
  gap:14px;
  padding:24px;
  border-radius:var(--surface-radius);
  min-width:0;
  min-height:176px;
  overflow:hidden;
  height:100%;
}

.dash-card h3{
  margin:0;
  font-size:16px;
  color:var(--slate);
}

.dash-card strong{
  display:block;
  font-size:32px;
  line-height:1;
  font-family:var(--font-display);
}

.buyer .dash-card strong{color:var(--forest)}
.merchant .dash-card strong{color:#8d6328}
.admin .dash-card strong{color:#365f87}

.dash-card span{
  display:block;
  margin-top:0;
  color:var(--muted);
  font-size:13px;
  align-self:end;
}

.admin-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.admin-topbar h1{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.06;
  font-family:var(--font-display);
}

.admin-topbar p{
  margin:0;
  color:var(--muted);
}

.admin-actions{display:flex;gap:10px;flex-wrap:wrap}

.checklist{
  list-style:none;
  display:grid;
  gap:10px;
  padding:0;
  margin:0;
}

.checklist li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--slate);
}

.checklist li::before{
  content:"";
  width:8px;
  height:8px;
  margin-top:10px;
  border-radius:50%;
  background:var(--forest);
  flex:0 0 8px;
}

.tag-list{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.flow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.flow-step{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(17,32,25,.12);
  background:rgba(255,255,255,.72);
  color:var(--slate);
  font-size:12px;
  font-weight:700;
}

.flow-step.active{
  background:var(--forest);
  border-color:var(--forest);
  color:#fff;
}

.flow-note{margin-top:8px;font-size:12px;color:var(--muted)}

.panel-eyebrow{
  margin:0;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.dashboard-hero{
  display:grid;
  gap:18px;
  align-content:start;
  min-width:0;
}

.dashboard-hero h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(30px,3.8vw,42px);
  line-height:1.08;
}

.dashboard-copy{
  margin:0;
  color:var(--slate);
  font-size:15px;
  line-height:1.75;
}

.cockpit-shell{
  display:grid;
  gap:22px;
}

.cockpit-hero{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  gap:32px;
  padding:40px;
  min-height:468px;
  border-radius:36px;
  border:1px solid rgba(17,32,25,.08);
  box-shadow:var(--shadow-md);
  overflow:hidden;
  align-items:stretch;
}

.merchant .cockpit-hero{
  background:
    radial-gradient(circle at top right,rgba(181,131,62,.18),transparent 28%),
    linear-gradient(135deg,rgba(255,250,244,.98),rgba(248,244,236,.88));
}

.admin .cockpit-hero{
  background:
    radial-gradient(circle at top right,rgba(91,135,178,.18),transparent 28%),
    linear-gradient(135deg,rgba(249,251,255,.98),rgba(239,245,251,.9));
}

.cockpit-copy{
  display:grid;
  grid-template-rows:auto auto auto 1fr auto;
  gap:20px;
  align-content:stretch;
}

.cockpit-copy h2{
  margin:0;
  font-family:var(--font-display);
  max-width:8ch;
  font-size:clamp(42px,4.8vw,64px);
  line-height:.94;
  letter-spacing:-.03em;
}

.cockpit-copy p{
  margin:0;
}

.cockpit-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.cockpit-badges span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(17,32,25,.08);
  background:rgba(255,255,255,.72);
  color:var(--ink-soft);
  font-size:13px;
  font-weight:800;
}

.cockpit-side{
  display:grid;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  align-content:stretch;
}

.cockpit-score,
.cockpit-spark-card{
  display:grid;
  gap:12px;
  padding:24px;
  border-radius:28px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(17,32,25,.08);
  box-shadow:var(--shadow-sm);
  height:100%;
  align-content:start;
}

.cockpit-score-label{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.merchant .cockpit-score-label{
  background:rgba(181,131,62,.16);
  color:#7d561f;
}

.admin .cockpit-score-label{
  background:rgba(91,135,178,.16);
  color:#365f87;
}

.cockpit-score strong{
  font-family:var(--font-display);
  font-size:64px;
  line-height:.95;
  letter-spacing:-.04em;
}

.merchant .cockpit-score strong{color:#8d6328}
.admin .cockpit-score strong{color:#365f87}

.cockpit-score p,
.cockpit-spark-card p{
  margin:0;
  color:var(--slate);
  font-size:14px;
  line-height:1.65;
}

.spark-caption{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.spark-caption strong{
  font-size:17px;
  color:var(--ink-soft);
}

.spark-caption span{
  color:var(--muted);
  font-size:12px;
}

.cockpit-spark{
  width:100%;
  height:auto;
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.9),rgba(245,248,244,.72)),
    repeating-linear-gradient(
      to top,
      rgba(17,32,25,.04) 0,
      rgba(17,32,25,.04) 1px,
      transparent 1px,
      transparent 34px
    );
}

.cockpit-spark .spark-fill{
  fill:rgba(120,165,99,.16);
}

.cockpit-spark .spark-line{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:4;
}

.merchant .cockpit-spark .spark-line{
  stroke:#8d6328;
}

.admin .cockpit-spark .spark-line{
  stroke:#365f87;
}

.spark-axis{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:6px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
}

.cockpit-route-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:1fr;
  gap:16px;
  align-items:stretch;
}

.cockpit-route{
  display:grid;
  grid-template-rows:auto auto auto 1fr;
  gap:12px;
  padding:24px;
  border-radius:28px;
  text-decoration:none;
  color:var(--ink-soft);
  border:1px solid rgba(17,32,25,.08);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(246,247,244,.82));
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  height:100%;
  min-height:214px;
}

.cockpit-route:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
  border-color:rgba(17,32,25,.14);
}

.route-kicker{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.cockpit-route strong{
  font-size:22px;
  line-height:1.12;
}

.cockpit-metric{
  font-family:var(--font-display);
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}

.merchant .cockpit-metric{color:#8d6328}
.admin .cockpit-metric{color:#365f87}

.cockpit-route p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  align-self:end;
}

.entity-summary{
  display:grid;
  gap:8px;
  max-width:620px;
  padding:22px 24px;
  border-radius:26px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(244,246,242,.88));
  border:1px solid rgba(17,32,25,.08);
  box-shadow:var(--shadow-sm);
  min-width:0;
}

.entity-summary strong{
  font-size:20px;
  color:var(--ink-soft);
}

.mini-metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
  gap:12px;
}

.mini-metric{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(17,32,25,.08);
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-sm);
  min-width:0;
}

.mini-metric span{
  display:block;
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}

.mini-metric strong{
  display:block;
  margin-top:8px;
  font-family:var(--font-display);
  font-size:24px;
  line-height:1.05;
  color:var(--ink-soft);
}

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

.ops-tile{
  display:grid;
  gap:6px;
  padding:16px 18px;
  border-radius:22px;
  text-decoration:none;
  color:var(--ink-soft);
  border:1px solid rgba(17,32,25,.08);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,247,244,.82));
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  min-width:0;
}

.ops-tile:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
  border-color:rgba(17,32,25,.14);
}

.ops-tile strong{
  font-size:17px;
}

.ops-tile span{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.chart-stack{
  display:grid;
  gap:14px;
  min-width:0;
}

.queue-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:14px 0;
  border-top:1px solid rgba(17,32,25,.08);
  min-width:0;
}

.queue-item:first-of-type{
  border-top:0;
  padding-top:0;
}

.queue-item strong{
  display:block;
  margin-bottom:4px;
}

.queue-item .panel-actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}

.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:24px;
  align-items:start;
}

.cart-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.cart-group{margin-bottom:0}

.cart-store{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.cart-item{
  display:grid;
  grid-template-columns:24px 90px minmax(0,1fr) 94px 94px 94px;
  gap:12px;
  align-items:center;
  padding:16px 0;
  border-top:1px solid rgba(17,32,25,.08);
}

.cart-thumb{
  position:relative;
  width:90px;
  height:70px;
  border-radius:14px;
  overflow:hidden;
  background:#edf2ed;
  box-shadow:var(--shadow-sm);
  isolation:isolate;
}

.cart-info h4{
  margin:0 0 6px;
  font-size:16px;
}

.cart-meta{
  font-size:12px;
  color:var(--muted);
}

.cart-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:12px;
}

.qty-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:70px;
  min-height:36px;
  padding:6px 12px;
  border-radius:12px;
  border:1px solid rgba(17,32,25,.1);
  background:#f7faf7;
  font-size:13px;
  font-weight:700;
}

.cart-price strong,
.cart-subtotal strong{
  font-size:15px;
}

.cart-summary .panel{
  position:sticky;
  top:110px;
}

@media (max-width:1100px){
  .wrap{padding:0 22px}
  .hero-grid,
  .detail-grid,
  .market-grid,
  .wholesale-board,
  .two-cols,
  .three-cols,
  .ops-grid,
  .timeline-grid,
  .trust-grid,
  .persona-grid,
  .steps{
    grid-template-columns:1fr;
  }
  .hero-stage-grid,
  .hero-kpis{
    grid-template-columns:1fr;
  }
  .donut-grid,
  .data-viz-grid{
    grid-template-columns:1fr;
  }
  .cockpit-hero,
  .cockpit-route-grid,
  .hero-metrics{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .section{padding:60px 0}
  .header-inner{
    padding:16px 0;
    align-items:flex-start;
  }
  nav{
    order:3;
    width:100%;
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
  .header-cta{width:100%}
  .hero{padding-top:64px}
  .hero.alt{
    padding-top:40px;
    padding-bottom:28px;
  }
  .dash-layout{grid-template-columns:1fr}
  .sidebar{
    position:sticky;
    top:0;
    z-index:16;
    height:auto;
    padding:16px 16px 12px;
    border-radius:0 0 24px 24px;
  }
  .sidebar-head p,
  .back-link,
  .side-card{
    display:none;
  }
  .side-nav{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap;
    gap:10px;
    padding-bottom:2px;
    margin:0 -4px;
    padding-inline:4px;
    scroll-snap-type:x proximity;
  }
  .side-nav a{
    flex:0 0 auto;
    min-height:var(--touch-min);
    background:rgba(255,255,255,.1);
    scroll-snap-align:start;
  }
  .dash-main{padding:20px 16px 28px}
  .panel,
  .dash-card,
  .kpi-card,
  .chart{
    padding:var(--panel-pad-compact);
    border-radius:22px;
  }
  .cart-layout{grid-template-columns:1fr}
  .cart-item{
    grid-template-columns:24px 80px minmax(0,1fr);
    grid-template-areas:
      "check thumb info"
      "check qty price"
      "check subtotal subtotal";
    align-items:start;
  }
  .cart-item > input{grid-area:check}
  .cart-thumb{grid-area:thumb}
  .cart-info{grid-area:info}
  .cart-qty{grid-area:qty}
  .cart-price{grid-area:price}
  .cart-subtotal{grid-area:subtotal}
  .filter-panel{
    position:relative;
    top:auto;
  }
  .cockpit-hero{
    padding:28px;
    min-height:auto;
    border-radius:28px;
  }
  .cockpit-copy h2{
    max-width:none;
    font-size:38px;
  }
  .cockpit-route-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .footer-grid{grid-template-columns:1fr 1fr}
  .dash-toolbar{
    justify-content:stretch;
    gap:10px;
  }
  .dash-toolbar .btn,
  .dash-toolbar .btn-ghost,
  .admin-actions .btn{
    width:auto;
    flex:1 1 180px;
    min-width:0;
  }
  .queue-item{
    flex-direction:column;
    gap:10px;
  }
  .queue-item .status,
  .queue-item .panel-actions{
    align-self:flex-start;
    justify-content:flex-start;
  }
}

@media (max-width:640px){
  .wrap{padding:0 18px}
  .hero-title{font-size:34px}
  .market-bar h2,
  .section-header h2,
  .cta-grid h2,
  .admin-topbar h1{
    font-size:30px;
  }
  .top-banner .wrap,
  .cta-grid,
  .admin-topbar,
  .panel-row,
  .queue-item,
  .deal-strip{
    align-items:flex-start;
  }
  .admin-topbar{
    gap:12px;
  }
  .admin-topbar h1{
    font-size:28px;
  }
  .brand{
    font-size:22px;
  }
  .hero-text,
  .hero-tile{
    gap:12px;
  }
  .hero-metrics{
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-metrics > div{
    padding:14px;
    border-radius:18px;
  }
  .tile{
    padding:18px;
    border-radius:20px;
  }
  .tile h4{
    font-size:18px;
  }
  .tile p{
    font-size:15px;
  }
  .dash-main{
    padding:16px 12px 24px;
  }
  .panel,
  .dash-card,
  .kpi-card,
  .chart{
    padding:16px;
    border-radius:18px;
  }
  .panel h3{
    font-size:18px;
    margin-bottom:12px;
    padding-bottom:10px;
  }
  .dash-card strong{
    font-size:28px;
  }
  .chart-row,
  .stack-row,
  .funnel-step,
  .heat-row{
    grid-template-columns:minmax(70px,88px) minmax(0,1fr) 40px;
    gap:10px;
  }
  .donut-meter{
    width:132px;
    height:132px;
  }
  .axis-row{
    font-size:10px;
  }
  .search-box input{min-width:100%}
  .header-cta,
  .hero-cta{
    width:100%;
  }
  .btn,
  .btn-ghost,
  .btn-dark{
    width:100%;
  }
  .footer-grid{grid-template-columns:1fr}
  .cockpit-hero{
    padding:20px 18px;
    gap:16px;
  }
  .cockpit-copy h2{
    font-size:31px;
    line-height:1.04;
  }
  .cockpit-score,
  .cockpit-spark-card{
    padding:16px;
    border-radius:20px;
  }
  .cockpit-score strong{
    font-size:44px;
  }
  .cockpit-route-grid{
    grid-template-columns:1fr;
  }
  .cockpit-route{
    padding:18px;
    border-radius:22px;
  }
}

/* 2026 mobile and visual refresh */
.card,
.editorial-card,
.persona-card,
.quote-card,
.store-card,
.panel,
.entry-card,
.dash-card,
.ad-card,
.tile,
.hero-stage-card,
.hero-signal-card,
.hero-proof,
.trust-card{
  backdrop-filter:blur(16px);
}

.card,
.editorial-card,
.panel,
.entry-card,
.dash-card,
.store-card,
.quote-card,
.ad-card{
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.card:hover,
.editorial-card:hover,
.panel:hover,
.dash-card:hover,
.store-card:hover,
.quote-card:hover,
.ad-card:hover{
  transform:translateY(-3px);
  box-shadow:0 28px 52px rgba(17,32,25,.12);
}

.site-header{
  box-shadow:0 10px 30px rgba(17,32,25,.04);
}

.header-inner{
  padding:14px 0;
}

nav{
  scrollbar-width:none;
}

nav::-webkit-scrollbar,
.side-nav::-webkit-scrollbar{
  display:none;
}

nav a,
.side-nav a{
  white-space:nowrap;
}

.hero{
  padding-top:104px;
  padding-bottom:64px;
}

.hero-board{
  position:relative;
}

.hero-board::after{
  content:"";
  position:absolute;
  right:18px;
  bottom:-18px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(212,165,72,.22),transparent 66%);
  pointer-events:none;
}

.hero-copy .lead,
.section-header p{
  font-size:17px;
}

.card-img{
  height:240px;
  background-color:#edf2ed;
}

.editorial-card{
  min-height:340px;
  background-color:#dfe8df;
}

.editorial-card .overlay{
  padding:24px;
}

.market-bar{
  padding:18px 0 26px;
}

.search-box{
  flex:1 1 320px;
  justify-content:flex-end;
}

.search-box input{
  flex:1 1 280px;
}

.filter-panel{
  gap:16px;
}

.detail-media{
  min-height:520px;
  background-color:#e6ece6;
}

.detail-media-stack .panel{
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,250,248,.9));
}

.store-box{
  box-shadow:var(--shadow-sm);
}

.sidebar{
  border-radius:0 30px 30px 0;
  box-shadow:0 26px 56px rgba(17,32,25,.18);
}

.side-nav{
  scrollbar-width:none;
}

.side-nav a{
  display:flex;
  align-items:center;
  min-height:42px;
}

.dash-main{
  padding:38px 34px 48px;
}

.dash-toolbar{
  justify-content:flex-start;
}

.cart-summary .panel{
  top:24px;
}

@media (max-width:980px){
  .top-banner .wrap{
    align-items:flex-start;
  }

  .header-brand,
  .header-cta{
    width:100%;
  }

  nav{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:6px;
  }

  .header-cta{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .hero{
    padding-top:68px;
    padding-bottom:52px;
  }

  .market-grid{
    gap:18px;
  }

  .filter-panel{
    grid-template-columns:repeat(2,minmax(0,1fr));
    position:relative;
    top:auto;
  }

  .filter-panel h4,
  .filter-block{
    grid-column:1 / -1;
  }

  .sidebar{
    border-radius:0 0 28px 28px;
    box-shadow:0 18px 32px rgba(17,32,25,.12);
  }

  .side-nav{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap;
    gap:10px;
    padding-bottom:4px;
  }

  .side-nav a{
    flex:0 0 auto;
    background:rgba(255,255,255,.08);
  }

  .side-card{
    display:none;
  }

  .dash-main{
    padding:24px 20px 36px;
  }
}

@media (max-width:640px){
  .top-banner{
    font-size:12px;
  }

  .header-inner{
    gap:14px;
  }

  nav a{
    background:rgba(43,106,77,.08);
  }

  .header-cta{
    grid-template-columns:1fr;
  }

  .hero-copy .lead,
  .section-header p{
    font-size:15px;
  }

  .editorial-card{
    min-height:280px;
  }

  .card-img{
    height:210px;
  }

  .filter-panel{
    grid-template-columns:1fr;
  }

  .detail-media{
    min-height:320px;
  }

  .detail-meta{
    grid-template-columns:1fr;
  }

  .sidebar{
    padding:16px;
  }

  .dash-toolbar{
    width:100%;
  }
  .dash-toolbar .btn,
  .dash-toolbar .btn-ghost,
  .admin-actions .btn{
    width:100%;
    flex:1 1 100%;
  }
  .data-copy h2,
  .dashboard-hero h2{
    font-size:28px;
  }
  .donut-grid{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .stack-metrics{
    width:100%;
  }

  .cart-store{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .cart-item{
    grid-template-columns:24px minmax(0,1fr);
    grid-template-areas:
      "check info"
      "thumb thumb"
      "qty price"
      "subtotal subtotal";
    gap:14px;
  }

  .cart-thumb{
    width:100%;
    height:180px;
    border-radius:18px;
  }
}

/* 2026 performance and dashboard mobile polish */
.panel,
.chart,
.kpi-card{
  min-width:0;
  overflow:hidden;
}

.panel > *{
  min-width:0;
}

.admin .chart .bar{
  background:linear-gradient(90deg,#365f87,#5b87b2);
}

.merchant .chart .bar{
  background:linear-gradient(90deg,#8d6328,#bc8b45);
}

@media (max-width:820px){
  .dashboard .top-banner .wrap{
    gap:8px;
  }

  .dashboard .sidebar{
    gap:12px;
    padding:14px 14px 10px;
  }

  .dashboard .side-card{
    display:none;
  }

  .dashboard .sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .dashboard .brand{
    font-size:20px;
  }

  .dashboard .sidebar-head p{
    display:none;
  }

  .dashboard .side-nav{
    gap:8px;
    padding-inline:0;
    margin:0;
  }

  .dashboard .side-nav a{
    min-height:38px;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    line-height:1.2;
  }

  .dash-main{
    padding:18px 14px 28px;
  }

  .admin-topbar{
    margin-bottom:16px;
  }

  .admin-topbar h1{
    font-size:26px;
  }

  .dash-toolbar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .dash-toolbar.is-visible{
    display:grid;
  }

  .dash-toolbar .btn,
  .dash-toolbar .btn-ghost,
  .admin-actions .btn{
    width:100%;
    min-height:40px;
    flex:1 1 auto;
    padding:8px 10px;
  }

  .dash-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .dash-card{
    padding:16px 14px;
    border-radius:20px;
  }

  .dash-card h3{
    margin-bottom:8px;
    font-size:13px;
  }

  .dash-card strong{
    font-size:24px;
  }

  .dashboard-hero h2,
  .data-copy h2{
    font-size:26px;
  }

  .dashboard-copy{
    font-size:14px;
    line-height:1.65;
  }

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

  .mini-metric{
    padding:12px;
    border-radius:16px;
  }

  .mini-metric span{
    font-size:10px;
  }

  .mini-metric strong{
    font-size:18px;
    margin-top:6px;
  }

  .ops-tile{
    padding:14px;
    border-radius:18px;
  }

  .ops-tile strong{
    font-size:15px;
  }

  .ops-tile span{
    font-size:12px;
    line-height:1.5;
  }

  .chart-title{
    font-size:14px;
  }

  .queue-item{
    padding:12px 0;
  }

  .queue-item .panel-actions{
    width:100%;
    justify-content:space-between;
    gap:8px;
  }

  .data-hero{
    gap:16px;
  }

  .kpi-grid{
    grid-template-columns:1fr;
  }

  .kpi-card{
    padding:14px;
  }

  .kpi-card .value{
    font-size:22px;
  }

  .viz-card{
    gap:14px;
  }

  .trend-legend{
    gap:10px;
  }
}

@media (max-width:560px){
  .dashboard .top-banner{
    font-size:12px;
  }

  .dashboard .top-banner .wrap{
    min-height:auto;
    padding-top:8px;
    padding-bottom:8px;
  }

  .dashboard .role-switch{
    width:100%;
    justify-content:space-between;
  }

  .dashboard .sidebar{
    padding:12px 12px 8px;
    gap:10px;
  }

  .dashboard .sidebar-head{
    align-items:center;
  }

  .dashboard .brand{
    font-size:18px;
  }

  .dashboard .side-nav{
    gap:7px;
  }

  .dashboard .side-nav a{
    min-height:36px;
    padding:8px 11px;
    font-size:12px;
  }

  .dash-main{
    padding:14px 12px 24px;
  }

  .panel,
  .dash-card,
  .kpi-card,
  .chart{
    padding:14px;
    border-radius:16px;
  }

  .admin-topbar h1{
    font-size:24px;
  }

  .admin-topbar p{
    font-size:13px;
  }

  .dash-toolbar{
    margin-bottom:12px;
  }

  .dash-toolbar.is-visible{
    display:grid;
  }

  .dash-cards{
    grid-template-columns:1fr;
  }

  .dashboard-hero h2,
  .data-copy h2{
    font-size:23px;
    line-height:1.12;
  }

  .entity-summary{
    padding:14px;
    border-radius:18px;
  }

  .entity-summary strong{
    font-size:18px;
  }

  .mini-metrics{
    grid-template-columns:1fr;
  }

  .cockpit-badges{
    gap:8px;
  }

  .cockpit-badges span{
    width:100%;
    justify-content:center;
  }

  .ops-grid{
    gap:10px;
  }

  .ops-tile{
    padding:13px 14px;
  }

  .chart-row,
  .stack-row,
  .funnel-step,
  .heat-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "label value"
      "bar bar";
    gap:6px 10px;
  }

  .chart-row > span:first-child,
  .stack-row > span:first-child,
  .funnel-step > span:first-child,
  .heat-row > span:first-child{
    grid-area:label;
  }

  .chart-row .bar-track,
  .stack-row .bar-track,
  .funnel-step .funnel-track,
  .heat-row .heat-bar{
    grid-area:bar;
  }

  .chart-row span:last-child,
  .stack-row strong,
  .funnel-step strong,
  .heat-row strong{
    grid-area:value;
    text-align:right;
  }

  .donut-grid{
    justify-items:stretch;
  }

  .donut-card{
    gap:8px;
  }

  .donut-meter{
    width:120px;
    height:120px;
  }

  .donut-meter span{
    font-size:24px;
  }

  .line-chart svg{
    padding:8px;
    border-radius:16px;
  }

  .axis-row{
    font-size:10px;
    letter-spacing:.04em;
  }

  .trend-legend{
    font-size:11px;
  }

  .flow{
    gap:8px;
  }

  .flow-step{
    min-height:32px;
    padding:5px 10px;
    font-size:11px;
  }
}

/* 2026 reliability and mobile header/cart cleanup */
@media (max-width:820px){
  body.public-shell .site-header{
    position:static;
    top:auto;
    backdrop-filter:none;
    background:rgba(255,253,250,.96);
  }

  body.public-shell .top-banner{
    position:relative;
    z-index:2;
  }

  body.public-shell .top-banner .wrap{
    justify-content:space-between;
    flex-wrap:nowrap;
    min-height:auto;
    padding-top:8px;
    padding-bottom:8px;
    gap:8px;
  }

  body.public-shell .top-banner .wrap > span:first-child{
    min-width:0;
    font-size:12px;
    line-height:1.35;
  }

  body.public-shell .header-inner{
    min-height:auto;
    gap:12px;
    padding-top:12px;
    padding-bottom:12px;
  }

  body.public-shell .header-brand p{
    display:none;
  }

  body.public-shell .header-cta{
    display:none;
  }

  body.public-shell nav{
    order:2;
    width:100%;
    gap:8px;
    padding-bottom:2px;
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  body.public-shell nav::-webkit-scrollbar{
    display:none;
  }

  body.public-shell nav a{
    background:rgba(43,106,77,.08);
    padding:8px 12px;
    font-size:13px;
  }
}

@media (max-width:560px){
  body.public-shell .top-banner{
    font-size:12px;
    border-bottom:none;
  }

  body.public-shell .top-banner .wrap{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
  }

  body.public-shell .top-banner .wrap > span:first-child{
    font-size:0;
    line-height:1;
  }

  body.public-shell .top-banner .wrap > span:first-child::before{
    content:"演示模式";
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(255,255,255,.78);
  }

  body.public-shell .top-banner-copy,
  body.public-shell .top-banner-copy .badge,
  body.public-shell .top-banner-copy span:last-child,
  body.public-shell .role-switch .badge{
    display:none;
  }

  body.public-shell .role-switch{
    width:auto;
    justify-content:flex-end;
  }

  body.public-shell .role-switch-link{
    min-height:40px;
    padding:5px 14px;
  }

  body.public-shell .header-inner{
    gap:10px;
    padding-top:10px;
    padding-bottom:10px;
  }

  body.public-shell .logo{
    font-size:24px;
  }

  body.public-shell .hero{
    padding-top:52px;
    padding-bottom:26px;
  }

  body.public-shell .lead{
    font-size:16px;
    line-height:1.75;
  }

  body.public-shell .hero-cta{
    flex-direction:column;
  }

  body.public-shell .hero-cta .btn,
  body.public-shell .hero-cta .btn-ghost{
    width:100%;
  }

  body.public-shell .section{
    padding:52px 0;
  }

  body.public-shell nav{
    margin-top:2px;
    gap:6px;
  }

  body.public-shell nav a{
    min-height:40px;
    padding:8px 12px;
    font-size:12px;
  }

  body.public-shell nav a:nth-child(n+6){
    display:none;
  }

  .cart-item{
    grid-template-columns:24px 92px minmax(0,1fr);
    grid-template-areas:
      "check thumb info"
      ". thumb info"
      "qty qty qty"
      "price price subtotal";
    gap:12px;
  }

  .cart-info{
    align-self:start;
  }

  .cart-thumb{
    width:92px;
    height:92px;
    border-radius:18px;
  }

  .cart-qty,
  .cart-price,
  .cart-subtotal{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(17,32,25,.08);
    background:rgba(247,250,247,.88);
  }

  .cart-qty .cart-meta,
  .cart-price .cart-meta,
  .cart-subtotal .cart-meta{
    margin:0;
  }

  .cart-price strong,
  .cart-subtotal strong,
  .cart-qty .qty-pill{
    justify-self:end;
  }

  .dashboard .top-banner .wrap{
    justify-content:flex-end;
  }

  .dashboard .top-banner .wrap > span:first-child{
    display:none;
  }

  .dashboard .role-switch{
    width:auto;
    justify-content:flex-end;
  }

  .dashboard .role-switch-link{
    min-height:40px;
    padding:6px 14px;
  }

  .merchant .top-banner .role-switch{
    display:none;
  }
}
