/* ==========================================================================
   WEATHER ON EACH DAY — the line under a day's date (weather/_day), the Settings
   card's town search (users/_weather) and a day's place picker (weather.js).
   ========================================================================== */
.day-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: var(--fs-11);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.day-weather:empty { display: none; }
.day-weather i { font-size: 0.95em; }
.day-weather-low { color: var(--text-3); opacity: 0.75; }
.day-weather-place { max-width: 20em; overflow: hidden; text-overflow: ellipsis; }
.day-weather-chip { display: inline-flex; align-items: center; gap: 6px; }
.day-weather-chip + .day-weather-place::before { content: '·'; margin-right: 6px; opacity: 0.6; }
.day-weather.is-compact { display: flex; justify-content: center; gap: 4px; margin-top: 2px; font-size: var(--fs-10); }
.day-weather.is-compact:empty { display: none; }
.week-agenda-head .day-weather { margin-top: 0; }

.weather-options[hidden] { display: none; }
.weather-home-field { position: relative; }
.weather-place-results {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  width: 260px;
  max-width: calc(100vw - 32px);
  margin: 4px 0 0;
  padding: 4px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-pop);
  box-shadow: var(--shadow-card);
  list-style: none;
}
.weather-place-results[hidden] { display: none; }
/* In the Settings card the list pushes the row open: the card clips anything that floats. */
.weather-home-field .weather-place-results { position: static; margin: 0; box-shadow: none; }
.weather-place-option {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: none;
  background: none;
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-12);
  text-align: left;
  cursor: pointer;
}
.weather-place-option:hover, .weather-place-option:focus-visible { outline: none; background: var(--surface-3); }
.weather-place-empty { padding: 7px 12px; color: var(--text-3); font-size: var(--fs-12); }

.day-place-pop {
  position: absolute;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-pop);
  box-shadow: var(--shadow-card);
}
.day-place-title { color: var(--text-1); font-size: var(--fs-12); font-weight: 600; }
.day-place-pop .weather-place-results { position: static; width: auto; max-width: none; margin: 0; box-shadow: none; }
.day-place-error { margin: 0; color: var(--danger-bright); font-size: var(--fs-11); }
.day-place-reset { align-self: flex-start; font-size: var(--fs-11); }

/* A place task's real spot (place_location.js): a search under the title, or the spot picked. */
.place-location { display: flex; flex-direction: column; gap: 4px; }
.place-location-search { display: flex; gap: 6px; align-items: stretch; }
.place-location-search[hidden], .place-location-picked[hidden] { display: none; }
.place-location-input { flex: 1; min-width: 0; }
.place-location-here {
  flex: 0 0 auto;
  width: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--recess);
  color: var(--text-2);
  cursor: pointer;
}
.place-location-here:hover, .place-location-here:focus-visible { outline: none; color: var(--accent); border-color: var(--border-strong); }
.place-location .weather-place-results { position: static; width: auto; max-width: none; margin: 0; box-shadow: none; max-height: 260px; overflow-y: auto; }
.place-location-option { display: flex; flex-direction: column; gap: 1px; }
.place-location-option-name { color: var(--text-1); }
.place-location-option-name .fa-clock-rotate-left { margin-right: 6px; color: var(--accent); font-size: 0.9em; }
.place-location-option-address { color: var(--text-3); font-size: var(--fs-11); }
.place-location-picked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--recess);
  color: var(--accent);
  font-size: var(--fs-12);
}
.place-location-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.place-location-name { color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-location-address { color: var(--text-3); font-size: var(--fs-11); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-location-address:empty { display: none; }
.place-location-clear { flex: 0 0 auto; padding: 4px 6px; border: none; background: none; color: var(--text-3); cursor: pointer; }
.place-location-clear:hover, .place-location-clear:focus-visible { outline: none; color: var(--text-1); }
.place-location-note { margin: 0; color: var(--text-3); font-size: var(--fs-11); line-height: 1.4; }
.place-location-usual { display: flex; align-items: baseline; gap: 6px; color: var(--text-2); font-size: var(--fs-12); }
.place-location-usual .fa-thumbtack { color: var(--accent); font-size: 0.85em; }
.place-location-usual-text { flex: 1; min-width: 0; }
.place-location-usual-stop { flex: 0 0 auto; font-size: var(--fs-11); }
.place-map-link { margin-left: 0.35rem; color: var(--text-3); font-size: 0.8em; vertical-align: middle; text-decoration: none; }
.place-map-link:hover, .place-map-link:focus-visible { color: var(--accent); }
/* Where a recurring place was on one day (place_day.js): the faint repeat mark until one
   is picked, then the spot's name as part of the title — "Cafe: Starbucks". */
.place-day {
  margin-left: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-3);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  opacity: 30%;
  max-width: 14rem;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Set, it's the rest of the title's text, so a narrow cell wraps it word by word
   ("Cafe: Highlands / Coffee") rather than dropping the whole name to the next line. */
.place-day.is-set { margin-left: 0; opacity: 1; color: var(--text-2); vertical-align: baseline; max-width: none; white-space: inherit; }
/* No break where the title meets ":" or just after it — "Cafe: Highlands" stays together on
   any browser — while the title's and the name's own words wrap as usual. */
.place-day-line { white-space: nowrap; }
.place-day-line .task-title-link, .place-day-line .place-day-name { white-space: normal; text-wrap: wrap; }
.place-day-sep { color: var(--text-1); }
.place-day:focus-visible, .place-day[aria-expanded="true"] { outline: none; opacity: 1; color: var(--accent); }
@media (hover: hover) { .place-day:hover { opacity: 1; color: var(--accent); } }
.place-day-popover {
  position: fixed;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-pop);
  box-shadow: var(--shadow-card);
}
.place-day-popover .weather-place-results { position: static; width: auto; max-width: none; margin: 0; box-shadow: none; max-height: 260px; overflow-y: auto; }
.place-location-option-name .fa-pen { margin-right: 6px; color: var(--text-3); font-size: 0.85em; }
@media (max-width: 640px) {
  .set-row .weather-home-field { width: 100%; align-items: stretch; }
  .weather-home-field .set-input-short { width: 100%; }
}

/* A card's empty stretch (.empty-drop-target) shows only while it has no task rows or
   open add form, so a card emptied in place is the same height as after a reload. */
tbody:has(> tr.task-row, > tr.new-task-form-row:not(#new-task-form-template)) > tr.empty-drop-target { display: none; }
/* Done is a link beside a button; this keeps the two the same height and baseline. */
.yt-channels-card .lib-form-actions a.lib-btn { display: inline-flex; align-items: center; color: var(--text-2); text-decoration: none; }
/* A Find More section's filters. Its lists (Movies: New & Acclaimed, In Theaters, ...) are
   a row of pills, the one showing filled; under them, each list's genres as smaller chips. */
.gallery-filter {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: 600;
  cursor: pointer;
}
.gallery-filter:hover { color: var(--text-1); border-color: var(--text-3); }
.gallery-filter.is-active { border-color: var(--text-1); background: var(--text-1); color: var(--bg, #000); }
.gallery-genre {
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: var(--fs-12);
  font-weight: 500;
  cursor: pointer;
}
.gallery-genre:hover { color: var(--text-1); border-color: var(--border-strong); }
.gallery-genre.is-active { border-color: var(--text-2); color: var(--text-1); background: var(--surface-2, rgba(255, 255, 255, 0.08)); }
/* A list item a genre filters out; the shelf's display: flex would otherwise keep it. */
.gallery-item[hidden] { display: none; }
/* Sections stand apart from each other; a collapsed one is just its heading, its arrow
   turned to point at it. */
.gallery-section + .gallery-section { margin-top: 2rem; }
.gallery-section-empty { margin-bottom: 0; }
.gallery-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.gallery-section-toggle:hover { color: var(--text-1); }
.gallery-section-toggle .fa-chevron-down { width: 0.8em; font-size: var(--fs-11); transition: transform 0.15s ease; }
.gallery-section.is-collapsed .gallery-section-toggle .fa-chevron-down { transform: rotate(-90deg); }
.gallery-section.is-collapsed .gallery-section-body { display: none; }
.gallery-section.is-collapsed .gallery-section-title { margin-bottom: 0; }
.gallery-filter-empty { margin: 0; color: var(--text-3); font-size: var(--fs-13); }

/* ─── POSTS (/posts, PostsLab) ─────────────────────────────────────────────────
   The experimental Posts page: each posting day as NEW over SCHEDULE. Today sits in a
   card; earlier days follow, quieter. */
.lab-head-right { display: flex; align-items: center; gap: 8px; position: relative; }

.lab-rules > summary { cursor: pointer; list-style: none; }
.lab-rules > summary::-webkit-details-marker { display: none; }
.lab-rules[open] > summary { color: var(--text-1); border-color: var(--border-strong); background-color: var(--surface-2); }
.lab-rules-form { position: absolute; top: 36px; right: 0; z-index: 20; display: grid; gap: 12px; width: min(320px, calc(100vw - 32px)); padding: 16px; background: var(--surface-pop); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.lab-field { display: grid; gap: 6px; color: var(--text-2); font-size: var(--fs-12); font-weight: 500; }
.lab-field em { color: var(--text-3); font-style: normal; font-weight: 400; }
/* A field's name with its character count at the far end (Original text, My version). */
.lab-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
/* A text box's length, with no label to sit by: in its bottom right corner. */
.lab-field:has(> textarea + .lab-chars) { position: relative; }
.lab-field > textarea + .lab-chars { position: absolute; right: 10px; bottom: 6px; font-size: var(--fs-11); pointer-events: none; }
.lab-chars { color: var(--text-3); font-size: var(--fs-11); font-weight: 400; font-variant-numeric: tabular-nums; }
.lab-input { height: 32px; padding: 0 10px; background: var(--recess); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-1); font-size: var(--fs-13); }
/* The post form's dropdown (where the original came from) drawn as its fields are: no
   native chrome, a small chevron, muted on "No original", the same focus as its inputs. */
.lab-quick select.lab-input { appearance: none; -webkit-appearance: none; padding: 0 30px 0 10px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aec0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.lab-quick select.lab-input:has(option[value=""]:checked) { color: var(--text-3); }
.lab-quick select.lab-input option, .lab-quick select.lab-input optgroup { background: var(--surface-pop); color: var(--text-1); }
.lab-quick .lab-input:hover { border-color: color-mix(in srgb, var(--text-3) 60%, var(--border-strong)); }
.lab-quick .lab-input:focus { outline: none; border-color: var(--field-optional-border, var(--text-3)); box-shadow: var(--field-optional-ring, none); }
.lab-input.is-short { width: 120px; }
.lab-save { justify-self: start; height: 30px; padding: 0 14px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--accent-bright); font-size: var(--fs-12); font-weight: 600; cursor: pointer; }

/* BRAINSTORM and SCHEDULE: a card each, today's rows on top, earlier ones beneath. */
.lab-section { margin-bottom: 18px; padding: 18px; background: var(--surface-card); border: 1px solid var(--border-panel); border-radius: var(--radius-lg); }
/* The month card above them, the same gap as between the sections. */
.lab-main > .posts-summary { margin-bottom: 18px; }

/* Brainstorm with today's goal met, Schedule with today's times all filled: the panel goes
   dark green. */
.lab-section.is-complete { background: color-mix(in srgb, var(--accent) 8%, #000); border-color: color-mix(in srgb, var(--accent) 24%, #000); }

/* The likes forecast: a guess once the schedule is filled (top of Schedule), and the next
   day what it got (top of Brainstorm). */
.lab-likes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; padding: 10px 12px; background: var(--surface-row); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.lab-likes-question, .lab-likes > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--text-1); font-size: var(--fs-13); }
.lab-likes i.fa-heart { color: var(--danger-bright); }
.lab-likes-choices { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.lab-likes-choice { height: 28px; padding: 0 12px; background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: var(--fs-12); font-weight: 600; cursor: pointer; }
.lab-likes-choice:hover { color: var(--text-1); background: var(--surface-2); }
.lab-likes-choice.is-on { color: var(--accent-bright); border-color: var(--accent); background: var(--accent-soft); }
/* Saved without a pick: the picks pulse once to ask for one. */
.lab-likes-choices.is-needed .lab-likes-choice { animation: lab-likes-ask 0.6s ease 2; }
@keyframes lab-likes-ask { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 35%, transparent); } }
/* The likes rule's three: failed red, neutral orange, complete green, as Rules colours them. */
.lab-likes-choice.is-failed { color: var(--danger-bright); border-color: color-mix(in srgb, var(--danger-bright) 45%, transparent); }
.lab-likes-choice.is-neutral { color: var(--warn-bright); border-color: color-mix(in srgb, var(--warn-bright) 45%, transparent); }
.lab-likes-choice.is-complete { color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.lab-likes-choice.is-failed:hover { background: color-mix(in srgb, var(--danger-bright) 12%, transparent); }
.lab-likes-choice.is-neutral:hover { background: color-mix(in srgb, var(--warn-bright) 12%, transparent); }
.lab-likes-choice.is-complete:hover { background: var(--accent-soft); }
/* Picked: filled in its own colour. */
.lab-likes-choice.is-failed.is-on { color: var(--danger-bright); border-color: var(--danger-bright); background: color-mix(in srgb, var(--danger-bright) 18%, transparent); }
.lab-likes-choice.is-neutral.is-on { color: var(--warn-bright); border-color: var(--warn-bright); background: color-mix(in srgb, var(--warn-bright) 18%, transparent); }
.lab-likes-choice.is-complete.is-on { border-color: var(--accent); background: var(--accent-soft); }
/* Under the guess: why, and how to do better, before it saves. */
.lab-likes-reflect { flex-basis: 100%; display: grid; gap: 8px; }
.lab-likes-reflect[hidden] { display: none; }
.lab-likes-reflect .lab-field > span { color: var(--text-1); font-size: var(--fs-12); font-weight: 400; line-height: 1.5; }
.lab-likes-reflect-actions { display: flex; justify-content: flex-end; gap: 8px; }
.lab-likes.is-reflection { display: grid; gap: 8px; }
.lab-likes.is-reflection .lab-likes-question { font-weight: 400; }
.lab-likes-reflect-actions .lab-save, .lab-likes-reflect-actions .lab-action { height: 30px; }
/* Answered: a chip by Schedule's count, its choices in a menu below it. */
.lab-head-end { display: inline-flex; align-items: center; gap: 10px; }
.lab-likes-chip > summary { gap: 5px; height: 24px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: var(--fs-12); font-weight: 600; cursor: pointer; }
.lab-likes-chip > summary:hover { color: var(--text-1); background: var(--surface-2); }
.lab-likes-chip i { color: var(--danger-bright); font-size: var(--fs-11); }
.lab-likes-chip .lab-menu-pop { min-width: 0; padding: 8px; }
.lab-likes-chip .lab-likes-choices { flex-wrap: nowrap; }

/* The Lab's two columns: the main one 10% narrower than the page's usual 752px, and a thin
   one beside it held in view as the main one scrolls (hot topics, reminders). On a narrow
   screen the thin one goes first, above the rest, and scrolls with it. */
.ledger-page.lab-page { max-width: 1040px; } /* the standard page width */
.lab-layout { display: grid; grid-template-columns: minmax(0, 677px) 240px; gap: 24px; justify-content: center; align-items: start; }
.lab-main { min-width: 0; }
.lab-aside { position: sticky; top: 16px; }
.lab-aside-inner { display: grid; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
/* The search bar, atop the right-hand column: a field with its magnifier inside. */
.lab-search { position: relative; }
.lab-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: var(--fs-12); pointer-events: none; }
.lab-search .lab-input { width: 100%; height: 36px; padding-left: 32px; background: var(--surface-card); border: 1px solid var(--border-panel); border-radius: var(--radius-lg); }
.lab-search .lab-input:focus { border-color: var(--border-strong); }
.lab-aside-card { padding: 14px; background: var(--surface-card); border: 1px solid var(--border-panel); border-radius: var(--radius-lg); }
.lab-aside-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lab-aside-head h2 { margin: 0; color: var(--text-2); font-size: var(--fs-11); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lab-aside .lab-hot-chip { height: 26px; padding: 0 9px; font-size: var(--fs-11); max-width: 100%; }
/* Topics: four lines of chips, then Show more. */
/* Its height set to the fourth row's bottom by the script in show. */
.lab-aside .lab-hot-chips.is-clamped { overflow: hidden; }
.lab-topics-more { margin-top: 10px; }
/* .lab-more's display: block beat [hidden], so Show more showed with nothing more to show. */
.lab-topics-more[hidden] { display: none; }
.lab-hot-flame { margin-right: 8px; color: var(--gold-bright); font-size: var(--fs-13); }
/* A search's glass in grey: gold on this page marks favourites. The topic's flame keeps its gold. */
.lab-hot-flame.is-search { color: var(--text-3); }
/* A reminder per section: its words, or a prompt to write some; the section in view lit. */
.lab-notes { display: grid; gap: 4px; }
.lab-notes .lab-aside-head { margin-bottom: 6px; }
.lab-note { border-radius: var(--radius-sm); border-left: 2px solid transparent; transition: border-color 0.15s ease, background 0.15s ease; }
.lab-note > summary { display: grid; gap: 3px; padding: 7px 8px; list-style: none; cursor: pointer; border-radius: var(--radius-sm); }
.lab-note > summary::-webkit-details-marker { display: none; }
.lab-note > summary:hover { background: var(--surface-2); }
.lab-note-label { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lab-note-label i { font-size: var(--fs-10); opacity: 0; transition: opacity 0.15s ease; }
.lab-note > summary:hover .lab-note-label i { opacity: 1; }
.lab-note-text { color: var(--text-2); font-size: var(--fs-12); line-height: 1.5; overflow-wrap: anywhere; }
.lab-note-text p, .lab-note-text span { margin: 0; }
.lab-note-text.is-empty { color: var(--text-3); font-style: italic; }
.lab-note.is-current { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lab-note.is-current .lab-note-label { color: var(--accent-bright); }
.lab-note.is-current .lab-note-text { color: var(--text-1); }
.lab-note[open] > summary .lab-note-text { display: none; }
.lab-note-form { display: grid; gap: 6px; padding: 0 8px 8px; }
.lab-note-form .lab-save { justify-self: end; }
@media (max-width: 960px) {
  .lab-layout { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the aside's search stays on top but its cards (topics, reminders — mostly
     empty) go under the lists: they used to come first and push the month and Brainstorm
     down. The aside and its inner box step aside so each orders on its own. */
  .lab-aside, .lab-aside-inner { display: contents; }
  .lab-aside .lab-search { order: -1; }
  .lab-aside .lab-aside-card { order: 1; }
}
.lab-section > .lab-list-head { margin-bottom: 10px; }
.lab-section-title { margin: 0; color: var(--text-1); font-size: var(--fs-16); font-weight: 700; }
.lab-earlier-label { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* Past the first ten until Show more; the rows' flex would otherwise override [hidden]. */
.lab-row[hidden] { display: none; }
.lab-earlier-rows .lab-row { opacity: 0.85; }
/* Earlier, unfolded: today's list just carries on into it, a day's gap between, its
   heading there for screen readers alone. */
.lab-earlier { margin-top: 22px; }
.lab-earlier-label.is-quiet { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Upcoming and Earlier run several days together: a little room where a new one starts. */
.lab-row.is-day-start { margin-top: 18px; }
.lab-earlier-rows .lab-row.is-scheduled { opacity: 0.45; }
.lab-when { flex: none; width: 86px; color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lab-more { display: block; margin: 8px auto 0; height: 28px; padding: 0 14px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--fs-12); cursor: pointer; }
.lab-more:hover { color: var(--text-1); background: var(--surface-2); }
/* Show more and, once open, Show less, side by side. */
.lab-more-bar { display: flex; justify-content: center; gap: 8px; }
.lab-more-bar .lab-more { margin: 8px 0 0; }
.lab-more-bar .lab-more.is-unfold { margin-top: 14px; }
.lab-more-bar .lab-more[hidden] { display: none; }
.lab-earlier-foot .lab-more-bar .lab-more { margin-top: 14px; }
.lab-earlier-foot > .lab-next-toggle { margin-top: 14px; }
.lab-section.lab-next[hidden] { display: none; }
/* Earlier, folded away: the button stands where the list would be. */
.lab-more.is-unfold { margin-top: 14px; }
/* Under Earlier: Show earlier, and beside it how many earlier posts never got published. */
.lab-earlier-foot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lab-earlier-foot .lab-more { margin: 14px 0 0; }
.lab-earlier-foot .lab-unpublished-flag { margin-top: 14px; }
.lab-unpublished-flag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: color-mix(in srgb, var(--gold-bright) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold-bright) 55%, transparent); border-radius: 999px; color: var(--gold-bright); font-size: var(--fs-12); font-weight: 600; letter-spacing: normal; text-transform: none; cursor: pointer; }
.lab-unpublished-flag:hover { background: color-mix(in srgb, var(--gold-bright) 20%, transparent); }
.lab-unpublished-flag i { font-size: var(--fs-10); }
/* An earlier post that never went out, and the ones the flag brought into view. */
.lab-earlier-rows .lab-row.is-unpublished { opacity: 1; border-color: color-mix(in srgb, var(--gold-bright) 40%, var(--border)); }
.lab-row.is-unpublished.is-flagged { box-shadow: inset 2px 0 0 var(--gold-bright); }

.lab-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lab-count { color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.lab-count.is-met { color: var(--accent-bright); }

/* minmax(0, 1fr): an auto column grows to a long post's unwrapped width, past the page. */
.lab-rows { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.lab-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px 4px 10px; background: var(--surface-row); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lab-row.is-placeholder { background: transparent; border-style: dashed; }
.lab-row.is-placeholder .lab-text { color: var(--text-3); font-size: var(--fs-12); }
.lab-row.is-extra { border-left: 2px solid var(--blue); }
/* A brainstormed post that's moved on to the schedule: faded here, its live copy is below. */
.lab-row.is-scheduled { opacity: 0.45; transition: opacity 0.15s ease; }
.lab-row.is-scheduled:hover, .lab-row.is-scheduled:focus-within { opacity: 1; }
.lab-row.is-scheduled .lab-text { color: var(--text-2); }
.lab-row.is-next { border-color: var(--accent); border-style: dashed; }
.lab-row.is-next .lab-text, .lab-row.is-next .lab-time { color: var(--accent-bright); }
.lab-row.is-late .lab-time { color: var(--gold-bright); }
.lab-num, .lab-time { flex: none; color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.lab-num { width: 18px; text-align: right; }
.lab-thumb { flex: none; width: 30px; height: 30px; border-radius: 4px; object-fit: cover; background: var(--recess); }
.lab-time { width: 52px; font-weight: 600; }
.lab-text { flex: 1; min-width: 0; overflow: hidden; color: var(--text-1); font-size: var(--fs-13); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.lab-text:hover { text-decoration: underline; text-decoration-color: var(--border-strong); }
/* After a post's text on its row: a "?" when it asks a question, and its length against
   X's 280 (amber near it, red past it). */
.lab-row-meta { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.lab-row-chars { color: var(--text-3); font-size: var(--fs-11); font-variant-numeric: tabular-nums; }
.lab-asks { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent); border-radius: 50%; color: var(--blue); font-size: var(--fs-10); font-weight: 700; line-height: 1; }
/* A post with a topic: the topic, bold, stands for it on its row. */
.lab-text.is-topic { font-weight: 700; }
/* The original text standing in until there's a version of mine: a quote, in the blue of
   the inspiration it came from. */
.lab-text.is-quote { color: color-mix(in srgb, var(--blue) 70%, var(--text-2)); font-style: italic; }
.lab-text.is-quote i { margin-right: 6px; font-size: var(--fs-10); font-style: normal; opacity: 0.8; vertical-align: 1px; }

.lab-quick { position: relative; flex: 1; min-width: 0; display: grid; gap: 10px; }
/* The post form as a card, as the New Task form is (02-task-form.css): header, the fields,
   then a footer with my image and the send arrow. */
.lab-quick.task-form-card { display: flex; flex-direction: column; gap: 0; margin: 2px 0; }
.lab-quick-body { display: grid; gap: 10px; padding: 14px; }
.lab-rules-goals { margin: 0; color: var(--text-2); font-size: var(--fs-12); line-height: 1.5; }
/* Each goal's number opens its rule: underlined, so it reads as something to click. */
.lab-goal-link { color: var(--accent-bright); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.lab-goal-link:hover { text-decoration-style: solid; }
.lab-goal-link strong { color: inherit; }
.lab-rules-hint { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-11); }
/* The original's section: tinted apart from my version, its fields inside. */
.lab-original { display: grid; gap: 8px; padding: 10px; background: color-mix(in srgb, var(--blue) 8%, var(--recess)); border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent); border-radius: var(--radius-md); }
.lab-quick .task-form-header, .lab-quick .task-form-footer { padding: 10px 14px; }
.lab-quick .task-form-footer-left { align-items: center; }
.lab-image-pick { position: relative; overflow: hidden; cursor: pointer; }
.lab-image-pick .lab-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lab-image-pick.is-picked { color: var(--accent-bright); border-color: var(--accent); }
.lab-row.lab-folded-form { background: transparent; border-style: dashed; }
.lab-unfold { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 0; background: none; border: 0; color: var(--text-3); font: inherit; font-size: var(--fs-12); text-align: left; cursor: pointer; }
.lab-quick-pair { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px; }
.lab-quick .lab-input, .lab-quick-input { box-sizing: border-box; width: 100%; min-width: 0; }
.lab-file { max-width: 100%; color: var(--text-2); font-size: var(--fs-12); }
.lab-file::file-selector-button { height: 28px; margin-right: 8px; padding: 0 10px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font: inherit; cursor: pointer; }
/* HOT TOPICS: a chip per topic, its count beside it; open, its posts listed beneath. */
.lab-hot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-hot-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: var(--fs-12); text-decoration: none; }
.lab-hot-chip i { color: var(--gold-bright); font-size: var(--fs-10); }
.lab-hot-chip:hover { color: var(--text-1); background: var(--surface-2); }
.lab-hot-chip.is-open { color: var(--text-1); border-color: var(--gold-bright); background: color-mix(in srgb, var(--gold-bright) 10%, transparent); }
.lab-hot-count { color: var(--text-3); font-variant-numeric: tabular-nums; }
.lab-hot-close { color: var(--text-3); font-size: var(--fs-12); }
.lab-hot-close:hover { color: var(--text-1); }
.lab-hot-rows { margin-top: 12px; }
/* NEXT: posts not yet sure for the schedule. A "Next" label on their faded Brainstorm row;
   a dashed row at the foot of the list to drop more in. */
.lab-chip.is-queued { color: var(--text-2); }
.lab-chip.is-queued i { font-size: var(--fs-10); }
.lab-insert-row .lab-when i { color: var(--accent); font-size: var(--fs-10); }
.lab-insert-row .lab-when { padding-top: 7px; }
/* A post's own form, opened under its row: its current image beside the file field, and
   the full editor a link away. */
.lab-edit-row .lab-num i { color: var(--blue); font-size: var(--fs-10); }
.lab-edit-row .lab-num { padding-top: 7px; }
.lab-thumb.is-current { width: 40px; height: 40px; }
/* "Needs an image / a video", under My image; on the row, a dashed box with its icon where
   the image will go. */
/* The two side by side, together the form's width. */
.lab-media-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* Needs an image / a video: an icon button, its checkbox hidden inside, lit when on. */
.lab-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 30px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-3); font-size: var(--fs-13); cursor: pointer; }
.lab-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.lab-toggle:hover { color: var(--text-1); background: var(--surface-2); }
.lab-toggle:has(input:checked) { color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.lab-toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
/* A post's image or video, a plain icon in its text's color, just in front of the text. */
.lab-media-icon { margin: 0 2px; color: inherit; font-size: 0.92em; font-style: normal; }

.lab-hot-rows .lab-row.is-scheduled { opacity: 1; }
.lab-row.is-input { align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.lab-row.is-input .lab-num { padding-top: 7px; }
.lab-quick-input { width: 100%; min-width: 0; max-height: 60vh; padding: 6px 8px; background: var(--recess); border: 1px solid var(--field-required-border); border-radius: var(--radius-sm); color: var(--text-1); font: inherit; font-size: var(--fs-13); line-height: 1.5; resize: none; }
.lab-quick-input:focus { outline: none; box-shadow: var(--field-required-ring); }
.lab-quick-input.is-optional { border-color: var(--border-strong); }

.lab-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: var(--fs-12); }
.lab-chip.is-published { color: var(--accent-bright); }
/* A post's topics, set on its row: "+ Topic" (none yet) and the pen only on hover. */
/* Maybe / Schedule on a brainstormed row: two small buttons, an icon and a word each. */
.lab-send { flex: none; display: inline-flex; gap: 2px; }
/* A post's row in columns of a set width, lined up from row to row as a table's: each
   there even when empty, its contents cut short (in full on hover) rather than pushing the
   next along. The post's text takes what's left. */
.lab-row:has(> .lab-col) { gap: 6px; }
.lab-col { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.lab-col-time { width: 44px; color: var(--blue); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.lab-col-button { width: 76px; justify-content: flex-end; }
.lab-col-x, .lab-col-add { width: 26px; overflow: visible; }
/* The time column only where a row in the section has a time; else no gap for it. */
.lab-section:not(:has(.lab-time-text)) .lab-col-time { display: none; }
.lab-col .lab-chip { min-width: 0; overflow: hidden; }
.lab-col-button .lab-chip > span { display: block; overflow: hidden; text-overflow: ellipsis; }
/* The row's main cell: the one button to mark it or set its topics, its topics in bold
   ("Islam: …"), then the post. */
.lab-cell { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 4em; }
.lab-cell > .lab-text { flex: 1 4 auto; min-width: 3em; }
/* Its topics lead the post's line in bold, in its color, cut short with it as one. */
.lab-topic-prefix { color: inherit; font-weight: 700; }
/* Its text in color for what it's marked: a favorite gold, as a priority task's title is; an
   insightful one pink. Both, gold. */
.lab-row.is-insightful .lab-cell .lab-text { color: var(--milestone); }
.lab-row.is-favorite .lab-cell .lab-text { color: #d4b84a; }
/* The one button: quiet until the row's hovered (or its menu's open); its menu under it, to
   star it, mark it insightful, or set its topics. */
.lab-row-menu { flex: none; }
.lab-row-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 16px; font-size: var(--fs-10); opacity: 0.7; transition: opacity 0.15s ease; }
.lab-row:hover .lab-row-menu-btn, .lab-row-menu-btn:focus-visible, .lab-row-menu[open] > .lab-row-menu-btn { opacity: 1; }
.lab-row-menu .lab-menu-pop { top: calc(100% + 4px); left: 0; right: auto; width: 260px; padding: 8px; }
.lab-row-menu .lab-menu-pop > form:not(.lab-topic-form) { display: contents; }
.lab-row-menu .lab-menu-item { display: flex; align-items: center; gap: 8px; }
.lab-row-menu .lab-menu-item i { width: 14px; color: var(--text-3); }
.lab-mark-star.is-on, .lab-mark-star.is-on i { color: var(--gold-bright); }
.lab-mark-brain.is-on, .lab-mark-brain.is-on i { color: var(--milestone); }
.lab-row-menu .lab-topic-form { margin-top: 4px; padding: 8px 2px 2px; border-top: 1px solid var(--border); }
/* Its length, in a slot of its own. */
.lab-row-meta .lab-row-chars { width: 22px; text-align: right; }
/* The number or day: one width through a section, so what follows lines up. */
#lab-schedule { --lab-lead: 52px; }
#lab-next { --lab-lead: 0px; }
/* Today's lists number their rows, no dates: a narrow column, so what follows sits close. */
.lab-today-rows { --lab-lead: 18px; }
#lab-schedule .lab-today-rows .lab-time { width: 18px; text-align: right; }
#lab-schedule .lab-today-rows .lab-lead { justify-content: flex-end; }
/* A day's date ("Nov 28", Earlier and Upcoming): as wide as the widest, set to its right like
   the numbers, so what follows sits the same distance from every one. */
.lab-lead:has(> .lab-when) { width: 42px; justify-content: flex-end; }
.lab-lead > .lab-when { width: auto; text-align: right; }
.lab-lead > .lab-when { width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lab-lead > .lab-time { width: auto; }
.lab-topic-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 240px; }
.lab-topic-form .lab-menu-title { flex-basis: 100%; }
.lab-topic-form .lab-input { flex: 1; min-width: 0; }
.lab-row > .lab-text { min-width: min(10em, 30%); }

.lab-action, .lab-menu-item { height: 26px; padding: 0 10px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--fs-12); font-weight: 500; white-space: nowrap; cursor: pointer; }
.lab-action:hover, .lab-menu-item:hover { color: var(--text-1); background: var(--surface-2); }
.lab-menu { position: relative; flex: none; }
/* A row with a menu open sits above the rows after it, so the menu isn't drawn under
   them (a faded row keeps its menu's z-index inside itself otherwise), and unfaded, so
   the menu isn't see-through. */
.lab-row:has(> details[open], > .lab-controls details[open], > .lab-chip details[open], > .lab-col details[open], > .lab-cell details[open]) { position: relative; z-index: 30; opacity: 1 !important; }
.lab-menu > summary { display: inline-flex; align-items: center; list-style: none; }
.lab-menu > summary::-webkit-details-marker { display: none; }
.lab-menu-pop { position: absolute; top: 30px; right: 0; z-index: 10; display: grid; gap: 4px; min-width: 150px; padding: 6px; background: var(--surface-pop); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.lab-menu-pop form { display: contents; }
.lab-menu-item { width: 100%; text-align: left; border-color: transparent; }
.lab-menu-item.is-quiet { color: var(--text-3); }
.lab-field-time input[type=time] { color-scheme: dark; }
/* The time in the post form's footer, as tall as the image button. */
.lab-quick .lab-field-time { display: inline-flex; align-items: center; }
.lab-quick .lab-field-time .lab-input { height: 36px; width: 150px; }
/* The tag beside the image button, as tall, a short word's width. */
.lab-quick .lab-field-tag { display: inline-flex; align-items: center; }
.lab-quick .lab-field-tag .lab-input { height: 36px; width: 120px; }

/* A row that drags from anywhere on it: a grab cursor on the row itself, not its controls. */
@media (hover: hover) {
  .lab-row:is([data-move-url], [data-reorder-url], [data-next-url]) { cursor: grab; }
  .lab-row:is([data-move-url], [data-reorder-url], [data-next-url]) :is(button, a, input, select, textarea, summary, label) { cursor: pointer; }
  .lab-row:is([data-move-url], [data-reorder-url], [data-next-url]) :is(input, textarea) { cursor: text; }
  .lab-row:is([data-move-url], [data-reorder-url], [data-next-url]) .lab-text { -webkit-user-select: none; user-select: none; }
}
.lab-menu-title { padding: 4px 10px 2px; color: var(--text-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-menu-item:disabled { color: var(--text-3); cursor: default; background: transparent; }
.lab-row.is-dragging { opacity: 0.4; }
/* Past the last time, shown only while a post is being dragged: drop it in as an extra. */
.lab-row.lab-extra-drop { display: none; }
body.is-lab-dragging .lab-row.lab-extra-drop { display: flex; }
.lab-row.is-drop-target { border-style: solid; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* Reordering today's brainstorm: a line where the dragged post would land. */
.lab-row.is-drop-before { box-shadow: 0 -3px 0 -1px var(--accent); }
.lab-row.is-drop-after { box-shadow: 0 3px 0 -1px var(--accent); }
/* Dropped between two of today's times: asks the post's own time, right where it went. */
.lab-time-ask .lab-time { padding-top: 7px; color: var(--blue); }
.lab-time-ask-form { flex: 1; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.lab-time-ask-form input[type=time] { color-scheme: dark; width: 140px; }
.lab-time-ask-form .lab-save, .lab-time-ask-form .lab-action { height: 32px; }
.lab-drag-ghost { position: fixed; z-index: 100; pointer-events: none; margin: 0; opacity: 0.92; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
body.is-lab-dragging, body.is-lab-dragging * { cursor: grabbing !important; user-select: none; }
.lab-controls { flex: none; display: flex; align-items: center; gap: 4px; }
/* Its buttons' forms add no box of their own. */
.lab-star-form { display: contents; }
.lab-row.is-favorite { border-color: color-mix(in srgb, var(--gold-bright) 45%, var(--border)); box-shadow: inset 2px 0 0 var(--gold-bright); }
.lab-row.is-favorite.is-scheduled { opacity: 0.6; }
@media (hover: none) { .lab-row-menu-btn { opacity: 1; } }
/* A row starts with its number (or day). A favorite's is gold, as its edge is. */
.lab-lead { flex: none; display: inline-flex; align-items: center; width: var(--lab-lead, 48px); }
.lab-row.is-favorite .lab-lead :is(.lab-num, .lab-when, .lab-time) { color: var(--gold-bright); }
/* A row's "+", as on the Posts page: the form opens under it. Quiet until the row is
   hovered, and always there on touch screens. */
.lab-insert { flex: none; width: 26px; height: 26px; padding: 0; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text-3); font-size: var(--fs-11); cursor: pointer; }
.lab-insert:hover, .lab-insert.is-open { color: var(--text-1); background: var(--surface-2); }
.lab-insert-space { flex: none; width: 26px; }
.lab-insert-row .lab-num i, .lab-insert-row .lab-time i { color: var(--accent); font-size: var(--fs-10); }
.lab-insert-row .lab-time { padding-top: 7px; }
/* A time marked complete: the post before it was still performing, so none went out.
   The strip shows it the darker green of a pushed post. */
.lab-hold { display: inline-flex; align-items: center; gap: 5px; /* Quiet until wanted: on hover, on the time up next, and always on touch screens. */ opacity: 0; transition: opacity 0.15s ease; }
.lab-hold i { font-size: var(--fs-10); }
.lab-row:hover .lab-hold, .lab-row.is-next .lab-hold, .lab-hold:focus-visible { opacity: 1; }
@media (hover: none) { .lab-hold { opacity: 1; } }
.lab-row:has(.lab-slot-add[open]) .lab-hold-wrap { display: none; }
.lab-row.is-held { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, color-mix(in srgb, var(--accent) 55%, #000) 70%, transparent); }
.lab-row.is-held .lab-time { color: color-mix(in srgb, var(--accent) 70%, var(--text-2)); }
.lab-row.is-held .lab-text { display: inline-flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--accent) 75%, var(--text-2)); font-size: var(--fs-12); }
.lab-row.is-held .lab-text i { font-size: var(--fs-10); }
/* A time marked missed: nothing went out. Settled, but red, and counting for nothing. */
.lab-row.is-held.is-missed { background: color-mix(in srgb, var(--danger-bright) 8%, transparent); border-color: color-mix(in srgb, var(--danger-bright) 40%, var(--border)); }
.lab-row.is-held.is-missed .lab-time, .lab-row.is-held.is-missed .lab-when, .lab-row.is-held.is-missed .lab-text { color: color-mix(in srgb, var(--danger-bright) 80%, var(--text-2)); }
.lab-miss:hover { color: var(--danger-bright); border-color: color-mix(in srgb, var(--danger-bright) 50%, transparent); }
/* On a row with a post: its time marked complete, the post pushed down. Quiet until the
   row is hovered, like the rest of its controls. */
.lab-push-down { opacity: 0; transition: opacity 0.15s ease; }
.lab-row:hover .lab-push-down, .lab-push-down:focus-visible { opacity: 1; }
.lab-push-down:hover { color: var(--accent-bright); }
@media (hover: none) { .lab-push-down { opacity: 1; } }
/* Yesterday's times above today's, while any is unsettled; a label over each day. */
.lab-day-label { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 6px; color: var(--text-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-day-label .lab-count { letter-spacing: normal; text-transform: none; font-weight: 400; }
/* The "+" by a day's name: a post written in first that day. Always shown, unlike a row's. */
.lab-day-name { display: inline-flex; align-items: center; gap: 4px; }
.lab-day-label .lab-insert-first { width: 22px; height: 22px; opacity: 1; }
.lab-next > .lab-more { margin-top: 8px; }
/* Next with nothing in it: a thin strip, no label or row, until hovered or a post is being
   dragged; then it opens to write one in or drop one on. */
.lab-next.is-empty { max-height: 14px; margin-bottom: 4px; padding-top: 0; padding-bottom: 0; overflow: hidden; opacity: 0; transition: max-height 0.15s ease, opacity 0.15s ease, margin 0.15s ease; }
.lab-next.is-empty:hover, .lab-next.is-empty:focus-within { max-height: 200px; margin-bottom: 18px; padding-top: 18px; padding-bottom: 18px; opacity: 1; }
/* While a post is dragged, the strip only shows where it is, so nothing below it moves
   under the pointer; dragged over, it opens to be dropped on. */
body.is-lab-dragging .lab-next.is-empty:not(:hover) { opacity: 1; border-top: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.lab-controls form { display: contents; }
.lab-icon { width: 26px; height: 26px; padding: 0; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text-3); cursor: pointer; }
.lab-icon:hover { color: var(--text-1); background: var(--surface-2); }
/* A scheduled post's step, in its row's button column: an empty check (faint) still to add to X, a
   check on X (blue), a double check published (green), each click the next. */
.lab-step { flex: none; width: 22px; height: 26px; padding: 0; background: transparent; border: 0; border-radius: var(--radius-sm);
  color: var(--text-3); font-size: var(--fs-12); cursor: pointer; }
.lab-step i { color: inherit; }
.lab-step.is-scheduled { color: var(--text-3); }
.lab-step.is-on_x { color: var(--blue); }
.lab-step.is-published { color: var(--accent-bright); }
.lab-step:hover { background: var(--surface-2); }
.lab-step.is-scheduled:hover { color: var(--text-1); }
/* On SCHEDULE's rows, a button the width of Brainstorm's Maybe and Schedule, so the ×, the
   "+", and the text's end line up with theirs: tinted blue on X, green published. */
#lab-schedule .lab-col-button .lab-step { width: 100%; height: 26px; border: 1px solid var(--border-strong); }
#lab-schedule .lab-col-button .lab-step.is-on_x { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 12%, transparent); }
#lab-schedule .lab-col-button .lab-step.is-published { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
#lab-schedule .lab-col-button .lab-step:hover { border-color: var(--text-3); }

@media (max-width: 480px) {
  .lab-section { padding: 12px; }
  .lab-row { flex-wrap: wrap; }
  .lab-text { flex-basis: calc(100% - 80px); }
  .lab-controls, .lab-menu, .lab-chip { margin-left: auto; }
  .lab-quick-pair { grid-template-columns: minmax(0, 1fr); }
}
.lab-row.is-folded { min-height: 32px; }

/* An open publish time on today's SCHEDULE, or BRAINSTORM's next row once the goal is met:
   the whole row opens the form. */
.lab-slot-add { flex: 1; min-width: 0; }
.lab-slot-add > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; list-style: none; cursor: pointer; }
.lab-slot-add > summary::-webkit-details-marker { display: none; }
.lab-slot-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--fs-12); opacity: 0; transition: opacity 0.15s ease; }
.lab-slot-hint.is-shown, .lab-row:hover .lab-slot-hint, .lab-slot-add > summary:focus-visible .lab-slot-hint { opacity: 1; }
.lab-row:has(.lab-slot-add):hover { border-color: var(--border-strong); }
.lab-row:has(.lab-slot-add[open]) { align-items: flex-start; padding-top: 6px; padding-bottom: 8px; border-style: solid; background: var(--surface-row); }
.lab-row:has(.lab-slot-add[open]) :is(.lab-time, .lab-num) { padding-top: 7px; }
.lab-slot-add[open] .lab-slot-hint { display: none; }
.lab-slot-form { margin-top: 8px; }
@media (hover: none) { .lab-slot-hint { opacity: 1; } }


/* ---- Schedule calendar: no key in lock mode; the milestone form; recent towns ---- */
.schedule-calendar-panel.lock-mode-on > .mini-cal-key { display: none; }
.milestone-form-field { text-align: left; }
.milestone-icon-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
.milestone-icon-preset {
  display: grid; place-items: center; height: 30px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-13);
}
/* The picked one plainly picked: a firmer green ring than the hover's grey. */
.milestone-icon-preset:hover { color: var(--text-1); border-color: var(--border-strong); }
.milestone-icon-preset.is-on { color: #4ade80; border-color: rgba(74, 222, 128, 0.8); background: rgba(74, 222, 128, 0.14); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35); }
.day-place-recent { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.day-place-chip {
  padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-2);
  color: var(--text-1); font-size: var(--fs-12); cursor: pointer;
}
.day-place-chip:hover { background: var(--surface-3); }

/* The weather's icon in its own colour, readable at a glance at this size: sun yellow,
   cloud grey, rain and snow blue, a storm violet. */
.day-weather i.fa-sun { color: #fbbf24; }
.day-weather i.fa-cloud-sun { color: #fcd34d; }
.day-weather i.fa-cloud, .day-weather i.fa-smog { color: #9ca3af; }
.day-weather i.fa-cloud-rain, .day-weather i.fa-cloud-showers-heavy { color: #60a5fa; }
.day-weather i.fa-snowflake { color: #bae6fd; }
.day-weather i.fa-cloud-bolt { color: #a78bfa; }

/* Home's day column: the town stays on its line under the date, and the weather alone —
   the icon and the high (the low in its tooltip) — moves into a small chip tucked into the
   day card's top-right corner. */
.daily-column .date-separator .day-weather-chip {
  position: absolute; top: 0px; right: -12px;
  margin: 0; padding: 3px 9px; gap: 5px;
  border: none; border-radius: 999px; background: var(--surface-card);
  color: var(--text-2); font-size: var(--fs-11); font-weight: 500; white-space: nowrap;
}
.daily-column .date-separator .day-weather-low { display: none; }
.daily-column .date-separator .day-weather-chip + .day-weather-place::before { content: none; }
/* The chip keeps the icon grey, like its text: in colour it pulled the eye from the day. */
.daily-column .date-separator .day-weather i { color: var(--text-3) !important; }

/* Under Brainstorm's and Schedule's rows: how many more reach the day's goal, in place of
   a blank row for each (posts_lab/_brainstorm, _schedule). */

/* A post opened under its row: no card of its own (the row frames it) and no "Edit Post"
   header — Cancel and the arrow are in its footer (posts_lab/_form). */
.lab-edit-row .lab-edit-form.task-form-card { flex: 1; border: none; background: transparent; box-shadow: none; }
.lab-edit-row .lab-edit-form .task-form-header { display: none; }
.lab-edit-row .lab-edit-form .task-form-body { padding-top: 4px; }
.lab-form-cancel { margin-left: auto; margin-right: 8px; padding: 6px 10px; border: none; border-radius: var(--radius-sm); background: none; color: var(--text-3); font: inherit; font-size: var(--fs-13); cursor: pointer; }
.lab-form-cancel:hover { background: var(--surface-2); color: var(--text-1); }

/* The original, folded under "Quote or reply to…" until it's in use. */
.lab-original-fold > summary { list-style: none; }
.lab-original-fold > summary::-webkit-details-marker { display: none; }
.lab-original-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; color: var(--text-3); font-size: var(--fs-12); font-weight: 600; cursor: pointer; }
.lab-original-toggle:hover { color: var(--text-1); }
.lab-original-fold[open] > .lab-original-toggle { margin-bottom: 6px; }
/* Its image and video needs say what they are, not just an icon. */
.lab-media-needs .lab-toggle { gap: 6px; }
.lab-media-needs .lab-toggle span { font-size: var(--fs-12); }

/* A phone: a row's length and its "+" (add a post after it) go, so the title has the room
   — it was cut to ten letters. Maybe and Schedule stay; "Write a post" still adds one. */
@media (max-width: 640px) {
  .lab-row .lab-row-meta,
  .lab-row .lab-col-add { display: none; }
  #lab-brainstorm .lab-col-button { width: auto; } /* Schedule's keeps its width: the step button fills it */
}
