:root {
  color-scheme: light;
  --font-ui:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --ink: #111a17;
  --muted: #5d6962;
  --line: #dce5df;
  --line-strong: #adbbb2;
  --green: #11875f;
  --green-soft: #dff3e9;
  --blue: #246b9f;
  --blue-soft: #e0f1f7;
  --amber: #b47616;
  --amber-soft: #f7ead5;
  --red: #b63d33;
  --brand-ink: #071f1a;
  --brand-mint: #17a873;
  --brand-teal: #0f766e;
  --brand-cyan: #2f88b8;
  --brand-violet: #5b5bd6;
  --brand-gold: #e6a73d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(20, 33, 28, 0.13);
  --shadow-soft: 0 18px 48px rgba(20, 33, 28, 0.08);
  font-family: var(--font-ui);
}

html.text-size-small {
  font-size: 15px;
}

html.text-size-medium {
  font-size: 16px;
}

html.text-size-large {
  font-size: 17.5px;
}

html.font-style-modern {
  --font-ui:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html.font-style-classic {
  --font-ui: Georgia, "Times New Roman", ui-serif, serif;
}

html.font-style-mono {
  --font-ui: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.34) 42%, rgba(255, 255, 255, 0)),
    linear-gradient(120deg, rgba(23, 168, 115, 0.08), transparent 32%, rgba(47, 136, 184, 0.08) 68%, transparent),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}

body.dashboard-mode {
  background: #f6f8f7;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0f1412;
  --surface: #161d1a;
  --surface-2: #1d2723;
  --ink: #eef6f1;
  --muted: #9aaba2;
  --line: #2b3933;
  --line-strong: #405149;
  --green: #59d99e;
  --green-soft: rgba(89, 217, 158, 0.15);
  --blue: #7fc5e3;
  --blue-soft: rgba(127, 197, 227, 0.16);
  --amber: #f0bd70;
  --amber-soft: rgba(240, 189, 112, 0.15);
  --red: #ff8279;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background:
    linear-gradient(180deg, rgba(28, 38, 33, 0.72), rgba(15, 20, 18, 0)),
    var(--bg);
}

body.theme-dark.dashboard-mode {
  background: #0f1412;
}

body.dashboard-mode .landing-shell,
body.dashboard-mode .auth-shell,
body.dashboard-mode .app-shell {
  display: none;
}

body.dashboard-mode .dev-entry-shell,
body.public-mode .landing-shell,
body.public-mode .dev-entry-shell {
  display: none;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing-shell,
.auth-shell,
.app-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
}

.landing-shell {
  width: min(1400px, calc(100vw - 32px));
  display: grid;
  gap: 28px;
  padding-top: 104px;
  padding-bottom: 42px;
}

.landing-shell * {
  min-width: 0;
}

.landing-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(1340px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 30;
  min-height: 74px;
  border: 1px solid rgba(173, 187, 178, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(20, 33, 28, 0.14);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 14px;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
}

.landing-logo-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17, 135, 95, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(223, 243, 233, 0.95), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(17, 135, 95, 0.1);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.landing-logo-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.landing-brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.landing-brand-copy strong {
  color: var(--brand-ink);
  font-size: 0.98rem;
  font-weight: 920;
}

.landing-brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.landing-nav-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav-actions button,
.landing-hero-actions button {
  white-space: normal;
  text-align: center;
}

.landing-language-select {
  min-width: 144px;
  border-right: 1px solid rgba(173, 187, 178, 0.62);
  padding-right: 12px;
  margin-right: 2px;
  align-self: center;
}

.landing-language-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.landing-language-select select {
  min-height: 42px;
  border-color: rgba(173, 187, 178, 0.82);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(20, 33, 28, 0.06);
}

.landing-nav .secondary-button {
  border-color: rgba(173, 187, 178, 0.84);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(20, 33, 28, 0.06);
}

.landing-nav .landing-ai-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(240, 189, 112, 0.7);
  background: linear-gradient(135deg, #ffffff 0%, #fff8e7 100%);
  color: #122119;
  box-shadow: 0 10px 22px rgba(240, 189, 112, 0.14);
}

.landing-nav .landing-ai-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: #c6811e;
}

.landing-nav .landing-ai-button:hover,
.landing-nav .landing-ai-button:focus-visible {
  border-color: rgba(232, 169, 79, 0.92);
  background: linear-gradient(135deg, #ffffff 0%, #ffedbd 100%);
  box-shadow: 0 12px 26px rgba(240, 189, 112, 0.22);
}

.landing-nav .primary-button {
  background: linear-gradient(135deg, #071f1a, #105b46 58%, #0f766e);
  box-shadow: 0 12px 28px rgba(7, 31, 26, 0.22);
}

.landing-hero {
  position: relative;
  min-height: clamp(520px, calc(100vh - 210px), 720px);
  border: 1px solid rgba(11, 47, 40, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #071f1a 0%, #0b332d 50%, #10242f 100%);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  align-content: center;
  isolation: isolate;
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.landing-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 31, 26, 0.96) 0%, rgba(7, 31, 26, 0.84) 34%, rgba(7, 31, 26, 0.44) 64%, rgba(7, 31, 26, 0.14) 100%),
    linear-gradient(0deg, rgba(7, 31, 26, 0.8) 0%, rgba(7, 31, 26, 0.12) 42%, rgba(7, 31, 26, 0.28) 100%);
}

.landing-hero::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

.landing-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero-frame {
  position: absolute;
  top: clamp(42px, 7vw, 88px);
  right: clamp(-180px, -8vw, -56px);
  width: min(920px, 78vw);
  height: min(560px, 66%);
  display: grid;
  place-items: center;
  opacity: 0.94;
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.38));
}

.landing-hero img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition: opacity 260ms ease, transform 420ms ease;
}

.landing-hero-frame.is-changing img {
  opacity: 0.16;
  transform: translateX(10px) scale(0.985);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  display: grid;
  gap: 24px;
  color: #f7fffb;
  justify-items: start;
  text-align: left;
}

.landing-hero .module-pill {
  width: max-content;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #c9f6e4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-hero h1 {
  margin: 0;
  max-width: 9.5ch;
  color: #ffffff;
  font-size: clamp(3.4rem, 8vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-hero p {
  margin: 0;
  max-width: 68ch;
  color: rgba(239, 250, 245, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.landing-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.landing-hero .secondary-button:hover,
.landing-hero .secondary-button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.landing-hero-points {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: landing-point;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-hero-points li {
  counter-increment: landing-point;
  position: relative;
  overflow: hidden;
  min-height: 82px;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #20322a;
  display: grid;
  align-items: center;
  align-content: end;
  justify-content: center;
  padding: 34px 18px 14px;
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 44px rgba(20, 33, 28, 0.07);
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
}

.landing-hero-points li::before,
.landing-hero-points li::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.landing-hero-points li::before {
  content: counter(landing-point, decimal-leading-zero);
  top: 10px;
  left: 50%;
  width: 38px;
  height: 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 135, 95, 0.18);
  border-radius: 999px;
  background: rgba(223, 243, 233, 0.82);
  color: #0d6f50;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.92;
  box-shadow: 0 8px 18px rgba(20, 33, 28, 0.06);
}

.landing-hero-points li::after {
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cyan), var(--brand-gold));
  opacity: 0.42;
}

.landing-hero-points li:nth-child(1) {
  background: linear-gradient(135deg, rgba(223, 243, 233, 0.78), rgba(255, 255, 255, 0.88));
}

.landing-hero-points li:nth-child(2) {
  background: linear-gradient(135deg, rgba(224, 241, 247, 0.78), rgba(255, 255, 255, 0.88));
}

.landing-hero-points li:nth-child(3) {
  background: linear-gradient(135deg, rgba(247, 234, 213, 0.78), rgba(255, 255, 255, 0.88));
}

.landing-rubros-block {
  border: 1px solid rgba(17, 135, 95, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 241, 247, 0.72) 48%, rgba(247, 234, 213, 0.5)),
    #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.landing-rubros-media {
  order: 2;
  background:
    linear-gradient(135deg, #061f1d, #082a25),
    #061f1d;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(12px, 2vw, 24px);
}

.landing-rubros-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.landing-rubros-copy {
  order: 1;
  padding: clamp(22px, 3.4vw, 38px) clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.landing-rubros-copy .screen-kicker {
  grid-column: 1;
  align-self: end;
}

.landing-rubros-copy h2 {
  grid-column: 1;
  margin: 0;
  max-width: 16ch;
  color: var(--brand-ink);
  font-size: clamp(1.95rem, 3.2vw, 3.05rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-rubros-copy > p:not(.screen-kicker) {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  max-width: 62ch;
  color: #405047;
  font-size: 1rem;
  line-height: 1.6;
}

.landing-rubros-grid {
  order: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.landing-rubros-grid article {
  border: 1px solid rgba(17, 135, 95, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
  display: grid;
  gap: 5px;
}

.landing-rubros-grid strong {
  color: #10241f;
  font-size: 0.9rem;
  font-weight: 920;
}

.landing-rubros-grid p {
  margin: 0;
  color: #53625b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.landing-store-strip {
  border: 1px solid rgba(47, 136, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(224, 241, 247, 0.86), rgba(255, 255, 255, 0.94) 52%, rgba(223, 243, 233, 0.78)),
    #ffffff;
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.landing-store-copy {
  display: grid;
  gap: 7px;
}

.landing-store-copy h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-store-copy p:last-child {
  margin: 0;
  max-width: 68ch;
  color: #405047;
  line-height: 1.55;
}

.landing-store-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  width: min(100%, 420px);
}

.landing-store-button {
  min-height: 48px;
  color: #ffffff;
  text-decoration: none;
}

.store-button-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  flex: 0 0 auto;
}

.store-button-icon span {
  display: block;
  border-radius: 2px;
}

.store-button-icon span:nth-child(1) {
  background: #f25022;
}

.store-button-icon span:nth-child(2) {
  background: #7fba00;
}

.store-button-icon span:nth-child(3) {
  background: #00a4ef;
}

.store-button-icon span:nth-child(4) {
  background: #ffb900;
}

.landing-hero-actions {
  justify-content: flex-start;
}

.landing-hero .landing-hero-builder-button {
  border: 1px solid rgba(255, 224, 158, 0.62);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff2ca 48%, #e6a73d 100%);
  color: #122119;
  min-height: 50px;
  padding-inline: 22px;
  box-shadow:
    0 18px 34px rgba(230, 167, 61, 0.22),
    0 0 0 5px rgba(230, 167, 61, 0.16);
}

.landing-hero .landing-hero-builder-button:hover,
.landing-hero .landing-hero-builder-button:focus-visible {
  border-color: rgba(255, 224, 158, 0.9);
  background:
    linear-gradient(135deg, #ffffff 0%, #ffe9ae 46%, #e8a94f 100%);
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(230, 167, 61, 0.3),
    0 0 0 6px rgba(230, 167, 61, 0.2);
}

.landing-command-strip {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5vw, 64px);
  right: clamp(28px, 5vw, 64px);
  bottom: 0;
  width: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.landing-command-strip span {
  min-height: 58px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(248, 255, 252, 0.72);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-command-strip span:last-child {
  border-right: 0;
}

.landing-inline-cta {
  grid-column: 1 / -1;
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.landing-after-hero-cta {
  margin-top: -2px;
  padding-inline: 4px;
}

.primary-button.landing-spotlight-button {
  position: relative;
  min-height: 54px;
  border: 1px solid rgba(255, 224, 158, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff4cf 48%, #e6a73d 100%);
  color: #122119;
  padding: 0 28px;
  font-size: 1rem;
  width: max-content;
  max-width: min(100%, 360px);
  box-shadow:
    0 18px 34px rgba(240, 189, 112, 0.22),
    0 0 0 5px rgba(240, 189, 112, 0.16);
}

.primary-button.landing-spotlight-button::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.primary-button.landing-spotlight-button:hover,
.primary-button.landing-spotlight-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 224, 158, 0.9);
  background:
    linear-gradient(135deg, #ffffff 0%, #ffe9ae 46%, #e8a94f 100%);
  box-shadow:
    0 22px 42px rgba(240, 189, 112, 0.3),
    0 0 0 6px rgba(240, 189, 112, 0.2);
}

.landing-band {
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 46px);
}

.landing-section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.landing-section-heading h2,
.landing-route-panel h2,
.landing-proof-copy h3,
.landing-benefit-grid h3 {
  margin: 0;
  letter-spacing: 0;
}

.landing-section-heading h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.landing-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.landing-proof-grid img {
  width: min(100%, 680px);
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 18px 24px rgba(25, 38, 31, 0.1));
}

.landing-proof-copy {
  display: grid;
  gap: 18px;
}

.landing-proof-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.landing-proof-copy p,
.landing-benefit-grid p,
.landing-route-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.landing-stat-row strong {
  border: 1px solid rgba(47, 136, 184, 0.22);
  border-radius: 999px;
  background: var(--blue-soft);
  color: #174f75;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.78rem;
}

.landing-pro-stack {
  display: grid;
  gap: 26px;
}

.landing-pro-block {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.86)),
    #ffffff;
  box-shadow: var(--shadow-soft);
  padding: clamp(16px, 2.6vw, 30px);
}

.landing-pro-block-reverse {
  grid-template-columns: minmax(360px, 1.04fr) minmax(0, 0.96fr);
}

.landing-pro-block-reverse .landing-pro-media {
  order: 2;
}

.landing-pro-media {
  position: relative;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(20, 33, 28, 0.08);
  padding: 14px;
  display: flex;
  align-items: center;
}

.landing-pro-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  pointer-events: none;
}

.landing-pro-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(20, 33, 28, 0.13);
}

.landing-pro-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(12px, 2.4vw, 34px);
}

.landing-pro-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.landing-pro-copy p {
  margin: 0;
  max-width: 68ch;
  color: #405047;
  font-size: 1rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

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

.landing-feature-list li {
  min-height: 42px;
  border: 1px solid rgba(17, 135, 95, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(223, 243, 233, 0.68), rgba(255, 255, 255, 0.7));
  color: #20322a;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.landing-impact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 243, 233, 0.62), rgba(255, 255, 255, 0.96) 42%),
    #ffffff;
  box-shadow: 0 18px 54px rgba(25, 38, 31, 0.08);
  padding: 30px;
}

.landing-impact-panel .landing-section-heading {
  margin-bottom: 24px;
}

.landing-impact-panel .landing-section-heading p:last-child {
  max-width: 900px;
  margin: 0;
  color: #405047;
  line-height: 1.62;
}

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

.landing-impact-feature .landing-impact-grid {
  grid-template-columns: 1fr;
}

.landing-impact-grid article {
  border: 1px solid rgba(17, 135, 95, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.landing-impact-grid h3,
.landing-privacy-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.landing-impact-grid p,
.landing-privacy-card p {
  margin: 0;
  color: #405047;
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.landing-privacy-band {
  background:
    linear-gradient(135deg, rgba(224, 241, 247, 0.76), rgba(255, 255, 255, 0.96) 48%),
    #ffffff;
}

.landing-privacy-band .landing-section-heading p:last-child {
  max-width: 900px;
  margin: 0;
  color: #405047;
  line-height: 1.62;
}

.landing-privacy-band .landing-section-heading small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.landing-privacy-card {
  position: relative;
  min-height: 160px;
  border: 1px solid rgba(173, 187, 178, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 22px 18px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(20, 33, 28, 0.06);
}

.landing-privacy-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.landing-privacy-card:hover,
.landing-privacy-card:focus-visible {
  border-color: rgba(17, 135, 95, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(20, 33, 28, 0.1);
}

.landing-privacy-card.is-active {
  border-color: rgba(17, 135, 95, 0.5);
  background:
    linear-gradient(135deg, rgba(223, 243, 233, 0.92), rgba(255, 255, 255, 0.94)),
    #ffffff;
  box-shadow: 0 18px 38px rgba(17, 135, 95, 0.12);
}

.landing-privacy-card.is-active::after {
  background: linear-gradient(90deg, var(--green), rgba(47, 111, 159, 0.78));
}

.landing-legal-grid {
  margin-top: 16px;
}

.landing-legal-panel {
  display: grid;
  gap: 12px;
}

.landing-legal-panel-combo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: 0 18px 42px rgba(20, 33, 28, 0.07);
}

.landing-legal-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.16;
}

.landing-legal-card p {
  margin: 0;
  color: #405047;
  line-height: 1.56;
}

.landing-legal-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.landing-legal-card li {
  border: 1px solid rgba(17, 135, 95, 0.14);
  border-radius: 8px;
  background: rgba(247, 250, 248, 0.8);
  color: #26372e;
  padding: 10px 12px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  width: min(1040px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(173, 187, 178, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92)),
    #ffffff;
  box-shadow: 0 26px 70px rgba(20, 33, 28, 0.2);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cookie-banner-copy {
  display: grid;
  gap: 6px;
}

.cookie-banner-copy h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.cookie-banner-copy p {
  margin: 0;
  max-width: 74ch;
  color: #405047;
  font-size: 0.94rem;
  line-height: 1.48;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-banner-actions button {
  white-space: nowrap;
}

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

.landing-benefit-grid article {
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0.96), rgba(255, 255, 255, 0.96));
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-benefit-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 135, 95, 0.28);
  box-shadow: 0 20px 44px rgba(20, 33, 28, 0.1);
}

.landing-benefit-grid h3 {
  font-size: 1.08rem;
}

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

.landing-route-panel {
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background: #ffffff;
  padding: 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.landing-route-panel img {
  width: min(100%, 330px);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.landing-route-panel h2 {
  margin: 4px 0 8px;
  font-size: 1.55rem;
  line-height: 1.16;
}

.dev-entry-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  align-items: center;
}

.dev-entry-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(227, 241, 246, 0.82), rgba(255, 255, 255, 0.94) 42%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 30px;
}

.dev-entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.dev-entry-header h1 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.dev-entry-header p,
.dev-entry-card p {
  color: var(--muted);
  line-height: 1.55;
}

.dev-entry-badge {
  border: 1px solid rgba(47, 111, 159, 0.28);
  border-radius: 999px;
  background: var(--blue-soft);
  color: #174a6d;
  padding: 9px 13px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dev-entry-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.dev-entry-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.dev-entry-card-strong {
  border-color: rgba(22, 132, 91, 0.42);
  background: rgba(247, 250, 248, 0.96);
}

.dev-entry-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dev-entry-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.dev-entry-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.dev-entry-card input,
.dev-entry-card select {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.dev-entry-actions,
.dev-entry-controls {
  display: grid;
  gap: 10px;
}

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

.dev-entry-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.dev-entry-check input {
  min-height: 0;
  width: 18px;
  height: 18px;
  padding: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.auth-brand,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-brand {
  padding: 42px;
  background:
    linear-gradient(150deg, rgba(223, 243, 233, 0.92), rgba(227, 241, 246, 0.72)),
    #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.auth-logo {
  width: min(100%, 430px);
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(9, 36, 56, 0.1));
}

.auth-brand h1 {
  max-width: 11ch;
  margin-bottom: 0;
}

.auth-brand p {
  color: #39453d;
  font-size: 1.02rem;
  line-height: 1.62;
  max-width: 42rem;
}

.auth-signals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-signals span {
  border: 1px solid rgba(22, 132, 91, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #405047;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-card {
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 24px;
}

.auth-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.auth-language {
  min-width: 132px;
}

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

.remember-session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #405047;
  font-size: 0.84rem;
  font-weight: 850;
}

.remember-session-row input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.remember-session-row input::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  opacity: 0;
  transform: translate(-50%, -58%) rotate(45deg) scale(0.72);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.remember-session-row input:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 6px 14px rgba(22, 132, 91, 0.16);
}

.remember-session-row input:checked::after {
  opacity: 1;
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.remember-session-row input:focus-visible {
  outline: 3px solid rgba(22, 132, 91, 0.18);
  outline-offset: 3px;
}

.remember-session-row input:hover {
  border-color: rgba(22, 132, 91, 0.62);
}

body.theme-dark .remember-session-row {
  color: #c8d6cf;
}

body.theme-dark .remember-session-row input {
  background: #101714;
  border-color: var(--line-strong);
}

.auth-error {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.wide-action {
  width: 100%;
  justify-content: center;
}

.auth-create-workspace-button {
  position: relative;
  border-color: rgba(255, 224, 158, 0.62);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff4cf 48%, #f0bd70 100%);
  color: #122119;
  box-shadow:
    0 14px 26px rgba(240, 189, 112, 0.18),
    0 0 0 4px rgba(240, 189, 112, 0.12);
}

.auth-create-workspace-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.auth-create-workspace-button:hover,
.auth-create-workspace-button:focus-visible {
  border-color: rgba(255, 224, 158, 0.9);
  background:
    linear-gradient(135deg, #ffffff 0%, #ffe9ae 46%, #e8a94f 100%);
  box-shadow:
    0 18px 34px rgba(240, 189, 112, 0.26),
    0 0 0 5px rgba(240, 189, 112, 0.16);
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1240px;
}

.brand-panel,
.onboarding-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.brand-panel {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(260px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(7, 25, 18, 0.88) 0%, rgba(7, 25, 18, 0.76) 42%, rgba(7, 25, 18, 0.32) 100%),
    url("../resources/landing-hero-passportbase.png") center right / cover no-repeat,
    #0d1f17;
  color: #ffffff;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 22% 18%, rgba(89, 217, 158, 0.2), transparent 34%);
  pointer-events: none;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 28px;
}

.brand-header {
  margin-bottom: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-banner {
  width: min(100%, 230px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
}

.module-pill {
  border: 1px solid rgba(22, 132, 91, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow,
.screen-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  font-size: clamp(1.65rem, 2.65vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 20px;
  max-width: 18ch;
}

h2 {
  font-size: 1.36rem;
  letter-spacing: 0;
  margin-bottom: 0;
}

h3 {
  font-size: 1.55rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.brand-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: min(34rem, 100%);
  overflow-wrap: anywhere;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  grid-column: 2 / -1;
}

.signal-grid > div {
  --signal-border: rgba(255, 255, 255, 0.18);
  --signal-bg: rgba(255, 255, 255, 0.1);
  --signal-accent: rgba(255, 255, 255, 0.72);
  --signal-glow: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  min-height: 62px;
  border: 1px solid var(--signal-border);
  border-radius: 8px;
  background: var(--signal-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 11px 13px 11px 17px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.16);
}

.signal-grid > div::before,
.signal-grid > div::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.signal-grid > div::before {
  inset: 10px auto 10px 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--signal-accent);
  box-shadow: 0 0 18px var(--signal-accent);
}

.signal-grid > div::after {
  width: 56px;
  height: 56px;
  right: -22px;
  top: -24px;
  border-radius: 50%;
  background: var(--signal-glow);
  filter: blur(2px);
}

.signal-grid > div:nth-child(1) {
  --signal-border: rgba(96, 221, 162, 0.56);
  --signal-bg: linear-gradient(135deg, rgba(22, 132, 91, 0.52), rgba(89, 217, 158, 0.18));
  --signal-accent: #5be19f;
  --signal-glow: rgba(91, 225, 159, 0.28);
}

.signal-grid > div:nth-child(2) {
  --signal-border: rgba(122, 196, 228, 0.6);
  --signal-bg: linear-gradient(135deg, rgba(47, 111, 159, 0.54), rgba(127, 197, 227, 0.18));
  --signal-accent: #7fc5e3;
  --signal-glow: rgba(127, 197, 227, 0.3);
}

.signal-grid > div:nth-child(3) {
  --signal-border: rgba(240, 189, 112, 0.64);
  --signal-bg: linear-gradient(135deg, rgba(168, 109, 24, 0.55), rgba(240, 189, 112, 0.2));
  --signal-accent: #f0bd70;
  --signal-glow: rgba(240, 189, 112, 0.32);
}

.signal-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.signal-grid strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.onboarding-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  min-height: 92px;
  padding: 24px 28px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.language-select {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.76rem;
}

.language-select select {
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 750;
}

.progress-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}

.progress-pill span {
  color: var(--ink);
  font-weight: 800;
}

.onboarding-time-estimate {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(223, 243, 233, 0.72), rgba(255, 255, 255, 0.86));
  color: #405047;
  padding: 9px 28px;
  font-size: 0.86rem;
  font-weight: 850;
}

.onboarding-time-estimate strong {
  color: var(--green);
  font-weight: 950;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.step-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.step-node::before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: var(--line);
}

.step-node:first-child::before {
  display: none;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  z-index: 1;
}

.step-node.done::before,
.step-node.active::before {
  background: var(--green);
}

.step-node.done .step-dot {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.step-node.active {
  color: var(--ink);
}

.step-node.active .step-dot {
  border-color: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
  color: var(--green);
}

.step-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.step-screen {
  display: none;
  padding: 30px 28px 22px;
  flex: 1;
}

.step-screen.active {
  display: block;
}

.screen-copy {
  max-width: 620px;
  margin-bottom: 24px;
}

.screen-copy p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
  font-size: 0.9rem;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.password-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px / 78%;
}

.password-toggle::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.password-toggle.is-visible::after {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-38deg);
  background: currentColor;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

input[name="password"]:focus,
input[name="confirmPassword"]:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(23, 32, 26, 0.06);
}

input.password-valid {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

input.password-valid:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

input.password-invalid:not(:placeholder-shown) {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(182, 61, 51, 0.12);
}

.password-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.password-meter span {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 750;
}

.password-meter span::before {
  content: "";
}

.password-meter span.valid {
  border-color: rgba(22, 132, 91, 0.42);
  background: #d9f5e7;
  color: var(--green);
}

.password-meter span.valid::before {
  content: "\2713  ";
}

.password-match-hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.password-match-hint.valid {
  color: var(--green);
}

.password-match-hint.valid::before {
  content: "\2713  ";
}

.password-match-hint.invalid {
  color: var(--red);
}

.password-match-hint.invalid::before {
  content: "\26A0  ";
}

.security-strip {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.security-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.toggle-row input,
.check-control input,
.option-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.control-list,
.option-grid,
.review-grid {
  display: grid;
  gap: 12px;
}

.check-control,
.option-card,
.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.check-control,
.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
}

.check-control small,
.option-card small,
.review-item small {
  color: var(--muted);
  line-height: 1.45;
}

.check-control.invalid {
  border-color: var(--red);
  background: rgba(194, 57, 52, 0.06);
  box-shadow: 0 0 0 3px rgba(194, 57, 52, 0.12);
}

.check-control.invalid strong {
  color: var(--red);
}

.check-control.invalid small {
  color: #8f2c29;
}

.terms-accept.invalid::after {
  content: "Accept the subscription terms to continue.";
  grid-column: 2;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 850;
}

html[lang="es"] .terms-accept.invalid::after {
  content: "Acepta los terminos de suscripcion para continuar.";
}

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

.compact-field {
  margin-top: 16px;
}

.visibility-help {
  margin-top: 12px;
  border: 1px solid rgba(47, 111, 159, 0.18);
  border-radius: 8px;
  background: var(--blue-soft);
  padding: 16px 18px;
  max-width: 100%;
}

.visibility-help strong {
  display: block;
  margin-bottom: 6px;
}

.visibility-help p {
  margin: 0;
  color: #40505a;
  line-height: 1.58;
}

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

.review-grid.review-grid-complete {
  opacity: 0.72;
}

.review-item {
  display: grid;
  gap: 6px;
}

.review-item strong {
  overflow-wrap: anywhere;
}

.success-panel {
  margin-top: 18px;
  border: 1px solid rgba(22, 132, 91, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(223, 243, 233, 0.9), rgba(227, 241, 246, 0.72));
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.success-panel[hidden] {
  display: none;
}

.success-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.success-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.success-panel p {
  margin: 0;
  color: #405047;
  line-height: 1.5;
}

.success-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-login-button {
  margin-left: auto;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, #071f1a, #105b46 58%, #0f766e);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 14px 28px rgba(7, 31, 26, 0.2);
}

.secondary-button,
.ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92)),
    #ffffff;
  border-color: rgba(173, 187, 178, 0.88);
  color: var(--brand-ink);
  box-shadow: 0 8px 20px rgba(20, 33, 28, 0.045);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 33, 28, 0.1);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.primary-button.button-loading:disabled {
  opacity: 1;
  cursor: progress;
}

.secondary-button.auth-create-workspace-button {
  border-color: rgba(255, 224, 158, 0.62);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff4cf 48%, #f0bd70 100%);
  color: #122119;
  box-shadow:
    0 14px 26px rgba(240, 189, 112, 0.18),
    0 0 0 4px rgba(240, 189, 112, 0.12);
}

.secondary-button.auth-create-workspace-button:hover,
.secondary-button.auth-create-workspace-button:focus-visible {
  border-color: rgba(255, 224, 158, 0.9);
  background:
    linear-gradient(135deg, #ffffff 0%, #ffe9ae 46%, #e8a94f 100%);
  box-shadow:
    0 18px 34px rgba(240, 189, 112, 0.26),
    0 0 0 5px rgba(240, 189, 112, 0.16);
}

.button-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(245, 247, 243, 0.72);
  backdrop-filter: blur(6px);
}

.loading-overlay.active {
  display: grid;
}

.verification-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(245, 247, 243, 0.78);
  backdrop-filter: blur(7px);
}

.verification-overlay.active {
  display: grid;
}

.loading-card {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: center;
}

.verification-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 28px;
}

.loader-mark {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.loader-mark::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 4px solid var(--green-soft);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
}

.loader-mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 14px rgba(9, 36, 56, 0.18));
}

.verification-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.verification-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(9, 36, 56, 0.16));
}

.loading-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.verification-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.loading-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.verification-code-label {
  margin-top: 18px;
}

.verification-code-label input {
  min-height: 54px;
  text-align: center;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
}

.verification-error {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--red);
  font-weight: 700;
}

.verification-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background:
    linear-gradient(120deg, rgba(23, 168, 115, 0.05), transparent 32%, rgba(47, 136, 184, 0.06) 82%),
    #f6f8f7;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(220, 229, 223, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.92)),
    #ffffff;
  padding: 26px 18px 116px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: visible;
  box-shadow: 12px 0 44px rgba(20, 33, 28, 0.055);
}

.dashboard-brand {
  display: grid;
  gap: 11px;
  justify-items: start;
}

.dashboard-brand-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.dashboard-brand span {
  border: 1px solid rgba(17, 135, 95, 0.22);
  border-radius: 999px;
  background: rgba(223, 243, 233, 0.72);
  color: #0d6f50;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 5px 10px;
  text-transform: uppercase;
}

.dashboard-nav {
  display: grid;
  gap: 7px;
}

.dashboard-nav button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #405047;
  cursor: pointer;
  min-height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-nav .nav-text {
  min-width: 0;
  flex: 1 1 auto;
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav .nav-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(210, 55, 55, 0.12);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 0 6px;
  margin-left: auto;
}

.dashboard-nav button span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(223, 243, 233, 0.62);
  color: var(--green);
  flex: 0 0 auto;
}

.dashboard-nav button span svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.dashboard-nav button.active,
.dashboard-nav button:hover {
  background:
    linear-gradient(90deg, rgba(223, 243, 233, 0.95), rgba(255, 255, 255, 0.74));
  color: var(--brand-ink);
  box-shadow: inset 3px 0 0 var(--green), 0 10px 22px rgba(20, 33, 28, 0.055);
  transform: translateX(2px);
}

.dashboard-sidebar-footer {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 234px;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.92)),
    #ffffff;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 42px rgba(20, 33, 28, 0.09);
}

.dashboard-sidebar-footer span {
  color: var(--muted);
  font-size: 0.78rem;
}

.workspace-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-settings-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.workspace-settings-toggle:hover,
.workspace-settings-toggle[aria-expanded="true"] {
  border-color: rgba(22, 132, 91, 0.34);
  background: var(--green-soft);
  color: var(--green);
}

.workspace-settings-panel {
  position: fixed;
  left: 18px;
  bottom: 92px;
  width: 280px;
  max-height: min(560px, calc(100dvh - 140px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 20px 52px rgba(25, 38, 31, 0.18);
  display: grid;
  align-content: start;
  gap: 6px;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workspace-settings-block {
  display: grid;
  gap: 5px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workspace-settings-block > strong {
  font-size: 0.78rem;
}

.company-public-profile-form small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.company-public-profile-form button {
  margin: 3px 8px 5px;
}

.workspace-language {
  display: grid;
  gap: 5px;
  padding: 5px 8px;
  color: var(--ink);
}

.workspace-language select,
.workspace-language input {
  min-height: 32px;
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.logout-button {
  width: 100%;
  justify-content: center;
  border-color: rgba(198, 45, 45, 0.34);
  background: rgba(198, 45, 45, 0.06);
  color: #c62d2d;
}

.logout-button:hover,
.logout-button:focus-visible {
  background: rgba(198, 45, 45, 0.12);
  border-color: rgba(198, 45, 45, 0.52);
}

.settings-menu-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: 8px;
}

.settings-menu-row span {
  width: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.settings-menu-title {
  background: var(--surface-2);
}

.dashboard-main {
  min-width: 0;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark .auth-brand,
body.theme-dark .auth-card,
body.theme-dark .brand-panel,
body.theme-dark .onboarding-panel,
body.theme-dark .dashboard-sidebar,
body.theme-dark .dashboard-topbar,
body.theme-dark .dashboard-panel,
body.theme-dark .workspace-section,
body.theme-dark .metric-card,
body.theme-dark .status-pill,
body.theme-dark .settings-item,
body.theme-dark .retention-card,
body.theme-dark .api-grid > div,
body.theme-dark .api-section-block,
body.theme-dark .api-docs,
body.theme-dark .api-doc-grid article,
body.theme-dark .api-key-row,
body.theme-dark .api-key-reveal,
body.theme-dark .evidence-card,
body.theme-dark .qr-card,
body.theme-dark .approval-row,
body.theme-dark .team-row,
body.theme-dark .team-add-row,
body.theme-dark .modal-card,
body.theme-dark .verification-card,
body.theme-dark .loading-card {
  background: rgba(22, 29, 26, 0.94);
  color: var(--ink);
}

body.theme-dark .workspace-settings-panel {
  background: #242424;
  border-color: #3a3a3a;
  color: #f6f7f5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body.theme-dark .workspace-settings-block {
  border-color: #444;
}

body.theme-dark .workspace-language {
  color: #d7ddd9;
}

body.theme-dark .workspace-language select,
body.theme-dark .workspace-language input {
  background: #333;
  border-color: #4c4c4c;
  color: #f6f7f5;
}

body.theme-dark .settings-menu-title {
  background: #353535;
}

body.theme-dark .settings-menu-row span,
body.theme-dark .settings-grid.compact .settings-item span {
  color: #c4cbc6;
}

body.theme-dark .settings-grid.compact .settings-item {
  color: #f6f7f5;
}

body.theme-dark .setting-pill.is-off {
  background: #3a3a3a;
  color: #c4cbc6;
}

body.theme-dark .product-bulk-toolbar {
  background: rgba(89, 217, 158, 0.1);
  border-color: rgba(89, 217, 158, 0.22);
}

body.theme-dark .product-row.selected {
  background: rgba(89, 217, 158, 0.12);
}

body.theme-dark .product-row.product-highlight {
  background: rgba(89, 217, 158, 0.22);
  box-shadow: inset 4px 0 0 var(--green);
}

body.theme-dark .product-row.empty {
  background:
    linear-gradient(135deg, rgba(89, 217, 158, 0.08), rgba(58, 126, 148, 0.06)),
    rgba(18, 28, 24, 0.82);
}

body.theme-dark .danger-button {
  background: rgba(255, 116, 116, 0.1);
  border-color: rgba(255, 116, 116, 0.28);
  color: #ff9b9b;
}

body.theme-dark .danger-button:hover,
body.theme-dark .danger-button:focus-visible {
  background: rgba(255, 116, 116, 0.16);
}

body.theme-dark .green-icon-action {
  background: rgba(89, 217, 158, 0.15);
  border-color: rgba(89, 217, 158, 0.32);
  color: var(--green);
}

body.theme-dark .detail-trash-button {
  background: rgba(255, 116, 116, 0.1);
  border-color: rgba(255, 116, 116, 0.3);
  color: #ff9b9b;
}

body.theme-dark .file-dropzone {
  background: rgba(89, 217, 158, 0.08);
  border-color: rgba(89, 217, 158, 0.32);
}

body.theme-dark .file-dropzone:hover,
body.theme-dark .file-dropzone:focus-within {
  background: rgba(89, 217, 158, 0.13);
  border-color: rgba(89, 217, 158, 0.52);
}

body.theme-dark .evidence-column:hover,
body.theme-dark .evidence-column:focus-visible {
  background: rgba(89, 217, 158, 0.08);
  border-color: rgba(89, 217, 158, 0.24);
}

body.theme-dark .evidence-card:hover,
body.theme-dark .evidence-card:focus-visible {
  background: rgba(89, 217, 158, 0.08);
  border-color: rgba(89, 217, 158, 0.24);
}

body.theme-dark .evidence-empty {
  background: rgba(255, 255, 255, 0.03);
}

body.theme-dark .upload-row {
  background: rgba(27, 39, 34, 0.96);
}

body.theme-dark .product-status-select option,
body.theme-dark .detail-status-select option,
body.theme-dark .bulk-status-select option {
  background: #17211d;
  color: var(--ink);
}

body.theme-dark .product-status-select option.status-draft,
body.theme-dark .detail-status-select option.status-draft,
body.theme-dark .bulk-status-select option.status-draft {
  background: rgba(83, 178, 225, 0.18);
  color: #88d7ff;
}

body.theme-dark .product-status-select option.status-evidence,
body.theme-dark .detail-status-select option.status-evidence,
body.theme-dark .bulk-status-select option.status-evidence {
  background: rgba(208, 141, 43, 0.2);
  color: #ffd18a;
}

body.theme-dark .product-status-select option.status-ready,
body.theme-dark .detail-status-select option.status-ready,
body.theme-dark .bulk-status-select option.status-ready {
  background: rgba(89, 217, 158, 0.18);
  color: var(--green);
}

body.theme-dark .logout-button {
  background: rgba(255, 116, 116, 0.1);
  border-color: rgba(255, 116, 116, 0.3);
  color: #ff9b9b;
}

body.theme-dark input,
body.theme-dark select {
  border-color: var(--line-strong);
}

body.theme-dark .brand-panel,
body.theme-dark .auth-brand,
body.theme-dark .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(30, 62, 48, 0.7), rgba(25, 48, 58, 0.52)),
    var(--surface);
}

body.theme-dark .brand-panel {
  background:
    linear-gradient(90deg, rgba(7, 25, 18, 0.88) 0%, rgba(7, 25, 18, 0.76) 42%, rgba(7, 25, 18, 0.32) 100%),
    url("../resources/landing-hero-passportbase.png") center right / cover no-repeat,
    #0d1f17;
}

body.theme-dark .dashboard-app,
body.theme-dark .dashboard-content {
  background: #0f1412;
}

body.theme-dark .dashboard-brand-banner {
  padding: 7px;
  border: 1px solid rgba(246, 251, 248, 0.28);
  border-radius: 8px;
  background: rgba(246, 251, 248, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

body.theme-dark .dashboard-readiness {
  background: rgba(18, 28, 24, 0.86);
  border-color: rgba(89, 217, 158, 0.18);
}

body.theme-dark .dashboard-readiness strong,
body.theme-dark .dashboard-readiness span {
  color: var(--ink);
}

body.theme-dark .readiness-bar {
  background: rgba(89, 217, 158, 0.18);
}

body.theme-dark .primary-button {
  background: var(--green);
  border-color: var(--green);
  color: #0b1511;
}

body.theme-dark .primary-button:hover {
  background: #72e6ae;
}

body.theme-dark .primary-button:disabled {
  background: rgba(89, 217, 158, 0.32);
  border-color: rgba(89, 217, 158, 0.18);
  color: rgba(238, 246, 241, 0.72);
  opacity: 1;
}

body.theme-dark .secondary-button,
body.theme-dark .ghost-button,
body.theme-dark .workspace-settings-toggle,
body.theme-dark .icon-button {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

body.theme-dark .dashboard-nav button,
body.theme-dark .brand-copy,
body.theme-dark .dashboard-hero p:last-child,
body.theme-dark .publishing-control p,
body.theme-dark .section-heading p:last-child {
  color: #c7d6ce;
}

body.theme-dark .dashboard-nav button.active,
body.theme-dark .dashboard-nav button:hover,
body.theme-dark .workspace-settings-toggle:hover,
body.theme-dark .workspace-settings-toggle[aria-expanded="true"] {
  background: var(--green-soft);
}

.dashboard-topbar {
  min-height: 88px;
  border-bottom: 1px solid rgba(220, 229, 223, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 248, 0.88)),
    rgba(255, 255, 255, 0.88);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 12;
  box-shadow: 0 12px 32px rgba(20, 33, 28, 0.06);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dashboard-topbar h2 {
  font-size: 1.4rem;
  letter-spacing: 0;
}

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

.status-pill {
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.94)),
    #ffffff;
  color: #405047;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(20, 33, 28, 0.05);
}

.plan-status-pill {
  border-color: rgba(22, 132, 91, 0.28);
  background: #f8fffb;
  color: var(--green);
  cursor: pointer;
}

.plan-status-pill.limit-reached {
  border-color: rgba(178, 58, 72, 0.28);
  background: #fff6f6;
  color: var(--red);
}

.dashboard-content {
  padding: 28px 30px 40px;
  display: grid;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.92), rgba(243, 246, 244, 0.76)),
    #f6f8f7;
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: grid;
  gap: 22px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(231, 248, 240, 0.92) 42%, rgba(224, 241, 247, 0.86) 100%),
    #ffffff;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 24px;
  align-items: center;
  box-shadow: 0 24px 64px rgba(20, 33, 28, 0.08);
  isolation: isolate;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(7, 31, 26, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 26, 0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  background:
    linear-gradient(135deg, transparent 0%, rgba(47, 136, 184, 0.1) 48%, rgba(23, 168, 115, 0.08) 100%);
  pointer-events: none;
}

.dashboard-hero.status-clear {
  border-color: rgba(17, 135, 95, 0.16);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(231, 248, 240, 0.92) 42%, rgba(224, 241, 247, 0.86) 100%),
    #ffffff;
}

.dashboard-hero.status-attention {
  border-color: rgba(198, 134, 36, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 244, 218, 0.92) 48%, rgba(247, 238, 209, 0.78) 100%),
    #ffffff;
}

.dashboard-hero.status-info {
  border-color: rgba(17, 135, 95, 0.24);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(226, 247, 238, 0.94) 48%, rgba(224, 241, 247, 0.82) 100%),
    #ffffff;
}

.dashboard-hero.status-urgent {
  border-color: rgba(198, 45, 45, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 230, 230, 0.94) 48%, rgba(251, 239, 228, 0.78) 100%),
    #ffffff;
}

.dashboard-hero.status-attention .screen-kicker,
.dashboard-notifications.status-attention strong {
  color: var(--amber);
}

.dashboard-hero.status-info .screen-kicker,
.dashboard-notifications.status-info strong {
  color: var(--green);
}

.dashboard-hero.status-urgent .screen-kicker,
.dashboard-notifications.status-urgent strong {
  color: var(--red);
}

.dashboard-hero h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.dashboard-hero p:last-child {
  color: #405047;
  line-height: 1.6;
  max-width: 680px;
}

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

.dashboard-readiness,
.dashboard-notifications {
  border: 1px solid rgba(17, 135, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  min-height: 106px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(20, 33, 28, 0.07);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.dashboard-notifications {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.dashboard-notifications:hover,
.dashboard-notifications:focus-visible {
  border-color: rgba(17, 135, 95, 0.38);
  box-shadow: 0 18px 38px rgba(20, 33, 28, 0.11);
  outline: none;
  transform: translateY(-2px);
}

.dashboard-notifications.status-attention {
  border-color: rgba(198, 134, 36, 0.32);
  background: rgba(255, 248, 230, 0.78);
}

.dashboard-notifications.status-info {
  border-color: rgba(22, 132, 91, 0.28);
  background: rgba(231, 248, 240, 0.78);
}

.dashboard-notifications.status-urgent {
  border-color: rgba(198, 45, 45, 0.32);
  background: rgba(255, 236, 236, 0.8);
}

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  flex: 0 0 auto;
}

.dashboard-notifications.status-attention .notification-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.dashboard-notifications.status-info .notification-icon {
  background: var(--green-soft);
  color: var(--green);
}

.dashboard-notifications.status-urgent .notification-icon {
  background: rgba(198, 45, 45, 0.12);
  color: #c62d2d;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dashboard-readiness span,
.dashboard-notifications small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-notifications strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

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

.notification-search-field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.notification-search-field span {
  font-size: 0.78rem;
  font-weight: 900;
}

.notification-search-field input {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.notification-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.notification-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.notification-mode-bar button,
.notification-filter-bar button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
}

.notification-mode-bar button.active,
.notification-filter-bar button.active {
  border-color: rgba(22, 132, 91, 0.35);
  background: var(--green-soft);
  color: var(--green);
}

.notification-mode-bar strong,
.notification-filter-bar strong {
  min-width: 22px;
  border-radius: 999px;
  background: rgba(22, 132, 91, 0.1);
  padding: 2px 7px;
  text-align: center;
  font-size: 0.76rem;
}

.notification-summary-item,
.notification-empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  min-height: 96px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  text-align: left;
}

.notification-summary-item {
  cursor: pointer;
  position: relative;
}

.notification-summary-item:hover,
.notification-summary-item:focus-visible {
  border-color: rgba(22, 132, 91, 0.38);
  box-shadow: 0 12px 28px rgba(25, 38, 31, 0.08);
  outline: none;
}

.notification-summary-item.status-attention {
  border-color: rgba(198, 134, 36, 0.28);
  background: rgba(255, 248, 230, 0.62);
}

.notification-summary-item.status-info {
  border-color: rgba(22, 132, 91, 0.22);
  background: rgba(231, 248, 240, 0.56);
}

.notification-summary-item.status-urgent {
  border-color: rgba(198, 45, 45, 0.28);
  background: rgba(255, 236, 236, 0.64);
}

.notification-summary-item .notification-kind,
.notification-empty-state span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.notification-summary-item strong,
.notification-empty-state strong {
  font-size: 1rem;
}

.notification-summary-item small,
.notification-empty-state small {
  color: var(--muted);
  line-height: 1.45;
}

.notification-actions {
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.notification-actions em {
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.notification-dismiss {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
}

.notification-dismiss:hover,
.notification-dismiss:focus-visible {
  border-color: rgba(198, 45, 45, 0.35);
  color: var(--red);
  outline: none;
}

.notification-empty-state {
  grid-template-columns: 1fr;
}

body.theme-dark .dashboard-hero.status-clear {
  border-color: rgba(89, 217, 158, 0.2);
  background:
    linear-gradient(135deg, rgba(30, 62, 48, 0.7), rgba(25, 48, 58, 0.52)),
    var(--surface);
}

body.theme-dark .dashboard-hero.status-attention {
  border-color: rgba(240, 189, 112, 0.28);
  background:
    linear-gradient(135deg, rgba(81, 61, 24, 0.78), rgba(48, 43, 27, 0.68)),
    var(--surface);
}

body.theme-dark .dashboard-hero.status-info {
  border-color: rgba(89, 217, 158, 0.26);
  background:
    linear-gradient(135deg, rgba(30, 62, 48, 0.76), rgba(25, 48, 58, 0.58)),
    var(--surface);
}

body.theme-dark .dashboard-hero.status-urgent {
  border-color: rgba(255, 130, 121, 0.32);
  background:
    linear-gradient(135deg, rgba(81, 35, 35, 0.78), rgba(45, 31, 29, 0.7)),
    var(--surface);
}

body.theme-dark .dashboard-notifications {
  background: rgba(18, 28, 24, 0.86);
  border-color: rgba(89, 217, 158, 0.18);
}

body.theme-dark .dashboard-notifications.status-attention {
  background: rgba(52, 43, 27, 0.92);
  border-color: rgba(240, 189, 112, 0.26);
}

body.theme-dark .dashboard-notifications.status-info {
  background: rgba(25, 52, 41, 0.92);
  border-color: rgba(89, 217, 158, 0.24);
}

body.theme-dark .dashboard-notifications.status-urgent {
  background: rgba(54, 30, 30, 0.92);
  border-color: rgba(255, 130, 121, 0.28);
}

body.theme-dark .notification-summary-item,
body.theme-dark .notification-empty-state {
  background: var(--surface);
  border-color: var(--line-strong);
}

body.theme-dark .notification-mode-bar button,
body.theme-dark .notification-filter-bar button {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

body.theme-dark .notification-mode-bar button.active,
body.theme-dark .notification-filter-bar button.active {
  background: rgba(89, 217, 158, 0.14);
  border-color: rgba(89, 217, 158, 0.3);
  color: #90edbd;
}

body.theme-dark .notification-search-field input {
  background: var(--surface);
  border-color: var(--line-strong);
}

body.theme-dark .notification-summary-item.status-attention {
  background: rgba(52, 43, 27, 0.92);
  border-color: rgba(240, 189, 112, 0.26);
}

body.theme-dark .notification-summary-item.status-info {
  background: rgba(25, 52, 41, 0.88);
  border-color: rgba(89, 217, 158, 0.24);
}

body.theme-dark .notification-summary-item.status-urgent {
  background: rgba(54, 30, 30, 0.92);
  border-color: rgba(255, 130, 121, 0.28);
}

body.theme-dark .notification-actions em {
  border-color: rgba(89, 217, 158, 0.22);
}

body.theme-dark .notification-dismiss {
  background: var(--surface);
  border-color: var(--line-strong);
}

.dashboard-readiness strong {
  font-size: 1.9rem;
  letter-spacing: 0;
}

.readiness-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 135, 95, 0.13);
  overflow: hidden;
}

.readiness-bar span {
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--brand-teal), var(--brand-cyan));
  box-shadow: 0 0 18px rgba(17, 135, 95, 0.24);
}

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

.metric-card,
.dashboard-panel {
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92)),
    #ffffff;
  box-shadow: 0 18px 46px rgba(20, 33, 28, 0.065);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  min-height: 118px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover,
.metric-card:focus-visible {
  border-color: rgba(17, 135, 95, 0.34);
  box-shadow: 0 24px 54px rgba(20, 33, 28, 0.11);
  transform: translateY(-3px);
  outline: none;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cyan), var(--brand-gold));
  opacity: 0.8;
}

.metric-card::after {
  content: "Open";
  justify-self: end;
  align-self: end;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  opacity: 0;
}

.metric-card:hover::after,
.metric-card:focus-visible::after {
  opacity: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-grid strong {
  font-size: 1.78rem;
  letter-spacing: 0;
}

.metric-grid small {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.dashboard-panel {
  padding: 18px;
}

.workspace-section {
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92)),
    #ffffff;
  padding: 22px;
  box-shadow: 0 18px 46px rgba(20, 33, 28, 0.065);
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 1.34rem;
  margin-bottom: 6px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.product-toolbar-row {
  grid-template-columns: minmax(220px, 1fr) 180px 220px;
}

.search-field input {
  min-height: 42px;
}

.product-bulk-toolbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 8px;
  background: var(--green-soft);
}

.product-bulk-toolbar[hidden] {
  display: none;
}

.product-bulk-toolbar > span {
  font-weight: 900;
  color: var(--green);
}

.product-bulk-toolbar > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.product-bulk-toolbar small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.compact-action {
  min-height: 34px;
  padding: 0 14px;
}

.bulk-status-select {
  width: 150px;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 900;
  background: var(--surface);
}

.danger-button {
  border: 1px solid rgba(203, 67, 67, 0.34);
  border-radius: 8px;
  background: rgba(203, 67, 67, 0.1);
  color: #b73535;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: rgba(203, 67, 67, 0.16);
  outline: none;
}

.product-panel {
  grid-row: span 3;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.product-table {
  display: grid;
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.trend-card {
  min-width: 0;
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 248, 0.82)),
    #ffffff;
  padding: 15px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(20, 33, 28, 0.045);
}

.trend-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.trend-card-heading strong {
  font-size: 0.98rem;
}

.trend-card-heading small,
.trend-legend,
.trend-latest span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.trend-expand-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.trend-expand-button:hover {
  border-color: rgba(15, 135, 92, 0.32);
  background: rgba(231, 248, 240, 0.72);
}

.trend-toggle-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.trend-summary-bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
}

.trend-summary-bar > span,
.trend-summary-bar > strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.trend-track {
  height: 14px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(103, 117, 108, 0.12);
}

.trend-track i {
  min-width: 0;
}

.trend-development-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.trend-development-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.trend-development-heading strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.trend-controls label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.trend-controls span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.trend-controls select {
  min-height: 34px;
}

.trend-line-chart {
  width: 100%;
  min-height: 210px;
  overflow: visible;
}

.trend-line-chart text {
  fill: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.trend-axis {
  stroke: rgba(103, 117, 108, 0.32);
  stroke-width: 1;
}

.trend-line-chart .trend-draft,
.trend-line-chart .trend-blocked {
  stroke: #9aa8b3;
  fill: #9aa8b3;
}

.trend-line-chart .trend-evidence,
.trend-line-chart .trend-pub-ready {
  stroke: #d79c38;
  fill: #d79c38;
}

.trend-line-chart .trend-ready,
.trend-line-chart .trend-published {
  stroke: var(--green);
  fill: var(--green);
}

.trend-line-chart .trend-pending {
  stroke: #2d74a8;
  fill: #2d74a8;
}

.trend-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 16px;
  font-weight: 850;
}

.trend-latest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.trend-latest span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 5px 8px;
}

.trend-latest strong {
  color: var(--ink);
}

.trend-draft,
.trend-blocked {
  background: #dfe7ee;
}

.trend-evidence,
.trend-pub-ready {
  background: #f2c879;
}

.trend-ready,
.trend-published {
  background: var(--green);
}

.trend-pending {
  background: #2d74a8;
}

.product-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 120px 112px 92px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(220, 229, 223, 0.84);
}

.product-table.expanded .product-row {
  grid-template-columns: 38px minmax(180px, 1fr) 140px 120px 140px 118px 110px;
}

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

.product-row.header {
  min-height: 38px;
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.96), rgba(238, 244, 240, 0.92));
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-row.actionable {
  cursor: pointer;
}

.product-row.actionable:hover {
  background: rgba(247, 250, 248, 0.9);
}

.product-table.expanded .row-check {
  cursor: default;
}

.product-row.selected {
  background: rgba(22, 132, 91, 0.08);
}

.product-row.product-highlight {
  animation: productCreatedPulse 3.2s ease-out;
  background: rgba(89, 217, 158, 0.2);
  box-shadow: inset 4px 0 0 var(--green);
}

.product-row.empty {
  grid-template-columns: 1fr !important;
  min-height: 190px;
  color: var(--muted);
  font-weight: 850;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(22, 132, 91, 0.04), rgba(48, 128, 155, 0.04)),
    var(--surface);
}

.product-empty-state {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.product-empty-state span {
  color: var(--green-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-empty-state strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.product-empty-state small {
  max-width: 390px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.row-check input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.row-check input::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  opacity: 0;
  transform: translate(-50%, -58%) rotate(45deg) scale(0.72);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.row-check input:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 6px 14px rgba(22, 132, 91, 0.14);
}

.row-check input:checked::after {
  opacity: 1;
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.row-check input:hover {
  border-color: rgba(22, 132, 91, 0.62);
}

.row-check input:focus-visible {
  outline: 3px solid rgba(22, 132, 91, 0.16);
  outline-offset: 3px;
}

body.theme-dark .row-check input {
  background: #101714;
  border-color: var(--line-strong);
}

.product-meta {
  display: grid;
  gap: 3px;
}

.product-meta small {
  color: var(--muted);
  font-weight: 750;
}

.readiness-inline {
  display: grid;
  gap: 5px;
}

.mini-bar {
  height: 6px;
  width: 86px;
  border-radius: 999px;
  background: rgba(22, 132, 91, 0.14);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.product-row strong,
.product-row span {
  overflow-wrap: anywhere;
}

.product-status {
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--amber-soft);
  color: var(--amber);
}

.product-status.ready {
  background: var(--green-soft);
  color: var(--green);
}

.product-status.draft {
  background: var(--blue-soft);
  color: var(--blue);
}

.publishing-status-pill {
  border: 1px solid rgba(103, 117, 108, 0.12);
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--surface-2);
  color: var(--muted);
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.publishing-status-pill.status-ready {
  background: var(--amber-soft);
  color: var(--amber);
}

.publishing-status-pill.status-pending {
  background: var(--blue-soft);
  color: var(--blue);
}

.publishing-status-pill.status-published {
  background: var(--green-soft);
  color: var(--green);
}

.product-status-select,
.detail-status-select {
  width: min(140px, 100%);
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px 0 12px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  color: var(--amber);
  background-color: var(--amber-soft);
  box-shadow: 0 8px 18px rgba(20, 33, 28, 0.04);
}

.product-status-select.status-ready,
.detail-status-select.status-ready {
  background-color: var(--green-soft);
  color: var(--green);
}

.product-status-select.status-draft,
.detail-status-select.status-draft {
  background-color: var(--blue-soft);
  color: var(--blue);
}

.detail-status-select {
  width: 100%;
  margin-top: 2px;
  font-size: 0.95rem;
}

.product-status-select option,
.detail-status-select option,
.bulk-status-select option {
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.product-status-select option.status-draft,
.detail-status-select option.status-draft,
.bulk-status-select option.status-draft {
  background: var(--blue-soft);
  color: var(--blue);
}

.product-status-select option.status-evidence,
.detail-status-select option.status-evidence,
.bulk-status-select option.status-evidence {
  background: var(--amber-soft);
  color: var(--amber);
}

.product-status-select option.status-ready,
.detail-status-select option.status-ready,
.bulk-status-select option.status-ready {
  background: var(--green-soft);
  color: var(--green);
}

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

.retention-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.retention-card > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.retention-card > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.retention-card > div > small {
  color: var(--muted);
  font-weight: 800;
}

.retention-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.34;
  max-width: 28ch;
}

.evidence-upload-field {
  display: grid;
  gap: 10px;
}

.upload-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.upload-heading > div {
  display: grid;
  gap: 5px;
}

.upload-heading span:first-child {
  font-weight: 900;
  font-size: 0.9rem;
}

.upload-heading small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.encryption-pill {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.file-dropzone {
  min-height: 92px;
  border: 1px dashed rgba(22, 132, 91, 0.42);
  border-radius: 8px;
  background: rgba(22, 132, 91, 0.05);
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
}

.file-dropzone:hover,
.file-dropzone:focus-within {
  background: rgba(22, 132, 91, 0.09);
  border-color: rgba(22, 132, 91, 0.62);
}

.file-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-dropzone strong {
  font-size: 0.98rem;
}

.file-dropzone small {
  color: var(--muted);
  font-weight: 750;
}

.upload-list {
  display: grid;
  gap: 7px;
}

.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 9px 11px;
}

.upload-row strong {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.upload-row small {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.confirm-card > p {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.invitation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.invitation-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.invitation-row small {
  color: var(--muted);
  font-weight: 850;
}

.invitation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.confirm-row small {
  color: var(--muted);
  font-weight: 850;
}

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

.trash-retention-row.selected {
  background: rgba(22, 132, 91, 0.08);
}

.trash-retention-row > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.trash-retention-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-retention-row small {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: left;
}

.trash-bulk-toolbar {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}

.trash-bulk-toolbar > span {
  color: var(--green);
  font-weight: 900;
}

.trash-bulk-toolbar > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.retention-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.split-actions {
  justify-content: space-between;
}

.confirm-input {
  display: grid;
  gap: 7px;
  margin: 14px 0 4px;
}

.confirm-input span {
  font-weight: 900;
  font-size: 0.84rem;
}

.product-detail-card {
  width: min(820px, 100%);
}

.modal-card.product-detail-card {
  max-height: min(900px, calc(100dvh - 48px));
  overflow-y: auto;
  display: block;
  padding-bottom: 0;
}

#productDetailModal {
  place-items: start center;
  align-items: start;
  align-content: start;
  padding: 0 24px 24px;
}

.product-detail-card > .modal-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  margin: -22px -22px 12px;
  border-bottom: 1px solid var(--line);
  padding: 6px 22px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.product-detail-card > .modal-heading > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-detail-card .modal-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.detail-title-edit {
  max-width: min(100%, 560px);
  margin: 0;
  display: grid;
}

.detail-title-edit span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.detail-title-edit input {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 2px;
  font-size: clamp(1.24rem, 3vw, 1.55rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.detail-title-edit input:focus {
  border-color: rgba(22, 132, 91, 0.52);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.12);
  outline: none;
}

.detail-title-edit input:hover {
  border-color: rgba(185, 198, 183, 0.72);
  background: rgba(255, 255, 255, 0.66);
}

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

.detail-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.detail-grid span,
.detail-section p,
.detail-evidence-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.detail-grid strong {
  font-size: 1rem;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-detail-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 18px -22px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 22px;
  display: flex;
  justify-content: flex-end;
}

.product-detail-footer .primary-button.has-pending-changes {
  background: linear-gradient(135deg, #12875f 0%, #1ca778 52%, #66d6a5 100%);
  border-color: rgba(18, 135, 95, 0.42);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(18, 135, 95, 0.24);
}

.product-detail-footer .primary-button.has-pending-changes:hover,
.product-detail-footer .primary-button.has-pending-changes:focus-visible {
  box-shadow: 0 14px 32px rgba(18, 135, 95, 0.3);
}

.product-detail-discard-card {
  max-width: 430px;
}

.product-detail-discard-card > p:not(.screen-kicker) {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.product-detail-discard-card .form-actions {
  margin: 0 -28px -24px;
}

.detail-section h4 {
  margin-bottom: 4px;
}

.detail-section p {
  margin: 0 0 12px;
}

.detail-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.evidence-detail-upload {
  flex: 0 0 auto;
  cursor: pointer;
}

.evidence-detail-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.evidence-detail-upload.is-busy {
  opacity: 0.62;
  pointer-events: none;
}

.evidence-detail-upload.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.icon-action-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.icon-action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.green-icon-action {
  border-color: rgba(22, 132, 91, 0.32);
  background: var(--green-soft);
  color: var(--green);
}

.green-icon-action:hover,
.green-icon-action:focus-visible {
  border-color: rgba(22, 132, 91, 0.52);
  background: rgba(22, 132, 91, 0.16);
}

.detail-evidence-list {
  display: grid;
  gap: 8px;
}

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

.product-image-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.product-image-tile.is-primary {
  border-color: rgba(22, 132, 91, 0.38);
  box-shadow: 0 0 0 3px rgba(89, 217, 158, 0.13);
}

.product-image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.product-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-image-frame span {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: rgba(16, 32, 25, 0.86);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-image-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-image-meta strong,
.product-image-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-meta small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.product-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.product-image-actions .compact-action {
  min-width: 0;
  flex: 1 1 auto;
}

.detail-evidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 12px;
}

.detail-evidence-row.is-pending {
  border-color: rgba(18, 135, 95, 0.26);
  background: rgba(226, 248, 238, 0.54);
}

.detail-evidence-row > div {
  display: grid;
  gap: 4px;
}

.detail-evidence-actions {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  min-width: 92px;
}

.detail-evidence-actions span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.passport-data-summary {
  display: grid;
  gap: 8px;
}

.passport-data-summary strong {
  display: block;
}

.passport-data-summary small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.5;
}

.passport-category-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.passport-category-summary span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 9px 10px;
}

.passport-category-summary strong,
.passport-category-summary small {
  display: block;
  overflow-wrap: anywhere;
}

.category-fields-panel {
  border: 1px solid rgba(22, 132, 91, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 243, 233, 0.76), rgba(224, 241, 247, 0.48)),
    var(--surface-2);
  padding: 14px;
}

.category-fields-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-fields-heading strong,
.category-fields-heading small {
  display: block;
}

.category-fields-heading small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  margin-top: 2px;
}

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

.import-context {
  margin-top: 14px;
  border: 1px solid rgba(22, 132, 91, 0.22);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
  font-weight: 850;
}

.retention-row strong {
  font-size: 0.88rem;
}

.retention-row small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.evidence-list,
.activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.evidence-item,
.activity-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.evidence-item {
  display: grid;
  gap: 5px;
}

.evidence-item span,
.activity-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.evidence-item strong {
  font-size: 0.95rem;
}

.publishing-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.publishing-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.publishing-control p {
  margin: 0;
  color: #405047;
  line-height: 1.45;
}

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

.plan-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.passport-value-grid {
  margin-bottom: 18px;
}

.screen-copy {
  max-width: 820px;
}

.plan-card {
  flex: 1 1 250px;
  max-width: 272px;
  min-height: 342px;
}

.business-choice-card,
.plan-card,
.terms-card,
.plan-comparison {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.business-choice-card,
.plan-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.business-choice-card .secondary-button,
.plan-card .secondary-button {
  align-self: end;
  margin-top: auto;
  width: 100%;
}

.business-choice-card input,
.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-choice-card.selected,
.plan-card.selected {
  border-color: rgba(22, 132, 91, 0.55);
  background: #f8fffb;
  box-shadow: inset 4px 0 0 var(--green);
}

.business-choice-card.selected::after,
.plan-card.selected::after {
  content: "\2713";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 0 0 5px var(--green-soft);
}

.business-choice-card.selected .secondary-button,
.plan-card.selected .secondary-button {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.plan-card.trial-offer {
  border-color: rgba(240, 189, 112, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 229, 0.98) 48%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(240, 189, 112, 0.2),
    0 16px 30px rgba(240, 189, 112, 0.12);
}

.plan-card.trial-offer.selected {
  border-color: rgba(232, 169, 79, 0.9);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff4cf 48%, #fffaf0 100%);
  box-shadow:
    inset 4px 0 0 #e8a94f,
    inset 0 0 0 1px rgba(240, 189, 112, 0.24),
    0 18px 34px rgba(240, 189, 112, 0.18);
}

.plan-card.trial-offer.selected::after {
  background: #e8a94f;
  color: #122119;
  box-shadow: 0 0 0 5px rgba(240, 189, 112, 0.22);
}

.plan-card.trial-offer.selected .secondary-button {
  border-color: rgba(255, 224, 158, 0.82);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff4cf 48%, #f0bd70 100%);
  color: #122119;
}

.business-choice-card span,
.plan-card span,
.terms-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.45;
}

.plan-card .trial-badge {
  width: max-content;
  max-width: calc(100% - 44px);
  border: 1px solid rgba(232, 169, 79, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #fffaf0 0%, #ffe5a5 100%);
  color: #7d4d09;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.business-choice-card p,
.plan-card p {
  margin: 0;
  color: #405047;
  line-height: 1.45;
}

.business-choice-card small,
.plan-card small {
  color: var(--muted);
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #405047;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.42;
}

.check-list li {
  position: relative;
  padding-left: 23px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 950;
}

.check-list .trial-copy {
  color: #7d4d09;
  font-weight: 900;
}

.check-list .trial-copy::before {
  background: rgba(240, 189, 112, 0.28);
  color: #9a610f;
}

.terms-card .check-list {
  margin-top: 6px;
}

.builder-data-config,
.retail-registry-config {
  display: grid;
  gap: 14px;
}

.builder-data-config[hidden],
.retail-registry-config[hidden] {
  display: none;
}

.registry-intro {
  border: 1px solid rgba(47, 111, 159, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 246, 251, 0.95), rgba(248, 255, 251, 0.95));
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.registry-intro span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.registry-intro strong {
  color: #173242;
  font-size: 1.02rem;
}

.registry-intro p {
  margin: 0;
  color: #40505a;
  line-height: 1.45;
}

.registry-workflows {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.registry-workflows legend {
  color: var(--ink);
  font-weight: 950;
  padding: 0 6px;
}

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

.compact-check {
  min-height: 0;
}

.passport-value-panel {
  border: 1px solid rgba(47, 111, 159, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 246, 251, 0.95), rgba(248, 255, 251, 0.95));
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.7fr);
  gap: 18px;
  padding: 16px 18px;
}

.passport-value-lede {
  display: grid;
  align-content: center;
  gap: 6px;
}

.passport-value-lede span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.passport-value-lede strong {
  color: #173242;
  font-size: 1.08rem;
  line-height: 1.25;
}

.passport-value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.passport-value-list li {
  border-left: 1px solid rgba(47, 111, 159, 0.18);
  display: grid;
  gap: 4px;
  padding: 2px 14px;
}

.passport-value-list strong {
  color: #10241d;
  font-size: 0.92rem;
  line-height: 1.25;
}

.passport-value-list small {
  color: #40505a;
  font-size: 0.79rem;
  font-weight: 780;
  line-height: 1.42;
}

.plan-card em {
  color: var(--ink);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 950;
}

.plan-card em small {
  margin-left: 2px;
  font-size: 0.8rem;
}

.plan-comparison {
  margin-top: 14px;
}

.plan-comparison summary {
  cursor: pointer;
  font-weight: 950;
}

.plan-comparison-table {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  overflow-x: auto;
}

.detailed-plan-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.detailed-plan-card {
  flex: 1 1 250px;
  max-width: 272px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.detailed-plan-card.trial-offer {
  border-color: rgba(240, 189, 112, 0.72);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff7df 50%, #ffffff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(240, 189, 112, 0.2),
    0 14px 26px rgba(240, 189, 112, 0.1);
}

.detailed-plan-card > span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.detailed-plan-card > strong {
  font-size: 1.35rem;
}

.detailed-plan-card > strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.detailed-plan-card > em {
  width: max-content;
  border: 1px solid rgba(232, 169, 79, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #fffaf0 0%, #ffe5a5 100%);
  color: #7d4d09;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 5px 9px;
  text-transform: uppercase;
}

.detailed-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 20px;
  padding-left: 24px;
  color: #405047;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.38;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 950;
}

.feature-list li.included::before {
  content: "\2713";
  background: var(--green-soft);
  color: var(--green);
}

.feature-list li.excluded {
  color: #7c6765;
}

.feature-list li.excluded::before {
  content: "\00d7";
  background: rgba(182, 61, 51, 0.12);
  color: var(--red);
}

.plan-extra-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.plan-extra-section > strong {
  display: block;
  margin-bottom: 5px;
}

.plan-extra-section > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

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

.plan-extra-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.plan-extra-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-extra-grid strong {
  font-size: 0.88rem;
}

.plan-extra-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.42;
}

.terms-accept {
  margin-top: 14px;
}

.activity-list {
  list-style: none;
}

.activity-list li {
  display: grid;
  gap: 5px;
}

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

.evidence-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  min-height: 260px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.evidence-column:hover,
.evidence-column:focus-visible {
  border-color: rgba(22, 132, 91, 0.28);
  background: rgba(22, 132, 91, 0.04);
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.05);
  outline: none;
}

.evidence-column h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.evidence-column h4 span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 8px;
  font-size: 0.72rem;
}

.evidence-card,
.qr-card,
.settings-item,
.api-grid > div,
.api-section-block,
.api-docs,
.api-doc-grid article,
.api-example-grid > div,
.api-key-reveal,
.api-key-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.evidence-card {
  width: 100%;
  color: var(--ink);
  text-align: left;
  font: inherit;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.evidence-card span,
.evidence-card strong,
.evidence-card small {
  grid-column: 1;
}

.evidence-card em {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  border-radius: 999px;
  background: rgba(203, 67, 67, 0.1);
  color: #b73535;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.evidence-card em.has-docs {
  background: var(--green-soft);
  color: var(--green);
}

.evidence-card:hover,
.evidence-card:focus-visible {
  border-color: rgba(22, 132, 91, 0.3);
  background: #f8fffb;
  outline: none;
}

.evidence-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 5px;
  padding: 12px;
}

.evidence-card span,
.evidence-empty span,
.qr-card span,
.settings-item span,
.api-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.evidence-card strong,
.evidence-empty strong,
.qr-card strong,
.settings-item strong,
.api-grid strong {
  overflow-wrap: anywhere;
}

.evidence-empty small {
  color: var(--muted);
  font-weight: 750;
}

.qr-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.qr-toolbar label {
  max-width: 220px;
}

.qr-bulk-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 8px;
  background: var(--green-soft);
  padding: 7px 9px;
}

.qr-bulk-toolbar[hidden] {
  display: none;
}

.qr-bulk-toolbar > span {
  color: var(--green);
  font-weight: 900;
}

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

.api-section-block,
.api-docs,
.api-key-reveal {
  margin-top: 14px;
  padding: 14px;
}

.api-section-heading,
.api-docs-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.api-section-heading > div,
.api-docs-heading {
  display: grid;
  gap: 5px;
}

.api-section-heading span,
.api-docs-heading span,
.api-example-grid span,
.api-key-reveal span,
.api-key-row span,
.api-doc-grid article span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.api-section-heading small,
.api-docs-heading small,
.api-doc-grid article p,
.api-key-row small,
.api-key-reveal small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

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

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

.api-key-row.revoked {
  opacity: 0.68;
}

.api-key-row code,
.api-key-reveal code,
.api-docs code {
  overflow-wrap: anywhere;
}

.api-key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-key-meta em {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

.api-key-actions {
  display: flex;
  gap: 8px;
}

.api-key-reveal {
  background: #f8fffb;
  display: grid;
  gap: 8px;
}

.api-key-reveal[hidden] {
  display: none;
}

.api-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.api-copy-row code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

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

.api-doc-grid article,
.api-example-grid > div {
  padding: 12px;
}

.api-doc-grid article {
  display: grid;
  gap: 6px;
}

.api-example-grid {
  margin-top: 12px;
}

.api-example-grid > div {
  display: grid;
  gap: 8px;
  background: #101915;
  border-color: #23352d;
}

.api-example-grid span {
  color: #9ee6bd;
}

.api-example-grid pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.api-example-grid code {
  color: #e8fff1;
  font-size: 0.78rem;
  line-height: 1.55;
}

.qr-card {
  position: relative;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.qr-card code {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.qr-title-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.qr-title-button:hover,
.qr-title-button:focus-visible {
  color: var(--green);
  text-decoration: underline;
  outline: none;
}

.qr-check {
  position: absolute;
  top: 10px;
  right: 10px;
}

.qr-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.qr-preview {
  width: 98px;
  height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.qr-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-status {
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--blue-soft);
  color: var(--blue);
}

.qr-status.status-ready {
  background: var(--amber-soft);
  color: var(--amber);
}

.qr-status.status-published {
  background: var(--green-soft);
  color: var(--green);
}

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

.approval-list,
.team-list {
  display: grid;
  gap: 10px;
}

.approval-row,
.team-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.team-row {
  grid-template-columns: minmax(0, 1fr) 160px auto auto auto;
}

.approval-row > div:first-child,
.team-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.approval-row span,
.team-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.approval-row strong,
.team-row strong {
  overflow-wrap: anywhere;
}

.approval-row small {
  color: var(--muted);
  font-weight: 750;
}

.approval-actions,
.team-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.team-add-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  gap: 10px;
  align-items: end;
}

.team-role-select {
  min-width: 150px;
}

.team-status {
  justify-self: start;
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--green-soft);
  color: var(--green);
}

.team-status.status-invited {
  background: var(--blue-soft);
  color: var(--blue);
}

.team-status.status-suspended {
  background: rgba(210, 55, 55, 0.1);
  color: var(--red);
}

.team-presence {
  justify-self: start;
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--surface-2);
  color: var(--muted);
}

.team-presence.is-online {
  background: rgba(24, 167, 95, 0.12);
  color: var(--green);
}

.team-presence.is-offline {
  background: rgba(99, 111, 129, 0.12);
  color: var(--muted);
}

.public-preview-card {
  width: min(720px, 100%);
}

.public-preview-card .modal-heading p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.public-preview-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.public-qr-large {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.public-qr-large svg {
  width: 100%;
  display: block;
}

.public-preview-details {
  display: grid;
  gap: 10px;
}

.public-preview-details p {
  color: var(--muted);
  margin: 0;
}

.settings-item,
.api-grid > div {
  padding: 14px;
  display: grid;
  gap: 7px;
}

.settings-grid.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.settings-grid.compact .settings-item {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.settings-grid.compact .settings-item span {
  color: var(--muted);
}

.settings-grid.compact .settings-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.settings-grid.compact .toggle-pill {
  justify-self: end;
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
}

.setting-pill {
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.setting-pill:hover,
.setting-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.14);
  outline: none;
}

.setting-pill.is-off {
  background: var(--surface-2);
  color: var(--muted);
}

.setting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  margin-top: 5px;
}

.setting-options button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 850;
}

.setting-options button:hover,
.setting-options button:focus-visible {
  border-color: rgba(22, 132, 91, 0.34);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.setting-options button.selected {
  border-color: rgba(22, 132, 91, 0.32);
  background: var(--green-soft);
  color: var(--green);
}

body.theme-dark .setting-options button {
  background: #333;
  border-color: #4c4c4c;
  color: #f6f7f5;
}

body.theme-dark .setting-options button:hover,
body.theme-dark .setting-options button:focus-visible {
  background: rgba(89, 217, 158, 0.15);
  color: var(--green);
}

body.theme-dark .setting-options button.selected {
  background: rgba(89, 217, 158, 0.2);
  border-color: rgba(89, 217, 158, 0.42);
  color: var(--green);
}

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

.toggle-pill {
  border-radius: 999px;
  min-width: 54px;
  min-height: 28px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 26, 0.32);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}

.modal-overlay.active {
  display: grid;
}

.modal-overlay.is-front {
  z-index: 90;
}

.modal-card {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
  overscroll-behavior: contain;
}

.modal-card.product-detail-card {
  width: min(820px, calc(100vw - 48px));
}

#productDetailModal.modal-overlay.active {
  inset: 0 !important;
  display: block !important;
  padding: 0 !important;
}

#productDetailModal .modal-card.product-detail-card {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  max-height: 100dvh !important;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  transform: translate(-50%, -50%) scale(0.96);
  min-width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  text-align: center;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.theme-dark .app-toast {
  background: rgba(23, 33, 29, 0.96);
  border-color: rgba(89, 217, 158, 0.24);
  color: var(--ink);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}

.modal-heading .security-note {
  margin-top: 10px;
  max-width: 620px;
  border-left: 3px solid rgba(22, 132, 91, 0.36);
  padding: 8px 0 8px 12px;
  color: #405047;
  background: rgba(22, 132, 91, 0.05);
}

.detail-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 360px);
}

.detail-header-actions .compact-action {
  white-space: normal;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.detail-trash-button {
  display: inline-grid;
  place-items: center;
  border-color: rgba(198, 45, 45, 0.32);
  background: rgba(198, 45, 45, 0.08);
  color: #c62d2d;
}

.detail-trash-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.detail-trash-button:hover,
.detail-trash-button:focus-visible {
  background: rgba(198, 45, 45, 0.14);
  border-color: rgba(198, 45, 45, 0.48);
}

.modal-actions {
  padding: 16px 0 0;
  border-top: 0;
}

.modal-card .form-grid {
  gap: 14px 16px;
  align-items: start;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  min-height: 46px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  resize: vertical;
  font: inherit;
}

.data-import-card {
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

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

.import-mapping {
  margin-top: 18px;
}

.import-mapping h4,
.import-preview h4 {
  margin: 0 0 6px;
}

.import-mapping p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.import-preview {
  margin-top: 18px;
}

.preview-table {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.preview-table th,
.preview-table td {
  max-width: 220px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-table th {
  background: var(--surface-2);
  font-weight: 950;
}

.import-progress {
  margin-top: 18px;
  border: 1px solid rgba(22, 132, 91, 0.2);
  border-radius: 8px;
  background: rgba(22, 132, 91, 0.06);
  padding: 12px;
}

.import-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.import-progress-top strong {
  color: var(--ink);
}

.import-progress-top span {
  color: var(--green);
  font-weight: 950;
}

.import-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 132, 91, 0.14);
}

.import-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #59d99e);
  transition: width 0.18s ease;
}

.evidence-progress {
  margin-top: 12px;
}

.generated-secret {
  margin: 12px 0 4px;
}

.generated-secret input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  letter-spacing: 0;
}

.public-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 46px;
  display: grid;
  gap: 18px;
}

body.public-mode {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 248, 0.72) 44%, rgba(243, 246, 244, 0.94)),
    linear-gradient(120deg, rgba(23, 168, 115, 0.07), transparent 36%, rgba(47, 136, 184, 0.08) 78%, transparent),
    #f3f6f4;
}

.public-header,
.public-hero,
.public-detail,
.public-passport-card {
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9)),
    #ffffff;
  box-shadow: 0 20px 54px rgba(20, 33, 28, 0.08);
}

.public-header {
  position: sticky;
  top: 14px;
  z-index: 18;
  min-height: 76px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.public-header-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.public-language-select {
  min-width: 132px;
}

.public-language-select span {
  font-weight: 850;
}

.public-brand-home {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.public-brand-home:hover,
.public-brand-home:focus-visible {
  outline: 0;
  opacity: 0.88;
}

.public-header img {
  width: 190px;
  max-width: 48vw;
  height: auto;
}

.public-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 52px);
  display: grid;
  gap: 16px;
  isolation: isolate;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(7, 31, 26, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 26, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cyan), var(--brand-gold));
}

.public-hero h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.public-hero p {
  max-width: 680px;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1.6;
}

.public-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-top: 12px;
}

.public-search-row input {
  min-height: 54px;
  border: 1px solid rgba(173, 187, 178, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.92)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(20, 33, 28, 0.045);
  font-weight: 850;
}

.public-search-row strong {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 135, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 243, 233, 0.98), rgba(224, 241, 247, 0.8));
  color: #0d6f50;
  padding: 0 18px;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(17, 135, 95, 0.09);
}

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

.public-filter-row label {
  min-width: 0;
}

.public-filter-row select {
  width: 100%;
  min-height: 46px;
  border-color: rgba(173, 187, 178, 0.9);
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 33, 28, 0.035);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.public-passport-card {
  position: relative;
  min-height: 238px;
  height: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 10px;
  align-content: start;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.public-passport-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-cyan));
  opacity: 0.82;
}

.public-passport-card:hover,
.public-passport-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(17, 135, 95, 0.28);
  box-shadow: 0 26px 64px rgba(20, 33, 28, 0.12);
}

.public-card-passport-stack {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 92px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}

.public-passport-card > div:not(.public-card-passport-stack) {
  min-width: 0;
  overflow: hidden;
}

.public-passport-logo-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 135, 95, 0.2);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.public-passport-logo-button:hover,
.public-passport-logo-button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(89, 217, 158, 0.18), 0 14px 28px rgba(20, 33, 28, 0.1);
}

.public-passport-logo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.public-passport-logo-button .public-preview-image {
  transform: scale(1.45);
}

.public-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.public-preview-silhouette {
  display: block;
  width: 70px;
  height: 70px;
  color: var(--green);
}

.public-preview-silhouette rect {
  fill: rgba(22, 132, 91, 0.08);
  stroke: rgba(22, 132, 91, 0.28);
  stroke-width: 2;
}

.public-preview-silhouette path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
}

.public-preview-silhouette circle {
  fill: rgba(89, 217, 158, 0.22);
  stroke: currentColor;
  stroke-width: 3;
}

.public-preview-silhouette text {
  fill: currentColor;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.public-card-qr-button {
  position: relative;
  width: 92px;
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  padding: 6px;
}

.public-card-qr-button svg {
  display: block;
  width: 76px;
  height: 76px;
}

.public-card-download-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(20, 35, 28, 0.78);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.public-card-download-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.public-card-qr-button:hover .public-card-download-icon,
.public-card-qr-button:focus-visible .public-card-download-icon {
  opacity: 1;
}

.public-card-qr-button:hover,
.public-card-qr-button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(89, 217, 158, 0.18);
}

.public-card-title-row,
.public-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-card-title-row {
  flex-wrap: nowrap;
}

.public-card-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.public-title-row {
  justify-content: flex-start;
}

.platform-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(22, 132, 91, 0.32);
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.platform-verified-badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.platform-verified-badge:hover,
.platform-verified-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(89, 217, 158, 0.2);
}

.public-passport-card span,
.public-detail-meta span,
.public-card-meta strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.public-passport-card h2 {
  margin: 7px 0 8px;
  font-size: 1.28rem;
  line-height: 1.12;
  min-width: 0;
  display: -webkit-box;
  max-height: 2.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.public-card-title-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: left;
}

.public-card-title-button:hover,
.public-card-title-button:focus-visible {
  color: var(--green);
  outline: none;
  text-decoration: underline;
}

.public-passport-card p {
  margin: 0 0 8px;
  color: #405047;
  font-size: 0.92rem;
  line-height: 1.45;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-card-meta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
  padding-top: 2px;
  max-height: 58px;
  overflow: hidden;
}

.public-card-meta em {
  border-radius: 999px;
  background: rgba(223, 243, 233, 0.88);
  color: #0d6f50;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.public-card-meta strong,
.public-card-meta em {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(173, 187, 178, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 28px;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(20, 33, 28, 0.05);
}

.public-detail {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.public-passport-modal-card {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  border-color: rgba(220, 229, 223, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.92)),
    #ffffff;
}

.public-modal-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.public-detail-in-modal {
  border: 0;
  box-shadow: none;
  padding: 4px 0 0;
  padding-right: 48px;
  background: transparent;
}

.public-detail-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.public-detail-gallery {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.public-detail-preview {
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  padding: 0;
}

.public-detail-preview .public-preview-silhouette {
  width: 112px;
  height: 112px;
}

.public-detail-preview .public-preview-image {
  transform: scale(1.2);
}

.public-gallery-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-gallery-controls span,
.public-gallery-modal-count {
  border-radius: 999px;
  background: rgba(7, 31, 26, 0.84);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.public-gallery-controls .icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  font-size: 1.2rem;
}

.public-gallery-modal {
  background: rgba(11, 17, 14, 0.82);
}

.public-gallery-modal-card {
  position: relative;
  width: min(940px, calc(100vw - 28px));
  height: min(820px, calc(100dvh - 28px));
  display: grid;
  place-items: center;
}

.public-gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: #ffffff;
}

.public-gallery-modal-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.public-gallery-modal-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.public-gallery-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
}

.public-gallery-modal-arrow.previous {
  left: 14px;
}

.public-gallery-modal-arrow.next {
  right: 14px;
}

.public-gallery-modal-count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
}

.public-detail-hero h2 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.qr-verification-note {
  color: var(--muted);
  font-weight: 800;
}

.public-verification-legal {
  font-style: italic;
}

.public-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-detail-meta span {
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9));
  padding: 8px 10px;
}

.public-detail-qr {
  width: 180px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 18px 42px rgba(20, 33, 28, 0.08);
}

.public-detail-qr svg {
  width: 154px;
  height: 154px;
  display: block;
  flex: 0 0 auto;
}

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

.public-data-section {
  border: 1px solid rgba(220, 229, 223, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.86)),
    #ffffff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(20, 33, 28, 0.045);
}

.public-data-section h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.public-data-section p {
  color: #405047;
  line-height: 1.5;
}

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

.public-field-list p {
  margin: 0;
  border-top: 1px solid rgba(220, 229, 223, 0.8);
  padding-top: 9px;
}

.public-field-list p:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.public-field-list strong {
  color: var(--ink);
  font-size: 0.82rem;
}

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

.public-chip-list span {
  border: 1px solid rgba(17, 135, 95, 0.18);
  border-radius: 999px;
  background: rgba(223, 243, 233, 0.78);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.mfa-setup-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.mfa-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  text-align: center;
}

.mfa-qr svg,
.mfa-qr img {
  display: block;
  margin: 0 auto;
  flex: 0 0 auto;
  width: min(260px, 100%) !important;
  height: auto !important;
  image-rendering: pixelated;
  transform: translateX(14px);
}

.mfa-qr svg rect,
.mfa-qr svg path {
  shape-rendering: crispEdges;
}

@keyframes productCreatedPulse {
  0% {
    background: rgba(89, 217, 158, 0.38);
    box-shadow: inset 4px 0 0 var(--green), 0 0 0 0 rgba(89, 217, 158, 0.28);
  }
  38% {
    background: rgba(89, 217, 158, 0.24);
    box-shadow: inset 4px 0 0 var(--green), 0 0 0 7px rgba(89, 217, 158, 0.08);
  }
  100% {
    background: rgba(89, 217, 158, 0.08);
    box-shadow: inset 4px 0 0 rgba(22, 132, 91, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes landingFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.landing-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.invalid {
  border-color: var(--red);
}

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

  .dashboard-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    padding: 10px 12px 12px;
    overflow: hidden;
  }

  .dashboard-brand {
    display: none;
  }

  .dashboard-sidebar-footer {
    position: static;
    width: auto;
    padding: 10px;
  }

  .workspace-settings-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: min(520px, 62dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dashboard-nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .dashboard-nav button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .dashboard-nav button span {
    width: 22px;
    height: 22px;
  }

  .dashboard-nav button span svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 940px) {
  .landing-shell {
    width: 100%;
    margin: 0 auto;
    padding: 11px;
    padding-top: 124px;
    gap: 18px;
  }

  .landing-nav {
    top: 0;
    width: 100%;
    min-height: 0;
    border-radius: 0 0 8px 8px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px 9px;
  }

  .landing-logo {
    width: 100%;
    gap: 9px;
  }

  .landing-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .landing-logo-icon img {
    width: 28px;
    height: 28px;
  }

  .landing-brand-copy strong {
    font-size: 0.9rem;
  }

  .landing-brand-copy small {
    font-size: 0.68rem;
  }

  .landing-nav-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .landing-nav-actions::-webkit-scrollbar {
    display: none;
  }

  .landing-nav-actions button,
  .landing-nav-actions .landing-language-select {
    flex: 0 0 auto;
  }

  .landing-nav-actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .landing-language-select {
    width: 126px;
  }

  .landing-language-select select {
    width: 100%;
    min-height: 36px;
    padding: 0 30px 0 11px;
    font-size: 0.78rem;
  }

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

  .landing-hero-actions button {
    width: 100%;
  }

  .landing-hero-actions .landing-spotlight-button {
    width: 100%;
    max-width: 100%;
  }

  .cookie-banner {
    bottom: 10px;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .landing-language-select {
    min-width: 0;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .landing-hero-points {
    grid-template-columns: 1fr;
  }

  .landing-hero-points li {
    min-height: 76px;
    padding-block: 34px 14px;
  }

  .landing-store-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .landing-rubros-copy {
    grid-template-columns: 1fr;
  }

  .landing-rubros-copy h2 {
    max-width: 18ch;
  }

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

  .landing-store-actions {
    width: 100%;
  }

  .landing-hero {
    min-height: clamp(500px, calc(100dvh - 180px), 640px);
    padding: 32px 22px 92px;
    align-content: center;
  }

  .landing-hero::before {
    background:
      linear-gradient(180deg, rgba(7, 31, 26, 0.06) 0%, rgba(7, 31, 26, 0.76) 42%, rgba(7, 31, 26, 0.97) 100%),
      linear-gradient(90deg, rgba(7, 31, 26, 0.74), rgba(7, 31, 26, 0.18));
  }

  .landing-hero-frame {
    top: 32px;
    right: -48%;
    width: 146%;
    height: 62%;
    opacity: 0.48;
  }

  .landing-hero-content {
    width: 100%;
    gap: 18px;
  }

  .landing-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .landing-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 22px;
    right: 22px;
  }

  .landing-command-strip span {
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
  }

  .landing-command-strip span:nth-child(2n) {
    border-right: 0;
  }

  .landing-proof-grid,
  .landing-benefit-grid,
  .landing-impact-grid,
  .landing-legal-panel-combo,
  .landing-privacy-grid,
  .landing-routes-band,
  .landing-pro-block,
  .landing-pro-block-reverse {
    grid-template-columns: 1fr;
  }

  .landing-pro-block-reverse .landing-pro-media {
    order: 0;
  }

  .landing-pro-media {
    padding: 14px;
  }

  .landing-pro-media img {
    min-height: 280px;
  }

  .landing-band {
    padding: 22px;
  }

  .landing-section-heading h2,
  .landing-proof-copy h3,
  .landing-pro-copy h2 {
    font-size: clamp(1.75rem, 7vw, 2.45rem);
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 11px;
  }

  .dev-entry-shell {
    width: 100%;
    margin: 0 auto;
    padding: 11px;
  }

  .dev-entry-panel {
    padding: 22px;
  }

  .dev-entry-header,
  .dev-entry-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand,
  .auth-card {
    padding: 24px;
  }

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

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    padding: 10px 12px 12px;
    overflow: hidden;
  }

  .dashboard-brand {
    display: none;
  }

  .dashboard-sidebar-footer {
    position: static;
    width: auto;
    padding: 10px;
  }

  .workspace-settings-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: min(72dvh, calc(100dvh - 28px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dashboard-nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .dashboard-nav button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .dashboard-nav button span {
    width: 22px;
    height: 22px;
  }

  .dashboard-nav button span svg {
    width: 14px;
    height: 14px;
  }

  .dashboard-topbar,
  .dashboard-hero {
    display: grid;
  }

  .dashboard-hero,
  .metric-grid,
  .dashboard-grid,
  .dashboard-trend-grid,
  .business-choice-grid,
  .passport-value-grid,
  .plan-grid,
  .terms-grid,
  .evidence-board,
  .qr-grid,
  .public-grid,
  .public-data-grid,
  .settings-grid,
  .api-grid,
  .api-doc-grid,
  .api-example-grid,
  .detailed-plan-columns,
  .plan-extra-grid {
    grid-template-columns: 1fr;
  }

  .detailed-plan-columns {
    min-width: 0;
  }

  .api-section-heading,
  .api-docs-heading,
  .api-key-row,
  .api-copy-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .passport-value-panel,
  .passport-value-list,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .passport-value-list {
    gap: 10px;
  }

  .passport-value-list li {
    border-left: 0;
    border-top: 1px solid rgba(47, 111, 159, 0.18);
    padding: 10px 0 0;
  }

  .trend-development-heading {
    display: grid;
  }

  .trend-controls {
    justify-content: stretch;
  }

  .trend-controls label {
    min-width: 0;
  }

  .toolbar-row,
  .product-bulk-toolbar,
  .trash-bulk-toolbar,
  .product-retention-grid,
  .section-heading,
  .team-add-row,
  .approval-row,
  .team-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .product-bulk-toolbar small {
    text-align: left;
  }

  .trash-retention-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trash-retention-row .retention-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .trash-retention-row > div:first-child,
  .trash-bulk-toolbar > div,
  .retention-actions {
    flex-wrap: wrap;
  }

  .notification-summary-item {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-table.expanded .product-row {
    grid-template-columns: 1fr;
  }

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

  .modal-card.product-detail-card {
    width: min(100vw - 16px, 820px);
    max-height: calc(100dvh - 16px);
  }

  .product-detail-card > .modal-heading {
    grid-template-columns: 1fr;
  }

  .detail-header-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .detail-header-actions .compact-action {
    flex: 1 1 190px;
  }

  .product-detail-footer {
    justify-content: stretch;
  }

  .product-detail-footer .primary-button {
    width: 100%;
  }

  .product-image-manager {
    grid-template-columns: 1fr;
  }

  .detail-evidence-row {
    align-items: start;
    flex-direction: column;
  }

  .qr-toolbar,
  .qr-bulk-toolbar,
  .approval-actions,
  .team-actions,
  .public-preview-layout,
  .public-search-row,
  .public-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-shell {
    width: min(100% - 22px, 760px);
    padding-top: 11px;
  }

  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .public-hero {
    padding: 22px;
  }

  .public-hero h1 {
    font-size: 1.9rem;
  }

  .public-passport-modal-card {
    width: min(100vw - 16px, 760px);
    max-height: min(100dvh - 16px, 900px);
  }

  .public-modal-actions {
    top: 10px;
    right: 10px;
  }

  .public-detail {
    padding: 14px;
    gap: 12px;
  }

  .public-detail-in-modal {
    padding: 0;
    padding-top: 24px;
  }

  .public-detail-hero {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "preview title"
      "meta meta"
      "qr qr";
    gap: 10px;
    align-items: center;
  }

  .public-detail-gallery {
    grid-area: preview;
    width: 96px;
    align-self: stretch;
  }

  .public-detail-preview {
    width: 96px;
    align-self: stretch;
  }

  .public-detail-preview .public-preview-silhouette {
    width: 76px;
    height: 76px;
  }

  .public-detail-hero > div:nth-child(2) {
    grid-area: title;
    min-width: 0;
    padding-right: 34px;
  }

  .public-title-row {
    align-items: flex-start;
  }

  .public-detail-hero h2 {
    margin: 4px 0 8px;
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .public-detail-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .public-detail-meta span {
    min-width: 0;
    padding: 7px 8px;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .public-detail-qr {
    grid-area: qr;
    justify-self: center;
    width: 132px;
    min-height: 132px;
    padding: 10px;
  }

  .public-detail-qr svg {
    width: 112px;
    height: 112px;
  }

  .public-gallery-controls {
    gap: 4px;
  }

  .public-gallery-controls .icon-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

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

  .public-data-section {
    padding: 11px;
  }

  .public-data-section:first-child,
  .public-data-section:has(a) {
    grid-column: 1 / -1;
  }

  .public-data-section h3 {
    font-size: 0.78rem;
  }

  .public-data-section p,
  .public-chip-list span {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .public-chip-list {
    gap: 6px;
  }

  .public-chip-list span {
    border-radius: 8px;
    padding: 6px 7px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 11px;
  }

  .brand-panel {
    padding: 20px;
    overflow: hidden;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .signal-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
    font-size: 2.18rem;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .topbar {
    flex-wrap: wrap;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .progress-pill {
    max-width: 100%;
  }

  .stepper {
    grid-template-columns: repeat(8, minmax(58px, 1fr));
    padding-inline: 14px;
    overflow-x: auto;
  }

  .step-label {
    font-size: 0.72rem;
  }

  .topbar,
  .step-screen,
  .form-actions {
    padding-inline: 18px;
  }

  .onboarding-login-button {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .form-grid,
  .category-fields-grid,
  .passport-category-summary,
  .option-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .security-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .verification-actions {
    display: grid;
  }
}

@media (max-width: 540px) {
  .landing-shell {
    padding-top: 108px;
    gap: 14px;
  }

  .landing-nav {
    padding: 7px 8px 8px;
    gap: 7px;
  }

  .landing-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .landing-logo-icon img {
    width: 25px;
    height: 25px;
  }

  .landing-brand-copy {
    gap: 1px;
  }

  .landing-brand-copy strong {
    font-size: 0.84rem;
  }

  .landing-brand-copy small {
    display: none;
  }

  .landing-nav-actions {
    gap: 5px;
  }

  .landing-nav-actions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .landing-nav .landing-ai-button svg {
    width: 15px;
    height: 15px;
  }

  .landing-language-select {
    width: 112px;
  }

  .landing-language-select select {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .landing-hero {
    min-height: clamp(470px, calc(100dvh - 180px), 560px);
    padding: 18px 16px;
  }

  .landing-hero-frame {
    top: 28px;
    right: -72%;
    width: 178%;
    height: 58%;
    opacity: 0.34;
  }

  .landing-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.15rem);
    line-height: 0.92;
  }

  .landing-hero p {
    font-size: 0.94rem;
    line-height: 1.44;
  }

  .landing-hero-content {
    gap: 14px;
  }

  .landing-hero-actions {
    gap: 8px;
  }

  .landing-hero-actions button {
    min-height: 46px;
  }

  .landing-hero-points {
    gap: 8px;
  }

  .landing-hero-points li {
    min-height: 70px;
    font-size: 0.8rem;
  }

  .landing-rubros-copy {
    padding: 22px;
  }

  .landing-rubros-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .landing-rubros-grid {
    grid-template-columns: 1fr;
  }

  .landing-command-strip {
    display: none;
  }

  .landing-pro-block {
    gap: 12px;
  }

  .landing-pro-media {
    padding: 12px;
  }

  .landing-pro-media img {
    min-height: 220px;
  }

  .landing-pro-copy {
    padding: 22px;
  }

  .landing-logo {
    width: 100%;
  }

  .landing-route-panel img {
    max-height: 52px;
  }

  .dashboard-hero-side {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    justify-content: stretch;
  }

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

  .language-select {
    min-width: 0;
  }

  .progress-pill {
    justify-self: start;
  }

  .stepper {
    overflow-x: auto;
    grid-template-columns: repeat(5, 72px);
  }

  .step-node::before {
    left: -36px;
    right: 36px;
  }
}
