:root { color: #26332d; background: #f5f3ee; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(100% - 28px, 980px); margin: 0 auto; padding: 24px 0 40px; }
.brand { margin: 4px 0 22px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #1f654f; color: #fff; font-size: 12px; font-weight: 800; }
.eyebrow { margin: 0 0 3px; color: #1f654f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(25px, 6vw, 38px); line-height: 1.05; }
.intro { margin-bottom: 0; color: #756d62; font-size: 14px; }
.calculator, .rules { border: 1px solid #ded7ca; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(62, 53, 40, .06); }
.calculator { border-top: 4px solid #2f7d62; padding: 20px; }
h2 { margin-bottom: 20px; font-size: 21px; }
.controls { display: grid; gap: 19px; margin-top: 30px; }
.control { display: grid; gap: 9px; color: #625b50; font-size: 13px; font-weight: 700; }
.control > span { display: flex; justify-content: space-between; gap: 12px; }
output { color: #1f654f; font-size: 17px; }
input[type="range"] { width: 100%; accent-color: #2f7d62; cursor: pointer; }
.range-scale { display: grid; align-items: center; color: #8a8175; font-size: 9px; font-weight: 500; line-height: 1; }
.start-scale { grid-template-columns: repeat(13, 1fr); }
.duration-scale { grid-template-columns: repeat(25, 1fr); }
.range-scale span { text-align: center; }
.range-scale span:first-child { text-align: left; }
.range-scale span:last-child { text-align: right; }
.range-scale i { width: 1px; height: 5px; justify-self: center; background: #c8c0b4; }
select { width: 100%; border: 1px solid #d4cec3; border-radius: 7px; background: #fff; color: #26332d; padding: 11px 10px; font: inherit; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.stats > div { border: 1px solid #e5ded3; border-radius: 8px; background: #faf8f4; padding: 11px; }
.stats span, .stats strong { display: block; }
.stats span { color: #756d62; font-size: 11px; }
.stats strong { margin-top: 4px; font-size: 18px; }
.stats .total-card { grid-column: 1 / -1; border-color: #b9d9c5; background: #e9f4ed; }
.stats .total-card strong { color: #1f654f; font-size: 23px; }
.breakdown { margin-top: 12px; border: 1px solid #e5ded3; border-radius: 8px; background: #faf8f4; padding: 14px; }
h3 { margin-bottom: 8px; font-size: 16px; }
#items > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #e5ded3; padding: 9px 0 0; margin-top: 8px; color: #625b50; font-size: 13px; }
#items b { color: #1f654f; white-space: nowrap; }
.note { margin: 12px 0 0; color: #756d62; font-size: 11px; line-height: 1.45; }
.rules { margin-top: 14px; padding: 15px 18px; }
.rules summary { cursor: pointer; color: #26332d; font-size: 14px; font-weight: 800; }
.rule-grid { display: grid; gap: 12px; margin-top: 15px; }
.rule-grid div { display: grid; gap: 3px; border-top: 1px solid #e5ded3; padding-top: 10px; color: #756d62; font-size: 12px; line-height: 1.4; }
.rule-grid b { color: #26332d; }
@media (min-width: 700px) {
  .shell { padding-top: 42px; }
  .controls { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats .total-card { grid-column: auto; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
}
