﻿: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;
    }

    .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;
    }

    @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; }
      .right { grid-template-columns: repeat(3, 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; }
      .right { 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; }
      .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; }
    }

