:root {
  --brand: #a6ff00;
  --brand-strong: #a6ff00;
  --brand-readable: #5f8f00;
  --brand-soft: rgba(166, 255, 0, 0.15);
  --brand-glow: rgba(166, 255, 0, 0.3);
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-2: #f0f2f3;
  --ink: #202428;
  --muted: #69727d;
  --line: #e1e5e7;
  --slate: #202428;
  --slate-strong: #171c21;
  --slate-soft: #2b3138;
  --primary: #202428;
  --primary-strong: #2b3138;
  --accent: var(--brand);
  --accent-strong: var(--brand-strong);
  --danger: #b33939;
  --success: #2f7d4a;
  --warn: #bd5f00;
  --shadow: 0 18px 42px rgba(32, 36, 40, 0.08);
  --shadow-elevated: 0 28px 72px rgba(20, 24, 28, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #11161b;
  --surface: #202428;
  --surface-2: #2b3138;
  --ink: #f4f7f8;
  --muted: #aeb7c0;
  --line: #3b434c;
  --slate: #202428;
  --slate-strong: #13191e;
  --slate-soft: #2b3138;
  --primary: #a6ff00;
  --primary-strong: #c0ff48;
  --brand-readable: #a6ff00;
  --danger: #ff7171;
  --success: #8eeaa9;
  --warn: #ffc65a;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-elevated: 0 30px 78px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button,
a.button,
.button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

button:hover,
a.button:hover,
.button:hover {
  background: var(--primary-strong);
}

button.secondary,
a.button.secondary,
.button.secondary {
  background: #eef1f4;
  color: var(--ink);
}

button.secondary:hover,
a.button.secondary:hover,
.button.secondary:hover {
  background: #e1e6eb;
}

button.secondary.active,
a.button.secondary.active,
.button.secondary.active {
  background: var(--accent);
  color: #fff;
}

button.warning {
  background: var(--accent);
}

button.danger {
  background: var(--danger);
}

button.ghost {
  background: transparent;
  color: var(--primary);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: visible;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

label {
  color: #374540;
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 6px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

img {
  max-width: 100%;
}

.boot,
.login-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.boot {
  color: var(--muted);
  gap: 14px;
}

.spinner {
  animation: spin 0.9s linear infinite;
  border: 3px solid #dbe6e2;
  border-top-color: var(--primary);
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.account-warning-shell {
  background: linear-gradient(180deg, #fff9e8 0%, #f8f4e6 100%);
}

.account-warning-panel {
  background: #fff8dc;
  border: 1px solid #e8cc73;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(98, 73, 14, 0.18);
  display: grid;
  gap: 18px;
  max-width: 620px;
  padding: 28px;
  width: 100%;
}

.account-warning-badge {
  background: #f6d35c;
  border: 1px solid #d2a820;
  border-radius: 8px;
  color: #332600;
  font-weight: 900;
  letter-spacing: 0;
  padding: 10px 12px;
  text-align: center;
}

.account-warning-panel .brand p {
  color: #4f421f;
}

:root[data-theme="dark"] .account-warning-shell {
  background: var(--bg);
  color: var(--ink);
}

:root[data-theme="dark"] .account-warning-panel {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-elevated);
}

:root[data-theme="dark"] .account-warning-panel .brand h1,
:root[data-theme="dark"] .account-warning-panel .brand p {
  color: var(--ink);
}

:root[data-theme="dark"] .account-warning-panel .brand p {
  color: var(--muted);
}

:root[data-theme="dark"] .account-warning-panel .field {
  border-bottom-color: var(--line);
}

:root[data-theme="dark"] .account-warning-panel .field span {
  color: var(--muted);
}

:root[data-theme="dark"] .account-warning-panel .field strong {
  color: var(--ink);
}

.signup-panel {
  max-width: 780px;
}

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

.signup-plan-section {
  display: grid;
  gap: 12px;
}

.signup-plan-section h2 {
  font-size: 1rem;
}

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

.signup-plan-card {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: default;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.signup-plan-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(166, 255, 0, 0.16);
}

.signup-plan-card input {
  min-height: auto;
  width: auto;
}

.signup-plan-card span {
  display: grid;
  gap: 4px;
}

.signup-plan-card em,
.signup-plan-card small {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

.signup-terms-copy {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  font-size: 0.82rem;
  gap: 12px;
  line-height: 1.45;
  max-height: min(52vh, 560px);
  overflow: auto;
  padding: 16px;
}

.signup-terms-copy h2 {
  font-size: 1rem;
}

.signup-terms-copy p {
  color: #34443f;
  margin: 0;
}

.signup-acceptance {
  align-items: start;
  background: #fffdf6;
  border: 1px solid #ead7a7;
  border-radius: 8px;
  font-size: 0.86rem;
  padding: 12px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(8, 24, 21, 0.58);
  display: grid;
  inset: 0;
  overflow: auto;
  padding: 24px;
  place-items: center;
  position: fixed;
  z-index: 80;
}

.quantity-error-dialog {
  max-width: 440px;
  width: min(440px, 100%);
}

.quantity-error-dialog h2 {
  margin-top: 0;
}

.quantity-error-dialog .actions {
  justify-content: flex-end;
  margin-top: 18px;
}

:root[data-theme="dark"] .signup-plan-card {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] .signup-plan-card strong {
  color: var(--ink);
}

.beta-feedback-dialog {
  display: grid;
  gap: 14px;
  max-width: 520px;
  width: min(520px, 100%);
}

.beta-feedback-dialog h2,
.beta-feedback-dialog p {
  margin: 0;
}

.beta-agreement-dialog {
  max-width: 640px;
}

.beta-agreement-list {
  display: grid;
  gap: 10px;
  line-height: 1.45;
  margin: 0;
  padding-left: 22px;
}

.beta-agreement-consent {
  align-items: flex-start;
  border-left: 3px solid var(--brand);
  display: grid;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: auto 1fr;
  line-height: 1.42;
  padding-left: 14px;
}

.beta-agreement-consent input {
  margin-top: 3px;
  min-height: auto;
  width: auto;
}

.beta-feedback-intro {
  display: grid;
  gap: 8px;
}

.beta-feedback-intro h2,
.beta-feedback-intro p {
  margin: 0;
}

.beta-feedback-history .movement-row,
.beta-feedback-developer-card {
  white-space: normal;
}

.beta-feedback-developer-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.beta-feedback-developer-card {
  display: grid;
  gap: 12px;
}

.beta-feedback-developer-card h2,
.beta-feedback-developer-card p {
  margin: 0;
}

.beta-tester-fields {
  border-left: 3px solid var(--brand);
  padding-left: 14px;
}

.beta-tester-toggle {
  align-items: center;
  font-size: 0.8rem;
  grid-template-columns: auto 1fr;
}

.beta-tester-toggle input {
  min-height: auto;
  width: auto;
}

/* Public help center */
.help-page-head {
  padding-bottom: 46px;
}

.help-page-head > p {
  max-width: 800px;
}

.help-search {
  width: min(720px, 100%);
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.help-search span {
  color: var(--accent);
  font-size: 23px;
}

.help-search input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.help-request-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.help-request-inline > span {
  color: var(--muted);
  font-size: .92rem;
}

.help-request-dialog {
  max-width: min(620px, 100%);
  width: 100%;
}

.help-request-dialog h2 {
  margin: 4px 0 0;
}

.help-request-dialog textarea {
  min-height: 120px;
}

.help-directory {
  display: grid;
  gap: 46px;
}

.help-category .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.help-category .section-head h2 {
  margin: 0;
}

.help-category .section-head > span {
  color: var(--muted);
  white-space: nowrap;
}

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

.help-topic-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.help-topic-card:hover,
.help-topic-card:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent));
  transform: translateY(-2px);
}

.help-topic-card > span:nth-child(2) {
  min-width: 0;
}

.help-topic-card strong,
.help-topic-card small {
  display: block;
}

.help-topic-card strong {
  margin-bottom: 5px;
}

.help-topic-card small {
  color: var(--muted);
  line-height: 1.4;
}

.help-topic-card > b {
  color: var(--accent);
  font-size: 18px;
}

.help-topic-icon {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 6px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-size: 19px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .help-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .help-page-head { padding-bottom: 30px; }
  .help-directory { gap: 34px; }
  .help-topic-grid { grid-template-columns: 1fr; }
  .help-topic-card { min-height: 102px; padding: 14px; }
  .help-request-inline { align-items: stretch; flex-direction: column; }
  .help-request-inline .button { align-self: flex-start; }
}

.idle-session-dialog {
  max-width: 460px;
  width: min(460px, 100%);
}

.idle-session-dialog h2 {
  margin-top: 0;
}

.idle-session-dialog .actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.signup-terms-modal .signup-terms-dialog {
  max-height: calc(100vh - 48px);
  max-width: 820px;
  overflow: auto;
}

.beta-waitlist-dialog {
  max-width: 620px;
}

.beta-waitlist-dialog h2 {
  margin: 0;
}

.beta-waitlist-dialog .checkbox-label small {
  display: block;
  margin-top: 4px;
}

.pricing-comparison-link {
  justify-self: center;
  margin-top: 2px;
}

.plan-comparison-dialog {
  max-height: calc(100vh - 48px);
  max-width: min(1120px, 100%);
  overflow: auto;
  width: min(1120px, 100%);
}

.plan-comparison-dialog h2,
.plan-comparison-dialog p {
  margin: 0;
}

.plan-comparison-dialog .split {
  align-items: flex-start;
  margin-bottom: 18px;
}

.plan-comparison-table-wrap {
  overflow-x: auto;
}

.plan-comparison-table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

.plan-comparison-table th,
.plan-comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

.plan-comparison-table thead th {
  background: var(--surface-muted);
  color: var(--ink);
  font-size: .9rem;
}

.plan-comparison-table thead th:first-child,
.plan-comparison-table tbody th {
  text-align: left;
}

.plan-comparison-table thead th span {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
}

.plan-comparison-table tbody th {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.plan-comparison-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.plan-comparison-status.is-yes { color: var(--accent); }
.plan-comparison-status.is-no { color: var(--muted); }

.beta-waitlist-dialog .beta-candidate-note {
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.beta-waitlist-dialog textarea {
  min-height: 96px;
}

.beta-waitlist-page {
  margin-inline: auto;
  max-width: 760px;
}

.project-modal-dialog {
  max-height: calc(100vh - 48px);
  max-width: 760px;
  overflow: auto;
  width: min(760px, 100%);
}

.project-modal-dialog > .split {
  align-items: center;
}

.project-modal-dialog > .split button {
  min-height: 36px;
  min-width: 40px;
  padding: 6px 10px;
}

.project-modal-form {
  box-shadow: none;
  padding: 0;
}

.history-export-dialog {
  max-width: 780px;
  width: min(780px, 100%);
}

.history-export-actions {
  justify-content: flex-end;
}

.dashboard-retention-alert {
  align-items: center;
  border-left: 4px solid var(--accent);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.dashboard-retention-alert h2 {
  font-size: 1rem;
  margin: 2px 0 4px;
}

.dashboard-retention-alert .eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.item-retention-dialog {
  max-height: calc(100vh - 48px);
  max-width: 880px;
  overflow: auto;
  width: min(880px, 100%);
}

.item-retention-dialog > .split {
  align-items: start;
}

.item-retention-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.item-retention-row {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.item-retention-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-retention-copy strong,
.item-retention-copy span {
  overflow-wrap: anywhere;
}

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

.item-retention-actions button {
  min-height: 34px;
  padding: 6px 9px;
}

@media (max-width: 680px) {
  .dashboard-retention-alert {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-retention-alert button {
    width: 100%;
  }

  .item-retention-modal {
    padding: 12px;
  }

  .item-retention-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .item-retention-actions button {
    font-size: 0.75rem;
    white-space: normal;
  }
}

.item-category-modal-dialog {
  max-height: calc(100vh - 48px);
  max-width: 860px;
  overflow: auto;
  width: min(860px, 100%);
}

.item-category-modal-dialog > .split {
  align-items: start;
}

.item-category-modal-dialog > .split button {
  min-height: 36px;
  min-width: 40px;
  padding: 6px 10px;
}

.brand {
  display: grid;
  gap: 6px;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--slate);
  border-radius: 8px;
  color: #fff;
  display: inline-grid;
  font-weight: 900;
  height: 44px;
  place-items: center;
  width: 44px;
}

.brand-mark-logo {
  background: transparent;
  overflow: visible;
}

.brand-horizontal-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 240px;
}

.provintor-mark-image {
  display: block;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.brand-tagline {
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand h1,
.page-title h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h2,
h3 {
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.brand p,
.page-title p,
.muted {
  color: var(--muted);
  margin: 0;
}

.demo-accounts {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3d4652;
  display: grid;
  font-size: 0.88rem;
  gap: 8px;
  padding: 12px;
}

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

.sidebar {
  align-self: start;
  background: var(--slate);
  border-radius: 0 8px 8px 0;
  color: #eef2f6;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 32px);
  min-height: auto;
  overflow: auto;
  padding: 12px 10px;
  position: sticky;
  top: 16px;
}

.sidebar .brand-line {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.sidebar .brand-horizontal-logo {
  width: 240px;
}

.sidebar .brand-line:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .brand-mark {
  background: transparent;
  flex: 0 0 auto;
}

.sidebar strong {
  color: #fff;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar small {
  color: #c4ccd5;
}

.sidebar .brand-tagline {
  color: var(--accent);
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.nav button {
  background: transparent;
  border: 1px solid transparent;
  color: #eef2f6;
  justify-content: flex-start;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.nav button.active,
.nav button:hover {
  background: rgba(166, 255, 0, 0.11);
  border-color: rgba(166, 255, 0, 0.28);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav button.nav-parent {
  display: flex;
  justify-content: flex-start;
}

.nav-caret {
  color: #c4ccd5;
  margin-left: auto;
}

.nav-submenu {
  border-left: 1px solid rgba(229, 231, 235, 0.2);
  display: grid;
  gap: 4px;
  margin-left: 17px;
  padding-left: 9px;
}

.nav-submenu[hidden] {
  display: none;
}

.nav button.nav-child {
  font-size: 0.92rem;
  min-height: 36px;
  padding: 7px 9px;
}

.nav button.nav-child span:first-child {
  opacity: 0.75;
}

.sidebar-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.18);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.sidebar-user {
  border-top: 1px solid rgba(229, 231, 235, 0.18);
  padding-top: 16px;
}

.developer-client-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.developer-client-box small {
  color: #c4ccd5;
  font-weight: 800;
  text-transform: uppercase;
}

.developer-client-box strong {
  white-space: normal;
}

.developer-client-box button {
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.user-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.topbar {
  align-items: center;
  background: rgba(246, 247, 249, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-mobile-left,
.topbar-mobile-logo {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile-drawer {
  background: var(--slate);
  border-bottom: 1px solid rgba(229, 231, 235, 0.18);
  padding: 12px 14px;
}

.mobile-drawer .nav {
  margin-top: 0;
}

.mobile-drawer-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.mobile-drawer-actions button {
  justify-content: center;
  width: 100%;
}

.content {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

.page-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

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

.history-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 2px;
}

.history-pagination-count {
  margin-right: auto;
}

.history-pagination label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.history-pagination select {
  min-height: 38px;
  min-width: 78px;
  width: auto;
}

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

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

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

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

.language-options-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.language-options-form select {
  flex: 0 1 150px;
  min-width: 140px;
  width: auto;
}

.language-options-form button {
  flex: 0 0 auto;
}

.movement-chart-options-head {
  gap: 16px;
}

.movement-chart-options-head > div {
  min-width: 0;
}

.movement-chart-options-form {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.movement-chart-options-form label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.movement-chart-options-form select {
  flex: 0 0 auto;
  min-width: 135px;
  width: auto;
}

.movement-chart-options-form button {
  flex: 0 0 auto;
}

.panel,
.stat,
.item-card,
.project-card,
.movement-row,
.scanner-panel,
.label-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.item-category-list {
  display: grid;
  gap: 8px;
}

.item-category-summary {
  gap: 8px;
}

.item-category-summary-copy {
  display: grid;
  gap: 4px;
}

.item-category-summary-head {
  align-items: center;
}

.item-category-summary-head button {
  flex: 0 0 auto;
}

.item-category-editor {
  display: grid;
  gap: 14px;
}

.item-category-row {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  padding: 10px;
}

.item-category-row .actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.stat {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  position: relative;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.stat strong {
  font-size: 2.1rem;
  line-height: 1;
}

.dashboard-warning-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  bottom: 10px;
  color: #ffb45c;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  position: absolute;
  right: 10px;
  width: 30px;
}

.dashboard-warning-button:hover {
  background: transparent;
  color: #ffb45c;
  outline: none;
  text-decoration: none;
}

.dashboard-warning-button:focus-visible {
  background: transparent;
  color: #ffb45c;
  outline: none;
}

.dashboard-warning-button svg {
  height: 18px;
  transition: filter 0.16s ease, transform 0.16s ease;
  width: 18px;
}

.dashboard-warning-button:hover svg,
.dashboard-warning-button:focus-visible svg {
  filter: drop-shadow(0 0 4px rgba(255, 180, 92, .5)) drop-shadow(0 0 10px rgba(255, 180, 92, .24));
}

.dashboard-warning-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Warnings stay legible in both themes; this is a functional alert color. */
.dashboard-warning-button,
.dashboard-warning-button:hover,
.dashboard-warning-button:focus-visible {
  color: #ffb45c !important;
}

.dashboard-warning-button svg,
.dashboard-warning-button svg path {
  color: #ffb45c !important;
  stroke: #ffb45c !important;
}


.dashboard-stat-head {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.rental-alert-counts {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  justify-content: flex-end;
}

.rental-alert-counts b {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-width: 24px;
  padding: 5px 7px;
}

.rental-alert-warning {
  background: #fff3d7;
  color: #a66a00;
}

.rental-alert-overdue {
  background: #ffe4e4;
  color: var(--danger);
}

.dashboard-insights {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.dashboard-chart-card {
  align-content: start;
  min-height: 330px;
}

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

.dashboard-chart-head h2 {
  margin: 0;
}

.dashboard-chart-head button {
  background: transparent;
  color: var(--accent);
  min-height: 32px;
  padding: 4px 0;
}

.dashboard-chart-head button:hover {
  background: transparent;
  color: var(--accent-strong);
}

.movement-chart {
  min-height: 250px;
  overflow: hidden;
}

.movement-chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.movement-chart line {
  stroke: #e7ecef;
  stroke-width: 1;
}

.movement-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movement-chart .movement-chart-area {
  fill: url(#dashboardMovementArea);
}

.movement-chart .movement-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.movement-chart circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 3;
}

.dashboard-donut-layout {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
}

.developer-stats-grid {
  gap: 10px;
}
.loading-logo { display: block; height: 64px; object-fit: contain; width: 64px; }
.app-loading { align-items: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; min-height: 170px; place-content: center; text-align: center; }
.app-loading .loading-logo { height: 54px; width: 54px; }

.developer-stats-grid .stat {
  min-height: 96px;
  padding: 14px;
}

.developer-company-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.developer-growth-card {
  min-height: 0;
}

.developer-growth-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.developer-growth-summary span {
  align-items: center;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  white-space: nowrap;
}

.developer-growth-summary i {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.developer-growth-summary i.companies {
  background: var(--slate);
}

.developer-growth-summary i.mrr {
  background: var(--accent);
}

.developer-growth-summary strong {
  color: var(--ink);
}

.developer-growth-chart {
  min-height: 190px;
  min-width: 0;
  overflow: hidden;
}

.developer-growth-chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.developer-growth-chart line {
  stroke: #e7ecef;
  stroke-width: 1;
}

.developer-growth-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.developer-growth-companies,
.developer-growth-mrr {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.developer-growth-companies {
  stroke: var(--slate);
}

.developer-growth-mrr {
  stroke: var(--accent);
}

.developer-growth-dot {
  stroke: #fff;
  stroke-width: 3;
}

.developer-growth-dot.companies {
  fill: var(--slate);
}

.developer-growth-dot.mrr {
  fill: var(--accent);
}

.developer-companies-panel {
  min-height: 0;
}

.developer-company-scroll {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.developer-company-mini {
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px 10px;
}

.developer-company-mini strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.developer-company-mini .actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}

.developer-company-mini button {
  min-height: 32px;
  padding: 6px 9px;
}

.category-donut {
  align-content: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--category-donut, #e5e7eb 0% 100%));
  border-radius: 999px;
  display: grid;
  justify-items: center;
  margin: 0 auto;
  max-width: 170px;
  min-width: 130px;
  position: relative;
  width: 100%;
}

.category-donut::after {
  background: #fff;
  border-radius: inherit;
  box-shadow: inset 0 0 14px rgba(43, 52, 64, 0.08);
  content: "";
  inset: 27%;
  position: absolute;
}

.category-donut span,
.category-donut small {
  position: relative;
  z-index: 1;
}

.category-donut span {
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.category-donut small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-legend {
  display: grid;
  gap: 10px;
  min-width: 0;
}

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

.category-legend-row strong {
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-legend-row span:not(.category-swatch),
.category-legend-row em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.mfa-enrollment-code {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 18px auto;
  text-align: center;
}

.mfa-enrollment-code img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
  height: 220px;
  max-width: 100%;
  padding: 10px;
  width: 220px;
}

.mfa-enrollment-code code {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

/* Desktop layout: center the chart, then use the full card width for its details. */
@media (min-width: 1051px) {
  .category-card .dashboard-donut-layout {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .category-card .category-donut {
    max-width: 190px;
    min-width: 150px;
  }

  .category-card .category-legend {
    gap: 8px;
    width: 100%;
  }

  .category-card .category-legend-row {
    gap: 10px;
    grid-template-columns: 12px minmax(0, 1fr) minmax(56px, auto) minmax(44px, auto);
    min-height: 24px;
  }

  .category-card .category-legend-row strong,
  .category-card .category-legend-row span:not(.category-swatch),
  .category-card .category-legend-row em {
    font-size: 0.95rem;
    line-height: 1.2;
  }
}

.category-swatch {
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr repeat(4, minmax(140px, 1fr)) auto;
}

.inventory-filter-toggle {
  display: none;
}

.table {
  display: grid;
  gap: 8px;
}

[data-inventory-rows] {
  display: grid;
  gap: 8px;
}

.inventory-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.import-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.import-preview .table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 460px;
  overflow: auto;
}

.import-preview table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.import-preview th,
.import-preview td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.import-preview th {
  background: #f4f6f8;
  color: var(--muted);
  font-size: 0.78rem;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

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

.import-preview .compact-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 8px;
}

.table-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.05fr 1.5fr 0.85fr 0.95fr 0.85fr 1fr auto;
  min-height: 64px;
  padding: 10px 12px;
}

.table-row.header {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  min-height: auto;
  padding-bottom: 0;
  text-transform: uppercase;
}

.inventory-row {
  --inventory-action-column: 76px;
  cursor: pointer;
  grid-template-columns: minmax(132px, 0.95fr) minmax(0, 1.95fr) 0.85fr 0.72fr 0.72fr var(--inventory-action-column);
  min-height: 56px;
  padding: 8px 10px;
}

.inventory-header {
  align-items: end;
  cursor: default;
  gap: 12px;
  min-height: auto;
  padding: 0 10px 0;
}

.table-row.inventory-header {
  border: 1px solid transparent;
}

.inventory-header .inventory-id-cell,
.inventory-header .inventory-item-cell,
.inventory-header .inventory-category-cell,
.inventory-header .inventory-stock-cell,
.inventory-header .inventory-reserved-cell,
.inventory-header .inventory-action-cell {
  display: block;
  font-variant-numeric: normal;
  font-weight: 800;
  justify-self: stretch;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-location-switch-panel .split {
  align-items: center;
  gap: 14px;
}

.inventory-location-select-wrap {
  display: grid;
  min-width: min(100%, 280px);
}

.inventory-location-select {
  appearance: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
  min-height: 42px;
  padding: 9px 12px;
}

.inventory-location-select option {
  color: var(--ink);
  font-weight: 650;
}

.inventory-location-select option:checked {
  color: var(--accent);
  font-weight: 850;
}

:root[data-theme="dark"] .inventory-location-select {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--accent);
  color-scheme: dark;
}

:root[data-theme="dark"] .inventory-location-select option {
  background: var(--surface-2);
  color: var(--ink);
}

:root[data-theme="dark"] .inventory-location-select option:checked {
  background: var(--surface-2);
  color: var(--accent);
}

.inventory-rental-panel {
  display: grid;
  gap: 16px;
}

.inventory-rental-create-form[hidden] {
  display: none !important;
}

.inventory-rental-create-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-rental-renew-dialog {
  max-width: 680px;
}

.inventory-rental-renew-form .compact-fields {
  margin: 0;
}

.inventory-rental-list {
  display: grid;
  gap: 8px;
}

.inventory-rental-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr) auto;
  padding: 10px;
}

.inventory-rental-row-highlight {
  border-color: rgba(166, 255, 0, 0.46);
  box-shadow: 0 0 0 3px rgba(166, 255, 0, 0.12), 0 10px 24px rgba(166, 255, 0, 0.12);
  outline: none;
}

.inventory-rental-main,
.inventory-rental-date {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inventory-rental-main strong {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.inventory-rental-main strong,
.inventory-rental-main .compact,
.inventory-rental-date .compact {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status.rental-ok {
  background: #e4f4ea;
  color: var(--success);
}

.status.rental-warning {
  background: #fff3d7;
  color: var(--warn);
}

.status.rental-overdue {
  background: #ffe4e4;
  color: var(--danger);
}

.status.rental-closed,
.status.rental-unknown {
  background: #edf0f4;
  color: var(--muted);
}

.inventory-open-button {
  width: 100%;
}

.inventory-row.is-filtered-out,
[data-inventory-row][hidden] {
  display: none !important;
}

.inventory-id-cell {
  align-items: start;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inventory-location-inline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inventory-item-cell > .muted.compact {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.inventory-item-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-stock-cell,
.inventory-reserved-cell {
  align-items: center;
  display: inline-grid;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  justify-items: start;
  line-height: 1.15;
}

.inventory-stock-cell small,
.inventory-reserved-cell small,
.inventory-mobile-id,
.inventory-mobile-meta {
  display: none;
}

.inventory-rupture {
  color: var(--danger);
  font-weight: 900;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-pill,
.status,
.role-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  min-width: 0;
  padding: 5px 9px;
  width: fit-content;
}

.id-pill.inventory-mobile-id {
  display: none;
}

.id-pill {
  background: #f1f3f5;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.status {
  background: #e9efed;
  color: #43514d;
}

.status.stock {
  background: #e7f4eb;
  color: var(--success);
}

.status.out {
  background: #f7e9e7;
  color: var(--danger);
}

.status.installed {
  background: #e7eef7;
  color: #2c5f96;
}

.status.warn {
  background: #fff4e6;
  color: var(--warn);
}

.role-pill {
  background: #f1f3f5;
  color: var(--primary);
}

.detail-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.item-layout-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.item-main-column,
.item-side-column,
.media-grid,
.item-work-grid {
  align-items: start;
  display: grid;
  gap: 16px;
}

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

.item-work-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.item-history-panel {
  grid-column: 1 / -1;
}

.item-barcode-row {
  min-width: 0;
}

.item-photo-card,
.qr-inline {
  min-height: 0;
}

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

.field {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 8px 0;
}

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

.field strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.photo-box {
  align-items: center;
  aspect-ratio: 1;
  background: #f1f3f5;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  position: relative;
  text-align: center;
}

.photo-actions {
  background: linear-gradient(180deg, rgba(43, 52, 64, 0), rgba(43, 52, 64, 0.76));
  bottom: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  left: 0;
  padding: 32px 10px 10px;
  position: absolute;
  right: 0;
}

.photo-actions .button,
.photo-actions button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  text-align: center;
}

.photo-actions .button:hover,
.photo-actions button:hover {
  background: #fff;
}

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

.item-photo-camera-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.item-photo-camera-panel[hidden] {
  display: none;
}

.item-photo-camera-panel video {
  aspect-ratio: 4 / 3;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.item-photo-camera-panel .actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-form-photo-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.form-photo-box {
  min-height: 0;
  max-width: 320px;
}

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

.photo-edit-actions .button,
.photo-edit-actions button {
  min-width: 160px;
}

.project-search-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.project-search-field > label {
  color: #374540;
  font-size: 0.88rem;
  font-weight: 700;
}

.project-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  position: relative;
}

.project-search-shell input {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.project-search-toggle {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  min-height: 42px;
  padding: 0;
}

.project-search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-column: 1 / -1;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.project-search-results[hidden] {
  display: none;
}

.project-search-option {
  background: transparent;
  color: var(--ink);
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
}

.project-search-option:hover {
  background: var(--surface-2);
}

.project-search-empty {
  padding: 8px 10px;
}

.project-search-field.disabled {
  opacity: 0.78;
}

.scanner-manual-search-field {
  display: grid;
  gap: 6px;
}

.scanner-manual-search-field > label {
  color: #374540;
  font-size: 0.88rem;
  font-weight: 700;
}

.scanner-item-search-shell {
  position: relative;
}

.scanner-item-search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
}

.scanner-item-search-results[hidden] {
  display: none;
}

.scanner-item-search-option {
  align-items: flex-start;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 2px;
  justify-content: stretch;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
}

.scanner-item-search-option:hover {
  background: var(--surface-2);
}

.scanner-item-search-empty {
  padding: 8px 10px;
}

.dev-company-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dev-company-title-line {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.dev-company-legal {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.checkbox-label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.checkbox-inline {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  line-height: 1.35;
}

.checkbox-inline input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.checkbox-inline-text {
  display: grid;
  gap: 2px;
}

.checkbox-inline-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.checkbox-label input {
  min-height: auto;
  width: auto;
}

.form-note {
  align-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.service-status-panel {
  gap: 12px;
}

.service-status-list {
  border-top: 1px solid var(--line);
}

.service-status-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 0;
}

.service-status-row div {
  display: grid;
  gap: 3px;
}

.service-status-row small {
  color: var(--muted);
  line-height: 1.35;
}

.min-stock-box {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.photo-empty-state {
  color: var(--muted);
}

:root[data-theme="dark"] #itemForm .min-stock-box {
  background: var(--surface-2);
  border-color: var(--line);
}

:root[data-theme="dark"] #itemForm .form-photo-box {
  background: var(--slate-strong);
  border-color: var(--line);
}

:root[data-theme="dark"] #itemForm .photo-empty-state {
  color: var(--muted);
}

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

.scanner-panel {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 16px;
}

.scanner-mode-panel {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.scanner-mode-panel h2 {
  margin: 0;
}

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

.scanner-mode-actions button.active {
  background: var(--primary);
  color: #fff;
}

.scanner-mode-actions button,
.scanner-camera-actions button,
.scanner-camera-actions .button {
  min-width: 0;
  white-space: nowrap;
}

.scanner-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
}

.scanner-workspace.with-batch {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.scanner-workspace.with-batch .scanner-panel {
  max-width: none;
}

.scanner-batch-panel {
  align-content: start;
}

.scanner-batch-panel h2,
.scanner-batch-panel h3 {
  margin: 0;
}

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

.scanner-batch-row {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 120px) auto;
  padding: 10px;
}

.scanner-batch-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scanner-batch-item-main strong,
.scanner-batch-item-main span {
  overflow-wrap: anywhere;
}

.camera-select {
  max-width: 380px;
}

.scanner-help {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -4px 0 0;
}

.scan-file-button {
  position: relative;
}

.video-frame {
  aspect-ratio: 4 / 3;
  background: #0d1816;
  border-radius: 8px;
  display: grid;
  max-width: 640px;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 100%;
}

.video-frame video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.help-scanner-camera-scene {
  background: #8c949b;
  display: grid;
  inset: 0;
  overflow: hidden;
  place-items: center;
  position: absolute;
}

.help-scanner-camera-scene[hidden] {
  display: none;
}

.help-scanner-surface {
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  filter: blur(16px);
  height: 70%;
  position: absolute;
  transform: translate(28%, -15%);
  width: 80%;
}

.help-scanner-paper {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dde1;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
  color: #161c22;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72%;
  padding: 20px 28px;
  transform: rotate(-3deg) translateY(2%);
  width: min(48%, 280px);
}

.help-scanner-paper > strong {
  font-size: 1rem;
}

.help-scanner-paper > span,
.help-scanner-paper > small {
  color: #66717c;
  font-size: .72rem;
}

.help-scanner-qr {
  margin-top: 6px;
  width: min(72%, 170px);
}

.help-scanner-qr .qr-svg {
  display: block;
  height: auto;
  width: 100%;
}

.help-scanner-camera-scene.detected .help-scanner-paper {
  box-shadow: 0 0 0 4px var(--brand), 0 18px 45px rgba(0, 0, 0, .34);
}

.help-scanner-camera-scene.detected::after {
  background: var(--brand);
  color: #111;
  content: "✓";
  display: grid;
  font-size: 1.2rem;
  font-weight: 900;
  height: 38px;
  place-items: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.scan-overlay {
  background: rgba(13, 24, 22, 0.66);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  left: 50%;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 3;
}

.scan-line {
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  height: min(58vw, 260px);
  max-height: 74%;
  max-width: 74%;
  position: absolute;
  width: min(58vw, 260px);
  z-index: 2;
}

.movement-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  min-width: 0;
  padding: 12px;
}

.movement-row > * {
  min-width: 0;
}

.movement-row p,
.movement-row span {
  overflow-wrap: anywhere;
}

.movement-row p {
  margin: 0;
}

.history-packing-slip-link {
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 4px;
  text-decoration: none;
}

.history-packing-slip-link.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.history-packing-slip-link:hover,
.history-packing-slip-link:focus-visible {
  text-decoration: underline;
}

.alert-row[data-route],
.alert-row[data-action="open-rental-alert"] {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.alert-row[data-route]:hover,
.alert-row[data-route]:focus-visible,
.alert-row[data-action="open-rental-alert"]:hover,
.alert-row[data-action="open-rental-alert"]:focus-visible {
  border-color: rgba(166, 255, 0, 0.34);
  box-shadow: 0 8px 22px rgba(166, 255, 0, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.preserve-lines {
  white-space: pre-line;
}

.movement-group.movement-row {
  display: block;
  padding: 0;
}

.movement-group summary {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  list-style: none;
  padding: 12px;
}

.movement-group summary::-webkit-details-marker {
  display: none;
}

.movement-group summary::after {
  color: var(--muted);
  content: "Ouvrir";
  font-size: 0.78rem;
  font-weight: 800;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.movement-group[open] summary::after {
  content: "Fermer";
}

.movement-group-items {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
}

.movement-group-items span {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 8px 10px;
}

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

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

.barcode-row strong,
.barcode-row span {
  display: block;
  overflow-wrap: anywhere;
}

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

.backup-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-settings-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.7fr) auto;
  margin: 14px 0;
}

.backup-list-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
}

.backup-list-toolbar h2 {
  margin-bottom: 2px;
}

.backup-page-select {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.backup-page-select select {
  min-width: 106px;
  width: auto;
}

#backupImportForm > button[type="submit"],
#initialInventoryImportForm > button[type="submit"] {
  justify-self: start;
  max-width: 100%;
  width: fit-content;
}

.backup-card h2 {
  font-size: 1.15rem;
}

.compact-stat {
  min-height: 96px;
}

.compact-stat strong {
  font-size: 1.6rem;
}

.compact-stat small {
  color: var(--muted);
}

.project-card,
.item-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

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

.project-card.is-filtered-out,
[data-project-card][hidden] {
  display: none !important;
}

.project-list-toolbar {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.project-list-toolbar label {
  margin: 0;
}

.project-list-toolbar .compact {
  justify-self: end;
  max-width: 360px;
  text-align: right;
}

.project-archive-tabs {
  display: inline-flex;
  gap: 6px;
  justify-self: end;
}

.project-archive-tabs button {
  min-height: 38px;
  padding: 8px 12px;
}

.project-archive-tabs button.active {
  background: var(--green);
  color: white;
}

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

.label-card {
  align-content: start;
  box-shadow: none;
  break-inside: avoid;
  display: grid;
  gap: 8px;
  min-height: 260px;
  padding: 12px;
  position: relative;
}

.label-print-button {
  background: #e4ece9;
  color: var(--ink);
  min-height: 34px;
  padding: 6px 9px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.label-print-button:hover {
  background: #d6e2df;
}

.label-card > strong:first-of-type {
  padding-right: 42px;
}

.label-card .qr-svg {
  height: 132px;
  justify-self: center;
  width: 132px;
}

.qr-inline .qr-svg {
  height: 160px;
  width: 160px;
}

.qr-inline {
  position: relative;
}

.project-card-with-qr {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
}

.project-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-card-heading {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding-right: 62px;
  position: relative;
}

.project-card-title {
  align-items: flex-start;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.project-card-title strong {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.project-title-link {
  background: transparent;
  border: 0;
  border-color: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 0;
  min-width: 0;
  padding: 0;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
}

.project-title-link:hover,
.project-title-link:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--accent);
  text-decoration: none;
  outline: none;
}

:root[data-theme="dark"] .project-card .project-title-link {
  color: #ffffff !important;
}

:root[data-theme="dark"] .project-card .project-title-link:hover,
:root[data-theme="dark"] .project-card .project-title-link:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #A6FF00 !important;
  text-decoration: none;
  outline: none;
}

.project-pin-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  min-height: 0;
  padding: 2px;
}

.project-pin-button:hover,
.project-pin-button.is-pinned {
  background: transparent;
  color: var(--accent);
}
.project-pin-button.is-pinned {
  color: #A6FF00 !important;
}

.project-card-status-stack {
  align-items: end;
  display: contents;
  justify-items: end;
  min-width: 52px;
}

.project-card-status-stack .status {
  justify-self: end;
  white-space: nowrap;
}

.inventory-id-line {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.inventory-id-photo {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  flex: 0 0 30px;
  height: 30px;
  object-fit: cover;
  width: 30px;
}

.project-card-status-stack [data-action="archive-project"],
.project-card-status-stack [data-action="restore-project"] {
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 0;
  padding: 5px 8px;
  width: fit-content;
}

.project-card-with-qr .actions {
  margin-top: auto;
}

.project-card-qr {
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  justify-items: center;
  height: 54px;
  padding: 3px;
  position: absolute;
  right: 0;
  top: 30px;
  width: 54px;
}

.project-card-qr:hover {
  background: #eef4f1;
  color: var(--ink);
}

.photo-url-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}

.photo-url-form label {
  color: var(--ink);
  display: grid;
  gap: 5px;
  font-size: .82rem;
  font-weight: 750;
}

.photo-url-form input {
  min-width: 0;
}

.photo-url-form button {
  justify-self: start;
}

.project-card-qr .qr-svg {
  height: 46px;
  width: 46px;
}

.project-inventory-layout {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.project-overview-card {
  min-width: 0;
}

.project-qr-panel {
  align-content: start;
  justify-items: center;
  position: relative;
}

.project-qr-panel h2,
.project-qr-panel > strong:first-of-type {
  margin: 0;
  padding-right: 42px;
  width: 100%;
}

.project-qr-panel .qr-svg {
  height: 150px;
  width: 150px;
}

.project-qr-panel .label-print-button {
  right: 10px;
  top: 10px;
}

.project-quickbooks-panel {
  grid-column: 1;
}

.qr-print-client,
.qr-print-project-number {
  display: block;
  font-weight: 750;
}

.qr-print-project-number {
  color: var(--primary);
}

.project-inventory-columns {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-inventory-section {
  align-content: start;
}

.project-quoted-section {
  grid-column: 1 / -1;
}

.project-quoted-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.project-quoted-section summary::-webkit-details-marker {
  display: none;
}

.project-quoted-section summary strong,
.project-quoted-section summary small {
  display: block;
}

.project-quoted-section summary small {
  color: var(--muted);
  font-weight: 750;
  margin-top: 3px;
}

.project-quoted-section form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.quoted-manual-entry {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.quoted-manual-entry summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
  width: fit-content;
}

.quoted-manual-entry summary::-webkit-details-marker {
  display: none;
}

.quoted-manual-entry summary::before {
  color: var(--accent);
  content: "+";
  display: inline-block;
  font-size: 1.05rem;
  margin-right: 6px;
}

.quoted-manual-entry[open] summary::before {
  content: "−";
}

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

.quoted-manual-form label:nth-child(3),
.quoted-manual-form .actions {
  grid-column: 1 / -1;
}

.project-inventory-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.project-inventory-header h2 {
  margin: 0;
}

.project-inventory-list {
  display: grid;
  gap: 8px;
}

.project-inventory-line {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: default;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) minmax(92px, 110px);
  padding: 10px;
}

.project-quoted-line {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) 88px;
  padding: 9px 10px;
}

.project-quoted-line.disabled {
  background: color-mix(in srgb, var(--surface-2) 82%, var(--bg));
  color: var(--muted);
}

.project-inventory-line input[type="checkbox"] {
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.project-quoted-line input[type="checkbox"] {
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.project-inventory-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-inventory-item strong,
.project-inventory-item span {
  overflow-wrap: anywhere;
}

.project-inventory-quantity {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.project-inventory-quantity span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.project-inventory-quantity input {
  min-height: 36px;
  text-align: right;
}

.project-quoted-line input[type="number"] {
  min-height: 36px;
  text-align: right;
}

.project-quoted-status {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.quoted-availability {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  padding: 5px 8px;
  white-space: nowrap;
}

.quoted-availability.available {
  background: #e4f5ed;
  color: #14764d;
}

.quoted-availability.partial {
  background: #fff4df;
  color: #9a5700;
}

.quoted-availability.out {
  background: #ffe9e9;
  color: #b42121;
}

.quoted-availability.reserved {
  background: #e8efff;
  color: #3259a8;
}

.quoted-availability.unmatched {
  background: #edf1f4;
  color: #52606b;
}

.quoted-source {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.quoted-remove-button {
  align-self: start;
  background: transparent;
  color: #ad3434;
  font-size: 0.76rem;
  justify-self: start;
  min-height: 0;
  padding: 2px 0;
}

.quoted-remove-button:hover {
  background: transparent;
  color: #8a2020;
  text-decoration: underline;
}

.quoted-item-search-shell {
  position: relative;
}

.quoted-item-search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  left: 0;
  max-height: 260px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 12;
}

.quoted-item-search-option {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 0;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.quoted-item-search-option:last-child {
  border-bottom: 0;
}

.quoted-item-search-option:hover,
.quoted-item-search-option:focus-visible {
  background: var(--surface-2);
}

@media (max-width: 640px) {
  .quoted-manual-form {
    grid-template-columns: 1fr;
  }
}

.qr-inline > strong:first-of-type {
  padding-right: 42px;
}

.qr-print-name,
.qr-print-id {
  display: block;
  font-weight: 800;
}

.qr-print-code {
  display: grid;
  gap: 0;
  justify-items: center;
}

.qr-print-code .qr-print-id {
  margin-top: -2px;
  text-align: center;
}

.qr-print-name {
  margin-top: 2px;
}

.qr-print-brand-model,
.qr-print-supplier {
  display: block;
  font-size: 0.9rem;
}

.qr-print-id {
  color: var(--primary);
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.toast {
  background: var(--slate);
  border-radius: 8px;
  bottom: 18px;
  color: #fff;
  left: 50%;
  max-width: min(520px, calc(100vw - 24px));
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: 180ms ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.error-inline {
  color: var(--danger);
}

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

.compact {
  font-size: 0.9rem;
}

.hide-desktop {
  display: none;
}

.nav-divider {
  color: #8eaaa2;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 10px 10px 2px;
  text-transform: uppercase;
}

.public-shell {
  background: #f6f7f9;
  min-height: 100vh;
}

/* Public knowledge base */
.blog-filter-bar,
.blog-grid,
.blog-article {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}

.blog-filter-bar button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
}

.blog-filter-bar button.active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  color: var(--ink);
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(48px, 7vw, 86px);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.blog-card.featured {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
}

.blog-card > img,
.blog-card-placeholder {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.blog-card-placeholder {
  align-items: end;
  background: linear-gradient(135deg, var(--slate-strong), var(--slate-soft));
  color: var(--brand);
  display: flex;
  font-size: .76rem;
  font-weight: 900;
  padding: 18px;
}

.blog-card-body {
  display: grid;
  flex: 1;
  gap: 11px;
  padding: 18px;
}

.blog-card-meta,
.blog-article-date {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
  margin: 0;
}

.blog-card h2 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0;
}

.blog-card-body > p:not(.blog-card-meta) {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.text-link {
  align-self: start;
  background: transparent;
  border: 0;
  color: var(--brand-readable);
  font-weight: 850;
  padding: 2px 0;
}

.login-forgot-password {
  align-self: center;
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  margin-top: -4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-panel .login-forgot-password,
.login-panel .login-forgot-password:hover,
.login-panel .login-forgot-password:focus-visible {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 2px 0;
  width: auto;
}

.blog-article {
  max-width: 880px;
  padding-bottom: clamp(56px, 8vw, 100px);
  padding-top: clamp(42px, 6vw, 74px);
}

.blog-article > header {
  display: grid;
  gap: 14px;
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}

.blog-article h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  margin: 0;
}

.blog-article-excerpt {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0;
}

.blog-cover {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 0 0 30px;
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

.blog-article-content {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-article-content h2,
.blog-article-content h3 {
  line-height: 1.22;
  margin: 1.7em 0 .6em;
}

.blog-article-content p,
.blog-article-content ul {
  margin: 0 0 1.15em;
}

.blog-article-content ul { padding-left: 1.25em; }
.blog-article-content a { color: var(--brand-readable); text-decoration: underline; text-underline-offset: 3px; }
.blog-article-content img { border-radius: 8px; display: block; margin: 1.25rem auto; max-width: 100%; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.blog-tags span { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 999px; color: var(--ink); font-size: .8rem; font-weight: 750; padding: 5px 9px; }
.blog-empty { grid-column: 1 / -1; }

/* Developer blog workspace */
.developer-blog-post-list { display: grid; gap: 12px; }
.developer-blog-post-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 18px; justify-content: space-between; padding: 18px; }
.developer-blog-post-copy { min-width: 0; }
.developer-blog-post-copy h2 { font-size: 1.1rem; margin: 8px 0 4px; }
.developer-blog-post-copy p { margin: 4px 0 0; }
.compact-split { justify-content: flex-start; }
.developer-blog-post-actions { flex-shrink: 0; }
.developer-blog-categories-panel { margin-bottom: 18px; }
.developer-blog-category-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.developer-blog-category-chip { align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); display: grid; gap: 3px; padding: 10px 12px; text-align: left; }
.developer-blog-category-chip span { color: var(--muted); font-size: .78rem; }
.developer-blog-category-chip.is-inactive { opacity: .6; }
.developer-blog-editor-dialog { max-width: min(1060px, calc(100vw - 32px)); }
.developer-blog-category-dialog { max-width: min(760px, calc(100vw - 32px)); }
.developer-blog-content-input { min-height: 310px; resize: vertical; }
.developer-blog-seo-fields { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.developer-blog-seo-fields summary { color: var(--ink); cursor: pointer; font-weight: 800; margin-bottom: 12px; }
.checkbox-field { align-items: center; display: flex; gap: 8px; }

:root[data-theme="dark"] .blog-card-placeholder { background: linear-gradient(135deg, #151a1e, #293039); }
:root[data-theme="dark"] .developer-blog-category-chip { background: #2b3138; }
:root[data-theme="dark"] .blog-filter-bar button,
:root[data-theme="dark"] .blog-card .text-link,
:root[data-theme="dark"] .blog-article .text-link {
  color: var(--brand);
}

:root[data-theme="dark"] .blog-filter-bar button.active {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  color: var(--brand);
}

:root[data-theme="dark"] .blog-filter-bar button:hover,
:root[data-theme="dark"] .blog-card .text-link:hover,
:root[data-theme="dark"] .blog-article .text-link:hover {
  color: var(--brand-hover);
}

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .blog-filter-bar button { flex: 0 0 auto; }
  .developer-blog-post-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .developer-blog-post-actions { width: 100%; }
  .developer-blog-post-actions > * { flex: 1; }
  .developer-blog-editor-dialog { max-height: calc(100dvh - 24px); overflow: auto; }
  .developer-blog-content-input { min-height: 220px; }
}

.public-header {
  align-items: center;
  background: rgba(43, 52, 64, 0.98);
  border-bottom: 1px solid rgba(229, 231, 235, 0.14);
  box-shadow: 0 18px 34px rgba(43, 52, 64, 0.12);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: visible;
  padding: 6px clamp(12px, 3vw, 36px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.public-brand {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.public-logo {
  background: transparent;
  color: #fff;
  justify-content: flex-start;
  max-width: min(250px, 24vw);
  min-width: 0;
  padding: 0;
}

.public-logo:hover {
  background: transparent;
}

.public-logo .brand-mark {
  background: transparent;
}

.public-logo .brand-copy strong {
  color: #fff;
}

.public-logo .brand-horizontal-logo {
  width: 242px;
}

.public-logo-mobile {
  display: none;
}

.public-menu-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.2);
  color: #fff;
  display: none;
}

.label-short {
  display: none;
}

.public-nav,
.public-actions,
.public-footer nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.public-nav,
.public-actions {
  flex-wrap: nowrap;
  min-width: 0;
}

/* On desktop, language lives in the footer so the navigation has room for
   the industry menu. The compact-menu rule below restores it in the burger. */
.public-header .public-nav-language {
  display: none;
}

.public-footer nav {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.language-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.22);
  border-radius: 8px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.language-toggle button {
  background: transparent;
  border-radius: 6px;
  color: #eef2f6;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 30px;
  padding: 5px 8px;
}

.language-toggle button:hover,
.language-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.public-nav {
  justify-content: center;
}

.public-nav button,
.public-footer button {
  background: transparent;
  color: #eef2f6;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

.public-actions button,
.public-language-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.public-nav button:hover,
.public-nav button.active {
  background: rgba(166, 255, 0, 0.16);
  color: #fff;
}

.public-footer button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.public-actions button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.2);
  color: #fff;
}

.public-actions button.secondary:hover,
.public-menu-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.public-language-toggle button {
  background: rgba(229, 231, 235, 0.22);
  color: #d7dde5;
}

.public-language-toggle button:hover {
  background: rgba(229, 231, 235, 0.3);
  color: #fff;
}

.public-language-toggle button.active,
.public-language-toggle button.active:hover {
  background: var(--accent);
  color: #fff;
}

.public-actions > button:not(.secondary) {
  background: var(--accent);
  color: #fff;
}

.public-actions > button:not(.secondary):hover {
  background: var(--brand-strong);
}

.hero-section {
  background: #eef2f6;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  min-height: auto;
  overflow: visible;
  padding: clamp(48px, 6vw, 76px) clamp(16px, 5vw, 70px);
  position: relative;
  text-align: center;
  overflow-x: clip;
}

.hero-section::before {
  background: var(--slate);
  content: "";
  height: 52%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin-top: 0;
  max-width: min(960px, 92vw);
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.hero-copy p {
  color: #e5e7eb;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.hero-copy .hero-slogan {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.app-mockup {
  background: #fff;
  border: 1px solid rgba(43, 52, 64, 0.12);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(43, 52, 64, 0.22);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  height: clamp(500px, 48vw, 620px);
  justify-self: center;
  margin-top: clamp(8px, 2vw, 24px);
  max-width: 1120px;
  min-height: 0;
  overflow: visible;
  position: relative;
  width: min(1120px, 94vw);
  z-index: 1;
}

.mock-phone {
  background: var(--slate-strong);
  border: 6px solid #202a35;
  border-radius: 34px;
  bottom: -30px;
  box-shadow: 0 18px 34px rgba(31, 39, 49, 0.34);
  height: 396px;
  left: -38px;
  padding: 9px;
  position: absolute;
  width: 214px;
  z-index: 4;
}

.mock-phone::before {
  background: #202a35;
  border-radius: 0 0 12px 12px;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  width: 82px;
  z-index: 3;
}

.mock-phone-speaker {
  background: #667085;
  border-radius: 999px;
  height: 4px;
  left: 50%;
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  width: 42px;
  z-index: 2;
}

.mock-phone-screen {
  background: #f6f7f9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 25px;
  display: grid;
  gap: 9px;
  height: 100%;
  overflow: hidden;
  padding: 18px 10px 10px;
}

.mock-phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mock-phone-top strong {
  color: var(--slate);
  font-size: 0.76rem;
}

.mock-phone-top span {
  background: var(--accent);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.mock-phone-welcome {
  display: grid;
  gap: 2px;
  padding: 5px 2px;
}

.mock-phone-welcome small,
.mock-phone-scan small,
.mock-phone-mini-grid small {
  color: var(--muted);
  font-size: 0.58rem;
}

.mock-phone-welcome strong {
  color: var(--ink);
  font-size: 1rem;
}

.mock-phone-scan {
  background: #fff;
  border: 1px solid rgba(166,255,0,.62);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.mock-phone-scan strong {
  color: var(--slate);
  font-size: 0.72rem;
}

.mock-phone-qr {
  background:
    linear-gradient(90deg, var(--slate) 20%, transparent 20% 40%, var(--slate) 40% 60%, transparent 60% 80%, var(--slate) 80%),
    linear-gradient(var(--slate) 20%, transparent 20% 40%, var(--slate) 40% 60%, transparent 60% 80%, var(--slate) 80%);
  border-radius: 3px;
  display: block;
  height: 50px;
  width: 50px;
}

.mock-phone-mini-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-phone-mini-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.mock-phone-mini-grid strong {
  background: var(--accent);
  border-radius: 999px;
  display: block;
  height: 8px;
  width: 70%;
}

.mock-phone-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  padding: 9px;
}

.mock-phone-list span {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 18px 1fr 26px;
}

.mock-phone-list i {
  background: rgba(166,255,0,.15);
  border-radius: 5px;
  height: 18px;
}

.mock-phone-list b,
.mock-phone-list em {
  background: #dfe4e8;
  border-radius: 999px;
  display: block;
  height: 6px;
}

.mock-phone-list em {
  background: var(--accent);
}

.mock-sidebar {
  background: var(--slate-strong);
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 12px;
}

.mock-sidebar span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 28px;
}

.mock-sidebar .mock-sidebar-logo {
  background: rgba(255, 255, 255, 0.94);
  height: 48px;
  margin-bottom: 12px;
  width: 48px;
}

.mock-main {
  background: #f6f7f9;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.mock-top,
.mock-stats,
.mock-panel,
.mock-activity {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mock-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.mock-top span {
  background: #fff4e6;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
  padding: 8px 12px;
}

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

.mock-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.mock-stat-icon {
  background: #eef1f4;
  border-radius: 8px;
  display: block;
  height: 32px;
  width: 32px;
}

.mock-stat-icon.accent {
  background: #fff0df;
}

.mock-stat-icon.blue {
  background: #e9f2ff;
}

.mock-stat-icon.green {
  background: #e8f4ee;
}

.mock-stats small {
  color: var(--muted);
  font-weight: 800;
}

.mock-stats strong {
  display: block;
  height: 14px;
  max-width: 72px;
}

.mock-stats strong::before {
  background: var(--slate);
  border-radius: 999px;
  content: "";
  display: block;
  height: 14px;
  opacity: 0.9;
  width: 100%;
}

.mock-dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.mock-panel {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
}

.mock-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mock-panel-head span {
  background: #eef1f4;
  border-radius: 999px;
  height: 28px;
  width: 92px;
}

.mock-line-chart {
  display: grid;
  min-height: 106px;
  position: relative;
}

.mock-line-chart i {
  border-top: 1px solid #e5e7eb;
  display: block;
  left: 0;
  position: absolute;
  right: 0;
}

.mock-line-chart i:nth-child(1) { top: 18%; }
.mock-line-chart i:nth-child(2) { top: 42%; }
.mock-line-chart i:nth-child(3) { top: 66%; }
.mock-line-chart i:nth-child(4) { top: 90%; }

.mock-line-chart svg {
  align-self: end;
  height: 106px;
  width: 100%;
  z-index: 1;
}

.mock-line-chart polygon {
  fill: rgba(166, 255, 0, 0.14);
}

.mock-line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.mock-line-chart circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 4;
}

.mock-category-content {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.mock-donut {
  aspect-ratio: 1;
  background: conic-gradient(var(--accent) 0 32%, var(--slate) 32% 56%, #5c89d6 56% 76%, #4d9b76 76% 90%, #e5e7eb 90% 100%);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.mock-donut span {
  background: #fff;
  border-radius: inherit;
  box-shadow: inset 0 0 14px rgba(43, 52, 64, 0.08);
  display: block;
  height: 58%;
  width: 58%;
}

.mock-legend {
  display: grid;
  gap: 10px;
}

.mock-legend span {
  background: #e7ecef;
  border-radius: 999px;
  display: block;
  height: 10px;
}

.mock-legend span:nth-child(1) { width: 94%; }
.mock-legend span:nth-child(2) { width: 78%; }
.mock-legend span:nth-child(3) { width: 64%; }
.mock-legend span:nth-child(4) { width: 52%; }

.mock-activity {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
}

.mock-activity > span {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  padding-top: 7px;
}

.mock-activity i {
  background: #eef1f4;
  border-radius: 8px;
  height: 28px;
}

.mock-activity em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.mock-activity b {
  background: #e7ecef;
  border-radius: 999px;
  height: 10px;
}

.public-band,
.public-page-head,
.feature-grid,
.pricing-grid,
.faq-list,
.contact-layout,
.legal-copy,
.cta-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(36px, 6vw, 76px) clamp(16px, 4vw, 28px);
}

.public-band.alt {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
}

.public-band.alt > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.section-head,
.public-page-head {
  display: grid;
  gap: 10px;
  text-align: center;
}

.section-head h2,
.public-page-head h1,
.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
}

.section-head p,
.public-page-head p,
.cta-band p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 720px;
}

.benefit-grid,
.feature-grid,
.pricing-grid,
.steps {
  display: grid;
  gap: 16px;
}

.benefit-grid,
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.benefit-grid article,
.feature-grid article,
.steps article,
.pricing-card,
.contact-card,
.legal-copy,
.cta-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefit-grid article,
.feature-grid article,
.steps article,
.pricing-card,
.contact-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.benefit-grid article {
  align-content: start;
  position: relative;
}

.public-feature-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.public-feature-icon svg {
  height: 28px;
  width: 28px;
}

.feature-page-head {
  padding-bottom: 34px;
}

.feature-page-head .eyebrow,
.feature-highlight-eyebrow,
.feature-cta .eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-highlights {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 28px) 72px;
}

.feature-highlight {
  background: var(--slate);
  border: 1px solid #46515e;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.feature-highlight .public-feature-icon {
  color: var(--accent);
}

.feature-highlight h2,
.feature-highlight p {
  margin: 0;
}

.feature-highlight h2 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.feature-highlight p {
  color: #d8dee5;
  line-height: 1.6;
}

.feature-benefits-band {
  padding-bottom: 74px;
  padding-top: 74px;
}

.feature-cta {
  align-items: center;
  background: var(--slate);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 72px;
  max-width: 1124px;
  padding: 30px clamp(20px, 4vw, 42px);
}

.feature-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin: 8px 0 0;
  max-width: 720px;
}

.feature-cta button {
  flex: 0 0 auto;
}

.benefit-grid article strong,
.feature-grid article strong {
  color: var(--slate);
}

.benefit-grid p,
.feature-grid p,
.steps p,
.pricing-card p {
  color: var(--muted);
  margin: 0;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px auto 0;
  max-width: 1180px;
}

.steps span {
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 40px;
  place-items: center;
  width: 40px;
}

.audience-strip {
  background: var(--slate);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 22px;
}

.audience-strip strong {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
}

.cta-band {
  align-items: center;
  display: grid;
  gap: 14px;
  margin-bottom: 52px;
  text-align: center;
}

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

.pricing-inheritance-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.55rem;
}

.pricing-card {
  align-content: space-between;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 24px 54px rgba(166, 255, 0, 0.16);
}

.pricing-card h2,
.pricing-card strong {
  margin: 0;
}

.pricing-card > div > strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.pricing-card ul {
  color: #3c4b47;
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  margin: 12px 0 0;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.contact-card {
  position: sticky;
  top: 92px;
}

.success-message {
  background: #e7f4eb;
  border: 1px solid #b9dcc5;
  border-radius: 8px;
  color: var(--success);
  font-weight: 800;
  padding: 12px;
}

.dtools-status-grid .stat strong {
  align-items: flex-start;
  display: flex;
  font-size: 1rem;
}

.dtools-activation-panel .price {
  color: var(--accent);
  font-size: 1.15rem;
  white-space: nowrap;
}

.feature-list {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding-left: 20px;
}

.compact-fields {
  gap: 8px;
  margin: 12px 0;
}

.developer-integration-card {
  display: grid;
  gap: 12px;
}

.integration-status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.developer-integrations-grid {
  align-items: start;
}

.developer-api-provider {
  margin-bottom: 14px;
  padding: 0;
}

.developer-api-provider > summary,
.developer-api-company-card > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.developer-api-provider > summary {
  min-height: 66px;
  padding: 14px 18px;
}

.developer-api-provider > summary::-webkit-details-marker,
.developer-api-company-card > summary::-webkit-details-marker {
  display: none;
}

.developer-api-provider > summary::after,
.developer-api-company-card > summary::after {
  color: var(--accent);
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  order: -1;
}

.developer-api-provider[open] > summary::after,
.developer-api-company-card[open] > summary::after {
  content: "−";
}

.developer-api-provider summary > span:first-child,
.developer-api-company-card summary > span:first-child {
  display: grid;
  gap: 3px;
}

.developer-api-provider summary small,
.developer-api-company-card summary small {
  color: var(--muted);
  font-size: 0.8rem;
}

.developer-api-provider-content {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.developer-api-company-heading {
  align-items: center;
  margin-top: 2px;
}

.developer-api-company-heading h2 {
  margin: 0;
}

.developer-api-company-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.developer-api-company-card > summary {
  min-height: 58px;
  padding: 10px 12px;
}

.developer-api-company-card > summary .integration-status-line {
  justify-content: flex-end;
}

.developer-api-company-content {
  border-top: 1px solid var(--line);
  padding: 12px;
}

@media (max-width: 640px) {
  .developer-api-provider > summary {
    padding: 12px;
  }

  .developer-api-provider-content {
    padding: 12px;
  }

  .developer-api-company-card > summary .integration-status-line .status:nth-child(n + 2) {
    display: none;
  }
}

.legal-copy {
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

.legal-pack-shell {
  max-width: 980px;
}

.legal-pack {
  color: var(--ink);
  display: grid;
  gap: 34px;
  min-width: 0;
}

.legal-pack-intro {
  background: var(--slate-strong);
  border: 1px solid rgba(166, 255, 0, 0.42);
  border-radius: 8px;
  color: #f4f7f8;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 4vw, 34px);
}

.legal-pack-intro .eyebrow {
  color: var(--brand);
  margin: 0;
}

.legal-pack-intro h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0;
}

.legal-pack-intro p:last-child {
  color: #d4dce2;
  margin: 0;
}

.legal-pack-toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.legal-pack-toc h2,
.legal-document h2 {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  margin: 0;
}

.legal-pack-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-pack-toc li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.legal-pack a {
  color: var(--brand-readable);
  font-weight: 750;
}

.legal-document {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  padding-top: 30px;
  scroll-margin-top: 88px;
}

.legal-document h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  margin: 14px 0 0;
}

.legal-document p,
.legal-document ul {
  color: var(--ink);
  margin: 0;
}

.legal-document ul {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.legal-document-subtitle {
  color: var(--muted) !important;
  font-size: 1.02rem;
  font-weight: 700;
}

.legal-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.legal-table-wrap table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.legal-table-wrap th,
.legal-table-wrap td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table-wrap th {
  background: var(--slate);
  color: #fff;
  font-size: 0.85rem;
}

.legal-table-wrap tr:last-child td {
  border-bottom: 0;
}

.public-footer {
  align-items: center;
  background: var(--slate);
  color: #eef2f6;
  display: grid;
  gap: 10px 18px;
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto) auto;
  overflow: hidden;
  padding: 18px clamp(12px, 3vw, 36px);
}

.public-footer > div {
  min-width: 0;
}

.public-footer strong {
  display: block;
  white-space: nowrap;
}

.public-footer p {
  color: #c4ccd5;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 4px 0 0;
  max-width: 460px;
}

.public-footer button {
  color: #eef2f6;
  flex: 0 0 auto;
  font-size: 0.84rem;
  min-height: 30px;
  padding: 5px 7px;
  white-space: nowrap;
}

.dev-company-row {
  grid-template-columns: minmax(330px, 1.45fr) minmax(132px, 0.82fr) minmax(128px, 0.78fr) minmax(84px, 0.52fr) minmax(78px, 0.48fr) minmax(84px, 0.5fr) minmax(190px, 1fr) minmax(210px, 0.95fr);
  min-width: 1360px;
}

.developer-table {
  overflow-x: auto;
  padding-bottom: 4px;
}

.developer-table .table-row.header {
  align-items: end;
  padding-left: 12px;
  padding-right: 12px;
}

.developer-company-list {
  display: grid;
  gap: 8px;
  width: 100%;
}

.developer-company-create,
.developer-user-create {
  padding: 0;
}

.developer-company-create > summary,
.developer-user-create > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
  min-height: 56px;
  padding: 12px 16px;
}

.developer-company-create > summary::-webkit-details-marker,
.developer-user-create > summary::-webkit-details-marker {
  display: none;
}

.developer-company-create > summary::after,
.developer-user-create > summary::after {
  color: var(--brand);
  content: "+";
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.developer-company-create[open] > summary::after,
.developer-user-create[open] > summary::after {
  content: "−";
}

.developer-company-create > summary > span,
.developer-user-create > summary > span {
  display: grid;
  gap: 3px;
}

.developer-company-create > summary small,
.developer-user-create > summary small {
  color: var(--muted);
  font-size: 0.8rem;
}

.developer-company-create > form,
.developer-user-create > form {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.dev-company-summary-row {
  align-items: stretch;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 6px;
  width: 100%;
}

.dev-company-summary {
  align-items: center;
  background: transparent !important;
  color: var(--ink) !important;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1.45fr) minmax(130px, 0.75fr) minmax(112px, 0.62fr);
  justify-content: stretch;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.dev-company-summary:hover,
.dev-company-summary:focus-visible {
  background: color-mix(in srgb, var(--brand) 11%, transparent) !important;
  outline: none;
}

.dev-company-summary-name {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.dev-company-summary-plan {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-company-summary .status {
  justify-self: start;
  white-space: nowrap;
}

.beta-program-icon {
  align-items: center;
  background: #d94b4b;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.dev-company-summary-row > .secondary {
  align-self: center;
  min-height: 38px;
  padding: 7px 12px;
}

.developer-company-editor-dialog {
  display: grid;
  gap: 18px;
  max-height: min(820px, calc(100vh - 40px));
  max-width: 920px;
  overflow: auto;
  width: min(920px, calc(100vw - 32px));
}

.developer-company-editor-head {
  align-items: start;
}

.developer-company-editor-head h2 {
  margin: 4px 0 6px;
}

.developer-company-editor-stats {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
}

.developer-company-editor-stats span {
  display: grid;
  gap: 3px;
}

.developer-company-editor-stats small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.developer-company-editor-stats strong {
  font-variant-numeric: tabular-nums;
}

.developer-company-editor-fields {
  gap: 14px;
}

.developer-company-editor-limits {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.developer-company-editor-actions {
  justify-content: flex-end;
}

.developer-user-list {
  display: grid;
  gap: 8px;
  width: 100%;
}

.dev-user-summary-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 62px;
  padding: 6px;
  width: 100%;
}

.dev-user-summary {
  align-items: center;
  background: transparent !important;
  color: var(--ink) !important;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 1.25fr) minmax(170px, 1fr) minmax(145px, 0.8fr) minmax(140px, 0.75fr);
  justify-content: stretch;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.dev-user-summary:hover,
.dev-user-summary:focus-visible {
  background: color-mix(in srgb, var(--brand) 11%, transparent) !important;
  outline: none;
}

.dev-user-summary-person {
  align-items: center;
  display: grid;
  gap: 2px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.dev-user-summary-person strong {
  min-width: 0;
}

.dev-user-summary-person small {
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 1 / -1;
}

.dev-user-summary-company,
.dev-user-summary-role {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.dev-user-summary .status {
  justify-self: start;
  white-space: nowrap;
}

.developer-user-editor-dialog {
  display: grid;
  gap: 18px;
  max-height: min(720px, calc(100vh - 40px));
  max-width: 760px;
  overflow: auto;
  width: min(760px, calc(100vw - 32px));
}

.developer-user-editor-fields {
  gap: 14px;
}

.developer-user-editor-status {
  align-content: start;
  display: grid;
  gap: 7px;
}

.developer-user-editor-status small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.developer-user-editor-actions {
  justify-content: flex-end;
}

.dev-company-row > * {
  min-width: 0;
}

.dev-company-control select,
.dev-company-row > select {
  width: 100%;
}

.dev-company-metric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dev-user-row {
  grid-template-columns: 1fr 1.3fr 1fr 0.9fr 0.8fr auto;
}

.developer-user-groups {
  display: grid;
  gap: 14px;
}

.developer-user-company {
  padding: 0;
}

.developer-user-company > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 62px;
  padding: 12px 16px;
}

.developer-user-company > summary::-webkit-details-marker {
  display: none;
}

.developer-user-company > summary::after {
  color: var(--accent);
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  order: -1;
}

.developer-user-company[open] > summary::after {
  content: "−";
}

.developer-user-company > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.developer-user-company > summary small {
  color: var(--muted);
  font-size: 0.8rem;
}

.developer-user-company-content {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.dev-user-group-row {
  grid-template-columns: 1fr 1.3fr 0.9fr 0.8fr auto;
}

.dev-limit-inputs {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
}

.dev-limit-inputs input {
  min-height: 36px;
  padding: 6px 8px;
}

.dev-limit-inputs input[readonly],
.form-grid input.locked-limit {
  background: #eef4f1;
  border-color: #d5e1dc;
  color: #52665f;
  cursor: not-allowed;
}

.notice.soft {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 12px;
}

.notice.soft strong {
  color: #1f2933;
}

:root[data-theme="dark"] .notice.soft {
  background: #3d2d13;
  border-color: #7a5421;
  color: #fde7ba;
}

:root[data-theme="dark"] .notice.soft strong {
  color: #fff4d6;
}

.beta-banner {
  align-items: center;
  background: #fff3c4;
  border: 1px solid #f2cf61;
  border-radius: 8px;
  color: #685100;
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  padding: 11px 14px;
}

.beta-banner > div:first-child {
  display: grid;
  gap: 3px;
}

.beta-banner-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.beta-banner-actions button {
  min-height: 36px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .beta-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .beta-banner-actions {
    justify-content: stretch;
    margin-left: 0;
  }

  .beta-banner-actions button {
    flex: 1 1 180px;
  }
}

.beta-banner strong {
  color: #6a4700;
  white-space: nowrap;
}

.payment-grace-banner {
  align-items: center;
  background: #fff3c4;
  border: 1px solid #e6bd39;
  border-radius: 8px;
  color: #514000;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 13px 14px;
}

.payment-grace-banner > div {
  display: grid;
  gap: 4px;
}

.payment-grace-banner strong,
.payment-grace-banner b {
  color: #4d3900;
}

.payment-grace-banner button {
  flex: 0 0 auto;
}

.payment-grace-dialog {
  display: grid;
  gap: 14px;
  max-width: 580px;
  width: min(580px, 100%);
}

.payment-grace-dialog h2,
.payment-grace-dialog p {
  margin: 0;
}

.payment-grace-dialog .actions {
  margin-top: 4px;
}

:root[data-theme="dark"] .payment-grace-banner {
  background: #40340a;
  border-color: #b68c19;
  color: #fff3bf;
}

:root[data-theme="dark"] .payment-grace-banner strong,
:root[data-theme="dark"] .payment-grace-banner b {
  color: #fff7cf;
}

@media (max-width: 720px) {
  .payment-grace-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-grace-banner button {
    width: 100%;
  }
}

.dev-custom-offer {
  background: #f8faf9;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 8px 10px;
}

:root[data-theme="dark"] .dev-custom-offer {
  background: var(--surface);
  border-color: var(--line);
}

:root[data-theme="dark"] .dev-custom-offer summary strong {
  color: var(--ink);
}

.developer-company-beta-toggle {
  margin-top: 0;
}

.dev-custom-offer summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
}

.dev-custom-offer summary::-webkit-details-marker {
  display: none;
}

.dev-custom-offer summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.dev-custom-offer-grid textarea {
  min-height: 74px;
}

.dev-custom-offer-grid .span-2 {
  grid-column: span 2;
}

.plan-form textarea {
  min-height: 140px;
}

.contact-request h2 {
  font-size: 1.2rem;
}

@media (max-width: 1400px) {
  .public-header {
    gap: 8px;
    grid-template-areas: "brand actions";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-brand {
    grid-area: brand;
  }

  .public-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .public-menu-button {
    display: inline-flex;
  }

  .public-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    gap: 4px;
    left: clamp(12px, 3vw, 36px);
    padding: 6px;
    position: absolute;
    right: clamp(12px, 3vw, 36px);
    top: calc(100% + 6px);
  }

  .public-nav.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-nav button {
    color: var(--ink);
    justify-content: flex-start;
    width: 100%;
  }

  .public-nav button:hover,
  .public-nav button.active {
    background: rgba(166,255,0,.12);
    color: var(--slate);
  }
}

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

  .topbar {
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .topbar-mobile-left {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  .topbar-mobile-logo {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    width: 38px;
  }

  .topbar-mobile-logo:hover {
    background: rgba(43, 52, 64, 0.08);
  }

  .topbar-mobile-logo .brand-mark {
    height: 38px;
    min-height: 38px;
    min-width: 38px;
    width: 38px;
  }

  .topbar-mobile-logo .provintor-mark-image {
    height: 38px;
    width: 38px;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .mobile-drawer {
    box-shadow: 0 18px 34px rgba(43, 52, 64, 0.28);
    left: 0;
    max-height: calc(100vh - 64px);
    overflow: auto;
    position: fixed;
    right: 0;
    top: 64px;
    z-index: 55;
  }

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

  .dashboard-insights {
    grid-template-columns: 1fr;
  }

  .developer-growth-summary {
    justify-content: flex-start;
  }

  .filters,
  .detail-grid,
  .project-list-toolbar,
  .item-layout-grid,
  .item-work-grid,
  .scanner-workspace.with-batch,
  .project-inventory-layout,
  .project-inventory-columns {
    display: grid;
    grid-template-columns: 1fr;
  }

  #inventoryFilters.filters {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #inventoryFilters .inventory-search-filter {
    grid-column: 1;
  }

  .inventory-filter-toggle {
    display: inline-flex;
    grid-column: 2;
    min-height: 42px;
  }

  #inventoryFilters .inventory-advanced-filter {
    display: none;
    grid-column: 1 / -1;
  }

  #inventoryFilters.show-advanced .inventory-advanced-filter {
    display: grid;
  }

  #inventoryFilters.show-advanced button.inventory-advanced-filter {
    display: inline-flex;
    width: 100%;
  }

  .item-main-column,
  .item-side-column {
    display: contents;
  }

  .item-info-card {
    order: 1;
  }

  .item-layout-grid .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .item-checkout-panel {
    order: 3;
  }

  .item-barcode-row {
    order: 4;
  }

  .item-history-panel {
    order: 5;
  }

  .hero-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section::before {
    height: 58%;
  }

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

  .app-mockup {
    grid-template-columns: 82px minmax(0, 1fr);
    justify-self: stretch;
    margin-top: 12px;
    max-height: none;
    max-width: none;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .mock-sidebar {
    padding: 20px 12px;
  }

  .mock-sidebar .mock-sidebar-logo {
    height: 44px;
    width: 44px;
  }

  .mock-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mock-category-content {
    grid-template-columns: minmax(116px, 136px) minmax(0, 1fr);
  }

  .benefit-grid,
  .feature-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-footer {
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .public-footer p {
    max-width: none;
  }

  .public-footer nav {
    margin: 0 -4px;
    padding-bottom: 2px;
  }

  .table-row,
  .table-row.header {
    grid-template-columns: 1fr;
  }

  .table-row.header {
    display: none;
  }

  .developer-table {
    overflow-x: visible;
  }

  .dev-company-row {
    gap: 10px;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .dev-company-row > [data-label] {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  }

  .dev-company-row > [data-label]::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .dev-company-name {
    align-items: start !important;
  }

  .dev-company-name > * {
    grid-column: 2;
  }

  .dev-company-title-line {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dev-company-legal {
    text-align: left;
    white-space: normal;
  }

  .dev-company-name::before {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .dev-company-row .actions {
    justify-content: stretch;
  }

  .dev-company-summary {
    gap: 10px;
    grid-template-columns: minmax(150px, 1fr) minmax(112px, 0.7fr) minmax(104px, 0.55fr);
  }

  .dev-user-summary {
    gap: 10px;
    grid-template-columns: minmax(190px, 1fr) minmax(135px, 0.8fr) minmax(120px, 0.7fr) minmax(120px, 0.65fr);
  }

  .inventory-row {
    align-items: center;
    gap: 5px 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 0;
    padding: 8px 10px;
  }

  .inventory-id-cell {
    display: none;
  }

  .inventory-item-cell {
    grid-column: 1;
    grid-row: 1;
  }

  .inventory-item-title {
    gap: 5px;
    flex-wrap: nowrap;
  }

  .inventory-item-title strong {
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.12;
  }

  .inventory-item-title .status {
    display: none;
  }

  .id-pill.inventory-mobile-id {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.64rem;
    padding: 3px 6px;
  }

  .inventory-mobile-meta {
    display: none;
  }

  .inventory-category-cell,
  .inventory-location-cell,
  .inventory-open-button {
    display: none;
  }

  .inventory-stock-cell,
  .inventory-reserved-cell {
    align-self: stretch;
    border-left: 1px solid var(--line);
    gap: 2px;
    justify-items: end;
    min-width: 54px;
    padding-left: 8px;
  }

  .inventory-stock-cell {
    grid-column: 2;
    grid-row: 1;
  }

  .inventory-reserved-cell {
    grid-column: 3;
    grid-row: 1;
  }

  .inventory-stock-cell small,
  .inventory-reserved-cell small {
    color: var(--muted);
    display: block;
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
  }

  .inventory-stock-cell strong,
  .inventory-reserved-cell strong {
    font-size: 0.88rem;
    line-height: 1.05;
  }

  .inventory-location-switch-panel .split,
  .inventory-rental-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .inventory-location-select-wrap,
  .inventory-location-select {
    width: 100%;
  }

  .inventory-rental-row .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inventory-rental-date {
    align-items: start;
  }

  .hide-mobile {
    display: none;
  }

  .hide-desktop {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .inventory-item-photo {
    display: none;
  }

  .scanner-mode-panel {
    align-items: stretch;
    display: grid;
    width: 100%;
  }

  .scanner-mode-panel > div,
  .scanner-mode-actions {
    min-width: 0;
    width: 100%;
  }

  .scanner-mode-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .scanner-mode-actions button {
    font-size: 0.95rem;
    padding-inline: 8px;
    width: 100%;
  }

  .scanner-camera-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.72fr) minmax(0, 1.18fr);
    width: 100%;
  }

  .scanner-camera-actions button,
  .scanner-camera-actions .button {
    flex: initial;
    font-size: 0.84rem;
    justify-content: center;
    padding-inline: 5px;
    width: 100%;
  }

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

  .scanner-batch-row button {
    width: 100%;
  }

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

  .movement-group summary {
    grid-template-columns: 1fr;
  }

  .movement-group-date {
    justify-self: start;
  }

  .history-pagination {
    justify-content: stretch;
  }

  .history-pagination-count {
    margin-right: 0;
    width: 100%;
  }

  .history-pagination button {
    flex: 1;
  }

  .content {
    padding: 16px;
  }

  .topbar {
    padding: 12px 14px;
  }

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

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .fields,
  .form-grid,
  .media-grid,
  .photo-actions,
  .signup-grid,
  .signup-plan-grid,
  .benefit-grid,
  .feature-grid,
  .pricing-grid,
  .steps,
  .mock-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats.grid.cols-4 {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .developer-stats-grid.grid.cols-3 {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .developer-stats-grid .stat {
    min-height: 82px;
    padding: 10px;
  }

  .developer-stats-grid .stat strong {
    font-size: 1.45rem;
  }

  .dashboard-stats .stat {
    min-height: 92px;
    padding: 12px;
  }

  .dashboard-stats .stat strong {
    font-size: 1.65rem;
  }

  .developer-growth-card {
    min-height: 0;
  }

  .developer-growth-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .developer-growth-summary span {
    justify-content: space-between;
    white-space: normal;
  }

  .developer-growth-chart {
    overflow-x: auto;
  }

  .developer-growth-chart svg {
    min-width: 620px;
  }

  .developer-company-mini {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .developer-company-mini .actions {
    justify-content: space-between;
  }

  .dashboard-chart-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .dashboard-chart-head > div { min-width: 0; }
  .dashboard-chart-head h2 { font-size: 1rem; white-space: nowrap; }
  .dashboard-chart-head p { display: none; }

  .dashboard-chart-head button {
    align-self: center;
    flex: 0 0 auto;
    font-size: .72rem;
    min-height: 28px;
    padding: 3px 0;
  }

  .dashboard-donut-layout {
    align-items: center;
    gap: 12px;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
  }

  .category-donut {
    max-width: 128px;
    min-width: 96px;
  }

  .category-legend { gap: 7px; }
  .category-legend-row { gap: 5px; grid-template-columns: 9px minmax(0, 1fr) auto auto; }
  .category-legend-row strong,
  .category-legend-row span:not(.category-swatch),
  .category-legend-row em { font-size: .72rem; }
  .dashboard-chart-card { min-height: 0; padding: 14px; }
  .movement-chart { min-height: 0; }
  .movement-chart svg { max-height: 190px; }

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

  .item-layout-grid .item-photo-card,
  .item-layout-grid .qr-inline {
    padding: 12px;
  }

  .item-layout-grid .photo-box {
    min-height: 0;
  }

  .item-layout-grid .qr-inline .qr-svg {
    height: min(34vw, 126px);
    width: min(34vw, 126px);
  }

  .project-list-toolbar .compact {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .project-archive-tabs {
    justify-self: start;
    width: 100%;
  }

  .project-archive-tabs button {
    flex: 1;
  }

  .project-inventory-line {
    align-items: center;
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
  }

  .project-quoted-line {
    align-items: center;
    gap: 5px;
    grid-template-columns: auto minmax(0, 1fr) minmax(72px, 0.8fr) auto;
    min-height: 40px;
    padding: 5px 6px;
  }

  .project-quoted-line input[type="checkbox"] {
    height: 17px;
    width: 17px;
  }

  .project-quoted-line input[type="number"] {
    min-height: 28px;
    padding: 4px 5px;
    width: 50px;
  }

  .project-quoted-status {
    align-items: center;
    display: flex;
    gap: 4px;
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
  }

  .project-quoted-status .quoted-availability {
    flex: 0 0 auto;
    font-size: 0.63rem;
    line-height: 1.1;
    padding: 3px 5px;
    white-space: nowrap;
  }

  .project-quoted-status .compact {
    font-size: 0.64rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-quoted-line .project-inventory-item {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    min-width: 0;
  }

  .project-quoted-line .project-inventory-item strong {
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-quoted-line .project-inventory-item .compact,
  .project-quoted-line .project-inventory-item .quoted-source {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-quoted-line .project-inventory-item .quoted-remove-button {
    font-size: 0.66rem;
    line-height: 1;
    padding: 0;
  }

  .project-inventory-quantity {
    grid-column: auto;
    grid-template-columns: auto 58px;
    justify-items: end;
  }

  .project-inventory-quantity input {
    min-height: 32px;
    padding: 6px 7px;
    width: 58px;
  }

  .project-inventory-item {
    gap: 1px;
  }

  .project-inventory-item strong {
    font-size: 0.92rem;
    line-height: 1.18;
  }

  .project-inventory-item .compact {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .span-2 {
    grid-column: auto;
  }

  .actions button,
  .actions a.button {
    flex: 1 1 150px;
  }

  .scanner-camera-actions button,
  .scanner-camera-actions .button {
    flex: initial;
  }

  .video-frame {
    max-width: none;
    min-height: 0;
  }

  .public-header {
    gap: 6px;
    grid-template-areas: "brand actions";
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 5px 8px;
  }

  .public-brand {
    gap: 4px;
    grid-area: brand;
    justify-content: flex-start;
  }

  .public-logo {
    flex: 0 0 36px;
    justify-content: flex-start;
    min-height: 36px;
    max-width: 36px;
  }

  .public-logo-full {
    display: none;
  }

  .public-logo-mobile {
    display: inline-flex;
  }

  .public-logo .brand-mark {
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    width: 36px;
  }

  .public-logo .provintor-mark-image {
    height: 29px;
    width: 29px;
  }

  .public-logo .brand-horizontal-logo {
    width: 150px;
  }

  .public-menu-button {
    display: inline-flex;
    font-size: 1.15rem;
    min-height: 32px;
    padding: 0;
    width: 34px;
  }

  .public-nav.open {
    background: #202428 !important;
    border-color: rgba(166,255,0,.28) !important;
    box-shadow: 0 18px 38px rgba(0,0,0,.32) !important;
    z-index: 40;
  }

  .public-nav.open button { color: #ffffff; }

  .public-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    grid-area: actions;
    justify-content: flex-end;
  }

  .public-actions button {
    border-radius: 7px;
    font-size: 0.72rem;
    line-height: 1;
    min-height: 31px;
    padding: 6px 7px;
    white-space: nowrap;
    width: auto;
  }

  .public-language-toggle {
    padding: 2px;
  }

  .public-language-toggle button {
    font-size: 0.68rem;
    min-height: 27px;
    padding: 4px 5px;
  }

  .public-actions .label-full {
    display: none;
  }

  .public-actions .label-short {
    display: inline;
  }

  .public-nav {
    left: 8px;
    right: 8px;
    top: calc(100% + 5px);
  }

  .public-footer {
    gap: 5px;
    padding: 10px 8px;
  }

  .public-footer strong {
    font-size: 0.9rem;
  }

  .public-footer p {
    display: none;
  }

  .public-footer nav {
    gap: 3px;
    margin: 0 -3px;
  }

  .public-footer button {
    font-size: 0.76rem;
    min-height: 28px;
    padding: 4px 6px;
  }

  .movement-chart-options-head {
    align-items: stretch;
    flex-direction: column;
  }

  .movement-chart-options-form {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }

  .movement-chart-options-form label {
    flex: 1 1 auto;
    min-width: 220px;
  }

  .movement-chart-options-form button {
    margin-left: auto;
  }

  .item-category-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .item-category-summary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .item-category-summary-head button {
    width: 100%;
  }

  .item-category-row .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    padding: 34px 16px;
  }

  .hero-section::before {
    height: 52%;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .app-mockup {
    grid-template-columns: 1fr;
    height: auto;
    margin-top: 8px;
    min-height: auto;
  }

  .mock-phone {
    display: none;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-main {
    gap: 10px;
    padding: 12px;
  }

  .mock-top,
  .mock-stats,
  .mock-panel,
  .mock-activity {
    box-shadow: none;
  }

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

  .mock-top {
    padding: 10px;
  }

  .mock-top span {
    font-size: 0.76rem;
    padding: 6px 8px;
  }

  .mock-stats div {
    gap: 6px;
    padding: 9px;
  }

  .mock-stat-icon {
    height: 30px;
    width: 30px;
  }

  .mock-stats small {
    font-size: 0.7rem;
  }

  .mock-stats strong,
  .mock-stats strong::before {
    height: 14px;
  }

  .mock-dashboard-grid,
  .mock-category-content {
    grid-template-columns: 1fr;
  }

  .mock-panel {
    gap: 10px;
    min-height: 0;
    padding: 10px;
  }

  .mock-panel-head span {
    height: 20px;
    width: 64px;
  }

  .mock-line-chart,
  .mock-line-chart svg {
    height: 96px;
    min-height: 0;
  }

  .mock-donut {
    justify-self: center;
    max-width: 96px;
    width: 96px;
  }

  .mock-legend {
    gap: 7px;
  }

  .mock-activity {
    display: grid;
  }

  .public-page-head,
  .feature-grid,
  .pricing-grid,
  .faq-list,
  .contact-layout,
  .legal-copy,
  .cta-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-pack-toc ol {
    columns: 1;
  }

  .dev-limit-inputs {
    grid-template-columns: 1fr;
  }

  .dev-company-row > .dev-limit-inputs {
    grid-template-columns: minmax(92px, 0.42fr) repeat(3, minmax(0, 1fr));
  }

  .dev-custom-offer-grid {
    grid-template-columns: 1fr;
  }

  .dev-custom-offer-grid .span-2 {
    grid-column: 1;
  }

  .dev-custom-offer summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-company-editor-limits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dev-company-summary-row {
    grid-template-columns: 1fr;
  }

  .dev-company-summary {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dev-company-summary-name {
    grid-column: 1 / -1;
  }

  .dev-company-summary .status {
    justify-self: end;
  }

  .dev-company-summary-row > .secondary {
    justify-self: stretch;
  }

  .dev-user-summary {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dev-user-summary-person {
    grid-column: 1 / -1;
  }

  .dev-user-summary-role {
    grid-column: 1;
  }

  .dev-user-summary .status {
    justify-self: end;
  }

  .developer-company-editor-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .scanner-mode-actions button {
    font-size: 0.86rem;
    padding-inline: 6px;
  }

  .scanner-camera-actions button,
  .scanner-camera-actions .button {
    font-size: 0.74rem;
    padding-inline: 3px;
  }
}

@media (max-width: 680px) {
  .feature-highlights {
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .feature-highlight {
    padding: 20px;
  }

  .feature-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 42px;
  }

  .feature-cta button {
    width: 100%;
  }
}

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

  .sidebar,
  .topbar,
  .page-head .actions,
  .no-print {
    display: none !important;
  }

  .app-shell,
  .main,
  .content {
    display: block;
    min-height: auto;
    padding: 0;
  }

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

  .label-card {
    border: 1px solid #222;
    page-break-inside: avoid;
  }

  body.print-one-label .label-grid {
    display: block;
  }

  body.print-one-label .label-card {
    display: none !important;
  }

  body.print-one-label .label-card.print-selected {
    display: grid !important;
    margin: 0;
    max-width: 320px;
  }

  body.print-item-qr .content > * {
    display: none !important;
  }

  body.print-item-qr .content,
  body.print-item-qr .item-layout-grid,
  body.print-item-qr .item-side-column,
  body.print-item-qr .media-grid {
    display: block !important;
  }

  body.print-item-qr .item-info-card,
  body.print-item-qr .item-main-column,
  body.print-item-qr .item-photo-card,
  body.print-item-qr .item-work-grid,
  body.print-item-qr .item-checkout-panel,
  body.print-item-qr .item-barcode-row,
  body.print-item-qr .item-history-panel,
  body.print-item-qr .media-grid > *:not(.qr-inline) {
    display: none !important;
  }

  body.print-item-qr .qr-inline {
    border: 1px solid #222;
    box-shadow: none;
    display: none !important;
    margin: 0;
    max-width: 320px;
    page-break-inside: avoid;
  }

  body.print-item-qr .qr-inline.print-selected {
    display: grid !important;
    gap: 8px;
    padding: 12px;
  }

  body.print-item-qr .qr-inline .qr-svg {
    height: 150px;
    justify-self: center;
    width: 150px;
  }
}
.topbar button[data-route="/scanner"],
.mobile-menu {
  background: rgba(166, 255, 0, 0.14) !important;
}

.topbar button[data-route="/scanner"]:hover,
.mobile-menu:hover {
  background: rgba(166, 255, 0, 0.22) !important;
}

.demo-entry-button,
.public-demo-button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.demo-session-banner {
  align-items: center;
  background: rgba(166,255,0,.1);
  border-bottom: 1px solid rgba(166,255,0,.35);
  color: var(--ink);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 24px;
}

.demo-session-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.demo-session-actions button {
  min-height: 32px;
  padding: 5px 10px;
}

@media (max-width: 700px) {
  .demo-session-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 8px 14px;
  }

  .demo-session-actions {
    width: 100%;
  }

  .demo-session-actions button {
    flex: 1;
  }
}
.api-plug-icon {
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 5px 5px;
  display: inline-block;
  height: 10px;
  position: relative;
  width: 12px;
}

.api-plug-icon::before {
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: -5px;
  width: 4px;
}

.api-plug-icon::after {
  border-bottom: 1.5px solid currentColor;
  bottom: -5px;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  width: 1.5px;
}

.users-people-icon {
  display: inline-block;
  height: 16px;
  position: relative;
  width: 16px;
  background:
    radial-gradient(circle at 4px 3px, transparent 0 1.3px, currentColor 1.5px 2.2px, transparent 2.5px),
    radial-gradient(ellipse at 4px 12px, transparent 0 3.5px, currentColor 3.7px 4.8px, transparent 5.1px);
}

.users-people-icon::before {
  background: currentColor;
  border-radius: 8px 8px 3px 3px;
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 8px;
  width: 10px;
}

.users-people-icon::after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 9px;
  position: absolute;
  top: 0;
  width: 5px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 460ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.scroll-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Provintor 2026 visual system ------------------------------------------------ */
.public-header .theme-logo-light,
.sidebar .theme-logo-light { display: none; }
.public-header .theme-logo-dark,
.sidebar .theme-logo-dark { display: block; }

.theme-logo-dark { display: none; }
.brand-logo-variants { display: block; line-height: 0; }
:root[data-theme="dark"] .theme-logo-light { display: none; }
:root[data-theme="dark"] .theme-logo-dark { display: block; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-glow);
  outline-offset: 2px;
}

body,
.public-shell {
  background: var(--bg);
  color: var(--ink);
}

#app > .public-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

#app[data-public-hydrating="true"] > .public-shell {
  opacity: 0;
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  #app > .public-shell { transition: none; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 140ms;
  animation-timing-function: ease-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0s; }
}

input,
select,
textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: .75; }

button,
a.button,
.button {
  background: var(--primary);
  color: #fff;
}

:root[data-theme="dark"] button:not(.secondary):not(.danger):not(.ghost),
:root[data-theme="dark"] a.button:not(.secondary):not(.danger):not(.ghost),
:root[data-theme="dark"] .button:not(.secondary):not(.danger):not(.ghost) {
  color: #15200b;
}

button:hover,
a.button:hover,
.button:hover { background: var(--primary-strong); }

button.secondary,
a.button.secondary,
.button.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

button.secondary:hover,
a.button.secondary:hover,
.button.secondary:hover { background: color-mix(in srgb, var(--surface-2) 76%, var(--ink)); }

button.secondary.active,
a.button.secondary.active,
.button.secondary.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #17200e;
}

.brand-horizontal-logo { width: 225px; }
.sidebar .brand-horizontal-logo { width: min(100%, 220px); }
.brand-mark,
.provintor-mark-image { background: transparent; }

.app-shell { background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #202428 0%, #1a2025 100%);
  border-radius: 0 10px 10px 0;
  box-shadow: 10px 0 34px rgba(10, 14, 18, .08);
  padding: 16px 12px;
}

.sidebar .brand-line { min-height: 54px; }
.sidebar .brand-line:hover { background: rgba(255,255,255,.045); }
.sidebar-user { border-top-color: rgba(255,255,255,.11); padding-top: 14px; }
.sidebar-footer { border-top-color: rgba(255,255,255,.11); }
.nav { gap: 5px; }
.nav button {
  border-radius: 7px;
  color: #d9dfe4;
  font-weight: 700;
}
.nav button.active,
.nav button:hover {
  background: rgba(166,255,0,.09);
  border-color: rgba(166,255,0,.25);
  box-shadow: inset 3px 0 0 var(--brand);
  color: #fff;
}
.nav-divider { color: #94a29a; }

.topbar {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  padding: 16px 28px;
}
.content { gap: 20px; padding: 26px 28px 34px; }
.page-title h1 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }

/* Application chrome stays slate in every appearance mode. Only the work
   surface changes between light and dark, which keeps navigation familiar. */
.app-shell {
  background: var(--bg) !important;
}

.app-shell > .sidebar {
  background: #11161b !important;
  color: #f4f7f8;
  box-shadow: 10px 0 34px rgba(10, 14, 18, .12);
}

.app-shell > .sidebar strong,
.app-shell > .sidebar small,
.app-shell > .sidebar .nav button,
.app-shell > .sidebar .nav-caret {
  color: #f4f7f8;
}

.app-shell > .sidebar .brand-line:hover,
.app-shell > .sidebar .nav button:hover {
  background: rgba(255,255,255,.07);
}

.app-shell > .sidebar .sidebar-user,
.app-shell > .sidebar .sidebar-footer {
  border-top-color: rgba(255,255,255,.11);
}

.app-shell .topbar {
  background: #11161b !important;
  border-bottom-color: rgba(255,255,255,.11);
  color: #f4f7f8;
}

.app-shell .topbar > .truncate,
.app-shell .topbar strong {
  color: #f4f7f8;
}

/* The light workspace uses the same official slate visible in the public
   dashboard preview; dark mode retains its deeper application chrome. */
:root[data-theme="light"] .app-shell > .sidebar,
:root[data-theme="light"] .app-shell .topbar {
  background: #202428 !important;
}

/* The Scanner action sits on the permanent dark application bar. */
:root[data-theme="light"] .app-shell .topbar button[data-route="/scanner"] {
  color: #ffffff;
  border-color: rgba(255,255,255,.22);
}

:root[data-theme="dark"] .app-shell > .sidebar {
  background: #11161b !important;
}

:root[data-theme="dark"] .app-shell > .sidebar strong,
:root[data-theme="dark"] .app-shell > .sidebar small,
:root[data-theme="dark"] .app-shell > .sidebar .nav button,
:root[data-theme="dark"] .app-shell > .sidebar .nav-caret {
  color: #f4f7f8;
}

:root[data-theme="dark"] .app-shell {
  background: var(--slate) !important;
}

/* Keep the application rail flush with the viewport and give the brand the
   available width instead of wasting it on inner margins. */
.app-shell > .sidebar {
  top: 0 !important;
  max-height: 100vh;
  border-radius: 0 8px 8px 0;
  gap: 8px;
  padding: 8px 5px;
}

.app-shell > .sidebar .brand-line {
  min-height: 48px;
  padding: 0 1px;
}

.app-shell > .sidebar .brand-horizontal-logo {
  width: 100%;
  max-width: 250px;
}

.panel,
.stat,
.item-card,
.project-card,
.movement-row,
.scanner-panel,
.label-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.panel { border-radius: 10px; padding: 18px; }
.stat { border-radius: 10px; min-height: 118px; padding: 18px; }
.stat strong { letter-spacing: -.02em; }

.movement-chart line,
.developer-growth-chart line { stroke: var(--line); }
.movement-chart circle,
.developer-growth-dot { stroke: var(--surface); }
.category-donut::after { background: var(--surface); }
.developer-growth-summary span,
.developer-company-mini,
.table-row,
.import-preview th { background: var(--surface-2); border-color: var(--line); color: var(--ink); }

:root[data-theme="dark"] .topbar-mobile-logo:hover { background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .sidebar .nav button:not(.secondary):not(.danger):not(.ghost) { color: #d9dfe4; }
:root[data-theme="dark"] .sidebar .nav button.active:not(.secondary):not(.danger):not(.ghost),
:root[data-theme="dark"] .sidebar .nav button:hover:not(.secondary):not(.danger):not(.ghost) { color: #ffffff; }
:root[data-theme="dark"] .project-pin-button:not(.is-pinned) { color: #d9dfe4 !important; }
:root[data-theme="dark"] .project-pin-button:hover,
:root[data-theme="dark"] .project-pin-button.is-pinned { color: #A6FF00 !important; }
:root[data-theme="dark"] .project-search-field > label,
:root[data-theme="dark"] .inventory-search-filter { color: #ffffff !important; }
:root[data-theme="dark"] label,
:root[data-theme="dark"] legend,
:root[data-theme="dark"] summary,
:root[data-theme="dark"] .tab,
:root[data-theme="dark"] [role="tab"] { color: var(--ink); }
:root[data-theme="dark"] .mobile-drawer { background: #202428; }
:root[data-theme="dark"] .field,
:root[data-theme="dark"] .detail-grid > *,
:root[data-theme="dark"] .item-category-row,
:root[data-theme="dark"] .quoted-item-row,
:root[data-theme="dark"] .project-inventory-line,
:root[data-theme="dark"] .project-quoted-line,
:root[data-theme="dark"] .scanner-batch-item { border-color: var(--line); background: var(--surface-2); }
:root[data-theme="dark"] .project-quoted-line.disabled { background: color-mix(in srgb, var(--surface-2) 82%, var(--bg)); color: var(--muted); }
:root[data-theme="dark"] .status,
:root[data-theme="dark"] .badge { filter: saturate(.88); }

.public-header {
  background: linear-gradient(110deg, #171d22 0%, #202428 55%, #171d22 100%);
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 34px rgba(15,20,24,.2);
  min-height: 84px;
  padding: 8px clamp(18px, 3vw, 46px);
}
.public-logo { max-width: 255px; }
.public-logo .brand-horizontal-logo { width: 205px; }
.public-nav { gap: 11px; }
.public-nav button {
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .93rem;
  font-weight: 750;
  padding: 8px 12px;
}
.public-nav button:hover,
.public-nav button.active {
  background: rgba(166,255,0,.08);
  border-color: rgba(166,255,0,.3);
  color: var(--brand);
}
.public-actions { gap: 12px; }
.public-actions button.secondary,
.public-menu-button,
.language-toggle {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.22);
}
.public-language-toggle button { color: #b9c2c9; }
.public-language-toggle button.active,
.public-language-toggle button.active:hover { background: rgba(166,255,0,.17); color: var(--brand); }
.public-actions > button:not(.secondary),
.demo-entry-button,
.public-demo-button {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(166,255,0,.2);
  color: #15200b;
}
.public-actions > button:not(.secondary):hover,
.demo-entry-button:hover,
.public-demo-button:hover { background: #c0ff48; }

.hero-section {
  background: var(--bg);
  border-bottom: 0;
  gap: 34px;
  isolation: isolate;
  min-height: min(920px, calc(100vh - 84px));
  padding: clamp(58px, 7vw, 92px) clamp(16px, 5vw, 76px) clamp(84px, 8vw, 120px);
}
.hero-section::before {
  background:
    radial-gradient(circle at 13% 78%, rgba(166,255,0,.17) 0 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(circle at 70% 62%, rgba(166,255,0,.11), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 95%, #0c141a) 0%, var(--bg) 74%);
  height: 100%;
  opacity: 1;
  z-index: -2;
}
:root[data-theme="light"] .hero-section::before { background: radial-gradient(circle at 13% 78%, rgba(32,36,40,.18) 0 1px, transparent 1.5px) 0 0 / 14px 14px, radial-gradient(circle at 72% 50%, rgba(166,255,0,.12), transparent 36%), linear-gradient(180deg, #fff 0%, #f7f8f8 100%); }
.hero-orbits { bottom: 8%; height: min(58vw, 540px); pointer-events: none; position: absolute; right: -9%; width: min(62vw, 850px); z-index: -1; }
.hero-orbits path { fill: none; stroke: var(--brand); stroke-opacity: .3; stroke-width: 1.4; }
.hero-orbits circle { fill: var(--brand); filter: drop-shadow(0 0 6px var(--brand)); }
.hero-copy { gap: 17px; max-width: 920px; }
.hero-copy h1 { color: var(--ink); font-size: clamp(3.25rem, 6.5vw, 6.1rem); font-weight: 850; letter-spacing: -.055em; }
.hero-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 710px; }
.hero-copy .hero-slogan { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.42rem); }
.hero-copy .eyebrow { color: var(--brand-strong); font-size: .79rem; }
.hero-copy .actions > button:first-child { background: var(--brand); box-shadow: 0 12px 26px rgba(166,255,0,.2); color: #15200b; }
.hero-copy .actions > button:first-child:hover { background: #c0ff48; }
.hero-copy .actions .secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.app-mockup {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 18px;
  box-shadow: var(--shadow-elevated);
  height: clamp(488px, 46vw, 625px);
  max-width: 1060px;
  width: min(1060px, calc(100% - 28px));
}
.mock-sidebar { background: linear-gradient(180deg, #202428, #171c21); padding: 22px 18px; }
.mock-sidebar-logo { background: url('/assets/brand/provintor-icone-blanche.svg') center / contain no-repeat; }
.mock-main { background: var(--surface); padding: 22px; }
.mock-top { border-bottom-color: var(--line); color: var(--ink); }
.mock-top span { background: rgba(166,255,0,.12); border: 1px solid rgba(166,255,0,.35); color: var(--brand-strong); }
.mock-stats > div,
.mock-panel,
.mock-activity { background: var(--surface-2); border-color: var(--line); }
.mock-stats small,
.mock-panel-head,
.mock-activity { color: var(--ink); }
.mock-stat-icon { background: rgba(166,255,0,.12); color: var(--brand-strong); }
.mock-stat-icon.accent { background: rgba(166,255,0,.15); }
.mock-line-chart i { border-top-color: var(--line); }
.mock-line-chart polyline { stroke: var(--brand); }
.mock-line-chart polygon { fill: rgba(166,255,0,.13); }
.mock-line-chart circle { fill: var(--brand); }
.mock-donut { background: conic-gradient(var(--brand) 0 45%, #77ae49 45% 70%, #7296d3 70% 88%, #d1d8d6 88% 100%); }
.mock-donut::after { background: var(--surface-2); }
.mock-activity span { border-top-color: var(--line); }

.mock-phone {
  background: #101519;
  border: 7px solid #090d10;
  border-radius: 37px;
  bottom: -44px;
  box-shadow: 0 24px 50px rgba(0,0,0,.36);
  height: 414px;
  left: -44px;
  padding: 7px;
  width: 225px;
}
.mock-phone::before { background: #090d10; border-radius: 0 0 14px 14px; height: 20px; width: 96px; }
.mock-phone-screen { background: #f7f8f8; border-radius: 28px; }
:root[data-theme="dark"] .mock-phone-screen { background: #202428; border-color: #3c434a; }
:root[data-theme="dark"] .mock-phone-top strong,
:root[data-theme="dark"] .mock-phone-welcome strong,
:root[data-theme="dark"] .mock-phone-scan strong { color: #f7f8f8; }
:root[data-theme="dark"] .mock-phone-scan,
:root[data-theme="dark"] .mock-phone-mini-grid > div { background: #2b3138; border-color: #3b434c; }
.mock-phone-scan { border-color: rgba(166,255,0,.55); }
.mock-phone-top span { background: var(--brand); }

.public-band.alt { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .public-nav {
  background: #202428;
  border-color: rgba(255,255,255,.14);
}
:root[data-theme="dark"] .public-nav button { color: #f4f7f8; }
:root[data-theme="dark"] .public-nav button:hover,
:root[data-theme="dark"] .public-nav button.active {
  background: rgba(166,255,0,.1);
  color: var(--brand);
}
.benefit-grid article,
.feature-grid article,
.steps article,
.pricing-card,
.contact-card,
.legal-copy,
.cta-band { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.benefit-grid article strong,
.feature-grid article strong { color: var(--ink); }
.feature-highlight,
.feature-cta,
.audience-strip { background: linear-gradient(145deg, #202428, #2b3138); border-color: #3c444d; }
.steps span { background: var(--brand); color: #15200b; }
.pricing-card.featured { border-color: var(--brand); box-shadow: 0 22px 52px rgba(166,255,0,.14); }
.faq-list details {
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .faq-list details { color: #f4f7f8; }
:root[data-theme="dark"] .faq-list summary { color: #ffffff; }
:root[data-theme="dark"] .faq-list p { color: #d9e0e5; }
.public-footer { background: #171c21; border-top-color: rgba(255,255,255,.1); }
.public-footer,
.public-footer strong,
.public-footer nav button,
.public-footer .theme-switcher,
.public-footer .theme-switcher > span,
.public-footer .theme-switcher button { color: #ffffff; }
.public-footer p { color: #cbd2d8; }
.public-footer-preferences { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
.public-footer-language,
.theme-switcher { align-items: center; color: #c6cdd3; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.public-footer-language > span,
.theme-switcher > span { font-size: .78rem; font-weight: 750; margin-right: 4px; }
.theme-switcher button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #cbd2d8; font-size: .76rem; min-height: 31px; padding: 5px 8px; }
.theme-switcher button.active { background: rgba(166,255,0,.14); border-color: rgba(166,255,0,.42); color: var(--brand); }

.demo-entry-button,
.public-demo-button { color: #15200b; }
.demo-session-banner { background: rgba(166,255,0,.1); border-bottom-color: rgba(166,255,0,.34); color: var(--ink); }

/* The developer portal contains many admin forms and dense operational tables.
   Keep every label and secondary caption readable on the dark application
   surface instead of inheriting the light-theme form label color. */
:root[data-theme="dark"] .developer-shell label,
:root[data-theme="dark"] .developer-shell legend,
:root[data-theme="dark"] .developer-shell .page-title h1,
:root[data-theme="dark"] .developer-shell .page-title p,
:root[data-theme="dark"] .developer-shell .panel h2,
:root[data-theme="dark"] .developer-shell .panel h3,
:root[data-theme="dark"] .developer-shell .panel strong,
:root[data-theme="dark"] .developer-shell .table-row,
:root[data-theme="dark"] .developer-shell .table-row strong,
:root[data-theme="dark"] .developer-shell .developer-api-provider > summary,
:root[data-theme="dark"] .developer-shell .developer-api-company-card > summary,
:root[data-theme="dark"] .developer-shell .developer-user-company > summary,
:root[data-theme="dark"] .developer-shell .developer-blog-post-copy h2,
:root[data-theme="dark"] .developer-shell .developer-blog-category-chip,
:root[data-theme="dark"] .developer-shell .developer-blog-seo-fields summary {
  color: var(--ink);
}

:root[data-theme="dark"] .developer-shell .muted,
:root[data-theme="dark"] .developer-shell .form-note,
:root[data-theme="dark"] .developer-shell .panel p,
:root[data-theme="dark"] .developer-shell .panel small,
:root[data-theme="dark"] .developer-shell .developer-api-provider summary small,
:root[data-theme="dark"] .developer-shell .developer-api-company-card summary small,
:root[data-theme="dark"] .developer-shell .developer-user-company > summary small,
:root[data-theme="dark"] .developer-shell .developer-blog-category-chip span,
:root[data-theme="dark"] .developer-shell .developer-table .table-row.header,
:root[data-theme="dark"] .developer-shell .service-status-row small,
:root[data-theme="dark"] .developer-shell .empty {
  color: var(--muted);
}

:root[data-theme="dark"] .developer-shell .developer-company-mini,
:root[data-theme="dark"] .developer-shell .developer-growth-summary span,
:root[data-theme="dark"] .developer-shell .table-row,
:root[data-theme="dark"] .developer-shell .developer-blog-post-card,
:root[data-theme="dark"] .developer-shell .developer-blog-category-chip,
:root[data-theme="dark"] .developer-shell .developer-api-company-card,
:root[data-theme="dark"] .developer-shell .developer-blog-seo-fields {
  background: var(--surface-2);
  border-color: var(--line);
}

:root[data-theme="dark"] .developer-shell input,
:root[data-theme="dark"] .developer-shell select,
:root[data-theme="dark"] .developer-shell textarea,
:root[data-theme="dark"] .developer-shell option {
  background: var(--surface-2);
  color: var(--ink);
}

:root[data-theme="dark"] .developer-shell input::placeholder,
:root[data-theme="dark"] .developer-shell textarea::placeholder {
  color: var(--muted);
  opacity: .9;
}

:root[data-theme="dark"] .developer-shell .developer-api-provider-content,
:root[data-theme="dark"] .developer-shell .developer-api-company-content,
:root[data-theme="dark"] .developer-shell .developer-user-company-content,
:root[data-theme="dark"] .developer-shell .service-status-list {
  border-color: var(--line);
}

:root[data-theme="dark"] .developer-shell .developer-growth-chart text {
  fill: var(--muted);
}

/* Public forms and plan descriptions need a bright foreground on dark theme
   surfaces. Keep the controls themselves on the shared ink tokens. */
:root[data-theme="dark"] .login-panel label,
:root[data-theme="dark"] #contactForm label,
:root[data-theme="dark"] #itemForm label,
:root[data-theme="dark"] .pricing-card p,
:root[data-theme="dark"] .pricing-card ul {
  color: #f4f7f8;
}

:root[data-theme="dark"] #inventoryFilters label {
  color: #ffffff;
}

:root[data-theme="dark"] .pricing-card ul {
  color: #f4f7f8;
}

:root[data-theme="dark"] .signup-terms-copy {
  background: #2b3138 !important;
  border-color: #3b434c !important;
  color: #f4f7f8;
}

:root[data-theme="dark"] .signup-terms-copy p,
:root[data-theme="dark"] .signup-terms-copy h2 {
  color: #f4f7f8 !important;
}

:root[data-theme="dark"] .signup-acceptance {
  background: #202428 !important;
  border-color: #3b434c !important;
  color: #f4f7f8 !important;
}

:root[data-theme="dark"] .signup-acceptance span {
  color: #f4f7f8 !important;
}

:root[data-theme="dark"] .signup-acceptance input {
  accent-color: var(--brand);
}

@media (max-width: 1050px) {
  .content { padding: 20px 16px 28px; }
  .public-header { min-height: 68px; }
  .hero-section { min-height: auto; padding-bottom: 78px; }
  .hero-orbits { right: -34%; top: 21%; width: 130vw; }
  .app-mockup { border-radius: 14px; width: 100%; }
}

@media (max-width: 700px) {
  .public-logo .brand-horizontal-logo { width: 148px; }
  .public-header { padding-inline: 14px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 15vw, 4.1rem); }
  .hero-copy .hero-slogan { font-size: 1.06rem; }
  .hero-copy p { font-size: .96rem; }
  .hero-orbits { opacity: .52; right: -55%; top: 20%; width: 160vw; }
  .app-mockup { height: 410px; margin-top: 4px; overflow: visible; }
  .mock-main { padding: 12px; }
  .mock-phone { bottom: -36px; display: block; height: 290px; left: -8px; transform: scale(.72); transform-origin: bottom left; }
  .theme-switcher { justify-content: flex-start; }
}

/* Public hero - reference fidelity ------------------------------------------ */
.public-header {
  background: #111a22;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none;
  min-height: 84px;
  padding: 3px 16px 3px 42px;
}

.brand-reference-logo {
  align-items: center;
  display: flex;
  height: 76px;
  line-height: 0;
  overflow: visible;
  width: 276px;
}

.brand-reference-mark {
  flex: 0 0 auto;
  height: 76px;
  margin-left: -19px;
  width: 76px;
}

.brand-reference-copy {
  flex: 0 0 auto;
  height: 70px;
  margin-left: 3px;
  overflow: hidden;
  position: relative;
  width: 142px;
}

.brand-reference-copy img {
  height: 78px;
  left: -78px;
  max-width: none;
  position: absolute;
  top: 0;
  width: auto;
}

.public-logo { max-width: 280px; width: 276px; }
.sidebar .brand-reference-logo { width: 100%; }

.public-header .public-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 8px;
  transform: translateX(10px);
}

:root[data-theme="dark"] .public-header .public-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root[data-theme="dark"] .public-header .public-nav button:not(.secondary):not(.danger):not(.ghost),
.public-header .public-nav button {
  background: transparent;
  border: 1px solid transparent;
  color: #f4f7f8;
  font-size: .875rem;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 12px;
}

:root[data-theme="dark"] .public-header .public-nav button.active:not(.secondary):not(.danger):not(.ghost),
:root[data-theme="dark"] .public-header .public-nav button:hover:not(.secondary):not(.danger):not(.ghost),
.public-header .public-nav button.active,
.public-header .public-nav button:hover {
  background: rgba(166, 255, 0, .045);
  border-color: rgba(166, 255, 0, .28);
  color: var(--brand);
}

.public-header .public-actions button.secondary {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .22);
  color: #f4f7f8;
}

.public-header .public-actions > button {
  font-size: .875rem;
  min-height: 42px;
  padding: 9px 16px;
}

.public-header .public-actions > button:not(.secondary) {
  box-shadow: 0 7px 18px rgba(166, 255, 0, .16);
}

.hero-section {
  background: var(--bg);
  gap: 35px;
  min-height: 860px;
  overflow: hidden;
  padding: 62px 20px 126px;
}

.hero-section::before {
  background: transparent;
  height: 100%;
  opacity: 1;
}

.hero-section::after {
  background-image: radial-gradient(circle, rgba(166, 255, 0, .42) 0 1px, transparent 1.2px);
  background-size: 18px 18px;
  bottom: 0;
  content: "";
  height: 46%;
  left: 0;
  mask-image: linear-gradient(90deg, #000, transparent 92%), linear-gradient(0deg, #000, transparent 92%);
  opacity: .085;
  pointer-events: none;
  position: absolute;
  width: 34%;
  z-index: 0;
}

:root[data-theme="light"] .hero-section { background: var(--bg); }
:root[data-theme="light"] .hero-section::before { background: transparent; }
:root[data-theme="light"] .hero-section::after {
  background-image: radial-gradient(circle, rgba(32, 36, 40, .32) 0 1px, transparent 1.2px);
  opacity: .045;
}

.hero-copy {
  gap: 11px;
  max-width: 980px;
  translate: 7px 1px;
  z-index: 2;
}

.hero-copy .eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
}

.hero-copy h1 {
  color: #f7f9fa;
  font-size: clamp(4rem, 5.65vw, 5.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-copy .hero-slogan {
  color: #f5f7f8;
  font-size: clamp(1.13rem, 1.45vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-copy p:not(.hero-slogan) {
  color: #b9c2c9;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

:root[data-theme="light"] .hero-copy h1,
:root[data-theme="light"] .hero-copy .hero-slogan { color: #202428; }
:root[data-theme="light"] .hero-copy p:not(.hero-slogan) { color: #667085; }

/* Text on pale surfaces uses a deeper green for readable contrast. The lime
   brand remains reserved for high-impact controls, charts and indicators. */
:root[data-theme="light"] .hero-copy .eyebrow,
:root[data-theme="light"] .content .eyebrow,
:root[data-theme="light"] .public-page-head .eyebrow,
:root[data-theme="light"] .dashboard-retention-alert .eyebrow,
:root[data-theme="light"] .history-packing-slip-link,
:root[data-theme="light"] .quoted-source,
:root[data-theme="light"] .dtools-activation-panel .price {
  color: var(--brand-readable);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] .app-mockup .mock-top span,
:root[data-theme="light"] .app-mockup .mock-stat-icon,
:root[data-theme="light"] .app-mockup .mock-stat-icon.mint,
:root[data-theme="light"] .app-mockup .mock-stats em,
:root[data-theme="light"] .app-mockup .mock-activity b,
:root[data-theme="light"] .app-mockup .mock-phone-action span {
  color: var(--brand-readable);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-copy .actions {
  gap: 20px;
  margin-top: 2px;
}

.hero-copy .actions > button {
  font-size: .9rem;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 22px;
}

.hero-copy .actions .secondary {
  border-color: rgba(255, 255, 255, .28);
  color: #f4f7f8;
}
:root[data-theme="light"] .hero-copy .actions .secondary {
  border-color: #aeb7c0;
  color: #202428;
}

.hero-orbits {
  bottom: auto;
  height: 560px;
  right: -104px;
  top: 60px;
  width: 880px;
  z-index: 0;
}
.hero-orbits path {
  fill: none;
  stroke: url(#provintor-orbit-gradient);
  stroke-linecap: round;
  stroke-width: 1.15;
}
.hero-orbits .hero-orbit-highlight { stroke: url(#provintor-orbit-active-gradient); }
.hero-orbit-light { fill: url(#provintor-orbit-light); }
.hero-orbit-point { fill: var(--brand); filter: url(#provintor-orbit-glow); }
:root[data-theme="light"] .hero-orbits { opacity: .72; }

.app-mockup {
  background: #182129;
  border: 1px solid rgba(166, 255, 0, .3);
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .34), 0 0 34px rgba(166, 255, 0, .04);
  grid-template-columns: 158px minmax(0, 1fr);
  height: 526px;
  margin-top: 0;
  max-width: 1008px;
  translate: 5px 0;
  width: min(1008px, calc(100% - 44px));
  z-index: 2;
}

.app-mockup.public-dashboard-preview::before {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(166, 255, 0, .072) 0%, rgba(166, 255, 0, .034) 39%, rgba(166, 255, 0, .012) 58%, transparent 75%);
  border-radius: 38px;
  content: "";
  filter: blur(28px);
  inset: -18px -28px -76px;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.app-mockup.public-dashboard-preview::after {
  background: transparent;
  border: 1px solid rgba(166, 255, 0, .28);
  border-radius: 16px;
  content: "";
  inset: -2px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

:root[data-theme="light"] .app-mockup {
  background: #ffffff;
  border-color: rgba(32, 36, 40, .28);
  box-shadow: 0 28px 68px rgba(32, 36, 40, .18);
}

:root[data-theme="light"] .app-mockup.public-dashboard-preview::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(166, 255, 0, .13) 0%, rgba(166, 255, 0, .055) 34%, transparent 70%),
    linear-gradient(180deg, rgba(32, 36, 40, .05), transparent 34%, transparent 72%, rgba(32, 36, 40, .09));
}

:root[data-theme="light"] .app-mockup.public-dashboard-preview::after {
  background: transparent;
  border-color: rgba(32, 36, 40, .28);
}

.mock-sidebar {
  background: linear-gradient(180deg, #202a33, #182129);
  border-radius: 13px 0 0 13px;
  gap: 12px;
  padding: 22px 16px;
}

.mock-sidebar .mock-sidebar-logo {
  background: rgba(255, 255, 255, .035) url('/assets/brand/provintor-marque-blanche.svg') center / 70% auto no-repeat;
  border-radius: 8px;
  height: 42px;
  margin-bottom: 12px;
  width: 42px;
}

.mock-sidebar .mock-nav-row {
  align-items: center;
  background: transparent;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  height: 30px;
  padding: 4px 6px;
}
.mock-sidebar .mock-nav-row.active { background: rgba(166, 255, 0, .08); }
.mock-nav-row i {
  color: #88949d;
  font-size: .72rem;
  font-style: normal;
  text-align: center;
}
.mock-nav-row.active i { color: var(--brand); }
.mock-nav-row b {
  background: rgba(222, 228, 232, .22);
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 72%;
}

.mock-main {
  background: #182129;
  border-radius: 0 18px 18px 0;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
}
:root[data-theme="light"] .mock-main { background: #f8f9fa; }

.mock-top,
.mock-stats,
.mock-panel,
.mock-activity { box-shadow: none; }

.mock-top {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #f5f7f8;
  min-height: 38px;
  padding: 0 2px;
}
.mock-top strong { font-size: 1.02rem; font-weight: 700; }
.mock-top span {
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--brand);
  font-size: .68rem;
  font-weight: 600;
  padding: 8px 12px;
}
:root[data-theme="light"] .mock-top { color: #202428; }
:root[data-theme="light"] .mock-top span { background: #f3f7ea; border-color: rgba(166,255,0,.42); }

.mock-stats {
  background: transparent;
  border: 0;
  gap: 10px;
}
.mock-stats > div {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto 5px;
  min-height: 96px;
  padding: 13px;
}
:root[data-theme="light"] .mock-stats > div { background: #ffffff; border-color: #e1e5e7; }

.mock-stat-icon {
  align-items: center;
  background: rgba(166, 255, 0, .12);
  color: var(--brand);
  display: flex;
  font-size: .85rem;
  grid-row: 1 / span 2;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.mock-stat-icon.blue { background: rgba(83, 132, 242, .16); color: #78a0ff; }
.mock-stat-icon.green { background: rgba(95, 187, 92, .15); color: #7dcc79; }
.mock-stat-icon.mint { background: rgba(166, 255, 0, .11); color: #a6ff00; }
.mock-stats small {
  color: #c5cdd3;
  font-size: .63rem;
  font-weight: 500;
  grid-column: 2;
}
.mock-stats strong {
  color: #f7f9fa;
  font-size: 1.2rem;
  font-weight: 650;
  grid-column: 2;
  height: auto;
  max-width: none;
}
.mock-stats strong::before { display: none; }
.mock-stats em {
  align-self: center;
  background: rgba(166, 255, 0, .1);
  border-radius: 999px;
  color: var(--brand);
  font-size: .55rem;
  font-style: normal;
  grid-column: 3;
  grid-row: 2;
  padding: 3px 5px;
}
.mock-stats b {
  background: linear-gradient(90deg, var(--brand) 0 60%, rgba(255,255,255,.03) 60%);
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 3px;
}
:root[data-theme="light"] .mock-stats small { color: #69727d; }
:root[data-theme="light"] .mock-stats strong { color: #202428; }

.mock-dashboard-grid {
  gap: 12px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .95fr);
}
.mock-panel {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .12);
  min-height: 195px;
  padding: 14px;
}
:root[data-theme="light"] .mock-panel { background: #ffffff; border-color: #e1e5e7; }
.mock-panel-head { color: #f4f7f8; font-size: .75rem; }
.mock-panel-head strong { font-weight: 650; }
.mock-panel-head span {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .13);
  color: #aeb7c0;
  font-size: .55rem;
  font-weight: 500;
  height: auto;
  padding: 5px 8px;
  width: auto;
}
:root[data-theme="light"] .mock-panel-head { color: #202428; }
:root[data-theme="light"] .mock-panel-head span { border-color: #e1e5e7; color: #69727d; }

.mock-line-chart { min-height: 137px; padding-bottom: 17px; }
.mock-line-chart i { border-top-color: rgba(255, 255, 255, .09); }
:root[data-theme="light"] .mock-line-chart i { border-top-color: #e5e8ea; }
.mock-line-chart svg { height: 128px; }
.mock-line-chart polyline { stroke-width: 3; }
.mock-line-chart circle { stroke: #263039; stroke-width: 2; }
.mock-chart-labels {
  bottom: 0;
  color: #8e99a2;
  display: flex;
  font-size: .48rem;
  justify-content: space-between;
  left: 0;
  position: absolute;
  right: 0;
}

.mock-category-content { grid-template-columns: 112px minmax(0, 1fr); }
.mock-donut { background: conic-gradient(var(--brand) 0 42%, #57a866 42% 70%, #68747d 70% 88%, #303a43 88% 100%); }
.mock-donut span { background: #202a32; box-shadow: none; }
:root[data-theme="light"] .mock-donut span { background: #ffffff; }
.mock-legend { gap: 10px; }
.mock-legend span {
  align-items: center;
  background: transparent;
  color: #c5cdd3;
  display: grid;
  font-size: .55rem;
  gap: 6px;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  height: auto;
  width: 100% !important;
}
.mock-legend span i { background: var(--brand); border-radius: 50%; height: 6px; width: 6px; }
.mock-legend span:nth-child(2) i { background: #57a866; }
.mock-legend span:nth-child(3) i { background: #68747d; }
.mock-legend span:nth-child(4) i { background: #303a43; }
.mock-legend span b { font-weight: 500; }
.mock-legend span em { color: #f4f7f8; font-style: normal; }
:root[data-theme="light"] .mock-legend span { color: #69727d; }
:root[data-theme="light"] .mock-legend span em { color: #202428; }

.mock-activity {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .12);
  gap: 0;
  padding: 0;
}
:root[data-theme="light"] .mock-activity { background: #ffffff; border-color: #e1e5e7; }
.mock-activity-head {
  align-items: center;
  color: #f4f7f8;
  display: flex;
  font-size: .7rem;
  justify-content: space-between;
  padding: 10px 13px;
}
.mock-activity-head span {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 5px;
  color: #c5cdd3;
  font-size: .52rem;
  padding: 5px 9px;
}
:root[data-theme="light"] .mock-activity-head { color: #202428; }
:root[data-theme="light"] .mock-activity-head span { border-color: #e1e5e7; color: #69727d; }
.mock-activity > span {
  align-items: center;
  border-top-color: rgba(255, 255, 255, .09);
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  margin: 0 13px;
  padding: 8px 0;
}
.mock-activity i {
  align-items: center;
  background: rgba(255,255,255,.06);
  color: #aeb7c0;
  display: flex;
  font-size: .55rem;
  height: 22px;
  justify-content: center;
}
.mock-activity em { color: #dfe5e8; font-size: .6rem; font-weight: 500; }
.mock-activity b {
  background: rgba(166, 255, 0, .1);
  color: var(--brand);
  font-size: .48rem;
  font-weight: 500;
  height: auto;
  padding: 4px 7px;
}
:root[data-theme="light"] .mock-activity > span { border-top-color: #e1e5e7; }
:root[data-theme="light"] .mock-activity em { color: #202428; }

.mock-phone {
  background: linear-gradient(145deg, #454e55, #11171c 28%, #05080a 70%);
  border: 3px solid #46515a;
  border-radius: 29px;
  bottom: -103px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, .48), inset 0 0 0 2px #070a0c;
  height: 420px;
  left: -34px;
  outline: 1px solid #0a0d10;
  padding: 6px;
  width: 186px;
}
.mock-phone::before {
  background: #05080a;
  border-radius: 0 0 8px 8px;
  height: 12px;
  top: 3px;
  width: 62px;
}
.mock-phone-speaker {
  background: #252d33;
  height: 2px;
  top: 6px;
  width: 24px;
}
.mock-phone-button {
  background: #1c242a;
  border-radius: 3px 0 0 3px;
  left: -5px;
  position: absolute;
  width: 4px;
}
.mock-phone-button-volume { height: 54px; top: 82px; }
.mock-phone-button-power { border-radius: 0 3px 3px 0; height: 62px; left: auto; right: -5px; top: 104px; }
.mock-phone-screen {
  background: #182129;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 23px;
  gap: 10px;
  padding: 19px 12px 12px;
}
.mock-phone-top strong { color: #f5f7f8; font-size: .68rem; font-weight: 600; }
.mock-phone-welcome { justify-items: center; padding: 5px 2px 1px; }
.mock-phone-welcome small { color: #84909a; }
.mock-phone-welcome strong { color: #f5f7f8; font-size: .92rem; font-weight: 600; }
.mock-phone-scan {
  background: rgba(255,255,255,.025);
  border-color: rgba(166,255,0,.48);
  border-radius: 8px;
  justify-items: center;
  padding: 10px 8px;
}
.mock-phone-scan strong { color: #f4f7f8; font-size: .62rem; font-weight: 600; }
.mock-phone-scan small { color: #9da7ae; font-size: .46rem; max-width: 120px; text-align: center; }
.mock-phone-qr {
  background:
    linear-gradient(90deg, #f2f5f6 20%, transparent 20% 40%, #f2f5f6 40% 60%, transparent 60% 80%, #f2f5f6 80%),
    linear-gradient(#f2f5f6 20%, transparent 20% 40%, #f2f5f6 40% 60%, transparent 60% 80%, #f2f5f6 80%);
  height: 44px;
  width: 44px;
}
.mock-phone .mock-phone-action {
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.12);
  color: #dce2e6 !important;
  font-size: .5rem;
  font-weight: 500;
  min-height: 30px;
  padding: 6px 8px;
  pointer-events: none;
}
.mock-phone-action span { color: var(--brand); }
.mock-phone-action b { margin-left: auto; }
.mock-phone-mini-grid { gap: 7px; }
.mock-phone-mini-grid > div {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.1);
  color: #f4f7f8;
  padding: 7px;
}
.mock-phone-mini-grid small { color: #9aa5ad; }
.mock-phone-mini-grid strong {
  background: transparent;
  color: #f5f7f8;
  font-size: .75rem;
  height: auto;
  width: auto;
}

/* The marketing handset mirrors the real dashboard instead of showing a
   separate scanner concept. It stays intentionally compact so the full
   mobile information hierarchy remains visible in the hero. */
.mock-phone-dashboard {
  align-content: start;
  gap: 7px;
  overflow: hidden;
  position: relative;
}
.mock-phone-dashboard-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.mock-phone-dashboard-head strong { color: #f5f7f8; font-size: .76rem; }
.mock-phone-dashboard-head span {
  border: 1px solid rgba(166,255,0,.42);
  border-radius: 4px;
  color: var(--brand);
  font-size: .38rem;
  padding: 4px 5px;
}
.mock-phone-dashboard-stats {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mock-phone-dashboard-stats > div {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px;
}
.mock-phone-dashboard-stats small { color: #b5c0c8; font-size: .39rem; }
.mock-phone-dashboard-stats strong { color: #f5f7f8; font-size: .72rem; }
.mock-phone-dashboard-stats em { align-self: end; color: var(--brand); font-size: .36rem; font-style: normal; }
.mock-phone-dashboard-stats b { background: linear-gradient(90deg,var(--brand) 0 62%,rgba(255,255,255,.08) 62%); border-radius: 99px; grid-column: 1 / -1; height: 3px; margin-top: 3px; }
.mock-phone-dashboard-panel,
.mock-phone-dashboard-activity {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 7px;
}
.mock-phone-dashboard-panel > div:first-child,
.mock-phone-dashboard-activity { color: #f5f7f8; font-size: .48rem; }
.mock-phone-dashboard-panel > div:first-child { align-items: center; display: flex; justify-content: space-between; }
.mock-phone-dashboard-panel > div:first-child span { color: #aeb8c0; font-size: .36rem; }
.mock-phone-movement svg { display: block; height: 76px; margin-top: 4px; width: 100%; }
.mock-phone-movement svg path { fill: rgba(166,255,0,.16); }
.mock-phone-movement svg polyline { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.mock-phone-movement > small { color: #87939c; display: block; font-size: .32rem; white-space: nowrap; }
.mock-phone-category > strong { color: #f5f7f8; display: block; font-size: .48rem; }
.mock-phone-category > div { align-items: center; display: grid; gap: 7px; grid-template-columns: 52px minmax(0,1fr); margin-top: 5px; }
.mock-phone-donut { aspect-ratio: 1; background: conic-gradient(var(--brand) 0 42%,#57a866 42% 70%,#68747d 70% 88%,#303a43 88%); border-radius: 50%; display: block; position: relative; }
.mock-phone-donut::after { background: #202a32; border-radius: 50%; content: ""; inset: 29%; position: absolute; }
.mock-phone-category ul { display: grid; gap: 3px; list-style: none; margin: 0; padding: 0; }
.mock-phone-category li { color: #c5cdd3; display: flex; font-size: .36rem; justify-content: space-between; }
.mock-phone-category li b { color: #f4f7f8; font-weight: 600; }
.mock-phone-dashboard-activity { display: grid; gap: 5px; grid-template-columns: minmax(0,1fr) auto; }
.mock-phone-dashboard-activity > span { color: var(--brand); font-size: .38rem; }
.mock-phone-dashboard-activity p { border-top: 1px solid rgba(255,255,255,.09); color: #dfe5e8; font-size: .4rem; grid-column: 1 / -1; margin: 0; padding-top: 5px; }
.mock-phone-dashboard-activity p b { color: var(--brand); float: right; font-size: .34rem; font-weight: 500; }

.mock-phone-bottom-nav {
  align-items: end;
  background: rgba(10,14,17,.86);
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 7px 4px 5px;
  position: absolute;
  right: 0;
}
.mock-phone-bottom-nav span {
  align-items: center;
  color: #9da7ae;
  display: flex;
  flex-direction: column;
  font-size: .33rem;
  gap: 2px;
  min-width: 0;
}
.mock-phone-bottom-nav i { font-size: .7rem; font-style: normal; line-height: 1; }
.mock-phone-bottom-nav b { font-size: .32rem; font-weight: 500; white-space: nowrap; }
.mock-phone-bottom-nav span.active,
.mock-phone-bottom-nav span.scan { color: var(--brand); }
.mock-phone-bottom-nav span.scan i {
  align-items: center;
  background: rgba(166,255,0,.16);
  border: 1px solid rgba(166,255,0,.42);
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  margin-top: -12px;
  width: 22px;
}
:root[data-theme="light"] .mock-phone-bottom-nav {
  background: rgba(247,248,248,.94);
  border-top-color: #dfe4e7;
}
:root[data-theme="light"] .mock-phone-bottom-nav span { color: #667085; }
:root[data-theme="light"] .mock-phone-bottom-nav span.active,
:root[data-theme="light"] .mock-phone-bottom-nav span.scan { color: var(--brand-readable); }
:root[data-theme="light"] .mock-phone-bottom-nav span.scan i { background: rgba(166,255,0,.2); }

:root[data-theme="light"] .mock-phone-dashboard-head strong,
:root[data-theme="light"] .mock-phone-category > strong { color: #202428; }
:root[data-theme="light"] .mock-phone-dashboard-stats > div,
:root[data-theme="light"] .mock-phone-dashboard-panel,
:root[data-theme="light"] .mock-phone-dashboard-activity { background: #ffffff; border-color: #dfe4e7; }
:root[data-theme="light"] .mock-phone-dashboard-stats small,
:root[data-theme="light"] .mock-phone-dashboard-panel > div:first-child span,
:root[data-theme="light"] .mock-phone-movement > small,
:root[data-theme="light"] .mock-phone-category li { color: #667085; }
:root[data-theme="light"] .mock-phone-dashboard-stats strong,
:root[data-theme="light"] .mock-phone-category li b,
:root[data-theme="light"] .mock-phone-dashboard-activity p { color: #202428; }
:root[data-theme="light"] .mock-phone-donut::after { background: #ffffff; }

/* The handset keeps its dark physical frame, while the UI displayed inside
   follows the public site's active theme just like the desktop preview. */
:root[data-theme="light"] .mock-phone-screen {
  background: #f7f8f8;
  border-color: #dfe4e7;
}
:root[data-theme="light"] .mock-phone-top strong,
:root[data-theme="light"] .mock-phone-welcome strong,
:root[data-theme="light"] .mock-phone-scan strong,
:root[data-theme="light"] .mock-phone-mini-grid > div,
:root[data-theme="light"] .mock-phone-mini-grid strong {
  color: #202428;
}
:root[data-theme="light"] .mock-phone-welcome small,
:root[data-theme="light"] .mock-phone-scan small,
:root[data-theme="light"] .mock-phone-mini-grid small {
  color: #667085;
}
:root[data-theme="light"] .mock-phone-scan,
:root[data-theme="light"] .mock-phone-mini-grid > div {
  background: #ffffff;
  border-color: #dfe4e7;
}
:root[data-theme="light"] .mock-phone-scan {
  border-color: rgba(166, 255, 0, .78);
}
:root[data-theme="light"] .mock-phone-qr {
  background:
    linear-gradient(90deg, #2b3138 20%, transparent 20% 40%, #2b3138 40% 60%, transparent 60% 80%, #2b3138 80%),
    linear-gradient(#2b3138 20%, transparent 20% 40%, #2b3138 40% 60%, transparent 60% 80%, #2b3138 80%);
}
:root[data-theme="light"] .mock-phone .mock-phone-action {
  background: #ffffff !important;
  border-color: #dfe4e7;
  color: #202428 !important;
}

@media (max-width: 1400px) {
  :root[data-theme="dark"] .public-header .public-nav button:not(.secondary):not(.danger):not(.ghost) { color: #f4f7f8; }
}

@media (max-width: 1050px) {
  .grid.cols-3.project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section { min-height: auto; padding-top: 48px; }
  .app-mockup { height: 500px; width: min(100%, 920px); }
}

@media (max-width: 700px) {
  .grid.cols-3.project-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-section { gap: 26px; padding: 44px 16px 86px; }
  .hero-section::after { height: 42%; opacity: .07; width: 72%; }
  .hero-copy { gap: 13px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 14vw, 3.6rem); font-weight: 600; }
  .hero-copy .hero-slogan { font-size: 1rem; font-weight: 600; }
  .hero-copy p:not(.hero-slogan) { font-size: .9rem; }
  .hero-copy .actions {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero-copy .actions > button {
    font-size: .72rem;
    padding: 8px 7px;
    width: 100%;
  }
  .hero-orbits { bottom: 4%; opacity: .48; right: -100%; top: auto; width: 690px; }
  .app-mockup { grid-template-columns: 1fr; height: 420px; width: 100%; }
  .mock-sidebar { display: none; }
  .mock-main { gap: 8px; padding: 11px; }
  .mock-top { min-height: 34px; }
  .mock-top strong { font-size: .76rem; }
  .mock-top span { font-size: .48rem; padding: 5px 7px; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-stats > div { min-height: 80px; padding: 8px; }
  .mock-stat-icon { height: 25px; width: 25px; }
  .mock-stats small { font-size: .49rem; }
  .mock-stats strong { font-size: .84rem; }
  .mock-dashboard-grid { grid-template-columns: 1fr; }
  .mock-category-panel,
  .mock-activity { display: none; }
  .mock-panel { min-height: 150px; padding: 10px; }
  .mock-phone { bottom: -54px; height: 330px; left: -4px; transform: none; width: 148px; }
  .mock-phone-screen { border-radius: 28px; gap: 3px; padding: 11px 6px 5px; }
  .mock-phone-mini-grid { display: none; }
  .mock-phone-welcome strong { font-size: .68rem; }
  .mock-phone-scan { padding: 7px; }
  .mock-phone-qr { height: 32px; width: 32px; }
  .mock-phone-dashboard { gap: 3px; padding: 11px 6px 5px; }
  .mock-phone-dashboard-head strong { font-size: .62rem; }
  .mock-phone-dashboard-head span { font-size: .31rem; padding: 3px 4px; }
  .mock-phone-dashboard-stats > div { padding: 4px; }
  .mock-phone-dashboard-stats small { font-size: .34rem; }
  .mock-phone-dashboard-stats strong { font-size: .6rem; }
  .mock-phone-dashboard-stats em { font-size: .3rem; }
  .mock-phone-dashboard-panel,
  .mock-phone-dashboard-activity { padding: 6px; }
  .mock-phone-movement svg { height: 40px; }
  .mock-phone-movement > small { font-size: .29rem; }
  .mock-phone-category > div { gap: 5px; grid-template-columns: 38px minmax(0,1fr); margin-top: 3px; }
  .mock-phone-category ul { gap: 2px; }
  .mock-phone-category li { font-size: .31rem; }
  .mock-phone-dashboard-activity { gap: 3px; padding: 4px 6px; }
  .mock-phone-dashboard-activity p { font-size: .31rem; padding-top: 3px; }
  .mock-phone-bottom-nav { margin: 0; padding: 5px 3px 3px; }
  .mock-phone-bottom-nav span { font-size: .3rem; gap: 1px; }
  .mock-phone-bottom-nav i { font-size: .58rem; }
  .mock-phone-bottom-nav b { font-size: .28rem; }
  .mock-phone-bottom-nav span.scan i { height: 19px; margin-top: -9px; width: 19px; }
}

/* Footer keeps its dark surface in both themes, so all footer controls stay light. */
.public-footer nav button,
.public-footer .theme-switcher > span,
.public-footer .theme-switcher button,
.public-footer .theme-switcher button.active,
.public-footer .theme-switcher button:hover {
  color: #ffffff !important;
}

/* Keep the public footer deliberate on wider layouts: the links form two
   readable rows instead of competing with the company description. */
@media (min-width: 681px) {
  .public-footer {
    gap: 8px 32px;
    grid-template-areas:
      "brand links"
      "theme links";
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.55fr);
  }

  .public-footer > div:first-child {
    align-self: start;
    grid-area: brand;
  }

  .public-footer-links {
    align-self: center;
    display: grid;
    gap: 4px;
    grid-area: links;
    justify-items: end;
    min-width: 0;
  }

  .public-footer-links nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px 12px;
    justify-content: flex-end;
    margin: 0;
    min-width: 0;
    overflow: visible;
    padding: 0;
  }

  .public-footer .public-footer-preferences {
    align-self: end;
    grid-area: theme;
    justify-content: flex-end;
  }
}

/* Native-like phone and tablet navigation ------------------------------------ */
@media (max-width: 1050px) {
  .topbar {
    min-height: 58px;
    padding: 9px 14px;
  }

  .topbar-mobile-left {
    gap: 0;
  }

  .topbar-mobile-logo {
    height: 34px;
    min-height: 34px;
    width: 34px;
  }

  .topbar-mobile-logo .brand-mark,
  .topbar-mobile-logo .provintor-mark-image {
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    width: 34px;
  }

  /* The application header is slate in light mode too. */
  :root[data-theme="light"] .topbar-mobile-logo .theme-logo-light {
    display: none;
  }

  :root[data-theme="light"] .topbar-mobile-logo .theme-logo-dark {
    display: block;
  }

  .topbar .mobile-menu,
  .topbar > button[data-route="/scanner"] {
    display: none;
  }

  .topbar > .truncate {
    flex: 1;
    font-size: .94rem;
    text-align: right;
  }

  .content {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    align-items: end;
    background: var(--surface);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(15, 22, 28, .08);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    min-height: 58px;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 75;
  }

  .mobile-bottom-nav-item {
    align-items: center;
    background: transparent !important;
    border: 0;
    color: var(--muted) !important;
    display: flex;
    flex-direction: column;
    font-size: .63rem;
    font-weight: 760;
    gap: 3px;
    justify-content: end;
    letter-spacing: 0;
    line-height: 1;
    min-height: 47px;
    min-width: 0;
    overflow: visible;
    padding: 3px 1px;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:focus-visible {
    background: transparent !important;
    color: var(--ink) !important;
    outline: 0;
  }

  .mobile-bottom-nav-item.active:not(.mobile-bottom-scan) {
    color: var(--brand) !important;
  }

  .mobile-bottom-icon {
    align-items: center;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 1.38rem;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 28px;
  }

  .mobile-bottom-scan {
    color: #19210f !important;
    height: 47px;
    justify-self: center;
    position: relative;
    transform: none;
    width: 68px;
  }

  .mobile-bottom-scan .mobile-bottom-icon {
    background: var(--brand);
    border: 5px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(65, 91, 11, .22);
    font-size: 0;
    height: 55px;
    left: 50%;
    position: absolute;
    top: -27px;
    transform: translateX(-50%);
    width: 55px;
  }

  .mobile-scan-frame {
    background:
      linear-gradient(#19210f, #19210f) left top / 9px 3px no-repeat,
      linear-gradient(#19210f, #19210f) left top / 3px 9px no-repeat,
      linear-gradient(#19210f, #19210f) right top / 9px 3px no-repeat,
      linear-gradient(#19210f, #19210f) right top / 3px 9px no-repeat,
      linear-gradient(#19210f, #19210f) left bottom / 9px 3px no-repeat,
      linear-gradient(#19210f, #19210f) left bottom / 3px 9px no-repeat,
      linear-gradient(#19210f, #19210f) right bottom / 9px 3px no-repeat,
      linear-gradient(#19210f, #19210f) right bottom / 3px 9px no-repeat;
    display: block;
    height: 22px;
    width: 22px;
  }

  .mobile-bottom-scan > span:last-child {
    color: var(--ink);
    margin-top: 0;
    position: relative;
    top: 0;
  }

  .mobile-bottom-scan.active .mobile-bottom-icon {
    box-shadow: 0 0 0 3px rgba(166,255,0,.16), 0 6px 16px rgba(65, 91, 11, .25);
  }

  .mobile-drawer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    bottom: calc(68px + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 40px rgba(10, 14, 18, .22);
    left: 0;
    max-height: min(72vh, 590px);
    overflow: auto;
    padding: 10px 16px 18px;
    position: fixed;
    right: 0;
    top: auto;
    z-index: 80;
  }

  .mobile-drawer-handle {
    background: color-mix(in srgb, var(--muted) 45%, transparent);
    border-radius: 4px;
    height: 4px;
    margin: 0 auto 14px;
    width: 42px;
  }

  .mobile-drawer-profile {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
    padding: 0 4px 13px;
  }

  .mobile-drawer-profile strong { color: var(--ink); }
  .mobile-drawer-profile small { color: var(--muted); }
  .mobile-drawer .developer-client-box { margin-bottom: 12px; }
  .mobile-drawer .nav { gap: 5px; }
  .mobile-drawer .nav button { color: var(--ink); min-height: 46px; }
  .mobile-drawer .nav button.active { color: var(--ink); }
  .mobile-drawer .nav button.active,
  .mobile-drawer .nav button:hover { background: var(--brand-soft); }
  .mobile-drawer .nav-submenu { border-left-color: var(--line); }
  .mobile-drawer-actions { border-top-color: var(--line); padding-top: 12px; }

  :root[data-theme="dark"] .mobile-bottom-nav,
  :root[data-theme="dark"] .mobile-drawer {
    background: #202428;
    border-color: #3b434c;
  }

  :root[data-theme="dark"] .mobile-bottom-nav-item,
  :root[data-theme="dark"] .mobile-drawer .nav button,
  :root[data-theme="dark"] .mobile-drawer-profile strong {
    color: #cbd2d8 !important;
  }

  :root[data-theme="dark"] .mobile-bottom-nav-item.active:not(.mobile-bottom-scan) {
    color: var(--brand) !important;
  }

  :root[data-theme="dark"] .mobile-bottom-nav-item:hover,
  :root[data-theme="dark"] .mobile-bottom-nav-item:focus-visible,
  :root[data-theme="dark"] .mobile-bottom-scan > span:last-child {
    color: #f4f7f8 !important;
  }

  :root[data-theme="dark"] .mobile-bottom-scan .mobile-bottom-icon {
    border-color: #202428;
  }

  :root[data-theme="dark"] .mobile-drawer-profile,
  :root[data-theme="dark"] .mobile-drawer-actions,
  :root[data-theme="dark"] .mobile-drawer .nav-submenu {
    border-color: #3b434c;
  }

  :root[data-theme="dark"] .mobile-drawer .nav button.active,
  :root[data-theme="dark"] .mobile-drawer .nav button:hover {
    color: #ffffff !important;
  }
}

/* Public mobile header: compact, with the mark and burger grouped at left. */
@media (max-width: 700px) {
  .public-header {
    gap: 6px;
    min-height: 64px;
    padding: 4px 12px;
  }

  .public-brand {
    gap: 4px;
  }

  .public-logo {
    flex: 0 0 34px;
    height: 34px;
    max-width: 34px;
    min-height: 34px;
    width: 34px;
  }

  .public-logo .brand-mark,
  .public-logo .provintor-mark-image {
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    width: 30px;
  }

  .public-menu-button {
    border-radius: 7px;
    font-size: 1.1rem;
    height: 34px;
    min-height: 34px;
    width: 36px;
  }

  .public-actions {
    gap: 5px;
  }

  .public-actions button {
    border-radius: 7px;
    font-size: .7rem;
    min-height: 34px;
    padding: 6px 8px;
  }
}

/* Blog actions stay visibly lime in dark mode after the global button theme rules. */
:root[data-theme="dark"] .blog-filter-bar button,
:root[data-theme="dark"] .blog-filter-bar button.active,
:root[data-theme="dark"] .blog-card .text-link,
:root[data-theme="dark"] .blog-article .text-link {
  color: #a6ff00 !important;
}

:root[data-theme="dark"] .blog-filter-bar button:hover,
:root[data-theme="dark"] .blog-card .text-link:hover,
:root[data-theme="dark"] .blog-article .text-link:hover {
  background: rgba(166, 255, 0, .12);
  color: #78a800 !important;
}

:root[data-theme="light"] .blog-filter-bar button:hover,
:root[data-theme="light"] .blog-card .text-link:hover,
:root[data-theme="light"] .blog-article .text-link:hover {
  background: rgba(166, 255, 0, .11);
  color: #5f8f00 !important;
}

/* Keep the compact bottom navigation limited to phone and tablet layouts. */
.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 1050px) {
  .mobile-bottom-nav {
    display: grid !important;
  }
}

/* Tablets keep the same shortcuts as phones, but use a flatter, denser bar
   so the scanner action does not make the entire navigation feel oversized. */
@media (min-width: 681px) and (max-width: 1050px) {
  .content {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    align-items: end;
    min-height: 58px;
    padding: 5px 18px calc(5px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav-item {
    font-size: .63rem;
    gap: 3px;
    justify-content: end;
    min-height: 47px;
    padding: 3px 1px;
  }

  .mobile-bottom-icon {
    font-size: 1.38rem;
    height: 24px;
    width: 28px;
  }

  .mobile-bottom-scan {
    height: 47px;
    width: 68px;
  }

  .mobile-bottom-scan .mobile-bottom-icon {
    border: 5px solid var(--surface);
    height: 55px;
    left: 50%;
    position: absolute;
    top: -27px;
    transform: translateX(-50%);
    width: 55px;
  }

  .mobile-scan-frame {
    height: 22px;
    width: 22px;
  }
}

/* Tablet application header uses the same white mark as the phone header. */
@media (min-width: 701px) and (max-width: 1050px) {
  :root[data-theme="light"] .topbar-mobile-logo .theme-logo-light {
    display: none;
  }

  :root[data-theme="light"] .topbar-mobile-logo .theme-logo-dark {
    display: block;
  }
}

/* Public industry pages ---------------------------------------------------- */
.public-nav-group {
  position: relative;
}

.public-nav-group-trigger span {
  color: var(--muted);
  font-size: .78em;
  margin-left: 3px;
}

.public-nav-group.active > .public-nav-group-trigger,
.public-nav-group > .public-nav-group-trigger:hover {
  background: rgba(166, 255, 0, .16);
  color: #fff;
}

.public-nav-dropdown {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  display: grid;
  gap: 3px;
  min-width: 220px;
  opacity: 0;
  padding: 7px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  visibility: hidden;
  z-index: 50;
}

.public-nav-group:hover .public-nav-dropdown,
.public-nav-group:focus-within .public-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.public-nav-dropdown button {
  color: var(--ink);
  justify-content: flex-start;
  min-height: 34px;
  text-align: left;
  width: 100%;
}

.public-nav-dropdown button:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

/* The header switches to its compact menu at 1400px, so its nested menu must
   switch at the same point instead of keeping desktop flyout behavior. */
@media (max-width: 1400px) {
  .public-header .public-nav.open {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgba(23, 29, 34, .84) !important;
    border: 1px solid rgba(166, 255, 0, .28) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .32) !important;
    left: var(--public-menu-left, clamp(12px, 3vw, 36px));
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
    right: auto;
    transform: none;
    width: var(--public-menu-width, min(360px, calc(100vw - 24px)));
    z-index: 60;
  }

  .public-header .public-nav.open button {
    color: #ffffff;
    font-size: .82rem;
    min-height: 34px;
    padding: 6px 9px;
  }

  .public-header .public-nav-language {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
    padding: 10px 6px 4px;
  }

  .public-nav.open .public-nav-group {
    width: 100%;
  }

  .public-nav.open .public-nav-group-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .public-nav.open .public-nav-dropdown {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: rgba(17, 26, 34, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: none;
    display: none;
    margin: 0 0 4px;
    min-width: 0;
    opacity: 0;
    padding: 5px;
    pointer-events: none;
    position: static;
    transform: none;
    visibility: hidden;
  }

  .public-nav.open .public-nav-group:hover .public-nav-dropdown,
  .public-nav.open .public-nav-group:focus-within .public-nav-dropdown {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .public-nav.open .public-nav-dropdown button {
    color: #f4f7f8;
    font-size: .78rem;
    min-height: 30px;
    padding: 5px 8px;
  }
}

/* About and 404 pages reuse the public visual language without changing the app. */
.about-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.about-contact-placeholder {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.about-contact-placeholder h2,
.about-contact-placeholder p {
  margin: 8px 0 0;
}

.about-contact-placeholder p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
}

.not-found-page {
  min-height: 430px;
  place-content: center;
}

.not-found-code {
  color: var(--accent);
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 950;
  line-height: .85;
}

.not-found-page .actions {
  justify-content: center;
  margin-top: 18px;
}

.not-found-links {
  padding-top: 0;
}

.not-found-links .benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.not-found-links .benefit-grid > a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 130px;
  padding: 20px;
  text-decoration: none;
}

.not-found-links .benefit-grid > a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.not-found-links .benefit-grid span {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .about-value-grid,
  .not-found-links .benefit-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-placeholder {
    align-items: stretch;
    flex-direction: column;
  }

  .about-contact-placeholder .button {
    align-self: flex-start;
  }
}

.sector-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px auto 0;
  max-width: 1180px;
}

.sector-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.sector-card img {
  aspect-ratio: 16 / 9;
  display: block;
  filter: saturate(.86);
  height: auto;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
  width: 100%;
}

.sector-card-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 19, .87) 46%, rgba(10, 15, 19, .97) 100%);
  bottom: 0;
  color: #fff;
  display: grid;
  gap: 5px;
  left: 0;
  min-height: 56%;
  padding: 42px 15px 14px;
  position: absolute;
  right: 0;
}

.sector-card-overlay strong {
  font-size: 1.02rem;
}

.sector-card-overlay > span {
  color: #d2dbe0;
  font-size: .78rem;
  line-height: 1.35;
}

.sector-card-overlay b {
  color: var(--brand);
  font-size: .78rem;
  margin-top: 3px;
}

.sector-card:hover,
.sector-card:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.sector-card:hover img,
.sector-card:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.04);
}

.sectors-index-head {
  padding-bottom: 22px;
}

.sector-directory-band {
  padding-top: 18px;
}

.sector-detail-hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 28px);
}

.sector-detail-copy {
  display: grid;
  gap: 15px;
  max-width: 620px;
}

.sector-detail-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0;
}

.sector-detail-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.sector-detail-copy .actions {
  margin-top: 6px;
}

.sector-detail-media {
  margin: 0;
  position: relative;
}

.sector-detail-media img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  display: block;
  object-fit: cover;
  width: 100%;
}

.sector-detail-media figcaption {
  background: rgba(17, 22, 27, .86);
  border-radius: 6px;
  bottom: 12px;
  color: #fff;
  font-size: .78rem;
  left: 12px;
  padding: 7px 9px;
  position: absolute;
  right: 12px;
}

.sector-impact-band,
.sector-calculator-band,
.sector-fact-band {
  max-width: none;
}

.sector-impact-band > *,
.sector-calculator-band > *,
.sector-fact-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.sector-fact {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  padding: clamp(24px, 4vw, 36px);
}

.sector-fact-metric {
  color: var(--brand-readable);
  font-size: clamp(2.45rem, 3.5vw, 3.15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
  max-width: none;
  overflow-wrap: normal;
  padding-top: 38px;
  white-space: nowrap;
  text-align: left;
}

.sector-fact-metric.is-short {
  font-size: clamp(3.8rem, 5.4vw, 5.5rem);
}

.sector-fact:has(.sector-fact-metric.is-short) {
  gap: clamp(22px, 2.4vw, 34px);
  grid-template-columns: minmax(210px, 230px) minmax(0, 1fr);
}

.sector-fact-metric.is-medium {
  font-size: clamp(2.45rem, 3.5vw, 3.15rem);
}

.sector-fact-metric.is-long {
  font-size: clamp(2.2rem, 3vw, 2.85rem);
  white-space: normal;
}

.sector-fact-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
  min-height: 100%;
}

.sector-fact-copy .eyebrow {
  color: var(--brand-readable);
  font-size: .76rem;
  font-weight: 900;
}

.sector-fact-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
  margin: 0;
}

.sector-fact-copy p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.sector-fact-copy a,
.sector-fact-cta {
  color: var(--brand-readable);
  font-weight: 850;
  justify-self: start;
  margin-top: auto;
  padding-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sector-fact-copy a:hover,
.sector-fact-cta:hover {
  color: var(--text);
  text-decoration-thickness: 2px;
}

.sector-fact-copy small {
  color: var(--muted);
  font-size: .72rem;
}

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

.sector-impact-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.sector-impact-grid article > strong {
  color: var(--brand-readable);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.sector-impact-grid .sector-impact-featured {
  background: var(--brand);
  border-color: var(--brand);
}

.sector-impact-grid .sector-impact-featured > strong,
.sector-impact-grid .sector-impact-featured > span,
.sector-impact-grid .sector-impact-featured p {
  color: #17210d;
}

.sector-impact-grid .sector-impact-featured > strong {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.sector-impact-grid article > span {
  font-weight: 800;
}

.sector-impact-grid article p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.sector-calculator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: clamp(18px, 3vw, 28px);
}

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

.sector-calculator label {
  color: var(--ink);
  display: grid;
  font-size: .82rem;
  font-weight: 800;
  gap: 6px;
}

.sector-calculator input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.sector-calculator-results > div {
  background: var(--surface-2);
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 15px;
}

.sector-calculator-results span,
.sector-calculator-results small {
  color: var(--muted);
  font-size: .78rem;
}

.sector-calculator-results strong {
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1;
}

.sector-calculator-callout {
  border: 1px solid color-mix(in srgb, var(--brand) 52%, var(--line));
}

.sector-calculator-callout strong {
  color: var(--brand-readable);
  font-size: 1rem;
}

.sector-calculator-callout span {
  line-height: 1.4;
}

@media (max-width: 1050px) {
  .public-nav-group {
    width: 100%;
  }

  .public-nav-group-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .public-nav-dropdown {
    box-shadow: none;
    margin: 0 10px 6px;
    min-width: 0;
    opacity: 1;
    position: static;
    transform: none;
    visibility: visible;
  }

  .sector-detail-hero {
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  }

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

@media (max-width: 680px) {
  .sector-detail-hero {
    grid-template-columns: 1fr;
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .sector-detail-media {
    order: -1;
  }

  .sector-card-grid,
  .sector-impact-grid,
  .sector-fact,
  .sector-calculator-inputs,
  .sector-calculator-results {
    grid-template-columns: 1fr;
  }

  .sector-fact-metric {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    max-width: none;
    padding-top: 0;
    text-align: left;
  }

  .sector-fact:has(.sector-fact-metric.is-short) {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .sector-fact-copy {
    max-width: none;
    order: 1;
  }

  .sector-fact-metric {
    order: 2;
  }

  .sector-card-overlay {
    min-height: 50%;
  }
}

/* Public navigation uses crawlable links while retaining the established UI. */
.public-header .public-nav a,
.public-footer nav a,
.public-nav-dropdown a,
.blog-filter-bar a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.public-header .public-nav > a,
.public-header .public-nav-group > a {
  color: #f4f7f8;
  font-size: .875rem;
  min-height: 42px;
  padding: 8px 12px;
}

.public-header .public-nav a:hover,
.public-header .public-nav a.active,
.public-nav-group.active > .public-nav-group-trigger {
  background: rgba(166, 255, 0, .045);
  border-color: rgba(166, 255, 0, .28);
  color: var(--brand);
}

.public-actions > a.button {
  font-size: .875rem;
  min-height: 42px;
  padding: 9px 16px;
  white-space: nowrap;
}

.public-actions > a.button:not(.secondary) {
  box-shadow: 0 7px 18px rgba(166, 255, 0, .16);
}

.public-language-toggle a {
  align-items: center;
  background: rgba(229, 231, 235, .22);
  border-radius: 6px;
  color: #d7dde5;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  text-decoration: none;
}

.public-language-toggle a:hover {
  background: rgba(229, 231, 235, .3);
  color: #fff;
}

.public-language-toggle a.active {
  background: var(--accent);
  color: #fff;
}

.public-footer nav a {
  background: transparent;
  color: #fff;
  font-weight: 600;
  justify-content: flex-start;
}

.public-footer nav a:hover {
  background: rgba(255, 255, 255, .08);
}

.public-nav-dropdown a {
  color: var(--ink);
  font-size: .78rem;
  justify-content: flex-start;
  min-height: 34px;
  width: 100%;
}

.public-nav-dropdown a:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

.blog-filter-bar a {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.blog-filter-bar a:hover,
.blog-filter-bar a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.hero-copy .actions > a.button:first-child {
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(166, 255, 0, .2);
  color: #15200b;
}

.hero-copy .actions > a.button:first-child:hover {
  background: #c0ff48;
}

@media (max-width: 1400px) {
  .public-header .public-logo {
    flex: 0 0 180px;
    height: 64px;
    max-width: 180px;
    min-height: 64px;
    width: 180px;
  }

  .public-header .public-logo-full {
    display: none;
  }

  .public-header .public-logo-mobile {
    align-items: center;
    display: inline-flex;
    min-width: 0;
  }

  .public-header .public-mobile-mark {
    display: none;
  }

  .public-header .public-mobile-wordmark {
    display: block;
    height: auto;
    width: 180px;
  }

  .public-header .public-nav.open > a,
  .public-header .public-nav.open .public-nav-group > a {
    color: #fff;
    font-size: .82rem;
    justify-content: flex-start;
    min-height: 34px;
    padding: 6px 9px;
    width: 100%;
  }

  .public-nav.open .public-nav-dropdown a {
    color: #f4f7f8;
    font-size: .78rem;
    min-height: 30px;
    padding: 5px 8px;
  }
}

@media (min-width: 701px) and (max-width: 1400px) {
  .public-header {
    min-height: 64px;
    padding: 4px 12px;
  }

  .public-header .public-brand,
  .public-header .public-logo,
  .public-header .public-logo-mobile {
    align-items: center;
  }

  .public-header .public-logo,
  .public-header .public-logo-mobile {
    height: 36px;
    min-height: 36px;
  }

  .public-header .public-mobile-wordmark {
    max-height: 36px;
  }
}

@media (max-width: 700px) {
  .public-header .public-logo {
    flex: 0 0 36px;
    height: 36px;
    max-width: 36px;
    min-height: 36px;
    width: 36px;
  }

  .public-header .public-logo-mobile {
    align-items: center;
    height: 36px;
    justify-content: flex-start;
    width: 36px;
  }

  .public-header .public-mobile-mark {
    display: block;
    height: 29px;
    width: 29px;
  }

  .public-header .public-mobile-wordmark {
    display: none;
  }
}

/* The account link appears in the burger on compact navigation layouts. */
.public-header .public-nav .public-nav-compact-account {
  display: none;
}

.demo-feedback-dialog {
  max-width: 560px;
}

.demo-feedback-dialog h2 {
  margin: 3px 0 5px;
}

.demo-feedback-rating {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.demo-feedback-rating button {
  font-size: 1rem;
  font-weight: 700;
  min-height: 46px;
  padding: 8px;
}

.demo-feedback-rating button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #15200b;
}

.demo-feedback-scale {
  color: var(--muted);
  display: flex;
  font-size: .78rem;
  justify-content: space-between;
  margin: 6px 2px 14px;
}

.demo-feedback-lead {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.demo-feedback-positive-copy {
  display: grid;
  gap: 4px;
}

.demo-feedback-positive-copy span {
  color: var(--muted);
}

.demo-feedback-dismiss {
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .demo-feedback-dialog {
    max-width: calc(100vw - 24px);
  }

  .demo-feedback-rating {
    gap: 5px;
  }
}
