:root{
    --bg: #12181F;
    --panel: #1A222C;
    --border: #262F3B;
    --text: #E7E9EA;
    --muted: #8A96A3;
    --accent: #E8A33D;
    --accent-dim: #6b5326;
    --good: #6FA88A;
    --warn: #D9704F;
    --s-vacation: #E8A33D;
    --s-sick: #D9704F;
    --s-training: #6FA88A;
    --s-breaks: #7C93B8;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
    --display: 'Space Grotesk', var(--sans);
  }

  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height:100vh;
    padding: 28px 16px 60px;
  }

  .wrap{ max-width: 480px; margin: 0 auto; }

  header{
    margin-bottom: 26px;
  }
  header h1{
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text);
  }
  header p{
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
    max-width: 42ch;
  }

  /* ---- results summary ---- */
  .result-card{
    position:relative;
    background: var(--panel);
    border-radius: 6px;
    padding: 22px 18px 20px;
    margin-bottom: 30px;
    overflow:hidden;
  }
  .result-card::before{
    content:'';
    position:absolute;
    top:0; left:0; right:0;
    height: 3px;
    background: var(--accent);
  }
  .result-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap: 16px;
  }
  .result-label{
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 8px;
  }
  .result-number{
    font-family: var(--display);
    font-size: 46px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 28px rgba(232,163,61,0.35);
  }
  .result-number span{
    font-family: var(--sans);
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
    margin-left: 8px;
  }
  .occ-badge{
    text-align:right;
  }
  .occ-value{
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
  }
  .occ-tag{
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .result-bar-track{
    margin-top: 18px;
    height: 4px;
    border-radius: 2px;
    background: #0C1117;
    overflow:hidden;
  }
  .result-bar-fill{
    height: 100%;
    background: var(--accent);
    transition: width 0.25s ease;
  }

  .breakdown{
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    font-family: var(--mono);
    font-size: 12px;
  }
  .breakdown div{ color: var(--muted); }
  .breakdown div b{ color: var(--text); font-weight: 600; display:block; font-size: 13px; margin-top:2px;}

  /* ---- sections: plain blocks, not repeated boxed cards ---- */
  .section{
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--border);
  }
  .section:first-of-type{
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .section h2{
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
    display:flex;
    align-items:center;
    gap: 9px;
    letter-spacing: -0.005em;
  }
  .section h2::before{
    content:'';
    width: 3px; height: 14px;
    border-radius: 1px;
    background: var(--accent);
    display:inline-block;
  }

  .field{
    margin-bottom: 18px;
  }
  .field-row{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom: 7px;
  }
  .field label{
    font-size: 13px;
    color: var(--text);
  }
  .field .val{
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
  }
  .field .hint{
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 6px;
    line-height:1.45;
  }

  input[type=range]{
    -webkit-appearance:none;
    width:100%;
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    outline:none;
  }
  input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none;
    width: 15px; height:15px;
    border-radius:50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--border);
    cursor:pointer;
    margin-top:-6px;
  }
  input[type=range]::-moz-range-thumb{
    width: 13px; height:13px;
    border-radius:50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    cursor:pointer;
  }

  input[type=number]{
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    padding: 8px 2px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    outline:none;
  }
  input[type=number]:focus{
    border-bottom-color: var(--accent);
  }

  .aht-row{
    display:flex;
    gap: 10px;
    align-items:stretch;
  }
  .aht-row input[type=number]{
    flex: 1;
  }
  .aht-row select{
    flex-shrink:0;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--accent);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 10px;
    outline:none;
    cursor:pointer;
  }

  .shrink-input-row{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .shrink-input-row input[type=range]{
    flex: 1;
  }
  .hrs-input{
    display:flex;
    align-items:center;
    gap: 5px;
    flex-shrink:0;
  }
  .hrs-input input[type=number]{
    width: 54px;
    padding: 6px 2px;
    font-size: 12.5px;
    text-align:right;
  }
  .hrs-input span{
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
    white-space:nowrap;
  }

  .mode-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom: 16px;
  }
  .mode-row label{
    font-size: 13px;
    color: var(--muted);
  }
  .mode-row select{
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--accent);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 6px 10px;
    outline:none;
    cursor:pointer;
  }

  .shrink-total{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .shrink-total b{
    font-family: var(--mono);
    font-size: 19px;
    color: var(--text);
    font-weight: 700;
  }
  .shrink-bar{
    display:flex;
    height: 8px;
    border-radius: 4px;
    overflow:hidden;
    background: #0C1117;
  }
  .shrink-seg{
    height:100%;
    transition: width 0.25s ease;
  }
  .shrink-legend{
    margin-top: 14px;
    display:flex;
    flex-direction:column;
    gap: 9px;
  }
  .shrink-legend-item{
    display:flex;
    align-items:center;
    gap: 9px;
    font-size: 12.5px;
  }
  .shrink-legend-item .dot{
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink:0;
  }
  .shrink-legend-item .leg-name{
    color: var(--text);
    flex:1;
  }
  .shrink-legend-item .leg-val{
    font-family: var(--mono);
    color: var(--text);
    font-weight: 600;
  }
  .shrink-legend-item .leg-share{
    font-family: var(--mono);
    color: var(--muted);
    font-size: 11px;
  }

  .two-col{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  footer{
    text-align:center;
    color: var(--muted);
    font-size: 11.5px;
    font-family: var(--sans);
    margin-top: 30px;
  }

  @media (prefers-reduced-motion: reduce){
    .result-bar-fill{ transition:none; }
  }

  .layout{
    display:grid;
    grid-template-columns: 1fr;
  }
  .results-col{
    margin-bottom: 8px;
  }

  .chart-card{
    background: var(--panel);
    border-radius: 6px;
    padding: 18px 18px 16px;
    margin-top: 14px;
  }
  .chart-card h3{
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text);
  }

  .hbar{
    display:flex;
    height: 10px;
    border-radius: 5px;
    overflow:hidden;
    background:#0C1117;
  }
  .hseg{ height:100%; transition: width .25s ease; }
  .hchart-legend{
    display:flex;
    flex-direction:column;
    gap: 9px;
    margin-top: 14px;
    font-size: 12px;
  }
  .hchart-legend div{
    display:flex;
    align-items:center;
    gap: 8px;
    color: var(--muted);
  }
  .hchart-legend .dot{
    width:7px; height:7px; border-radius:50%; flex-shrink:0;
  }
  .hchart-legend b{
    margin-left:auto;
    font-family: var(--mono);
    color: var(--text);
    font-weight:600;
  }

  .sens-chart svg{ width:100%; height:auto; display:block; }
  .sens-note{
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 10px;
    line-height:1.4;
  }

  @media (min-width: 900px){
    .wrap{ max-width: 1060px; }
    .layout{
      grid-template-columns: 1fr 380px;
      gap: 48px;
      align-items:start;
    }
    .inputs-col{ order: 1; }
    .results-col{
      order: 2;
      position: sticky;
      top: 28px;
      margin-bottom: 0;
    }
  }

/* ---- site nav ---- */
.site-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.site-logo{
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration:none;
}
.site-nav-links{
  display:flex;
  gap: 18px;
  flex-wrap:wrap;
}
.site-nav-links a{
  font-size: 13px;
  color: var(--muted);
  text-decoration:none;
}
.site-nav-links a:hover, .site-nav-links a[aria-current="page"]{
  color: var(--accent);
}

/* ---- site footer ---- */
.site-footer{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align:center;
}
.site-footer-links{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.site-footer-links a{
  color: var(--muted);
  text-decoration:none;
}
.site-footer-links a:hover{ color: var(--accent); }
.site-footer-links span{ color: var(--border); }
.site-footer p{
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- long-form content pages (about/methodology/faq/privacy) ---- */
.article{
  padding-bottom: 20px;
}
.article h1{
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.article .lede{
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 60ch;
}
.article h2{
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}
.article h3{
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}
.article p{
  font-size: 14px;
  line-height: 1.7;
  color: #C7CCD3;
  margin: 0 0 14px;
  max-width: 62ch;
}
.article ul, .article ol{
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 62ch;
}
.article li{
  font-size: 14px;
  line-height: 1.7;
  color: #C7CCD3;
  margin-bottom: 6px;
}
.article code{
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 3px;
}
.article .formula{
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 4px;
  margin: 16px 0 20px;
  overflow-x:auto;
  white-space: pre;
}
.article a{ color: var(--accent); }

.faq-item{
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.faq-item:first-child{ border-top:none; padding-top:0; }
.faq-item h3{ margin: 0 0 8px; }
.faq-item p{ margin:0; }

.cta-row{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cta-row a{
  display:inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration:none;
  border: 1px solid var(--accent-dim);
  border-radius: 5px;
  padding: 9px 16px;
}
.cta-row a:hover{ background: var(--accent-dim); }

.tat-headline{
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

/* ---- cookie consent banner ---- */
#cookieConsentBanner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 480px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
#cookieConsentBanner p{
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
#cookieConsentBanner p a{ color: var(--accent); }
.cookie-consent-actions{
  display: flex;
  gap: 10px;
}
.cookie-consent-actions button{
  flex: 1;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--border);
}
#cookieConsentOk{
  background: var(--accent);
  color: #12181F;
  border-color: var(--accent);
}

@media (min-width: 900px){
  #cookieConsentBanner{
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 340px;
  }
}
