/* ============================================================
   LOEHR FAMILY SYMBOL STAMP — Loehr Software Suite
   © 2025 Daphne Loehr / The Loehr Family — Est. 2025
   A Division of Ausko LLC. All rights reserved. This work may
   not be copied, stolen, or used without the owner's written
   permission. Per-asset ownership: stamp-registry.js (IP map);
   engine ownership: business-engines-registry.js.
   ============================================================
   Planner Sheet (2026-11-18): one bright sheet, blocks colored
   by lane. Phone-first: nothing on this page may force sideways
   scrolling — the sheet always fits the screen width. The Week
   view's own row of day columns may swipe sideways on a small
   screen (each column stays readable); the page itself never
   scrolls sideways. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #10131c; color: #f4f6fb;
}
a { color: #8ec5ff; }
h1 { margin: 0.2rem 0 0.4rem; }
h2 { margin: 0.8rem 0 0.3rem; }
.explain { color: #c3cad8; font-size: 0.92rem; line-height: 1.45; }
header, main, footer, #loginPanel { max-width: 1400px; margin: 0 auto; }
footer { margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 10px; }
label { display: grid; gap: 4px; font-weight: 600; margin-top: 10px; }
input {
  font: inherit; padding: 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: inherit;
}
button {
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.3);
  background: #232838; color: #f4f6fb; padding: 10px 16px;
}
button:hover { filter: brightness(1.2); }

/* controls: every button carries its plain-words caption under it */
.ps-controls { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 2px; }
.btn-with-caption { display: grid; gap: 4px; justify-items: start; }
.btn-caption { margin: 0; }
.ps-view-btn.ps-active { background: #ff4fa3; border-color: #ff4fa3; color: #fff; }

/* CANONICAL LANE COLOR MAP — Daphne's map (ruled 2026-11-18).
   These .lane-* values are the SINGLE SOURCE for lane colors
   suite-wide: any other surface that colors a lane (the Today
   day-list, the Next-3 rows) adopts these exact hex values.
   The matching lane-string -> key rules live in planner-sheet.js
   (LANE_RULES). --ink is the text color that stays readable on
   that lane's bright block. */
.lane-important   { --lane: #ff2d2d; --ink: #ffffff; }
.lane-money       { --lane: #22c55e; --ink: #062b12; }
.lane-bills       { --lane: #ffd21f; --ink: #2b2100; }
.lane-school      { --lane: #2f6bff; --ink: #ffffff; }
.lane-marketing   { --lane: #a855f7; --ink: #ffffff; }
.lane-contractor  { --lane: #ff8a1e; --ink: #2b1500; }
.lane-digital     { --lane: #0e9f6e; --ink: #ffffff; }
.lane-construction{ --lane: #b3402a; --ink: #ffffff; }
.lane-dora        { --lane: #ff4fa3; --ink: #ffffff; }
.lane-software    { --lane: #c0c6ce; --ink: #1c2128; }
.lane-anna        { --lane: #4da3ff; --ink: #ffffff; }
.lane-callie      { --lane: #ffb6d9; --ink: #571233; }
.lane-berk        { --lane: #14b8a6; --ink: #ffffff; }
.lane-neutral     { --lane: #8e95a3; --ink: #14181d; }

/* Anna's blocks wear white accents, like her Little DORA blue. */
.ps-block.lane-anna, .ps-chip.lane-anna { border: 2px solid #ffffff; box-shadow: 0 0 0 2px #4da3ff; }
.lane-anna .ps-lane { border-color: #ffffff; }

/* blocks */
.ps-block {
  background: var(--lane); color: var(--ink);
  border: 1px solid rgba(0,0,0,0.35); border-radius: 12px;
  padding: 9px 11px; display: grid; gap: 6px; cursor: pointer;
  min-width: 0;
}
.ps-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ps-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ps-badge {
  background: #14181d; color: #ffffff; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
}
.ps-badge-review { background: #3c4350; }
.ps-lane {
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 1px 8px; font-size: 0.74rem; font-weight: 700;
}
.ps-due { font-size: 0.8rem; font-weight: 600; }
.ps-overdue {
  background: #7f1d1d; color: #ffffff; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 800;
}
.ps-detail { margin: 0; font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.ps-empty { color: #9aa3b5; font-size: 0.9rem; margin: 4px 0; }

/* legend */
.ps-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.ps-legend-chip {
  display: inline-flex; gap: 6px; align-items: center;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 3px 10px 3px 4px;
}
.ps-swatch { background: var(--lane); border-radius: 999px; min-width: 18px; min-height: 18px; display: inline-block; }
.ps-legend-label { font-size: 0.82rem; font-weight: 600; }

/* day view */
.ps-daylist { display: grid; gap: 8px; }

/* strips (overdue / no-set-day) */
.ps-strip { margin-top: 18px; border-top: 1px dashed rgba(255,255,255,0.25); padding-top: 10px; }
.ps-strip-title { margin: 0 0 4px; }
.ps-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-strip-row .ps-block { flex: 1 1 220px; }

/* week view: 7 spreadsheet columns; on a phone the row swipes,
   each column stays readable, the page itself never widens. */
.ps-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: start; }
.ps-daycol { display: grid; gap: 6px; min-width: 0; }
.ps-dayhead { width: 100%; padding: 8px 4px; font-size: 0.9rem; }
.ps-daycap { margin: 0; font-size: 0.74rem; }
@media (max-width: 900px) {
  .ps-week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ps-daycol { flex: 0 0 74%; scroll-snap-align: start; }
}

/* month view: calendar grid that always fits the screen width */
.ps-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ps-dow { text-align: center; font-weight: 800; font-size: 0.8rem; color: #c3cad8; padding: 4px 0; }
.ps-cell {
  display: grid; gap: 3px; align-content: start; text-align: left;
  min-height: 74px; padding: 5px; border-radius: 10px;
  background: #1a1f2e; border: 1px solid rgba(255,255,255,0.14);
  font-weight: 400; min-width: 0;
}
.ps-cell-other { opacity: 0.45; }
.ps-cell-today { outline: 2px solid #ff4fa3; }
.ps-cellnum { font-weight: 800; font-size: 0.85rem; }
.ps-chip {
  background: var(--lane); color: var(--ink);
  border-radius: 6px; padding: 2px 5px; font-size: 0.68rem; font-weight: 700;
  line-height: 1.25; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ps-more { font-size: 0.68rem; color: #c3cad8; font-weight: 700; }
@media (max-width: 560px) {
  .ps-cell { min-height: 58px; padding: 3px; }
  .ps-chip { font-size: 0.6rem; }
  body { padding: 10px; }
}
