 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #f4f6f8;
      --card: #ffffff;
      --text: #17202a;
      --muted: #6b7280;
      --border: #e5e7eb;
      --green: #178447;
      --green-light: #eaf7ef;
      --orange: #d97706;
      --orange-light: #fff7e6;
      --red: #c62828;
      --red-light: #fff0f0;
      --blue: #2563eb;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--text);
      padding-bottom: 85px;
    }

    .app {
      max-width: 1100px;
      margin: 0 auto;
    }

    header {
      background: #111827;
      color: white;
      padding: 20px 18px;
    }

    .brand {
      font-size: 20px;
      font-weight: 800;
    }

    .subtitle {
      margin-top: 5px;
      color: #d1d5db;
      font-size: 13px;
    }

    main {
      padding: 18px 14px;
    }

    .page-title {
      font-size: 25px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .page-subtitle {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 20px;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 22px;
    }

    .summary-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 15px;
    }

    .summary-label {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 8px;
    }

    .summary-value {
      font-size: 24px;
      font-weight: 800;
    }
   /* Stage 1 visual polish */

    .hero-grid {
      display: grid;
      gap: 0;
      margin-bottom: 28px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .hero-card {
      padding: 18px 0;
      border-bottom: 1px solid var(--border);
    }

    .hero-card:last-child {
      border-bottom: 0;
    }

    .hero-card.loss-card {
      background: transparent;
      border-left: 0;
      border-color: var(--border);
    }

    .eyebrow {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.7px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .hero-value {
      font-size: 31px;
      font-weight: 900;
      line-height: 1.05;
      margin-bottom: 6px;
    }

    .loss-card .hero-value {
      color: var(--red);
    }

    .hero-note {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }

    .section {
      padding-top: 8px;
      margin-bottom: 34px;
    }

    .section-title {
      margin-bottom: 6px;
    }

    .section-subtitle {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
      margin-bottom: 14px;
    }

    .alert-card {
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .alert-card:last-child {
      border-bottom: 0;
    }

    .alert-card strong {
      display: block;
      margin-bottom: 5px;
    }

    .alert-card p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .stock-grid {
      display: grid;
      gap: 0;
      border-top: 1px solid var(--border);
    }

    .stock-item {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 11px 0;
      border-bottom: 1px solid var(--border);
    }

    .stock-item span {
      color: var(--muted);
    }

    .stock-item.warning {
      margin-top: 8px;
      padding: 14px 0;
      border-top: 2px solid var(--red);
      border-bottom: 0;
    }

    .stock-item.warning span,
    .stock-item.warning strong {
      color: var(--red);
      font-weight: 800;
    }

    .comparison-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .comparison-row:last-child {
      border-bottom: 0;
    }

    .comparison-row > div:last-child {
      text-align: right;
    }

    .comparison-row strong,
    .comparison-row small {
      display: block;
    }

    .comparison-row small {
      color: var(--muted);
      margin-top: 3px;
    }

    .danger-text {
      color: var(--red) !important;
      font-weight: 800;
    }

    .attention-card {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .attention-card:last-child {
      border-bottom: 0;
    }

    .attention-card > div:last-child {
      text-align: right;
    }

    .attention-card strong,
    .attention-card small {
      display: block;
    }

    .attention-card small {
      color: var(--muted);
      margin-top: 3px;
    }

    .quick-actions {
      display: grid;
      gap: 10px;
    }

    .action-button {
      width: 100%;
      text-align: left;
      padding: 16px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
    }

    .action-button strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px;
    }

    .action-button span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    @media (min-width: 700px) {
      .hero-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .hero-card {
        padding: 18px;
        border-bottom: 0;
        border-right: 1px solid var(--border);
      }

      .hero-card:last-child {
        border-right: 0;
      }

      .quick-actions {
        grid-template-columns: repeat(2, 1fr);
      }
    }
