/* CEO Cockpit: one stylesheet, no build step. Calm and clean (PRD 5). */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --border: #e4e4e0;
  --accent: #2f5d50;
  --accent-soft: #e6efec;
  --danger: #a3352b;
  --danger-soft: #f7e6e4;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
}

a { color: var(--accent); }

/* --- top bar ------------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--bg); font-weight: 500; }
.user { display: flex; gap: 12px; align-items: center; font-size: 13px; margin-left: auto; }

/* --- layout -------------------------------------------------------------------------------- */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.table-card { padding: 16px 0 4px; }
.table-card h2 { padding: 0 20px; }

h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 0; }
code { font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.narrow { max-width: 420px; margin: 48px auto 0; }
.center { text-align: center; }
.inline { display: flex; align-items: center; gap: 12px; margin: 0; }

/* --- controls ------------------------------------------------------------------------------ */
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button.small { padding: 6px 14px; font-size: 14px; margin-top: 0; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }

.flash { padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); margin-bottom: 16px; font-size: 14px; }
.flash.error { background: var(--danger-soft); color: var(--danger); }

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  line-height: 18px;
  vertical-align: middle;
}
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }

/* --- tables -------------------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table .num { text-align: right; }
.table tr.dim td { color: var(--muted); }
.table.compact { margin-top: 12px; font-size: 13px; }
/* Same column widths in every domain group of Rhythm */
.table.fixed { table-layout: fixed; }
.table.fixed td { overflow-wrap: anywhere; }
.c-stream { width: 34%; }
.c-cadence { width: 10%; }
.c-owner { width: 16%; }
.c-date { width: 11%; }
.c-num { width: 8%; }
.c-doc { width: 10%; }
.table.compact td, .table.compact th { padding-left: 8px; }

/* Phone: table rows become cards (PRD 5) */
@media (max-width: 760px) {
  .topbar { gap: 12px; }
  .user .email { display: none; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 10px 20px; border-bottom: 1px solid var(--border); }
  .table.responsive tr:last-child { border-bottom: 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; }
  .table.responsive td:first-child { padding-left: 0; font-weight: 500; display: block; margin-bottom: 4px; }
  .table.responsive td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--muted); }
  .table.responsive .num { text-align: right; }
}

/* --- import -------------------------------------------------------------------------------- */
.spaced { margin-top: 20px; }
.issues { margin: 0; padding-left: 18px; font-size: 14px; }
.issues li { margin: 2px 0; }
.issues.error li { color: var(--danger); }
.upload { display: grid; gap: 14px; margin-top: 12px; }
.upload label { display: grid; gap: 4px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* --- shared bits for M5 screens ------------------------------------------------------------ */
.count { color: var(--muted); font-weight: 400; font-size: 16px; margin-left: 4px; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.crumbs { margin: 0 0 8px; font-size: 14px; }
.crumbs a { text-decoration: none; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.spaced-sm { margin: 8px 0 0; }
.overdue { color: var(--danger); font-weight: 500; }
.unmatched { border-bottom: 1px dashed var(--danger); }
.badge.warn { background: #fbf1dc; color: #8a5a00; }
.badge.tag { text-decoration: none; margin: 0 4px 2px 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger, .danger { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2.wide-left { grid-template-columns: 3fr 2fr; }

/* pills: status and priority */
.pill { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; line-height: 20px; background: var(--bg); color: var(--muted); }
.s-open { background: #e8eef9; color: #2c4f8f; }
.s-done { background: var(--accent-soft); color: var(--accent); }
.s-postponed, .s-no_update { background: #fbf1dc; color: #8a5a00; }
.s-cancelled { background: var(--bg); color: var(--muted); }
.p-P1 { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.p-P2 { background: var(--bg); color: var(--text); }
.p-P3 { background: var(--bg); color: var(--muted); }

select.quick {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 10px; padding: 1px 10px;
  font: inherit; font-size: 12px; line-height: 20px; cursor: pointer;
}
select.quick:focus { outline: 2px solid var(--accent); }
select.quick.saved { box-shadow: 0 0 0 2px var(--accent); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; }
.filters input, .filters select, .form input, .form select, .form textarea {
  font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
}
.filters .grow { flex: 1 1 200px; min-width: 160px; }
.filters .field { font-size: 13px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.check { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; color: var(--text); }
.reset { font-size: 13px; }
.columns { margin: -6px 0 12px; }
.column-list { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; }

/* items table */
.table.items .item-link { color: var(--text); text-decoration: none; }
.table.items .item-link:hover { text-decoration: underline; }
.table.items tr.closed .item-link { color: var(--muted); text-decoration: line-through; }
.table.items .col-item { min-width: 280px; }

/* item card and forms */
.item-head { font-size: 20px; line-height: 1.35; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.form { display: grid; gap: 10px; margin-top: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form label.check { display: inline-flex; color: var(--text); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.form button { justify-self: start; }
.narrow-form { max-width: 640px; }
.edit { border-top: 1px solid var(--border); padding-top: 10px; }
.comment { border-bottom: 1px solid var(--border); padding: 8px 0; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; }
.history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.related { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.related li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.related li:last-child, .history li:last-child { border-bottom: 0; }
.related .item-link { color: var(--text); }

/* overview */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--accent); }
.tile-n { font-size: 30px; font-weight: 600; line-height: 1.1; }
.tile-l { color: var(--muted); font-size: 13px; }
.tile.t-overdue:not(.zero) .tile-n, .tile.t-p1_at_risk:not(.zero) .tile-n { color: var(--danger); }
.tile.zero .tile-n { color: var(--muted); }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.leader { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); border-left-width: 4px; }
.leader.ok { border-left-color: var(--accent); }
.leader.warn { border-left-color: #d9a227; }
.leader.bad { border-left-color: var(--danger); background: #fdf6f5; }
.leader-name { font-weight: 500; }
.leader-nums { font-size: 14px; }
.feed { padding: 6px 16px; }
.feed-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.feed-row:last-child { border-bottom: 0; }
.feed-row a { color: var(--text); text-decoration: none; }
.feed-row a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .nav { overflow-x: auto; }
  .nav a { padding: 6px 6px; white-space: nowrap; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
  .filters .field { flex: 1 1 45%; }
  .table.responsive.items tr { display: flex; flex-direction: column; }
  .table.items td.col-item { order: -1; display: block; font-weight: 400; margin-bottom: 4px; }
  .table.items td:first-child { font-weight: 400; display: flex; margin-bottom: 0; }
  .table.items td:first-child::before { content: attr(data-label); color: var(--muted); }
  .table.items td.col-item::before { content: none; }
  .table.items .col-item { min-width: 0; }
}

/* --- polish after the first visual review ------------------------------------------------- */
.filters select, .filters input { max-width: 100%; }
.filters .actions { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.more-filters { display: contents; }
.more-filters > summary { display: none; }
.more-filters-body { display: contents; }

/* Action items filters: one 6-column grid, every control the same height.
   Row 1: search + Apply/Reset. Row 2: six selects. Row 3: date range + checkboxes. */
.items-filters {
  --control-h: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 16px;
}
.items-filters input[type="search"],
.items-filters input[type="date"],
.items-filters select {
  width: 100%;
  min-width: 0;
  height: var(--control-h);
  padding: 0 10px;
  border-radius: 8px;
}
.items-filters select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b70' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
}
/* Browsers wrap <details> content in their own box; let its children join the grid. Older browsers
   without ::details-content get the extra filters as a full-width block on the same 6 columns. */
.items-filters .more-filters { grid-column: 1 / -1; }
.items-filters .more-filters-body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: center; }
@supports selector(::details-content) {
  @media (min-width: 761px) {
    .items-filters .more-filters, .items-filters .more-filters-body { display: contents; }
    .items-filters .more-filters::details-content { display: contents; }
  }
}
.items-filters input:focus, .items-filters select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.items-filters .search { grid-column: 1 / span 5; grid-row: 1; }
.items-filters .actions { grid-column: 6; grid-row: 1; justify-content: flex-end; gap: 14px; }
.items-filters .actions .button { height: var(--control-h); padding: 0 18px; }
.items-filters .date-range { grid-column: span 2; display: flex; align-items: center; gap: 8px; }
.items-filters .date-range input { flex: 1 1 0; }
.items-filters .date-range-label { font-size: 13px; color: var(--muted); }
.items-filters .date-range-dash { color: var(--muted); }
.items-filters .checks { grid-column: span 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-left: 8px; }

@media (min-width: 761px) and (max-width: 1023px) {
  .items-filters, .items-filters .more-filters-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .items-filters .search { grid-column: 1 / span 2; }
  .items-filters .actions { grid-column: 3; }
  .items-filters .date-range { grid-column: span 2; }
  .items-filters .checks { grid-column: span 3; padding-left: 0; }
}

@media (max-width: 760px) {
  .items-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .items-filters .search { grid-column: 1 / -1; grid-row: auto; }
  .items-filters .more-filters { grid-column: 1 / -1; }
  .items-filters .more-filters-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .items-filters .date-range, .items-filters .checks { grid-column: 1 / -1; padding-left: 0; }
  .items-filters .actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
}

@media (max-width: 760px) {
  /* top bar: brand and sign out on the first line, sections scroll on the second */
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 16px 0; row-gap: 4px; }
  .nav { order: 3; flex: 1 0 100%; padding-bottom: 6px; }
  .user { order: 2; }

  /* filters: search, status and priority stay, the rest folds under "Filters" */
  .more-filters { display: block; flex: 1 0 100%; }
  .more-filters > summary { display: list-item; padding: 2px 0; }
  .more-filters-body { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .more-filters-body select { flex: 1 1 45%; min-width: 0; }

  .table.responsive.items td.col-item[data-label]::before { content: none; }
  .table.responsive td.empty { display: none; }
  .table.responsive td.block { display: block; }
  .table.responsive td.block::before { display: block; }

  .leaders { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .leader { padding: 10px 10px; }
  .leader-name { font-size: 14px; }
  .leader-nums, .leader .meta { font-size: 12px; }
}

/* Add item: fields the parser could not resolve */
.flash.warn { background: #fbf1dc; color: #6b4600; }
.flash.warn .issues { margin-top: 4px; }
.form label.unresolved { color: #8a5a00; }
.form label.unresolved select, .form label.unresolved input { border-color: #d9a227; background: #fffaf0; }
.parsed { border-color: var(--accent); }

/* --- Action items table ---------------------------------------------------------------------
   Everything sits on the white card: the page is a bit wider for this list, columns have fixed
   widths (items_pages.COLUMN_WIDTHS), "Topic and item" takes the rest and shows at most three
   lines. When many columns are chosen the table scrolls inside the card, not over the page. */
.page:has(.items-card) { max-width: 1440px; }
.items-card { padding: 0; overflow: hidden; }
.items-card .columns { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.items-card .columns summary { font-size: 13px; width: fit-content; }
.items-card .column-list { padding: 12px 0 2px; gap: 8px 18px; }
.table-scroll { overflow-x: auto; }
.table.items { table-layout: fixed; min-width: var(--table-min, 0); }
.table.items th { padding: 12px 12px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table.items td { padding: 12px; overflow-wrap: anywhere; line-height: 1.45; }
.table.items th:first-child, .table.items td:first-child { padding-left: 20px; }
.table.items th:last-child, .table.items td:last-child { padding-right: 20px; }
.table.items tbody tr:hover td { background: #fafaf8; }
.table.items .col-item { min-width: 0; }
.table.items select.quick { width: 100%; max-width: 116px; text-overflow: ellipsis; }
.table.items .badge.tag { margin: 0 4px 4px 0; }
.clamp-3, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.item-flags { margin-top: 4px; }
.item-flags .badge:first-child { margin-left: 0; }

@media (max-width: 760px) {
  .table.items { table-layout: auto; min-width: 0; }
  .table.items colgroup { display: none; }
  .table.items td { padding: 2px 0; }
  .table.items td:first-child { padding-left: 0; }
  .table.items td:last-child { padding-right: 0; }
  .table.items tbody tr:hover td { background: none; }
  .table.items select.quick { width: auto; }
  .table.items td::before { flex-shrink: 0; }
  .table.items .col-due .clamp-2 { text-align: right; }
  .table.items .tag-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .table.items .tag-list .badge.tag { margin: 0; }
}

/* Chips: co-owners in the item card, edited in place */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-list { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 10px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 24px; }
.chip-x { border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 50%; cursor: pointer; }
.chip-x:hover { color: var(--danger); background: #fff; }
.chip-add { appearance: none; -webkit-appearance: none; border: 1px dashed var(--border); border-radius: 12px; background: #fff; color: var(--accent); font: inherit; font-size: 13px; line-height: 22px; padding: 0 10px; cursor: pointer; max-width: 180px; }
.chip-add:hover { border-color: var(--accent); }
.chips.saving { opacity: .6; pointer-events: none; }

/* --- Due field (card, Add item, list popover) ------------------------------------------------ */
.form .label-like { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form .label-like.unresolved { color: #8a5a00; }
.due-field { display: grid; gap: 6px; color: var(--text); }
.due-row { display: flex; gap: 6px; }
.due-row .due-input { flex: 1; min-width: 0; }
.due-calendar { width: 40px; padding: 6px 4px !important; color: transparent; cursor: pointer; }
.due-calendar::-webkit-datetime-edit { display: none; }
.due-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.due-quick button {
  border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 12px;
  font: inherit; font-size: 12px; line-height: 22px; padding: 0 10px; cursor: pointer;
}
.due-quick button:hover { border-color: var(--accent); color: var(--accent); }
.due-preview { min-height: 18px; }
.due-preview.due-words, .due-words { color: #8a5a00; }
.due-words { border-bottom: 1px dashed #d9b56b; }
.pill.due-asap { background: var(--danger-soft); color: var(--danger); font-weight: 600; }

/* --- list: edit due and tags in place -------------------------------------------------------- */
.cell-edit {
  display: block; width: 100%; text-align: left; border: 0; background: none; padding: 2px 4px; margin: -2px -4px;
  border-radius: 6px; font: inherit; color: inherit; cursor: pointer;
}
.cell-edit:hover { background: var(--accent-soft); }
.cell-edit.saved, .tag-edit.saved { box-shadow: 0 0 0 2px var(--accent); }
.tag-edit {
  border: 1px dashed var(--border); background: #fff; color: var(--muted); border-radius: 10px;
  font: inherit; font-size: 12px; line-height: 18px; padding: 0 7px; cursor: pointer; vertical-align: top;
}
.table.items .col-tags .tag-edit { opacity: 0; transition: opacity .15s; }
.table.items tr:hover .col-tags .tag-edit, .table.items .col-tags .tag-edit:focus { opacity: 1; }
.table.items .col-tags .tag-list .tag-edit:only-child { opacity: 1; }
.tag-edit:hover { border-color: var(--accent); color: var(--accent); }
.popover {
  position: absolute; z-index: 20; width: 340px; max-width: calc(100vw - 16px); padding: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.popover input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; }
.popover.saving { opacity: .6; pointer-events: none; }
.pop-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.chip-input { flex: 1 1 120px; min-width: 120px; font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 12px; }

@media (max-width: 760px) {
  .table.items .col-tags .tag-edit { opacity: 1; }
  .cell-edit { text-align: right; }
}

/* --- Holiday decoration (settings: app.holiday_theme) ------------------------------------------
   Winter scene, original drawing (scripts/draw_holiday_svg.py): a light blue sky with falling snow,
   a garland of snowflakes under the top bar (static/holiday-snow-top.svg) and snowy hills with
   line-art fir trees along the bottom (static/holiday-snow-bottom.svg). Fixed behind the content,
   never catching clicks; the white cards keep the data readable. --bg is not changed on purpose:
   pills inside the cards use it. */
body.holiday {
  background-color: #bcdcf0;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 2.4px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .85) 0 1.4px, transparent 2px),
    radial-gradient(circle at 40% 80%, #fff 0 3.4px, transparent 4px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .75) 0 1.1px, transparent 1.7px),
    linear-gradient(180deg, #c8e4f5 0%, #b2d5eb 100%);
  background-size: 140px 150px, 90px 110px, 230px 210px, 60px 70px, 100% 100%;
  background-attachment: fixed;
}
body.holiday::before, body.holiday::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}
body.holiday::before { top: 52px; height: 110px; background: url("holiday-snow-top.svg") repeat-x 0 0 / auto 110px; }
body.holiday::after { bottom: 0; height: 260px; background: url("holiday-snow-bottom.svg") repeat-x 0 100% / auto 260px; }
body.holiday .page, body.holiday .topbar { position: relative; z-index: 1; }
body.holiday .page-head h1, body.holiday .crumbs a { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
body.holiday .popover { z-index: 30; }

@media (max-width: 760px) {
  body.holiday::before { top: 84px; height: 64px; background-size: auto 64px; }
  body.holiday::after { height: 150px; background-size: auto 150px; }
}
@media print {
  body.holiday { background: #fff; }
  body.holiday::before, body.holiday::after { display: none; }
}
