/* Pidgey day page. Warm paper, hand-lettered headings, one calm page. */
:root, [data-theme=paper] {
  --page: #f6efe3;
  --card: #fffdf8;
  --card-2: #fffaf1;
  --line: #ead7b4;
  --dash: #d9bf8f;
  --ink: #3b2a14;
  --ink-2: #5c4a30;
  --muted: #7a6243;
  --done: #8a7a62;
  --brown: #8a4f12;
  --brown-dark: #5e3509;
  --night: #2c2a4a;
  --night-ink: #f4ecff;
  --night-2: #e0d8f5;
  --calm: #e6efe2;
  --calm-line: #b9d0ae;
  --calm-ink: #2f5a2a;
  --peach: #fbe3cf;
  --peach-line: #efc4a0;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --body: 'Jost', system-ui, sans-serif;
  --accent: #b8701f;
  --on-accent: #fff;
  --hover: #fbf1df;
  --today: #fbe9c9;
  --today-line: #d89a3a;
  --busy: #f2dfba;
  --breath: #c9dfc0;
  --night-label: #cfc4ee;
  --soft-line: rgba(59, 42, 20, .15);
  --crown: #e2a645;
  --crown-ink: #fff;
  --err: #b03a2e;
  --text-size: 16px;
}

/* Themes. Picked in Settings; the page sets data-theme on <html>. Every token above has a twin in each. */
[data-theme=midnight] {
  --page: #17162a; --card: #211f38; --card-2: #26243f; --line: #3a3760; --dash: #565290;
  --ink: #ece6ff; --ink-2: #cfc8ea; --muted: #a9a3cc; --done: #7d789e;
  --brown: #b48cf0; --brown-dark: #c9aaf7; --accent: #e0b85e; --on-accent: #17162a;
  --night: #0e0d1c; --night-ink: #f4ecff; --night-2: #e0d8f5; --night-label: #b9aee0;
  --calm: #1d3027; --calm-line: #3d6b4a; --calm-ink: #bfe3c4; --breath: #4f7a5a;
  --peach: #352634; --peach-line: #634660;
  --hover: #2e2b4c; --today: #332d58; --today-line: #e0b85e; --busy: #3b3666;
  --soft-line: rgba(255, 255, 255, .14); --crown: #3a3466; --crown-ink: #f4ecff; --err: #ff8a7a;
  color-scheme: dark;
}
[data-theme=lavender] {
  --page: #f1edf8; --card: #fdfbff; --card-2: #f8f4fd; --line: #ddd2ee; --dash: #c3b2e0;
  --ink: #2e2442; --ink-2: #4c3f66; --muted: #6a5c85; --done: #8d82a3;
  --brown: #6b4aa8; --brown-dark: #503586; --accent: #8a5cc9; --on-accent: #fff;
  --night: #3a2f5c; --night-ink: #f6f0ff; --night-2: #e4dcf7; --night-label: #d3c7f0;
  --calm: #e8f1ec; --calm-line: #b8d4c4; --calm-ink: #2d5a43; --breath: #c3dccf;
  --peach: #f6e2ee; --peach-line: #e2b9d2;
  --hover: #efe6fb; --today: #e9ddfa; --today-line: #8a5cc9; --busy: #e3d6f6;
  --soft-line: rgba(46, 36, 66, .15); --crown: #a27ad8; --crown-ink: #fff; --err: #b0324a;
}
[data-theme=sage] {
  --page: #eef2e8; --card: #fbfdf8; --card-2: #f5f8f0; --line: #d3dfc6; --dash: #b5c9a3;
  --ink: #24331f; --ink-2: #3f5236; --muted: #5a6d4e; --done: #889781;
  --brown: #4f7a3a; --brown-dark: #3a5c2a; --accent: #5f8f43; --on-accent: #fff;
  --night: #2f3b2a; --night-ink: #f0f5ea; --night-2: #dce6d2; --night-label: #c6d6b8;
  --calm: #e4eef4; --calm-line: #b4cbd8; --calm-ink: #2a4c5e; --breath: #bfd3df;
  --peach: #f7e9d6; --peach-line: #e6cba6;
  --hover: #e8f0de; --today: #e1edd2; --today-line: #6a9a4c; --busy: #dbe8cb;
  --soft-line: rgba(36, 51, 31, .15); --crown: #7aa65c; --crown-ink: #fff; --err: #a8372b;
}
[data-theme=sea] {
  --page: #e9f2f3; --card: #fbfeff; --card-2: #f2f8f9; --line: #cbe0e3; --dash: #a6c9ce;
  --ink: #1d3236; --ink-2: #36525a; --muted: #4f6b72; --done: #84999d;
  --brown: #23707a; --brown-dark: #18545c; --accent: #2a8691; --on-accent: #fff;
  --night: #1f3a4a; --night-ink: #eef8fb; --night-2: #d5e8ee; --night-label: #b9d6df;
  --calm: #e7f1e6; --calm-line: #b6d1b3; --calm-ink: #2e5a2c; --breath: #c4dcc1;
  --peach: #fbe7dc; --peach-line: #edc6b0;
  --hover: #e2f0f2; --today: #d8eef0; --today-line: #2f8f9a; --busy: #d3e8eb;
  --soft-line: rgba(29, 50, 54, .15); --crown: #4ba3ad; --crown-ink: #fff; --err: #a8372b;
}
/* More dark ones */
/* Chalkboard: slate green board, chalk-white writing, yellow and blue chalk */
[data-theme=chalkboard] {
  --page: #1e2a23; --card: #25332b; --card-2: #2a3a31; --line: #43574b; --dash: #6b8576;
  --ink: #f2f0e6; --ink-2: #d9d7cb; --muted: #b3b8a8; --done: #87907f;
  --brown: #f3d77a; --brown-dark: #f7e39f; --accent: #f3d77a; --on-accent: #1e2a23;
  --night: #141d18; --night-ink: #f2f0e6; --night-2: #dcdacf; --night-label: #a9c6e3;
  --calm: #233a34; --calm-line: #5f8f7d; --calm-ink: #c9ecdc; --breath: #5f8f7d;
  --peach: #3a3329; --peach-line: #7a6a4f;
  --hover: #2f4137; --today: #34473b; --today-line: #f3d77a; --busy: #3a4f42;
  --soft-line: rgba(242, 240, 230, .16); --crown: #3f5446; --crown-ink: #f2f0e6; --err: #ff9b8a;
  color-scheme: dark;
}
/* Chalk dust: a faint cloud on the board, nothing to load */
html[data-theme=chalkboard] body { background-image: radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .05), transparent 55%), radial-gradient(ellipse at 85% 70%, rgba(255, 255, 255, .04), transparent 50%); background-attachment: fixed; }
/* Campfire: warm charcoal and ember orange */
[data-theme=campfire] {
  --page: #1b1613; --card: #251e19; --card-2: #2b231d; --line: #44372d; --dash: #6e5846;
  --ink: #f4e8da; --ink-2: #dccdbb; --muted: #b8a691; --done: #8a7b6b;
  --brown: #f2a250; --brown-dark: #f7bd7d; --accent: #f2a250; --on-accent: #1b1613;
  --night: #120e0c; --night-ink: #f8ede0; --night-2: #e6d7c6; --night-label: #e8b98a;
  --calm: #232b20; --calm-line: #5d7a4f; --calm-ink: #cde3bf; --breath: #5d7a4f;
  --peach: #3a2820; --peach-line: #7c5440;
  --hover: #30261f; --today: #3a2c21; --today-line: #f2a250; --busy: #3f3125;
  --soft-line: rgba(244, 232, 218, .14); --crown: #4a3627; --crown-ink: #f8ede0; --err: #ff8f7a;
  color-scheme: dark;
}
/* Deep forest: dark pine and moss */
[data-theme=forest] {
  --page: #111b16; --card: #18251e; --card-2: #1c2b23; --line: #324638; --dash: #50705a;
  --ink: #e4f0e6; --ink-2: #c6d8ca; --muted: #9db3a3; --done: #74887a;
  --brown: #a6d98f; --brown-dark: #c0e8ad; --accent: #e6c46a; --on-accent: #111b16;
  --night: #0b120e; --night-ink: #eef7ef; --night-2: #d3e4d6; --night-label: #a6d98f;
  --calm: #1b2f2a; --calm-line: #4d8072; --calm-ink: #c4e8dc; --breath: #4d8072;
  --peach: #2f2a1f; --peach-line: #6b5d3f;
  --hover: #213229; --today: #24382c; --today-line: #a6d98f; --busy: #2a4032;
  --soft-line: rgba(228, 240, 230, .14); --crown: #2e4a38; --crown-ink: #eef7ef; --err: #ff917f;
  color-scheme: dark;
}
/* Ocean night: deep navy and sea-glass teal */
[data-theme=ocean] {
  --page: #0e1924; --card: #15232f; --card-2: #192a38; --line: #2e4659; --dash: #4b6d86;
  --ink: #e4f1f8; --ink-2: #c5dae6; --muted: #9db6c6; --done: #71889a;
  --brown: #63cbd3; --brown-dark: #8adbe1; --accent: #f0c36d; --on-accent: #0e1924;
  --night: #08111a; --night-ink: #eef7fc; --night-2: #d2e5ef; --night-label: #8adbe1;
  --calm: #15302c; --calm-line: #3f7f73; --calm-ink: #bfe9de; --breath: #3f7f73;
  --peach: #2c2530; --peach-line: #634f66;
  --hover: #1c2e3d; --today: #1d3546; --today-line: #63cbd3; --busy: #233d50;
  --soft-line: rgba(228, 241, 248, .14); --crown: #1f3b4f; --crown-ink: #eef7fc; --err: #ff8f86;
  color-scheme: dark;
}
/* Black and gold: true black with antique gold */
[data-theme=blackgold] {
  --page: #000; --card: #0f0e0c; --card-2: #151310; --line: #3a3224; --dash: #6b5a3a;
  --ink: #f5eee2; --ink-2: #ddd3c2; --muted: #b5a88f; --done: #847a68;
  --brown: #d8b46a; --brown-dark: #e8cb8e; --accent: #d8b46a; --on-accent: #000;
  --night: #000; --night-ink: #f5eee2; --night-2: #e2d6c0; --night-label: #d8b46a;
  --calm: #141a14; --calm-line: #55704f; --calm-ink: #cfe3c5; --breath: #55704f;
  --peach: #1f1712; --peach-line: #5e4630;
  --hover: #1a1712; --today: #221d14; --today-line: #d8b46a; --busy: #2a2418;
  --soft-line: rgba(216, 180, 106, .2); --crown: #2a2418; --crown-ink: #f5eee2; --err: #ff8a7a;
  color-scheme: dark;
}
/* Dark and clear: white on black, yellow highlights, larger text */
[data-theme=darkclear] {
  --page: #000; --card: #000; --card-2: #0a0a0a; --line: #fff; --dash: #fff;
  --ink: #fff; --ink-2: #fff; --muted: #e6e6e6; --done: #b3b3b3;
  --brown: #ffe14d; --brown-dark: #fff08a; --accent: #ffe14d; --on-accent: #000;
  --night: #000; --night-ink: #fff; --night-2: #fff; --night-label: #ffe14d;
  --calm: #000; --calm-line: #fff; --calm-ink: #fff; --breath: #777;
  --peach: #000; --peach-line: #fff;
  --hover: #333000; --today: #2e2a00; --today-line: #ffe14d; --busy: #3d3800;
  --soft-line: rgba(255, 255, 255, .5); --crown: #000; --crown-ink: #ffe14d; --err: #ff8a80;
  --text-size: 19px;
  color-scheme: dark;
}
/* Big and clear: black on white, larger text */
[data-theme=contrast] {
  --page: #fff; --card: #fff; --card-2: #fff; --line: #000; --dash: #000;
  --ink: #000; --ink-2: #000; --muted: #222; --done: #555;
  --brown: #000; --brown-dark: #333; --accent: #000; --on-accent: #fff;
  --night: #000; --night-ink: #fff; --night-2: #fff; --night-label: #fff;
  --calm: #fff; --calm-line: #000; --calm-ink: #000; --breath: #bbb;
  --peach: #fff; --peach-line: #000;
  --hover: #fff3a0; --today: #fff3a0; --today-line: #000; --busy: #ffe680;
  --soft-line: rgba(0, 0, 0, .5); --crown: #000; --crown-ink: #fff; --err: #b00020;
  --text-size: 19px;
}


* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: var(--text-size); line-height: 1.4; }
a { color: var(--brown); }
a:hover { color: var(--brown-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input[type=checkbox] { accent-color: var(--accent); width: 24px; height: 24px; margin: 0; flex: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 22px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.loading { font-family: var(--hand); font-size: 28px; text-align: center; color: var(--muted); padding: 80px 0; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; margin: 0; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.hello { display: flex; align-items: center; gap: 14px; }
.hello img { width: 54px; height: 54px; }
.hello p { margin: 0; font-size: 15px; color: var(--muted); }
.hello h1 { font-size: 44px; line-height: 1.05; }
.ghost { min-height: 44px; border: 2px solid var(--line); background: var(--card-2); color: var(--brown); border-radius: 12px; padding: 6px 14px; font-weight: 600; }
.ghost:hover { border-color: var(--dash); }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 12px; padding: 8px 14px; font-weight: 600; text-decoration: none; }
.btn.solid { border: 0; background: var(--brown); color: var(--on-accent); }
.btn.solid:hover { background: var(--brown-dark); color: var(--on-accent); }
.btn.line { border: 2px solid var(--brown); background: var(--card-2); color: var(--brown); }
.linkish { border: 0; background: none; padding: 0; color: var(--brown); font-weight: 600; text-decoration: underline; min-height: 32px; }

/* Clearing minute */
.clearing { background: var(--calm); border: 2px solid var(--calm-line); border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.breath { width: 120px; height: 120px; border-radius: 50%; background: var(--breath); animation: breathe 10s ease-in-out infinite; }
.clearing p { margin: 0; color: var(--calm-ink); }
.clearing .cue { font-family: var(--hand); font-size: 30px; }
@keyframes breathe { 0%, 100% { transform: scale(.6); } 40%, 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .breath { animation: none; } }

/* Add box */
.add { display: flex; flex-wrap: wrap; gap: 10px; background: var(--card-2); border: 2px solid var(--line); border-radius: 18px; padding: 12px; }
.add input[type=text] { flex: 999 1 300px; min-height: 48px; border: 0; background: transparent; font-size: 18px; padding: 0 10px; outline: none; }
.add input[type=text]:focus-visible { outline: none; }
.add:focus-within { border-color: var(--dash); }
.add select { flex: 1 0 150px; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 0 10px; }
.add button { flex: 1 0 auto; min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; padding: 0 22px; }
.add button:hover { background: var(--brown); }

/* Main area */
.board { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(280px, 340px); gap: 18px; align-items: start; }
.board.no-coming { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.board > div, .side { min-width: 0; }
.side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1180px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
  .col-coming { grid-column: 1; }
  .side { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 820px) {
  .board, .board.no-coming { grid-template-columns: minmax(0, 1fr); }
  .col-coming, .side { grid-column: auto; grid-row: auto; }
}
.panel { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.side .panel { padding: 18px 20px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.head h2 { font-size: 34px; }
.side .head h2 { font-size: 28px; }
.head p { margin: 0; font-size: 15px; color: var(--muted); }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.empty { margin: 6px 0; padding: 14px 0; color: var(--muted); font-family: var(--hand); font-size: 22px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1.5px dashed var(--line); display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 2px; }
.rows > li > label { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; cursor: pointer; min-height: 44px; }
.rows .text { flex: 1; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.rows .done .text, .rows li.done .text { text-decoration: line-through; color: var(--done); }
.when { flex: none; font-size: 14px; color: var(--ink-2); text-align: right; }
.tag { flex: none; font-size: 12px; color: var(--ink-2); border: 1.5px solid var(--dash); border-radius: 999px; padding: 2px 8px; }
.chip { flex: none; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px; border: 0; }
select.chip { appearance: none; -webkit-appearance: none; padding: 6px 12px; min-height: 32px; max-width: 150px; }
.x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.x:hover { background: var(--hover); color: var(--ink); }

details.more { margin-top: 14px; }
details.more > summary { cursor: pointer; color: var(--brown); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
details.more .rows > li { min-height: 44px; }

.sub { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--line); }
.sub .head h2 { font-size: 30px; }
.kind { flex: none; width: 104px; text-align: center; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 0; }

form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; align-items: end; }
form.grid label, .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
form.grid input, form.grid select, .field input { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 0 10px; font-size: 16px; color: var(--ink); font-weight: 400; }
form.grid button { min-height: 44px; border: 0; border-radius: 12px; background: var(--brown); color: var(--on-accent); font-weight: 600; }

/* Dog walks */
.walks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.walk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; border-radius: 14px; font-size: 13px; background: var(--card-2); color: var(--muted); border: 2px dashed var(--dash); }
.walk[aria-pressed=true] { background: var(--brown); color: var(--on-accent); border: 2px solid var(--brown); }

/* Lanes */
.lanes { display: flex; flex-wrap: wrap; gap: 8px; }
.lane { font-size: 14px; font-weight: 600; border-radius: 999px; padding: 6px 12px; }
.lane.quiet { opacity: .45; }

/* Lists */
.list { border-radius: 14px; margin-bottom: 10px; --ink: #3b2a14; --ink-2: #5c4a30; --muted: #6b5a40; --done: #7d6f5a; --line: rgba(59, 42, 20, .18); --soft-line: rgba(59, 42, 20, .15); --card: rgba(255, 255, 255, .7); color: var(--ink); }
/* Lists keep their own light tint in every theme, so they keep dark ink too */
.list > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px; }
.list > summary::-webkit-details-marker { display: none; }
.list .name { flex: 1; font-weight: 600; }
.list .peek { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.list .count { font-size: 14px; color: var(--ink-2); }
.list .inner { padding: 0 12px 12px; }
.list .rows > li { min-height: 44px; border-top-color: var(--soft-line); }
.list form { display: flex; gap: 8px; margin-top: 8px; }
.list form input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--soft-line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 0 10px; }
.list form button { min-height: 44px; border: 0; border-radius: 12px; background: var(--brown); color: var(--on-accent); font-weight: 600; padding: 0 14px; }

/* Settings */
.settings { display: flex; flex-direction: column; gap: 18px; }
.settings .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.settings .row .field { flex: 1 1 220px; }
.settings .lane-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1.5px dashed var(--line); padding: 10px 0; }
.settings .lane-edit input[type=text] { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 0 10px; }
.settings .lane-edit .nm { flex: 1 1 140px; }
.settings .lane-edit .kw { flex: 3 1 260px; }
.settings input[type=color] { width: 48px; height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 2px; }

/* Tap to edit */
.edit-me { border: 0; background: none; padding: 4px 0; text-align: left; cursor: pointer; border-radius: 6px; min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
.edit-me:hover { background: var(--hover); }
.note-line { display: block; font-size: 13px; color: var(--ink-2); white-space: pre-line; }
.amount { flex: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.rows > li.upcoming { opacity: .7; }
.rep-mark { flex: none; width: 24px; text-align: center; color: var(--muted); font-size: 18px; }
.rows > li.editing { display: block; padding: 10px 0; }
form.editor { margin-top: 0; background: var(--card-2); border: 2px solid var(--dash); border-radius: 14px; padding: 12px; }
form.editor .wide { grid-column: 1 / -1; }
form.grid textarea { min-height: 64px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 10px; font-size: 16px; color: var(--ink); font-weight: 400; resize: vertical; }
.editor-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.editor-btns button[type=submit] { min-width: 120px; padding: 0 18px; }
.item-edit { display: flex; gap: 8px; width: 100%; }
.item-edit input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--dash); border-radius: 12px; background: var(--card); color: var(--ink); padding: 0 10px; }
.item-edit button { min-height: 44px; border: 0; border-radius: 12px; background: var(--brown); color: var(--on-accent); font-weight: 600; padding: 0 14px; }

.top-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Week strip */
.weekstrip { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-day { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 120px; min-width: 0; text-align: left; padding: 8px 4px; border-radius: 14px; border: 2px solid transparent; background: var(--card-2); }
.wk-day:hover { border-color: var(--dash); }
.wk-day.today { background: var(--today); border-color: var(--today-line); }
.wk-day.past { opacity: .6; }
.wk-name { font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; }
.wk-day.today .wk-name { color: var(--brown); }
.wk-num { font-family: var(--hand); font-size: 28px; line-height: 1; text-align: center; margin-bottom: 2px; }
.wk-open { align-self: flex-end; font-size: 14px; }
.wk-lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 13px; line-height: 1.25; padding-left: 6px; border-left: 4px solid var(--done); color: var(--ink); overflow: hidden; overflow-wrap: anywhere; }
.wk-line.done { text-decoration: line-through; color: var(--done); }
.wk-free { font-size: 13px; color: var(--muted); text-align: center; }
.more-n { font-size: 11px; color: var(--muted); }

/* Big calendar */
.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.tabs { display: flex; gap: 6px; }
.tab { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--card-2); color: var(--brown); font-weight: 600; font-size: 16px; }
.tab[aria-pressed=true] { background: var(--brown); border-color: var(--brown); color: var(--on-accent); }
.cal-panel { padding: 16px; overflow-x: auto; }
.cal-item { display: block; text-align: left; font-size: 13px; line-height: 1.25; padding: 2px 0 2px 6px; border-left: 4px solid var(--done); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cal-item.is-date { font-weight: 600; }
button.cal-item { width: 100%; background: none; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0 6px 6px 0; cursor: pointer; font: inherit; font-size: 13px; }
button.cal-item:hover { background: var(--hover); }
.cal-item.movable { cursor: grab; }
.cal-item.lifted { opacity: .4; }
.cal-item.upcoming { opacity: .65; }
.drop-here { outline: 3px dashed var(--accent) !important; outline-offset: -3px; background: var(--today) !important; }
.day-btn { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; width: 100%; min-height: 28px; border-radius: 6px; }
.day-btn:hover { background: var(--hover); }
.cal-cell, .cal-col { cursor: pointer; }
.cal-item.done { text-decoration: line-through; color: var(--done); }
.cal-empty { color: var(--muted); font-size: 13px; margin-top: 6px; }

.cal-week { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); gap: 8px; min-width: 720px; }
.cal-col { display: flex; flex-direction: column; align-items: stretch; min-height: 260px; padding: 10px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--card-2); text-align: left; }
.cal-col .cal-item { white-space: normal; }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.cal-head strong { font-family: var(--hand); font-weight: 400; font-size: 26px; color: var(--ink); }

.cal-month { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; min-width: 700px; }
.cal-dow { font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; padding-bottom: 4px; }
.cal-cell { display: flex; flex-direction: column; align-items: stretch; min-height: 104px; padding: 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--card-2); text-align: left; }
.cal-cell.other { opacity: .45; }
.cal-num { font-family: var(--hand); font-size: 22px; line-height: 1; }

.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mini-title { font-family: var(--hand); font-size: 22px; text-decoration: none; }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mini { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 6px; background: transparent; font-size: 12px; color: var(--ink-2); padding: 0; }
.mini.busy { background: var(--busy); color: var(--ink); }
.mini.has-date { box-shadow: inset 0 0 0 2px var(--accent); }
.mini.blank { visibility: hidden; }

.cal-cell.today, .cal-col.today, .mini.today { border-color: var(--today-line); background: var(--today); }
.mini.today { font-weight: 700; }
.cal-cell.picked, .cal-col.picked, .mini.picked { outline: 3px solid var(--brown); outline-offset: 1px; }

.day-add { display: flex; gap: 8px; margin-top: 14px; }
.day-add input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 0 10px; }
.day-add button { min-height: 44px; border: 0; border-radius: 12px; background: var(--brown); color: var(--on-accent); font-weight: 600; padding: 0 16px; }

@media (max-width: 560px) {
  .wk-days { gap: 4px; }
  .wk-day { min-height: 72px; padding: 6px 2px; }
  .wk-line, .wk-holiday { font-size: 11px; padding-left: 3px; border-left-width: 3px; }
  .wk-num { font-size: 22px; }
}

/* What's on my page */
.choices { display: flex; flex-direction: column; gap: 14px; }
.choices .text strong { display: block; font-weight: 600; }
.choices .peek { display: block; font-size: 14px; color: var(--ink-2); }
.choices .btn { align-self: flex-start; min-width: 200px; border: 0; font-size: 17px; }

/* Login */
.door { max-width: 400px; margin: 8vh auto 0; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(90, 60, 20, .18); }
.door .crown { background: var(--crown); background: linear-gradient(180deg, var(--crown), color-mix(in srgb, var(--crown) 72%, var(--today-line))); color: var(--crown-ink); text-align: center; padding: 30px 24px 24px; }
.door .crown img { width: 64px; height: 64px; }
.door .crown h1, .door .crown h2 { font-family: var(--hand); font-weight: 400; font-size: 34px; margin: 6px 0 0; }
.door .crown p { margin: 4px 0 0; font-size: 15px; }
.door form { padding: 26px 28px 8px; display: flex; flex-direction: column; gap: 6px; }
.door label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.door input { min-height: 50px; padding: 0 16px; margin-bottom: 12px; font-size: 16px; background: var(--card-2); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; outline: none; }
.door input:focus { border-color: var(--today-line); }
.door button { min-height: 52px; border: 0; border-radius: 18px; background: var(--brown); color: var(--on-accent); font-size: 17px; font-weight: 600; }
.door .err { min-height: 22px; margin: 8px 0 0; color: var(--err); text-align: center; }
.door .foot { text-align: center; padding: 12px 0 26px; font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 12px 20px; border-radius: 14px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }

@media (max-width: 560px) {
  .hello h1 { font-size: 34px; }
  .panel { padding: 18px 16px; }
  .rows > li { flex-wrap: wrap; }
  .kind { width: auto; padding: 4px 10px; }
}

select.chip.no-lane { outline: 1.5px dashed var(--muted); outline-offset: -1.5px; }

.popups { display: flex; flex-direction: column; gap: 10px; }
.popups select { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 0 10px; font-size: 16px; }
.on-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--calm); color: var(--calm-ink); font-weight: 600; }
.popups.phone { margin-top: 10px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.sub-h { font-size: 24px; }

/* Theme picker: each swatch carries its own data-theme, so it paints in its own colors */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--page); color: var(--ink); text-align: left; font-size: 15px; }
.swatch[aria-pressed=true] { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw-card { display: flex; gap: 6px; align-items: center; padding: 10px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); }
.sw-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.sw-dot.a { background: var(--brown); }
.sw-dot.b { background: var(--accent); }
.sw-dot.c { background: var(--calm-line); }
.sw-line { flex: 1; height: 8px; border-radius: 4px; background: var(--ink-2); opacity: .5; }
.sw-name { font-family: var(--hand); font-size: 21px; line-height: 1.1; }
.sw-peek { font-size: 13px; color: var(--muted); }

/* Calendar lane switch */
.lane-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lane-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 15px; }
.lane-pick:hover { border-color: var(--dash); }
.lane-pick.on.all { background: var(--brown); border-color: var(--brown); color: var(--on-accent); }
.lane-pick .sw-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.group-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; font-weight: 600; color: var(--ink-2); cursor: pointer; }

/* Holidays */
.cal-holiday { display: block; font-size: 12px; font-weight: 600; color: var(--brown); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-col .cal-holiday { white-space: normal; }
.wk-holiday { font-size: 12px; font-weight: 600; color: var(--brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-holiday { margin: 0 0 8px; font-family: var(--hand); font-size: 22px; color: var(--brown); }
.rows.holidays .hol-icon { flex: none; width: 104px; text-align: center; font-size: 20px; }

/* Park trips */
.park-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.park-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 4px 0; border-radius: 12px; border: 2px dashed var(--dash); background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.park-day.today { border-style: solid; border-color: var(--today-line); }
.park-day[aria-pressed=true] { border: 2px solid var(--calm-line); background: var(--calm); color: var(--calm-ink); }
.park-day .pd-mark { font-size: 20px; line-height: 1; }

/* Sky chips beside her name */
.sky-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip-sky { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 2px solid var(--line); background: var(--card-2); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-sky .cs-icon { display: inline-flex; width: 28px; height: 28px; }
.chip-sky .cs-icon svg { width: 28px; height: 28px; }
.chip-sky.night { background: var(--night); border-color: var(--night); color: var(--night-ink); }
.chip-sky.warn { border-color: var(--today-line); background: var(--today); color: var(--ink); }
.chip-sky.action { color: var(--brown); cursor: pointer; }
.chip-sky.action:hover, .linkish-chip:hover { border-color: var(--dash); }
.linkish-chip { cursor: pointer; color: var(--brown); }

/* At a glance */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 18px; min-height: 104px; border-radius: 18px; border: 2px solid var(--line); border-left-width: 8px; border-left-color: var(--dash); background: var(--card); color: var(--ink); cursor: pointer; }
.g-card:hover { border-color: var(--dash); }
.g-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.g-big { font-family: var(--hand); font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.g-small { font-size: 14px; color: var(--ink-2); }
.g-next { background: var(--today); border-color: var(--today-line); border-left-color: var(--today-line); }
.g-due.soon { border-left-color: var(--err); }
.g-due.soon .g-small { color: var(--err); font-weight: 600; }
.g-dog { border-left-color: var(--calm-line); }

/* Rows: lane color down the left, one quiet line of details */
.rows > li.task { border-left: 5px solid transparent; padding-left: 10px; }
.meta-line { display: block; font-size: 12.5px; color: var(--muted); }
.col-today .panel, .col-coming .panel { padding: 20px 22px; }

/* Week strip, compact so Today stays on the first screen */
.weekstrip { padding: 10px 12px; gap: 2px; }
.wk-day { min-height: 0; padding: 6px 6px 8px; gap: 2px; }
.wk-num { font-size: 22px; margin-bottom: 0; }
.wk-name { font-size: 12px; }
.wk-open { font-size: 13px; min-height: 28px; }

/* Coming up in its own column: compact kind tags, words get the room */
.col-coming .kind { width: auto; padding: 3px 9px; font-size: 12px; }
.col-coming .rows > li { gap: 10px; }
.col-coming .rows .text { font-size: 16px; }
.col-coming .rows.holidays .hol-icon { width: auto; min-width: 28px; }

@media (max-width: 560px) {
  .glance { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-card { min-height: 0; padding: 10px 12px; border-left-width: 6px; }
  .g-big { font-size: 20px; }
  .g-small { font-size: 12.5px; }
  .top-right, .sky-chips { justify-content: flex-start; }
}
.wk-count { display: none; }
@media (max-width: 560px) {
  .wk-lines, .wk-holiday { display: none; }
  .wk-count { display: block; text-align: center; font-weight: 700; font-size: 14px; color: var(--brown); min-height: 18px; }
}
@media (max-width: 560px) {
  /* The words get their own line; time, lane and × wrap underneath */
  .rows > li { flex-wrap: wrap; row-gap: 4px; }
  .rows .text { flex: 1 1 calc(100% - 52px); }
  .rows > li .when { margin-left: 36px; }
}

/* Paydays: green money, and the running total on the calendar */
.pay-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 16px; border-radius: 999px; background: #e3f6e7; color: #0f5a26; border: 2px solid #16833a; font-size: 16px; }
.pay-chip strong { font-size: 20px; }
.pay-icon { font-size: 22px; line-height: 1; }
.kind.payday { font-weight: 700; }
.cal-item[aria-label*="Payday"] { font-weight: 600; }

/* Whole weeks (Ryia's week): a soft purple band on every day, and a line under the greeting */
.cal-item.is-week { background: #efe3fb; color: #4b2475; border-left-color: #8a4fbf; border-radius: 6px; font-weight: 600; }
.week-now { display: inline-block; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; background: #efe3fb; color: #4b2475; font-weight: 700; font-size: 15px; }

/* The week ribbon: reaches across the gap to the next day so it reads as one line */
.week-bar { display: block; margin: auto var(--bar-out, -10px) 0; height: 18px; line-height: 18px; padding: 0 8px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-bar.start { margin-left: 0; border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.week-bar.end { margin-right: 0; border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.cal-month .week-bar { --bar-out: -11px; }
.cal-week .week-bar { --bar-out: -14px; }
.wk-days .week-bar { --bar-out: -12px; }
@media (max-width: 700px) { .wk-days .week-bar { --bar-out: -10px; } }

/* What the brain understood, right under the Tell Pidgey box */
.got-it { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 2px solid #16833a; }
.got-it p { flex: 1 1 260px; margin: 0; font-size: 16px; }
.mail-in .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-addr { font-size: 16px; padding: 8px 12px; border-radius: 10px; background: var(--card-2); border: 2px solid var(--line); overflow-wrap: anywhere; user-select: all; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.person { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.person-top { display: flex; flex-wrap: wrap; gap: 8px; }
.person-top input { flex: 1 1 140px; }
.person .pname { font-size: 22px; font-weight: 600; }
.person .bday { margin: 0; font-size: 16px; }
.person textarea { width: 100%; font: inherit; }
.person .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person .x { margin-left: auto; }
.person-add { align-items: flex-end; }
.waiting .rows li { display: flex; align-items: center; gap: 8px; }
.got-it.pidgey { display: block; }
.got-it.pidgey:not(.did) { border-color: var(--accent, #7a4a1c); }
.got-it .got-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.got-it .you-said { margin: 0 0 6px; font-size: 14px; opacity: .75; }
.got-it .pidgey-face { font-size: 22px; }
.got-it .pidgey-list { margin: 10px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.6; }
.got-it .pidgey-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.got-it.thinking p { display: flex; align-items: center; gap: 8px; margin: 0; }
.got-tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #16833a; color: #fff; font-weight: 700; }
.sorted .rows li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sorted .rows .text { flex: 1 1 240px; }

/* Inbox */
.ghost.has-new { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.mail-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mail { background: var(--card); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.mail.unread { border-color: var(--accent); }
.mail-head { width: 100%; display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) auto; gap: 12px; align-items: baseline; text-align: left; background: none; border: 0; padding: 14px 16px; color: var(--ink); font: inherit; cursor: pointer; }
.mail-head:hover { background: var(--hover); }
.mail-from, .mail-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail.unread .mail-from, .mail.unread .mail-subj { font-weight: 700; }
.mail-when { color: var(--muted); font-size: 15px; white-space: nowrap; }
.mail-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.mail-meta { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.mail-warn { margin: 0; padding: 10px 14px; border: 2px solid var(--peach-line); border-radius: 12px; background: var(--peach); color: var(--ink); font-size: 15px; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; max-height: 60vh; overflow-y: auto; }
.mail-reply { display: grid; gap: 8px; }
.mail-reply textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-sizing: border-box; }
.mail-reply .row { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost.danger { color: var(--err); }
@media (max-width: 640px) {
  .mail-head { grid-template-columns: minmax(0, 1fr) auto; }
  .mail-subj { grid-column: 1 / -1; grid-row: 2; }
}
.editor-btns .ghost { background: var(--card-2); color: var(--brown); border: 2px solid var(--line); }
.editor-btns .ghost.danger { color: var(--err); }
.compose { display: grid; gap: 8px; margin-top: 8px; max-width: 760px; }
.compose input, .compose textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.compose .from-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.compose .from-row input { width: 12em; }
.compose .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mail.sent .mail-from { color: var(--muted); }
.mail-tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mail-tabs .tab { min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card-2); color: var(--brown); font: inherit; font-weight: 600; cursor: pointer; }
.mail-tabs .tab.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sent-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--calm); color: var(--calm-ink); border: 1px solid var(--calm-line); font-size: 13px; font-weight: 700; vertical-align: 1px; }
.mail.sent .mail-from { color: var(--ink-2); }
/* Address book */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.import-box { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); display: grid; gap: 8px; }
.file-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; cursor: pointer; }
#import-file:focus-visible + .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.people-search { width: 100%; max-width: 520px; min-height: 48px; margin-top: 16px; padding: 0 14px; font: inherit; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }

/* Front page (logged out): hero with the login card, an example day, what is inside */
.land { display: grid; gap: 44px; max-width: 1180px; width: 100%; margin: 0 auto; }
.land-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.land-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-size: 30px; color: var(--ink); }
.land-mark img { width: 42px; height: 42px; }
.land-login { font-weight: 600; color: var(--brown); text-decoration: none; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card-2); }
.land-login:hover { border-color: var(--dash); }
.land-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 400px); gap: 48px; align-items: center; }
.land-copy { display: grid; gap: 16px; min-width: 0; }
.land-kicker { margin: 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.land-copy h1 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; color: var(--ink); text-wrap: balance; }
.land-lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.land-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.land-points li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 17px; }
.land-points li::before { content: ''; position: absolute; left: 4px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--crown); box-shadow: 0 0 0 4px var(--today); }
.land .door { margin: 0; width: 100%; }

/* The example day */
.peek { margin: 0; background: var(--card); border: 2px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 24px 60px rgba(90, 60, 20, .12); }
.peek-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.peek-top small { display: block; color: var(--muted); font-size: 14px; }
.peek-top b { font-family: var(--hand); font-weight: 400; font-size: 30px; color: var(--ink); }
.peek-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.peek-chips span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1.5px solid var(--line); color: var(--ink-2); }
.peek-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-card { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--card-2); border: 2px solid var(--line); border-left-width: 6px; min-width: 0; }
.pk-card.pk-next { border-left-color: #c77d2e; background: var(--today); }
.pk-card.pk-soon { border-left-color: var(--err); }
.pk-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pk-big { font-family: var(--hand); font-size: 23px; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.pk-small { font-size: 14px; color: var(--ink-2); }
.pk-soon .pk-small { color: var(--err); font-weight: 600; }
.peek-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.peek-panel { background: var(--card-2); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.peek-panel > b { font-family: var(--hand); font-weight: 400; font-size: 24px; color: var(--ink); }
.peek-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); border-left: 5px solid var(--line); }
.pk-row.ln-a { border-left-color: #c77d2e; }
.pk-row.ln-b { border-left-color: #5f8f43; }
.pk-row.ln-c { border-left-color: #8a5cc9; }
.pk-row.ln-money { border-left-color: #2e8b57; }
.pk-tick { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--dash); }
.pk-text { flex: 1; min-width: 0; color: var(--ink); }
.pk-text small { display: block; font-size: 13px; color: var(--muted); }
.pk-when { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.peek figcaption { text-align: center; font-size: 14px; color: var(--muted); }

/* What is inside */
.feats { display: grid; gap: 18px; }
.feats > h2 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 40px; text-align: center; color: var(--ink); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.feat-icon { font-size: 30px; line-height: 1; }
.feat h3 { margin: 4px 0 0; font-family: var(--hand); font-weight: 400; font-size: 26px; color: var(--ink); }
.feat p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.land-foot { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0 12px; color: var(--muted); }
.land-foot p { margin: 0; }
.land-foot a { color: var(--brown); font-weight: 600; }

@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; gap: 28px; }
  .land .door { max-width: 440px; margin: 0 auto; }
  .peek-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peek-cols, .feat-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .land { gap: 30px; }
  .peek { padding: 14px; border-radius: 20px; }
  .land-lede { font-size: 17px; }
}

/* Tonight's moon, opened from the moon chip */
.moon-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 24px; background: radial-gradient(ellipse at 20% 30%, #3a3866, var(--night) 70%); color: var(--night-ink); border: 2px solid var(--line); }
.moon-pic { line-height: 0; filter: drop-shadow(0 0 24px rgba(255, 240, 200, .25)); }
.moon-words { display: grid; gap: 4px; min-width: 0; }
.moon-kicker { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-label); font-weight: 600; }
.moon-words h2 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 32px; color: var(--night-ink); }
.moon-lit { margin: 0; font-size: 17px; color: var(--night-2); }
.moon-note { margin: 0; color: var(--night-2); }
.moon-dates { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.moon-dates dt { font-size: 13px; color: var(--night-label); }
.moon-dates dd { margin: 0; font-weight: 600; color: var(--night-ink); }
.moon-close { align-self: start; }
@media (max-width: 640px) {
  .moon-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .moon-dates { justify-content: center; }
  .moon-close { justify-self: center; }
}
.chip-sky.night.action, .chip-sky.night.action:hover { color: var(--night-ink); background: var(--night); border-color: var(--night); }
.chip-sky.night.action[aria-expanded=true] { box-shadow: 0 0 0 3px var(--today-line); }

/* ── Notes ── */
.notes-wrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.notes-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.notes-side .people-search { margin-top: 0; max-width: none; }
.note-folders { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip { min-height: 36px; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card-2); color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.note-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 64vh; overflow-y: auto; }
.note-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 2px solid transparent; border-radius: 12px; background: var(--card-2); color: var(--ink); font: inherit; cursor: pointer; }
.note-item:hover { background: var(--hover); }
.note-item.on { border-color: var(--accent); background: var(--today); }
.note-item-title { font-weight: 600; overflow-wrap: anywhere; }
.note-item-snip { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item-meta, .note-empty { font-size: 13px; color: var(--muted); }
.note-empty { padding: 8px 4px; }
.note-editor { display: flex; flex-direction: column; gap: 12px; }
.note-blank { min-height: 200px; justify-content: center; text-align: center; }
.note-title { font: inherit; font-family: var(--hand); font-size: 30px; border: 0; border-bottom: 2px dashed var(--dash); background: transparent; color: var(--ink); padding: 4px 2px; }
.note-title:focus { outline: none; border-bottom-color: var(--accent); }
.note-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.note-folder { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.note-folder input { min-height: 40px; width: 180px; padding: 0 10px; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: var(--card-2); color: var(--ink); }
.note-status { margin-left: auto; font-size: 14px; color: var(--muted); }
.note-body { width: 100%; min-height: 50vh; padding: 14px 16px; font: inherit; font-size: 18px; line-height: 1.6; border: 2px solid var(--line); border-radius: 14px; background: var(--card-2); color: var(--ink); resize: vertical; }
.note-body:focus, .note-folder input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.note-foot { justify-content: space-between; align-items: center; }
@media (max-width: 760px) {
  .notes-wrap { grid-template-columns: 1fr; }
  .note-list { max-height: 40vh; }
  .note-body { min-height: 40vh; }
}

/* ── The sky today (Mercury chip) ── */
.sky-card { align-items: start; }
.sky-pic { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--night-ink); }
.sky-pic svg { width: 64px; height: 64px; }
.sky-brief { margin: 4px 0 0; font-size: 18px; line-height: 1.6; color: var(--night-ink); max-width: 70ch; }
.sky-mine { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 6px; }
.sky-mine h3 { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-label); font-weight: 600; }
.sky-touch { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--night-ink); line-height: 1.5; max-width: 70ch; }
.sky-tip { display: block; color: var(--night-2); font-style: italic; }
.sky-line { margin: 4px 0 0; font-family: var(--hand); font-size: 22px; color: var(--night-ink); }
.sky-card .linkish { color: var(--night-ink); }

/* Ask Pidgey's email draft, shown before she opens it to send */
.draft-peek { margin: 10px 0 0; padding: 12px 16px; border: 2px dashed var(--dash); border-radius: 14px; background: var(--card-2); display: grid; gap: 6px; }
.draft-peek p { margin: 0; }
