﻿:root {
      --nav: #061d35;
      --nav-dark: #02111f;
      --page: #f4f8fc;
      --panel: #ffffff;
      --ink: #102033;
      --muted: #66758a;
      --line: #dce6f2;
      --blue: #2388f2;
      --cyan: #10b8cf;
      --green: #2ab56f;
      --amber: #f3a63b;
      --shadow: 0 12px 32px rgba(16, 32, 51, .08);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, Arial, sans-serif;
      color: var(--ink);
      background: var(--page);
    }

    button { font: inherit; }

    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 230px minmax(0, 1fr);
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      padding: 24px 16px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      color: #d8e6f7;
      background:
        radial-gradient(circle at 0 0, rgba(0, 174, 202, .16), transparent 30%),
        linear-gradient(180deg, var(--nav), var(--nav-dark));
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 8px 12px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      color: white;
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
    }

    .brand strong {
      display: block;
      color: white;
      font-size: 20px;
      text-transform: uppercase;
      line-height: 1;
    }

    .brand span {
      display: block;
      color: #c3d5eb;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 4px;
      text-transform: uppercase;
      margin-top: 5px;
    }

    .nav {
      display: grid;
      gap: 7px;
    }

    .nav a {
      min-height: 45px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 14px;
      color: #d7e5f8;
      text-decoration: none;
      font-size: 13px;
      font-weight: 750;
    }

    .nav a.active {
      color: white;
      background: linear-gradient(90deg, rgba(0, 174, 202, .5), rgba(35, 136, 242, .18));
    }

    .help {
      margin-top: auto;
      padding: 18px;
      border-radius: 8px;
      background: linear-gradient(145deg, rgba(0, 174, 202, .32), rgba(8, 63, 93, .92));
      border: 1px solid rgba(105, 221, 237, .24);
    }

    .help strong {
      display: block;
      color: white;
      font-size: 14px;
      margin-bottom: 8px;
    }

    .help p {
      margin: 0 0 14px;
      color: #d8f7ff;
      font-size: 12px;
      line-height: 1.45;
    }

    .help button {
      width: 100%;
      min-height: 38px;
      border: 1px solid rgba(255, 255, 255, .62);
      border-radius: 8px;
      color: white;
      background: rgba(255, 255, 255, .06);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }

    .copyright {
      color: #8098b3;
      font-size: 11px;
      padding: 0 10px;
    }

    main {
      padding: 18px;
      overflow: hidden;
    }

    .topbar {
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 16px;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 9px;
      color: #607086;
      font-size: 13px;
      font-weight: 800;
    }

    .breadcrumb strong { color: #12233a; }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .bell {
      width: 38px;
      height: 38px;
      border: 0;
      background: transparent;
      color: #223b58;
      display: grid;
      place-items: center;
      position: relative;
      cursor: pointer;
    }

    .bell span {
      position: absolute;
      top: 4px;
      right: 4px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #f04438;
      color: white;
      font-size: 10px;
      font-weight: 900;
      border: 2px solid white;
    }

    .account {
      border: 0;
      background: transparent;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #12233a;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }

    .avatar {
      width: 31px;
      height: 31px;
      border-radius: 50%;
      background: #08294e;
      color: white;
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 900;
    }

    .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 282px;
      gap: 16px;
    }

    .left {
      display: grid;
      gap: 16px;
      min-width: 0;
    }

    .right {
      display: grid;
      align-content: start;
      gap: 16px;
      min-width: 0;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
    }

    .shipment {
      padding: 18px 20px;
    }

    .shipment-top {
      display: grid;
      grid-template-columns: 62px minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
    }

    .ship-badge {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #edf5ff;
    }

    .updated {
      align-self: start;
      display: flex;
      gap: 8px;
      align-items: center;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      white-space: nowrap;
    }

    .eyebrow {
      margin: 0 0 6px;
      color: #0fa9bd;
      font-size: 11px;
      font-weight: 900;
    }

    .route {
      margin: 0 0 16px;
      font-size: 24px;
      letter-spacing: 0;
      line-height: 1.1;
    }

    .route span { color: var(--blue); }

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

    .label {
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
    }

    .value {
      margin: 0;
      color: #172a43;
      font-size: 12px;
      font-weight: 900;
    }

    .status {
      padding: 10px 20px;
      border-radius: 7px;
      background: #e7f8f1;
      color: #168c55;
      font-size: 12px;
      font-weight: 900;
    }

    .metric-strip {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      overflow: hidden;
    }

    .metric {
      min-height: 78px;
      padding: 16px;
      border-right: 1px solid #e7eef7;
      display: flex;
      align-items: center;
      gap: 12px;
    }

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

    .metric-icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #edf5ff;
      flex: 0 0 auto;
    }

    .metric strong {
      display: block;
      font-size: 13px;
      margin-top: 3px;
    }

    .metric small {
      display: block;
      color: var(--muted);
      font-size: 10px;
      margin-top: 4px;
      font-weight: 700;
      line-height: 1.35;
    }

    .metric .progress-ring {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: conic-gradient(var(--cyan) 52%, #d9edf2 0);
      display: grid;
      place-items: center;
    }

    .metric .progress-ring::after {
      content: "";
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: white;
    }

    .tracking-grid {
      display: grid;
      grid-template-columns: 230px minmax(0, 1fr);
      gap: 16px;
    }

    .timeline {
      padding: 18px;
    }

    .section-title {
      margin: 0 0 17px;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .steps {
      display: grid;
    }

    .step {
      position: relative;
      min-height: 58px;
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr);
      gap: 10px;
    }

    .step:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 13px;
      top: 27px;
      bottom: -2px;
      width: 2px;
      background: #d2ddeb;
    }

    .step.done:not(:last-child)::before { background: var(--green); }

    .step-mark {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      border: 2px solid #d2ddeb;
      display: grid;
      place-items: center;
      background: white;
      color: #90a0b4;
      z-index: 1;
    }

    .step.done .step-mark {
      border-color: var(--green);
      background: var(--green);
      color: white;
    }

    .step.active .step-mark {
      border-color: var(--blue);
      background: var(--blue);
      color: white;
    }

    .step strong {
      display: block;
      font-size: 11px;
      line-height: 1.35;
    }

    .step span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      line-height: 1.35;
    }

    .step.active strong { color: var(--blue); }

    .map-panel {
      padding: 16px;
      overflow: hidden;
    }

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

    .map-button {
      min-height: 31px;
      border: 1px solid #d7e3f0;
      border-radius: 7px;
      background: white;
      color: #23435f;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 0 10px;
      font-size: 11px;
      font-weight: 850;
      cursor: pointer;
    }

    .map {
      position: relative;
      height: 300px;
      border: 1px solid #dce6f2;
      border-radius: 8px;
      overflow: hidden;
      background:
        linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
        url("https://upload.wikimedia.org/wikipedia/commons/9/97/North_Pacific_Ocean_map.jpg") center / cover;
    }

    .map::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(224, 243, 255, .5);
      pointer-events: none;
    }

    .tracking-leaflet-map {
      background: #e8f0f8;
    }

    .tracking-leaflet-map::after {
      content: none;
    }

    .tracking-map-loading {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      text-align: center;
    }

    .tracking-marker {
      width: 34px;
      height: 34px;
      border: 3px solid #fff;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      box-shadow: 0 12px 28px rgba(10, 32, 58, .2);
    }

    .tracking-marker.endpoint {
      background: var(--green);
    }

    .tracking-marker.event {
      background: var(--blue);
    }

    .tracking-marker svg {
      width: 17px;
      height: 17px;
    }

    .leaflet-popup-content {
      display: grid;
      gap: 4px;
      color: #0c1a2d;
      font-family: Inter, sans-serif;
      font-size: 12px;
      font-weight: 750;
    }

    .leaflet-popup-content strong {
      font-size: 13px;
      font-weight: 900;
    }

    .leaflet-popup-content span,
    .leaflet-popup-content small {
      color: #526174;
      line-height: 1.35;
    }

    .dash-route {
      position: absolute;
      z-index: 2;
      left: 10%;
      right: 11%;
      top: 42%;
      height: 82px;
      border-top: 3px dashed rgba(0, 174, 202, .88);
      border-radius: 50% 50% 0 0;
      transform: rotate(7deg);
    }

    .map-pin {
      position: absolute;
      z-index: 3;
      display: grid;
      justify-items: center;
      gap: 6px;
      color: #093a68;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .map-pin em {
      font-style: normal;
      border-radius: 5px;
      background: white;
      padding: 4px 7px;
      box-shadow: 0 5px 14px rgba(16, 32, 51, .14);
    }

    .map-pin span {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: white;
      border: 4px solid #077da8;
    }

    .shanghai { left: 9%; top: 35%; }
    .manzanillo { right: 12%; top: 50%; }

    .ship-position {
      position: absolute;
      z-index: 4;
      left: 48%;
      top: 38%;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: white;
      box-shadow: 0 16px 34px rgba(35, 136, 242, .26);
    }

    .map-controls {
      position: absolute;
      right: 13px;
      bottom: 13px;
      z-index: 5;
      display: grid;
      gap: 7px;
    }

    .map-controls button {
      width: 31px;
      height: 31px;
      border: 1px solid #d7e3f0;
      border-radius: 7px;
      background: white;
      color: #23435f;
      display: grid;
      place-items: center;
    }

    .route-progress {
      margin-top: 13px;
      padding: 0 34px 10px;
    }

    .rail {
      height: 5px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--cyan) 0 52%, #cfd9e8 52% 100%);
      position: relative;
      margin-bottom: 12px;
    }

    .rail i {
      position: absolute;
      top: 50%;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      border: 3px solid var(--cyan);
      background: white;
      transform: translate(-50%, -50%);
    }

    .rail i:nth-child(1) { left: 0; }
    .rail i:nth-child(2) { left: 25%; }
    .rail i:nth-child(3) { left: 52%; border-color: #6f7f93; }
    .rail i:nth-child(4) { left: 75%; border-color: #6f7f93; }
    .rail i:nth-child(5) { left: 100%; border-color: #6f7f93; }

    .ports {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      text-align: center;
    }

    .ports strong {
      display: block;
      font-size: 10px;
      line-height: 1.25;
    }

    .ports span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      line-height: 1.25;
    }

    .docs {
      padding: 16px;
    }

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

    .doc {
      min-height: 58px;
      border: 1px solid #e1e9f4;
      border-radius: 8px;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 10px;
      padding: 10px;
    }

    .doc i { color: var(--blue); }

    .doc strong {
      display: block;
      font-size: 11px;
    }

    .doc span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
    }

    .side-card {
      padding: 18px;
    }

    .side-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 15px;
    }

    .side-title h2 {
      margin: 0;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .side-title a {
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
      text-decoration: none;
    }

    .alerts {
      display: grid;
      gap: 16px;
    }

    .alert {
      display: grid;
      grid-template-columns: 27px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
    }

    .alert-mark {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #e7f8f1;
      color: var(--green);
    }

    .alert.info .alert-mark { background: #edf5ff; color: var(--blue); }
    .alert.warn .alert-mark { background: #fff4df; color: var(--amber); }

    .alert strong {
      display: block;
      font-size: 11px;
      line-height: 1.35;
    }

    .alert span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      line-height: 1.35;
    }

    .alert time {
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      white-space: nowrap;
    }

    .details {
      display: grid;
      gap: 12px;
      font-size: 11px;
    }

    .detail {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-weight: 750;
    }

    .detail strong {
      color: #152942;
      text-align: right;
      font-weight: 900;
    }

    .more {
      width: 100%;
      min-height: 34px;
      margin-top: 16px;
      border: 1px solid #d7e3f0;
      border-radius: 7px;
      background: white;
      color: #23435f;
      font-size: 11px;
      font-weight: 850;
      cursor: pointer;
    }

    .contact {
      display: grid;
      justify-items: center;
      text-align: center;
      gap: 10px;
    }

    .agent-photo {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background:
        linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
        url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=160&q=80") center / cover;
    }

    .contact small {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 750;
    }

    .contact strong {
      display: block;
      font-size: 12px;
      margin-top: 3px;
    }

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

    .contact-actions button {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #edf5ff;
      cursor: pointer;
    }

    .tracking-page {
      display: grid;
      gap: 16px;
    }

    .tracking-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 16px;
      align-items: start;
    }

    .tracking-main {
      display: grid;
      gap: 16px;
      min-width: 0;
    }

    .tracking-hero {
      min-height: 150px;
      padding: 22px;
      display: grid;
      grid-template-columns: 66px minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
    }

    .tracking-hero-icon {
      width: 58px;
      height: 58px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #edf5ff;
    }

    .tracking-hero-icon i {
      width: 30px;
      height: 30px;
    }

    .tracking-hero h2 {
      margin: 0;
      font-size: 28px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .tracking-hero h2 span {
      color: var(--blue);
    }

    .tracking-hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .tracking-hero-meta span {
      min-height: 28px;
      border: 1px solid #dce6f2;
      border-radius: 8px;
      padding: 0 9px;
      display: inline-flex;
      align-items: center;
      color: var(--muted);
      background: #f8fbff;
      font-size: 11px;
      font-weight: 850;
    }

    .tracking-hero-status {
      min-width: 92px;
      border-radius: 8px;
      padding: 14px;
      background: #e7f8f1;
      text-align: center;
    }

    .tracking-hero-status strong {
      display: block;
      color: var(--green);
      font-size: 28px;
      line-height: 1;
    }

    .tracking-hero-status span {
      display: block;
      margin-top: 7px;
      color: #168c55;
      font-size: 11px;
      font-weight: 900;
    }

    .tracking-actions-strip {
      min-height: 58px;
      padding: 10px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .tracking-actions-strip a {
      min-height: 38px;
      border: 1px solid #dce6f2;
      border-radius: 8px;
      background: #f8fbff;
      color: var(--ink);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 900;
    }

    .tracking-actions-strip a:first-child {
      border-color: var(--blue);
      background: var(--blue);
      color: #fff;
    }

    .tracking-next-action {
      padding: 16px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      border-left: 4px solid var(--blue);
    }

    .tracking-next-action span {
      display: block;
      color: var(--blue);
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .tracking-next-action strong {
      display: block;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.25;
    }

    .tracking-next-action p {
      max-width: 620px;
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.45;
    }

    .tracking-next-action a {
      min-height: 40px;
      border-radius: 8px;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff;
      background: var(--blue);
      text-decoration: none;
      font-size: 12px;
      font-weight: 950;
      white-space: nowrap;
    }

    .tracking-next-action.warning {
      border-left-color: var(--amber);
    }

    .tracking-next-action.warning span {
      color: #b96d00;
    }

    .tracking-next-action.warning a {
      background: var(--amber);
    }

    .tracking-next-action.danger {
      border-left-color: #ef4444;
    }

    .tracking-next-action.danger span {
      color: #dc2626;
    }

    .tracking-next-action.danger a {
      background: #dc2626;
    }

    .tracking-next-action.success {
      border-left-color: var(--green);
    }

    .tracking-next-action.success span {
      color: var(--green);
    }

    .tracking-next-action.success a {
      background: var(--green);
    }

    .tracking-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      overflow: hidden;
    }

    .tracking-metrics article {
      min-height: 92px;
      border-right: 1px solid #e7eef7;
      padding: 16px;
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }

    .tracking-metrics article:last-child {
      border-right: 0;
    }

    .tracking-metrics i {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: var(--blue);
      background: #edf5ff;
    }

    .tracking-metrics span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    .tracking-metrics strong {
      display: block;
      margin-top: 5px;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.25;
    }

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

    .tracking-timeline-panel,
    .tracking-map-panel {
      padding: 18px;
    }

    .tracking-steps-clean {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 18px;
    }

    .tracking-steps-clean div {
      min-height: 40px;
      border: 1px solid #dce6f2;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 10px;
      color: var(--muted);
      background: #f8fbff;
      font-size: 11px;
      font-weight: 850;
    }

    .tracking-steps-clean b {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #e8eef6;
      color: #718198;
      font-size: 10px;
      flex: 0 0 auto;
    }

    .tracking-steps-clean .done {
      color: #0d7d47;
      border-color: rgba(42, 181, 111, .28);
      background: #e7f8f1;
    }

    .tracking-steps-clean .done b {
      color: white;
      background: var(--green);
    }

    .timeline-feed {
      display: grid;
      gap: 0;
    }

    .timeline-feed-item {
      position: relative;
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr);
      gap: 10px;
      padding-bottom: 18px;
    }

    .timeline-feed-item:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 15px;
      top: 31px;
      bottom: -2px;
      width: 2px;
      background: #d7e3f0;
    }

    .feed-dot {
      position: relative;
      z-index: 1;
      width: 31px;
      height: 31px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: white;
      background: var(--green);
    }

    .feed-dot.current {
      background: var(--blue);
    }

    .timeline-feed-item strong {
      display: block;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.3;
    }

    .timeline-feed-item p {
      margin: 5px 0;
      color: #26374b;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
    }

    .timeline-feed-item small {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.35;
    }

    .tracking-mini-empty,
    .tracking-empty {
      border: 1px dashed #cfdbea;
      border-radius: 8px;
      padding: 24px;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 10px;
      color: var(--muted);
      text-align: center;
    }

    .tracking-empty {
      min-height: 360px;
    }

    .tracking-empty h2,
    .tracking-mini-empty strong {
      margin: 0;
      color: var(--ink);
    }

    .tracking-empty p,
    .tracking-mini-empty span {
      max-width: 460px;
      margin: 0;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.5;
    }

    .route-progress-clean {
      margin-top: 14px;
    }

    .route-progress-bar {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: #dce6f2;
    }

    .route-progress-bar span {
      display: block;
      height: 100%;
      min-width: 8px;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--green), var(--blue));
    }

    .route-progress-labels {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 10px;
      margin-top: 10px;
      align-items: start;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    .route-progress-labels strong:last-child {
      text-align: right;
    }

    .tracking-side {
      display: grid;
      gap: 16px;
    }

    .tracking-shipment-list {
      display: grid;
      gap: 9px;
    }

    .tracking-shipment-list a {
      min-height: 74px;
      border: 1px solid #dce6f2;
      border-radius: 8px;
      padding: 11px;
      display: grid;
      gap: 5px;
      color: var(--ink);
      background: #f8fbff;
      text-decoration: none;
    }

    .tracking-shipment-list a.active {
      border-color: rgba(35, 136, 242, .4);
      background: #edf5ff;
    }

    .tracking-shipment-list span {
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
    }

    .tracking-shipment-list strong {
      color: var(--ink);
      font-size: 12px;
      line-height: 1.25;
    }

    .tracking-shipment-list small {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
    }

    .shipment-mini-progress {
      position: relative;
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: #dce6f2;
    }

    .shipment-mini-progress i {
      display: block;
      height: 100%;
      min-width: 8px;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--green), var(--blue));
    }

    .shipment-mini-progress b {
      position: absolute;
      right: 0;
      top: -18px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 950;
    }

    .tracking-shipment-list em {
      color: #3c536e;
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .clean-more {
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .tracking-notice {
      border: 1px solid #dce6f2;
      border-radius: 8px;
      padding: 12px 14px;
      font-size: 13px;
      font-weight: 850;
    }

    .tracking-notice.success {
      border-color: rgba(21, 179, 116, .24);
      color: #087549;
      background: #eafaf2;
    }

    .tracking-notice.danger {
      border-color: rgba(239, 68, 68, .22);
      color: #b42318;
      background: #fff1f1;
    }

    .tracking-event-mini form {
      display: grid;
      gap: 11px;
    }

    .tracking-event-mini label {
      display: grid;
      gap: 6px;
      color: var(--ink);
      font-size: 11px;
      font-weight: 900;
    }

    .tracking-event-mini input,
    .tracking-event-mini select,
    .tracking-event-mini textarea {
      width: 100%;
      border: 1px solid #d5e0ee;
      border-radius: 8px;
      padding: 10px 11px;
      color: var(--ink);
      background: #f8fbff;
      font: inherit;
      font-size: 12px;
      font-weight: 750;
      outline: none;
    }

    .tracking-event-mini textarea {
      min-height: 96px;
      resize: vertical;
      line-height: 1.45;
    }

    .tracking-event-mini input:focus,
    .tracking-event-mini select:focus,
    .tracking-event-mini textarea:focus {
      border-color: rgba(35, 136, 242, .62);
      box-shadow: 0 0 0 3px rgba(35, 136, 242, .12);
      background: #fff;
    }

    .tracking-event-mini label small {
      color: #b42318;
      font-size: 10px;
      line-height: 1.35;
    }

    .tracking-event-mini .field-hint {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.35;
    }

    .tracking-event-mini .check-line {
      grid-template-columns: 18px 1fr;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 11px;
    }

    .tracking-event-mini .check-line input {
      width: 16px;
      height: 16px;
      padding: 0;
      accent-color: var(--blue);
    }

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

    .tracking-event-mini button {
      min-height: 42px;
      border: 0;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff;
      background: var(--blue);
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }

    .dark-mode .tracking-notice.success {
      border-color: rgba(52, 211, 153, .24);
      color: #8cf3c9;
      background: rgba(16, 185, 129, .12);
    }

    .dark-mode .tracking-notice.danger {
      border-color: rgba(248, 113, 113, .28);
      color: #fecaca;
      background: rgba(248, 113, 113, .12);
    }

    .dark-mode .tracking-event-mini input,
    .dark-mode .tracking-event-mini select,
    .dark-mode .tracking-event-mini textarea {
      border-color: rgba(148, 163, 184, .24);
      color: #e5edf7;
      background: rgba(15, 23, 42, .72);
    }

    .dark-mode .tracking-actions-strip a {
      border-color: rgba(148, 163, 184, .22);
      background: rgba(15, 23, 42, .72);
      color: #e5edf7;
    }

    .dark-mode .tracking-actions-strip a:first-child {
      border-color: #3b82f6;
      background: #2563eb;
      color: #fff;
    }

    .dark-mode .tracking-next-action {
      border-color: rgba(96, 165, 250, .32);
      background: rgba(15, 23, 42, .82);
    }

    .dark-mode .tracking-next-action strong {
      color: #e5edf7;
    }

    .dark-mode .tracking-next-action p,
    .dark-mode .tracking-event-mini .field-hint {
      color: #9fb0c6;
    }

    @media (max-width: 1180px) {
      .app { grid-template-columns: 82px minmax(0, 1fr); }
      .sidebar { align-items: center; padding: 20px 12px; }
      .brand { padding: 0; }
      .brand div:not(.brand-mark), .nav span, .help, .copyright { display: none; }
      .nav a { width: 50px; justify-content: center; padding: 0; }
      .layout { grid-template-columns: 1fr; }
      .tracking-shell { grid-template-columns: 1fr; }
      .right { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .tracking-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
      main { padding: 16px; }
      .topbar { align-items: flex-start; }
      .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .metric { border-bottom: 1px solid #e7eef7; }
      .tracking-grid { grid-template-columns: 1fr; }
      .tracking-workspace { grid-template-columns: 1fr; }
      .tracking-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .tracking-actions-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .right { grid-template-columns: 1fr; }
      .tracking-side { grid-template-columns: 1fr; }
      .doc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .shipment-top { grid-template-columns: 54px minmax(0, 1fr); }
      .updated { grid-column: 1 / -1; }
    }

    @media (max-width: 640px) {
      .app { display: block; }
      .sidebar {
        position: static;
        height: auto;
        display: block;
      }
      .brand div:not(.brand-mark), .nav span { display: block; }
      .nav {
        grid-template-columns: repeat(4, 1fr);
        margin-top: 14px;
      }
      .nav a {
        justify-content: center;
        padding: 0;
      }
      .nav span { display: none !important; }
      .topbar, .top-actions { display: grid; }
      .top-actions { grid-template-columns: auto 1fr; }
      .account { justify-content: end; }
      .tracking-hero {
        grid-template-columns: 1fr;
      }
      .tracking-hero-status {
        width: 100%;
      }
      .tracking-metrics,
      .tracking-actions-strip,
      .tracking-next-action,
      .tracking-steps-clean {
        grid-template-columns: 1fr;
      }
      .tracking-next-action a {
        width: 100%;
      }
      .shipment-meta, .metric-strip, .doc-row { grid-template-columns: 1fr; }
      .map { height: 360px; }
      .route-progress { padding: 0 10px 8px; }
      .ports { grid-template-columns: repeat(2, 1fr); text-align: left; }
    }

