    :root {
      --ink: #12334b;
      --muted: #6b8191;
      --card: rgba(247, 251, 253, 0.88);
      --line: rgba(102, 142, 164, 0.22);
      --blue: #2c75a8;
      --blue-2: #74aed0;
      --cyan: #2aa6bc;
      --teal: #55b7af;
      --green: #3ba178;
      --yellow: #f1c55a;
      --red: #cf574c;
      --shadow: 0 12px 34px rgba(42, 81, 103, 0.16);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      color: var(--ink);
      background:
        linear-gradient(rgba(239, 247, 250, 0.76), rgba(239, 247, 250, 0.76)),
        radial-gradient(circle at 15% 98%, rgba(38, 128, 163, 0.45) 0 9%, transparent 26%),
        radial-gradient(circle at 78% 103%, rgba(67, 165, 184, 0.34) 0 12%, transparent 33%),
        linear-gradient(168deg, #eef4f8 0%, #e9f2f6 44%, #9fc2d0 73%, #3e8ba5 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        repeating-linear-gradient(168deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(12deg, transparent 0 24px, rgba(255, 255, 255, 0.26) 24px 26px, transparent 26px 52px);
      mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);
      opacity: 0.7;
    }

    .page {
      width: min(1180px, calc(100vw - 28px));
      margin: 18px auto 16px;
      position: relative;
    }

    .dashboard {
      min-height: 760px;
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 10px;
    }

    .topbar {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-height: 36px;
    }

    h1 {
      margin: 0;
      font-size: clamp(19px, 2vw, 26px);
      line-height: 1;
      letter-spacing: 0;
      font-weight: 300;
      color: #143a54;
      text-transform: capitalize;
       }

    select {
      width: 200px;
      border: 1px solid rgba(67, 101, 119, 0.18);
      border-radius: 7px;
      color: #4b6170;
      background: rgba(255, 255, 255, 0.65);
      padding: 8px 36px 8px 12px;
      font: inherit;
      font-size: 13px;
      outline: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .card {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(100, 136, 156, 0.16);
      border-radius: 8px;
      background: var(--card);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
      backdrop-filter: blur(8px);
    }

    .card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 34%);
    }

    .card > * {
      position: relative;
      z-index: 1;
    }

    .metric {
      min-height: 92px;
      padding: 12px 14px;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 7px;
    }

    .metric:nth-of-type(1) { grid-column: span 2; }
    .metric:nth-of-type(2) { grid-column: span 2; }
    .metric:nth-of-type(3) { grid-column: span 2; }
    .metric:nth-of-type(4) { grid-column: span 3; }

    .label {
      font-size: 12px;
      font-weight: 300;
      color: #2e5066;
    }

    .metric-value {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 10px;
    }

    .metric-value strong {
      font-size: clamp(23px, 2.3vw, 32px);
      line-height: 0.96;
      letter-spacing: 0;
    }

    .trend {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #277c65;
      font-size: 16px;
      font-weight: 300;
      white-space: nowrap;
    }

    .trend::before {
      content: "";
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 9px solid #2d8b70;
      transform: translateY(-1px);
    }

    .metric-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: #8a9daa;
      font-size: 10px;
    }

    .mini-signal {
      width: 58px;
      height: 13px;
      display: inline-block;
    }

    .panel-title {
      min-height: 23px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0 0 8px;
      font-size: 13px;
      font-weight: 300;
      color: #2a4b61;
    }

    .status {
      grid-column: 1 / 4;
      grid-row: 3 / 4;
      min-height: 188px;
      padding: 12px;
    }

    .traffic {
      grid-column: 4 / 10;
      grid-row: 3 / 4;
      min-height: 188px;
      padding: 12px 12px 6px;
    }

    .weather-now {
      grid-column: 10 / 13;
      grid-row: 2 / 3;
      min-height: 124px;
      padding: 12px;
    }

    .weather-main {
      display: grid;
      grid-template-columns: 56px 1fr 50px;
      align-items: center;
      gap: 3px;
      margin-top: 2px;
    }

    .sun-cloud {
      width: 54px;
      height: 34px;
    }

    .temp {
      font-size: clamp(31px, 3.4vw, 42px);
      font-weight: 300;
      line-height: 1;
      color: #1e4964;
      white-space: nowrap;
    }

    .temp sup {
      font-size: 0.38em;
      top: -0.9em;
      position: relative;
    }

    .forecast {
      margin-top: 4px;
      display: grid;
      gap: 2px;
      font-size: 11px;
      color: #526d7e;
    }

    .forecast-row {
      display: grid;
      grid-template-columns: 28px 1fr 1fr;
      gap: 6px;
      align-items: center;
      min-width: 0;
    }

    .weather-data {
      grid-column: 10 / 13;
      grid-row: 3 / 5;
      min-height: 250px;
      padding: 12px;
    }

    .status-grid {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 7px;
      align-items: center;
    }

    .donut {
      width: 120px;
      aspect-ratio: 1;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle, rgba(247, 251, 253, 1) 0 38%, transparent 39%),
        conic-gradient(#1c5b8d 0 47%, #2f8bb5 47% 67%, #73bfb4 67% 83%, #d9e3e7 83% 100%);
      box-shadow: inset 0 0 0 1px rgba(29, 75, 101, 0.1);
    }

    .donut-core {
      text-align: center;
      line-height: 1.1;
    }

    .donut-core strong {
      display: block;
      font-size: 10px;
    }

    .donut-core span {
      font-size: 10px;
      color: var(--muted);
    }

    .legend-list {
      display: grid;
      gap: 10px;
      font-size: 11px;
      color: #5c7383;
    }

    .legend-row {
      display: grid;
      grid-template-columns: 10px minmax(55px, 1fr) 48px;
      gap: 8px;
      align-items: center;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--blue);
    }

    .pill {
      justify-self: end;
      min-width: 42px;
      border-radius: 4px;
      padding: 3px 6px;
      text-align: center;
      color: white;
      font-weight: 300;
      background: #4e93bc;
    }

    .chart-note {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: #668194;
      white-space: nowrap;
    }

    .swatch {
      width: 12px;
      height: 8px;
      border-radius: 2px;
      background: var(--blue-2);
      display: inline-block;
    }

    .title-icon {
      width: 18px;
      height: 18px;
      color: #4b829d;
      flex: 0 0 auto;
    }

    svg {
      display: block;
      max-width: 100%;
    }

    .axis {
      stroke: rgba(54, 89, 111, 0.22);
      stroke-width: 1;
    }

    .axis-label {
      fill: #6c8290;
      font-size: 9px;
    }

    .berth {
      grid-column: 1 / 3;
      grid-row: 4 / 5;
      min-height: 158px;
      padding: 12px;
    }

    .util-list {
      display: grid;
      gap: 7px;
      font-size: 13px;
    }

    .util-row {
      display: grid;
      grid-template-columns: 34px 1fr 34px;
      align-items: center;
      gap: 8px;
      min-height: 17px;
      border-bottom: 1px solid rgba(92, 132, 153, 0.11);
    }

    .spark {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(84, 183, 175, 0.2), rgba(38, 117, 168, 0.66));
      clip-path: polygon(0 80%, 20% 75%, 40% 55%, 62% 68%, 80% 36%, 100% 42%, 100% 100%, 0 100%);
    }

    .turnaround {
      grid-column: 3 / 8;
      grid-row: 4 / 5;
      min-height: 158px;
      padding: 12px 12px 6px;
    }

    .cargo-side {
      grid-column: 8 / 10;
      grid-row: 4 / 5;
      min-height: 158px;
      padding: 12px;
    }

    .cargo-list {
      display: grid;
      gap: 8px;
      font-size: 12px;
    }

    .cargo-list .legend-row {
      grid-template-columns: 10px minmax(48px, 1fr) 48px;
      gap: 7px;
    }

    .cargo-list .pill {
      background: #6b9fc1;
    }

    .vessels {
      grid-column: 1 / 4;
      grid-row: 5 / 6;
      min-height: 176px;
      padding: 12px;
    }

    .ship-row {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) 58px;
      align-items: center;
      gap: 8px;
      margin-bottom: 9px;
      font-size: 11px;
      color: #506d7f;
    }

    .ship-icon {
      width: 38px;
      height: 18px;
      color: #275d87;
    }

    .bar-track {
      height: 18px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(69, 127, 158, 0.14);
      position: relative;
    }

    .bar-fill {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-inline: 8px;
      border-radius: inherit;
      color: white;
      font-size: 10px;
      font-weight: 300;
      background: linear-gradient(90deg, #2f7db1, #48bdc2);
      white-space: nowrap;
    }

    .ship-count {
      display: flex;
      align-items: center;
      gap: 4px;
      font-weight: 300;
      color: #1d4c6f;
      white-space: nowrap;
    }

    .ship-count::before {
      content: "";
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-bottom: 7px solid #2a8d76;
    }

    .countries {
      grid-column: 4 / 8;
      grid-row: 5 / 6;
      min-height: 176px;
      padding: 12px;
    }

    .country-row {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr) 34px 34px;
      gap: 9px;
      align-items: center;
      margin-bottom: 8px;
      font-size: 12px;
    }

    .flag {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      white-space: nowrap;
    }

    .flag::before {
      content: "";
      width: 13px;
      height: 9px;
      border-radius: 2px;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
      background: var(--flag, #d35a4d);
      flex: 0 0 auto;
    }

    .country-bar {
      height: 15px;
      border-radius: 2px;
      background: rgba(67, 127, 164, 0.13);
      overflow: hidden;
    }

    .country-bar span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, #64c4ca, #3d84bd);
      color: white;
      text-align: right;
      padding-right: 5px;
      line-height: 15px;
      font-size: 10px;
      font-weight: 300;
      white-space: nowrap;
    }

    .map {
      grid-column: 8 / 13;
      grid-row: 5 / 6;
      min-height: 176px;
      padding: 12px;
    }

    .map-frame {
      height: 125px;
      border-radius: 5px;
      border: 1px solid rgba(96, 135, 154, 0.14);
      background:
        linear-gradient(rgba(229, 242, 247, 0.72), rgba(229, 242, 247, 0.72)),
        radial-gradient(circle at 25% 75%, rgba(96, 169, 190, 0.3), transparent 42%),
        linear-gradient(140deg, #c8dfe8, #eef6f8);
      overflow: hidden;
    }

    .compass {
      width: min(100%, 260px);
      margin: 0 auto;
    }

    .footer {
      grid-column: 1 / -1;
      min-height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      color: rgba(61, 91, 107, 0.55);
      font-size: 11px;
    }

    .footer-icons {
      margin-right: auto;
      display: flex;
      gap: 18px;
      color: rgba(255, 255, 255, 0.92);
      text-shadow: 0 1px 4px rgba(21, 71, 95, 0.35);
    }

    .tiny-icon {
      width: 16px;
      height: 16px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(40, 115, 148, 0.44);
    }

    .tiny-icon svg {
      width: 11px;
      height: 11px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    @media (max-width: 980px) {
      .dashboard {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }

      .metric:nth-of-type(1),
      .metric:nth-of-type(2),
      .metric:nth-of-type(3),
      .metric:nth-of-type(4),
      .status,
      .traffic,
      .weather-now,
      .weather-data,
      .berth,
      .turnaround,
      .cargo-side,
      .vessels,
      .countries,
      .map {
        grid-column: span 6;
        grid-row: auto;
      }

      .metric {
        min-height: 82px;
      }

      .status-grid {
        grid-template-columns: 150px 1fr;
      }
    }

    @media (max-width: 620px) {
      .page {
        width: min(100vw - 18px, 480px);
        margin-top: 12px;
      }

      .dashboard {
        gap: 8px;
      }

      .topbar {
        align-items: flex-start;
        flex-direction: column;
      }

      select {
        width: 100%;
      }

      .status-grid,
      .weather-main {
        grid-template-columns: 1fr;
        justify-items: center;
      }

      .legend-list {
        width: 100%;
      }

      .country-row {
        grid-template-columns: 76px minmax(0, 1fr) 32px;
      }

      .country-row span:last-child {
        display: none;
      }

      .footer-icons {
        margin-right: 0;
      }

      .footer {
        justify-content: space-between;
      }
    }
