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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pd-header-height) + 20px);
  background: var(--pd-canvas);
}

#service,
#tracking,
#results,
#contact {
  scroll-margin-top: calc(var(--pd-header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--pd-text);
  background: var(--pd-canvas);
  font-family: var(--pd-font-text);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--pd-font-text);
}

button,
input,
select,
textarea {
  font-size: 1rem;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 184, 169, 0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
dialog:focus-visible {
  outline: 3px solid var(--pd-focus);
  outline-offset: 3px;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--pd-font-display);
  letter-spacing: 0;
}

h1,
h2 {
  font-weight: 800;
}

h3 {
  font-weight: 700;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--pd-radius-sm);
  color: var(--pd-action-text);
  background: var(--pd-action);
  font-weight: 800;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--pd-header-height);
  border-bottom: 1px solid var(--pd-border);
  background: color-mix(in srgb, var(--pd-surface) 94%, transparent);
  backdrop-filter: blur(18px);
}

:root:not([data-theme="dark"]) .app-header {
  border-bottom-color: var(--pd-border-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 18px rgba(13, 18, 32, 0.08);
}

:root[data-theme="dark"] .app-header {
  background: rgba(9, 13, 23, 0.94);
}

.landing-page .app-header {
  position: fixed;
  right: 0;
  left: 0;
  color: var(--pd-text);
  border-bottom-color: var(--pd-landing-header-border);
  background: var(--pd-landing-header-surface);
  box-shadow: var(--pd-landing-header-shadow);
}

:root[data-theme="dark"] .landing-page .app-header {
  color: var(--pd-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--pd-page-max), calc(100% - 40px));
  min-height: var(--pd-header-height);
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-link img {
  width: 224px;
  height: 48px;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-sm);
  color: var(--pd-text);
  background: var(--pd-surface);
  cursor: pointer;
  font-weight: 800;
}

.landing-page.nav-open {
  overflow: hidden;
}

.logo-on-dark {
  display: none;
}

:root[data-theme="dark"] .logo-on-light {
  display: none;
}

:root[data-theme="dark"] .logo-on-dark {
  display: block;
}

.site-nav,
.role-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.role-switch a {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--pd-radius-sm);
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.75;
  transition: color var(--pd-speed-fast) var(--pd-ease), background var(--pd-speed-fast) var(--pd-ease), opacity var(--pd-speed-fast) var(--pd-ease);
}

.site-nav a:hover,
.role-switch a:hover,
.role-switch a[aria-current="page"] {
  background: rgba(0, 184, 169, 0.14);
  opacity: 1;
}

.site-nav a[aria-current="location"] {
  color: var(--pd-text);
  background: rgba(0, 184, 169, 0.14);
  opacity: 1;
}

:root:not([data-theme="dark"]) .role-switch a[aria-current="page"] {
  color: var(--pd-navy);
  background: #d4efeb;
  box-shadow: inset 0 -2px 0 var(--pd-teal);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, auto);
  align-items: stretch;
  padding: 3px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  background: var(--pd-surface);
}

:root:not([data-theme="dark"]) .segmented {
  border-color: var(--pd-border-strong);
  background: #f3f6f5;
}

.landing-page .segmented {
  border-color: var(--pd-border-strong);
  background: var(--pd-surface);
}

:root[data-theme="dark"] .landing-page .segmented {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 32, 0.72);
}

.segmented button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--pd-radius-sm);
  color: var(--pd-text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-page .segmented button {
  color: var(--pd-text-muted);
}

:root[data-theme="dark"] .landing-page .segmented button {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .landing-page .segmented button[aria-pressed="true"] {
  color: var(--pd-action-text);
}

.segmented button[aria-pressed="true"] {
  color: var(--pd-action-text);
  background: var(--pd-action);
}

.segmented.compact {
  grid-auto-columns: minmax(42px, auto);
}

.theme-control button {
  min-width: 66px;
}

.theme-control[aria-busy="true"],
.theme-control[aria-busy="true"] button {
  cursor: progress;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--pd-radius-pill);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background var(--pd-speed-fast) var(--pd-ease), border-color var(--pd-speed-fast) var(--pd-ease), transform var(--pd-speed-fast) var(--pd-ease);
}

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

.button-primary {
  color: var(--pd-action-text);
  border-color: #009f93;
  background: var(--pd-action);
}

.button-primary:hover:not(:disabled) {
  background: var(--pd-action-hover);
}

.button-secondary {
  color: var(--pd-text);
  border-color: var(--pd-navy);
  background: var(--pd-surface);
}

.button-inverse {
  color: var(--pd-text);
  border-color: var(--pd-navy);
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="dark"] .button-inverse {
  color: var(--pd-white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(13, 18, 32, 0.56);
}

.button-quiet {
  color: var(--pd-text);
  border-color: var(--pd-border);
  background: transparent;
}

.button-large {
  min-height: 56px;
  padding: 15px 22px;
  font-size: 1.05rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  color: var(--pd-link);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.danger-action {
  color: var(--pd-danger);
}

.eyebrow,
.field-label {
  margin-bottom: 12px;
  color: var(--pd-link);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.inverse {
  color: var(--pd-teal-bright);
}

.map-stage,
.map-canvas,
.map-fallback {
  position: absolute;
  inset: 0;
}

.map-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--pd-map-canvas);
}

.map-fallback {
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: var(--pd-surface-muted);
}

.map-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-fallback .fallback-dark {
  display: none;
}

:root[data-theme="dark"] .map-fallback .fallback-light {
  display: none;
}

:root[data-theme="dark"] .map-fallback .fallback-dark {
  display: block;
}

.map-fallback figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  color: #0d1220;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.66rem;
}

.map-courier-marker {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #ffffff;
  border-radius: 16px;
  background: var(--pd-teal);
  box-shadow: 0 14px 34px rgba(13, 18, 32, 0.28);
}

:root[data-theme="dark"] .map-courier-marker {
  border-color: #dbffff;
  background: #00cbbb;
  box-shadow:
    0 0 0 7px rgba(0, 217, 202, 0.16),
    0 16px 38px rgba(0, 0, 0, 0.5);
}

.map-courier-marker img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--pd-map-control-border) !important;
  border-radius: var(--pd-radius-md) !important;
  background: var(--pd-map-control) !important;
  box-shadow: var(--pd-shadow-soft) !important;
}

.maplibregl-ctrl-group button {
  width: 44px !important;
  height: 44px !important;
  background-color: var(--pd-map-control) !important;
}

:root[data-theme="dark"] .maplibregl-ctrl-group button + button {
  border-top-color: var(--pd-map-control-border);
}

:root[data-theme="dark"] .maplibregl-ctrl-group button:hover,
:root[data-theme="dark"] .maplibregl-ctrl-group button:focus-visible {
  background-color: #223249 !important;
}

:root[data-theme="dark"] .maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.7);
}

:root[data-theme="dark"] .maplibregl-ctrl-attrib {
  color: #a9b9c9;
  background: rgba(14, 23, 36, 0.9);
}

:root[data-theme="dark"] .maplibregl-ctrl-attrib a {
  color: #dce9ef;
}

:root[data-theme="dark"] .maplibregl-ctrl-attrib-button {
  filter: invert(1) brightness(1.7);
}

.landing-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 620px;
  height: calc(100svh - 32px);
  max-height: 760px;
  overflow: hidden;
  color: var(--pd-text);
  background: var(--pd-map-canvas);
}

:root:not([data-theme="dark"]) .landing-page .landing-hero {
  color: var(--pd-white);
  background: var(--pd-navy);
}

:root[data-theme="dark"] .landing-hero {
  color: var(--pd-white);
  background: var(--pd-navy);
}

.hero-map-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--pd-landing-hero-scrim-strong) 0%,
    var(--pd-landing-hero-scrim-mid) 34%,
    var(--pd-landing-hero-scrim-soft) 50%,
    var(--pd-landing-hero-scrim-clear) 70%
  );
  content: "";
  pointer-events: none;
}

:root[data-theme="dark"] .hero-map-stage::after {
  background: linear-gradient(
    90deg,
    rgba(7, 12, 21, 0.9) 0%,
    rgba(7, 12, 21, 0.78) 38%,
    rgba(7, 12, 21, 0.2) 64%,
    rgba(7, 12, 21, 0.04) 100%
  );
}

.hero-map-stage .map-courier-marker {
  width: 46px;
  height: 46px;
  border-width: 3px;
  border-radius: 13px;
  box-shadow:
    0 0 0 6px rgba(0, 217, 202, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

.hero-map-stage .map-courier-marker img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(var(--pd-page-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0 84px;
  pointer-events: none;
}

.hero-copy {
  max-width: 720px;
  text-shadow: none;
  pointer-events: auto;
}

:root:not([data-theme="dark"]) .landing-page .hero-copy {
  text-shadow: 0 2px 18px rgba(5, 8, 17, 0.72);
}

:root[data-theme="dark"] .hero-copy {
  text-shadow: 0 2px 16px rgba(5, 8, 17, 0.8);
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--pd-text);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.04;
}

:root[data-theme="dark"] .hero-copy h1 {
  color: var(--pd-white);
}

:root:not([data-theme="dark"]) .landing-page .hero-copy h1 {
  color: var(--pd-white);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--pd-text-muted);
  font-size: 1.2rem;
}

:root[data-theme="dark"] .hero-lead {
  color: rgba(255, 255, 255, 0.86);
}

:root:not([data-theme="dark"]) .landing-page .hero-lead {
  color: rgba(255, 255, 255, 0.84);
}

:root:not([data-theme="dark"]) .landing-page .hero-actions .button-inverse {
  color: var(--pd-white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(13, 18, 32, 0.58);
}

:root:not([data-theme="dark"]) .landing-page .hero-actions .button-inverse:hover {
  border-color: var(--pd-white);
  background: rgba(13, 18, 32, 0.78);
}

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

.hero-live-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  min-width: 248px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--pd-border-strong) 68%, var(--pd-teal));
  border-radius: var(--pd-radius-md);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pd-surface) 92%, var(--pd-teal)) 0%,
    var(--pd-surface) 56%,
    color-mix(in srgb, var(--pd-surface) 95%, var(--pd-orange)) 100%
  );
  box-shadow: var(--pd-shadow-panel);
  pointer-events: auto;
}

:root:not([data-theme="dark"]) .landing-page .hero-live-status {
  color: var(--pd-text);
}

:root[data-theme="dark"] .hero-live-status {
  border-color: color-mix(in srgb, var(--pd-border-strong) 72%, var(--pd-teal));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pd-surface) 86%, var(--pd-teal)) 0%,
    var(--pd-surface) 56%,
    color-mix(in srgb, var(--pd-surface) 91%, var(--pd-orange)) 100%
  );
}

.hero-status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--pd-radius-md);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--pd-teal) 28%, transparent);
}

.hero-status-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-status-copy {
  display: grid;
  gap: 2px;
}

.hero-status-copy > span {
  color: var(--pd-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-status-copy strong {
  font-size: 0.9rem;
}

.hero-status-eta {
  color: var(--pd-text);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

:root[data-theme="dark"] .hero-status-copy > span,
:root[data-theme="dark"] .hero-status-eta {
  color: rgba(255, 255, 255, 0.72);
}

.live-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--pd-white);
  border-radius: 50%;
  background: var(--pd-teal-bright);
  box-shadow: 0 0 0 4px rgba(0, 209, 193, 0.18);
}

.demo-role-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 6px 20px;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  background: var(--pd-surface);
}

.demo-role-bar > span {
  margin-right: 8px;
  color: var(--pd-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-role-bar a,
.demo-role-bar button {
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: var(--pd-radius-sm);
  color: var(--pd-text);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.demo-role-bar a:hover,
.demo-role-bar button:hover {
  background: var(--pd-surface-muted);
}

.content-band {
  padding: 104px 0;
  background: var(--pd-canvas);
}

:root:not([data-theme="dark"]) .landing-page #service {
  border-top: 0;
  border-bottom: 1px solid rgba(13, 18, 32, 0.12);
  background:
    radial-gradient(
      ellipse 76% 62% at 12% -10%,
      rgba(0, 209, 193, 0.2) 0%,
      rgba(0, 209, 193, 0.075) 44%,
      rgba(255, 255, 255, 0) 74%
    ),
    radial-gradient(
      ellipse 66% 58% at 104% 42%,
      rgba(255, 138, 0, 0.11) 0%,
      rgba(255, 138, 0, 0.035) 46%,
      rgba(255, 255, 255, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 46% 112%,
      rgba(13, 18, 32, 0.055) 0%,
      rgba(13, 18, 32, 0.018) 48%,
      rgba(255, 255, 255, 0) 80%
    ),
    #ffffff;
}

:root:not([data-theme="dark"]) .landing-page #service .role-grid {
  border: 0;
  background: transparent;
}

:root[data-theme="dark"] .landing-page #service {
  background:
    radial-gradient(
      ellipse 76% 62% at 12% -10%,
      rgba(0, 209, 193, 0.085) 0%,
      rgba(0, 209, 193, 0.024) 44%,
      rgba(9, 13, 23, 0) 74%
    ),
    radial-gradient(
      ellipse 66% 58% at 104% 42%,
      rgba(255, 138, 0, 0.045) 0%,
      rgba(255, 138, 0, 0.012) 46%,
      rgba(9, 13, 23, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 46% 112%,
      rgba(13, 18, 32, 0.42) 0%,
      rgba(13, 18, 32, 0.12) 48%,
      rgba(9, 13, 23, 0) 80%
    ),
    var(--pd-canvas);
}

.section-inner,
.footer-inner {
  width: min(var(--pd-page-max), calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
}

.section-heading.wide {
  max-width: 960px;
}

.section-heading h2,
.product-copy h2,
.contact-band h2 {
  margin-bottom: 20px;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.08;
}

.section-heading > p:last-child,
.product-copy > p,
.contact-band .section-heading > p:last-child {
  color: var(--pd-text-muted);
  font-size: 1.08rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  margin-top: 52px;
  border: 0;
  background: transparent;
}

.role-item {
  --role-accent: var(--pd-teal);
  --role-accent-text: var(--pd-link);
  --role-hover: rgba(0, 184, 169, 0.06);
  --role-shadow: rgba(0, 184, 169, 0.11);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(0, 209, 193, 0.16) 0%,
      rgba(0, 184, 169, 0.055) 48%,
      rgba(255, 255, 255, 0) 78%
    ),
    rgba(255, 255, 255, 0.86);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: 260px;
  padding: 30px 32px 28px;
  border: 0;
  border-radius: var(--pd-radius-md);
  color: var(--pd-text);
  text-decoration: none;
  background: var(--role-surface);
  cursor: pointer;
  transition:
    box-shadow var(--pd-speed-fast) var(--pd-ease),
    transform var(--pd-speed-fast) var(--pd-ease);
}

.role-item.role-courier {
  --role-accent: var(--pd-navy);
  --role-accent-text: var(--pd-navy);
  --role-hover: rgba(13, 18, 32, 0.045);
  --role-shadow: rgba(13, 18, 32, 0.1);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(13, 18, 32, 0.095) 0%,
      rgba(13, 18, 32, 0.025) 50%,
      rgba(255, 255, 255, 0) 78%
    ),
    rgba(255, 255, 255, 0.86);
}

.role-item.role-client {
  --role-accent: var(--pd-orange);
  --role-accent-text: var(--pd-warning-text);
  --role-hover: rgba(255, 138, 0, 0.055);
  --role-shadow: rgba(255, 138, 0, 0.14);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(255, 138, 0, 0.15) 0%,
      rgba(255, 138, 0, 0.045) 48%,
      rgba(255, 255, 255, 0) 78%
    ),
    rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] .role-item.role-merchant {
  --role-hover: rgba(0, 209, 193, 0.08);
  --role-shadow: rgba(0, 209, 193, 0.11);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(0, 209, 193, 0.12) 0%,
      rgba(0, 209, 193, 0.025) 48%,
      rgba(18, 24, 39, 0) 78%
    ),
    rgba(18, 24, 39, 0.92);
}

:root[data-theme="dark"] .role-item.role-courier {
  --role-accent: #8fa0b5;
  --role-accent-text: var(--pd-text);
  --role-hover: rgba(255, 255, 255, 0.055);
  --role-shadow: rgba(143, 160, 181, 0.1);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(143, 160, 181, 0.12) 0%,
      rgba(143, 160, 181, 0.02) 50%,
      rgba(18, 24, 39, 0) 78%
    ),
    rgba(18, 24, 39, 0.92);
}

:root[data-theme="dark"] .role-item.role-client {
  --role-hover: rgba(255, 138, 0, 0.09);
  --role-shadow: rgba(255, 138, 0, 0.12);
  --role-surface:
    radial-gradient(
      ellipse 280px 180px at 12% 0%,
      rgba(255, 138, 0, 0.12) 0%,
      rgba(255, 138, 0, 0.025) 48%,
      rgba(18, 24, 39, 0) 78%
    ),
    rgba(18, 24, 39, 0.92);
}

.role-item::before {
  content: none;
}

.role-item:hover {
  color: var(--pd-text);
  box-shadow: 0 14px 30px var(--role-shadow);
  transform: translateY(-1px);
}

.role-item:focus-visible {
  z-index: 1;
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--pd-focus);
}

.role-item:visited {
  color: var(--pd-text);
}

.role-item:last-child {
  border-right: 0;
}

.role-item h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.role-item p {
  max-width: 32ch;
  margin: 0;
  color: var(--pd-text-muted);
  line-height: 1.55;
}

.role-cta {
  align-self: end;
  margin-top: 28px;
  color: var(--role-accent-text);
  font-size: 0.93rem;
  font-weight: 700;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  min-height: 680px;
  color: var(--pd-white);
  background: var(--pd-navy);
}

.product-map-wrap {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.product-map-status {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--pd-radius-md);
  color: var(--pd-navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--pd-shadow-soft);
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 54px;
}

.product-copy h2 {
  color: var(--pd-white);
  text-wrap: balance;
}

.product-copy > p {
  color: rgba(255, 255, 255, 0.72);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 10px 0 10px 20px;
  border-left: 3px solid var(--pd-teal-bright);
  font-weight: 700;
}

.product-copy .button {
  align-self: flex-start;
}

.results-band {
  background: var(--pd-surface-muted);
}

:root:not([data-theme="dark"]) .landing-page .results-band {
  border-top: 1px solid rgba(13, 18, 32, 0.12);
  border-bottom: 1px solid rgba(13, 18, 32, 0.12);
  background:
    radial-gradient(
      ellipse 74% 62% at 88% -12%,
      rgba(0, 184, 169, 0.17) 0%,
      rgba(0, 209, 193, 0.06) 45%,
      rgba(255, 255, 255, 0) 74%
    ),
    radial-gradient(
      ellipse 64% 56% at -8% 56%,
      rgba(255, 138, 0, 0.09) 0%,
      rgba(255, 138, 0, 0.03) 46%,
      rgba(255, 255, 255, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 56% 112%,
      rgba(13, 18, 32, 0.055) 0%,
      rgba(13, 18, 32, 0.016) 48%,
      rgba(255, 255, 255, 0) 80%
    ),
    #ffffff;
}

:root[data-theme="dark"] .landing-page .results-band {
  background:
    radial-gradient(
      ellipse 74% 62% at 88% -12%,
      rgba(0, 209, 193, 0.08) 0%,
      rgba(0, 209, 193, 0.022) 45%,
      rgba(23, 36, 51, 0) 74%
    ),
    radial-gradient(
      ellipse 64% 56% at -8% 56%,
      rgba(255, 138, 0, 0.04) 0%,
      rgba(255, 138, 0, 0.01) 46%,
      rgba(23, 36, 51, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 56% 112%,
      rgba(13, 18, 32, 0.42) 0%,
      rgba(13, 18, 32, 0.12) 48%,
      rgba(23, 36, 51, 0) 80%
    ),
    var(--pd-surface-muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  margin-top: 52px;
  border: 0;
  background: transparent;
}

:root:not([data-theme="dark"]) .landing-page .metric-row {
  border: 0;
  background: transparent;
}

:root:not([data-theme="dark"]) .landing-page .role-item,
:root:not([data-theme="dark"]) .landing-page .metric-row div {
  border: 0;
}

.metric-row div {
  --metric-accent: var(--pd-teal);
  --metric-value: var(--pd-link);
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(0, 209, 193, 0.16) 0%,
      rgba(0, 184, 169, 0.05) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    rgba(255, 255, 255, 0.86);
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 154px;
  padding: 30px 32px 28px;
  border: 0;
  border-radius: var(--pd-radius-md);
  background: var(--metric-surface);
}

.metric-row div:nth-child(2) {
  --metric-accent: var(--pd-navy);
  --metric-value: var(--pd-navy);
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(13, 18, 32, 0.095) 0%,
      rgba(13, 18, 32, 0.025) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    rgba(255, 255, 255, 0.86);
}

.metric-row div:nth-child(3) {
  --metric-accent: var(--pd-orange);
  --metric-value: var(--pd-warning-text);
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(255, 138, 0, 0.14) 0%,
      rgba(255, 138, 0, 0.045) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] .metric-row div:nth-child(2) {
  --metric-accent: #8fa0b5;
  --metric-value: var(--pd-text);
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(143, 160, 181, 0.12) 0%,
      rgba(143, 160, 181, 0.02) 50%,
      rgba(18, 24, 39, 0) 80%
    ),
    rgba(18, 24, 39, 0.92);
}

:root[data-theme="dark"] .metric-row div:first-child {
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(0, 209, 193, 0.12) 0%,
      rgba(0, 209, 193, 0.025) 50%,
      rgba(18, 24, 39, 0) 80%
    ),
    rgba(18, 24, 39, 0.92);
}

:root[data-theme="dark"] .metric-row div:nth-child(3) {
  --metric-surface:
    radial-gradient(
      ellipse 260px 150px at 12% 0%,
      rgba(255, 138, 0, 0.12) 0%,
      rgba(255, 138, 0, 0.025) 50%,
      rgba(18, 24, 39, 0) 80%
    ),
    rgba(18, 24, 39, 0.92);
}

.metric-row div::before {
  content: none;
}

.metric-row div:last-child {
  border-right: 0;
}

.metric-row strong {
  color: var(--metric-value);
  font-family: var(--pd-font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.metric-row span {
  max-width: 28ch;
  color: var(--pd-text-muted);
  line-height: 1.45;
}

.contact-band {
  padding: 104px 0;
  color: var(--pd-white);
  background: var(--pd-navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 72px;
  align-items: start;
}

.contact-band h2 {
  color: var(--pd-white);
}

.contact-band .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

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

.lead-form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pd-radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.lead-form label,
.order-form label,
.proof-dialog label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-sm);
  color: var(--pd-text);
  background: var(--pd-surface);
}

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

.lead-form .button,
.lead-form .form-note,
.lead-form .inline-success {
  grid-column: 1 / -1;
}

.lead-form .button {
  justify-self: start;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.inline-success,
.field-error {
  margin: 0;
  color: var(--pd-teal-bright);
  font-weight: 700;
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.64);
  background: #050811;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner img {
  display: block;
  width: 224px;
  height: 48px;
}

.tracking-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  height: calc(100svh - var(--pd-header-height));
  min-height: 650px;
  overflow: hidden;
}

.tracking-workspace.is-empty {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px;
  background: var(--pd-bg);
}

.tracking-workspace.is-empty .tracking-empty {
  width: min(680px, 100%);
  min-height: 320px;
  display: grid;
  align-content: center;
  gap: 16px;
  overflow: visible;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-shadow-soft);
}

.tracking-workspace.is-empty .tracking-empty h1,
.tracking-workspace.is-empty .tracking-empty p {
  margin: 0;
}

.tracking-workspace.is-empty .tracking-empty .button {
  justify-self: start;
}

.tracking-map-wrap,
.courier-map-section {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--pd-surface-muted);
}

.map-live-label,
.courier-map-hud {
  position: absolute;
  z-index: 6;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--pd-shadow-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

:root[data-theme="dark"] .map-live-label,
:root[data-theme="dark"] .courier-map-hud {
  background: rgba(18, 24, 39, 0.94);
}

.tracking-panel,
.courier-panel {
  position: relative;
  z-index: 8;
  overflow-y: auto;
  padding: 28px 30px 76px;
  border-left: 1px solid var(--pd-border);
  background: var(--pd-surface);
}

@media (min-width: 901px) {
  :root:not([data-theme="dark"]) .tracking-panel,
  :root:not([data-theme="dark"]) .courier-panel {
    border-left-color: var(--pd-border-strong);
    background: #f9fbfa;
    box-shadow: -14px 0 34px rgba(13, 18, 32, 0.1);
  }
}

.panel-topline,
.tracking-title-row,
.courier-order-heading,
.orders-toolbar,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tracking-title-row {
  align-items: flex-end;
  margin: 16px 0 24px;
}

.tracking-title-row h1,
.courier-order-heading h1,
.dashboard-heading h1 {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.06;
}

.eta-block {
  display: grid;
  text-align: right;
}

.eta-block span {
  color: var(--pd-text-muted);
  font-size: 0.78rem;
}

.eta-block strong {
  font-size: 1.5rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: var(--pd-radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-active {
  color: #05211f;
  background: var(--pd-teal-bright);
}

.status-warning {
  color: #251300;
  background: var(--pd-warning);
}

.status-complete {
  color: var(--pd-white);
  background: var(--pd-navy);
}

:root[data-theme="dark"] .status-complete {
  color: var(--pd-navy);
  background: var(--pd-white);
}

.notice {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-left: 4px solid currentColor;
  border-radius: var(--pd-radius-sm);
  font-size: 0.84rem;
}

.notice-warning {
  color: var(--pd-warning-text);
  background: var(--pd-warning-soft);
}

.notice-success {
  color: var(--pd-link);
  background: var(--pd-success-soft);
}

.courier-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
}

.courier-line img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.courier-line div {
  display: grid;
}

.courier-line span {
  color: var(--pd-text-muted);
  font-size: 0.76rem;
}

.route-summary,
.timeline-section {
  padding-top: 22px;
}

.route-summary h2,
.timeline-section h2,
.orders-section h2 {
  margin-bottom: 16px;
  font-size: 1.12rem;
}

.route-stop {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
}

.route-stop-marker {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 3px solid var(--pd-action);
  border-radius: 50%;
  background: var(--pd-surface);
}

.route-stop-done .route-stop-marker {
  background: var(--pd-action);
}

.route-stop div {
  display: grid;
}

.route-stop span:not(.route-stop-marker),
.route-stop small {
  color: var(--pd-text-muted);
  font-size: 0.76rem;
}

.tracking-actions {
  display: grid;
  gap: 9px;
  padding: 20px 0 6px;
}

.tracking-actions .danger-action {
  justify-content: center;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  min-height: 54px;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--pd-action);
  border-radius: 50%;
  background: var(--pd-surface);
}

.timeline-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--pd-border);
}

.timeline-item time {
  color: var(--pd-text-muted);
  font-size: 0.76rem;
}

.timeline-estimate {
  white-space: nowrap;
}

.timeline-item-pending > div {
  grid-column: 2;
}

.timeline-item-pending strong {
  color: var(--pd-text-muted);
}

.fixed-role-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 430px;
}

.dashboard-shell {
  width: min(var(--pd-page-max), calc(100% - 40px));
  min-height: calc(100svh - var(--pd-header-height) - 52px);
  margin: 0 auto;
  padding: 36px 0 64px;
}
/* The operations surface reuses the landing page's quiet brand-light background. */
.merchant-page {
  position: relative;
  background: var(--pd-canvas);
  isolation: isolate;
}

.merchant-page .dashboard-shell,
.merchant-page .app-footer {
  position: relative;
  z-index: 1;
}

.merchant-page::before {
  position: fixed;
  z-index: 0;
  inset: var(--pd-header-height) 0 0;
  background:
    radial-gradient(
      ellipse 76% 62% at 12% -10%,
      rgba(0, 209, 193, 0.2) 0%,
      rgba(0, 209, 193, 0.075) 44%,
      rgba(255, 255, 255, 0) 74%
    ),
    radial-gradient(
      ellipse 66% 58% at 104% 42%,
      rgba(255, 138, 0, 0.11) 0%,
      rgba(255, 138, 0, 0.035) 46%,
      rgba(255, 255, 255, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 46% 112%,
      rgba(13, 18, 32, 0.055) 0%,
      rgba(13, 18, 32, 0.018) 48%,
      rgba(255, 255, 255, 0) 80%
    ),
    #ffffff;
  content: "";
  pointer-events: none;
}

:root[data-theme="dark"] .merchant-page::before {
  background:
    radial-gradient(
      ellipse 76% 62% at 12% -10%,
      rgba(0, 209, 193, 0.085) 0%,
      rgba(0, 209, 193, 0.024) 44%,
      rgba(9, 13, 23, 0) 74%
    ),
    radial-gradient(
      ellipse 66% 58% at 104% 42%,
      rgba(255, 138, 0, 0.045) 0%,
      rgba(255, 138, 0, 0.012) 46%,
      rgba(9, 13, 23, 0) 76%
    ),
    radial-gradient(
      ellipse 72% 44% at 46% 112%,
      rgba(13, 18, 32, 0.42) 0%,
      rgba(13, 18, 32, 0.12) 48%,
      rgba(9, 13, 23, 0) 80%
    ),
    var(--pd-canvas);
}

@media (min-width: 1281px) {
  .dashboard-shell {
    margin-right: auto;
    margin-left: clamp(40px, 4vw, 72px);
  }
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.dashboard-heading > div > p:last-child {
  margin: 10px 0 0;
  color: var(--pd-text-muted);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 34px;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  background: var(--pd-surface);
}

:root:not([data-theme="dark"]) .dashboard-metrics,
:root:not([data-theme="dark"]) .table-wrap {
  border-color: var(--pd-border-strong);
  box-shadow: 0 12px 30px rgba(13, 18, 32, 0.08);
}

:root:not([data-theme="dark"]) .dashboard-metrics div {
  border-top: 4px solid var(--pd-teal);
}

:root:not([data-theme="dark"]) .dashboard-metrics div:nth-child(2) {
  border-top-color: var(--pd-orange);
}

:root:not([data-theme="dark"]) .dashboard-metrics div:nth-child(3) {
  border-top-color: var(--pd-navy);
}

:root:not([data-theme="dark"]) .dashboard-metrics div:nth-child(4) {
  border-top-color: var(--pd-graphite);
}

.dashboard-metrics div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--pd-border);
  text-align: center;
}

.dashboard-metrics div:last-child {
  border-right: 0;
}

.dashboard-metrics span {
  color: var(--pd-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-metrics strong {
  font-family: var(--pd-font-display);
  font-size: 2rem;
}

.metric-active strong {
  color: var(--pd-link);
}

.metric-delayed strong {
  color: var(--pd-warning-text);
}

.metric-delivered strong {
  color: var(--pd-text-muted);
}

.orders-section {
  padding-top: 10px;
}

.merchant-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--pd-border);
}

.merchant-tabs button {
  position: relative;
  min-height: 48px;
  padding: 10px 2px 12px;
  border: 0;
  color: var(--pd-text-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.merchant-tabs button[aria-selected="true"] {
  color: var(--pd-text);
}

.merchant-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--pd-teal);
  content: "";
}

.merchant-tab-panel[hidden],
.copilot-panel[hidden] {
  display: none;
}

.merchant-operations-layout {
  min-width: 0;
}

.merchant-page.copilot-open {
  overflow: hidden;
}

.merchant-page.copilot-open::before {
  position: fixed;
  z-index: 180;
  inset: 0;
  background: rgba(5, 8, 17, 0.42);
  content: "";
}

.copilot-panel {
  position: fixed;
  z-index: 200;
  top: calc(var(--pd-header-height) + 16px);
  right: 16px;
  bottom: 16px;
  width: min(430px, calc(100% - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, color-mix(in srgb, var(--pd-teal) 16%, transparent), transparent 72%),
    var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-panel);
  box-shadow: var(--pd-shadow-panel);
}


.copilot-collapsed-action {
  display: none;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: var(--pd-text);
  background: transparent;
  border: 0;
  border-radius: var(--pd-radius-sm);
  cursor: pointer;
  text-align: left;
}

.copilot-collapsed-action:hover {
  background: color-mix(in srgb, var(--pd-teal) 10%, transparent);
}

.copilot-collapsed-action img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.copilot-collapsed-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.copilot-collapsed-copy strong {
  font-family: var(--pd-font-display);
  font-size: 0.94rem;
}

.copilot-collapsed-copy span {
  overflow: hidden;
  color: var(--pd-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copilot-expand-mark {
  margin-left: auto;
  color: var(--pd-teal-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

body .copilot-panel.is-collapsed {
  position: fixed;
  z-index: 200;
  top: calc(var(--pd-header-height) + 16px);
  right: 16px;
  bottom: auto;
  width: min(280px, calc(100% - 32px));
  min-height: 72px;
  max-height: 72px;
  padding: 8px;
  overflow: hidden;
}

.copilot-panel.is-collapsed > :not(.copilot-collapsed-action) {
  display: none;
}

.copilot-panel.is-collapsed .copilot-collapsed-action {
  display: flex;
}

@media (min-width: 1360px) {
  .merchant-page .dashboard-shell {
    width: min(1560px, calc(100% - clamp(80px, 8vw, 144px)));
    margin-right: auto;
    margin-left: auto;
  }

  .merchant-operations-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
  }

  .copilot-panel,
  .copilot-panel[hidden] {
    position: sticky;
    z-index: 1;
    top: calc(var(--pd-header-height) + 16px);
    right: auto;
    bottom: auto;
    display: block;
    width: auto;
    max-height: calc(100svh - var(--pd-header-height) - 32px);
    padding: 20px;
  }

  body .copilot-panel.is-collapsed {
    position: sticky;
    top: calc(var(--pd-header-height) + 16px);
    right: auto;
    width: 100%;
    max-height: 72px;
  }
}

.copilot-heading,
.copilot-summary,
.copilot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copilot-heading {
  align-items: flex-start;
}

.copilot-heading h2 {
  margin: 4px 0 8px;
}

.copilot-description {
  margin: 0;
  color: var(--pd-text-muted);
}

.copilot-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
}

.copilot-context .field-label {
  grid-column: 1 / -1;
  margin: 0;
}

.copilot-context .status-chip {
  justify-self: end;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pd-border);
  border-radius: 50%;
  color: var(--pd-text);
  background: var(--pd-surface);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.copilot-empty {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  background: var(--pd-surface-muted);
}

.copilot-empty .button {
  justify-self: start;
  margin-top: 8px;
}

.copilot-review {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--pd-border);
}

.copilot-review[hidden] {
  display: none;
}

.copilot-summary,
.copilot-rationale,
.copilot-actions {
  grid-column: auto;
}

.copilot-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: stretch;
}

.copilot-summary > div {
  display: grid;
  min-width: 150px;
}

.copilot-message textarea {
  min-height: 110px;
}

.copilot-rationale {
  margin: 0;
  color: var(--pd-text-muted);
}

.copilot-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.copilot-actions .button {
  width: 100%;
}

.copilot-tools {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--pd-border);
}

.copilot-tools summary {
  min-height: 44px;
  padding: 11px 0;
  cursor: pointer;
  font-weight: 700;
}

.status-review {
  background: color-mix(in srgb, var(--pd-teal) 14%, var(--pd-surface));
  color: var(--pd-link);
  border: 1px solid color-mix(in srgb, var(--pd-teal) 28%, transparent);
}

.orders-table td .status-review {
  margin-top: 6px;
}

.orders-table tr.is-copilot-selected td {
  background: color-mix(in srgb, var(--pd-teal) 9%, var(--pd-surface));
}

.copilot-action {
  color: var(--pd-link);
  background: color-mix(in srgb, var(--pd-teal) 10%, transparent);
}

.pricing-panel {
  margin-top: 0;
  padding: clamp(20px, 3vw, 36px);
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-panel);
}

.pricing-heading,
.pricing-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pricing-heading h2 {
  margin: 4px 0 8px;
}

.pricing-heading p {
  max-width: 720px;
  margin-bottom: 0;
}

.pricing-refresh {
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--pd-text-muted);
  font-size: 0.875rem;
}

.loading-state {
  margin: 24px 0 0;
  color: var(--pd-text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 28px;
  margin-top: 28px;
}

.pricing-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 12px;
  text-align: left;
  white-space: pre-line;
  border-bottom: 1px solid var(--pd-border);
}

.pricing-table th {
  color: var(--pd-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pricing-table a {
  color: var(--pd-link);
  font-weight: 700;
}

.pricing-unit {
  color: var(--pd-text-muted);
  font-size: 0.8rem;
}

.pricing-status {
  display: inline-flex;
  max-width: 150px;
  padding: 6px 8px;
  border-radius: var(--pd-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-status-online_verified {
  background: var(--pd-success-soft);
  color: var(--pd-link);
}

.pricing-status-source_changed,
.pricing-status-stale_snapshot {
  background: var(--pd-warning-soft);
  color: var(--pd-warning-text);
}

.pricing-status-unavailable {
  background: var(--pd-surface-muted);
  color: var(--pd-text-muted);
}

.cost-calculator {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--pd-surface) 96%, var(--pd-teal)) 0%,
      var(--pd-surface) 46%,
      color-mix(in srgb, var(--pd-surface) 94%, var(--pd-orange)) 100%
    ),
    var(--pd-surface);
  border-radius: var(--pd-radius-md);
}

:root[data-theme="dark"] .cost-calculator {
  background:
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--pd-surface) 92%, var(--pd-teal)) 0%,
      var(--pd-surface) 48%,
      color-mix(in srgb, var(--pd-surface) 95%, var(--pd-orange)) 100%
    ),
    var(--pd-surface);
}

.cost-calculator h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.cost-calculator label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.calculator-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--pd-border);
}

.fx-fieldset label {
  display: flex;
  align-items: center;
}

.fx-fieldset label:last-child {
  grid-column: 1 / -1;
  display: grid;
}

.cost-output {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: color-mix(in srgb, var(--pd-surface) 93%, white);
}

:root[data-theme="dark"] .cost-output {
  background: color-mix(in srgb, var(--pd-surface) 96%, white);
}

.cost-output strong {
  font-size: 1.65rem;
}

.cost-output small {
  color: var(--pd-text-muted);
}

.provider-recommendation {
  padding-top: 14px;
  border-top: 1px solid var(--pd-border);
}

.provider-recommendation p {
  margin: 6px 0 0;
}

@media (max-width: 920px) {
  .pricing-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-refresh {
    justify-items: start;
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .copilot-review,
  .calculator-pair {
    grid-template-columns: 1fr;
  }

  .copilot-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .copilot-actions .button {
    width: 100%;
  }

  .cost-calculator {
    padding: 18px;
  }

  .fx-fieldset {
    grid-template-columns: 1fr;
  }

  .fx-fieldset label:last-child {
    grid-column: auto;
  }
}

.search-field {
  width: min(360px, 100%);
}

.order-filters {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  background: var(--pd-surface);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.orders-table th,
.orders-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--pd-border);
  border-right: 1px solid var(--pd-border);
  vertical-align: middle;
}

.orders-table th:last-child,
.orders-table td:last-child {
  border-right: 0;
}

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

:root:not([data-theme="dark"]) .orders-table th {
  color: #31404a;
  background: #d4e3df;
}

:root:not([data-theme="dark"]) .orders-table tbody tr:hover td {
  background: #f3f7f6;
}

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

.orders-table td strong,
.orders-table td small {
  display: block;
}

.orders-table td .order-id-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: var(--pd-radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.priority-badge-high {
  color: #251300;
  background: var(--pd-warning);
}

.priority-badge-normal {
  border-color: var(--pd-border);
  color: var(--pd-text-muted);
  background: var(--pd-surface-muted);
}

.orders-table td small {
  margin-top: 3px;
  color: var(--pd-text-muted);
  font-size: 0.75rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.table-actions .text-action {
  min-height: 44px;
  font-size: 0.78rem;
}

.empty-state {
  padding: 30px;
  color: var(--pd-text-muted);
  text-align: center;
}

dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  color: var(--pd-text);
  background: var(--pd-surface);
  box-shadow: var(--pd-shadow-panel);
}

dialog::backdrop {
  background: rgba(5, 8, 17, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pd-border);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.checkbox-field {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-sm);
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
}

.full-field {
  grid-column: 1 / -1;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dialog-actions span {
  color: var(--pd-text-muted);
  font-size: 0.78rem;
}

.created-order {
  display: grid;
  gap: 14px;
}

.created-order h3,
.created-order p {
  margin: 0;
}

.created-order .button {
  justify-self: start;
}

.courier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 480px;
  height: calc(100svh - var(--pd-header-height));
  min-height: 650px;
  overflow: hidden;
}

.courier-map-hud {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
}

.courier-map-hud .live-indicator {
  grid-row: 1 / span 2;
}

.courier-map-hud span:not(.live-indicator) {
  color: var(--pd-text-muted);
  font-size: 0.7rem;
}

.courier-order-heading {
  margin: 14px 0 24px;
}

.courier-order-heading strong {
  color: var(--pd-link);
  font-size: 1.3rem;
}

.delivery-details {
  margin: 0;
  border-top: 1px solid var(--pd-border);
}

.delivery-details div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--pd-border);
}

.delivery-details dt {
  color: var(--pd-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.delivery-details dd {
  margin: 0;
  font-weight: 700;
}

.courier-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.proof-dialog {
  width: min(460px, calc(100% - 32px));
}

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

.proof-dialog .field-error {
  color: var(--pd-danger);
}

.toast-region {
  position: fixed;
  z-index: 300;
  right: auto;
  bottom: 68px;
  left: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--pd-border);
  border-left: 4px solid var(--pd-action);
  border-radius: var(--pd-radius-sm);
  color: var(--pd-text);
  background: var(--pd-surface);
  box-shadow: var(--pd-shadow-panel);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--pd-speed-base) var(--pd-ease), transform var(--pd-speed-base) var(--pd-ease);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-warning {
  border-left-color: var(--pd-warning);
}

.toast-success {
  border-left-color: var(--pd-action);
}

@media (min-width: 641px) {
  .orders-table {
    min-width: 900px;
    table-layout: fixed;
  }

  .orders-table th:nth-child(1) { width: 12%; }
  .orders-table th:nth-child(2) { width: 16%; }
  .orders-table th:nth-child(3) { width: 8%; }
  .orders-table th:nth-child(4) { width: 8%; }
  .orders-table th:nth-child(5) { width: 10%; }
  .orders-table th:nth-child(6) { width: 15%; }
  .orders-table th:nth-child(7) { width: 31%; }

  .orders-table th:nth-child(5),
  .orders-table td:nth-child(5),
  .orders-table th:nth-child(6),
  .orders-table td:nth-child(6) {
    padding-right: 10px;
    padding-left: 10px;
  }

  .orders-table td:first-child strong {
    white-space: nowrap;
  }

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

  .table-actions .text-action {
    justify-content: center;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    font-size: 0.76rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .landing-page .header-inner {
    position: relative;
  }

  .landing-page.nav-open .app-header {
    height: 100dvh;
    min-height: 100dvh;
    background: var(--pd-surface);
    backdrop-filter: none;
  }

  .site-nav-toggle {
    position: relative;
    z-index: 260;
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav.is-open {
    position: fixed;
    z-index: 250;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(220px, 420px);
    gap: 8px;
    align-content: center;
    justify-content: center;
    padding: 104px 24px 32px;
    border: 0;
    border-radius: 0;
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow-panel);
  }

  .site-nav.is-open a {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .section-heading h2,
  .product-copy h2,
  .contact-band h2 {
    font-size: 2.4rem;
  }

  .product-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  }

  .product-copy {
    padding: 56px 36px;
  }

  .tracking-workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .fixed-role-bar {
    width: 390px;
  }

  .courier-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .app-header,
  .header-inner {
    min-height: auto;
  }

  .compact-header {
    position: relative;
  }

  .brand-link img {
    width: 224px;
    height: 48px;
  }

  .role-switch {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .role-switch a {
    flex: 1 0 auto;
    text-align: center;
  }

  .landing-hero {
    height: 720px;
  }

  .hero-map-stage::after {
    background: linear-gradient(
      180deg,
      var(--pd-landing-hero-scrim-strong) 0%,
      var(--pd-landing-hero-scrim-mid) 48%,
      var(--pd-landing-hero-scrim-soft) 66%,
      var(--pd-landing-hero-scrim-clear) 88%
    );
  }

  :root[data-theme="dark"] .hero-map-stage::after {
    background: linear-gradient(
      180deg,
      rgba(7, 12, 21, 0.94) 0%,
      rgba(7, 12, 21, 0.82) 56%,
      rgba(7, 12, 21, 0.22) 78%,
      rgba(7, 12, 21, 0.08) 100%
    );
  }

  .hero-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 160px;
  }

  .hero-live-status {
    align-self: flex-end;
  }

  .role-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .role-item,
  .metric-row div {
    border-right: 0;
    border-bottom: 0;
  }

  .role-item {
    min-height: 220px;
  }

  .metric-row div {
    min-height: 148px;
  }

  .role-item:last-child,
  .metric-row div:last-child {
    border-bottom: 0;
  }

  .role-item p {
    min-height: auto;
  }

  .product-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-map-wrap {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .tracking-workspace,
  .courier-layout {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .tracking-workspace.is-empty {
    display: grid;
    min-height: calc(100svh - 196px);
    padding: 20px;
  }

  .tracking-map-wrap,
  .courier-map-section {
    height: 52svh;
    min-height: 390px;
  }

  .tracking-panel,
  .courier-panel {
    overflow: visible;
    padding-bottom: 76px;
    border-top: 1px solid var(--pd-border);
    border-left: 0;
  }

  .fixed-role-bar {
    position: relative;
    width: 100%;
  }

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

  .dashboard-metrics div:nth-child(2) {
    border-right: 0;
  }

  .dashboard-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--pd-border);
  }

  .copilot-panel {
    top: 16px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner,
  .dashboard-shell {
    width: min(100% - 28px, var(--pd-page-max));
  }

  .landing-page .header-inner {
    gap: 8px;
    justify-content: center;
    padding: 8px 0 10px;
  }

  .copilot-panel {
    inset: 0;
    width: 100%;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .landing-page .brand-link {
    width: 100%;
  }

  .landing-page .site-nav-toggle {
    margin-left: 0;
  }

  .site-nav.is-open {
    grid-template-columns: minmax(0, 1fr);
  }

  html {
    scroll-padding-top: 148px;
  }

  #service,
  #tracking,
  #results,
  #contact {
    scroll-margin-top: 148px;
  }

  .landing-page .brand-link img {
    width: 224px;
    height: 48px;
    margin: 0 auto;
  }

  .header-tools {
    margin-left: auto;
  }

  .landing-page .header-tools {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .compact-header .brand-link {
    width: 100%;
  }

  .compact-header .brand-link img {
    width: 224px;
    height: 48px;
    margin: 0 auto;
  }

  .compact-header .header-tools {
    width: 100%;
    justify-content: center;
  }

  .landing-hero {
    min-height: 650px;
    height: 760px;
  }

  .hero-inner {
    justify-content: center;
    padding: 132px 0 44px;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
    line-height: 1.05;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-live-status {
    align-self: flex-start;
  }

  .demo-role-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 6px 10px;
  }

  .demo-role-bar > * {
    min-width: 0;
  }

  .demo-role-bar > span {
    display: none;
  }

  .demo-role-bar a {
    text-align: center;
  }

  .demo-role-bar button {
    grid-column: 1 / -1;
  }

  .content-band,
  .contact-band {
    padding: 72px 0;
  }

  :root:not([data-theme="dark"]) .landing-page #service {
    background:
      radial-gradient(
        ellipse 118% 46% at -20% -8%,
        rgba(0, 209, 193, 0.2) 0%,
        rgba(0, 209, 193, 0.07) 46%,
        rgba(255, 255, 255, 0) 78%
      ),
      radial-gradient(
        ellipse 108% 38% at 122% 48%,
        rgba(255, 138, 0, 0.1) 0%,
        rgba(255, 138, 0, 0.028) 48%,
        rgba(255, 255, 255, 0) 80%
      ),
      radial-gradient(
        ellipse 120% 30% at 46% 106%,
        rgba(13, 18, 32, 0.05) 0%,
        rgba(13, 18, 32, 0.014) 52%,
        rgba(255, 255, 255, 0) 82%
      ),
      #ffffff;
  }

  :root[data-theme="dark"] .landing-page #service {
    background:
      radial-gradient(
        ellipse 118% 46% at -20% -8%,
        rgba(0, 209, 193, 0.08) 0%,
        rgba(0, 209, 193, 0.02) 46%,
        rgba(9, 13, 23, 0) 78%
      ),
      radial-gradient(
        ellipse 108% 38% at 122% 48%,
        rgba(255, 138, 0, 0.04) 0%,
        rgba(255, 138, 0, 0.009) 48%,
        rgba(9, 13, 23, 0) 80%
      ),
      radial-gradient(
        ellipse 120% 30% at 46% 106%,
        rgba(13, 18, 32, 0.4) 0%,
        rgba(13, 18, 32, 0.1) 52%,
        rgba(9, 13, 23, 0) 82%
      ),
      var(--pd-canvas);
  }

  :root:not([data-theme="dark"]) .landing-page .results-band {
    background:
      radial-gradient(
        ellipse 118% 46% at 120% -8%,
        rgba(0, 184, 169, 0.17) 0%,
        rgba(0, 209, 193, 0.055) 46%,
        rgba(255, 255, 255, 0) 78%
      ),
      radial-gradient(
        ellipse 108% 38% at -22% 54%,
        rgba(255, 138, 0, 0.085) 0%,
        rgba(255, 138, 0, 0.024) 48%,
        rgba(255, 255, 255, 0) 80%
      ),
      radial-gradient(
        ellipse 120% 30% at 56% 106%,
        rgba(13, 18, 32, 0.05) 0%,
        rgba(13, 18, 32, 0.014) 52%,
        rgba(255, 255, 255, 0) 82%
      ),
      #ffffff;
  }

  :root[data-theme="dark"] .landing-page .results-band {
    background:
      radial-gradient(
        ellipse 118% 46% at 120% -8%,
        rgba(0, 209, 193, 0.075) 0%,
        rgba(0, 209, 193, 0.018) 46%,
        rgba(23, 36, 51, 0) 78%
      ),
      radial-gradient(
        ellipse 108% 38% at -22% 54%,
        rgba(255, 138, 0, 0.035) 0%,
        rgba(255, 138, 0, 0.008) 48%,
        rgba(23, 36, 51, 0) 80%
      ),
      radial-gradient(
        ellipse 120% 30% at 56% 106%,
        rgba(13, 18, 32, 0.4) 0%,
        rgba(13, 18, 32, 0.1) 52%,
        rgba(23, 36, 51, 0) 82%
      ),
      var(--pd-surface-muted);
  }

  .section-heading h2,
  .product-copy h2,
  .contact-band h2 {
    font-size: 2rem;
  }

  .role-grid {
    margin-top: 38px;
  }

  .role-item {
    min-height: 210px;
    padding: 26px 24px 24px;
  }

  .role-item h3 {
    margin: 0 0 8px;
  }

  .role-cta {
    margin-top: 24px;
  }

  .product-map-wrap {
    min-height: 430px;
  }

  .product-copy {
    padding: 48px 20px 56px;
  }

  .metric-row div {
    min-height: 136px;
    padding: 24px;
  }

  .contact-layout {
    gap: 36px;
  }

  .lead-form,
  .order-form {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 16px;
  }

  .lead-form label,
  .order-form label,
  .lead-form .button,
  .lead-form .form-note,
  .lead-form .inline-success,
  .full-field,
  .checkbox-field {
    grid-column: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-map-wrap,
  .courier-map-section {
    height: 46svh;
    min-height: 340px;
  }

  .tracking-panel,
  .courier-panel {
    padding: 22px 18px 70px;
  }

  .courier-panel {
    padding-bottom: 156px;
  }

  .courier-actions {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--pd-border);
    background: var(--pd-surface);
    box-shadow: 0 -10px 24px rgba(13, 18, 32, 0.14);
  }

  .courier-actions .field-label {
    display: none;
  }

  .courier-actions .button {
    min-width: 0;
    min-height: 52px;
    padding-inline: 10px;
    white-space: normal;
  }

  .courier-layout + .demo-role-bar {
    padding-bottom: 76px;
  }

  .courier-page .toast-region {
    bottom: 88px;
  }

  .tracking-title-row h1,
  .courier-order-heading h1,
  .dashboard-heading h1 {
    font-size: 1.8rem;
  }

  .dashboard-shell {
    padding-top: 30px;
  }

  .dashboard-heading,
  .orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-heading .button,
  .search-field {
    width: 100%;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-metrics div {
    padding: 18px 14px;
  }

  .dashboard-metrics strong {
    font-size: 1.65rem;
  }

  .order-filters {
    display: flex;
    overflow-x: auto;
  }

  .order-filters button {
    flex: 0 0 auto;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tr {
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-md);
    background: var(--pd-surface);
  }

  .orders-table td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pd-border);
    border-right: 0;
    text-align: center;
  }

  .orders-table td::before {
    content: attr(data-label);
    color: var(--pd-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

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

  .delivery-details div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  dialog {
    padding: 18px;
  }

  .dialog-header {
    align-items: flex-start;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
