:root {
      --green: #183d2b; --green-2: #286044; --lime: #d9ed8b;
      --paper: #f5f6ef; --card: #ffffff; --ink: #17251c;
      --muted: #526257; --line: #d6ded4; --red: #a32626;
      --amber: #744600; --shadow: 0 4px 18px rgba(24,61,43,.08);
    }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.5; }
    button, select, input { font: inherit; }
    button, select, input[type="number"] { min-height: 48px; }
    button { cursor: pointer; border: 2px solid var(--green); border-radius: 10px; padding: 10px 16px; background: var(--green); color: white; font-weight: 700; }
    button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #b56a00; outline-offset: 3px; }
    a { color: #174d32; font-weight: 700; }
    .wrap { max-width: 1440px; margin: auto; padding: 24px; }
    header { background: var(--green); color: white; padding: 28px; border-radius: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
    header h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; line-height: 1.15; }
    header p { margin: 0; max-width: 760px; color: #edf5e9; }
    .eyebrow { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--lime); margin-bottom: 8px; }
    .status-pill { border: 2px solid #b9d59d; border-radius: 999px; padding: 10px 14px; min-width: 150px; text-align: center; font-weight: 700; }
    .toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; padding: 20px 0; }
    .field { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
    label { font-weight: 700; }
    select, input[type="number"] { border: 2px solid #89988b; border-radius: 10px; background: white; color: var(--ink); padding: 8px 12px; }
    .section-title { margin: 24px 0 12px; font-size: 25px; }
    .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
    .kpi-label { color: var(--muted); font-weight: 700; }
    .kpi-value { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin: 8px 0; letter-spacing: -.02em; }
    .kpi-note { color: var(--muted); }
    .status { padding: 14px 16px; border-radius: 12px; margin: 16px 0; background: #e8f0e3; border: 1px solid #a6c19f; }
    .status.error { background: #fff0ed; border-color: #d69a91; color: #75221a; }
    .status.warning { background: #fff4d9; border-color: #d7b15e; color: #573900; }
    .charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
    .chart-wrap { position: relative; min-height: 280px; }
    .chart-summary { color: var(--muted); margin: 12px 0 0; }
    .gdd-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
      align-items: center;
      margin: 6px 0 10px;
      color: var(--muted);
      font-size: 14px;
    }
    .legend-item { display: inline-flex; align-items: center; gap: 7px; }
    .legend-band {
      width: 28px; height: 10px; border-radius: 2px;
      background: rgba(40,96,68,.14);
      border: 1px solid rgba(40,96,68,.22);
    }
    .legend-bar {
      width: 28px; height: 12px; border-radius: 2px;
      background: #6e9876;
    }
    .legend-line {
      width: 28px; height: 0;
      border-top: 3px dashed #183d2b;
    }
    .table-scroll { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; min-width: 700px; }
    th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); }
    th { background: #edf2e9; }
    th button { min-height: 42px; padding: 5px 8px; background: transparent; color: var(--ink); border: 0; text-align: left; }
    .tag { display: inline-block; padding: 4px 9px; border-radius: 7px; font-weight: 700; font-size: 18px; }
    .tag.good { background: #e2f2df; color: #174d24; }
    .tag.warn { background: #fff0cb; color: #674200; }
    .tag.bad { background: #ffe1dd; color: #8c2118; }
    .muted { color: var(--muted); }
    .small { font-size: 18px; }
    .footer { margin: 24px 0 8px; color: var(--muted); }
    .loading { color: var(--muted); }
    .empty-state {
      padding: 24px;
      border: 2px dashed #aeb9ad;
      border-radius: 12px;
      background: #fafbf7;
      color: var(--muted);
      text-align: center;
      font-size: 18px;
    }
    @media (max-width: 850px) {
      .wrap { padding: 14px; } header { padding: 22px; flex-direction: column; align-items: flex-start; }
      .grid { grid-template-columns: 1fr; } .charts { grid-template-columns: 1fr; }
      .field { flex: 1 1 100%; } .toolbar button { width: 100%; }
    }
