    @font-face {
      font-family: 'StyreneA';
      font-weight: 400;
      font-style: normal;
      src: url('./fonts/StyreneA/StyreneA-Regular.woff2') format('woff2');
      font-display: swap;
    }
    @font-face {
      font-family: 'StyreneA';
      font-weight: 500;
      font-style: normal;
      src: url('./fonts/StyreneA/StyreneA-Medium.woff2') format('woff2');
      font-display: swap;
    }
    @font-face {
      font-family: 'StyreneA';
      font-weight: 700;
      font-style: normal;
      src: url('./fonts/StyreneA/StyreneA-Bold.woff2') format('woff2');
      font-display: swap;
    }
    @font-face {
      font-family: 'TiemposText';
      font-weight: 400;
      font-style: normal;
      src: url('./fonts/TiemposText/TiemposText-Regular.woff2') format('woff2');
      font-display: swap;
    }
    @font-face {
      font-family: 'TiemposText';
      font-weight: 600;
      font-style: normal;
      src: url('./fonts/TiemposText/TiemposText-Semibold.woff2') format('woff2');
      font-display: swap;
    }

    :root {
      --slate-dark: #3d3929;
      --slate-medium: #6c695c;
      --slate-light: #cbc9c2;
      --cloud-medium: #e9e6dc;
      --cloud-light: #f5f4ee;
      --ivory-dark: #ede9de;
      --ivory-medium: #e9e6dc;
      --ivory-light: #faf9f5;
      --book-cloth: #c96442;
      --book-cloth-soft: #cc785c;
      --kraft: #e4b2a0;
      --manilla: #f4e0d9;
      --black: #191714;
      --success: #10b981;
      --warning: #f59e0b;
      --info: #75a9f2;
      --border: rgba(61, 57, 41, 0.12);
      --border-soft: rgba(61, 57, 41, 0.08);
      --shadow: 0 10px 30px rgba(61, 57, 41, 0.06);
      --sans: 'StyreneA', 'Helvetica', 'HarmonyOS Sans', 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
      --serif: 'TiemposText', 'STZhongsong', 'Songti SC', serif;
      --mono: 'JetBrains Mono', 'Cascadia Code', 'SF Mono', ui-monospace, monospace;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: var(--sans);
      color: var(--slate-dark);
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201, 100, 66, 0.08), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(228, 178, 160, 0.18), transparent 50%),
        var(--ivory-light);
      min-height: 100vh;
      line-height: 1.5;
    }

    .shell {
      max-width: 1440px;
      margin: 0 auto;
      padding: 20px 20px 48px;
    }

    header.top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
      padding: 18px 20px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: rgba(250, 249, 245, 0.88);
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow);
    }

    .brand {
      display: flex;
      gap: 14px;
      align-items: center;
      min-width: 0;
    }
    .logo {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(145deg, #d97757, #c96442);
      color: #faf9f5;
      display: grid;
      place-items: center;
      font-weight: 700;
      letter-spacing: 0.02em;
      flex-shrink: 0;
      box-shadow: 0 8px 18px rgba(201, 100, 66, 0.28);
    }
    .brand h1 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: #191919;
    }
    .brand .sub {
      margin-top: 4px;
      font-size: 0.78rem;
      color: #91918d;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .meta-right {
      text-align: right;
      font-size: 0.82rem;
      color: var(--slate-medium);
      white-space: nowrap;
    }
    .meta-right strong {
      display: block;
      color: var(--book-cloth);
      font-size: 0.95rem;
      font-family: var(--serif);
      font-weight: 600;
      margin-bottom: 2px;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border: 1px solid transparent;
    }
    .badge.ballast {
      background: rgba(117, 169, 242, 0.12);
      color: #3b6ea8;
      border-color: rgba(117, 169, 242, 0.28);
    }
    .badge.laden {
      background: rgba(201, 100, 66, 0.12);
      color: var(--book-cloth);
      border-color: rgba(201, 100, 66, 0.28);
    }

    .kpis {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }
    .kpi {
      background: #fffefb;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 14px 12px;
      box-shadow: var(--shadow);
      min-height: 96px;
    }
    .kpi .label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #91918d;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .kpi .value {
      font-family: var(--serif);
      font-size: 1.45rem;
      font-weight: 600;
      color: #191919;
      letter-spacing: -0.02em;
    }
    .kpi .unit {
      font-family: var(--sans);
      font-size: 0.78rem;
      color: var(--slate-medium);
      font-weight: 500;
      margin-left: 4px;
    }
    .kpi .hint {
      margin-top: 6px;
      font-size: 0.75rem;
      color: var(--slate-medium);
    }

    .tabs {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin: 8px 0 14px;
      padding: 6px;
      background: rgba(233, 230, 220, 0.55);
      border: 1px solid var(--border-soft);
      border-radius: 14px;
      width: fit-content;
    }
    .tab {
      border: 0;
      background: transparent;
      color: #666663;
      font: inherit;
      font-size: 0.86rem;
      font-weight: 600;
      padding: 8px 14px;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.15s ease;
    }
    .tab:hover { color: #191919; background: rgba(255,255,255,0.55); }
    .tab.active {
      background: rgba(201, 100, 66, 0.12);
      color: var(--book-cloth);
      box-shadow: inset 0 0 0 1px rgba(201, 100, 66, 0.18);
    }

    .panel { display: none; }
    .panel.active { display: block; }

    .grid-2 {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 14px;
    }
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .card {
      background: #fffefb;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .card-hd {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 16px 0;
    }
    .card-hd h2 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      color: #191919;
    }
    .card-hd .muted {
      font-size: 0.75rem;
      color: #91918d;
      font-weight: 500;
    }
    .card-bd { padding: 12px 16px 16px; }
    .chart-box { position: relative; height: 280px; }
    .chart-box.sm { height: 240px; }
    .chart-box.lg { height: 320px; }

    #map {
      height: 480px;
      width: 100%;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #ebe7dc;
    }
    .leaflet-container { font-family: var(--sans); }
    .map-popup {
      font-size: 0.8rem;
      line-height: 1.45;
      color: var(--slate-dark);
    }
    .map-popup b { color: #191919; }

    .table-wrap {
      overflow: auto;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fffefb;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
      min-width: 980px;
    }
    th, td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--border-soft);
      text-align: left;
      white-space: nowrap;
    }
    th {
      position: sticky;
      top: 0;
      background: #f5f2ea;
      color: #6c695c;
      font-size: 0.72rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      font-weight: 700;
      z-index: 1;
    }
    tr:hover td { background: rgba(201, 100, 66, 0.04); }
    td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.78rem; }
    .cond-pill {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 600;
    }
    .cond-pill.laden { background: rgba(201,100,66,.12); color: var(--book-cloth); }
    .cond-pill.ballast { background: rgba(117,169,242,.14); color: #3b6ea8; }

    .insight {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .note {
      background: linear-gradient(180deg, #fffdf9, #f8f3ea);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px 16px;
    }
    .note h3 {
      margin: 0 0 8px;
      font-size: 0.88rem;
      color: var(--book-cloth);
      font-weight: 700;
    }
    .note p, .note li {
      margin: 0;
      font-size: 0.86rem;
      color: var(--slate-dark);
      font-family: var(--serif);
    }
    .note ul { margin: 0; padding-left: 1.1rem; }
    .note li + li { margin-top: 6px; }

    .tank-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .tank-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      background: #fcfaf5;
    }
    .tank-card .tid {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 8px;
    }
    .tank-metric {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      color: var(--slate-medium);
      margin-top: 4px;
    }
    .tank-metric b {
      color: #191919;
      font-family: var(--mono);
      font-weight: 500;
    }
    .temp-bar {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, #75a9f2, #c96442);
      margin: 10px 0 4px;
      opacity: 0.85;
    }

    footer {
      margin-top: 22px;
      text-align: center;
      color: #91918d;
      font-size: 0.75rem;
    }
    footer a { color: var(--book-cloth); text-decoration: none; }

    .loading, .error {
      padding: 40px 20px;
      text-align: center;
      color: var(--slate-medium);
      font-family: var(--serif);
    }
    .error { color: #b91c1c; }

    @media (max-width: 1100px) {
      .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .grid-2, .grid-3, .insight { grid-template-columns: 1fr; }
      .tank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .meta-right { white-space: normal; text-align: left; }
      header.top { flex-direction: column; }
    }
    @media (max-width: 640px) {
      .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .shell { padding: 12px 12px 36px; }
      #map { height: 360px; }
    }
