#calendar-tool {
  background: var(--porcelain);
  border: 1px solid #cccfbf;
  border-radius: 15px;
  padding: clamp(1rem,2.9vw,1.95rem);
  box-shadow: 0 10px 26px -21px #30402d59;
}
.cy-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.35rem; }
.cy-title h3 { margin: 0; font: 400 clamp(1.65rem,2.6vw,2.15rem)/1.1 var(--serif); letter-spacing: -.045em; }
.cy-title p { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }
.cy-picker {
  --frame: #d6d9c9;
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  min-width: 0; max-width: 100%; padding: 4px; margin: 0;
  border: 1px solid var(--frame); border-radius: 13px;
  background: linear-gradient(180deg,#e9eadd,#f4f4e9);
  box-shadow: inset 0 1px 3px #334b2b0e,0 1px 0 #fff;
}
.cy-picker label { position: relative; cursor: pointer; }
.cy-picker input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.cy-picker label > span {
  display: flex; justify-content: center; align-items: center; gap: .43rem;
  min-height: 41px; padding: .4rem .83rem; border-radius: 9px;
  color: #465549; font-size: .85rem; font-weight: 650; letter-spacing: .025em;
}
.cy-picker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cy-picker input:checked + span {
  color: #fffdf2; background: linear-gradient(145deg,#38634c,#224836 72%,#2d513c);
  box-shadow: inset 0 0 0 1px #284b38,inset 0 2px 0 #ffffff40,0 2px 4px #2a432d29;
}
.cy-picker input:checked + span svg { color: #e1e8ca; }
.cy-picker input:focus-visible + span { outline: 3px solid #986d36; outline-offset: 2px; }
@media(hover:hover) { .cy-picker label:hover input:not(:checked) + span { background: #fafaf3; color: #244b35; } }
.cy-quarter-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.cy-quarter {
  display: flex; flex-direction: column; min-width: 0; border: 1px solid #d9ddce; border-radius: 9px;
  padding: .8rem .95rem .74rem; background: linear-gradient(150deg,#fafbf5,#f4f5ed);
}
.cy-projected { border: 1px dashed #b79566; background: linear-gradient(145deg,#fff9eb,#f7edda); }
.cy-quarter > span { display: flex; flex-wrap: wrap; gap: .18rem .55rem; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .9rem; }
.cy-quarter small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.cy-quarter-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: .22rem .42rem; margin-top: .85rem; }
.cy-quarter-score small { order: 1; }
.cy-quarter-score strong { font: 400 clamp(1.8rem,2.4vw,2.2rem)/1.1 var(--serif); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.cy-plan-line { color: var(--muted); font-size: .84rem; margin-top: .23rem; }
.cy-comparison { width: fit-content; font-size: .79rem; line-height: 1.4; font-weight: 650; margin: .55rem 0 .65rem; }
.cy-ahead { color: #295d44; }
.cy-behind { color: #7a4c24; }
.cy-even,.cy-time { color: #475749; }
.cy-projected .cy-quarter-score strong,.cy-projected > span { color: #62451f; }
.cy-volume { border-top: 1px solid #d9ddce; margin-top: auto; padding-top: .45rem; }
.cy-projected .cy-volume { border-color: #e2d2b6; }
.cy-model { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: center; gap: clamp(1rem,3vw,2rem); margin-top: 1.4rem; }
.cy-input { --tone: var(--jade); --track: #acbf99; min-width: 0; }
.cy-input label,.cy-ends { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cy-input label { font-size: .95rem; font-weight: 650; }
.cy-input output { color: #29583c; background: #eaf0df; border: 1px solid #dae4ce; padding: .12rem .53rem; border-radius: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cy-ends,.cy-input p { font-size: .8rem; color: var(--muted); }
.cy-input p { margin: .48rem 0 0; line-height: 1.45; max-width: 59ch; }
.cy-result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  color: #fffdf0; background: radial-gradient(ellipse at 0 0,#355d48,transparent 80%),#1c3c30;
  border: 1px solid #244936; border-radius: 10px; padding: 1.05rem 1.12rem;
  box-shadow: inset 0 1px 0 #f3f2c51e;
}
.cy-year-figure,.cy-year-plan { display: grid; gap: .16rem; }
.cy-year-figure > span,.cy-year-plan small { color: #d8e4ce; font-size: .79rem; }
.cy-year-figure strong { font: 400 clamp(2.05rem,3.2vw,2.8rem)/1.08 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cy-annual-difference { color: #f1d6a7; font-size: .82rem; font-weight: 650; line-height: 1.4; }
#calendar-tool details { border-top: 1px solid var(--rule); margin-top: 1.2rem; padding-top: .77rem; }
#calendar-tool summary { cursor: pointer; width: fit-content; font-size: .85rem; font-weight: 600; }
#calendar-tool summary::marker { color: #718166; }
#calendar-tool details p { font-size: .85rem; color: var(--muted); margin: .45rem 0 0; }
@media(max-width:700px) {
  .cy-toolbar { flex-direction: column; align-items: stretch; gap: .8rem; margin-bottom: .9rem; }
  .cy-picker label > span { min-height: 44px; padding-inline: .32rem; }
  .cy-quarter-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .cy-quarter { padding: .68rem .73rem .62rem; }
  .cy-quarter-score { margin-top: .65rem; }
  .cy-model { grid-template-columns: 1fr; gap: .9rem; margin-top: 1rem; }
  .cy-result { padding: .85rem 1rem; }
}
@media(forced-colors:active) {
  .cy-picker input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
  .cy-picker input:focus-visible + span { outline: 3px double Highlight; outline-offset: 1px; }
}
