:root {
  --ink: #10261c;
  --pine: #1d4332;
  --leaf: #3f7a58;
  --gold: #c4a35a;
  --straw: #e6d5a8;
  --paper: #f4efe4;
  --mist: #dfe8df;
  --white: #fffdf8;
  --danger: #9c3b2e;
  --ok: #2f6f4a;
  --shadow: 0 24px 60px rgba(16, 38, 28, 0.22);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.site-nav {
  position: absolute;
  z-index: 5;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  color: var(--white);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.18em;
}
.brand-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}
.brand-name { font-size: 14px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; opacity: 0.9; }
.nav-links .nav-btn {
  border: 1px solid rgba(255,255,255,0.45);
  padding: 8px 16px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,16,0.28) 0%, rgba(10,22,16,0.55) 48%, rgba(10,22,16,0.78) 100%),
    linear-gradient(90deg, rgba(10,22,16,0.55), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 28vh 7vw 10vh;
}
.eyebrow {
  letter-spacing: 0.42em;
  font-size: 12px;
  color: var(--straw);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: 0.12em;
}
.lede {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin: 0 0 40px;
}
.hero-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 640px;
}
.door {
  display: block;
  text-decoration: none;
  padding: 22px 22px 20px;
  border: 1px solid rgba(230,213,168,0.38);
  background: rgba(16,38,28,0.38);
  backdrop-filter: blur(10px);
  min-height: 148px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.door:hover { transform: translateY(-4px); background: rgba(16,38,28,0.55); }
.door-accent { border-color: var(--gold); }
.door-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--straw);
  margin-bottom: 10px;
}
.door strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.door span:last-child { font-size: 13px; opacity: 0.8; }
.hero-register {
  margin: 28px 0 0;
  font-size: 14px;
  opacity: 0.88;
}
.hero-register a { color: var(--straw); }

.home-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: var(--paper);
}
.home-strip article {
  padding: 42px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.home-strip article:last-child { border-right: 0; }
.home-strip h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
.home-strip p { margin: 0; opacity: 0.75; line-height: 1.7; font-size: 14px; }

.site-footer {
  padding: 36px 7vw 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7a70;
  background: #ece6d8;
}
.site-footer a { color: var(--pine); }

.chapter {
  padding: 14vh 7vw;
  background: var(--paper);
}
.chapter-head {
  max-width: 820px;
  margin-bottom: 56px;
}
.chapter-head .eyebrow { color: #8a6a22; }
.chapter h2.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}
.chapter .prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
  color: #3d4a42;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.role-card {
  padding: 28px 0 32px;
  border-top: 1px solid var(--gold);
}
.role-card .kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #8a6a22;
  margin-bottom: 10px;
}
.role-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}
.role-card p { margin: 0; color: #4d5c54; line-height: 1.75; font-size: 15px; }

.chapter-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
  background: var(--paper);
}
.chapter-split .photo { min-height: 420px; overflow: hidden; }
.chapter-split .photo img { width: 100%; height: 100%; object-fit: cover; }
.chapter-split .copy { padding: 12vh 6vw; display: flex; flex-direction: column; justify-content: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd4c4;
}
.steps .n {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}
.steps strong { display: block; margin-bottom: 4px; letter-spacing: 0.08em; }
.steps span { color: #5c6b62; font-size: 14px; line-height: 1.65; }

.chapter-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 14vh 7vw;
}
.chapter-dark .eyebrow { color: var(--straw); }
.mantra {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.1em;
  margin: 0 0 48px;
  max-width: 16em;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rule-grid article h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.rule-grid p { margin: 0; opacity: 0.75; line-height: 1.7; font-size: 14px; }

.shot {
  position: relative;
  min-height: 88vh;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,16,0.1), rgba(10,22,16,0.72));
}
.shot .copy { position: relative; z-index: 1; padding: 10vh 7vw; max-width: 720px; }
.shot h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

.path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.path article {
  padding: 22px 18px 24px;
  background: var(--white);
  min-height: 160px;
}
.path .n { font-family: var(--serif); color: var(--gold); font-size: 20px; }
.path h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.1em; margin: 10px 0 8px; font-size: 20px; }
.path p { margin: 0; font-size: 13px; color: #5c6b62; line-height: 1.65; }

.close-doors { max-width: 920px; margin-top: 36px; }

@media (max-width: 860px) {
  .role-grid, .chapter-split, .rule-grid, .path { grid-template-columns: 1fr; }
}

.home-page {
  background: #f5f3ec;
}

.home-page .home-nav {
  padding: 20px 7vw;
  letter-spacing: 0;
}

.home-page .brand,
.home-page .brand-name,
.home-page .nav-links a,
.home-page .eyebrow,
.home-page .section-kicker {
  letter-spacing: 0;
}

.home-page .brand-name {
  font-weight: 700;
  font-size: 15px;
}

.home-page .nav-links {
  gap: 22px;
}

.home-page .nav-links a {
  font-size: 14px;
  opacity: 0.94;
}

.home-page .nav-links .nav-muted {
  opacity: 0.58;
}

.home-hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.home-hero .hero-veil {
  background:
    linear-gradient(180deg, rgba(8, 20, 15, 0.18) 0%, rgba(8, 20, 15, 0.52) 58%, rgba(8, 20, 15, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 20, 15, 0.76) 0%, rgba(8, 20, 15, 0.44) 42%, rgba(8, 20, 15, 0.18) 100%);
}

.home-hero-copy {
  width: min(860px, 100%);
  padding: 128px 7vw 72px;
}

.home-page .eyebrow,
.section-kicker {
  font-size: 13px;
  color: #d9c17b;
  margin: 0 0 14px;
  font-weight: 700;
}

.home-page .hero h1 {
  font-family: var(--sans);
  font-size: 78px;
  line-height: 1.02;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.home-page .lede {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255, 253, 248, 0.94);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.primary-action {
  background: #f7d06f;
  color: #13251c;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.secondary-action {
  border: 1px solid rgba(255, 253, 248, 0.62);
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.08);
}

.secondary-action.light {
  background: rgba(255, 253, 248, 0.12);
}

.primary-action:hover {
  background: #ffd982;
}

.secondary-action:hover {
  background: rgba(255, 253, 248, 0.18);
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 13px;
}

.hero-assurance span {
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(16, 38, 28, 0.22);
}

.home-intro,
.market-band,
.trust-section,
.process-section {
  padding: 82px 7vw;
}

.home-intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  background: #fffdf8;
  border-bottom: 1px solid #e4dfd3;
}

.intro-copy h2,
.section-head h2,
.partner-copy h2,
.closing-copy h2 {
  font-family: var(--sans);
  font-size: 40px;
  line-height: 1.24;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0;
}

.intro-copy .section-kicker,
.section-head .section-kicker,
.partner-copy .section-kicker {
  color: #8a6a22;
}

.intro-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.intro-points article {
  border-left: 4px solid #d1a84f;
  padding: 4px 0 4px 20px;
}

.intro-points strong,
.track-list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.intro-points p,
.track-list p,
.promise-grid p,
.process-line p,
.closing-copy p {
  margin: 0;
  color: #56635b;
  line-height: 1.72;
  font-size: 15px;
}

.market-band {
  background: #eef3e9;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-head a {
  color: #1d4332;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.batch-preview,
.promise-grid,
.process-line {
  display: grid;
  gap: 16px;
}

.batch-preview {
  grid-template-columns: repeat(3, 1fr);
}

.batch-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid #dde5d8;
  box-shadow: 0 12px 28px rgba(16, 38, 28, 0.08);
}

.batch-card span,
.promise-grid span,
.process-line span {
  color: #9a6043;
  font-weight: 800;
  font-size: 13px;
}

.batch-card h3,
.promise-grid h3,
.process-line h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.batch-card p {
  margin: 0;
  color: #56635b;
  line-height: 1.65;
}

.batch-card a {
  color: #1d4332;
  font-weight: 700;
  text-decoration: none;
}

.batch-meta {
  color: #10261c;
  font-weight: 700;
}

.trust-section {
  background: #fffdf8;
}

.promise-grid {
  grid-template-columns: repeat(4, 1fr);
}

.promise-grid article {
  min-height: 220px;
  padding: 24px 20px;
  border-top: 3px solid #d1a84f;
  background: #f7f6ef;
}

.partner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: #173529;
  color: #fffdf8;
}

.partner-photo {
  min-height: 440px;
  overflow: hidden;
}

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

.partner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 7vw 72px 56px;
}

.partner-copy .section-kicker {
  color: #d9c17b;
}

.track-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.track-list article {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
}

.track-list p {
  color: rgba(255, 253, 248, 0.76);
}

.process-section {
  background: #f5f3ec;
}

.process-line {
  grid-template-columns: repeat(5, 1fr);
}

.process-line article {
  min-height: 184px;
  padding: 22px 18px;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid #e2ddd0;
}

.closing-cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fffdf8;
  overflow: hidden;
}

.closing-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-cta .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 16, 0.82), rgba(10, 22, 16, 0.48), rgba(10, 22, 16, 0.16)),
    linear-gradient(180deg, rgba(10, 22, 16, 0.18), rgba(10, 22, 16, 0.7));
}

.closing-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 72px 7vw;
}

.closing-copy .section-kicker {
  color: #d9c17b;
}

.closing-copy p {
  color: rgba(255, 253, 248, 0.82);
  font-size: 17px;
  margin: 18px 0 28px;
}

.home-footer {
  background: #10261c;
  color: rgba(255, 253, 248, 0.72);
}

.home-footer a {
  color: #f7d06f;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--paper);
}
.auth-aside {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.auth-aside img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.auth-aside .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,38,28,0.28), rgba(16,38,28,0.78));
}
.auth-aside-copy {
  position: relative;
  z-index: 1;
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card { width: min(440px, 100%); }
.auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.auth-switch a {
  text-decoration: none;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid #d7d0c3;
  color: #66756c;
}
.auth-switch a.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.auth-card h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.auth-card .sub {
  margin: 0 0 28px;
  color: #66756c;
  font-size: 14px;
}
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 8px; font-size: 13px; color: #4d5c54; }
.form-stack input, .form-stack select, .form-stack textarea {
  border: 1px solid #d7d0c3;
  background: var(--white);
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
}
.form-stack textarea { min-height: 84px; resize: vertical; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--white);
  padding: 14px 18px;
  letter-spacing: 0.18em;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--pine); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.danger { background: var(--danger); }
.form-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #66756c;
}
.form-foot a { color: var(--leaf); }
.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #f8e6e2; color: var(--danger); }
.alert-ok { background: #e4f0e7; color: var(--ok); }

.dash {
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 10% -10%, #e8f0e4, transparent 50%),
    var(--paper);
}
.dash-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  border-bottom: 1px solid #ddd4c4;
}
.dash-nav .who { font-size: 13px; color: #66756c; }
.dash-main { padding: 36px 6vw 80px; max-width: 1100px; }
.dash-main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.dash-main .lead { color: #66756c; margin: 0 0 28px; }
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px solid currentColor;
}
.status-pending { color: #8a6a22; }
.status-approved { color: var(--ok); }
.status-rejected { color: var(--danger); }
.table-wrap { overflow: auto; background: var(--white); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eee6d8; vertical-align: top; }
th { background: #f7f2e8; font-weight: 600; color: #4d5c54; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { padding: 7px 10px; letter-spacing: 0.08em; font-size: 12px; }
.empty {
  padding: 40px;
  text-align: center;
  color: #66756c;
}

.hero-doors.three { grid-template-columns: 1fr 1fr 1fr; max-width: 920px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tabs button {
  appearance: none;
  border: 1px solid #d7d0c3;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--white); padding: 16px 18px; box-shadow: 0 10px 30px rgba(16,38,28,0.06); }
.stat b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 400; margin-top: 6px; }
.stat span { font-size: 12px; color: #66756c; letter-spacing: 0.12em; }
.panel { display: none; }
.panel.active { display: block; }
.card {
  background: var(--white);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(16,38,28,0.06);
}
.card h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.1em; margin: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.batch-hero { min-height: 42vh; }
.price-note {
  border: 1px dashed var(--gold);
  padding: 14px 16px;
  color: #6b5a2a;
  background: #fbf6ea;
  margin: 18px 0;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero-doors, .hero-doors.three, .home-strip, .auth-page, .stats, .form-grid { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; }
  .hero-copy { padding-top: 22vh; }
  .site-nav { padding: 16px 22px; }
  .home-strip article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-footer { flex-direction: column; }
}

.batch-placeholder {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .home-intro,
  .partner-split {
    grid-template-columns: 1fr;
  }

  .batch-preview,
  .promise-grid,
  .process-line {
    grid-template-columns: 1fr 1fr;
  }

  .partner-copy {
    padding: 64px 7vw;
  }
}

@media (max-width: 680px) {
  .home-page .home-nav {
    position: absolute;
    align-items: flex-start;
    gap: 16px;
  }

  .home-page .nav-links {
    justify-content: flex-end;
    gap: 8px 10px;
    flex-wrap: wrap;
    max-width: 220px;
  }

  .home-page .nav-links a {
    font-size: 12px;
  }

  .home-page .brand {
    gap: 8px;
    flex-shrink: 0;
  }

  .home-page .brand-name {
    white-space: nowrap;
    font-size: 14px;
  }

  .home-page .nav-links .nav-muted {
    display: none;
  }

  .home-hero {
    min-height: 88vh;
  }

  .home-hero-copy {
    padding: 132px 24px 56px;
  }

  .home-page .hero h1 {
    font-size: 48px;
  }

  .home-page .lede {
    font-size: 16px;
    line-height: 1.72;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-assurance {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-assurance span {
    text-align: center;
  }

  .home-intro,
  .market-band,
  .trust-section,
  .process-section {
    padding: 56px 24px;
  }

  .intro-copy h2,
  .section-head h2,
  .partner-copy h2,
  .closing-copy h2 {
    font-size: 30px;
  }

  .intro-points,
  .batch-preview,
  .promise-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-block;
    margin-top: 14px;
  }

  .partner-photo {
    min-height: 300px;
  }

  .partner-copy,
  .closing-copy {
    padding: 56px 24px;
  }

  .closing-cta {
    min-height: 560px;
  }
}

/* Home v2: supply-desk presentation */
.home-v2 {
  background: #f3f0e7;
}

.home-v2 .v2-nav {
  padding: 24px 6vw;
  color: #fffdf8;
}

.home-v2 .brand {
  gap: 10px;
  letter-spacing: 0;
}

.home-v2 .brand-mark {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(247, 208, 111, 0.78);
}

.home-v2 .brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-v2 .nav-links {
  gap: 26px;
}

.home-v2 .nav-links a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.9;
}

.v2-hero {
  position: relative;
  min-height: 92vh;
  color: #fffdf8;
  overflow: hidden;
  background: #0b1812;
}

.v2-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.v2-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 12, 0.92) 0%, rgba(7, 17, 12, 0.74) 42%, rgba(7, 17, 12, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 17, 12, 0.22) 0%, rgba(7, 17, 12, 0.86) 100%);
}

.v2-stage {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.78fr);
  gap: 56px;
  align-items: center;
  padding: 104px 6vw 46px;
}

.home-v2 .section-kicker {
  color: #d7b65b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.v2-copy h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--sans);
  font-size: 72px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.v2-lede {
  max-width: 650px;
  margin: 28px 0 34px;
  font-size: 21px;
  line-height: 1.72;
  color: rgba(255, 253, 248, 0.86);
}

.v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.v2-primary,
.v2-secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.v2-primary {
  background: #f4c95d;
  color: #132018;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.v2-secondary {
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.48);
  background: rgba(255, 253, 248, 0.07);
}

.v2-primary:hover {
  background: #ffd86f;
}

.v2-secondary:hover {
  background: rgba(255, 253, 248, 0.15);
}

.v2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.v2-trust span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  color: rgba(255, 253, 248, 0.78);
  background: rgba(255, 253, 248, 0.06);
  font-size: 13px;
}

.supply-desk {
  width: 100%;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.94);
  color: #10261c;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.desk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #10261c;
  color: #fffdf8;
}

.desk-top span {
  color: #d7b65b;
  font-size: 12px;
  font-weight: 800;
}

.desk-top strong {
  font-size: 14px;
}

.desk-feature {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #ded6c7;
  background:
    linear-gradient(120deg, rgba(244, 201, 93, 0.22), transparent 42%),
    #fffdf8;
}

.desk-feature span {
  color: #9a6043;
  font-size: 12px;
  font-weight: 900;
}

.desk-feature h2 {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.desk-feature p {
  margin: 0;
  color: #5d6a62;
  line-height: 1.6;
}

.desk-feature a {
  width: max-content;
  color: #10261c;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.desk-flow {
  display: grid;
  gap: 0;
}

.desk-flow article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid #ded6c7;
}

.desk-flow article:last-child {
  border-bottom: 0;
}

.desk-flow span {
  color: #9a6043;
  font-weight: 900;
}

.desk-flow strong {
  display: block;
  margin-bottom: 3px;
  grid-column: 2;
}

.desk-flow em {
  display: block;
  grid-column: 2;
  color: #68756d;
  font-style: normal;
  font-size: 13px;
}

.v2-signal-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #10261c;
  color: #fffdf8;
}

.v2-signal-bar article {
  min-height: 124px;
  padding: 30px 6vw;
  border-right: 1px solid rgba(255, 253, 248, 0.1);
}

.v2-signal-bar article:last-child {
  border-right: 0;
}

.v2-signal-bar span {
  display: block;
  margin-bottom: 10px;
  color: #d7b65b;
  font-size: 12px;
  font-weight: 900;
}

.v2-signal-bar strong {
  display: block;
  max-width: 13em;
  font-size: 24px;
  line-height: 1.32;
}

.v2-market,
.v2-assurance {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 52px;
  align-items: start;
  padding: 92px 6vw;
  background: #f3f0e7;
}

.v2-market {
  background:
    linear-gradient(180deg, #fffdf8, #f3f0e7);
}

.v2-section-copy h2,
.v2-path h2,
.v2-final-copy h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 44px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.v2-section-copy p:not(.section-kicker),
.v2-path p:not(.section-kicker) {
  margin: 18px 0 0;
  color: #5a675f;
  line-height: 1.75;
  font-size: 16px;
}

.v2-section-copy a,
.v2-path a {
  display: inline-block;
  margin-top: 24px;
  color: #1d4332;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.v2-batch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.v2-batch-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #ded6c7;
  background: #fffdf8;
  box-shadow: 0 16px 40px rgba(16, 38, 28, 0.08);
}

.v2-batch-card.featured {
  background: #173529;
  color: #fffdf8;
  border-color: #173529;
}

.v2-batch-card span {
  color: #9a6043;
  font-weight: 900;
  font-size: 12px;
}

.v2-batch-card.featured span {
  color: #d7b65b;
}

.v2-batch-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.v2-batch-card p {
  margin: 0;
  color: #5c6961;
  line-height: 1.65;
}

.v2-batch-card.featured p {
  color: rgba(255, 253, 248, 0.74);
}

.v2-batch-card strong {
  color: #10261c;
  font-size: 15px;
}

.v2-batch-card.featured strong {
  color: #fffdf8;
}

.v2-batch-card a {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.v2-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #10261c;
}

.v2-path {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fffdf8;
  overflow: hidden;
}

.v2-path img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-path::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 12, 0.08), rgba(7, 17, 12, 0.88)),
    linear-gradient(90deg, rgba(7, 17, 12, 0.68), rgba(7, 17, 12, 0.2));
}

.v2-path > div {
  position: relative;
  z-index: 1;
  padding: 56px;
  max-width: 600px;
}

.v2-path p:not(.section-kicker) {
  color: rgba(255, 253, 248, 0.78);
}

.v2-path a {
  color: #f4c95d;
}

.v2-assurance {
  background: #fffdf8;
  grid-template-columns: 0.6fr 1.4fr;
}

.v2-assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.v2-assurance-grid article {
  min-height: 220px;
  padding: 22px 18px;
  border-top: 4px solid #d7b65b;
  background: #f5f2ea;
}

.v2-assurance-grid span {
  color: #9a6043;
  font-weight: 900;
}

.v2-assurance-grid h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.v2-assurance-grid p {
  margin: 0;
  color: #5a675f;
  line-height: 1.68;
  font-size: 15px;
}

.v2-final {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fffdf8;
  overflow: hidden;
  background: #10261c;
}

.v2-final img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.v2-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 12, 0.88), rgba(7, 17, 12, 0.48), rgba(7, 17, 12, 0.16)),
    linear-gradient(180deg, rgba(7, 17, 12, 0.2), rgba(7, 17, 12, 0.82));
}

.v2-final-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 76px 6vw;
}

.v2-final-copy h2 {
  font-size: 56px;
}

.v2-final .v2-actions {
  margin-top: 28px;
}

.v2-footer {
  background: #0b1812;
  color: rgba(255, 253, 248, 0.68);
}

.v2-footer a {
  color: #f4c95d;
}

@media (max-width: 1060px) {
  .v2-stage,
  .v2-market,
  .v2-assurance {
    grid-template-columns: 1fr;
  }

  .supply-desk {
    max-width: 680px;
  }

  .v2-assurance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .home-v2 .v2-nav {
    padding: 18px 22px;
    align-items: flex-start;
  }

  .home-v2 .brand-name {
    font-size: 14px;
  }

  .home-v2 .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 160px;
  }

  .home-v2 .nav-links a {
    font-size: 12px;
  }

  .v2-hero,
  .v2-stage {
    min-height: auto;
  }

  .v2-stage {
    padding: 108px 22px 34px;
    gap: 34px;
  }

  .v2-copy h1 {
    font-size: 46px;
  }

  .v2-lede {
    font-size: 16px;
    margin: 20px 0 24px;
  }

  .v2-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v2-primary,
  .v2-secondary {
    width: 100%;
  }

  .v2-trust {
    display: none;
  }

  .desk-feature h2 {
    font-size: 24px;
  }

  .desk-flow {
    display: none;
  }

  .v2-signal-bar,
  .v2-batch-grid,
  .v2-paths,
  .v2-assurance-grid {
    grid-template-columns: 1fr;
  }

  .v2-signal-bar article {
    min-height: 104px;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.1);
  }

  .v2-market,
  .v2-assurance {
    padding: 60px 22px;
    gap: 30px;
  }

  .v2-section-copy h2,
  .v2-path h2 {
    font-size: 32px;
  }

  .v2-path {
    min-height: 520px;
  }

  .v2-path > div {
    padding: 36px 22px;
  }

  .v2-final {
    min-height: 520px;
  }

  .v2-final-copy {
    padding: 58px 22px;
  }

  .v2-final-copy h2 {
    font-size: 38px;
  }
}

/* Home vision: light rural brand presentation */
.home-vision {
  color: #25362d;
  background: #f8f5ec;
}

.vision-nav {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 6vw;
  color: #264234;
}

.vision-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.vision-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 116, 84, 0.46);
  background: rgba(255, 253, 246, 0.72);
  font-family: var(--serif);
  font-size: 18px;
}

.vision-brand strong {
  font-size: 16px;
}

.vision-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.vision-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.vision-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f4efe2;
}

.vision-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 245, 236, 0.96) 0%, rgba(248, 245, 236, 0.82) 38%, rgba(248, 245, 236, 0.22) 100%),
    linear-gradient(180deg, rgba(248, 245, 236, 0.1) 0%, rgba(248, 245, 236, 0.82) 100%);
}

.vision-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(1.08);
}

.vision-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 132px 6vw 72px;
}

.vision-hero-copy p,
.vision-kicker {
  margin: 0 0 18px;
  color: #8a713a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.vision-hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 98px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #23392d;
}

.vision-line {
  width: 84px;
  height: 2px;
  margin: 28px 0;
  background: #b99a4f;
}

.vision-hero-copy h2 {
  max-width: 690px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: 0;
  color: #2d4738;
}

.vision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.vision-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #264234;
  background: #f0d27a;
  box-shadow: 0 14px 30px rgba(80, 116, 84, 0.16);
}

.vision-actions a + a {
  background: rgba(255, 253, 246, 0.72);
  border: 1px solid rgba(80, 116, 84, 0.26);
}

.vision-intro {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: start;
  padding: 92px 8vw;
  background: #fffdf6;
}

.vision-intro h2,
.vision-statement h2,
.vision-split h2,
.vision-final h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.22;
  font-weight: 400;
  color: #253a2e;
  letter-spacing: 0.02em;
}

.vision-intro > p,
.vision-split p:not(.vision-kicker) {
  margin: 0;
  color: #5b6b60;
  font-size: 18px;
  line-height: 2;
}

.vision-image-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #eef0e5;
}

.vision-image-band article {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.vision-image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(1.04);
}

.vision-image-band article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 246, 0.06), rgba(255, 253, 246, 0.88));
}

.vision-image-band div {
  position: relative;
  z-index: 1;
  padding: 44px 4vw;
  color: #253a2e;
}

.vision-image-band span,
.vision-columns span {
  display: block;
  margin-bottom: 12px;
  color: #8a713a;
  font-weight: 900;
  font-size: 13px;
}

.vision-image-band h3,
.vision-columns h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.vision-image-band p,
.vision-columns p {
  max-width: 520px;
  margin: 0;
  color: #5b6b60;
  line-height: 1.82;
}

.vision-statement {
  padding: 104px 8vw 96px;
  background: #f8f5ec;
}

.vision-statement > h2 {
  max-width: 980px;
}

.vision-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.vision-columns article {
  min-height: 238px;
  padding: 28px;
  border: 1px solid #e3dac7;
  background: rgba(255, 253, 246, 0.78);
}

.vision-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  background: #fffdf6;
}

.vision-split img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  filter: saturate(0.95) brightness(1.08);
}

.vision-split div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 7vw 80px 5vw;
}

.vision-split p:not(.vision-kicker) {
  margin-top: 28px;
}

.vision-final {
  padding: 108px 8vw;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 245, 236, 0.2), #f8f5ec),
    #eef0e5;
}

.vision-final h2 {
  max-width: 900px;
  margin: 0 auto;
}

.vision-final .vision-actions {
  justify-content: center;
}

.vision-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 6vw 42px;
  background: #fffdf6;
  border-top: 1px solid #e3dac7;
  color: #66756c;
}

.vision-footer div {
  display: grid;
  gap: 6px;
}

.vision-footer strong {
  color: #253a2e;
}

.vision-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.vision-footer a {
  color: #456854;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 860px) {
  .vision-nav {
    padding: 18px 22px;
    align-items: flex-start;
  }

  .vision-nav nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 180px;
  }

  .vision-nav a {
    font-size: 12px;
  }

  .vision-brand {
    gap: 8px;
  }

  .vision-brand strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .vision-hero {
    min-height: 82vh;
  }

  .vision-hero::after {
    background:
      linear-gradient(180deg, rgba(248, 245, 236, 0.88) 0%, rgba(248, 245, 236, 0.58) 46%, rgba(248, 245, 236, 0.9) 100%);
  }

  .vision-hero-copy {
    padding: 118px 24px 54px;
  }

  .vision-hero-copy h1 {
    font-size: 48px;
  }

  .vision-hero-copy h2 {
    font-size: 24px;
  }

  .vision-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vision-intro,
  .vision-image-band,
  .vision-columns,
  .vision-split {
    grid-template-columns: 1fr;
  }

  .vision-intro,
  .vision-statement,
  .vision-final {
    padding: 62px 24px;
  }

  .vision-intro {
    gap: 28px;
  }

  .vision-intro > p,
  .vision-split p:not(.vision-kicker) {
    font-size: 16px;
    line-height: 1.88;
  }

  .vision-image-band article {
    min-height: 420px;
  }

  .vision-image-band div {
    padding: 34px 24px;
  }

  .vision-columns {
    margin-top: 36px;
  }

  .vision-split img {
    min-height: 360px;
  }

  .vision-split div {
    padding: 54px 24px;
  }

  .vision-footer {
    display: grid;
  }
}

/* Home simple: one image, light text */
.home-simple {
  min-height: 100vh;
  margin: 0;
  color: #fff9e9;
  background: #1f3b2d;
}

.simple-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 48, 36, 0.68), rgba(20, 48, 36, 0.34), rgba(20, 48, 36, 0.12)),
    linear-gradient(180deg, rgba(20, 48, 36, 0.1), rgba(20, 48, 36, 0.42)),
    url("/images/hero.jpg") center / cover no-repeat;
}

.simple-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 6vw;
}

.simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.simple-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 233, 0.72);
  background: rgba(255, 249, 233, 0.08);
  font-family: var(--serif);
  font-size: 18px;
}

.simple-brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.simple-nav nav {
  display: flex;
  gap: 26px;
}

.simple-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.simple-login-nav {
  align-items: center;
  gap: 10px;
}

.simple-login-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 249, 233, 0.52);
  border-radius: 4px;
  background: rgba(255, 249, 233, 0.1);
  color: #fff9e9;
  box-shadow: 0 12px 28px rgba(10, 24, 18, 0.12);
  backdrop-filter: blur(10px);
}

.simple-login-nav a:hover {
  background: rgba(255, 249, 233, 0.18);
  border-color: rgba(255, 249, 233, 0.82);
}

.simple-login-nav a:first-child {
  color: #244234;
  border-color: rgba(255, 249, 233, 0.88);
  background: rgba(255, 249, 233, 0.9);
}

.simple-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, 100%);
  padding: 40px 6vw 64px;
}

.simple-copy p:first-child {
  margin: 0 0 18px;
  color: #f2d47a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.simple-copy h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.simple-copy h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.simple-copy > div:first-of-type {
  width: 82px;
  height: 2px;
  margin: 28px 0;
  background: rgba(255, 249, 233, 0.82);
}

.simple-lede {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 249, 233, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.simple-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.simple-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(255, 249, 233, 0.66);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 249, 233, 0.08);
}

.simple-actions a:first-child {
  background: rgba(255, 249, 233, 0.9);
  color: #244234;
}

.simple-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0 6vw 32px;
  color: rgba(255, 249, 233, 0.78);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .simple-nav {
    align-items: flex-start;
    padding: 18px 22px;
  }

  .simple-brand {
    gap: 8px;
  }

  .simple-brand strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .simple-nav nav {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 224px;
  }

  .simple-nav a {
    font-size: 12px;
  }

  .simple-login-nav a {
    min-height: 34px;
    padding: 0 10px;
  }

  .simple-copy {
    padding: 40px 22px 48px;
  }

  .simple-copy h1 {
    font-size: 64px;
  }

  .simple-copy h2 {
    font-size: 26px;
  }

  .simple-lede {
    font-size: 16px;
    line-height: 1.78;
  }

  .simple-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .simple-footer {
    padding: 0 22px 26px;
    gap: 12px;
  }
}

/* Simple scrolling homepage */
.simple-no-scrollbar,
.simple-no-scrollbar body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.simple-no-scrollbar::-webkit-scrollbar,
.simple-no-scrollbar body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-simple {
  color: #fff9e9;
  background: #203e30;
}

.simple-fixed {
  position: fixed;
  inset: 0 0 auto 0;
}

.simple-scroll {
  width: 100%;
}

.simple-section {
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.simple-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 54, 40, 0.64), rgba(23, 54, 40, 0.28), rgba(23, 54, 40, 0.08)),
    linear-gradient(180deg, rgba(23, 54, 40, 0.1), rgba(23, 54, 40, 0.44));
}

.simple-section-hero {
  background-image: url("/images/hero.jpg");
}

.simple-section-origin {
  background-image: url("/images/yard.jpg");
}

.simple-section-chain {
  background-image: url("/images/dew.jpg");
}

.simple-section-together {
  background-image: url("/images/aside.jpg");
  justify-content: center;
  text-align: center;
}

.simple-section-together::before {
  background:
    linear-gradient(180deg, rgba(23, 54, 40, 0.2), rgba(23, 54, 40, 0.62)),
    linear-gradient(90deg, rgba(23, 54, 40, 0.34), rgba(23, 54, 40, 0.16));
}

.simple-section .simple-copy {
  align-self: center;
}

.simple-copy.right {
  margin-left: auto;
  margin-right: 2vw;
}

.simple-copy.center {
  margin: 0 auto;
  text-align: center;
}

.simple-copy.center > div:first-of-type {
  margin-left: auto;
  margin-right: auto;
}

.simple-copy.center .simple-actions {
  justify-content: center;
}

.simple-section-together .simple-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Logged-in workbenches */
.dash {
  --dash-image: url("/images/hero.jpg");
  min-height: 100vh;
  color: #25362d;
  background: #f8f5ec;
  letter-spacing: 0;
}

.dash-merchant {
  --dash-image: url("/images/yard.jpg");
}

.dash-customer {
  --dash-image: url("/images/aside.jpg");
}

.dash-employee {
  --dash-image: url("/images/dew.jpg");
}

.dash::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 430px;
  background:
    linear-gradient(90deg, rgba(20, 48, 36, 0.88), rgba(20, 48, 36, 0.54), rgba(20, 48, 36, 0.22)),
    linear-gradient(180deg, rgba(20, 48, 36, 0.1), rgba(20, 48, 36, 0.9)),
    var(--dash-image) center / cover no-repeat;
}

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  color: #fff9e9;
  border-bottom: 1px solid rgba(255, 249, 233, 0.16);
  background: rgba(23, 54, 40, 0.72);
  backdrop-filter: blur(14px);
}

.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.dash-brand .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 233, 0.72);
  background: rgba(255, 249, 233, 0.08);
  font-family: var(--serif);
  font-size: 18px;
}

.dash-brand .brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.dash-nav .who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(255, 249, 233, 0.86);
  font-size: 13px;
  line-height: 1.4;
}

.dash-nav .btn.secondary {
  min-height: 34px;
  padding: 0 12px;
  color: #fff9e9;
  border-color: rgba(255, 249, 233, 0.62);
  background: rgba(255, 249, 233, 0.08);
}

.dash-main {
  max-width: none;
  padding: 0 6vw 84px;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 44px;
  align-items: end;
  width: min(1180px, 100%);
  min-height: 300px;
  margin: 0 auto;
  padding: 62px 0 46px;
  color: #fff9e9;
}

.dash-kicker {
  margin: 0 0 16px;
  color: #f2d47a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.dash-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0;
}

.dash-main .lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 249, 233, 0.86);
  font-size: 17px;
  line-height: 1.85;
}

.dash-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-flow span {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 249, 233, 0.2);
  border-radius: 8px;
  background: rgba(255, 249, 233, 0.1);
  color: rgba(255, 249, 233, 0.9);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(11, 24, 18, 0.16);
}

.dash-flow b {
  color: #f2d47a;
  font-size: 12px;
  font-weight: 900;
}

.dash-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stats,
.stats-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.stat {
  min-height: 112px;
  padding: 22px 20px;
  border: 1px solid #e3dac7;
  border-top: 4px solid #d7b65b;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 14px 34px rgba(16, 38, 28, 0.08);
}

.stat span {
  color: #68766d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.stat b {
  display: block;
  margin-top: 8px;
  color: #23392d;
  font-family: var(--sans);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.tabs button {
  min-height: 40px;
  appearance: none;
  padding: 0 16px;
  border: 1px solid #d9d0bd;
  border-radius: 4px;
  background: rgba(255, 253, 246, 0.78);
  color: #405247;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.tabs button.active {
  color: #fff9e9;
  border-color: #173529;
  background: #173529;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.card,
.table-wrap {
  border: 1px solid #e3dac7;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 16px 40px rgba(16, 38, 28, 0.08);
}

.card {
  margin-bottom: 18px;
  padding: 24px;
}

.card h2 {
  margin: 0 0 16px;
  color: #253a2e;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0;
}

.card .lead,
.panel .lead {
  margin: 0 0 18px;
  color: #5b6b60;
  font-size: 15px;
  line-height: 1.78;
}

.table-wrap {
  overflow: auto;
}

table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  color: #25362d;
  font-size: 14px;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ece5d8;
}

th {
  color: #5c6b62;
  background: #f4efe2;
  font-weight: 900;
}

tbody tr:hover {
  background: rgba(238, 240, 229, 0.46);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #173529;
  border-radius: 4px;
  background: #173529;
  color: #fff9e9;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0;
}

.btn:hover {
  background: #244b39;
}

.btn.secondary {
  color: #173529;
  border-color: #93a28f;
  background: rgba(255, 253, 246, 0.7);
}

.btn.secondary:hover {
  background: #fffdf6;
}

.btn.danger {
  border-color: #9c3b2e;
  background: #9c3b2e;
}

.row-actions .btn,
.row-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.status-pending,
.status-pending_review {
  color: #9a6043;
}

.status-approved,
.status-paid,
.status-inbounded {
  color: #2f6f4a;
}

.status-rejected {
  color: #9c3b2e;
}

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

.form-stack label {
  display: grid;
  gap: 8px;
  color: #516158;
  font-size: 13px;
  font-weight: 800;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid #d9d0bd;
  border-radius: 4px;
  background: #fffdf6;
  color: #25362d;
  padding: 0 12px;
  font-size: 15px;
}

.form-stack textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: 3px solid rgba(215, 182, 91, 0.32);
  border-color: #b99a4f;
}

#pending .card {
  max-width: 720px;
}

#pending .card p {
  margin: 16px 0 0;
  color: #5b6b60;
  line-height: 1.78;
}

@media (max-width: 980px) {
  .dash-main {
    padding-inline: 24px;
  }

  .dash-nav {
    padding-inline: 24px;
  }

  .dash-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 52px 0 34px;
  }

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

@media (max-width: 640px) {
  .dash-nav {
    align-items: flex-start;
    gap: 14px;
  }

  .dash-brand {
    gap: 8px;
  }

  .dash-brand .brand-name {
    font-size: 14px;
    white-space: nowrap;
  }

  .dash-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .dash-nav .who {
    max-width: 180px;
  }

  .dash-main {
    padding-inline: 20px;
  }

  .dash-hero {
    padding-top: 42px;
  }

  .dash-main h1 {
    font-size: 42px;
  }

  .dash-flow,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tabs button {
    width: 100%;
  }

  .card {
    padding: 20px;
  }
}

.dash-flow span {
  background: rgba(23, 54, 40, 0.42);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .dash::before {
    height: 720px;
  }

  .dash-flow span {
    background: rgba(23, 54, 40, 0.64);
  }
}

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

.trace-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e3dac7;
  border-radius: 8px;
  background: #f8f5ec;
}

.trace-grid .wide {
  grid-column: span 2;
}

.trace-grid span {
  color: #68766d;
  font-size: 13px;
  font-weight: 800;
}

.trace-grid strong {
  color: #253a2e;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .trace-grid,
  .trace-grid .wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}
.catalog-main {
  padding-top: 58px;
}

.catalog-main > h1,
.catalog-main > .dash-kicker {
  color: #fff9e9;
}

.catalog-main > .lead {
  color: rgba(255, 249, 233, 0.86);
}
.privacy-note {
  margin: 20px 0 0;
  color: #5b6b60;
  font-size: 15px;
  line-height: 1.78;
}

/* Role sidebars for logged-in workbenches */
.dash-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 276px;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px;
  color: #fff9e9;
  background:
    linear-gradient(180deg, rgba(20, 48, 36, 0.94), rgba(14, 32, 24, 0.98)),
    var(--dash-image) center / cover no-repeat;
  border-right: 1px solid rgba(255, 249, 233, 0.14);
  box-shadow: 18px 0 46px rgba(10, 24, 18, 0.18);
}

.dash-side-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.dash-side-brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 233, 0.72);
  border-radius: 6px;
  background: rgba(255, 249, 233, 0.09);
  font-family: var(--serif);
  font-size: 18px;
}

.dash-side-brand strong {
  font-size: 16px;
  font-weight: 900;
}

.dash-side-user {
  display: grid;
  gap: 7px;
  padding: 18px 0 16px;
  border-top: 1px solid rgba(255, 249, 233, 0.14);
  border-bottom: 1px solid rgba(255, 249, 233, 0.14);
}

.dash-side-user span,
.dash-top-title span {
  color: #f2d47a;
  font-size: 12px;
  font-weight: 900;
}

.dash-side-user strong {
  color: #fff9e9;
  font-size: 15px;
  line-height: 1.4;
}

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

.dash-side-menu button,
.dash-side-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 249, 233, 0.18);
  border-radius: 6px;
  background: rgba(255, 249, 233, 0.06);
  color: rgba(255, 249, 233, 0.86);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.dash-side-menu button span {
  color: #f2d47a;
  font-size: 12px;
  font-weight: 900;
}

.dash-side-menu button.active,
.dash-side-link:hover {
  color: #243e31;
  border-color: rgba(255, 249, 233, 0.92);
  background: rgba(255, 249, 233, 0.92);
}

.dash-side-menu button.active span {
  color: #8a6a22;
}

.dash-side-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.dash-side-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.dash-side-links button {
  font-family: inherit;
}

.dash-sidebar ~ .dash-nav,
.dash-sidebar ~ .dash-main {
  margin-left: 276px;
}

.dash-sidebar ~ .dash-nav {
  padding-left: 32px;
  padding-right: 32px;
}

.dash-sidebar ~ .dash-main {
  padding-left: 32px;
  padding-right: 32px;
}

.dash-top-title {
  display: grid;
  gap: 4px;
}

.dash-top-title strong {
  color: #fff9e9;
  font-size: 18px;
  line-height: 1.2;
}

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

.dash-guide-grid article {
  min-height: 168px;
  padding: 18px;
  border: 1px solid #e3dac7;
  border-radius: 8px;
  background: #f8f5ec;
}

.dash-guide-grid span {
  color: #9a6043;
  font-size: 13px;
  font-weight: 900;
}

.dash-guide-grid strong {
  display: block;
  margin: 10px 0 8px;
  color: #253a2e;
  font-size: 17px;
}

.dash-guide-grid p {
  margin: 0;
  color: #5b6b60;
  font-size: 14px;
  line-height: 1.68;
}

@media (max-width: 980px) {
  .dash-sidebar {
    position: relative;
    inset: 0 0 auto 0;
    width: auto;
    min-height: 0;
    gap: 14px;
    padding: 16px 24px;
  }

  .dash-sidebar ~ .dash-nav,
  .dash-sidebar ~ .dash-main {
    margin-left: 0;
  }

  .dash-sidebar ~ .dash-nav,
  .dash-sidebar ~ .dash-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dash-side-user {
    padding: 12px 0;
  }

  .dash-side-menu,
  .dash-side-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dash-side-menu button,
  .dash-side-link {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dash-side-links {
    margin-top: 0;
  }

  .dash-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-sidebar {
    padding: 14px 20px;
  }

  .dash-sidebar ~ .dash-nav,
  .dash-sidebar ~ .dash-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dash-top-title strong {
    font-size: 16px;
  }

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

/* Qingshan app-shell refinement inspired by dyssystem */
.dash-shell {
  --qs-shell-sidebar: 204px;
  --qs-shell-topbar: 64px;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: var(--qs-shell-sidebar) minmax(0, 1fr);
  grid-template-rows: var(--qs-shell-topbar) minmax(0, 1fr);
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  overflow: hidden;
  background: #f5f6f1;
  color: #13251c;
}

.dash-shell::before {
  display: none;
}

.dash-shell .dash-sidebar {
  grid-area: sidebar;
  position: relative;
  inset: auto;
  width: auto;
  height: 100vh;
  min-height: 0;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  color: #13251c;
  background: linear-gradient(180deg, #fbfbf8 0%, #f0f3ed 100%);
  border-right: 1px solid #dde5d8;
  box-shadow: 2px 0 24px rgba(16, 38, 28, 0.06);
}

.dash-shell .dash-sidebar ~ .dash-nav,
.dash-shell .dash-sidebar ~ .dash-main {
  margin-left: 0;
}

.dash-shell .dash-nav {
  grid-area: topbar;
  position: static;
  min-height: var(--qs-shell-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: #13251c;
  border-bottom: 1px solid #dde5d8;
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.04);
  backdrop-filter: blur(14px);
}

.dash-shell .dash-main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  max-width: none;
  height: 100%;
  overflow: auto;
  padding: 16px 18px 36px;
  background: #f5f6f1;
}

.dash-shell .dash-side-brand {
  min-height: var(--qs-shell-topbar);
  padding: 0 14px;
  border-bottom: 1px solid #e5eadf;
  color: #13251c;
}

.dash-shell .dash-side-brand span {
  width: 36px;
  height: 36px;
  border: 1px solid #cfdcc8;
  border-radius: 10px;
  background: #fffdf6;
  color: #1d4332;
  font-size: 17px;
}

.dash-shell .dash-side-brand strong {
  overflow: hidden;
  color: #13251c;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-shell .dash-side-user {
  gap: 3px;
  margin: 0;
  padding: 12px 14px 14px;
  border-top: 0;
  border-bottom: 1px solid #e5eadf;
  background: rgba(255, 253, 246, 0.62);
}

.dash-shell .dash-side-user span,
.dash-shell .dash-top-title span {
  color: #66806f;
  font-size: 11px;
  font-weight: 800;
}

.dash-shell .dash-side-user strong {
  overflow: hidden;
  color: #13251c;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-shell .dash-side-section-label {
  display: block;
  padding: 14px 14px 6px;
  color: #3f7a58;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.dash-shell .dash-side-menu {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
}

.dash-shell .dash-side-menu button,
.dash-shell .dash-side-link {
  min-height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #65746b;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.dash-shell .dash-side-menu button:hover,
.dash-shell .dash-side-link:hover {
  color: #13251c;
  background: rgba(29, 67, 50, 0.06);
}

.dash-shell .dash-side-menu button.active {
  color: #1d4332;
  border-color: rgba(63, 122, 88, 0.28);
  background: rgba(63, 122, 88, 0.12);
}

.dash-shell .dash-side-menu button span {
  width: 20px;
  color: #8a9a91;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.dash-shell .dash-side-menu button.active span {
  color: #1d4332;
}

.dash-shell .dash-side-links {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid #e5eadf;
}

.dash-shell .dash-top-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dash-shell .dash-top-title strong {
  overflow: hidden;
  color: #13251c;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-shell .dash-nav .who {
  max-width: 50%;
  color: #65746b;
  font-size: 13px;
}

.dash-shell .dash-hero {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 14px;
  align-items: stretch;
  color: #13251c;
}

.dash-shell .dash-hero > div:first-child,
.dash-shell .dash-flow {
  border: 1px solid #e0e6db;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.04);
}

.dash-shell .dash-hero > div:first-child {
  padding: 18px 20px;
}

.dash-shell .dash-kicker {
  margin: 0 0 8px;
  color: #3f7a58;
  font-size: 12px;
  font-weight: 900;
}

.dash-shell .dash-main h1 {
  margin: 0;
  color: #13251c;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.dash-shell .dash-main .lead {
  max-width: 820px;
  margin: 8px 0 0;
  color: #65746b;
  font-size: 14px;
  line-height: 1.65;
}

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

.dash-shell .dash-flow span {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #e6eadf;
  border-radius: 10px;
  background: #f8faf4;
  color: #34473b;
  box-shadow: none;
  font-size: 13px;
}

.dash-shell .dash-flow b {
  color: #8a6a22;
}

.dash-shell .dash-workspace {
  width: 100%;
}

.dash-shell .stats,
.dash-shell .stats-compact {
  gap: 10px;
  margin-bottom: 14px;
}

.dash-shell .stat {
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid #e0e6db;
  border-top: 3px solid #3f7a58;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.04);
}

.dash-shell .stat:nth-child(2) {
  border-top-color: #c4a35a;
}

.dash-shell .stat:nth-child(3) {
  border-top-color: #6b8f71;
}

.dash-shell .stat:nth-child(4) {
  border-top-color: #9a6043;
}

.dash-shell .stat span {
  color: #65746b;
  font-size: 12px;
  font-weight: 800;
}

.dash-shell .stat b {
  margin-top: 6px;
  color: #13251c;
  font-size: 28px;
  font-weight: 900;
}

.dash-shell .card,
.dash-shell .table-wrap {
  border: 1px solid #e0e6db;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.04);
}

.dash-shell .card {
  margin-bottom: 14px;
  padding: 18px;
}

.dash-shell .card h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.dash-shell table {
  min-width: 860px;
  font-size: 13px;
}

.dash-shell th,
.dash-shell td {
  padding: 11px 12px;
}

.dash-shell th {
  color: #516158;
  background: #f3f5ef;
}

.dash-shell .btn {
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.dash-shell .status-pill {
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
}

.dash-shell .dash-guide-grid article {
  min-height: 142px;
  border-radius: 12px;
  background: #f8faf4;
}

@media (max-width: 980px) {
  .dash-shell {
    height: auto;
    max-height: none;
    min-height: 100vh;
    display: block;
    overflow: auto;
  }

  .dash-shell .dash-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .dash-shell .dash-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 58px;
    padding: 10px 20px;
  }

  .dash-shell .dash-nav .who {
    max-width: none;
  }

  .dash-shell .dash-main {
    height: auto;
    overflow: visible;
    padding: 14px 20px 34px;
  }

  .dash-shell .dash-side-brand {
    min-height: 58px;
  }

  .dash-shell .dash-side-menu,
  .dash-shell .dash-side-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .dash-shell .dash-side-menu button,
  .dash-shell .dash-side-link {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

@media (max-width: 640px) {
  .dash-shell .dash-nav {
    align-items: flex-start;
  }

  .dash-shell .dash-main h1 {
    font-size: 22px;
  }

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


.card-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-head-actions .lead { margin-bottom: 0; }
.qs-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid #e0e6db;
  border-radius: 12px;
  padding: 0;
  color: #13251c;
  background: #fffdf6;
  box-shadow: 0 28px 80px rgba(16, 38, 28, 0.24);
}
.qs-dialog::backdrop { background: rgba(16, 38, 28, 0.42); }
.dialog-panel { padding: 20px; }
.dialog-panel h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .card-head-actions { display: grid; }
  .card-head-actions .btn { width: 100%; }
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 16px;
}
.signature-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.signature-pad {
  width: 100%;
  height: 180px;
  border: 1px solid #cfd8c8;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.check-line input {
  width: auto;
  margin: 0;
}
@media (max-width: 780px) {
  .signature-grid { grid-template-columns: 1fr; }
}
/* Merchant mobile app shell */
.merchant-app {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #13251c;
  background: #f5f6f1;
}
.merchant-app::before { display: none; }
.merchant-app-top {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid #dfe7d8;
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 0 2px 16px rgba(16, 38, 28, 0.08);
  backdrop-filter: blur(14px);
}
.merchant-app-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #13251c;
  text-decoration: none;
}
.merchant-app-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfdcc8;
  border-radius: 8px;
  background: #fffdf6;
  color: #1d4332;
  font-family: var(--serif);
  font-size: 16px;
}
.merchant-app-brand strong {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}
.merchant-app-user {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.merchant-app-user small {
  color: #66806f;
  font-size: 11px;
  font-weight: 900;
}
.merchant-app-user b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-link-btn,
.mini-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e1d0;
  border-radius: 8px;
  background: #fffdf6;
  color: #2d5b42;
  font-size: 13px;
  font-weight: 800;
}
.merchant-app-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
}
.merchant-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.merchant-summary article,
.merchant-card,
.mobile-record,
.empty-card {
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.05);
}
.merchant-summary article {
  min-height: 72px;
  padding: 12px;
  border-top: 3px solid #3f7a58;
}
.merchant-summary article:nth-child(2) { border-top-color: #c4a35a; }
.merchant-summary article:nth-child(3) { border-top-color: #6b8f71; }
.merchant-summary article:nth-child(4) { border-top-color: #9a6043; }
.merchant-summary span {
  display: block;
  color: #65746b;
  font-size: 12px;
  font-weight: 800;
}
.merchant-summary b {
  display: block;
  margin-top: 6px;
  color: #13251c;
  font-size: 23px;
  font-weight: 900;
}
.mobile-section {
  display: grid;
  gap: 12px;
}
.section-head {
  min-height: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.section-head span {
  color: #66806f;
  font-size: 12px;
  font-weight: 900;
}
.section-head strong {
  margin-right: auto;
  color: #13251c;
  font-size: 19px;
  font-weight: 900;
}
.merchant-card {
  padding: 14px;
}
.merchant-app .form-grid,
.merchant-app .signature-grid {
  grid-template-columns: 1fr;
}
.merchant-app .form-stack label {
  color: #516158;
  font-size: 13px;
  font-weight: 800;
}
.merchant-app .form-stack input,
.merchant-app .form-stack select,
.merchant-app .form-stack textarea {
  min-height: 44px;
  font-size: 16px;
}
.merchant-app .signature-pad {
  height: 170px;
  border-radius: 8px;
}
.merchant-app .btn {
  min-height: 42px;
  border-radius: 8px;
}
.merchant-app .btn.block {
  width: 100%;
}
.mobile-list {
  display: grid;
  gap: 10px;
}
.mobile-list.compact-list {
  gap: 8px;
}
.mobile-record {
  padding: 12px;
}
.mobile-record strong {
  display: block;
  color: #13251c;
  font-size: 15px;
  line-height: 1.35;
}
.record-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: #65746b;
  font-size: 13px;
  line-height: 1.45;
}
.record-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick-actions {
  margin-top: 0;
}
.empty-card {
  padding: 18px 12px;
  color: #65746b;
  font-size: 14px;
  text-align: center;
}
.merchant-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe7d8;
  background: rgba(255, 253, 246, 0.98);
  box-shadow: 0 -8px 24px rgba(16, 38, 28, 0.1);
  backdrop-filter: blur(14px);
}
.merchant-bottom-nav button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #69776d;
  box-shadow: none;
}
.merchant-bottom-nav button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3e9;
  color: #3f7a58;
  font-size: 13px;
  font-weight: 900;
}
.merchant-bottom-nav button b {
  font-size: 12px;
  font-weight: 900;
}
.merchant-bottom-nav button.active {
  border-color: rgba(63, 122, 88, 0.28);
  background: rgba(63, 122, 88, 0.1);
  color: #1d4332;
}
.merchant-bottom-nav button.active span {
  background: #1d4332;
  color: #fffdf6;
}
.merchant-bottom-nav button:disabled {
  opacity: 0.45;
}
@media (min-width: 900px) {
  .merchant-app-main { padding-top: 18px; }
  .merchant-app-top { width: min(100%, 760px); margin: 0 auto; border-left: 1px solid #dfe7d8; border-right: 1px solid #dfe7d8; }
  .merchant-bottom-nav { width: min(100%, 760px); margin: 0 auto; border-left: 1px solid #dfe7d8; border-right: 1px solid #dfe7d8; }
}
/* Merchant purchase event list */
.purchase-head {
  position: relative;
}
.primary-mini {
  border-color: #1d4332;
  background: #1d4332;
  color: #fffdf6;
}
.purchase-toolbar {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.05);
}
.purchase-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e1d0;
  border-radius: 8px;
  background: #f8faf4;
  color: #13251c;
  padding: 0 12px;
  font-size: 15px;
}
.purchase-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.purchase-filter-btn {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe4d5;
  border-radius: 999px;
  background: #f8faf4;
  color: #5c6c62;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 900;
}
.purchase-filter-btn b {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8eee3;
  color: #3f7a58;
  font-size: 11px;
}
.purchase-filter-btn.active {
  border-color: #1d4332;
  background: #1d4332;
  color: #fffdf6;
}
.purchase-filter-btn.active b {
  background: rgba(255, 253, 246, 0.18);
  color: #fffdf6;
}
.purchase-list-head,
.detail-section-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.purchase-list-head span,
.detail-section-title span {
  color: #66806f;
  font-size: 12px;
  font-weight: 900;
}
.purchase-list-head strong,
.detail-section-title strong {
  color: #13251c;
  font-size: 15px;
  font-weight: 900;
}
.purchase-card {
  cursor: pointer;
}
.purchase-card[hidden] {
  display: none;
}
.purchase-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.purchase-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.purchase-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-title span,
.purchase-next {
  color: #65746b;
  font-size: 12px;
  line-height: 1.45;
}
.purchase-status {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.purchase-status.warn { background: #fbf3d8; color: #8a6a22; }
.purchase-status.ok { background: #e4f0e7; color: #2f6f4a; }
.purchase-status.done { background: #e7eef6; color: #355e86; }
.purchase-status.danger { background: #f8e6e2; color: #9c3b2e; }
.purchase-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0 10px;
}
.purchase-step {
  min-width: 0;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #dde5d8;
  border-radius: 999px;
  background: #f8faf4;
  color: #7a877f;
  font-size: 11px;
  font-weight: 900;
}
.purchase-step.done {
  border-color: rgba(63, 122, 88, 0.36);
  background: rgba(63, 122, 88, 0.12);
  color: #1d4332;
}
.purchase-step.active {
  border-color: #c4a35a;
  background: #fbf3d8;
  color: #8a6a22;
}
.purchase-step.rejected {
  border-color: #d7aaa2;
  background: #f8e6e2;
  color: #9c3b2e;
}
.purchase-next {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8faf4;
}
.purchase-floating-action {
  position: fixed;
  right: max(18px, calc((100vw - 760px) / 2 + 18px));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 72;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #1d4332;
  color: #fffdf6;
  box-shadow: 0 14px 32px rgba(16, 38, 28, 0.24);
  font-size: 28px;
  font-weight: 700;
}
.dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dialog-title-row h2 {
  margin: 0;
}
.compact-warn {
  margin-bottom: 12px;
  text-align: left;
}
.purchase-detail-view {
  display: grid;
  gap: 14px;
}
.purchase-detail-hero {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #f8faf4;
}
.purchase-detail-hero h3 {
  margin: 0;
  color: #13251c;
  font-size: 20px;
  line-height: 1.3;
}
.purchase-detail-hero p {
  margin: 0;
  color: #65746b;
  font-size: 13px;
  line-height: 1.55;
}
.purchase-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.purchase-detail-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fffdf6;
}
.purchase-detail-grid span {
  color: #66806f;
  font-size: 12px;
  font-weight: 900;
}
.purchase-detail-grid strong,
.purchase-detail-grid a {
  overflow-wrap: anywhere;
  color: #13251c;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}
.purchase-detail-grid a {
  color: #1d4332;
}
.muted-text {
  color: #8b978f !important;
}
.detail-alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}
.detail-alert.danger {
  background: #f8e6e2;
  color: #9c3b2e;
}
.contract-box {
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fffdf6;
  padding: 12px;
}
.contract-box summary {
  cursor: pointer;
  color: #1d4332;
  font-weight: 900;
}
.contract-box pre {
  overflow: auto;
  margin: 12px 0 0;
  white-space: pre-wrap;
  color: #34473b;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.media-tile {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e0e6db;
  border-radius: 8px;
  color: #13251c;
  background: #fffdf6;
  text-decoration: none;
}
.media-tile img,
.media-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #eef3e9;
  object-fit: cover;
}
.media-video {
  display: grid;
  place-items: center;
  color: #1d4332;
  font-weight: 900;
}
.media-tile b {
  overflow: hidden;
  color: #13251c;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-tile small {
  color: #65746b;
  font-size: 12px;
}
.detail-actions {
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: #fffdf6;
}
@media (max-width: 640px) {
  .purchase-detail-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .qs-dialog.purchase-create-dialog,
  .qs-dialog.purchase-detail-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .purchase-create-dialog .dialog-panel,
  .purchase-detail-dialog .dialog-panel {
    min-height: 100%;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
/* Employee purchase audit and merchant list-first refinements */
.dash-shell .stats-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.role-note,
.permission-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe4d5;
  border-radius: 999px;
  background: #f8faf4;
  color: #516158;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.employee-purchase-dialog {
  width: min(1100px, calc(100vw - 32px));
}
.employee-purchase-detail {
  display: grid;
  gap: 14px;
}
.employee-detail-hero h3 {
  max-width: 860px;
}
.audit-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.audit-check {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fffdf6;
}
.audit-check b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
}
.audit-check.ok b {
  background: #e4f0e7;
  color: #2f6f4a;
}
.audit-check.warn b {
  background: #fbf3d8;
  color: #8a6a22;
}
.audit-check span {
  color: #13251c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}
.audit-check small {
  grid-column: 2;
  overflow-wrap: anywhere;
  color: #65746b;
  font-size: 12px;
  line-height: 1.4;
}
.employee-detail-actions {
  position: sticky;
  bottom: -20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 0;
  background: #fffdf6;
}
.employee-detail-actions .btn {
  min-width: 118px;
}
.account-balance-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-balance-card article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e0e6db;
  border-top: 3px solid #3f7a58;
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 1px 3px rgba(16, 38, 28, 0.05);
}
.account-balance-card article:nth-child(2) { border-top-color: #c4a35a; }
.account-balance-card article:nth-child(3) { border-top-color: #9a6043; }
.account-balance-card span {
  color: #65746b;
  font-size: 12px;
  font-weight: 900;
}
.account-balance-card strong {
  color: #13251c;
  font-size: 22px;
  font-weight: 900;
}
@media (max-width: 1120px) {
  .dash-shell .stats-compact,
  .audit-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .dash-shell .stats-compact,
  .audit-check-grid,
  .account-balance-card {
    grid-template-columns: 1fr;
  }
  .employee-purchase-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}
/* Procurement multi-item and inspection onboarding */
.simple-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.simple-hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 8px;
  color: #fff;
  background: rgba(19,37,28,0.28);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.purchase-items-editor {
  display: grid;
  gap: 10px;
}
.purchase-item-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7d8;
  border-radius: 8px;
  background: #fffdf6;
}
.purchase-item-row + .purchase-item-row {
  margin-top: 10px;
}
.purchase-item-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.purchase-item-row-head strong {
  color: #13251c;
  font-size: 14px;
  font-weight: 900;
}
.inspection-shell .dash-workspace {
  max-width: 1180px;
}
.wide-auth-card {
  width: min(680px, 100%);
}
@media (max-width: 640px) {
  .simple-hero-actions a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .purchase-item-row {
    padding: 10px;
  }
}