@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #eef8fc;
  --ink: #071721;
  --muted: #46606c;
  --line: rgba(14, 39, 52, 0.13);
  --surface: rgba(255, 255, 255, 0.86);
  --dark: #0f1a22;
  --dark-2: #132633;
  --blue: #2f6fed;
  --teal: #1c7c68;
  --gold: #c98d35;
  --gold-2: #f3c57c;
  --orange: #ef7d44;
  --red: #cf3d2e;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(47, 111, 237, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 0%, rgba(28, 124, 104, 0.13), transparent 34rem),
    linear-gradient(135deg, #f8fdff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.brand-lockup,
.app-logo-link,
.hero-copy h1,
.page-hero h1,
.app-header h1,
.role-card h3,
.how-copy h2,
.flow-steps h3,
.section-head h2,
.request-head h2,
.metric strong,
.atlas-metrics strong {
  font-family: var(--font-display);
}

body.dark-page {
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(239, 125, 68, 0.18), transparent 30rem),
    linear-gradient(180deg, #0f1a22 0%, #14212b 100%);
  color: white;
}

body.app-page {
  background:
    radial-gradient(circle at 14% 18%, rgba(119, 174, 232, 0.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(35, 192, 184, 0.1), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(220, 174, 88, 0.08), transparent 30%),
    var(--bg);
}

body.dark-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.shell-dark {
  width: min(1280px, calc(100vw - 48px));
  min-height: 100vh;
  padding-top: 28px;
}

.app-shell {
  width: min(1760px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(20, 36, 46, 0.94) 0%, rgba(24, 45, 58, 0.92) 100%);
  color: white;
  padding: clamp(22px, 2.8vw, 34px);
  box-shadow: 0 30px 80px rgba(22, 53, 67, 0.18);
}

.app-header:not(:has(.role-panel)) {
  grid-template-columns: minmax(0, 1fr);
}

.app-title-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px 10px 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-logo-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.app-header p {
  max-width: 900px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
  font-size: 16px;
}

.role-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.role-panel > span,
.role-panel label span {
  color: rgba(255, 255, 255, 0.58);
}

.role-panel strong,
.role-panel em {
  display: block;
}

.role-panel strong {
  margin-top: 8px;
}

.role-panel em {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.signout-link {
  display: inline-flex;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.role-panel label {
  display: block;
  margin-top: 12px;
}

.role-panel select {
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.role-panel option {
  color: var(--ink);
}

.app-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

.app-grid.no-side-nav {
  grid-template-columns: minmax(0, 1fr);
}

.app-grid.no-side-nav .app-content {
  width: 100%;
}

.side-nav {
  position: sticky;
  top: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(58, 104, 125, 0.12);
  padding: 18px 14px;
}

.side-nav p {
  margin: 0 12px 12px;
  color: var(--muted);
  font-weight: 500;
}

.side-nav nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  display: block;
  border-radius: 18px;
  padding: 13px 16px;
  font-weight: 500;
}

.side-nav a.active {
  background: rgba(47, 111, 237, 0.12);
  color: #18489f;
}

.app-content {
  display: grid;
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.topbar-dark {
  margin-bottom: 0;
}

.brand {
  display: inline-grid;
  gap: 7px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 17px;
}

.tagline {
  color: rgba(7, 23, 33, 0.68);
  font-weight: 600;
  font-size: 13px;
}

.topbar-dark .tagline {
  color: rgba(255, 255, 255, 0.84);
}

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

.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.pill {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 14px;
}

.topbar-dark .pill {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding-inline: 18px;
}

.pill.primary,
.topbar-dark .pill.primary {
  background: white;
  border-color: white;
  color: #08131a;
}

.topbar-dark .pill:first-child {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.topbar-dark .pill:last-child {
  background: var(--gold);
  border-color: var(--gold);
  color: #08131a;
  box-shadow: 0 12px 30px rgba(201, 141, 53, 0.28);
}

.button {
  border: 0;
  background: var(--gold);
  color: #08131a;
  padding: 14px 22px;
  box-shadow: 0 18px 36px rgba(201, 141, 53, 0.28);
}

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

.button.secondary {
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary.dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.actions.compact {
  margin-top: 18px;
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.05fr);
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.source-atlas {
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  margin-top: 52px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy .highlight {
  color: var(--gold-2);
}

.hero-copy p {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
}

.atlas-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(18, 32, 42, 0.88);
  padding: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
}

.atlas-inner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 27px;
  background: #132633;
}

.atlas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.atlas-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.98;
}

.map-node circle:first-child {
  opacity: 0.16;
}

.map-node circle:last-child {
  stroke: #132633;
  stroke-width: 6;
}

.map-node-orange circle { fill: var(--orange); }
.map-node-blue circle { fill: var(--blue); }
.map-node-teal circle { fill: var(--teal); }
.map-node-red circle { fill: var(--red); }

.route-label rect {
  fill: rgba(18, 41, 56, 0.94);
  stroke: rgba(246, 241, 232, 0.1);
}

.route-label text {
  text-anchor: middle;
  fill: rgba(246, 241, 232, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.atlas-panels {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
}

.mini-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(18, 41, 56, 0.9);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.mini-panel span,
.atlas-metrics span,
.eyebrow,
.role-card > span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-panel span,
.atlas-metrics span {
  color: rgba(255, 255, 255, 0.48);
}

.mini-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  line-height: 1.45;
}

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

.live-layers em {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
  padding: 6px 11px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.atlas-metrics {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.atlas-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(18, 41, 56, 0.9);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.atlas-metrics strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 30px;
  font-weight: 600;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.role-grid.light {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.role-grid.light.compact-roles {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 18px;
}

.compact-roles .role-card {
  min-height: 150px;
  padding: 18px;
}

.compact-roles .role-card h3 {
  margin-top: 12px;
  font-size: 22px;
}

.compact-roles .role-card p {
  margin-bottom: 0;
}

.role-form {
  display: block;
  text-align: left;
}

.role-form input {
  display: none;
}

.text-button {
  display: inline-flex;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--blue);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.login-form .button {
  width: fit-content;
  margin-top: 4px;
}

.notice {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.45;
}

.notice strong,
.notice span {
  display: block;
}

.notice.success {
  border: 1px solid rgba(28, 124, 104, 0.22);
  background: rgba(28, 124, 104, 0.08);
  color: #0c6758;
}

.notice.error {
  border: 1px solid rgba(207, 61, 46, 0.22);
  background: rgba(207, 61, 46, 0.08);
  color: #9a251d;
}

.demo-note {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(47, 111, 237, 0.05);
  padding: 16px;
}

.demo-note strong {
  display: block;
  font-weight: 600;
}

.demo-note p {
  margin: 8px 0 0;
}

code {
  border-radius: 7px;
  background: rgba(7, 23, 33, 0.08);
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.role-card,
.card,
.panel,
.request-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 60px rgba(16, 35, 45, 0.1);
}

.dark-page .role-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.role-card {
  min-height: 232px;
  padding: 22px;
}

.role-card h3 {
  margin: 20px 0 14px;
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
  margin-top: 48px;
  align-items: stretch;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.58fr);
  gap: 44px;
  align-items: start;
  margin-top: 66px;
}

.about-kicker {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.about-hero p {
  margin: 0;
}

.about-hero-bubble {
  align-self: start;
  margin-top: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  padding: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
  backdrop-filter: blur(8px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.about-card {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.about-card-title {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.about-card-title span {
  color: var(--gold-2);
  font-size: 14px;
  line-height: 1;
}

.about-card h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.about-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.72;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(16, 32, 43, 0.82);
  padding: 28px;
}

.about-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.about-roles {
  display: grid;
  gap: 12px;
}

.about-roles p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  padding: 16px;
  line-height: 1.6;
}

.about-roles strong {
  color: white;
  font-weight: 600;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.how-copy {
  border-radius: 32px;
  background: rgba(16, 32, 43, 0.86);
  color: white;
  padding: 28px;
}

.how-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.how-copy h2 {
  max-width: 470px;
  margin: 18px 0 0;
  font-size: clamp(28px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.how-copy p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

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

.flow-steps article {
  min-height: 176px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(16, 32, 43, 0.08);
  padding: 22px;
}

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

.flow-steps h3 {
  margin: 18px 0 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.flow-steps p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.role-card p,
.card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.role-grid.light .role-card p,
.card p,
.panel p,
.request-card p {
  color: var(--muted);
}

.role-1 > span,
.role-2 > span { color: #1c7c68; }
.role-3 > span,
.role-4 > span { color: #ef7d44; }
.role-5 > span { color: #2f6fed; }

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, #19303d 0%, #243f4e 100%);
  color: white;
  padding: clamp(28px, 4vw, 52px);
  margin-bottom: 24px;
}

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

.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 3vw, 44px);
}

.section-head p {
  margin: 0;
}

.section-action {
  display: flex;
  justify-content: flex-end;
}

.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.panel,
.request-card {
  padding: clamp(22px, 3vw, 34px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}

.toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: white;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.status {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(28, 124, 104, 0.1);
  color: #0c6758;
  padding: 7px 11px;
  font-weight: 600;
}

.muted-status {
  background: rgba(91, 111, 124, 0.12);
  color: #5b6f7c;
}

.inline-form {
  margin: 0;
}

.inline-form .button {
  min-height: 0;
  padding: 9px 13px;
  white-space: nowrap;
}

.compact-strip {
  margin-top: 18px;
}

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

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

.card {
  padding: 22px;
}

.card h2,
.card h3,
.panel h2 {
  margin: 8px 0;
  letter-spacing: -0.04em;
}

.request-grid {
  display: grid;
  gap: 22px;
}

.request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.request-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

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

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

.top-metrics {
  margin-top: 0;
}

.metric {
  padding: 18px;
  box-shadow: none;
}

.metric span {
  color: var(--muted);
  font-weight: 500;
}

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

.metric small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 6px;
}

.decision-card {
  border: 1px solid rgba(47, 111, 237, 0.18);
  border-radius: 22px;
  background: rgba(47, 111, 237, 0.055);
  padding: 20px;
}

.decision-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.route-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.route-stop {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 17px;
}

.route-stop span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.route-stop strong {
  display: block;
  margin-top: 12px;
}

.status-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  border: 1px solid rgba(28, 124, 104, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(58, 104, 125, 0.1);
  padding: 18px 20px;
}

.status-strip .eyebrow {
  grid-column: 1 / -1;
}

.status-strip strong {
  color: #0c6758;
  font-size: 20px;
}

.status-strip p {
  margin: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  margin-bottom: 22px;
}

details {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(47, 111, 237, 0.04);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.plan-list,
.product-list,
.product-picker {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.plan-row,
.product-row,
.product-card,
.upload-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 16px;
}

.plan-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 12px;
  align-items: start;
}

.plan-row p {
  grid-column: 1 / -1;
  margin: 0;
}

.plan-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.qty-pill {
  align-self: start;
  background: rgba(31, 156, 136, 0.12);
  border: 1px solid rgba(31, 156, 136, 0.16);
  border-radius: 999px;
  color: #08736a;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 7px 11px;
  white-space: nowrap;
}

.product-row,
.item-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-row {
  min-height: 112px;
  align-items: center;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.product-row img,
.item-cell img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  background: #f5f7f8;
}

.product-thumb {
  align-items: center;
  background: linear-gradient(135deg, #e7f7f8, #ffffff);
  border: 1px solid rgba(31, 156, 181, 0.18);
  border-radius: 16px;
  color: #1d6570;
  display: flex;
  flex: 0 0 82px;
  font-weight: 900;
  height: 82px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 82px;
}

.product-thumb img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.product-thumb em {
  font-style: normal;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.product-row a,
.product-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 600;
}

.product-row strong,
.product-row span,
.product-row a {
  display: block;
}

.product-row span {
  margin-top: 4px;
  color: var(--muted);
}

.product-row strong {
  font-size: 17px;
  line-height: 1.25;
}

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

.product-quantity {
  align-self: center;
  background: linear-gradient(135deg, rgba(31, 156, 136, 0.14), rgba(47, 111, 237, 0.08));
  border: 1px solid rgba(31, 156, 136, 0.14);
  border-radius: 999px;
  color: #075f58;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 9px 12px;
  white-space: nowrap;
}

.shipment-request-maps {
  display: grid;
  gap: 24px;
}

.shipment-mini {
  border: 1px solid rgba(14, 39, 52, 0.12);
  border-radius: 24px;
  padding: 18px;
}

.tracking-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 14px;
}

.tracking-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 39, 52, 0.12);
  border-radius: 18px;
  padding: 14px;
}

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

.tracking-card-head strong,
.tracking-card-head span,
.tracking-card p {
  display: block;
}

.tracking-card-head span {
  background: rgba(31, 156, 136, 0.11);
  border-radius: 999px;
  color: #08736a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.tracking-card p {
  color: var(--muted);
  margin: 6px 0 0;
}

.tracking-card-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tracking-item {
  align-items: center;
  background: rgba(246, 251, 252, 0.92);
  border: 1px solid rgba(14, 39, 52, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 10px;
}

.tracking-item .product-thumb {
  border-radius: 13px;
  flex-basis: 58px;
  height: 58px;
  width: 58px;
}

.tracking-item strong,
.tracking-item span {
  display: block;
}

.tracking-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.tracking-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.request-form {
  display: grid;
  grid-template-columns: minmax(360px, 0.68fr) minmax(520px, 1.32fr);
  gap: 22px;
}

.choice-grid,
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

label.full {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 14px 16px;
  font-weight: 500;
}

.product-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
}

.product-card img {
  width: 116px;
  height: 116px;
  border-radius: 22px;
  object-fit: cover;
}

.product-card h3 {
  margin: 6px 0;
  font-size: 22px;
}

.product-card p {
  margin: 0;
}

.product-card label {
  display: grid;
  gap: 8px;
}

.upload-box {
  margin-top: 18px;
  border-style: dashed;
  background: rgba(47, 111, 237, 0.04);
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.shipment-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 252, 0.76));
  box-shadow: 0 22px 60px rgba(16, 35, 45, 0.1);
  padding: clamp(22px, 3vw, 34px);
}

.shipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.box-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(16, 35, 45, 0.08);
  padding: 20px;
}

.box-head,
.tracking-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.box-head h3 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.tracking-line {
  margin-top: 16px;
  border: 1px dashed rgba(14, 39, 52, 0.18);
  border-radius: 18px;
  background: rgba(47, 111, 237, 0.04);
  padding: 14px;
}

.tracking-line strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.tracking-line span {
  color: var(--teal);
  font-weight: 700;
}

.tracking-line a {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.box-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contents-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.content-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(14, 39, 52, 0.1);
  border-radius: 18px;
  background: white;
  padding: 12px;
}

.content-row img,
.content-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 16px;
}

.content-row img {
  object-fit: cover;
  background: #f5f7f8;
}

.content-placeholder {
  display: grid;
  place-items: center;
  background: rgba(28, 124, 104, 0.1);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.content-row strong,
.content-row span,
.content-row a {
  display: block;
}

.content-row span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.content-row a {
  margin-top: 6px;
  color: var(--blue);
  font-weight: 700;
}

.content-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.route-panel {
  overflow: hidden;
}

.shipment-route-map {
  position: relative;
  min-height: 360px;
  margin-top: 20px;
  border: 1px solid rgba(31, 156, 181, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 25%, rgba(31, 156, 181, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fdff, #e9f8fb);
  overflow: hidden;
}

.shipment-route-map.real-map {
  min-height: 0;
  padding: 0;
}

.leaflet-route-map {
  min-height: 360px;
  width: 100%;
  z-index: 1;
}

.leaflet-route-map .leaflet-control-attribution {
  font-size: 10px;
}

.map-fallback {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.map-fallback div {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 39, 52, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.map-fallback span,
.map-fallback strong,
.map-fallback em {
  display: block;
}

.map-fallback span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-fallback em {
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}

.route-backdrop {
  position: absolute;
  inset: 0;
}

.route-backdrop svg {
  width: 100%;
  height: 100%;
}

.package-path {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  marker-end: url("#route-arrow");
  opacity: 0.72;
}

.package-path-0 {
  stroke: #2e83d3;
}

.package-path-1 {
  stroke: #ef7d44;
}

.package-path-2 {
  stroke: #1f9c88;
}

.package-path-3 {
  stroke: #cf3d2e;
}

.map-point circle:first-child {
  fill: white;
  opacity: 0.86;
}

.map-point.origin circle:last-child {
  fill: #ef7d44;
}

.map-point.mid circle:last-child {
  fill: #2e83d3;
}

.map-point.dest circle:last-child {
  fill: #1f9c88;
}

.package-marker circle:first-child {
  fill: white;
  opacity: 0.92;
  filter: drop-shadow(0 12px 16px rgba(16, 35, 45, 0.2));
}

.package-marker-0 circle:last-child {
  fill: #2e83d3;
}

.package-marker-1 circle:last-child {
  fill: #ef7d44;
}

.package-marker-2 circle:last-child {
  fill: #1f9c88;
}

.package-marker-3 circle:last-child {
  fill: #cf3d2e;
}

.map-badge {
  border: 1px solid rgba(14, 39, 52, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 35, 45, 0.14);
  color: var(--ink);
  font: 700 12px/1.25 var(--font-body);
  padding: 9px 10px;
}

.map-badge strong,
.map-badge span {
  display: block;
}

.map-badge span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.shipment-route-map .route-label {
  position: absolute;
  max-width: 250px;
  border: 1px solid rgba(14, 39, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(16, 35, 45, 0.12);
  padding: 14px 16px;
}

.route-origin {
  left: 7%;
  bottom: 8%;
}

.route-destination {
  right: 7%;
  top: 13%;
}

.shipment-route-map .route-label span,
.shipment-route-map .route-label strong,
.shipment-route-map .route-label em {
  display: block;
}

.shipment-route-map .route-label span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shipment-route-map .route-label strong {
  margin-top: 5px;
}

.shipment-route-map .route-label em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.shipment-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.shipment-path div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 16px;
}

.shipment-path span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--blue);
  font-weight: 800;
}

.shipment-path strong,
.shipment-path em {
  display: block;
}

.shipment-path strong {
  margin-top: 12px;
}

.shipment-path em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .atlas-hero,
  .role-grid,
  .how-it-works,
  .about-hero,
  .about-grid,
  .about-panel,
  .detail-grid,
  .request-form,
  .app-header,
  .app-grid {
    grid-template-columns: 1fr;
  }

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

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

  .shipment-route-map {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .shell,
  .shell-dark {
    width: min(100% - 24px, 1460px);
    padding-top: 18px;
  }

  .topbar,
  .page-hero,
  .request-head,
  .app-title-block,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell {
    width: min(100% - 24px, 1760px);
    padding-top: 18px;
  }

  .app-logo-link img {
    width: 132px;
  }

  .side-nav {
    position: static;
  }

  .nav {
    justify-content: flex-start;
  }

  .atlas-card {
    padding: 12px;
  }

  .atlas-inner {
    min-height: 620px;
  }

  .atlas-panels,
  .atlas-metrics,
  .metric-row,
  .metric-row.wide,
  .form-grid,
  .product-card,
  .product-row,
  .plan-row,
  .shipment-path,
  .template-row {
    grid-template-columns: 1fr;
  }

  .product-quantity {
    justify-self: start;
  }

  .atlas-metrics {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 330px 16px 16px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
}
