  :root {
    --bg: #0e0f14;
    --surface: #16181f;
    --card: #1c1f2b;
    --border: #2a2d3a;
    --accent: #f4c842;
    --accent2: #e87d3e;
    --text: #e8eaf0;
    --muted: #7a7f96;
    --green: #5dca8a;
    --red: #e86060;
  }

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

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
  }

  .noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
  }

  .container {
    max-width: 680px;
    margin: 0 auto;
    position: relative; z-index: 1;
  }

  header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }

  .label-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(244,200,66,0.1);
    border: 1px solid rgba(244,200,66,0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 1rem;
  }

  h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
  }

  h1 span { color: var(--accent); }

  .subtitle {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.6rem;
    line-height: 1.6;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  @media (max-width: 500px) { .grid { grid-template-columns: 1fr; } }

  .field {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    transition: border-color 0.2s;
  }

  .field:focus-within { border-color: var(--accent); }

  .field label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
  }

  .field-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .field input[type="number"] {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    width: 100%;
    -moz-appearance: textfield;
  }

  .field input[type="number"]::-webkit-inner-spin-button,
  .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

  .field .unit {
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
  }

  .info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.35rem;
  }

  .info-row .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent2);
    flex-shrink: 0;
  }

  .results {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1.5rem;
  }

  .results-header {
    background: var(--surface);
    padding: 0.75rem 1.2rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .results-header .tag { color: var(--accent); }

  .result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    transition: background 0.15s;
  }

  .result-line:last-child { border-bottom: none; }
  .result-line:hover { background: rgba(255,255,255,0.02); }

  .result-line .desc { color: var(--muted); }
  .result-line .val { font-weight: 500; font-size: 0.9rem; }
  .result-line .val.pos { color: var(--green); }
  .result-line .val.neg { color: var(--red); }
  .result-line .val.acc { color: var(--accent); }

  .result-line.total {
    background: rgba(244,200,66,0.05);
    border-top: 1px solid rgba(244,200,66,0.2);
    padding: 1.1rem 1.2rem;
  }

  .result-line.total .desc {
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
  }

  .result-line.total .val {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
  }

  .per-day-box {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(232,125,62,0.12), rgba(244,200,66,0.08));
    border: 1px solid rgba(232,125,62,0.3);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .per-day-box .label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
  }

  .per-day-box .amount {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent2);
  }

  .per-day-box .sub {
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.2rem;
  }

  .section-divider {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.4rem 0 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .note {
    font-size: 0.67rem;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
  }

  .note strong { color: var(--text); }

  .slider-wrap { margin-top: 0.6rem; }

  input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    margin-top: 0.5rem;
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
  }

  input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
  }

  .range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 0.25rem;
  }
