:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --ink: #121612;
  --muted: #6d746d;
  --faint: #949a92;
  --line: #deded4;
  --line-strong: #c9c8bd;
  --charcoal: #20251f;
  --forest: #244233;
  --moss: #6f8468;
  --gold: #b88a48;
  --clay: #a96954;
  --plum: #59455f;
  --sky: #657f8d;
  --shadow-sm: 0 8px 24px rgba(18, 22, 18, 0.07);
  --shadow-md: 0 18px 48px rgba(18, 22, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 22, 18, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 22, 18, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 60%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 138, 72, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(246, 245, 240, 0.88);
  border-bottom: 1px solid rgba(18, 22, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #f8f5ec;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(18, 22, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

nav a {
  min-width: 76px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

nav a:hover {
  background: white;
  color: var(--ink);
}

.top-actions,
.hero-actions,
.age-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.66fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  min-height: auto;
  padding: clamp(32px, 5vw, 56px) 0 26px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.status-pill,
.product-meta,
.form-head span,
.signal-top span,
.signal-grid span,
.metric-row span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(36, 66, 51, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
}

.hero h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 3.55rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy > p:not(.status-pill) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.trust-row span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 22, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.primary,
.secondary,
.ghost,
.icon-button,
.chip {
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 780;
}

.primary {
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: white;
  box-shadow: 0 8px 18px rgba(18, 22, 18, 0.15);
}

.primary:hover {
  background: #111510;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.secondary:hover,
.icon-button:hover,
.ghost:hover {
  border-color: var(--line-strong);
  background: white;
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary,
.secondary,
.ghost,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  text-decoration: none;
}

.compact {
  min-height: 38px;
}

.icon-button {
  position: relative;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.saved-count {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--gold);
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
}

.signal-panel {
  overflow: hidden;
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.signal-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4ed;
  color: var(--forest) !important;
  font-size: 0.76rem !important;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #397c55;
}

.signal-map {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 246, 0.95)),
    linear-gradient(90deg, rgba(18, 22, 18, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 22, 18, 0.045) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.mini-drop {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.mini-drop.active {
  border-color: rgba(36, 66, 51, 0.38);
  background: #f5f8f3;
}

.mini-drop.muted {
  background: repeating-linear-gradient(135deg, #f9f8f3 0 9px, #f0eee6 9px 18px);
}

.mini-drop span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.mini-drop strong {
  margin-top: 5px;
  font-size: 1.25rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.signal-grid div {
  padding: 16px 18px;
}

.signal-grid div + div {
  border-left: 1px solid var(--line);
}

.signal-grid strong,
.metric-row strong {
  display: block;
  margin-top: 5px;
  font-size: 1.08rem;
}

.controls {
  display: grid;
  gap: 13px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.role-workspaces {
  display: grid;
  gap: 16px;
  margin: 10px 0 24px;
  padding: 18px;
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.role-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.role-header h2 {
  margin-bottom: 0;
  font-size: 1.78rem;
  line-height: 1.14;
}

.role-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.role-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 820;
}

.role-tab.active {
  border-color: rgba(18, 22, 18, 0.12);
  background: var(--charcoal);
  color: white;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1fr;
  gap: 12px;
}

.secondary-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-top: 12px;
}

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

.wide-panel {
  min-width: 0;
}

.workspace-panel {
  min-width: 0;
  min-height: 224px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.workspace-panel h3 {
  margin-bottom: 9px;
  font-size: 1.04rem;
  line-height: 1.25;
}

.workspace-panel p,
.check-list,
.lead-list {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.lead-panel {
  background:
    linear-gradient(135deg, rgba(36, 66, 51, 0.08), transparent 50%),
    white;
}

.workspace-role {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid rgba(36, 66, 51, 0.14);
  border-radius: 999px;
  background: #f5f8f3;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 850;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-list {
  display: grid;
  gap: 9px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.status-badge {
  flex: 0 0 auto;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: right;
}

.status-badge.done {
  background: #edf4ed;
  color: var(--forest);
}

.status-badge.warn {
  background: #f6efe4;
  color: #8c5e1f;
}

.status-badge.info {
  background: #eef2f4;
  color: var(--sky);
}

.check-list,
.lead-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.lead-list {
  padding-left: 0;
  list-style: none;
}

.lead-list strong,
.lead-list span {
  display: block;
}

.lead-list strong {
  color: var(--ink);
}

.lead-list span {
  margin-top: 2px;
  font-size: 0.82rem;
}

.account-form {
  display: grid;
  gap: 10px;
}

.account-form label {
  display: grid;
  gap: 7px;
}

.account-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.account-summary strong,
.account-summary span,
.account-summary small {
  display: block;
}

.account-summary span,
.account-summary small {
  color: var(--muted);
}

.warn-text {
  color: #8c5e1f !important;
}

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

.ops-list {
  display: grid;
  gap: 10px;
}

.ops-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.ops-row strong,
.ops-row span,
.ops-row small {
  display: block;
}

.ops-row span,
.ops-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.control-line,
.section-heading,
.product-meta-row,
.drop-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.controls label,
.business-form label,
.unlock-card label,
.account-form label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 780;
}

.access-state {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(89, 69, 95, 0.14);
  border-radius: 999px;
  background: #f2eef3;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 850;
}

.search-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.search-shell > span {
  padding-right: 12px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.search-shell input,
.controls input,
.business-form input,
.business-form select,
.business-form textarea,
.unlock-card input,
.unlock-card select,
.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.search-shell input {
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
}

.business-form input,
.business-form select,
.business-form textarea,
.unlock-card input,
.unlock-card select,
.account-form input,
.account-form select,
.account-form textarea {
  padding: 0 13px;
}

.business-form textarea,
.account-form textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

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

.chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 0.84rem;
}

.chip.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.section-heading {
  align-items: end;
  margin: 36px 0 18px;
}

.section-heading h2,
.split-section h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.12;
}

.section-heading > p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 156px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 66, 51, 0.07), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.empty-state span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 1.58rem;
  line-height: 1.12;
}

.empty-state p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.empty-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: end;
  gap: 9px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: rgba(18, 22, 18, 0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-art {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #263b31, #8a9b6c);
  color: white;
}

.product-art::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 72px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0 22%, rgba(255, 255, 255, 0.55) 22% 100%);
  opacity: 0.58;
  transform: rotate(-4deg);
}

.product-art::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.product-art.edibles {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #5a3430, #bd8062);
}

.product-art.vapes {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #263243, #667f8d);
}

.product-art.wellness {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #46394a, #8d7a92);
}

.product-art.accessories {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #343a36, #9a9c8e);
}

.product-art .state-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  min-width: 42px;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(18, 22, 18, 0.18);
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.product-art strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 2px;
  font-size: 1.85rem;
  line-height: 1;
}

.product-art small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta-row {
  align-items: start;
}

.product-title {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-copy {
  min-height: 44px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.seller-lock {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.seller-lock strong,
.seller-lock span {
  display: block;
}

.seller-lock span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.unlocked-seller {
  border-color: rgba(36, 66, 51, 0.22);
  background: #f5f8f3;
}

.blurred-name {
  display: inline-block;
  color: transparent;
  text-shadow: 0 0 8px rgba(18, 22, 18, 0.72);
  user-select: none;
}

.drop-facts {
  align-items: stretch;
}

.drop-facts span {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.drop-facts small {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  min-height: 26px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f0f1eb;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.square-action {
  min-width: 80px;
}

.full {
  width: 100%;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 26px;
  align-items: start;
  margin-top: 58px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow-md);
}

.business-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.metric-row div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.metric-row span {
  color: rgba(255, 255, 255, 0.52);
}

.metric-row strong {
  color: white;
  font-size: 1.35rem;
}

.business-form,
.unlock-card {
  display: grid;
  gap: 12px;
}

.business-form {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.business-form label,
.unlock-card label {
  display: grid;
  gap: 7px;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-head strong,
.form-head span,
.form-head small {
  display: block;
}

.form-head strong {
  margin-top: 3px;
  font-size: 1rem;
}

.form-head small {
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3efe7;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
}

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

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

.guardrails article {
  min-height: 174px;
  padding: 18px;
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.guardrails span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-size: 0.8rem;
  font-weight: 850;
}

.guardrails h3 {
  margin: 18px 0 8px;
}

.guardrails p {
  color: var(--muted);
  line-height: 1.5;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(18, 22, 18, 0.46);
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(440px, 100%);
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.close {
  float: right;
}

.saved-items {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.saved-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.saved-line strong,
.saved-line span,
.saved-line small {
  display: block;
}

.saved-line span,
.saved-line small,
.empty,
.drawer-footer p {
  color: var(--muted);
}

.saved-line span {
  margin-top: 4px;
  font-size: 0.88rem;
}

.saved-line small {
  margin-top: 4px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 22, 18, 0.72);
  backdrop-filter: blur(10px);
}

.age-gate.hidden {
  display: none;
}

.age-card {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.age-card h1 {
  margin-bottom: 16px;
  font-size: 2.7rem;
  line-height: 1;
}

.age-card p {
  color: var(--muted);
  line-height: 1.55;
}

.legal-small {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.unlock-modal {
  width: min(560px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-md);
}

.unlock-modal::backdrop {
  background: rgba(18, 22, 18, 0.55);
}

.unlock-card {
  padding: clamp(20px, 4vw, 30px);
}

.unlock-card h2 {
  margin-bottom: 4px;
}

.close-modal {
  justify-self: end;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink);
  line-height: 1.4;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 22px clamp(16px, 4vw, 48px) 34px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .split-section,
  .workspace-grid,
  .secondary-grid,
  .admin-console-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .role-header {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 66px;
    padding: 0 12px;
  }

  .brand small,
  .compact {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero-actions,
  .age-actions,
  .workspace-actions {
    display: grid;
  }

  .primary,
  .secondary,
  .ghost,
  .link-button {
    width: 100%;
  }

  .signal-panel {
    display: none;
  }

  .control-line,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .search-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
  }

  .search-shell > span {
    padding: 0;
  }

  .product-grid,
  .form-grid,
  .metric-row,
  .role-switcher {
    grid-template-columns: 1fr;
  }

  .role-switcher {
    display: grid;
  }

  .role-tab {
    width: 100%;
  }

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

  .saved-line {
    grid-template-columns: 1fr;
  }

  .empty-state {
    display: grid;
    align-items: start;
  }

  .empty-actions {
    display: grid;
    justify-content: stretch;
  }

  .ops-row {
    grid-template-columns: 1fr;
  }

  .ops-actions {
    justify-content: stretch;
  }

  .category-checks {
    grid-template-columns: 1fr;
  }
}

/* Early-access teaser additions */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modal-sub {
  margin: -0.25rem 0 0.75rem;
  color: var(--muted, #8a8a8a);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sample-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed currentColor;
  opacity: 0.8;
}

.live-tag {
  background: #edf4ed;
  color: var(--forest);
}

.footer-links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-links a {
  color: inherit;
}

/* Release-party signup */
.party-page {
  background:
    radial-gradient(circle at top right, rgba(101, 127, 141, 0.16), transparent 34rem),
    var(--bg);
}

.party-topbar {
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.party-shell {
  width: min(1120px, calc(100% - 32px));
  padding: clamp(28px, 5vw, 64px) 0 44px;
}

.party-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.58fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.party-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.party-copy > p:not(.status-pill) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.party-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.party-proof span,
.party-operator-strip article {
  border: 1px solid rgba(18, 22, 18, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.party-proof span {
  min-height: 32px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.party-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(18, 22, 18, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.party-message {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.4;
}

.party-message.error {
  color: #8d3b2f;
}

.party-operator-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.party-operator-strip article {
  padding: 16px;
}

.party-operator-strip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.party-operator-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

/* Legal page */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  line-height: 1.6;
}

.legal-page h1 {
  margin: 0.25rem 0 0.5rem;
}

.legal-page h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal-draft {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.legal-back {
  margin-top: 2.5rem;
}

.legal-back a {
  color: inherit;
}

@media (max-width: 980px) {
  .party-hero,
  .party-operator-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .party-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .party-copy h1 {
    font-size: 2.25rem;
  }

  .party-topbar nav {
    display: flex;
  }

  .party-topbar nav a {
    min-width: auto;
    padding-inline: 11px;
  }
}
