:root {
  color-scheme: light;
  --ink: #081b24;
  --muted: #647780;
  --paper: #f6fbfb;
  --surface: #ffffff;
  --surface-soft: #eef8f7;
  --trust-info-background: rgba(13, 143, 123, 0.08);
  --line: #d7e6e5;
  --brand: #0d8f7b;
  --brand-dark: #075f63;
  --blue: #2563eb;
  --blue-soft: #e9f1ff;
  --accent: #65c6b3;
  --brand-optical-offset: 36px;
  --danger: #c24141;
  --shadow: 0 20px 60px rgba(8, 27, 36, 0.11);
  --shadow-soft: 0 10px 28px rgba(8, 27, 36, 0.08);
  --app-content-width: 680px;
  --page-title-font-size: clamp(1.48rem, 6.35vw, 2.18rem);
  --page-title-line-height: 1.08;
  --page-title-font-weight: 850;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background:
    linear-gradient(180deg, rgba(233, 241, 255, 0.88) 0%, rgba(246, 251, 251, 0.96) 38%, #f8fbfa 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

#app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.shell {
  width: min(100%, 1120px);
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
  overflow-x: hidden;
}

.dashboard-shell {
  padding-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(8, 27, 36, 0.06);
  background: rgba(247, 251, 251, 0.9);
  padding: 10px 0 12px;
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 100%;
}

.header-home-button {
  justify-self: start;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(8, 27, 36, 0.05);
  border-radius: 14px;
  background: rgba(247, 251, 251, 0.9);
  color: #17313a;
  margin-left: 6px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(8, 27, 36, 0.035);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.header-home-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-home-button:hover {
  border-color: rgba(13, 143, 123, 0.35);
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.header-home-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.brand {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
  left: var(--brand-optical-offset);
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: linear-gradient(145deg, #06265c 0%, #0b3f91 48%, #2563eb 100%);
  box-shadow: 0 14px 28px rgba(11, 63, 145, 0.24);
  color: white;
}

.brand-mark::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c97a31;
  content: "";
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.brand-picto {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(247, 251, 251, 0.9);
  border-radius: 14px;
  background: rgba(247, 251, 251, 0.9);
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.home-logo {
  display: block;
  width: min(88%, 300px);
  height: auto;
  margin: 0 auto 12px;
  max-height: 108px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.home-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #17313a;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(8, 27, 36, 0.05);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.home-link:hover {
  border-color: rgba(13, 143, 123, 0.35);
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.home-link:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.back-row {
  display: flex;
  margin: -18px 0 18px;
}

.back-row .home-link {
  min-width: 112px;
}

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

.nav button,
.ghost {
  position: relative;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #17313a;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(8, 27, 36, 0.05);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.nav button:hover,
.ghost:hover,
.btn.secondary:hover {
  border-color: rgba(13, 143, 123, 0.35);
}

.nav button:hover,
.ghost:hover {
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.nav button:active,
.ghost:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.btn.secondary:hover {
  color: white;
  box-shadow: 0 16px 34px rgba(18, 48, 111, 0.26);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 128px);
}

.home-simple {
  display: grid;
  min-height: calc(100vh - 142px);
  place-items: center;
}

.access-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.access-gate {
  text-align: center;
}

.access-logo {
  width: min(220px, 70%);
  margin-inline: auto;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 800;
}

.identity-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5f6f74;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.field input[readonly] {
  border-color: rgba(13, 143, 123, 0.18);
  background: rgba(13, 143, 123, 0.06);
  color: #1c4245;
  cursor: not-allowed;
}

.profile-delete-account {
  width: fit-content;
  margin-inline: auto;
}

.hero-main,
.panel {
  border: 1px solid rgba(215, 230, 229, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 76px);
}

.home-card {
  width: min(100%, 680px);
  max-width: 100%;
  align-items: center;
  padding: clamp(36px, 8vw, 82px);
  text-align: center;
}

.public-home.home-simple {
  align-items: start;
  padding-top: clamp(2px, 1vw, 12px);
}

.public-home .home-card {
  padding-top: clamp(28px, 6vw, 64px);
}

.home-logo-link {
  position: relative;
  z-index: 5;
  display: inline-flex;
  justify-content: center;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.home-logo-link .home-logo {
  pointer-events: auto;
}

.home-card .eyebrow {
  margin-inline: auto;
}

.home-card h1 {
  margin-bottom: 14px;
  max-width: 560px;
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.home-card .lead {
  margin-bottom: 4px;
  font-size: clamp(1.22rem, 3vw, 1.55rem);
  font-weight: 850;
  color: #17313a;
}

.home-intro {
  width: min(100%, 520px);
  margin: 10px auto 18px;
  color: #526670;
  font-size: clamp(0.92rem, 2.5vw, 1rem);
  font-weight: 600;
  line-height: 1.42;
}

.public-home .home-intro {
  margin-bottom: 10px;
}

.scan-scene {
  display: grid;
  width: min(100%, 460px);
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}

.note-tag,
.message-time {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(233, 241, 255, 0.72), rgba(255, 255, 255, 0.98)),
    #ffffff;
  padding: 18px;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.15);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.message-preview-card strong {
  color: #071b24;
  font-size: 1.35rem;
  line-height: 1.1;
}

.message-preview-card p {
  margin-bottom: 0;
  color: #405963;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.42;
}

.message-time {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.message-badge {
  width: fit-content;
  border-radius: 999px;
  background: rgba(13, 143, 123, 0.1);
  color: var(--brand-dark);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.full-message-meta {
  display: grid;
  width: fit-content;
  gap: 8px;
  justify-items: start;
}

.full-message-meta .message-time {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.full-message-meta .demo-message-badge,
.locked-message .message-badge.demo-message-badge {
  background: rgba(255, 59, 48, 0.12);
  color: #c9271f;
}

.demo-hint {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  border: 1px solid rgba(143, 121, 82, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #7a6237;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(89, 72, 42, 0.06);
  white-space: nowrap;
}

.public-home .demo-hint {
  margin-top: 2px;
}

.home-mobility-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 8px;
}

.mobility-icon {
  display: block;
  width: 30px;
  height: 25px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mobility-icon-bike {
  width: 34px;
}

.mobility-icon-moto {
  width: 28px;
  height: 29px;
}

.mobility-icon-scooter {
  width: 34px;
  height: 29px;
}

.qr-landing {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 142px);
  place-items: center;
}

.qr-landing-card {
  display: grid;
  width: min(100%, var(--app-content-width));
  max-width: 100%;
  gap: 20px;
  border: 1px solid rgba(215, 230, 229, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 58px);
  text-align: center;
}

.public-page {
  width: min(100%, var(--app-content-width));
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 44px rgba(8, 27, 36, 0.08);
}

.public-form-home-container {
  width: 100%;
  max-width: 100%;
  min-height: auto;
  place-items: center;
}

.public-form-home-container .home-card {
  width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: start;
  padding: clamp(22px, 4vw, 34px);
  text-align: left;
}

.public-form-home-container .auth-title {
  text-align: center;
}

.leave-message-page > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.leave-message-page form > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.context-label {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-radius: 16px;
  background: rgba(13, 143, 123, 0.07);
  color: var(--brand-dark);
  padding: 10px 12px;
  text-align: left;
}

.context-label span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-label strong {
  color: #17313a;
  font-size: 0.9rem;
  line-height: 1.25;
}

.qr-landing-card .context-label {
  margin-inline: auto;
}

.scan-origin {
  margin: 0 auto -4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.notification-header {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  justify-self: center;
  gap: 8px;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 22px;
  background: var(--trust-info-background);
  padding: 18px 48px 18px 18px;
  box-shadow: 0 12px 30px rgba(8, 27, 36, 0.07);
  text-align: left;
}

.notification-header h1 {
  margin: 0 auto;
  color: #17313a;
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 650;
  line-height: 1.22;
}

.notification-badge {
  position: absolute;
  top: -9px;
  right: -8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #ff3b30;
  color: white;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(255, 59, 48, 0.35);
}

.landing-copy {
  display: grid;
  gap: 8px;
  color: #334d56;
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.48;
}

.landing-copy p,
.lock-copy,
.reassurance {
  margin-bottom: 0;
}

.locked-message {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 255, 0.62)),
    #ffffff;
  box-shadow: 0 24px 54px rgba(8, 27, 36, 0.14);
  padding: 24px;
  text-align: left;
}

.locked-message .message-badge {
  background: rgba(255, 59, 48, 0.1);
  color: #c9271f;
}

.demo-message-type {
  color: #071b24;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.18;
}

.locked-preview {
  display: block;
  overflow: hidden;
  position: relative;
  margin: 0;
  max-height: calc(1.18em * 5);
  color: #0f2a35;
  font-size: clamp(1.28rem, 6vw, 1.85rem);
  font-weight: 860;
  line-height: 1.18;
}

.locked-preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 44%);
  color: #58717a;
  content: "...";
  filter: blur(3px);
  opacity: 0.82;
  pointer-events: none;
}

.locked-preview-clear {
  position: relative;
  z-index: 1;
}

.locked-preview-blur {
  display: inline;
  color: #58717a;
  filter: blur(5px);
  opacity: 0.72;
  user-select: none;
}

.no-message-preview {
  max-height: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
}

.no-message-preview::after {
  content: none;
}

.preview-helper {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1.42;
}

.lock-copy {
  color: #14303a;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.34;
}

.landing-actions {
  display: grid;
  gap: 10px;
}

.received-message-list {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
}

.received-message-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #17313a;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.received-message-row:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.received-message-row:active {
  box-shadow: 0 8px 16px rgba(8, 27, 36, 0.06);
  transform: scale(0.98);
}

.received-message-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.received-message-row strong {
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.28;
}

.received-message-row.is-current {
  border-color: rgba(255, 59, 48, 0.18);
}

.landing-actions .btn {
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
}

.reassurance {
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.subtle-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.subtle-link:hover {
  color: var(--brand-dark);
}

.web-space {
  --web-space-padding: clamp(18px, 3vw, 28px);
  width: min(100%, var(--app-content-width));
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(233, 241, 255, 0.72), rgba(246, 251, 251, 0.98)),
    #f7fbfb;
  padding: var(--web-space-padding);
  box-shadow: var(--shadow-soft);
}

.web-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(8, 27, 36, 0.08);
  padding-bottom: 18px;
}

.dashboard-space .web-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  align-items: start;
  gap: 12px;
  margin: -1px -1px 0;
  border: 0;
  border-bottom: 1px solid rgba(8, 27, 36, 0.1);
  border-radius: 26px 26px 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(8, 27, 36, 0.11);
  backdrop-filter: blur(16px);
}

.web-header h1,
.web-header h2 {
  margin-bottom: 0;
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.dashboard-space .web-header h1 {
  font-size: var(--page-title-font-size);
}

.private-page-title {
  display: grid;
  gap: 10px;
  text-align: center;
}

.private-page-title .eyebrow {
  margin-inline: auto;
}

.private-page-title h1 {
  margin: 0;
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.dashboard-title {
  display: grid;
  gap: 10px;
  text-align: center;
}

.dashboard-toprow {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.dashboard-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(13, 143, 123, 0.2);
}

.dashboard-brand .brand-name {
  font-size: 1.04rem;
  font-weight: 950;
}

.dashboard-home,
.dashboard-top-spacer {
  width: 42px;
  height: 42px;
}

.dashboard-home {
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 14px;
  background: rgba(246, 251, 251, 0.94);
  color: #17313a;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(8, 27, 36, 0.06);
}

.dashboard-home svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-home:hover {
  border-color: rgba(13, 143, 123, 0.3);
  color: var(--brand-dark);
}

.web-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-space .web-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  width: 100%;
}

.dashboard-space .web-nav::-webkit-scrollbar {
  display: none;
}

.web-nav a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #17313a;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(8, 27, 36, 0.05);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.dashboard-space .web-nav a {
  flex: 0 0 min(42vw, 170px);
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.12;
  text-align: center;
}

.private-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #17313a;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(8, 27, 36, 0.05);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.private-back:hover {
  border-color: rgba(13, 143, 123, 0.35);
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.private-back:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.dashboard-hub-actions {
  display: grid;
  gap: 14px;
}

.logout-button {
  justify-self: center;
  margin-top: 4px;
}

.web-nav a:hover {
  border-color: rgba(13, 143, 123, 0.35);
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.web-nav a:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.web-grid {
  align-items: start;
}

.web-grid > #notifications {
  grid-column: 1 / -1;
}

.web-grid > #sent {
  grid-column: 1 / -1;
}

.web-welcome {
  display: grid;
  min-height: calc(100vh - 142px);
  place-items: center;
}

.web-welcome-card {
  display: grid;
  width: min(100%, 680px);
  gap: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(233, 241, 255, 0.88), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 58px);
  text-align: center;
}

.web-welcome-card .eyebrow,
.web-welcome-card .web-nav {
  margin-inline: auto;
}

.web-welcome-card h1 {
  margin: 0 auto;
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.web-welcome-card .lead {
  margin: 0 auto;
  color: #334d56;
  font-weight: 680;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(13, 143, 123, 0.16);
  border-radius: 999px;
  background: rgba(13, 143, 123, 0.08);
  color: var(--brand-dark);
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: #061820;
  font-size: var(--page-title-font-size);
  font-weight: var(--page-title-font-weight);
  line-height: var(--page-title-line-height);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: #071b24;
  font-size: var(--page-title-font-size);
  font-weight: var(--page-title-font-weight);
  line-height: var(--page-title-line-height);
  letter-spacing: 0;
}

.auth-title {
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 22px;
  background: var(--trust-info-background);
  box-shadow: 0 12px 32px rgba(13, 143, 123, 0.08);
  color: #17313a;
  padding: 16px 18px;
  text-align: center;
}

.premium-title-text {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--page-title-font-size);
  font-weight: var(--page-title-font-weight);
  line-height: var(--page-title-line-height);
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.activation-title {
  margin-inline: auto;
  max-width: 520px;
  color: #17313a;
  font-size: var(--page-title-font-size);
  font-weight: var(--page-title-font-weight);
  line-height: var(--page-title-line-height);
  text-align: center;
}

.activated-title {
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  line-height: 1.62;
}

.page-intro {
  margin: -2px 0 2px;
  color: #526670;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.48;
}

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

.home-actions {
  display: grid;
  width: min(100%, 440px);
  gap: 14px;
  margin-top: 18px;
}

.home-explainer {
  margin-top: 8px;
}

.home-read-scanner {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  gap: 0;
  margin-top: 18px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #46626b;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.42;
  box-shadow: none;
  transition:
    gap 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    padding 220ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.home-read-scanner[data-expanded="true"] {
  gap: 14px;
  border: 2px solid rgba(18, 48, 111, 0.34);
  background: linear-gradient(180deg, rgba(241, 246, 255, 0.94), rgba(255, 255, 255, 0.82));
  padding: 14px 16px;
  box-shadow:
    0 22px 48px rgba(18, 48, 111, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.52) inset;
}

.home-info-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b3f91 0%, #12306f 100%);
  color: #ffffff;
  margin: 0;
  min-height: 74px;
  padding: 15px 22px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    0 18px 36px rgba(18, 48, 111, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition:
    filter 180ms ease,
    grid-template-columns 220ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    transform 110ms ease,
    box-shadow 110ms ease;
}

.home-info-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.home-info-copy strong {
  color: #ffffff;
  font-size: 1.13rem;
  font-weight: 950;
  line-height: 1.16;
}

.home-info-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
  white-space: nowrap;
}

.home-info-button[data-expanded="true"] {
  min-height: 74px;
}

.home-info-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 22px 42px rgba(18, 48, 111, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.home-info-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(18, 48, 111, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.home-info-button:focus-visible {
  outline: 3px solid rgba(217, 144, 67, 0.42);
  outline-offset: 3px;
}

.home-scan-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #12306f;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.3;
  opacity: 0;
  padding: 0 14px;
  text-align: left;
  transform: translateY(-6px);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    padding 220ms ease,
    transform 220ms ease;
}

.home-read-scanner[data-expanded="true"] .home-scan-action {
  max-height: 92px;
  opacity: 1;
  padding: 12px 14px;
  transform: translateY(0);
}

.home-scan-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #12306f;
  font-weight: 950;
}

.home-scan-icons svg {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #12306f;
  padding: 6px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 1;
  box-shadow:
    0 8px 18px rgba(18, 48, 111, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.home-scan-icons span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #12306f;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(18, 48, 111, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.home-scan-action:hover .home-scan-icons span {
  background: #0b3f91;
  transform: translateX(2px);
}

.home-scan-action:hover .home-scan-icons svg {
  background: #0b3f91;
}

.home-scan-action:active {
  transform: translateY(1px) scale(0.98);
}

.home-scanner-separator {
  max-height: 0;
  height: 1px;
  background: rgba(18, 48, 111, 0.14);
  margin: -14px 0 0;
  opacity: 0;
  transition:
    margin 220ms ease,
    max-height 220ms ease,
    opacity 180ms ease;
}

.home-manual-qr {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
  transform: translateY(-6px);
}

.home-info-button[data-expanded="true"] ~ .home-scanner-separator {
  max-height: 1px;
  margin: 0;
  opacity: 1;
}

.home-info-button[data-expanded="true"] ~ .home-manual-qr {
  max-height: 190px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-manual-qr .btn.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #0b3f91 0%, #12306f 100%);
  color: white;
  box-shadow:
    0 16px 32px rgba(18, 48, 111, 0.27),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition:
    filter 180ms ease,
    transform 110ms ease,
    box-shadow 110ms ease;
}

.home-manual-qr .btn.secondary:hover {
  color: white;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 20px 38px rgba(18, 48, 111, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.home-manual-qr .btn.secondary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(18, 48, 111, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(13, 143, 123, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition:
    filter 180ms ease,
    border-color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(13, 143, 123, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(13, 143, 123, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #0b3f91, #12306f);
  color: white;
  box-shadow:
    0 14px 30px rgba(18, 48, 111, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn.secondary:active {
  box-shadow:
    0 8px 18px rgba(18, 48, 111, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.home-actions .action-card.secondary {
  border-color: rgba(255, 230, 190, 0.62);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 205, 0.42), transparent 34%),
    linear-gradient(135deg, #d99043 0%, #c9732d 54%, #a95425 100%);
  box-shadow:
    0 18px 38px rgba(169, 86, 40, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.home-return-button {
  border: 1px solid rgba(255, 230, 190, 0.62);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 205, 0.42), transparent 34%),
    linear-gradient(135deg, #d99043 0%, #c9732d 54%, #a95425 100%);
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(169, 86, 40, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.home-return-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 24px 46px rgba(169, 86, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.home-return-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(169, 86, 40, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn.warn {
  background: var(--danger);
}

.action-card {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 5px;
  padding: 18px 22px;
  border-radius: 24px;
  text-align: center;
}

.dashboard-hub-actions .action-card {
  overflow: hidden;
  min-height: 98px;
  padding-right: 48px;
  transition:
    filter 180ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.dashboard-hub-actions .primary-send-card {
  overflow: visible;
}

.dashboard-hub-actions .action-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  content: "→";
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(9, 26, 56, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.dashboard-hub-actions .action-card:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.dashboard-hub-actions .action-card:hover::after {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.dashboard-hub-actions .action-card:active {
  transform: translateY(1px) scale(0.98);
}

.public-home .home-actions .action-card {
  overflow: hidden;
  padding-right: 48px;
  box-shadow:
    0 18px 38px rgba(13, 143, 123, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition:
    filter 180ms ease,
    transform 110ms ease,
    box-shadow 110ms ease;
}

.public-home .home-actions .action-card.secondary {
  box-shadow:
    0 18px 38px rgba(169, 86, 40, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.public-home .home-actions .action-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  content: "→";
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(9, 26, 56, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.public-home .home-actions .action-card:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px rgba(13, 143, 123, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.public-home .home-actions .action-card:hover::after {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.public-home .home-actions .action-card:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(13, 143, 123, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.public-home .home-actions .action-card:focus-visible {
  outline: 3px solid rgba(217, 144, 67, 0.38);
  outline-offset: 4px;
}

.public-home .home-actions .guest-progressive-cta,
.public-home .home-actions .account-progressive-cta {
  min-height: 74px;
  align-content: center;
  gap: 4px;
  padding: 15px 22px;
  transition:
    filter 180ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    transform 110ms ease,
    box-shadow 110ms ease;
}

.public-home .home-actions .guest-progressive-cta::after,
.public-home .home-actions .account-progressive-cta::after {
  opacity: 0;
  transform: translateX(8px) scale(0.9);
}

.public-home .home-actions .guest-progressive-cta strong,
.public-home .home-actions .account-progressive-cta strong {
  font-size: 1.18rem;
}

.public-home .home-actions .guest-progressive-cta > small,
.public-home .home-actions .account-progressive-cta > small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
}

.public-home .home-actions .guest-progressive-cta > span,
.public-home .home-actions .account-progressive-cta > span {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.public-home .home-actions .guest-progressive-cta[data-expanded="true"],
.public-home .home-actions .account-progressive-cta[data-expanded="true"] {
  min-height: 118px;
  padding: 18px 48px 18px 22px;
}

.public-home .home-actions .guest-progressive-cta[data-expanded="true"]::after,
.public-home .home-actions .account-progressive-cta[data-expanded="true"]::after {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.public-home .home-actions .guest-progressive-cta[data-expanded="true"] > span,
.public-home .home-actions .account-progressive-cta[data-expanded="true"] > span {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

.public-home .home-actions .action-card.secondary:hover {
  box-shadow:
    0 24px 46px rgba(169, 86, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.public-home .home-actions .action-card.secondary:active {
  box-shadow:
    0 8px 18px rgba(169, 86, 40, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.action-card strong {
  font-size: 1.22rem;
  line-height: 1.1;
}

.action-card strong small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 760;
}

.action-card.secondary strong small {
  color: rgba(255, 255, 255, 0.72);
}

.action-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 750;
}

.action-card.secondary span {
  color: rgba(255, 255, 255, 0.8);
}

.auth-video-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(100%, 420px);
  min-height: 56px;
  margin-top: 6px;
  border: 1px solid rgba(255, 230, 190, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 205, 0.42), transparent 34%),
    linear-gradient(135deg, #d99043 0%, #c9732d 54%, #a95425 100%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 14px 58px;
  box-shadow:
    0 18px 38px rgba(169, 86, 40, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition:
    filter 180ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.auth-video-button img {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  object-fit: contain;
  padding: 6px;
  box-shadow:
    0 8px 18px rgba(9, 26, 56, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0.94;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.auth-video-button span {
  text-align: center;
}

.auth-video-button:hover img,
.auth-video-button:focus-visible img {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) translateX(2px);
}

.auth-video-button img {
  flex: 0 0 auto;
}

.auth-video-button:hover,
.auth-video-button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 24px 46px rgba(169, 86, 40, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.auth-video-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(169, 86, 40, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.qr-management-card,
.management-card {
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 52%, #1d4ed8 100%);
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.22);
}

.primary-send-card {
  position: relative;
  overflow: visible;
  margin-top: 10px;
  background: linear-gradient(135deg, #a95628 0%, #c97a31 52%, #d69a57 100%);
  box-shadow: 0 18px 38px rgba(169, 86, 40, 0.26);
}

.primary-send-card:hover {
  box-shadow:
    0 24px 46px rgba(169, 86, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.primary-send-card:active {
  box-shadow:
    0 8px 18px rgba(169, 86, 40, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.plus-icon {
  position: absolute;
  top: -20px;
  right: -4px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #7c2d12 0%, #c75a1c 100%);
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 12px 24px rgba(91, 45, 20, 0.32),
    0 0 0 6px rgba(255, 255, 255, 0.16);
  z-index: 3;
}

.panel {
  width: min(100%, var(--app-content-width));
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(22px, 4vw, 34px);
}

.web-space > .panel,
.web-space > form.panel {
  width: calc(100% + (var(--web-space-padding) * 2));
  max-width: none;
  margin-right: calc(var(--web-space-padding) * -1);
  margin-left: calc(var(--web-space-padding) * -1);
}

.stack {
  display: grid;
  gap: 18px;
}

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

.card {
  max-width: 100%;
  border: 1px solid rgba(215, 230, 229, 0.92);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(8, 27, 36, 0.04);
}

.stat {
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  padding-block: 13px;
}

.admin-space {
  width: min(100%, 1080px);
}

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

.admin-stat-grid .stat b {
  font-size: 1.7rem;
}

.admin-table-card {
  gap: 12px;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(215, 230, 229, 0.92);
  padding: 10px 8px;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.admin-section-heading .eyebrow {
  margin-bottom: 8px;
}

.admin-inline-link,
.admin-inline-action {
  width: fit-content;
}

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

.admin-detail-grid > div,
.admin-compact-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(215, 230, 229, 0.92);
  padding: 8px 0;
}

.admin-subsection {
  display: grid;
  gap: 8px;
}

.admin-compact-row span,
.admin-message-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-message-row {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid rgba(215, 230, 229, 0.92);
  padding: 12px 0;
}

.admin-message-row > div {
  display: grid;
  gap: 4px;
}

.admin-message-row p {
  margin: 0;
  color: #26424a;
  line-height: 1.5;
}

.admin-access-denied {
  text-align: center;
}

.stat-link {
  position: relative;
  padding-right: 48px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.unread-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 7px;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 27, 36, 0.12);
}

.unread-counter-red {
  background: #dc2626;
}

.unread-counter-blue {
  background: #2563eb;
}

.stat-link::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 143, 123, 0.09);
  color: var(--brand-dark);
  content: "→";
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.stat-link:hover {
  border-color: rgba(13, 143, 123, 0.28);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.stat-link:hover::after {
  background: rgba(13, 143, 123, 0.14);
  transform: translateX(2px);
}

.stat-link:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 16px rgba(8, 27, 36, 0.06);
}

.stat b {
  font-size: 2.05rem;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

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

.field span,
.label {
  color: #14303a;
  font-size: 0.92rem;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.select-field {
  position: relative;
}

.select-field select {
  min-height: 58px;
  appearance: none;
  border-color: rgba(13, 143, 123, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 251, 0.98)),
    #ffffff;
  padding-right: 48px;
  color: #14303a;
  font-weight: 820;
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.06);
}

.select-field::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 143, 123, 0.55);
  box-shadow: 0 0 0 4px rgba(13, 143, 123, 0.12);
}

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

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

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(215, 230, 229, 0.92);
  border-radius: 18px;
  background: rgba(240, 245, 245, 0.9);
  padding: 5px;
  box-shadow: inset 0 1px 2px rgba(8, 27, 36, 0.04);
}

[hidden] {
  display: none !important;
}

.scanner-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 250, 0.92));
  padding: 18px;
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.06);
}

.scanner-card > .btn {
  min-height: 62px;
  font-size: 1.02rem;
}

.scanner-card > .btn.activation-scan-interior {
  border-color: rgba(255, 255, 255, 0.66);
  background: linear-gradient(135deg, #12306f 0%, #1e3a8a 52%, #152a66 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(18, 48, 111, 0.2);
}

.activation-submit-btn {
  white-space: nowrap;
}

.activation-submit-exterior {
  border: 1px solid rgba(255, 230, 190, 0.62);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 205, 0.42), transparent 34%),
    linear-gradient(135deg, #d99043 0%, #c9732d 54%, #a95425 100%);
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(169, 86, 40, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.activation-submit-exterior:hover,
.activation-submit-exterior:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 24px 46px rgba(169, 86, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.26) inset;
}

.activation-submit-exterior:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 8px 18px rgba(169, 86, 40, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

@media (max-width: 420px) {
  .activation-submit-btn {
    font-size: 0.96rem;
  }
}

.scanner-view {
  display: grid;
  gap: 10px;
  position: relative;
}

.scanner-view[hidden] {
  display: none;
}

.scanner-view video {
  width: 100%;
  max-height: 320px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 18px;
  background: #061820;
  object-fit: cover;
}

.scanner-view[data-scanning="true"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(66%, 230px);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow:
    0 0 0 999px rgba(6, 24, 32, 0.18),
    0 14px 32px rgba(6, 24, 32, 0.22);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.scanner-view[data-scanning="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(52%, 180px);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.52);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.manual-qr {
  color: var(--muted);
  font-size: 0.94rem;
}

.manual-qr-form {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.select-helper {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.32;
}

.choice {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(215, 230, 229, 0.95);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(8, 27, 36, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 110ms ease,
    transform 110ms ease;
}

.choice:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 28px rgba(8, 27, 36, 0.08);
  transform: translateY(-1px);
}

.choice:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 14px rgba(8, 27, 36, 0.06);
}

.choice[aria-pressed="true"] {
  border-color: rgba(13, 143, 123, 0.72);
  background: linear-gradient(180deg, #ffffff, #f0fbf8);
  box-shadow: inset 0 0 0 2px rgba(13, 143, 123, 0.15), 0 12px 28px rgba(13, 143, 123, 0.11);
}

.scenario-choice {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 140ms ease;
}

.scenario-choice-label {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.scenario-choice-label strong {
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.08;
}

.scenario-choice-label small {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.08;
}

.scenario-choice:hover {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
}

.scenario-choice:active {
  transform: translateY(1px) scale(0.98);
}

.scenario-choice[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.66);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(13, 143, 123, 0.18);
}

.scenario-exterior[aria-pressed="true"] {
  background: linear-gradient(135deg, #14b8a6 0%, #2f78eb 100%);
}

.scenario-interior[aria-pressed="true"] {
  background: linear-gradient(135deg, #12306f 0%, #1e3a8a 52%, #152a66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(18, 48, 111, 0.2);
}

.activation-scenario-description {
  margin: -2px 2px 0;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.42;
}

.activation-mode-content.is-switching {
  animation: activation-mode-enter 220ms ease both;
}

@keyframes activation-mode-enter {
  from {
    opacity: 0.56;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d4ed8;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(13, 143, 123, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4fbfa);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(8, 27, 36, 0.05);
}

.qr-wrap strong {
  color: #102a32;
  font-size: 1rem;
}

.qr-wrap svg {
  width: min(100%, 280px);
  height: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  box-sizing: border-box;
  image-rendering: pixelated;
}

.qr-url {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #081b24;
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
}

.manual-code-block {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.qr-network-note {
  max-width: 420px;
  margin: 0;
  color: rgba(138, 72, 31, 0.82);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.36;
}

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

.message-row {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(215, 230, 229, 0.95);
  border-radius: 20px;
  background: white;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(8, 27, 36, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.message-row.has-unread-activity {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 14px 30px rgba(8, 27, 36, 0.08);
}

.message-unread-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.message-unread-red {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
}

.message-unread-blue {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
}

.message-row:has(.ghost:hover) {
  border-color: rgba(13, 143, 123, 0.18);
  box-shadow: 0 14px 30px rgba(8, 27, 36, 0.07);
}

.message-row p {
  margin-bottom: 0;
  color: #26424a;
  line-height: 1.5;
}

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

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

.message-actions .ghost.is-status-active {
  border-color: rgba(13, 143, 123, 0.3);
  background: rgba(13, 143, 123, 0.08);
}

.message-action-active-indicator {
  position: absolute;
  top: -7px;
  left: -7px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #0d8f7b;
  color: white;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(8, 27, 36, 0.14);
}

.inbox-layout {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: 1px solid rgba(215, 230, 229, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(8, 27, 36, 0.05);
}

.inbox-sidebar {
  display: grid;
  align-content: start;
  border-right: 1px solid rgba(215, 230, 229, 0.95);
  background: rgba(247, 251, 250, 0.9);
}

.inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid rgba(215, 230, 229, 0.95);
  padding: 12px;
}

.inbox-filter {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 999px;
  background: white;
  color: #31505a;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.inbox-filter-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 143, 123, 0.09);
  color: var(--brand-dark);
  padding: 0 5px;
  font-size: 0.66rem;
}

.inbox-filter-icon {
  display: inline-grid;
  width: 16px;
  place-items: center;
  font-size: 0.72rem;
  line-height: 1;
}

.inbox-filter.is-active {
  border-color: rgba(18, 48, 111, 0.24);
  background: linear-gradient(135deg, #12306f, #0c5f8b);
  color: white;
}

.inbox-filter.is-active .inbox-filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.inbox-conversations {
  display: grid;
  max-height: 690px;
  align-content: start;
  overflow-y: auto;
}

.inbox-conversation {
  display: grid;
  position: relative;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid rgba(215, 230, 229, 0.95);
  background: rgba(255, 255, 255, 0.76);
  color: #17313a;
  padding: 14px;
  text-align: left;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.inbox-conversation:hover,
.inbox-conversation.is-selected {
  background: white;
  box-shadow: inset 4px 0 0 #0d8f7b;
}

.inbox-conversation.has-unread-activity {
  background: rgba(233, 241, 255, 0.72);
}

.inbox-conversation-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.inbox-conversation-top strong {
  color: #17313a;
  font-size: 0.9rem;
  line-height: 1.25;
}

.inbox-conversation-top time,
.inbox-conversation-context,
.inbox-detail-context {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

.inbox-conversation-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #45616a;
  font-size: 0.82rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inbox-conversation .pill {
  width: fit-content;
}

.inbox-detail {
  min-width: 0;
  max-height: 760px;
  overflow-y: auto;
  background: white;
  padding: 20px;
}

.inbox-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.inbox-detail-header h2 {
  margin: 5px 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.inbox-empty-detail,
.inbox-empty-list {
  color: var(--muted);
  padding: 22px;
  line-height: 1.5;
}

.inbox-empty-detail {
  display: grid;
  min-height: 460px;
  place-content: center;
  gap: 6px;
  text-align: center;
}

.inbox-empty-detail p {
  max-width: 340px;
  margin: 0;
}

.inbox-mobile-back,
.inbox-route-mobile-back {
  display: none;
}

.reply-thread {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-radius: 18px;
  background: rgba(13, 143, 123, 0.06);
  padding: 16px;
}

.reply-item {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.reply-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.trust-profile-card .field {
  margin-top: 2px;
}

.trust-profile-summary {
  display: grid;
  gap: 6px;
}

.trust-profile-member-badge {
  color: var(--brand-dark);
  font-weight: 900;
}

.trust-profile-join {
  justify-self: start;
}

.trust-profile-meta {
  display: block;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.conversation-thread {
  background: rgba(233, 241, 255, 0.42);
}

.conversation-item.is-mine {
  margin-left: clamp(18px, 10vw, 72px);
  background: linear-gradient(135deg, rgba(13, 143, 123, 0.12), rgba(37, 99, 235, 0.1));
}

.conversation-item.is-other {
  margin-right: clamp(18px, 10vw, 72px);
}

.print-actions,
.order-options {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

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

.free-qr-card {
  position: relative;
  overflow: visible;
}

.free-qr-card {
  margin-top: 8px;
}

.free-qr-content {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.print-choice-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.34;
}

.print-qr-button {
  display: grid;
  width: 100%;
  min-height: 60px;
  place-content: center;
  gap: 1px;
  padding: 7px 10px;
  line-height: 1.2;
  white-space: normal;
}

.print-qr-button span {
  display: block;
}

.print-qr-button-interior {
  background: linear-gradient(135deg, var(--brand), var(--blue));
}

.public-home .home-read-scanner {
  margin-top: 10px;
}

.free-qr-badge {
  position: absolute;
  top: -18px;
  right: -10px;
  border: 1px solid rgba(13, 143, 123, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #d9fbe8 0%, #dbeafe 100%);
  color: #0f766e;
  padding: 8px 13px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 10px 20px rgba(13, 143, 123, 0.12),
    0 0 0 5px rgba(255, 255, 255, 0.72);
}

.premium-order-card {
  position: relative;
  margin-top: 14px;
  overflow: visible;
}

.premium-order-badge {
  position: absolute;
  top: -18px;
  right: -10px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #7c2d12 0%, #c75a1c 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 12px 24px rgba(91, 45, 20, 0.3),
    0 0 0 6px rgba(255, 255, 255, 0.16);
}

.premium-order-note {
  width: fit-content;
  margin: -6px 0 0;
  border-radius: 999px;
  background: rgba(201, 122, 49, 0.1);
  color: #8a481f;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.qr-management-title {
  margin-bottom: 10px;
  font-size: var(--page-title-font-size);
  line-height: var(--page-title-line-height);
  white-space: nowrap;
}

.printable-preview {
  display: grid;
  gap: 12px;
}

.print-sheet {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed rgba(8, 27, 36, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-sizing: border-box;
  overflow: visible;
  padding: 18px 18px 42px;
  text-align: center;
}

.print-qr-type-badge {
  border-radius: 999px;
  color: #ffffff;
  padding: 7px 10px;
  line-height: 1;
}

.print-sheet-interior .print-qr-type-badge {
  background: linear-gradient(135deg, var(--brand), var(--blue));
}

.print-sheet-exterior .print-qr-type-badge {
  background: linear-gradient(135deg, #0b3f91, #12306f);
}

.print-qr-logo {
  display: block;
  width: min(164px, 58%);
  height: auto;
  margin: 5px 0 -5px;
  object-fit: contain;
}

.print-sheet svg {
  width: min(100%, 280px);
  height: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  box-sizing: border-box;
  image-rendering: pixelated;
}

.print-qr-message {
  display: grid;
  gap: 4px;
  max-width: 420px;
  margin: 0;
  color: #17313a;
  font-weight: 620;
  line-height: 1.34;
}

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

.print-qr-message-interior p + p {
  margin-top: 1.05em;
}

.print-qr-message strong {
  display: block;
  color: #102a34;
  font-weight: 880;
  line-height: 1.24;
}

.print-qr-message p {
  margin: 0;
}

.print-qr-message-exterior {
  gap: 0;
}

.print-qr-message-exterior p + p {
  margin-top: 1.15em;
}

.qr-eco-block {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 2px auto 0;
  position: static;
}

.qr-eco-note {
  display: block;
  max-width: 420px;
  color: rgba(15, 118, 110, 0.72);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
}

.qr-eco-picto {
  display: block;
  width: min(64px, 22%);
  height: auto;
  margin: 0 auto;
  opacity: 0.72;
  object-fit: contain;
  position: static;
}

.print-qr-root {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body > :not(.print-qr-root) {
    display: none !important;
  }

  .print-qr-root,
  .print-page-a4 {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .print-qr-root {
    position: static !important;
  }

  .print-page-a4 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .print-page-a4 > .print-sheet {
    display: grid !important;
    width: 90mm !important;
    max-width: 90mm !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 2.4mm !important;
    justify-items: center !important;
    align-content: start !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    border: 0.35mm dashed rgba(8, 27, 36, 0.28) !important;
    border-radius: 5mm !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    box-shadow: none !important;
    padding: 6mm 6mm 8mm !important;
    text-align: center !important;
    transform: none !important;
    margin: 0 !important;
    position: static !important;
  }

  .print-page-a4 .print-sheet .eyebrow {
    color: #ffffff !important;
    font-size: 7.2pt !important;
    letter-spacing: 0.08em !important;
  }

  .print-page-a4 .print-qr-logo {
    width: 39mm !important;
    height: auto !important;
    margin: 1.4mm 0 -1.4mm !important;
    object-fit: contain !important;
  }

  .print-page-a4 .print-sheet svg {
    width: 54mm !important;
    height: 54mm !important;
    max-width: 54mm !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    padding: 2.5mm !important;
    box-sizing: border-box !important;
  }

  .print-qr-message {
    width: 100% !important;
    max-width: 76mm !important;
    color: #17313a !important;
    font-size: 8.2pt !important;
    line-height: 1.22 !important;
  }

  .print-qr-message strong {
    color: #102a34 !important;
    font-size: 9.2pt !important;
    line-height: 1.18 !important;
  }

  .print-qr-message-exterior p + p {
    margin-top: 2.8mm !important;
  }

  .print-qr-message-interior {
    margin-top: 0 !important;
  }

  .print-qr-message-interior p + p {
    margin-top: 2.8mm !important;
  }

  .qr-url {
    color: #081b24 !important;
    font-size: 10.5pt !important;
    font-weight: 900 !important;
  }

  .manual-code-block {
    gap: 1mm !important;
    color: #5f6d73 !important;
    font-size: 7pt !important;
    font-weight: 760 !important;
  }

  .qr-network-note {
    display: none !important;
  }

  .qr-eco-block {
    display: grid !important;
    justify-items: center !important;
    gap: 1.6mm !important;
    width: 100% !important;
    max-width: 76mm !important;
    margin: 0 auto !important;
    position: static !important;
  }

  .qr-eco-note {
    max-width: 76mm !important;
    color: rgba(15, 118, 110, 0.72) !important;
    font-size: 6.8pt !important;
    line-height: 1.2 !important;
  }

  .qr-eco-picto {
    width: 10mm !important;
    height: auto !important;
    margin: 0 auto !important;
    opacity: 0.72 !important;
    position: static !important;
  }
}

.vehicle-list {
  display: grid;
  gap: 14px;
}

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

.vehicle-summary-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-radius: 16px;
  background: rgba(13, 143, 123, 0.06);
  color: #1c4245;
  padding: 12px 14px;
}

.vehicle-summary-card span,
.vehicle-summary-card small {
  color: #5f6f74;
  font-size: 0.82rem;
  font-weight: 780;
}

.vehicle-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.check-grid {
  display: grid;
  gap: 10px;
}

.check-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(8, 27, 36, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 12px;
  color: #14303a;
  font-weight: 820;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.notice {
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-radius: 16px;
  background: var(--trust-info-background);
  color: #1c4245;
  padding: 15px;
  line-height: 1.45;
}

.roadmap-photo-notice {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  overflow: hidden;
  font-size: clamp(0.74rem, 2.5vw, 0.84rem);
  margin: 0;
  padding: 11px 13px;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.vehicle-alert-recipients {
  gap: 10px;
  border-top: 1px solid rgba(13, 143, 123, 0.12);
  padding-top: 14px;
}

.vehicle-alert-recipient-list {
  display: grid;
  gap: 8px;
}

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

.vehicle-alert-recipient-row input {
  width: 100%;
}

.vehicle-alert-recipient-row.is-primary {
  grid-template-columns: minmax(0, 1fr);
}

.vehicle-alert-primary {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.vehicle-remove-alert-recipient {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(186, 43, 43, 0.08);
  color: #a72828;
  font-size: 1.15rem;
  font-weight: 900;
}

.vehicle-add-alert-recipient {
  justify-self: start;
}

.message-detail-panel,
.message-detail-panel #replyForm,
.message-detail-panel .message-actions,
.inbox-detail,
.inbox-detail-content,
.inbox-detail-content #inboxReplyForm,
.inbox-detail-content .message-actions,
.message-detail-panel .roadmap-photo-notice,
.inbox-detail-content .roadmap-photo-notice {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.text-link-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  margin: 0 auto;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link-button:hover {
  color: var(--brand-dark);
}

.debug-panel {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(8, 27, 36, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #4d6570;
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 12px;
  text-align: left;
}

.debug-panel strong {
  color: #17313a;
  font-size: 0.78rem;
}

.debug-panel .ghost {
  justify-self: start;
  margin-top: 4px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

.notice-orange {
  border-color: rgba(217, 144, 67, 0.26);
  border-left-color: #d99043;
  background: rgba(217, 144, 67, 0.1);
  color: #6d3b17;
}

.preview {
  overflow: hidden;
  position: relative;
  max-height: 78px;
  margin-top: 8px;
}

.preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40px;
  background: linear-gradient(transparent, white);
  content: "";
}

.discovery-section {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(215, 230, 229, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow-soft);
}

.home-discovery {
  position: relative;
  width: min(100%, 620px);
  margin-top: clamp(34px, 8vw, 62px);
  border-color: rgba(221, 206, 174, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.96), rgba(248, 244, 235, 0.92)),
    #fbf7ed;
  box-shadow: 0 12px 32px rgba(89, 72, 42, 0.08);
}

.home-discovery::before {
  position: absolute;
  top: calc(clamp(34px, 8vw, 62px) * -0.55);
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 121, 82, 0.32), transparent);
  content: "";
}

.home-discovery .eyebrow {
  width: fit-content;
  margin-inline: auto;
  border-color: rgba(143, 121, 82, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: #7a6237;
}

.discovery-section h2 {
  margin-bottom: 0;
  font-size: var(--page-title-font-size);
}

.home-discovery h2 {
  color: #231f19;
  font-size: var(--page-title-font-size);
  text-align: center;
}

.home-discovery > .muted {
  color: #756a58;
  text-align: center;
}

.video-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 18%, rgba(42, 226, 190, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(8, 40, 68, 0.92), rgba(8, 94, 120, 0.82)),
    #092c3c;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
  box-shadow: 0 22px 52px rgba(8, 40, 68, 0.18);
  transition:
    box-shadow 110ms ease,
    filter 180ms ease,
    transform 110ms ease;
}

.home-discovery .video-placeholder {
  min-height: 230px;
  border-color: rgba(143, 121, 82, 0.2);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(73, 62, 47, 0.92), rgba(118, 96, 58, 0.78)),
    #5b4b34;
  box-shadow: 0 18px 38px rgba(89, 72, 42, 0.16);
}

.home-discovery .video-placeholder::before {
  background:
    linear-gradient(180deg, rgba(43, 34, 23, 0.08), rgba(43, 34, 23, 0.36)),
    rgba(43, 34, 23, 0.16);
}

.video-placeholder::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 20, 30, 0.1), rgba(4, 20, 30, 0.46)),
    rgba(4, 20, 30, 0.18);
  content: "";
}

.video-placeholder::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 48%;
  background: linear-gradient(180deg, rgba(8, 27, 36, 0), rgba(8, 27, 36, 0.72));
  content: "";
  pointer-events: none;
}

.home-discovery .video-placeholder::after {
  background: linear-gradient(180deg, rgba(43, 34, 23, 0), rgba(43, 34, 23, 0.76));
}

.video-placeholder:hover,
.video-placeholder:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 26px 58px rgba(8, 40, 68, 0.22);
}

.video-placeholder:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 10px 24px rgba(8, 40, 68, 0.16);
}

.youtube-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: #ff0033;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(255, 0, 51, 0.24);
}

.video-play {
  position: relative;
  z-index: 3;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 27, 36, 0.68);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
  padding-left: 4px;
}

.video-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: grid;
  gap: 3px;
}

.video-copy strong {
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.15;
}

.video-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.24;
}

.video-modal[hidden] {
  display: none;
}

.action-confirmation-modal[hidden] {
  display: none;
}

.scan-modal[hidden] {
  display: none;
}

.action-confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 22px;
}

.action-confirmation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 36, 0.28);
  backdrop-filter: blur(10px);
}

.action-confirmation-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 420px);
  gap: 18px;
  border: 1px solid rgba(215, 230, 229, 0.88);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 27, 36, 0.2);
  padding: 28px 22px 22px;
  text-align: center;
}

.action-confirmation-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d8f7b, #2563eb);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(13, 143, 123, 0.26);
}

.action-confirmation-card p {
  margin: 0;
  color: #17313a;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.36;
}

.scan-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.scan-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 20, 28, 0.58);
  backdrop-filter: blur(8px);
}

.scan-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(520px, 100%);
  gap: 18px;
  border: 1px solid rgba(215, 230, 229, 0.92);
  border-radius: 24px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(8, 40, 68, 0.28);
}

.scan-modal-title-card {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 143, 123, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background: var(--trust-info-background);
  padding: 16px 42px 16px 18px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.scan-modal-title-card h2 {
  margin: 0;
  color: #081b24;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.scan-modal-alert {
  position: absolute;
  top: -12px;
  right: -10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #0c4a6e, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(8, 40, 68, 0.22);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
}

.scan-modal-body {
  display: grid;
  gap: 12px;
}

.scan-modal-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.56;
}

.scan-modal-body hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: rgba(8, 27, 36, 0.1);
  margin: 4px 0;
}

.scan-modal-actions {
  display: grid;
  gap: 10px;
}

.video-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 20, 28, 0.56);
  backdrop-filter: blur(8px);
}

.video-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(560px, 100%);
  gap: 14px;
  border: 1px solid rgba(215, 230, 229, 0.9);
  border-radius: 24px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(8, 40, 68, 0.28);
}

.video-close {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 143, 123, 0.1);
  color: #0b5265;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 14px;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #081b24;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.video-frame strong,
.video-frame > span:not(.youtube-badge):not(.video-play) {
  position: relative;
  z-index: 2;
}

.video-frame strong {
  align-self: end;
  font-size: 1.35rem;
}

.video-frame > span:not(.youtube-badge):not(.video-play) {
  align-self: start;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.video-play.large {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
}

@media (max-width: 860px) {
  .shell {
    padding: 18px;
  }

  .dashboard-shell {
    padding-top: 0;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .hero,
  .grid,
  .web-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-main {
    min-height: 440px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .roadmap-photo-notice {
    overflow-wrap: break-word;
    text-overflow: clip;
    white-space: normal;
  }

  .shell {
    padding: 14px;
  }

  .dashboard-shell {
    padding: 0 10px 10px;
  }

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

  .home-link {
    width: 100%;
  }

  .brand-mark,
  .brand-picto {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
  }

  .public-home .home-actions .account-progressive-cta strong {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav button {
    min-height: 42px;
    padding-inline: 10px;
  }

  h1 {
    font-size: var(--page-title-font-size);
  }

  .home-card {
    padding: 28px 22px;
  }

  .public-home.home-simple {
    padding-top: 0;
  }

  .public-home .home-card {
    padding-top: 22px;
  }

  .home-card h1 {
    max-width: 330px;
    font-size: var(--page-title-font-size);
    line-height: var(--page-title-line-height);
  }

  .home-card .lead {
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .qr-landing-card {
    gap: 16px;
    padding: 26px 22px;
  }

  .context-label {
    width: 100%;
  }

  .notification-header {
    width: 100%;
    padding: 16px 42px 16px 16px;
  }

  .notification-header h1 {
    font-size: clamp(1.08rem, 5vw, 1.35rem);
  }

  .landing-copy {
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .locked-message {
    padding: 16px;
  }

  .locked-preview {
    font-size: clamp(1.18rem, 7vw, 1.54rem);
  }

  .lock-copy {
    font-size: 1rem;
  }

  h2 {
    font-size: var(--page-title-font-size);
  }

  .hero-main,
  .panel {
    border-radius: 22px;
  }

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

  .inbox-layout {
    display: block;
    min-height: 0;
  }

  .inbox-sidebar {
    border-right: 0;
  }

  .inbox-conversations {
    max-height: none;
    overflow-y: visible;
  }

  .inbox-layout.has-selection .inbox-sidebar {
    display: none;
  }

  .inbox-detail {
    display: none;
    max-height: none;
    overflow-y: visible;
    padding: 16px;
  }

  .inbox-layout.has-selection .inbox-detail {
    display: block;
  }

  .web-space > .message-detail-panel {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .message-detail-panel,
  .inbox-detail {
    overflow-x: hidden;
  }

  .message-detail-panel .roadmap-photo-notice,
  .inbox-detail-content .roadmap-photo-notice {
    white-space: normal;
  }

  .inbox-mobile-back,
  .inbox-route-mobile-back {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .inbox-empty-detail {
    display: none;
  }

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

  .web-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-space .web-nav {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }

  .web-nav a {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .dashboard-space .web-nav a {
    flex: 0 0 min(44vw, 168px);
    min-height: 56px;
    padding: 8px 10px;
    text-align: center;
  }

  .web-welcome-card {
    padding: 28px 22px;
  }

  .web-welcome-card h1 {
    font-size: var(--page-title-font-size);
  }

  .btn,
  .ghost {
    width: 100%;
  }

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

  .choice {
    min-height: 68px;
  }

  .scan-scene {
    gap: 10px;
    margin-top: 18px;
  }

  .message-preview-card {
    margin-left: 0;
  }

  .message-preview-card {
    padding: 14px;
  }

  .message-preview-card p {
    font-size: 0.92rem;
  }

  .message-preview-card strong {
    font-size: 1.2rem;
  }

  .demo-hint {
    margin-top: 9px;
    border-radius: 999px;
    font-size: 0.88rem;
  }

  .public-home .demo-hint {
    margin-top: 2px;
  }

  .home-actions {
    margin-top: 14px;
  }

  .action-card {
    min-height: 78px;
    border-radius: 20px;
  }

  .row-top {
    display: grid;
  }

  .admin-stat-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}
