:root {
  --bg: #fbf7f0; --card: #ffffff; --ink: #1d2733; --muted: #5d6b7a; --line: #e6dfd2;
  --accent: #e4572e; --accent-ink: #ffffff; --accent-soft: #fde8e0;
  --hol: #1f8a7d; --hol-soft: #d7f0ec; --wknd: #e9edf2; --black: #f3d9d9;
  --radius: 14px; --shadow: 0 1px 2px rgba(29, 39, 51, .06), 0 4px 14px rgba(29, 39, 51, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141a22; --card: #1c2430; --ink: #eef2f6; --muted: #a3b0be; --line: #2e3a49; --accent: #ff7a50; --accent-ink: #1a0f0a; --accent-soft: #3a2218; --hol: #4fc3b3; --hol-soft: #17413c; --wknd: #263140; --black: #4a2a2a; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav a { margin-left: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
footer.site { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.15; margin: .4em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin: 0 0 1em; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .layout { grid-template-columns: 340px minmax(0, 1fr); } .layout > form { position: sticky; top: 8px; } }
form fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
form legend, form label.l { font-weight: 700; font-size: .95rem; padding: 0; display: block; margin-bottom: 6px; }
input[type=number], input[type=date], select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; min-height: 44px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1 1 120px; min-width: 0; }
.days-input { display: flex; gap: 8px; align-items: center; }
.days-input input { font-size: 1.6rem; font-weight: 800; text-align: center; }
.pills { display: flex; flex-wrap: nowrap; gap: 4px; }
.pill { position: relative; flex: 1 1 0; min-width: 0; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: block; min-width: 0; text-align: center; padding: 10px 2px; font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--card); }
.pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill input:focus-visible + span, .check input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; background: var(--card); }
summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; min-height: 36px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); }
.badge { font-size: .72rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 1px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
button, .btn { font: inherit; font-weight: 700; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--black); padding: 4px 6px 4px 12px; border-radius: 99px; font-size: .9rem; display: flex; align-items: center; gap: 4px; }
.chips .x { min-height: 28px; padding: 0 9px; border-radius: 99px; border: 0; background: transparent; font-size: 1.1rem; }
.note { color: var(--accent); font-size: .9rem; min-height: 1.2em; margin: 4px 0 0; }
.big { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
#summary p { margin: 0 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.actions[hidden], [hidden] { display: none !important; }
#share-link { margin-top: 8px; }
.plans { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.plancard { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px; font-weight: 400; }
.plancard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.plancard .rank { font-weight: 800; color: var(--accent); }
.plancard .strip { grid-column: 1 / -1; }
.ptxt strong { font-weight: 800; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
.tag { background: var(--hol-soft); color: var(--hol); font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.strip { position: relative; height: 10px; background: var(--wknd); border-radius: 6px; overflow: hidden; }
.strip .seg { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr[class=on] { background: var(--accent-soft); }
.scroll { overflow-x: auto; }
#compare tbody tr { cursor: pointer; }
.cal { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 12px; }
.month h4 { margin: 0 0 4px; font-size: .95rem; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; font-size: .8rem; text-align: center; }
.mgrid .dh { color: var(--muted); font-weight: 700; padding: 2px 0; }
.cell { padding: 5px 0; margin: 1px 0; min-height: 28px; border-radius: 0; }
.cell.wknd { background: var(--wknd); color: var(--muted); }
.cell.hol { background: var(--hol); color: #fff; font-weight: 700; border-radius: 6px; margin: 1px; }
.cell.vac { background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: 6px; margin: 1px; }
.cell.black { background: repeating-linear-gradient(45deg, var(--black), var(--black) 3px, transparent 3px, transparent 6px); text-decoration: line-through; }
.cell.brk:not(.vac):not(.hol) { box-shadow: inset 0 -3px 0 var(--accent); }
.legend { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.sw.vac { background: var(--accent); } .sw.hol { background: var(--hol); } .sw.wknd { background: var(--wknd); border: 1px solid var(--line); } .sw.black { background: var(--black); }
.breaks, .free { padding: 0; margin: 10px 0 0; list-style: none; display: grid; gap: 8px; }
.break { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.break .bt { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.break .len { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 10px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.break .bd { font-weight: 600; } .break .bv, .bh { color: var(--muted); font-size: .92rem; }
.free li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 14px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fact b { display: block; font-size: 1.6rem; line-height: 1.1; }
.linklist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 10px 0; }
.linklist a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; }
.linklist a:hover { border-color: var(--accent); }
.source { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--hol); padding-left: 12px; margin: 14px 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.cta { margin: 16px 0; }
@media (max-width: 560px) { nav a { margin-left: 10px; } .cal { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; font-size: 12px; }
  header.site, footer.site, .noprint, .skip { display: none !important; }
  .print-only { display: block; }
  .cal { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cell.hol, .cell.vac, .cell.wknd, .strip .seg, .sw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .break, .month { break-inside: avoid; }
  a { color: #000; }
}
