:root {
      /* Brand */
      --navy: #1a3556;
      --navy2: #1e4a80;
      --navy3: #e8eef6;
      --green: #5a9e3c;
      --green2: #72be50;
      --green3: #f0f7ec;
      --green4: #d4edca;
      --red: #c0392b;
      --red3: #fdf1f0;
      --red4: #f2b8b2;
      --orange: #d4751a;
      --orange3: #fef8f0;
      --gold: #c9a84c;

      /* Neutral */
      --ink: #111827;
      --ink2: #374151;
      --ink3: #6b7280;
      --ink4: #9ca3af;
      --line: #e5e9f0;
      --line2: #f0f3f8;
      --canvas: #f7f8fa;
      --white: #fff;
      --soft-blue: #f4f8fd;
      --soft-green: #f4fbf1;

      /* Typography */
      --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
      --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

      /* Sizing */
      --r: 8px;
      --r2: 12px;
      --r3: 16px;

      /* Shadow */
      --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
      --shadow2: 0 4px 16px rgba(26,53,86,.08);
      --shadow-card: 0 10px 26px rgba(26,53,86,.045);
      --focus-ring: 0 0 0 3px rgba(30,74,128,.12);
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0; padding: 0;
      font-family: var(--sans);
      font-size: 13.5px;
      line-height: 1.55;
      color: var(--ink);
      background: var(--canvas);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    h1 {
      font-family: var(--serif);
      font-size: 26px;
      font-weight: 600;
      line-height: 1.2;
      margin: 0;
      letter-spacing: 0.1px;
    }

    h2 {
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      margin: 0 0 16px;
      padding-bottom: 9px;
      border-bottom: 1px solid var(--line2);
      display: flex;
      align-items: center;
      gap: 7px;
      letter-spacing: 0;
    }

    /* HEADER */
    header {
      background: var(--navy);
      color: white;
      padding: 18px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 3px solid var(--green);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 14px rgba(0,0,0,.10);
      gap: 18px;
    }
    header .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    header .brand img { height: 28px; opacity: 0.95; flex-shrink: 0; }
    header .brand-text { min-width: 0; }
    header h1 { color: white; }
    header .subtitle {
      font-size: 12px;
      color: rgba(255,255,255,.6);
      letter-spacing: 0.2px;
      margin-top: 3px;
      font-weight: 400;
    }
    header .actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    /* BUTTONS */
    button {
      font-family: var(--sans);
      font-size: 12.4px;
      font-weight: 600;
      cursor: pointer;
      border: 1.5px solid #dce4ee;
      background: white;
      color: var(--navy);
      padding: 8px 14px;
      border-radius: 8px;
      transition: all .15s;
      letter-spacing: 0.1px;
    }
    button:hover {
      background: #f6f8fb;
      border-color: #c8d6e6;
      transform: translateY(-1px);
    }
    button:focus-visible {
      outline: none;
      box-shadow: var(--focus-ring);
    }
    button.primary {
      background: var(--green);
      border-color: var(--green);
      color: white;
      box-shadow: 0 6px 14px rgba(90,158,60,.16);
    }
    button.primary:hover {
      background: var(--green2);
      border-color: var(--green2);
      color: white;
    }
    button.danger {
      background: #fff3f2;
      border-color: #f0b9b4;
      color: #b83224;
    }
    button.danger:hover {
      background: #ffe4e1;
      border-color: #e9a19b;
      color: #b83224;
    }
    button.add {
      background: #f3fbef;
      border-color: #cbe7bf;
      color: #3f7f2d;
    }
    button.add:hover {
      background: #e8f6df;
      border-color: #b8dca8;
      color: #2d6622;
    }
    button.icon-only { padding: 5px 9px; line-height: 1; font-size: 14px; }

    /* Header buttons (against navy) */
    header button {
      background: rgba(255,255,255,0.10);
      border-color: rgba(255,255,255,0.18);
      color: white;
    }
    header button:hover {
      background: rgba(255,255,255,0.18);
      border-color: rgba(255,255,255,0.28);
      color: white;
    }
    header button.primary {
      background: var(--green);
      border-color: var(--green);
    }
    header button.primary:hover {
      background: var(--green2);
      border-color: var(--green2);
    }
    header button.danger {
      background: rgba(255,113,100,0.12);
      border-color: rgba(240,185,180,0.4);
      color: #ffb8b0;
    }
    header button.danger:hover {
      background: rgba(255,113,100,0.22);
      color: #ffd0c8;
    }

    /* INPUTS */
    input[type=number], input[type=text], select {
      font-family: var(--sans);
      font-size: 13px;
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid var(--line);
      border-radius: 8px;
      background: white;
      color: var(--ink);
      transition: border-color .15s, box-shadow .15s;
      outline: none;
    }
    input:hover, select:hover { border-color: #c4cdd8; }
    input:focus, select:focus {
      border-color: var(--navy2);
      box-shadow: 0 0 0 3px rgba(30,74,128,.10);
    }
    input::placeholder { color: var(--ink4); }

    label {
      display: block;
      font-size: 10.6px;
      font-weight: 700;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: var(--ink3);
      margin-bottom: 6px;
    }

    .field { display: flex; flex-direction: column; }
    .field-row { display: flex; gap: 12px; }
    .field-row .field { flex: 1; }

    .input-suffix { position: relative; }
    .input-suffix input { padding-right: 42px; }
    .input-suffix .suffix {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: var(--ink4);
      font-weight: 500;
      pointer-events: none;
      letter-spacing: 0.2px;
    }

    /* MAIN LAYOUT */
    main {
      padding: 26px 28px 60px;
      max-width: 1480px;
      margin: 0 auto;
    }

    /* METRICS */
    .metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 22px;
    }
    .metric {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--r2);
      padding: 18px 22px;
      box-shadow: var(--shadow-card);
      position: relative;
      overflow: hidden;
    }
    .metric .label {
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: var(--ink4);
      margin-bottom: 8px;
      font-weight: 700;
    }
    .metric .value {
      font-family: var(--serif);
      font-size: 30px;
      font-weight: 600;
      color: var(--navy);
      line-height: 1.15;
      letter-spacing: -0.4px;
    }
    .metric .sub {
      font-size: 11px;
      color: var(--ink4);
      margin-top: 7px;
    }
    .metric.highlight {
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
      border-color: var(--navy);
    }
    .metric.highlight .label { color: rgba(255,255,255,.65); }
    .metric.highlight .value { color: white; }
    .metric.highlight .sub { color: rgba(255,255,255,.7); }
    .metric.success-highlight {
      background: linear-gradient(135deg, var(--green) 0%, #4a8a30 100%);
      border-color: var(--green);
    }
    .metric.success-highlight .label { color: rgba(255,255,255,.7); }
    .metric.success-highlight .value { color: white; }
    .metric.success-highlight .sub { color: rgba(255,255,255,.78); }

    /* CARDS */
    .card {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--r2);
      padding: 20px 24px;
      box-shadow: var(--shadow-card);
      margin-bottom: 16px;
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 16px;
      padding-bottom: 9px;
      border-bottom: 1px solid var(--line2);
    }
    .card-header h2 {
      margin: 0;
      padding: 0;
      border: none;
    }

    .form-grid {
      display: grid;
      gap: 14px;
    }
    .form-grid-row {
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 14px 18px;
    }

    /* ASSETS */
    .add-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 0;
    }
    .card-header .add-buttons button {
      min-width: auto;
      padding: 7px 12px;
      font-size: 12px;
    }

    .assets-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 14px;
    }
    .assets-grid > .empty-state { grid-column: 1 / -1; }

    /* EVENTS — TIMELINE */
    .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 12px;
    }
    .events-grid > .empty-state { grid-column: 1 / -1; }
    .event {
      border: 1px solid var(--line);
      border-left: 4px solid var(--ev-color, var(--ink3));
      border-radius: var(--r1);
      background: #fbfcfd;
      padding: 10px 12px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .event-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }
    .event-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 13px;
      color: var(--ink);
    }
    .event-title .ev-icon {
      width: 22px;
      height: 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--ev-color, var(--ink3));
      color: white;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 600;
    }
    .event-age {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--ink3);
    }
    .event-age input {
      width: 60px;
      padding: 3px 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      text-align: center;
    }
    .event-fields {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .event-fields .field-full { grid-column: span 2; }
    .event-fields label {
      font-size: 10.5px;
      margin-bottom: 2px;
    }
    .event-fields select,
    .event-fields input[type="text"],
    .event-fields input[type="number"] {
      padding: 5px 8px;
      font-size: 12px;
    }
    .event-fields .input-suffix input { padding-right: 26px; }
    .event-fields .checkbox-row {
      grid-column: span 2;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--ink2);
    }

    .asset {
      border: 1.5px solid var(--line);
      border-radius: var(--r);
      margin-bottom: 10px;
      background: white;
      overflow: hidden;
      transition: border-color .15s, box-shadow .15s;
    }
    .asset:hover { border-color: #c4cdd8; }
    .asset:not(.collapsed) {
      border-color: var(--navy2);
      box-shadow: 0 0 0 3px rgba(30,74,128,.06);
    }
    .asset-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      cursor: pointer;
      user-select: none;
    }
    .asset-header:hover { background: var(--soft-blue); }
    .asset-title {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }
    .asset-title .name-input {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 18px;
      letter-spacing: 0.2px;
      color: white;
      background: var(--navy);
      border: 1px solid var(--navy);
      border-radius: 6px;
      padding: 5px 12px 4px;
      width: auto;
      min-width: 110px;
      flex: 1 1 auto;
      max-width: 320px;
      line-height: 1.15;
      transition: background 0.15s, box-shadow 0.15s;
      cursor: text;
    }
    .asset-title .name-input:hover {
      background: var(--navy2);
      border-color: var(--navy2);
    }
    .asset-title .name-input:focus {
      outline: none;
      background: var(--navy2);
      border-color: var(--navy2);
      box-shadow: 0 0 0 3px rgba(30, 74, 128, 0.18);
    }
    .asset-title .name-input::placeholder {
      color: rgba(255, 255, 255, 0.55);
    }

    .badge.future {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fbbf24;
    }
    /* Future (sleeping) asset — náznak že je v plánu */
    .asset.future:not(.excluded) {
      border-style: dashed;
      background: #fffbeb;
    }

    /* SEKCE V KARTĚ AKTIVA (pre-FI / post-FI rozdělení) */
    .asset-section {
      font-size: 11px;
      color: var(--ink3);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
      border-top: 1px dashed var(--line);
      padding-top: 10px;
      margin-top: 4px;
    }
    .asset-section span {
      font-size: 10.5px;
      font-weight: 400;
      text-transform: none;
      letter-spacing: 0;
      color: var(--ink4, #94a3b8);
      margin-left: 6px;
    }

    /* EXCLUDED ASSET STATE */
    .asset.excluded {
      background: #f3f4f6;
      border-style: dashed;
    }
    .asset.excluded .asset-body,
    .asset.excluded .asset-title .badge {
      opacity: 0.55;
    }
    .asset.excluded .asset-title .name-input {
      background: #94a3b8;
      border-color: #94a3b8;
      text-decoration: line-through;
      text-decoration-color: rgba(255, 255, 255, 0.6);
      text-decoration-thickness: 1.5px;
    }
    .asset.excluded .asset-title .name-input:hover,
    .asset.excluded .asset-title .name-input:focus {
      background: #64748b;
      border-color: #64748b;
    }
    .btn-exclude {
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border: 1px solid var(--line);
      background: white;
      color: var(--ink3);
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.12s;
    }
    .btn-exclude:hover {
      border-color: var(--navy);
      color: var(--navy);
    }
    .asset.excluded .btn-exclude {
      background: var(--navy);
      color: white;
      border-color: var(--navy);
    }
    .asset.excluded .btn-exclude:hover {
      background: var(--navy2);
      border-color: var(--navy2);
    }
    .badge {
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      padding: 3px 7px;
      border-radius: 4px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .badge.liquid { background: var(--navy3); color: var(--navy); }
    .badge.rental { background: var(--green3); color: #3f7f2d; }
    .badge.own { background: var(--orange3); color: #a05612; }

    .asset-actions { display: flex; gap: 4px; }

    .asset-body {
      padding: 14px;
      border-top: 1px solid var(--line2);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      background: #fbfcfd;
    }
    .asset-body .field-full { grid-column: span 2; }
    .asset.collapsed .asset-body { display: none; }

    .chevron {
      font-size: 10px;
      color: var(--ink4);
      transition: transform .15s;
      flex-shrink: 0;
    }
    .asset:not(.collapsed) .chevron { transform: rotate(90deg); color: var(--navy2); }

    .asset-summary {
      grid-column: span 2;
      font-size: 11.5px;
      color: var(--ink3);
      padding: 9px 12px;
      background: white;
      border-radius: var(--r);
      border: 1px dashed var(--line);
      text-align: center;
    }
    .asset-summary strong {
      color: var(--navy);
      font-weight: 700;
    }

    /* CHART FILTER */
    .chart-filter {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    .filter-btn {
      padding: 5px 11px;
      font-size: 11.5px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: white;
      color: var(--ink3);
      font-weight: 500;
      transition: all .15s;
      letter-spacing: 0.1px;
    }
    .filter-btn:hover {
      border-color: var(--navy2);
      color: var(--navy);
      background: white;
      transform: none;
    }
    .filter-btn.active {
      background: var(--navy);
      color: white;
      border-color: var(--navy);
    }
    .filter-btn.active:hover {
      background: var(--navy2);
      color: white;
    }

    /* WARNINGS / NOTES */
    .warning {
      display: flex;
      gap: 11px;
      align-items: flex-start;
      padding: 10px 13px;
      border-radius: var(--r1);
      margin-bottom: 8px;
      border: 1px solid transparent;
      font-size: 13px;
      line-height: 1.45;
    }
    .warning .icon {
      font-size: 15px;
      line-height: 1.4;
      flex-shrink: 0;
    }
    .warning .body strong {
      display: block;
      margin-bottom: 2px;
    }
    .warning.high { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
    .warning.medium { background: #fffbeb; border-color: #fde68a; color: #92400e; }
    .warning.low { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
    .warning.info { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
    .warning.neutral { background: #f8fafc; border-color: var(--line); color: var(--ink2); }

    /* MONTE CARLO */
    .mc-controls {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .mc-controls .input-suffix input {
      width: 110px;
      padding-right: 70px;
    }
    .mc-controls .input-suffix .suffix {
      right: 9px;
    }
    .mc-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }
    .mc-stat {
      background: #fbfcfd;
      border: 1px solid var(--line);
      border-radius: var(--r1);
      padding: 12px 14px;
    }
    .mc-stat .label {
      font-size: 11px;
      color: var(--ink3);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 6px;
      font-weight: 500;
    }
    .mc-stat .value {
      font-size: 20px;
      font-weight: 600;
      color: var(--ink);
      line-height: 1.15;
      font-family: var(--serif, inherit);
    }
    .mc-stat .sub {
      font-size: 11.5px;
      color: var(--ink3);
      margin-top: 4px;
    }
    .mc-histogram {
      width: 100%;
      height: 220px;
      margin-top: 16px;
    }
    .mc-histogram-title {
      font-size: 12px;
      color: var(--ink3);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-weight: 500;
      margin-bottom: 8px;
    }
    .mc-running {
      padding: 30px 20px;
      text-align: center;
      color: var(--ink3);
    }

    /* CHARTS */
    .chart-container { width: 100%; }
    .chart-svg {
      width: 100%;
      height: 440px;
      display: block;
    }
    .chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 14px;
      font-size: 11.5px;
      justify-content: center;
      color: var(--ink2);
      font-weight: 500;
    }
    .chart-legend .item {
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .chart-legend .swatch {
      width: 12px;
      height: 12px;
      border-radius: 3px;
    }
    .chart-legend .swatch.fi-marker {
      width: 0;
      height: 14px;
      background: transparent !important;
      border-radius: 0;
      border: none;
      border-left-width: 2.5px;
      border-left-style: dashed;
    }
    .asset-summary .negative {
      color: var(--red);
      font-weight: 700;
    }
    .chart-empty {
      padding: 60px 20px;
      text-align: center;
      color: var(--ink4);
      background: var(--soft-blue);
      border: 1px dashed var(--line);
      border-radius: var(--r);
      font-size: 13px;
    }

    /* TABLE */
    .table-wrap {
      overflow-x: auto;
      max-height: 540px;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: var(--r);
    }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }
    th, td {
      padding: 9px 12px;
      text-align: right;
      border-bottom: 1px solid var(--line2);
      white-space: nowrap;
    }
    th {
      background: var(--navy3);
      font-weight: 700;
      color: var(--navy);
      text-transform: uppercase;
      font-size: 10.5px;
      letter-spacing: 0.5px;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    th:first-child, td:first-child { text-align: left; }
    tbody tr:hover { background: var(--soft-blue); }
    tr.fi-row {
      background: var(--green3);
      font-weight: 600;
      color: var(--ink);
    }
    tr.fi-row:hover { background: var(--green4); }

    /* COLLAPSIBLE */
    .collapsible-content { display: none; margin-top: 14px; }
    .collapsible-content.open { display: block; }
    .collapse-toggle {
      width: 100%;
      text-align: left;
      background: transparent;
      border: none;
      padding: 0;
      color: var(--navy);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0;
    }
    .collapse-toggle:hover {
      background: transparent;
      border-color: transparent;
      color: var(--green);
      transform: none;
    }
    .collapse-toggle::before {
      content: "▸  ";
      display: inline-block;
      transition: transform .15s;
      color: var(--ink4);
    }
    .collapse-toggle.open::before { content: "▾  "; color: var(--green); }

    /* TOOLTIP */
    .chart-tooltip {
      position: absolute;
      background: rgba(26,53,86,0.97);
      color: white;
      padding: 10px 14px;
      border-radius: var(--r);
      font-size: 12px;
      pointer-events: none;
      z-index: 50;
      transform: translate(-50%, -100%);
      margin-top: -10px;
      white-space: nowrap;
      box-shadow: 0 8px 24px rgba(26,53,86,.30);
      opacity: 0;
      transition: opacity .12s;
      font-family: var(--sans);
      backdrop-filter: blur(4px);
    }
    .chart-tooltip.visible { opacity: 1; }
    .chart-tooltip .tt-row {
      display: flex;
      justify-content: space-between;
      gap: 18px;
    }
    .chart-tooltip .tt-row .key {
      color: rgba(255,255,255,0.62);
      font-weight: 400;
    }
    .chart-tooltip .tt-divider {
      height: 1px;
      background: rgba(255,255,255,0.18);
      margin: 6px 0;
    }

    /* EMPTY STATE */
    .empty-state {
      padding: 32px 20px;
      text-align: center;
      color: var(--ink4);
      font-size: 12.5px;
      background: var(--soft-blue);
      border: 1px dashed var(--line);
      border-radius: var(--r);
    }

    .info-banner {
      background: var(--soft-blue);
      border: 1px solid #c9dced;
      color: #255984;
      padding: 11px 14px;
      border-radius: var(--r);
      font-size: 12px;
      margin-bottom: 14px;
    }

    footer {
      text-align: center;
      padding: 30px 20px 24px;
      color: var(--ink4);
      font-size: 11.5px;
      font-family: var(--sans);
    }

    .site-logo {
      color: white;
      text-decoration: none;
      font-family: var(--serif);
      font-size: 23px;
      font-weight: 600;
      line-height: 1.15;
    }

    .site-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-left: auto;
    }

    .site-nav a {
      color: rgba(255,255,255,.78);
      text-decoration: none;
      font-size: 12px;
      font-weight: 600;
      padding: 7px 10px;
      border-radius: var(--r);
      border: 1px solid transparent;
      transition: all .15s;
    }

    .site-nav a:hover,
    .site-nav a[aria-current="page"] {
      color: white;
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.16);
    }

    .public-main {
      max-width: 1120px;
      padding-top: 42px;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
      gap: 36px;
      align-items: center;
      padding: 34px 0 36px;
    }

    .hero h1 {
      font-size: 50px;
      color: var(--navy);
      margin-bottom: 14px;
      max-width: 720px;
    }

    .hero p {
      font-size: 18px;
      line-height: 1.55;
      color: var(--ink2);
      margin: 0 0 22px;
      max-width: 760px;
    }

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

    .button-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 16px;
      border-radius: var(--r);
      border: 1.5px solid #dce4ee;
      color: var(--navy);
      background: white;
      text-decoration: none;
      font-weight: 700;
      font-size: 13px;
      transition: all .15s;
    }

    .button-link:hover {
      background: #f6f8fb;
      border-color: #c8d6e6;
      transform: translateY(-1px);
    }

    .button-link.primary {
      color: white;
      background: var(--green);
      border-color: var(--green);
      box-shadow: 0 6px 14px rgba(90,158,60,.16);
    }

    .button-link.primary:hover {
      background: var(--green2);
      border-color: var(--green2);
    }

    .hero-panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--r2);
      padding: 22px;
      box-shadow: var(--shadow-card);
    }

    .hero-panel .metric {
      box-shadow: none;
      margin-bottom: 10px;
    }

    .hero-panel .metric:last-child {
      margin-bottom: 0;
    }

    .section-block {
      padding: 30px 0;
      border-top: 1px solid var(--line);
    }

    .section-block h2 {
      font-size: 18px;
      padding-bottom: 11px;
      margin-bottom: 18px;
    }

    .public-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
      gap: 14px;
    }

    .public-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--r2);
      padding: 18px;
      box-shadow: var(--shadow-card);
    }

    .public-card h3 {
      margin: 0 0 8px;
      color: var(--navy);
      font-size: 15px;
    }

    .public-card p,
    .content-page p,
    .content-page li {
      color: var(--ink2);
      font-size: 14px;
    }

    .public-card p {
      margin: 0;
    }

    .content-page {
      max-width: 900px;
    }

    .content-page h1 {
      color: var(--navy);
      font-size: 42px;
      margin: 22px 0 16px;
    }

    .content-page h2 {
      margin-top: 28px;
    }

    .content-page ul {
      padding-left: 20px;
    }

    .content-page a {
      color: var(--navy2);
      font-weight: 700;
    }

    /* RESPONSIVE */
    @media (max-width: 760px) {
      header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
      }
      header .brand { justify-content: flex-start; }
      .site-nav {
        justify-content: flex-start;
        margin-left: 0;
      }
      header .actions { justify-content: stretch; }
      header .actions button { flex: 1; min-width: 90px; font-size: 11.5px; }
      main { padding: 16px 14px 40px; }
      .public-main { padding-top: 18px; }
      .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
      .hero h1 { font-size: 36px; }
      .hero p { font-size: 16px; }
      .content-page h1 { font-size: 34px; }
      .metric .value { font-size: 24px; }
      .asset-body { grid-template-columns: 1fr; }
      .asset-body .field-full { grid-column: span 1; }
    }
    @media (max-width: 480px) {
      .field-row { flex-direction: column; gap: 14px; }
    }
