:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #647083;
  --line: #dde3ea;
  --accent: #0f6f61;
  --accent-soft: #dbeeea;
  --blue: #315f9a;
  --gold: #bd7a1f;
  --rose: #a4435a;
  --warning: #9b5c00;
  --danger: #9a2d2d;
  --shadow: 0 18px 45px rgba(22, 32, 42, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 95, 154, 0.12), transparent 30vw),
    linear-gradient(180deg, #fbfcfd 0, var(--bg) 360px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #111925, #17211c 62%, #102a2a);
  color: #f5f6f1;
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand,
.tenant-badge,
.metric,
.card,
.table-card,
.panel,
.label-sheet {
  border-radius: 8px;
}

.brand {
  display: grid;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-logo {
  width: min(100%, 228px);
  height: auto;
  display: block;
}

.tenant-brand-mark,
.tenant-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tenant-brand-mark {
  object-fit: contain;
  padding: 3px;
  background: #fff;
}

.brand small,
.field-label,
.tenant-badge small,
.muted {
  color: var(--muted);
}

.sidebar .field-label,
.brand small {
  color: #bac6bf;
}

.tenant-select,
.search-input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tenant-select:focus,
.search-input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}

.nav a {
  color: #dfe7e1;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

main {
  min-width: 0;
}

.topbar {
  min-height: 74px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tenant-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.top-actions,
.action-row,
.chips,
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-user {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.vault-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.vault-switch {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.vault-switch.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.content {
  padding: 28px;
  max-width: 1380px;
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.hero-v2 {
  align-items: stretch;
}

.product-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  margin: 0 0 18px;
  max-width: 840px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero p {
  font-size: 19px;
  line-height: 1.55;
  color: #4c554f;
  max-width: 740px;
}

.hero-logo {
  width: min(100%, 620px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.hero-visual {
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(15, 111, 97, 0.92), rgba(31, 36, 32, 0.82)),
    url("https://images.unsplash.com/photo-1607083206968-13611e3d76db?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  display: grid;
  align-content: end;
  padding: 24px;
  color: #fff;
}

.card-hero-visual {
  background:
    linear-gradient(145deg, rgba(8, 17, 31, 0.86), rgba(23, 109, 255, 0.62), rgba(15, 111, 97, 0.76)),
    url("assets/brand/social/halovault-og-image.png");
  background-size: cover;
  background-position: center;
}

.hero-plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.plan-chip {
  min-height: 86px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
}

.plan-chip.featured {
  border-color: color-mix(in srgb, var(--accent), #fff 28%);
  background: linear-gradient(180deg, var(--accent-soft), #fff);
}

.plan-chip span {
  color: var(--muted);
  font-size: 13px;
}

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

.card-vault-hero,
.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.card-vault-hero > div:first-child,
.pricing-hero > div:first-child,
.card-vault-status,
.pricing-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04), 0 16px 35px rgba(22, 32, 42, 0.04);
  padding: 22px;
}

.card-vault-hero h2,
.pricing-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.card-vault-hero p,
.pricing-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 780px;
}

.card-vault-status,
.pricing-callout {
  display: grid;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(23, 109, 255, 0.10), rgba(15, 111, 97, 0.12)),
    #fff;
}

.card-vault-status strong {
  font-size: 72px;
  line-height: 0.9;
}

.card-vault-status span,
.pricing-callout span {
  color: var(--muted);
  font-weight: 750;
}

.card-vault-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}

.card-vault-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.card-vault-tile {
  min-height: 280px;
  display: grid;
  grid-template-rows: 170px auto auto auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.card-vault-thumb {
  border-radius: 8px;
  background: #e9eef5;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.card-vault-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-vault-tile strong,
.card-vault-tile small {
  overflow-wrap: anywhere;
}

.card-vault-tile small {
  color: var(--muted);
}

.revenue-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fee-row,
.fee-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

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

.pricing-card {
  min-height: 470px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04), 0 16px 35px rgba(22, 32, 42, 0.04);
}

.pricing-card.featured {
  border-color: color-mix(in srgb, var(--accent), #fff 25%);
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  margin: 0;
  font-size: 26px;
}

.pricing-card .price {
  font-size: 42px;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.fee-box {
  margin-top: 14px;
}

.visual-tile {
  min-height: 112px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 14px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-head h1,
.page-head h2 {
  margin: 0 0 6px;
}

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

.metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.metric,
.card,
.table-card,
.panel,
.label-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04), 0 16px 35px rgba(22, 32, 42, 0.04);
}

.lift {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.lift:hover {
  border-color: color-mix(in srgb, var(--accent), #fff 42%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.metric {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 auto;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
  padding: 18px;
}

.landing-home-vault {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

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

.card-profile-panel {
  margin-top: 16px;
}

.card-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.card-profile-grid > div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.card-profile-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.card h3,
.panel h3 {
  margin: 0 0 10px;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  color: #59625c;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 750;
  background: var(--accent-soft);
  color: #0a584d;
}

.status.sold {
  background: #f0e3d0;
  color: #794300;
}

.status.draft,
.status.archived {
  background: #ecefeb;
  color: #56605a;
}

.status.listed {
  background: #dce9fa;
  color: #215a9a;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 38px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent), transparent 74%);
}

.ghost-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.danger-btn {
  background: #fff1f0;
  border-color: #efc5c1;
  color: var(--danger);
}

.icon-btn {
  width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border-color: var(--line);
}

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

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

.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e7ebe4;
  border: 1px solid var(--line);
  color: #59625c;
  font-weight: 800;
}

.photo-card {
  width: 118px;
  height: 118px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent), #fff 20%), rgba(49, 95, 154, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 8px, transparent 8px 16px);
  color: #fff;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.guide-hero > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04), 0 16px 35px rgba(22, 32, 42, 0.04);
}

.guide-hero h2 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.05;
}

.guide-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.guide-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.guide-command-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.guide-action,
.guide-mini-card,
.guide-article-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.guide-action:hover,
.guide-mini-card:hover,
.guide-article-card:hover,
.guide-category-card:hover {
  border-color: color-mix(in srgb, var(--accent), #fff 42%);
}

.guide-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 8px 0 14px;
}

.guide-section-head.compact {
  margin-top: 0;
}

.guide-section-head h2 {
  margin: 0;
}

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

.guide-category-card {
  min-height: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
}

.guide-category-card p {
  color: var(--muted);
  line-height: 1.45;
}

.guide-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.guide-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

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

.guide-article-card h3 {
  margin: 0;
}

.guide-article-card p,
.guide-mini-card span,
.guide-action span {
  color: var(--muted);
}

.guide-checklist {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.guide-checklist label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

.guide-search-results {
  margin-bottom: 18px;
}

.guide-search-results .guide-category-card {
  box-shadow: none;
}

.photo-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.card-photo-thumb {
  overflow: hidden;
  padding: 0;
  background: #0d1724;
}

.card-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-super-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(240px, 1fr);
  gap: 16px;
  margin-top: 16px;
}

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

.card-image-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.card-image-figure img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: contain;
  background: #e8eef5;
  display: block;
}

.card-image-figure figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-image-placeholder {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fafc;
  padding: 18px;
  text-align: center;
}

.card-super-notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.card-super-notes h4 {
  margin: 0 0 10px;
}

.card-super-notes p {
  margin: 8px 0;
}

.card-metadata-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.card-metadata-details summary {
  cursor: pointer;
  font-weight: 800;
}

.card-metadata-details pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.location-tree {
  display: grid;
  gap: 10px;
}

.location-node {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-node[data-level="1"] {
  margin-left: 22px;
}

.location-node[data-level="2"] {
  margin-left: 44px;
}

.location-node[data-level="3"] {
  margin-left: 66px;
}

.location-node[data-level="4"] {
  margin-left: 88px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 160px;
}

.fake-qr {
  width: 92px;
  height: 92px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 23px 23px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 23px 23px,
    #fff;
  border: 8px solid #fff;
  outline: 1px solid #111;
  margin-bottom: 10px;
}

.intake-layout,
.scan-layout {
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  align-items: start;
}

.sweep-layout {
  grid-template-columns: minmax(330px, 460px) minmax(0, 1fr);
  align-items: start;
}

.sweep-upload-panel h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  margin: 0 0 16px;
}

.sweep-upload {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent), #fff 24%);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  text-align: center;
  cursor: pointer;
}

.sweep-upload input {
  display: none;
}

.sweep-upload span {
  color: var(--muted);
}

.sweep-scene {
  position: relative;
  min-height: 300px;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 25, 37, 0.08), rgba(17, 25, 37, 0.78)),
    linear-gradient(120deg, rgba(49, 95, 154, 0.76), rgba(15, 111, 97, 0.72), rgba(189, 122, 31, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 42px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sweep-scene strong {
  font-size: 28px;
  line-height: 1.1;
}

.sweep-scene span {
  color: rgba(255, 255, 255, 0.78);
}

.sweep-zone-tag {
  position: absolute;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.sweep-zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sweep-hotspot {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(98, 229, 201, 0.26);
  box-shadow: 0 0 0 8px rgba(98, 229, 201, 0.12), 0 0 28px rgba(98, 229, 201, 0.62);
}

.change-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.price-warning {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #efd49a;
  border-radius: 8px;
  background: #fff8e8;
  color: #6f4a05;
  font-weight: 750;
}

.crop-correction-note {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--accent), #fff 48%);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.sweep-filters {
  margin-bottom: 14px;
}

.sweep-evidence {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.sweep-evidence-copy {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sweep-evidence-copy span {
  color: var(--muted);
}

.sweep-evidence-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sweep-evidence-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.sweep-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.change-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7faf8);
}

.change-card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: capitalize;
}

.change-card span {
  color: var(--muted);
  font-size: 13px;
}

.detected-grid {
  display: grid;
  gap: 12px;
}

.detected-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.detected-card[data-state="confirmed"] {
  border-color: color-mix(in srgb, var(--accent), #fff 45%);
}

.detected-card[data-state="editing"] {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.detected-card[data-state="ignored"] {
  opacity: 0.48;
}

.detected-card[data-state="merged"] {
  border-style: dashed;
  background: #f8faf9;
}

.detected-card[data-state="assigned"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 95, 154, 0.12);
}

.crop-preview {
  min-height: 150px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 850;
  background:
    linear-gradient(140deg, rgba(15, 111, 97, 0.84), rgba(49, 95, 154, 0.84)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 9px, transparent 9px 18px);
}

.crop-preview small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.detected-card-body {
  display: grid;
  gap: 10px;
}

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

.ocr-row,
.change-row,
.crop-correction-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f6f8f6;
  color: var(--muted);
}

.price-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: #f6fbf8;
}

.price-panel.needs-review {
  border-color: #efd49a;
  background: #fff8e8;
}

.price-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.price-panel-head strong,
.price-panel-head span {
  display: block;
}

.price-panel-head > div > span {
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 900;
}

.price-review-badge {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--warning);
  font-size: 12px;
  font-weight: 850;
}

.price-crop {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px dashed #d7c18c;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 232, 0.88)),
    repeating-linear-gradient(90deg, rgba(111, 74, 5, 0.11) 0 2px, transparent 2px 22px);
  color: #6f4a05;
  font-weight: 850;
}

.ocr-row strong,
.change-row strong,
.crop-correction-row strong {
  color: var(--ink);
  min-width: 58px;
}

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

.phone-frame {
  width: min(100%, 390px);
  margin: 0 auto;
  border: 10px solid #111925;
  border-radius: 28px;
  background: #101820;
  padding: 14px;
  box-shadow: var(--shadow);
  color: #fff;
}

.camera-top {
  width: 88px;
  height: 7px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: #2d3845;
}

.photo-capture,
.scanner-window {
  min-height: 430px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 25, 37, 0.12), rgba(17, 25, 37, 0.74)),
    linear-gradient(135deg, rgba(15, 111, 97, 0.72), rgba(189, 122, 31, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.photo-capture span,
.scanner-window span {
  color: #dce7e2;
}

.capture-reticle {
  width: 170px;
  height: 170px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18);
}

.scanner-window {
  min-height: 360px;
}

.scan-line {
  position: absolute;
  width: 78%;
  height: 3px;
  background: #62e5c9;
  box-shadow: 0 0 24px #62e5c9;
  animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-145px);
  }
  50% {
    transform: translateY(145px);
  }
  100% {
    transform: translateY(-145px);
  }
}

.phone-frame .primary-btn,
.phone-frame .search-input {
  width: 100%;
  margin-top: 12px;
}

.ai-review h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  margin: 0 0 18px;
}

.scan-hit {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
}

.pitch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: end;
  min-height: 460px;
  border-radius: 8px;
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pitch-hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  margin: 0 0 14px;
  max-width: 900px;
}

.pitch-hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.business-pitch {
  background:
    linear-gradient(130deg, rgba(15, 111, 97, 0.94), rgba(17, 25, 37, 0.83)),
    url("https://images.unsplash.com/photo-1611957083420-532a1a4b5f34?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.home-pitch {
  background:
    linear-gradient(130deg, rgba(49, 95, 154, 0.94), rgba(92, 65, 46, 0.78)),
    url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.pitch-stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.pitch-stat strong {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.meta-store-demo-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.meta-store-demo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.walkthrough {
  display: grid;
  gap: 12px;
}

.walk-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(22, 32, 42, 0.04);
}

.walk-step > span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.walk-step h3 {
  margin: 0 0 4px;
}

.mobile-dock {
  display: none;
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(680px, calc(100vw - 28px));
  box-shadow: var(--shadow);
}

dialog form {
  padding: 18px;
}

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

pre {
  white-space: pre-wrap;
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.45;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 111, 97, 0.12), rgba(49, 95, 154, 0.12)),
    var(--bg);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.auth-brand,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.auth-brand h1 {
  font-size: 54px;
  line-height: 1;
  margin: 0 0 14px;
}

.auth-brand p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-points {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.auth-points span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfd;
  font-weight: 750;
}

.auth-card {
  align-self: center;
}

.auth-card h2 {
  margin: 0 0 18px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.auth-submit {
  width: 100%;
}

.auth-error {
  border: 1px solid #efc5c1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff1f0;
  color: var(--danger);
}

.auth-secondary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding-bottom: 12px;
  }

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

  .brand {
    grid-template-columns: minmax(160px, 228px) minmax(0, 1fr);
  }

  .hero,
  .two-col,
  .three-col,
  .metrics,
  .intake-layout,
  .scan-layout,
  .sweep-layout,
  .pitch-hero,
  .guide-hero,
  .guide-layout,
  .card-vault-hero,
  .pricing-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .guide-category-grid,
  .guide-article-list,
  .hero-plan-strip,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .content {
    padding-bottom: 86px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .mobile-dock a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f2f5f7;
    font-size: 13px;
    font-weight: 800;
  }
}

@media (max-width: 640px) {
  .content,
  .topbar,
  .sidebar {
    padding: 16px;
  }

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

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

  .top-actions .ghost-btn,
  .top-actions .primary-btn {
    flex: 1 1 calc(50% - 8px);
  }

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

  .hero h1,
  .pitch-hero h1 {
    font-size: 42px;
  }

  .photo-capture,
  .scanner-window {
    min-height: 330px;
  }

  .scan-hit {
    grid-template-columns: 1fr;
  }

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

  .compact-form {
    grid-template-columns: 1fr;
  }

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

  .guide-category-grid,
  .guide-article-list,
  .guide-search-row,
  .hero-plan-strip,
  .pricing-grid,
  .fee-row,
  .card-super-grid,
  .card-media-frame,
  .card-profile-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero h2 {
    font-size: 30px;
  }

  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .mobile-dock,
  .page-head {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .content {
    padding: 0;
    max-width: none;
  }

  .label-sheet {
    border: 0;
    box-shadow: none;
  }

  .qr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .qr-card {
    break-inside: avoid;
    min-height: 180px;
  }
}
