/* ==========================================================================
   Инструменти: почивни дни, планер на отпуската, калкулатори, климат, багаж.
   Loaded by tools/layout.blade.php (every tool page) and tools/index.blade.php,
   after base.css + cards.css. Tool cards, the climate chart, .clim-cards and the
   legend keys (.cal-legend, .cal-key--*) live in cards.css.
   JS hooks (public/js/tools.js): [data-tool-form] [data-tool-result] [data-show-when] .is-live
   [data-pack] [data-trip] [data-pack-trip] [data-pack-item] [data-pack-count] [data-pack-fill]
   [data-pack-print] [data-pack-reset].
   ========================================================================== */

/* ---------- Tool head: icon square + H1 + lead ---------- */
.tool-head { display: flex; align-items: flex-start; gap: 18px; padding: 8px 0 28px; }
.tool-head__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--blue-50); color: var(--blue); font-size: 28px;
}
.tool-head__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; font-weight: 800; text-wrap: balance; }
.tool-head__lead { margin-top: 8px; max-width: 66ch; color: var(--muted); font-size: 1.0625rem; }

/* Small print under a block */
.tool-note { margin-top: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

/* ---------- Calculator frame: form panel on the left (sticky on desktop), result on the right ---------- */
.tool { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool__form { display: grid; gap: 18px; align-content: start; }
.tool__form fieldset, .month-pick fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.tool__form legend { margin-bottom: 8px; padding: 0; }
.is-live .tool__submit { display: none; }
.tool__result { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tool__result-title { font-size: 1.25rem; margin-top: 8px; }
[data-tool-result] { transition: opacity var(--t-fast) var(--ease); }
[data-tool-result][aria-busy="true"] { opacity: .55; }

.tool-field { display: grid; gap: 6px; min-width: 0; }
.tool-field__hint { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.tool-grid2, .tool-grid3, .tool-grid4 { display: grid; gap: 12px; }
.tool-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-grid2--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tool-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-grid3--month { grid-template-columns: minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.5fr); } /* room for "септември" */
.tool-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Input with a unit or a select arrow; the focus ring sits on the wrapper */
.tool-input {
  position: relative; display: flex; align-items: center; min-width: 0; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tool-input:hover { border-color: var(--subtle); }
.tool-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.tool-input:has(:user-invalid) { border-color: var(--red); }
.tool-input input, .tool-input select {
  flex: 1; width: 100%; min-width: 0; height: 46px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent; outline: none;
  color: var(--navy); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tool-input input:focus-visible, .tool-input select:focus-visible { outline: none; }
.tool-input--unit > span { padding-right: 14px; color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.tool-input--select select { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis; }
.tool-input--select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.tool-checks { display: grid; gap: 2px; }
.tool-checks .check { min-height: 40px; }

/* Radio choices shown as a segmented control (like .seg): grey track, the chosen one white with a blue outline */
.seg-radio { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border-radius: var(--r-md); background: var(--soft-2); }
.seg-radio label { position: relative; display: flex; min-width: 0; }
.seg-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg-radio span {
  display: inline-grid; place-items: center; flex: 1; min-width: 48px; min-height: 42px; padding: 0 14px;
  border-radius: 9px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg-radio label:hover span { color: var(--navy); }
.seg-radio input:checked + span {
  background: var(--white); color: var(--blue-700);
  box-shadow: inset 0 0 0 1.5px var(--blue), 0 1px 3px rgba(11, 31, 68, .12);
}
.seg-radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Many short choices (days of leave, months): an even grid */
.seg-radio--wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg-radio--wrap span { min-width: 0; padding: 0 6px; }
.seg-radio--months { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- Result: light card with the big number, then a light breakdown table ---------- */
.result-hero { padding: 24px 28px; border-radius: var(--r-lg); background: var(--blue-50); color: var(--text); }
.result-hero__kicker { font-size: 0.875rem; font-weight: 600; color: var(--blue-700); }
.result-hero__value {
  margin-top: 6px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.result-hero__value span { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--text); }
.result-hero__text { margin-top: 10px; max-width: 64ch; color: var(--text); }
.result-hero__text b { color: var(--navy); }
.result-hero__note {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 7px 12px;
  border-radius: var(--r-sm); background: var(--white); color: var(--navy); font-size: 0.875rem; font-weight: 600; line-height: 1.4;
}
.result-hero__note i { flex: none; font-size: 18px; color: var(--blue); }

.btable-wrap { overflow-x: auto; }
.tool__result .btable-wrap { padding: 4px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.btable { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.btable th, .btable td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.btable th { text-align: left; font-weight: 500; color: var(--navy); }
.btable td { padding-left: 16px; white-space: nowrap; font-weight: 600; color: var(--navy); }
.btable thead th { padding: 10px 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.btable thead th:not(:first-child) { padding-left: 16px; text-align: right; white-space: nowrap; }
.btable tbody tr:last-child > * { border-bottom: 0; }
.btable__note { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.btable__tag {
  display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 7px; vertical-align: 1px;
  border-radius: var(--r-xs); background: var(--green-50); color: var(--green-700); font-size: 0.75rem; font-weight: 700;
}
.btable__tag--muted { background: var(--soft-2); color: var(--muted); }
.btable tr.is-now > * { font-weight: 700; }
.btable tr.is-past > * { color: var(--subtle); }
.btable tr.is-base > * { padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 1rem; font-weight: 700; }

.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tool-actions .btn { white-space: normal; text-align: center; line-height: 1.2; }

/* Savings tip (green, like the "Спестяваш" label) */
.tool-tip { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-50); color: var(--text); font-size: 0.9375rem; }
.tool-tip i { flex: none; margin-top: 1px; font-size: 20px; color: var(--green); }
.tool-tip b { color: var(--green-700); }
.tool-tip a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* "How we calculate" blocks under a calculator */
.tool-info { display: grid; gap: 10px; align-content: start; max-width: 860px; padding: 24px; border-radius: var(--r-lg); background: var(--soft); }
.tool-info ul { display: grid; gap: 6px; padding-left: 18px; }
.tool-info a { font-weight: 600; }
.tool-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tool-info-grid .tool-info { max-width: none; }

.tool-ladder { margin-top: 16px; }
.tool-ladder .ladder { margin-top: 0; }

/* ---------- Key figures row (holidays, climate of a resort) ---------- */
.tool-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tool-head + .tool-stats { margin-top: 0; }
.tool-stats li {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
}
.tool-stats i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 20px; }
.tool-stats li > span { min-width: 0; }
.tool-stats small { display: block; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.tool-stats b { display: block; margin-top: 2px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--navy); }

/* ---------- Holidays: year switch, list, long weekends, year calendar ---------- */
.tool-years { margin-bottom: 4px; }

.hol-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hol { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.hol__date {
  flex: none; display: grid; place-items: center; align-content: center; width: 52px; height: 52px;
  border-radius: var(--r-md); background: var(--red); color: var(--white); line-height: 1;
}
.hol__date b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hol__date small { margin-top: 3px; font-size: 0.75rem; font-weight: 600; }
.hol.is-moved .hol__date { background: var(--white); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.hol.is-weekend .hol__date { background: var(--soft-2); color: var(--muted); }
.hol__body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hol__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.hol__meta { font-size: 0.8125rem; color: var(--muted); }
.hol__tag { flex: none; font-size: 0.75rem; font-weight: 700; color: var(--red); }
.hol.is-weekend .hol__tag { color: var(--muted); }

.lw-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lw { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.lw__days { font-size: 0.875rem; font-weight: 600; color: var(--blue-700); }
.lw__days b { margin-right: 2px; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.lw__range { margin-top: 4px; font-size: 1.0625rem; }
.lw__names { font-size: 0.9375rem; color: var(--text); }
.lw__weekdays { font-size: 0.8125rem; color: var(--muted); }
.lw__link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin-top: auto; font-size: 0.9375rem; font-weight: 600; }
.lw__link i, .plan__link i { transition: transform var(--t-fast) var(--ease); }
.lw__link:hover i, .plan__link:hover i { transform: translateX(3px); }

.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cal-month { padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.cal-month__name { margin: 0 0 10px 4px; font-size: 1rem; }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; text-align: center; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.cal-wd { padding-bottom: 4px; font-size: 0.6875rem; font-weight: 600; color: var(--subtle); }
.cal-day { position: relative; isolation: isolate; display: grid; place-items: center; height: 32px; color: var(--text); }
.cal-day.is-weekend { background: var(--soft-2); color: var(--muted); }
.cal-day.is-bridge { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.cal-day.is-leave { background: var(--green-50); color: var(--green-700); font-weight: 700; }
.cal-day.is-holiday, .cal-day.is-moved { font-weight: 700; }
.cal-day.is-holiday { color: var(--white); }
.cal-day.is-holiday::before, .cal-day.is-moved::before { content: ""; position: absolute; inset: 0; z-index: -1; width: 28px; height: 28px; margin: auto; border-radius: 50%; }
.cal-day.is-holiday::before { background: var(--red); }
.cal-day.is-moved { color: var(--red); }
.cal-day.is-moved::before { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--red); }
.cal-day.is-today::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--blue); border-radius: var(--r-sm); pointer-events: none; }

/* ---------- Leave planner ---------- */
.plans { list-style: none; display: grid; gap: 12px; }
.plan { display: grid; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan__title { font-size: 1.125rem; }
.plan__range { margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }
.plan__score { flex: none; text-align: right; font-size: 0.9375rem; font-weight: 600; line-height: 1.1; color: var(--navy); }
.plan__score b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__score small { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.strip { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.strip__day {
  flex: 1 0 36px; max-width: 56px; display: grid; place-items: center; gap: 3px; padding: 7px 0;
  border-radius: var(--r-sm); background: var(--soft-2); color: var(--navy);
  font-size: 0.9375rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.strip__day small { font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.strip__day.is-holiday { background: var(--red); color: var(--white); }
.strip__day.is-holiday small { color: rgba(255, 255, 255, .88); }
.strip__day.is-leave { background: var(--green-50); color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green); }
.strip__day.is-leave small { color: var(--green-700); }
.plan__text { font-size: 0.9375rem; }
.plan__text b { color: var(--navy); }
.plan__link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px; margin: -8px 0 -10px; font-size: 0.9375rem; font-weight: 600; }

/* ---------- Road trip: other border crossings ---------- */
.routes { display: grid; padding: 14px 20px 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.routes__title { margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.routes__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.routes__item .muted { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Climate: month picker, ranking, resort page ---------- */
.tool-panel__title { font-size: 1.1875rem; }
.tool-panel__desc { margin: 4px 0 18px; color: var(--muted); }
.month-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 12px; }
.month-pick fieldset { flex: 1 1 auto; }

.warm-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.warm {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto minmax(160px, auto);
  align-items: center; gap: 14px; min-height: 56px; padding: 8px 6px; border-bottom: 1px solid var(--line);
  transition: background-color var(--t-fast);
}
.warm:hover { background: var(--soft); }
.warm__rank {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft-2); color: var(--muted); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.warm.is-best .warm__rank { background: var(--blue); color: var(--white); }
.warm__name { font-weight: 600; color: var(--navy); }
.warm__name::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.warm__name:hover, .warm:hover .warm__name { color: var(--blue-700); }
.warm__name:focus-visible { outline: none; }
.warm__name:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: var(--r-sm); }
.warm__vals { display: flex; gap: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.warm__vals span { display: inline-flex; align-items: center; gap: 5px; }
.warm__vals i { font-size: 18px; color: var(--blue); }
.warm__vals .muted { font-weight: 600; color: var(--muted); }
.warm__vals .muted i { color: var(--orange); }
.warm__tag { font-size: 0.8125rem; text-align: right; color: var(--muted); }
.warm.is-best .warm__tag { font-weight: 700; color: var(--blue-700); }

.tool-links { list-style: none; margin-top: 16px; }

/* ---------- "Още полезни инструменти" (tools/partials/more): the "Всички инструменти" link is a 44px target ---------- */
.tool-more .section__actions { gap: 6px; min-height: 44px; white-space: nowrap; }
.tool-more .section__actions i { transition: transform var(--t-fast) var(--ease); }
.tool-more .section__actions:hover i { transform: translateX(3px); }

/* ---------- Packing list ---------- */
.pack__bar { display: grid; gap: 16px; }
.pack-trips { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-trips .pill { min-height: 42px; }
.pack-trips .pill:disabled { cursor: default; }
.pack__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pack__progress { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 220px; }
.pack__count { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pack__track { flex: 1; max-width: 360px; height: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--soft-2); }
.pack__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width var(--t-med) var(--ease); }
.pack__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pack__lists { columns: 2 340px; column-gap: 16px; margin-top: 16px; }
.pack-list { break-inside: avoid; margin-bottom: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.pack-list__title { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; }
.pack-list__title i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 20px; }
.pack-list__sub { margin: 18px 0 4px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .01em; color: var(--muted); }
.pack-items { list-style: none; }
.pack-item { align-items: flex-start; min-height: 0; padding: 7px 0; }
.pack-item .check__box { margin-top: 1px; }
.pack-item .check__label { display: block; line-height: 1.4; }
.pack-item .check__label small { display: block; font-size: 0.8125rem; color: var(--muted); }
.pack-item input:checked + .check__box { background: var(--green); border-color: var(--green); }
.pack-item input:checked ~ .check__label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--subtle); }

/* ---------- Responsive ---------- */
@media (min-width: 1081px) and (min-height: 700px) {
  .tool__form { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 1080px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-info-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hol-list { grid-template-columns: minmax(0, 1fr); }
  .seg-radio--months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* icon next to the H1, the lead below both at full width */
  .tool-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px 14px; padding-bottom: 22px; }
  .tool-head > div { display: contents; }
  .tool-head__icon { width: 48px; height: 48px; border-radius: 12px; font-size: 24px; }
  .tool-head__lead { grid-column: 1 / -1; margin-top: 0; font-size: 1rem; }
  .tool-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .seg-radio span { min-height: 44px; }
  .tool-checks .check, .pack-item { min-height: 44px; }
  .result-hero { padding: 20px; }
  .tool__result .btable-wrap { padding: 2px 14px; }
  .btable { font-size: 0.875rem; }
  .tool-actions .btn { flex: 1 1 100%; }
  .tool-info { padding: 18px; }
  .tool-stats { gap: 8px; }
  .tool-stats li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .tool-stats i { width: 34px; height: 34px; font-size: 18px; }
  .tool-stats b { font-size: 0.9375rem; }
  .hol { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 12px; }
  .hol__date { grid-row: span 2; width: 48px; height: 48px; }
  .hol__tag { grid-column: 2; }
  .lw-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .lw { padding: 14px 14px 8px; }
  .lw__range { font-size: 1rem; }
  .cal-month { padding: 10px 6px 12px; }
  .cal-month__name { font-size: 0.9375rem; margin-bottom: 6px; }
  .cal-days { font-size: 0.75rem; }
  .cal-day { height: 26px; }
  .cal-day.is-holiday::before, .cal-day.is-moved::before { width: 22px; height: 22px; }
  .plan { padding: 16px; }
  .plan__score b { font-size: 1.75rem; }
  .strip { gap: 3px; }
  .strip__day { flex-basis: 26px; font-size: 0.875rem; }
  /* name on the first line, label + temperatures on the second */
  .warm { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 4px; }
  .warm__rank { grid-row: 1 / 3; }
  .warm__name { grid-column: 2 / -1; overflow-wrap: anywhere; }
  .warm__vals { grid-row: 2; grid-column: 3; gap: 10px; font-size: 0.875rem; }
  .warm__vals i { font-size: 16px; }
  .warm__tag { grid-row: 2; grid-column: 2; text-align: left; }
  .pack-trips { gap: 6px; }
  .pack-trips .pill { padding: 0 13px; }
  .pack-trips .pill, .pack__actions .btn { min-height: 44px; }
  .pack__actions { width: 100%; }
  .pack__actions .btn { flex: 1 1 auto; }
  .pack__lists { columns: 1; }
  .pack-list { padding: 16px 18px; }
}
@media print {
  .crumbs, .tool-head__icon, .tool__form, .tool-actions, .pack__bar, .tool-more, .tool-years { display: none !important; }
  .tool { display: block; }
  .pack-list { padding: 0 0 12px; border: 0; border-radius: 0; }
  .pack-list__title i { display: none; }
}
