:root {
  --bg: #3b6f9e;
  --bg-2: #295882;
  --bg-3: #204768;
  --surface: rgba(10, 24, 37, 0.9);
  --surface-2: rgba(13, 29, 45, 0.94);
  --surface-3: rgba(17, 36, 54, 0.9);
  --panel: rgba(12, 28, 43, 0.88);
  --panel-strong: rgba(14, 33, 50, 0.96);
  --text: #17324d;
  --muted: #5d7692;
  --muted-strong: #36526e;
  --line: rgba(123, 203, 255, 0.18);
  --line-strong: rgba(123, 203, 255, 0.4);
  --primary: #67b8ff;
  --primary-strong: #114b7c;
  --accent: #51d2ff;
  --accent-strong: #17618f;
  --warning: #2f8dd1;
  --danger: #ff8b87;
  --shadow: 0 18px 40px rgba(18, 48, 79, 0.18);
  --font-ui: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", "Aptos Mono", "SFMono-Regular", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(146, 219, 255, 0.3), transparent 24%),
    radial-gradient(circle at 18% 20%, rgba(81, 210, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #8fb6d7 0%, #77a5cd 22%, #6696c1 68%, #5d8ab6 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(81, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(120, 172, 214, 0.08));
  background-size: 48px 48px, 48px 48px, 100% 100%;
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(185, 240, 255, 0.09), transparent 20%),
    radial-gradient(circle at 85% 20%, rgba(81, 210, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(103, 184, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(58, 108, 153, 0.14));
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.mobile-shell {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 22px 18px 42px;
}

.mobile-shell.wide {
  width: min(100%, 1380px);
}

.mini {
  font-size: 0.86rem;
}

.auth-page,
.workflow-page {
  min-height: 100vh;
}

.app-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(129, 215, 255, 0.16), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(81, 210, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #85afd1, #73a0c8 24%, #618fb9 100%);
}

.hero-card,
.card,
.stat-card,
.table-wrap,
.camera-stage,
.route-list a,
.scan-result,
[id$="-message"] {
  position: relative;
  overflow: hidden;
}

.hero-card,
.card {
  background:
    linear-gradient(180deg, rgba(226, 238, 248, 0.96), rgba(210, 227, 241, 0.98));
  border: 1px solid rgba(90, 158, 211, 0.38);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card::after,
.card::after,
.portal-frame::after,
.stat-card::after,
.table-wrap::after,
.camera-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.hero-card {
  padding: 28px;
  margin-bottom: 18px;
}

.hero-card .eyebrow {
  color: var(--warning);
}

.hero-copy {
  max-width: 760px;
  color: var(--muted-strong);
}

.hero-card-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: end;
}

.landing-hero-card {
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.landing-hero-title h1 {
  font-size: clamp(1.58rem, 2.55vw, 2.18rem);
  line-height: 1.08;
  margin-bottom: 0;
  text-align: left;
}

.landing-hero-title .hero-highlight {
  display: block;
  margin-top: 14px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(47, 141, 209, 0.34);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(81, 210, 255, 0.18), rgba(103, 184, 255, 0.08));
  color: var(--primary-strong);
  font-size: 0.72em;
  line-height: 1.18;
  letter-spacing: 0.11em;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: justify;
}

.landing-hero-copy {
  display: grid;
  gap: 14px;
}

.landing-hero-copy .hero-copy {
  max-width: none;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
}

.landing-cycle-card {
  padding: 18px;
  overflow: hidden;
}

.landing-cycle-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.landing-top-menu {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(90, 158, 211, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(224, 239, 250, 0.94), rgba(202, 226, 244, 0.96));
  box-shadow: 0 12px 28px rgba(18, 48, 79, 0.16);
  backdrop-filter: blur(12px);
}

.landing-menu-logo {
  width: min(150px, 34vw);
  max-height: 54px;
}


.landing-top-primary,
.landing-top-secondary,
.landing-top-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-top-secondary,
.landing-top-single {
  margin-left: auto;
}

.landing-top-menu a,
.landing-top-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 132px;
  padding: 0 14px;
  border: 1px solid rgba(103, 184, 255, 0.34);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(30, 59, 87, 0.96), rgba(20, 42, 63, 0.98));
  color: #d9eeff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.landing-top-menu a:hover,
.landing-top-menu a:focus-visible,
.landing-top-menu button:hover,
.landing-top-menu button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(103, 184, 255, 0.18) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(43, 82, 118, 1), rgba(25, 53, 78, 1));
}

.gallery-top-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(109, 221, 255, 0.72) !important;
  color: #eefaff !important;
  background:
    linear-gradient(90deg, rgba(63, 183, 255, 0.36), rgba(69, 236, 185, 0.26)),
    linear-gradient(180deg, rgba(19, 78, 113, 1), rgba(12, 47, 74, 1)) !important;
  box-shadow: 0 0 0 1px rgba(109, 221, 255, 0.12), 0 10px 24px rgba(20, 113, 160, 0.28);
}

.landing-top-menu .test-access-nav-button,
.test-access-link {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 209, 102, 0.9) !important;
  color: #201300 !important;
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.96), rgba(76, 214, 160, 0.88)),
    linear-gradient(180deg, #ffd166, #f3aa2d) !important;
  box-shadow: 0 10px 22px rgba(158, 105, 0, 0.22);
}

.landing-top-menu .test-access-nav-button::after,
.test-access-link::after {
  content: "LIVE TEST";
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 5px;
  border-bottom-left-radius: 4px;
  background: #122c44;
  color: #f7fbff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.landing-top-menu .test-access-nav-button:hover,
.landing-top-menu .test-access-nav-button:focus-visible,
.test-access-link:hover,
.test-access-link:focus-visible {
  border-color: rgba(255, 244, 184, 1) !important;
  background:
    linear-gradient(90deg, rgba(255, 238, 156, 1), rgba(84, 228, 174, 0.95)),
    linear-gradient(180deg, #ffd978, #f6b23a) !important;
}

.gallery-top-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.28) 45%, transparent 55% 100%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.gallery-top-button:hover::after,
.gallery-top-button:focus-visible::after {
  transform: translateX(130%);
}


.kss-info-top-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 183, 76, 0.78) !important;
  color: #fff8e8 !important;
  background:
    linear-gradient(90deg, rgba(255, 164, 45, 0.42), rgba(54, 212, 190, 0.24)),
    linear-gradient(180deg, rgba(122, 65, 12, 1), rgba(64, 44, 23, 1)) !important;
  box-shadow: 0 0 0 1px rgba(255, 208, 117, 0.18), 0 10px 24px rgba(155, 91, 21, 0.28);
}

.kss-info-top-button::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #54f0ca;
  box-shadow: 0 0 14px rgba(84, 240, 202, 0.72);
}

.kss-info-modal-open {
  overflow: hidden;
}

.kss-info-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.kss-info-modal.hidden {
  display: none;
}

.kss-info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 31, 0.78);
  backdrop-filter: blur(9px);
}

.kss-info-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(88vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(125, 208, 255, 0.32);
  border-radius: 8px;
  background: #eef7ff;
  box-shadow: 0 28px 78px rgba(2, 15, 28, 0.46);
}

.kss-info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 168, 44, 0.30), rgba(74, 230, 201, 0.18)),
    linear-gradient(135deg, #102d42, #184d6f 52%, #273b2f);
}

.kss-info-modal-header h2 {
  margin: 3px 0 5px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.kss-info-modal-header p {
  margin: 0;
  color: rgba(238, 250, 255, 0.82);
  font-weight: 700;
}

.kss-info-modal-header .eyebrow {
  color: #ffd98b;
}

.kss-info-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  color: #16364e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(220, 238, 249, 0.78)),
    #eef7ff;
}

.kss-info-hero,
.kss-info-section {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(93, 146, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(22, 62, 94, 0.10);
}

.kss-info-hero {
  border-color: rgba(255, 174, 54, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 247, 226, 0.92), rgba(232, 249, 245, 0.86)),
    #ffffff;
}

.kss-info-hero h3,
.kss-info-section h3,
.kss-info-section h4 {
  margin-top: 0;
  color: #102d42;
}

.kss-info-hero h3 {
  max-width: 820px;
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  line-height: 1.18;
}

.kss-info-section p,
.kss-info-hero p,
.kss-info-section li {
  color: #254d67;
  line-height: 1.58;
}

.kss-info-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kss-info-section-heading span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #123a58;
  color: #ffd98b;
  font-family: var(--font-mono);
  font-weight: 900;
}

.kss-info-section-heading h3 {
  margin: 0;
}

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

.kss-platform-grid article,
.kss-step-list article,
.kss-feature-grid article,
.kss-info-callout {
  border: 1px solid rgba(93, 146, 184, 0.24);
  border-radius: 8px;
  background: rgba(247, 252, 255, 0.86);
}

.kss-platform-grid article,
.kss-step-list article {
  padding: 14px;
}

.kss-platform-grid strong,
.kss-feature-grid strong {
  display: block;
  color: #11324a;
  font-size: 0.98rem;
}

.kss-platform-grid h4,
.kss-step-list h4,
.kss-info-callout h4 {
  margin: 12px 0 6px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.kss-info-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.kss-info-section li::marker {
  color: #d9831c;
}

.kss-info-callout {
  margin-bottom: 12px;
  padding: 14px;
  border-color: rgba(255, 174, 54, 0.42);
  background: #fff8ea;
}

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

.kss-step-list article > span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e0f5ff;
  color: #0d5a83;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kss-pill-grid,
.kss-columns-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.kss-pill-grid span,
.kss-columns-list li {
  list-style: none;
  padding: 10px 12px;
  border: 1px solid rgba(93, 146, 184, 0.24);
  border-radius: 7px;
  background: #f7fcff;
  color: #173a55;
  font-weight: 800;
}

.kss-columns-list {
  padding-left: 0 !important;
}

.kss-feature-grid article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-left: 4px solid #34c5a6;
}

.kss-feature-grid span {
  color: #42657b;
  line-height: 1.42;
}

.kss-info-final {
  margin-bottom: 0;
  border-color: rgba(52, 197, 166, 0.38);
}

.gallery-modal-open,
.manual-modal-open {
  overflow: hidden;
}

.gallery-modal,
.manual-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.gallery-modal.hidden,
.manual-modal.hidden {
  display: none;
}

.gallery-modal-backdrop,
.manual-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 32, 0.72);
  backdrop-filter: blur(8px);
}

.gallery-modal-panel,
.manual-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  height: min(86vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(123, 203, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #eef7ff, #dcecf7);
  box-shadow: 0 24px 70px rgba(4, 20, 35, 0.38);
}

.gallery-modal-panel {
  width: min(1280px, 96vw);
  height: calc(100dvh - 48px);
  max-height: 900px;
  overflow: hidden;
}

.gallery-modal-header,
.manual-modal-header,
.manual-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-modal-header h2,
.manual-modal-header h2 {
  margin: 0 0 4px;
  color: #102d42;
}

.gallery-stage {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}

.gallery-feature {
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  display: grid;
}

.gallery-feature-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: auto;
  border: 1px solid rgba(93, 146, 184, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(207, 229, 244, 0.68)),
    #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.gallery-zoom-controls {
  position: sticky;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 10px;
  border: 1px solid rgba(93, 146, 184, 0.34);
  border-radius: 6px;
  background: rgba(238, 247, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 58, 90, 0.18);
  backdrop-filter: blur(8px);
}

.gallery-zoom-controls button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 184, 255, 0.34);
  border-radius: 4px;
  background: #ffffff;
  color: #0f4d76;
  font-weight: 800;
}

.gallery-zoom-controls span {
  min-width: 48px;
  color: #173a55;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.gallery-feature-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.66);
}

.gallery-grid {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  padding-right: 6px;
}

.gallery-thumb {
  min-height: 88px;
  display: block;
  padding: 8px;
  border: 1px solid rgba(93, 146, 184, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  color: #102d42;
  text-align: left;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: rgba(55, 160, 235, 0.75);
  background: rgba(218, 241, 255, 0.92);
  box-shadow: 0 10px 24px rgba(20, 83, 126, 0.16);
}

.gallery-thumb-image {
  position: relative;
  display: block;
  width: 100%;
  height: 72px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #e7f2fa;
  border: 1px solid rgba(93, 146, 184, 0.22);
}

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

.gallery-thumb-missing,
.gallery-image-fallback {
  display: none;
}

.gallery-thumb.is-missing .gallery-thumb-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #2e5b7b;
  font-size: 0.7rem;
  font-weight: 800;
  background: repeating-linear-gradient(135deg, rgba(103, 184, 255, 0.10) 0 8px, rgba(255, 255, 255, 0.44) 8px 16px);
}

.gallery-thumb.is-missing img {
  display: none;
}

.gallery-image-fallback {
  position: absolute;
  inset: 0;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #173a55;
  text-align: center;
  background: repeating-linear-gradient(135deg, rgba(103, 184, 255, 0.10) 0 12px, rgba(255, 255, 255, 0.50) 12px 24px);
}

.gallery-image-fallback:not(.hidden) {
  display: grid;
}

.gallery-image-fallback code {
  font-size: 0.78rem;
}

.manual-frame {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(93, 146, 184, 0.34);
  border-radius: 6px;
  background: #ffffff;
}

.manual-modal-actions {
  justify-content: flex-end;
}

.landing-hero-card .hero-actions {
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 0;
  padding-top: 6px;
}

.landing-hero-card .hero-actions .link-button {
  min-width: 0;
  min-height: 42px;
  font-size: 0.8rem;
}

.faq-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: end;
}

.faq-hero-card h1 {
  margin: 8px 0 10px;
  color: #0f2940;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.faq-search-panel {
  display: grid;
  gap: 8px;
}

.faq-search-panel label {
  color: #1b3c56;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.faq-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(103, 184, 255, 0.34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #16425f;
  font-size: 0.74rem;
}

.faq-filter:hover,
.faq-filter.is-active {
  background: #183b59;
  color: #dff2ff;
  border-color: rgba(103, 184, 255, 0.6);
}

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

.faq-item {
  gap: 8px;
  min-height: 0;
}

.faq-category {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid rgba(103, 184, 255, 0.32);
  border-radius: 4px;
  background: rgba(103, 184, 255, 0.10);
  color: #155378;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-item details {
  display: grid;
  gap: 8px;
}

.faq-item summary {
  cursor: pointer;
  color: #102d42;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.faq-empty {
  grid-column: 1 / -1;
  gap: 6px;
}

.hero-badge-grid {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-meta span,
.system-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(81, 210, 255, 0.1);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(103, 184, 255, 0.14) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 1));
  color: var(--text);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.primary-link {
  background: linear-gradient(180deg, rgba(103, 184, 255, 0.22), rgba(103, 184, 255, 0.12));
  color: #124d82;
  border: 1px solid rgba(103, 184, 255, 0.36);
}

.secondary-link {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(228, 243, 255, 0.96));
  color: #17618f;
  border: 1px solid var(--line-strong);
}

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

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.info-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 255, 0.96));
  border: 1px solid rgba(116, 185, 239, 0.24);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.info-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--warning), var(--accent));
}

.info-tile h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.info-tile p {
  margin: 0;
  color: var(--muted);
}

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

.route-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(81, 210, 255, 0.1) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 255, 0.98));
  color: var(--text);
  text-decoration: none;
}

.route-list span {
  color: var(--muted);
  text-align: right;
}

.compact-links {
  margin-top: 0;
}

.card {
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.top-shell {
  gap: 0;
  min-height: 0;
}

.portal-frame {
  position: sticky;
  top: 0;
  z-index: 2100;
  display: grid;
  gap: 12px;
  padding: 14px 20px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(224, 239, 250, 0.92), rgba(196, 222, 242, 0.94));
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.portal-brand-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.system-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.auth-logo-link {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.portal-logo {
  width: 42px;
  height: 42px;
}

.auth-logo,
.landing-logo {
  width: min(180px, 48vw);
  max-height: 82px;
  margin: 0 auto 14px;
}

.page-logo {
  width: 54px;
  height: 54px;
}

.portal-brand-copy {
  display: grid;
  gap: 2px;
}

.portal-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.user-session {
  display: grid;
  gap: 4px;
  max-width: 220px;
  min-width: 0;
  justify-items: end;
}

.user-session .pill {
  max-width: 100%;
  min-height: 0;
  padding: 6px 10px;
  line-height: 1.2;
  white-space: normal;
  user-select: all;
  text-align: right;
  justify-content: flex-end;
}

.session-context {
  max-width: 100%;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.sidebar-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.main-menu,
.submenu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-menu {
  justify-content: center;
  align-items: center;
}

.main-menu-item,
.submenu-item {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 59, 87, 0.96), rgba(20, 42, 63, 0.98));
  color: #d9eeff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.main-menu-item {
  min-width: 132px;
  justify-content: center;
}

.submenu-item {
  min-width: 118px;
  font-size: 0.74rem;
}

.main-menu-item:hover,
.submenu-item:hover,
.route-list a:hover,
.link-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.main-menu-item.is-active,
.submenu-item.is-active {
  background:
    linear-gradient(90deg, rgba(103, 184, 255, 0.18) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(43, 82, 118, 1), rgba(25, 53, 78, 1));
  color: #ffffff;
  border-color: rgba(103, 184, 255, 0.38);
}

.sidebar-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-chip {
  background: rgba(81, 210, 255, 0.1);
  color: var(--accent-strong);
}

.full-width {
  width: 100%;
}

.app-main {
  padding: 14px 20px 20px;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2200;
  overflow: visible;
}

.menu-group {
  position: relative;
  z-index: 2200;
  overflow: visible;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  display: none;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid rgba(133, 197, 255, 0.26);
  background: linear-gradient(180deg, rgba(16, 31, 47, 0.98), rgba(10, 22, 35, 0.99));
  box-shadow: 0 22px 44px rgba(7, 22, 37, 0.34);
  z-index: 2600;
}

.menu-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.menu-group.is-open .menu-dropdown {
  display: grid;
}

.menu-dropdown .submenu-item {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #deefff;
  box-shadow: none;
}

.menu-dropdown .submenu-item::after {
  content: "›";
  font-size: 0.9rem;
  color: rgba(196, 229, 255, 0.68);
}

.menu-dropdown .submenu-item:hover,
.menu-dropdown .submenu-item.is-active {
  background: linear-gradient(180deg, rgba(61, 155, 255, 0.26), rgba(23, 88, 145, 0.36));
  border-color: rgba(116, 185, 239, 0.24);
  color: #ffffff;
}

.menu-helper {
  margin: 0;
  padding: 10px 2px 0;
  color: #224967;
}

.control-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgba(81, 210, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--warning), var(--primary));
  box-shadow: 0 0 0 4px rgba(127, 220, 255, 0.1);
}

.ghost-link {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.panel-section {
  display: none;
}

.panel-section.is-visible {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  align-items: stretch;
  overflow: visible;
}

.transactions-content-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.9fr);
}

.transactions-table-card,
.transactions-evidence-card {
  min-width: 0;
}

.transactions-table-card .table-wrap {
  min-width: 0;
}

.transactions-table-card table {
  font-size: 0.76rem;
}

.transactions-table-card th,
.transactions-table-card td {
  padding: 8px 9px;
}

.transactions-table-card th {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.transactions-evidence-card {
  width: 100%;
  max-width: none;
}

.transaction-report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.transaction-report-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.evidence-report-shell {
  min-height: 420px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(235, 244, 251, 0.98)),
    radial-gradient(circle at top right, rgba(127, 220, 255, 0.16), transparent 32%);
  padding: 16px;
}

.evidence-empty-state {
  min-height: 380px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.evidence-empty-state strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.evidence-report {
  display: grid;
  gap: 16px;
}

.evidence-tabs-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.evidence-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

.evidence-tab {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(90, 158, 211, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
}

.evidence-tab.is-active {
  background: linear-gradient(180deg, rgba(210, 232, 248, 0.98), rgba(192, 220, 241, 0.98));
  color: #125787;
  border-color: rgba(90, 158, 211, 0.32);
}

.evidence-tab-panel {
  min-width: 0;
}

.evidence-tab-panel,
.evidence-tab-panel .evidence-section-header h5,
.evidence-tab-panel .evidence-section-count,
.evidence-tab-panel .evidence-detail-label,
.evidence-tab-panel .evidence-detail-value,
.evidence-tab-panel .evidence-table th,
.evidence-tab-panel .evidence-table td,
.evidence-tab-panel .evidence-note,
.evidence-tab-panel .severity-pill {
  font-size: 0.72rem;
}

.evidence-tab-panel .evidence-section-header h5 {
  font-family: var(--font-display);
}

.evidence-tab-panel .evidence-section-count,
.evidence-tab-panel .evidence-detail-label,
.evidence-tab-panel .evidence-table th,
.evidence-tab-panel .severity-pill {
  letter-spacing: 0.05em;
}

.evidence-report-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(225, 239, 250, 0.98), rgba(208, 228, 244, 0.98));
  border: 1px solid rgba(90, 158, 211, 0.22);
}

.evidence-report-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.evidence-report-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.evidence-report-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.evidence-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 87, 135, 0.12);
  color: #125787;
  border: 1px solid rgba(90, 158, 211, 0.24);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.evidence-summary-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 158, 211, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.evidence-summary-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.evidence-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-display);
}

.evidence-section {
  border: 1px solid rgba(90, 158, 211, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.evidence-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(90, 158, 211, 0.16);
  background: linear-gradient(180deg, rgba(240, 248, 253, 0.98), rgba(229, 241, 249, 0.98));
}

.evidence-section-header h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.evidence-section-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.transaction-overview-section .evidence-detail-grid {
  max-height: 252px;
  overflow-y: auto;
}

.transaction-overview-section {
  overflow: hidden;
}

.transaction-overview-section .evidence-detail-row {
  grid-template-columns: minmax(110px, 142px) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
}

.transaction-overview-section .evidence-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.transaction-overview-section .evidence-detail-value {
  font-size: 0.72rem;
  line-height: 1.3;
}

.transaction-overview-section .evidence-section-header h5 {
  font-size: 0.72rem;
}

.transaction-overview-section .evidence-section-count {
  font-size: 0.72rem;
}

.evidence-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(123, 203, 255, 0.12);
}

.evidence-detail-row:nth-child(odd) {
  background: rgba(246, 251, 255, 0.78);
}

.evidence-detail-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evidence-detail-value {
  color: var(--text);
  word-break: break-word;
  font-size: 0.72rem;
  line-height: 1.3;
}

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

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

.evidence-table th,
.evidence-table td {
  padding: 9px 11px;
  font-size: 0.72rem;
}

.evidence-table th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

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

.evidence-table .severity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.severity-pill.severity-high {
  color: #8c1d18;
  background: rgba(232, 78, 61, 0.12);
  border-color: rgba(232, 78, 61, 0.22);
}

.severity-pill.severity-medium {
  color: #8a5a08;
  background: rgba(238, 171, 60, 0.14);
  border-color: rgba(238, 171, 60, 0.22);
}

.severity-pill.severity-low {
  color: #176246;
  background: rgba(48, 177, 120, 0.12);
  border-color: rgba(48, 177, 120, 0.22);
}

.evidence-link {
  color: #125787;
  text-decoration: none;
  font-weight: 600;
}

.evidence-link:hover {
  text-decoration: underline;
}

.evidence-link-button {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.evidence-image-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.evidence-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.evidence-note {
  padding: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}

.company-dashboard {
  display: grid;
  gap: 10px;
}

.company-dashboard-bar {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.company-dashboard-bar > div {
  min-width: 0;
}

.company-dashboard-bar h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-dashboard-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.company-dashboard-filters label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(128px, 1fr);
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(90, 158, 211, 0.24);
}

.company-dashboard-filters label:first-child {
  padding-left: 0;
  border-left: 0;
}

.company-dashboard-filters span {
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-dashboard-filters select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 30px 8px 10px;
}

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

.company-kpi,
.company-panel {
  border: 1px solid rgba(90, 158, 211, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(228, 240, 250, 0.94));
  box-shadow: 0 10px 24px rgba(23, 55, 88, 0.08);
}

.company-kpi {
  min-height: 82px;
  padding: 12px;
  display: grid;
  align-content: space-between;
}

.company-kpi span,
.company-kpi em,
.company-panel-heading span,
.company-timeline-time {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.company-kpi strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  line-height: 1;
  overflow-wrap: anywhere;
  user-select: all;
  user-select: all;
}

.company-dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  grid-auto-rows: minmax(162px, auto);
  gap: 10px;
}

.company-panel {
  min-width: 0;
  padding: 12px;
  overflow: hidden;
}

.company-panel-wide {
  grid-column: span 2;
}

.company-panel-timeline {
  grid-column: span 2;
}

.company-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.company-panel-heading h4 {
  margin: 0;
  font-size: 0.86rem;
}

.company-chart {
  min-height: 112px;
}

.company-chart-tall {
  min-height: 128px;
}

.company-column-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(10px, 1fr));
  gap: 6px;
  height: 138px;
  align-items: end;
}

.company-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 5px;
}

.company-column span {
  display: block;
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #37a2ff, #74d4b7);
}

.company-column small {
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.company-bar-row {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.company-bar-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}

.company-bar-copy strong,
.company-bar-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(68, 137, 184, 0.14);
  overflow: hidden;
}

.company-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8dd1, #55c4ad);
}

.company-bar-fill.fill-1 { background: linear-gradient(90deg, #5b7cfa, #72c7ff); }
.company-bar-fill.fill-2 { background: linear-gradient(90deg, #f0a444, #ffd166); }
.company-bar-fill.fill-3 { background: linear-gradient(90deg, #d95d7b, #ff9f9f); }
.company-bar-fill.fill-4 { background: linear-gradient(90deg, #8c6be8, #bba7ff); }
.company-bar-fill.fill-5 { background: linear-gradient(90deg, #258b7b, #7bdcb5); }

.company-timeline {
  display: grid;
  gap: 7px;
  max-height: 324px;
  overflow: auto;
  padding-right: 4px;
}

.company-timeline-item {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid rgba(90, 158, 211, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
}

.company-timeline-item strong,
.company-timeline-item span,
.company-timeline-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-timeline-item em {
  color: var(--muted-strong);
  font-size: 0.7rem;
}

.workspace-hero,
.workflow-hero {
  min-height: 0;
}

.workspace-hero h2:last-child,
.workflow-hero h2:last-child,
.workspace-hero h3:last-child,
.workflow-hero h3:last-child {
  margin-bottom: 0;
}

.stat-card {
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(232, 242, 250, 0.97), rgba(216, 231, 244, 0.99));
  border: 1px solid rgba(90, 158, 211, 0.32);
  box-shadow: var(--shadow);
  min-height: 118px;
}

.stat-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.module-form {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  padding-bottom: 4px;
}

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

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

.station-coordinate-row button {
  white-space: nowrap;
}

.inline-field-row .field-label-stack,
.stack .field-label-stack,
.step-grid .field-label-stack,
.scanner-grid .field-label-stack,
.capture-actions .field-label-stack,
.auth-card .field-label-stack,
.agreement-acknowledgement .field-label-stack {
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}

.module-form .checkbox-inline-field {
  margin: 2px 0 4px;
}

textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid rgba(109, 172, 221, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 1));
  color: var(--text);
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.table-wrap {
  overflow: auto;
  min-height: 0;
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.99));
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(123, 203, 255, 0.16);
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.98), rgba(231, 243, 252, 0.96));
}

.table-filter-input {
  width: min(100%, 360px);
  min-height: 40px;
}

.table-filter-meta {
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(123, 203, 255, 0.14);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: sticky;
  top: 0;
  background: rgba(210, 232, 248, 0.98);
  z-index: 1;
}

tr:hover td {
  background: rgba(81, 210, 255, 0.045);
}

.table-row-selectable {
  cursor: pointer;
}

.table-row-selectable:hover td {
  background: rgba(81, 210, 255, 0.08);
}

.table-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
  background: rgba(103, 184, 255, 0.12);
  color: #135787;
  border: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(123, 203, 255, 0.14);
}

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

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.report-browser-card {
  gap: 16px;
}

.report-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.report-side-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: hidden;
  gap: 12px;
}

.report-side-menu {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

.report-side-group {
  display: grid;
  gap: 7px;
}

.report-side-group h5 {
  margin: 0;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(103, 184, 255, 0.14);
  color: #16425f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-side-option {
  min-height: 34px;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(103, 184, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  color: #17324d;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.report-side-option:hover,
.report-side-option.is-active {
  border-color: rgba(56, 154, 230, 0.62);
  background: linear-gradient(180deg, rgba(218, 241, 255, 0.95), rgba(198, 229, 250, 0.92));
  color: #0d4e7a;
}

.report-side-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.7);
}

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

.report-browser-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 0.7fr)) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.report-browser-controls label {
  display: grid;
  gap: 6px;
}

.report-browser-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.report-summary-card {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.report-summary-card span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
}

.report-summary-card strong {
  color: #102d42;
  font-size: 0.95rem;
  line-height: 1.35;
}

.report-summary-error strong {
  color: #9f2f24;
}

.report-browser-table-wrap {
  max-height: 58vh;
}

#report-browser-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.report-sort-button {
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.report-sort-button:hover,
.report-sort-button.is-active {
  color: #0f5d92;
}

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

.signal-card {
  min-height: 0;
  justify-content: flex-start;
}

.signal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(127, 220, 255, 0.36);
  background: rgba(127, 220, 255, 0.12);
  color: #1971ab;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.evidence-box {
  min-height: 240px;
}

.qr-preview-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.qr-preview-box img {
  width: min(240px, 100%);
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

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

.form-static-actions {
  margin-top: 10px;
  padding-top: 2px;
}

.auth-card {
  margin-top: 10vh;
}

.auth-stage {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.portal-login-stage {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.auth-showcase {
  min-height: 100%;
}

.auth-panel {
  justify-content: center;
}

.attendant-auth-stage {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.attendant-auth-stage .auth-card {
  margin-top: 16vh;
}

.attendant-workflow-shell {
  width: min(100%, 540px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.workflow-page.workflow-active .attendant-workflow-shell {
  justify-content: flex-start;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.attendant-workflow-shell .page-header {
  margin-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
}

h1,
h2 {
  margin: 0 0 10px;
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.attendant-workflow-shell h1 {
  font-size: clamp(1.5rem, 7vw, 2.2rem);
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
}

h3,
h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

p,
label span {
  line-height: 1.45;
}

.field-label-text {
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.attendant-start-card {
  display: grid;
  gap: 12px;
}

.attendant-station-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 243, 252, 0.96));
}

.attendant-station-banner strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

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

.compact-start-grid label span,
.attendant-start-card .muted {
  font-size: 0.76rem;
}

.attendant-start-card select,
.attendant-start-card button {
  min-height: 46px;
}

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

.step-grid,
.scanner-grid,
.capture-actions {
  display: grid;
  gap: 12px;
}

.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.scanner-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
  display: grid;
  gap: 6px;
}

.field-label-stack {
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.compound-inline-field {
  align-items: center;
}

.compound-inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 160px);
  gap: 10px;
  align-items: center;
}

.compound-inline-controls input,
.compound-inline-controls select {
  width: 100%;
}

.multi-select-field {
  align-items: center;
}

.multi-select-shell {
  position: relative;
  display: block;
}

.multi-select-shell select[multiple] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.multi-select-surface {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid rgba(109, 172, 221, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 1));
  color: var(--text);
  border-radius: 4px;
}

.multi-select-shell.is-open .multi-select-surface {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 210, 255, 0.14);
}

.multi-select-shell.is-disabled .multi-select-surface {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(233, 240, 248, 0.96));
  color: #6f8497;
  cursor: not-allowed;
}

.multi-select-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 0 1 auto;
}

.multi-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(102, 159, 208, 0.34);
  background: linear-gradient(180deg, rgba(227, 238, 249, 0.98), rgba(215, 230, 244, 0.98));
  color: #32526f;
  font-size: 0.84rem;
  line-height: 1.2;
}

.multi-select-tag-remove {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #587792;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.multi-select-tag-remove:hover,
.multi-select-tag-remove:focus-visible {
  color: #21435f;
  transform: none;
}

.multi-select-input {
  flex: 1 1 120px;
  min-width: 120px;
  width: auto;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.multi-select-input:focus {
  border: 0;
  box-shadow: none;
}

.multi-select-input::placeholder {
  color: #7b95b1;
}

.multi-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  border: 1px solid rgba(109, 172, 221, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(247, 251, 255, 0.98);
  box-shadow: 0 16px 30px rgba(18, 48, 79, 0.14);
  max-height: 220px;
  overflow-y: auto;
}

.multi-select-shell.is-open .multi-select-menu {
  display: grid;
}

.multi-select-option {
  width: 100%;
  min-height: 0;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(109, 172, 221, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #36526e;
  text-align: left;
  justify-content: flex-start;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.multi-select-option:last-child {
  border-bottom: 0;
}

.multi-select-option:hover,
.multi-select-option:focus-visible {
  background: rgba(227, 238, 249, 0.98);
  transform: none;
}

.multi-select-option:disabled {
  cursor: not-allowed;
  color: #8ca0b2;
  background: rgba(239, 244, 248, 0.94);
}

.multi-select-empty {
  padding: 12px;
  color: #6f8497;
  font-size: 0.88rem;
}

.upload-field-shell {
  display: grid;
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.driver-license-preview-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 16px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.driver-license-preview-box img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
}

.driver-license-upload-button {
  margin-top: 12px;
}

.field-help-stack {
  align-items: start;
}

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

.field-help-content {
  display: grid;
  gap: 8px;
}

.field-info-toggle {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(90, 158, 211, 0.44);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-strong);
}

.field-info-toggle:hover,
.field-info-toggle:focus-visible {
  background: rgba(225, 241, 255, 0.96);
}

.field-info-toggle img {
  width: 14px;
  height: 14px;
  display: block;
}

.field-help-panel {
  padding: 10px 12px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
}

.checkbox-inline-field {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 24px;
  gap: 10px 14px;
  align-items: center;
}

.checkbox-inline-field > span {
  margin: 0;
}

.checkbox-inline-field > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  justify-self: start;
  margin: 0;
}

.checkbox-inline-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.checkbox-inline-compact > input[type="checkbox"] {
  flex: 0 0 auto;
}

.checkbox-inline-compact > .field-label-text {
  font-family: inherit;
  font-size: 0.86rem;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

label > input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(109, 172, 221, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 1));
  color: var(--text);
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 0.9rem;
}

textarea {
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: #7b95b1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 210, 255, 0.14);
}

button {
  border: 1px solid transparent;
  border-radius: 4px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(180deg, rgba(103, 184, 255, 0.28), rgba(103, 184, 255, 0.14));
  color: #114b7c;
  border-color: rgba(103, 184, 255, 0.34);
}

.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 255, 1));
  color: #165d8d;
  border-color: var(--line);
}

.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.98));
  border: 1px solid var(--line);
  color: var(--muted-strong);
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(81, 210, 255, 0.1);
  color: var(--accent-strong);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

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

.registration-form-card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(237, 246, 253, 0.92), rgba(224, 237, 247, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.registration-form-card .module-form {
  padding-right: 0;
}

.registration-admin-note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.registration-form-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  padding-top: 4px;
}

.registration-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.registration-action-row > * {
  flex: 1 1 220px;
}

#company-registration-message,
#omc-registration-message {
  width: 100%;
}

.agreement-acknowledgement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 246, 255, 0.98));
}

.agreement-acknowledgement input[type="checkbox"] {
  margin-top: 4px;
}

.agreement-acknowledgement-copy {
  display: grid;
  gap: 6px;
}

.agreement-trigger {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.agreement-trigger:hover,
.agreement-trigger:focus-visible {
  transform: none;
  color: var(--primary-strong);
}

.modal-open {
  overflow: hidden;
}

.agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.agreement-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 49, 0.52);
  backdrop-filter: blur(5px);
}

.agreement-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: min(88vh, 980px);
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(90, 158, 211, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(228, 239, 248, 0.99));
  box-shadow: 0 24px 60px rgba(18, 48, 79, 0.26);
}

.agreement-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.agreement-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.qr-modal-reason-field {
  flex: 1 1 240px;
  min-width: 220px;
}

.agreement-document {
  padding: 18px 20px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.agreement-document p,
.agreement-document li {
  line-height: 1.65;
}

.agreement-document p {
  margin: 0 0 14px;
}

.agreement-document ol,
.agreement-document ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.agreement-document li + li {
  margin-top: 8px;
}

.agreement-document ul {
  margin-top: 10px;
}

.voucher-qr-modal-panel {
  width: min(100%, 920px);
}

.voucher-qr-modal-content {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.voucher-qr-preview-box,
.voucher-qr-details-card {
  padding: 18px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.voucher-qr-preview-box {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.voucher-qr-preview-box img {
  width: min(100%, 240px);
  height: auto;
}

.voucher-qr-details-grid {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 10px 14px;
}

.voucher-qr-detail-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voucher-qr-detail-value {
  color: var(--text);
  word-break: break-word;
}

.tight {
  margin-bottom: 8px;
}

.form-mode {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgba(81, 210, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[id$="-message"] {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 1));
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: var(--font-mono);
}

.menu-item.hidden,
.card.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(103, 184, 255, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 14, 14, 0.4);
}

.scanner-box video {
  width: 100%;
  border-radius: 8px;
  background: #081010;
  min-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(123, 203, 255, 0.18);
}

#camera-feed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background: #081010;
  object-fit: cover;
  border: 1px solid rgba(123, 203, 255, 0.18);
}

.scanner-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.99));
  position: relative;
}

.camera-stage {
  height: clamp(220px, 54vw, 320px);
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.99));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.camera-stage.proof-collage-ready #camera-feed {
  visibility: hidden;
}

.scanner-box.camera-active,
.camera-stage.camera-active {
  border-color: rgba(47, 141, 209, 0.52);
}

.scan-result {
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 255, 0.98));
  border: 1px solid rgba(123, 203, 255, 0.32);
  color: #17324d;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
  font-family: var(--font-mono);
}

.capture-actions {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 12px;
}

.proof-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 4px;
  position: absolute;
  inset: 8px;
  margin: 0;
  overflow: hidden;
}

.camera-stage:not(.proof-collage-ready) .proof-collage {
  display: none;
}

.proof-collage figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.proof-collage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-sizing: border-box;
}

.proof-collage figcaption {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.hidden {
  display: none !important;
}

.subscription-page {
  color: #18324b;
}

.subscription-shell {
  gap: 18px;
}

.subscription-header,
.subscription-status-band,
.subscription-dpo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.subscription-header h1,
.subscription-message-grid h2,
.subscription-dpo-card h2 {
  margin: 0 0 8px;
}

.subscription-status-band {
  padding: 16px 18px;
  border: 1px solid rgba(69, 153, 216, 0.35);
  border-radius: 8px;
  background: rgba(235, 246, 255, 0.86);
  box-shadow: 0 14px 30px rgba(25, 75, 112, 0.12);
}

.subscription-status-band > div {
  min-width: 160px;
}

.subscription-status-band strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.subscription-period-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(68, 145, 202, 0.34);
  border-radius: 8px;
  background: rgba(247, 252, 255, 0.94);
}

.subscription-period-band h2 {
  margin: 4px 0 8px;
}

.subscription-period-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(560px, 100%);
}

.subscription-period-options label {
  cursor: pointer;
}

.subscription-period-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subscription-period-options span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(98, 165, 214, 0.36);
  border-radius: 6px;
  background: #fff;
  color: #174061;
  font-weight: 800;
}

.subscription-period-options input:checked + span {
  border-color: #2472c5;
  background: #2472c5;
  color: #fff;
  box-shadow: 0 10px 18px rgba(36, 114, 197, 0.22);
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(270px, 330px));
  justify-content: center;
  gap: 22px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.subscription-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(79, 149, 199, 0.36);
  border-radius: 6px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 16px 28px rgba(18, 60, 92, 0.12);
}

.subscription-plan-card.is-popular {
  border-color: rgba(31, 112, 198, 0.78);
  transform: translateY(-10px);
}

.subscription-popular {
  padding: 9px;
  background: #2472c5;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
}

.subscription-plan-head {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 26px 18px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(233, 244, 253, 0.98), rgba(249, 252, 255, 0.98));
}

.subscription-plan-card.is-popular .subscription-plan-head,
.subscription-plan-card:last-child .subscription-plan-head {
  background: #2a74c7;
  color: #fff;
}

.subscription-plan-head h2 {
  margin: 0;
  color: inherit;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subscription-plan-head strong {
  font-size: 22px;
}

.subscription-plan-head span {
  min-height: 42px;
  color: inherit;
  opacity: 0.86;
}

.subscription-plan-capacity {
  display: grid;
  gap: 7px;
  padding: 24px 16px 18px;
  text-align: center;
  border-bottom: 1px dashed rgba(96, 145, 181, 0.35);
}

.subscription-plan-capacity strong {
  font-size: 24px;
}

.subscription-plan-capacity span {
  color: #637b91;
  font-size: 12px;
  text-transform: uppercase;
}

.subscription-plan-total {
  display: grid;
  gap: 6px;
  margin: 0 18px;
  padding: 13px;
  border: 1px solid rgba(93, 158, 207, 0.3);
  border-radius: 6px;
  background: rgba(236, 247, 255, 0.72);
  text-align: center;
}

.subscription-plan-total strong {
  font-size: 18px;
}

.subscription-plan-total span {
  color: #637b91;
  font-size: 12px;
  text-transform: uppercase;
}

.subscription-plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 22px 24px;
  list-style: none;
}

.subscription-plan-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.35;
}

.subscription-plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2472c5;
  font-weight: 800;
}

.subscription-select-button {
  margin: auto 18px 20px;
  min-height: 44px;
  border: 1px solid #9dcef4;
  border-radius: 5px;
  background: #0f4d80;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.subscription-message-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 16px;
}

.subscription-warning-card,
.subscription-email-card,
.subscription-dpo-card {
  padding: 22px;
}

.subscription-email-card pre {
  max-height: 420px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid rgba(116, 170, 211, 0.38);
  border-radius: 6px;
  background: #f8fcff;
  white-space: pre-wrap;
  color: #18324b;
  font: 13px/1.5 Arial, sans-serif;
}

.subscription-dpo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: min(620px, 100%);
}

.subscription-dpo-steps span {
  padding: 12px;
  border: 1px solid rgba(95, 158, 205, 0.34);
  border-radius: 6px;
  background: rgba(245, 251, 255, 0.88);
  text-align: center;
  font-weight: 700;
}

.error-text {
  color: #ffe9e7;
  min-height: 20px;
  background: linear-gradient(180deg, rgba(98, 20, 27, 0.42), rgba(62, 10, 18, 0.54));
  border-color: rgba(255, 139, 135, 0.34);
}

.chart-shell {
  min-height: 240px;
  display: grid;
  align-content: center;
}

.chart-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}

.donut-chart {
  width: 140px;
  height: 140px;
  justify-self: center;
}

.donut-total-label {
  font-size: 10px;
  fill: #6e87a2;
  text-transform: uppercase;
}

.donut-total-value {
  font-size: 18px;
  font-weight: 700;
  fill: #17324d;
}

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

.chart-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
}

.chart-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.bar-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.bar-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(123, 203, 255, 0.18);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ad9ff, #3d9bff);
}

.dashboard-spotlight {
  display: grid;
  gap: 10px;
}

.spotlight-item {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(116, 185, 239, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
}

.test-access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.test-mobile-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  border-radius: 6px;
  background: rgba(255, 246, 204, 0.72);
  color: #5d3a00;
  font-weight: 700;
}

.test-access-grid {
  grid-template-columns: minmax(0, 1fr);
}

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

.test-credential {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 246, 255, 0.96));
}

.test-credential-attendant {
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
}

.test-credential code {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 4px;
  border: 1px solid rgba(23, 97, 143, 0.18);
  background: rgba(18, 44, 68, 0.08);
  color: #12324d;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: all;
}

.test-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-pill-grid span {
  padding: 7px 9px;
  border-radius: 4px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.test-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.test-qr-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 260px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid rgba(90, 158, 211, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 255, 0.98));
  text-align: center;
}

.test-qr-card img {
  width: min(148px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(90, 158, 211, 0.24);
  background: #ffffff;
}

.test-qr-card span {
  color: var(--muted);
}

@media (max-width: 640px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .workflow-page,
  .auth-page,
  .mobile-shell,
  .app-shell,
  .app-main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-shell {
    padding: 12px 12px 28px;
  }

  .attendant-workflow-shell {
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .workflow-page.workflow-active .attendant-workflow-shell {
    justify-content: flex-start;
  }

  .card,
  .hero-card {
    padding: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-main {
    padding: 14px;
    height: auto;
    overflow: visible;
  }

  .module-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-brand-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .portal-brand,
  .portal-head-actions,
  .main-menu {
    justify-self: stretch;
  }

  .main-menu {
    justify-content: flex-start;
  }

  .content-grid,
  .hero-card-split,
  .landing-hero-grid,
  .company-registration-form-grid,
  .registration-grid,
  .auth-stage,
  .signal-grid,
  .dashboard-visual-grid,
  .company-dashboard-grid,
  .faq-hero-card,
  .faq-list,
  .chart-row {
    grid-template-columns: 1fr;
  }

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

  .test-credential,
  .test-credential-attendant {
    grid-template-columns: 1fr;
  }

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

  .company-dashboard-bar {
    display: grid;
  }

  .company-dashboard-filters {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .company-dashboard-filters label {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-left: 0;
    border-left: 0;
  }

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

  .company-panel-wide,
  .company-panel-timeline {
    grid-column: auto;
  }

  .main-menu {
    justify-content: flex-start;
  }

  .menu-dropdown {
    position: static;
    margin-top: 8px;
    min-width: 0;
  }

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

  .landing-top-menu {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .landing-menu-logo {
    justify-self: start;
  }

  .landing-top-primary,
  .landing-top-secondary,
  .landing-top-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-top-secondary,
  .landing-top-single {
    margin-left: 0;
  }

  .landing-top-menu a,
  .landing-top-menu button {
    width: 100%;
    min-width: 0;
  }


  .gallery-modal,
  .manual-modal {
    padding: 8px;
  }

  .gallery-modal-panel,
  .manual-modal-panel {
    width: 100%;
    height: calc(100dvh - 16px);
    max-height: none;
  }

  .gallery-stage {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    height: auto;
    padding-right: 0;
  }

  .gallery-feature {
    height: min(58vh, 520px);
    min-height: 300px;
  }

  .gallery-modal-header,
  .manual-modal-header,
  .manual-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agreement-modal {
    padding: 12px;
  }

  .agreement-modal-header,
  .agreement-modal-actions {
    display: grid;
  }

  .voucher-qr-modal-content,
  .voucher-qr-details-grid {
    grid-template-columns: 1fr;
  }

  .transaction-report-header,
  .transaction-report-controls,
  .evidence-report-topline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evidence-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evidence-summary-grid,
  .evidence-detail-grid {
    grid-template-columns: 1fr;
  }

  .evidence-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .field-label-stack {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .compound-inline-controls {
    grid-template-columns: 1fr;
  }

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

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

  .report-browser-controls,
  .report-workspace,
  .report-browser-summary {
    grid-template-columns: 1fr;
  }

  .report-side-panel {
    position: static;
    max-height: none;
  }

  .report-export-actions {
    width: 100%;
  }

  .report-export-actions button {
    flex: 1 1 90px;
  }

  .route-list a {
    flex-direction: column;
  }

  .route-list span {
    text-align: left;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-header,
  .subscription-status-band,
  .subscription-period-band,
  .subscription-dpo-card {
    display: grid;
  }

  .subscription-plan-grid,
  .subscription-period-options,
  .subscription-message-grid,
  .subscription-dpo-steps {
    grid-template-columns: 1fr;
  }

  .subscription-plan-card {
    min-height: 0;
  }

  .subscription-plan-card.is-popular {
    transform: none;
  }
}

@media print {
  body.printing-agreement > *:not(main) {
    display: none !important;
  }

  body.printing-agreement main {
    display: block !important;
    width: auto;
    padding: 0;
  }

  body.printing-agreement main > *:not(.agreement-modal) {
    display: none !important;
  }

  body.printing-agreement .agreement-modal {
    position: static;
    inset: auto;
    display: block;
    padding: 0;
    background: transparent;
  }

  body.printing-agreement .agreement-modal-backdrop,
  body.printing-agreement .agreement-modal-actions,
  body.printing-agreement .agreement-trigger,
  body.printing-agreement #company-registration-form button,
  body.printing-agreement #omc-registration-form button,
  body.printing-agreement #company-registration-message,
  body.printing-agreement #omc-registration-message {
    display: none !important;
  }

  body.printing-agreement .agreement-modal-panel {
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  body.printing-agreement .agreement-document {
    padding: 0;
    border: 0;
    background: #fff;
  }
}

@media (max-width: 640px) {
  .kss-info-modal {
    padding: 8px;
  }

  .kss-info-modal-panel {
    width: 100%;
    height: calc(100dvh - 16px);
    max-height: none;
  }

  .kss-info-modal-header {
    display: grid;
    align-items: stretch;
    padding: 14px;
  }

  .kss-info-modal-body,
  .kss-info-hero,
  .kss-info-section {
    padding: 14px;
  }

  .kss-platform-grid,
  .kss-feature-grid,
  .kss-pill-grid,
  .kss-columns-list {
    grid-template-columns: 1fr;
  }

  .kss-info-section-heading {
    align-items: flex-start;
  }
}

