/* ============================================================
   Week Planner — the day timeline, the week side by side, the
   routine template and the weekly targets (page-planner.js).
   Prefix pl-. Tokens only: the one exception is the category
   colours, which come from the database and are set inline on
   tiles, swatches and bars.
   ============================================================ */

/* ── head, view switch, toolbar ─────────────────────────────────── */

.pl-head { margin-bottom: var(--space-lg); }
.pl-head-text { min-width: 0; }
.pl-sub { font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: 6px; }

.pl-views {
  display: inline-flex; gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
}
.pl-view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 18px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pl-view-btn:hover { color: var(--ink); }
.pl-view-btn.on { background: var(--ink); color: var(--ink-contrast); }

.pl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}
.pl-toolbar:empty { display: none; }
.pl-nav, .pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
/* "Previous day": the .btn gap would sit between "Previous" and " day" as a double space. */
.pl-nav .btn { gap: 0; }
.pl-wide { white-space: pre; }
.pl-jump { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
.pl-apply .pl-hint { flex-basis: 100%; }

.pl-busy .pl-body { opacity: 0.6; transition: opacity var(--dur-fast) var(--ease); pointer-events: none; }

.pl-hint { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.5; margin-top: 4px; }
.pl-panel-head { margin-bottom: var(--space-md); }
.pl-panel-foot { margin-top: var(--space-md); }
.pl-modal-p { font-size: 14px; line-height: 1.55; margin-bottom: var(--space-sm); }
.pl-empty-small { padding: var(--space-lg) var(--space-sm); }
.pl-empty-small a, .pl-hint a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pl-link-btn {
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.pl-swatch {
  display: inline-block; flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgb(var(--night-rgb) / 0.18);
}

/* ── layout: the grid on the left, palette and targets on the right ─ */

.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-lg); align-items: start; }
.pl-main { min-width: 0; }
.pl-main > .panel:last-child { margin-bottom: 0; }
.pl-side {
  position: sticky; top: calc(var(--topbar-height) + var(--space-md));
  max-height: calc(100vh - var(--topbar-height) - var(--space-xl));
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--space-md);
  scrollbar-width: thin;
}
.pl-side > .panel { margin-bottom: 0; }

/* ── the grid ───────────────────────────────────────────────────── */

.pl-cal-panel { padding: var(--space-md); }
.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-cal-week, .pl-cal-template { min-width: 620px; }
.pl-cal-hint { margin-top: var(--space-sm); }

.pl-cal-head { display: flex; margin-bottom: var(--space-sm); }
.pl-gutter-head { width: 48px; flex-shrink: 0; }
.pl-heads { flex: 1; display: grid; gap: 6px; min-width: 0; align-items: stretch; }

.pl-cal-body { display: flex; padding-top: 8px; padding-bottom: 8px; }
.pl-gutter { width: 48px; flex-shrink: 0; position: relative; }
.pl-hour {
  position: absolute; right: 8px;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.pl-cols { flex: 1; display: grid; gap: 6px; min-width: 0; }

.pl-col {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  /* hour lines, then fainter half-hour lines; sizes and offsets are set inline */
  background-image:
    linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--night-rgb) / 0.04) 0, rgb(var(--night-rgb) / 0.04) 1px, transparent 1px);
  background-repeat: repeat-y;
  cursor: cell;
}
.pl-col.is-weekend { background-color: var(--canvas); }
.pl-cal-week .pl-col { cursor: pointer; }
.pl-col.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ── tiles ──────────────────────────────────────────────────────── */

.pl-tile {
  position: absolute; left: 3px; right: 3px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 4px 8px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12.5px; line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgb(var(--night-rgb) / 0.14);
  cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.pl-tile:hover { box-shadow: inset 0 0 0 2px rgb(var(--night-rgb) / 0.4); }
.pl-tile:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; z-index: 4; }
.pl-on-light { color: var(--ink-contrast); }
.pl-on-dark { color: var(--ink); }
.pl-tile-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.pl-tile-time { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.92; }
.pl-tile-task { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.95; }
.pl-tile-task::before { content: "Task: "; font-weight: 700; }
.pl-tile-flag {
  position: absolute; top: 4px; right: 6px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--surface); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.pl-st-done .pl-tile-flag { color: var(--success-ink); }

.pl-small { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.pl-small .pl-tile-task { display: none; }
.pl-small .pl-tile-title { padding-right: 0; flex-shrink: 1; min-width: 0; }
.pl-small .pl-tile-flag { position: static; flex-shrink: 0; margin-left: auto; }
.pl-tiny { flex-direction: row; align-items: center; gap: 6px; padding: 0 6px; font-size: 11px; }
.pl-tiny .pl-tile-time, .pl-tiny .pl-tile-task, .pl-tiny .pl-tile-flag { display: none; }
.pl-tiny .pl-tile-title { padding-right: 0; }

/* A short block on a touch screen that borrows height from the bottom of the
   long block above it (page-planner.js tileHtml): drawn on top, with a gap line. */
.pl-lift { z-index: 2; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px rgb(var(--night-rgb) / 0.14); }

/* Done and over, still planned: quieter. Skipped: struck through and hatched. */
.pl-past { opacity: 0.88; }
.pl-st-skipped {
  opacity: 0.55;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(var(--night-rgb) / 0.16) 6px 12px);
}
.pl-st-skipped .pl-tile-title { text-decoration: line-through; }

/* Week view: tiles are for reading; the column opens the day. */
.pl-cal-week .pl-tile, .pl-cal-template .pl-tile { padding: 2px 6px; font-size: 11.5px; }
.pl-cal-week .pl-tile-task, .pl-cal-template .pl-tile-task { display: none; }
.pl-cal-week .pl-tile-title, .pl-cal-template .pl-tile-title { padding-right: 0; }
.pl-cal-week .pl-tile-flag { display: none; }
/* A short tile in a narrow column has room for its name only. */
.pl-cal-week .pl-small .pl-tile-time, .pl-cal-template .pl-small .pl-tile-time { display: none; }
.pl-col.is-folded .pl-tile { padding: 0; }
.pl-col.is-folded .pl-tile > * { display: none; }

/* Drag handles: a desktop thing. */
.pl-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.pl-resize::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 24px; height: 3px; margin-left: -12px; border-radius: 2px;
  background: currentColor; opacity: 0.35;
}
.pl-tile[data-drag] { cursor: grab; }
.pl-dragging { z-index: 5; cursor: grabbing; opacity: 0.94; box-shadow: 0 10px 28px rgb(var(--night-rgb) / 0.28), inset 0 0 0 2px var(--accent); }
.pl-clash { box-shadow: inset 0 0 0 3px var(--danger), 0 10px 28px rgb(var(--night-rgb) / 0.28); }
.pl-drop { box-shadow: inset 0 0 0 3px var(--accent-strong), 0 0 0 3px var(--accent-glow); }
.pl-task-dragging .pl-tile { transition: none; }

.pl-now {
  position: absolute; left: -1px; right: -1px; height: 0;
  border-top: 2px solid var(--danger);
  z-index: 3; pointer-events: none;
}
.pl-now::before {
  content: ""; position: absolute; left: -4px; top: -5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
}
.pl-sel {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 2px dashed var(--accent-strong);
  z-index: 4; pointer-events: none;
}
.pl-sel span {
  position: absolute; right: 4px; top: 3px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--accent); color: var(--accent-contrast);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* ── day heading strip ──────────────────────────────────────────── */

.pl-daysum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-sm); }
.pl-daysum:empty { display: none; }
.pl-daysum-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  background: var(--canvas);
  font-size: 12.5px;
}
.pl-daysum-cat.is-personal { color: var(--text-muted); }
.pl-empty-day {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border: 1.5px dashed var(--input-line); border-radius: var(--radius-md);
  background: var(--canvas);
  font-size: 14px;
}
.pl-empty-day p { font-weight: 600; }
.pl-empty-day .pl-hint { margin-top: 0; }

/* ── week and template column heads ─────────────────────────────── */

.pl-hd {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.pl-hd:hover { border-color: var(--accent-strong); }
.pl-hd.is-today, .pl-hd.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pl-hd.is-weekend { background: var(--canvas); }
.pl-hd.is-folded { align-items: center; padding: 8px 2px; }
.pl-hd-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pl-hd.is-weekend .pl-hd-name { color: var(--text-muted); }
.pl-hd-hours { font-size: 12px; color: var(--text-muted); }
.pl-stack { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--stone); }
.pl-stack span { display: block; height: 100%; min-width: 2px; }
.pl-hd-cats { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--text-muted); }
.pl-hd-cat { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-hd-cat .pl-swatch { width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.pl-hd-cat b { color: var(--ink); font-weight: 600; }

/* ── the tile palette ───────────────────────────────────────────── */

.pl-pal-head { margin-bottom: var(--space-sm); }
.pl-where { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.5; margin-top: 6px; }
.pl-where b { color: var(--ink); }
.pl-pal-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px var(--space-sm);
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.pl-pal-name { display: flex; align-items: center; gap: 8px; min-width: 90px; font-weight: 600; font-size: 14px; }
.pl-pal-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-pal-chip {
  min-height: 36px; min-width: 50px;
  padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; font-weight: 600; font-size: 12.5px; color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pl-pal-chip:hover { border-color: var(--accent-strong); background: var(--accent-tint); }
.pl-pal-chip:active { background: var(--accent-tint-strong); }
.pl-pal-more { border-top: 1px solid var(--line); }
.pl-pal-more summary {
  display: flex; align-items: center;
  min-height: 44px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer;
}
.pl-pal-more summary:hover { color: var(--ink); }
.pl-pal-more summary::-webkit-details-marker { display: none; }
.pl-pal-more summary::after {
  content: ""; flex-shrink: 0;
  width: 7px; height: 7px; margin: -4px 4px 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.pl-pal-more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pl-chip-line { display: inline-flex; align-items: center; gap: 6px; }

/* ── day plan tasks ─────────────────────────────────────────────── */

.pl-tgroup + .pl-tgroup { margin-top: var(--space-md); }
.pl-tgroup-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.pl-tgroup-hours { margin-left: auto; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; text-transform: none; }
.pl-task {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; min-height: 44px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: inherit; text-align: left;
  cursor: grab;
  transition: border-color var(--dur-fast) var(--ease);
}
.pl-task:hover { border-color: var(--accent-strong); }
.pl-task:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.pl-task.is-linked { border-left: 3px solid var(--accent); }
.pl-task.is-done .pl-task-title { color: var(--text-muted); text-decoration: line-through; }
.pl-task-title { font-weight: 600; font-size: 13.5px; }
.pl-task-meta { font-size: 12px; color: hsl(var(--muted-foreground)); }

.pl-pick-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 var(--space-md); }
.pl-pick {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
}
.pl-pick:hover { border-color: var(--accent-strong); background: var(--accent-tint); }
.pl-pick[aria-current="true"] { border-color: var(--accent); }
.pl-pick-note { margin-left: auto; font-size: 12px; color: hsl(var(--muted-foreground)); text-align: right; }

/* ── targets and rebalancing ────────────────────────────────────── */

.pl-bal-row { padding: 10px 0; border-top: 1px solid var(--line); }
.pl-bal-row:first-child { border-top: 0; padding-top: 0; }
.pl-bal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pl-bal-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.pl-bal-diff { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pl-bal-over .pl-bal-diff  { color: var(--warning-ink); }
.pl-bal-short .pl-bal-diff { color: var(--danger-ink); }
.pl-bal-on .pl-bal-diff    { color: var(--success-ink); }
.pl-bal-none .pl-bal-diff  { color: var(--text-muted); font-weight: 600; }
.pl-bar { position: relative; display: flex; height: 8px; margin: 6px 0 4px; border-radius: 4px; background: var(--stone); }
.pl-bar-done, .pl-bar-plan { display: block; height: 100%; }
.pl-bar-done { border-radius: 4px 0 0 4px; }
.pl-bar-plan { opacity: 0.35; }
.pl-bar-target {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px; margin-left: -1px;
  border-radius: 1px; background: var(--ink);
}
.pl-bal-nums { font-size: 12px; color: hsl(var(--muted-foreground)); }
.pl-bal-msgs { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: flex; flex-direction: column; gap: 6px; }
.pl-bal-msgs li {
  padding: 8px 10px;
  border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--canvas);
  font-size: 13.5px; line-height: 1.45;
}
.pl-bal-msgs li.pl-msg-over  { border-left-color: var(--warning); }
.pl-bal-msgs li.pl-msg-short { border-left-color: var(--danger); }
.pl-bal-ok { margin-top: var(--space-md); font-size: 13.5px; color: var(--success-ink); }
.pl-sugs { margin-top: var(--space-md); }
.pl-sugs-title {
  margin-bottom: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.pl-sug {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45;
}
.pl-sug:first-of-type { border-top: 0; }
.pl-sug .btn { flex-shrink: 0; }

/* ── editing a block ────────────────────────────────────────────── */

.pl-sheet .field:last-of-type { margin-bottom: 0; }
.pl-sheet [data-task-field][hidden] { display: none; }
.pl-sheet-foot { display: flex; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px dashed var(--line); }

/* ── template: targets and categories ───────────────────────────── */

.pl-tgt-row {
  display: grid; grid-template-columns: minmax(120px, 1fr) 210px minmax(150px, 200px);
  gap: var(--space-sm) var(--space-md); align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.pl-tgt-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.pl-tgt-inputs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.pl-tgt-inputs .input { width: 74px; min-height: 40px; padding: 8px 10px; }
.pl-tgt-have { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.pl-tgt-gap { font-weight: 700; }
.pl-tgt-gap.is-over  { color: var(--warning-ink); }
.pl-tgt-gap.is-short { color: var(--danger-ink); }

.pl-cat-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 160px 76px 72px;
  gap: var(--space-sm); align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.pl-cat-colour {
  width: 48px; height: 40px; padding: 3px;
  border: 1px solid var(--input-line); border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.pl-cat-row .input { min-height: 40px; padding: 8px 12px; }
.pl-cat-row.is-hidden .pl-cat-name { color: var(--text-muted); }
.pl-cat-tie { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.pl-cat-tie::before { content: "Tied to "; }
.pl-start-form { max-width: 460px; margin-top: var(--space-md); }

/* ── narrow screens ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  /* One column. The palette comes first so a day can be built with a thumb. */
  .pl-layout { display: flex; flex-direction: column; gap: var(--space-md); }
  .pl-main, .pl-side { width: 100%; }
  .pl-side { display: contents; }
  .pl-side > .panel { margin-bottom: 0; }
  .pl-palette { order: -1; }
  .pl-main > .panel { margin-bottom: var(--space-md); }
  .pl-main > .panel:last-child { margin-bottom: 0; }
  .pl-resize { display: none; }
  .pl-tile[data-drag] { cursor: pointer; }
}

@media (max-width: 560px) {
  .pl-head { flex-direction: column; align-items: stretch; }
  .pl-views { display: flex; }
  .pl-view-btn { flex: 1; min-height: 44px; padding: 0 10px; }
  .pl-toolbar { flex-direction: column; align-items: stretch; }
  .pl-nav, .pl-actions { width: 100%; }
  .pl-nav .btn, .pl-actions .btn { flex: 1; min-height: 44px; }
  .pl-jump { flex: 1 1 100%; min-height: 44px; }
  .pl-cal-panel { padding: var(--space-sm); }
  .pl-gutter, .pl-gutter-head { width: 40px; }
  .pl-hour { right: 5px; font-size: 10.5px; }
  .pl-wide { display: none; }
  .pl-pal-name { flex: 1 1 70px; min-width: 70px; font-size: 13.5px; }
  .pl-pal-chips { flex: 0 0 auto; gap: 3px; }
  .pl-pal-chip { min-height: 44px; min-width: 48px; padding: 0 6px; font-size: 12px; }
  .pl-tgt-row { grid-template-columns: 1fr; gap: 6px; }
  .pl-tgt-inputs .input { min-height: 44px; }
  .pl-cat-row { grid-template-columns: 48px minmax(0, 1fr); }
  .pl-cat-row .pl-cat-kind, .pl-cat-row .pl-cat-tie { grid-column: 2; }
  .pl-cat-row .check-inline { grid-column: 1 / -1; min-height: 44px; }
  .pl-cat-row .btn { grid-column: 1 / -1; min-height: 44px; }
  .pl-sug { flex-direction: column; align-items: stretch; }
  .pl-sug .btn { min-height: 44px; }
}

@media print {
  .pl-views, .pl-toolbar, .pl-palette, .pl-tasks, .pl-cal-hint, .pl-resize { display: none !important; }
  .pl-layout { display: block; }
  .pl-side { position: static; max-height: none; overflow: visible; }
  .pl-tile { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
