/* ============================================================
 * Weekly Log tool (Wave 2): My week, Team this week, per-person
 * thread. Reuses the app's existing CSS custom properties
 * (--bg/--border/--accent/--success/--warn/--danger/--text-muted)
 * so this stays in step with light/dark mode for free — no new
 * palette introduced.
 *
 * UX reference: /Users/brian/Claude/exports/eg-hub/weekly-log-prototype/index.html
 * ("Four steps" writing, "One thread per person" review).
 * ============================================================ */

.wlog-page { padding: 10px 16px 40px; max-width: 920px; }

.nav-divider { height: 1px; background: var(--border); margin: 8px 12px; }

/* Small group label inside the Plan section ("Weekly Log", above My week / Team
   this week / Rollup / Priorities). Same family as .nav-title, one step down. */
.nav-subtitle { padding: 16px 12px 3px; font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.sidebar .nav-subtitle { color: var(--text-faint); }

.btn-link { color: var(--accent); text-decoration: none; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }

/* -------------------- header + sub-tabs -------------------- */
.wlog-header { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wlog-header h2 { margin: 0 0 4px; }
.wlog-sub { color: var(--text-muted); font-size: 12.5px; }

.wlog-tabs { display: flex; gap: 4px; margin: 10px 0 16px; border-bottom: 1px solid var(--border); }
.wlog-tab { font: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; border: 0;
  background: transparent; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.wlog-tab.active { color: var(--accent-on); border-bottom-color: var(--accent); }
.wlog-tab:hover:not(.active) { color: var(--text); }

/* -------------------- two-column layout (body + rail) -------------------- */
.wlog-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .wlog-cols { grid-template-columns: minmax(0, 1fr); } }

.wlog-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px; }
.wlog-card h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 600; }

/* -------------------- stepper -------------------- */
.wlog-stepper { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wlog-step { font: inherit; font-size: 11.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; }
.wlog-step.done { background: rgba(16, 185, 129, 0.14); color: var(--success-text); border-color: rgba(16, 185, 129, 0.35); }
.wlog-step.cur { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); font-weight: 600; }
.wlog-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* -------------------- rows + chips -------------------- */
.wlog-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.wlog-row:first-child { border-top: 0; }
/* The text keeps at least 240px; when the chips do not fit beside it they wrap
   below instead of squeezing it to one word per line (Brian, 2026-10-21). */
.wlog-grow { flex: 1 1 240px; min-width: 0; }
.wlog-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.wlog-hint b { color: var(--accent-on); }
.wlog-src-chip { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 5px;
  background: var(--bg-raised); color: var(--text-muted); margin-left: 6px; white-space: nowrap; }

.wlog-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.wlog-chip { font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-muted); cursor: pointer;
  white-space: nowrap; }
.wlog-chip.on-done { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.4); color: var(--success-text); font-weight: 600; }
.wlog-chip.on-partial { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.4); color: var(--warn-text); font-weight: 600; }
.wlog-chip.on-moved { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-on); font-weight: 600; }
.wlog-chip.on-waiting { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.4); color: var(--warn-text); font-weight: 600; }
.wlog-chip.on-need_help { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: var(--danger-text); font-weight: 600; }
.wlog-chip.on-still_going { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-on); font-weight: 600; }
.wlog-chip.on-dropped { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: var(--danger-text); font-weight: 600; }
/* A suggestion from the card, not an answer yet: outline only, dashed. */
.wlog-chip.is-suggested { background: transparent; border-style: dashed; font-weight: 500; }
.wlog-chip.stretch { border-style: dashed; }

.wlog-dropped-reason { margin-top: 6px; width: 100%; font: inherit; font-size: 12.5px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }

/* -------------------- recommendations -------------------- */
.wlog-rec { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px;
  padding: 7px 10px; margin-top: 8px; font-size: 12.5px; color: var(--text); }
.wlog-rec.warn { border-left-color: var(--warn); background: rgba(245, 158, 11, 0.12); }

/* -------------------- text inputs -------------------- */
.wlog-input, .wlog-select, .wlog-textarea {
  font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-alt); color: var(--text); width: 100%;
}
.wlog-textarea { resize: vertical; min-height: 32px; }
.wlog-add-row { display: flex; gap: 6px; margin-top: 6px; }
.wlog-add-row .wlog-input { flex: 1; }

/* -------------------- buttons -------------------- */
.wlog-btn { font: inherit; font-size: 12.5px; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg-alt); cursor: pointer; color: var(--text); font-weight: 500; }
.wlog-btn:hover { border-color: var(--accent); }
.wlog-btn.pri { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.wlog-btn.pri:hover { background: var(--accent-fill-hover); }
.wlog-btn.sm { font-size: 11.5px; padding: 3px 9px; }
.wlog-btn[disabled] { opacity: .5; cursor: default; }

/* -------------------- toggle switch -------------------- */
.wlog-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
/* Off track = --text-muted, not --border: #e8eaed on a white card was ~1.2:1
   and an off switch looked like nothing was there (Jose, 2026-11-01). */
.wlog-sw { width: 32px; height: 18px; border-radius: 99px; background: var(--text-muted); position: relative;
  transition: .15s; flex: none; }
.wlog-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: .15s; }
.wlog-sw-text { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 22px; text-align: right; }
.wlog-toggle[aria-checked="true"] .wlog-sw-text { color: var(--accent); }
.wlog-sw.on { background: var(--accent); }
.wlog-sw.on::after { left: 16px; }

/* -------------------- save indicator -------------------- */
.wlog-save-state { font-size: 11.5px; color: var(--text-muted); }
.wlog-save-state.saving::before { content: "saving… "; }
.wlog-save-state.saved::before { content: "saved "; color: var(--success-text); }
.wlog-save-state.error::before { content: "couldn't save "; color: var(--danger-text); }

/* -------------------- tiles (Draft / Last week / Replies) -------------------- */
.wlog-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 620px) { .wlog-tiles { grid-template-columns: minmax(0, 1fr); } }
.wlog-tile-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.wlog-tile-value { font-size: 22px; font-weight: 600; margin-top: 2px; }

/* -------------------- team roster -------------------- */
.wlog-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wlog-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px;
  padding: 6px 8px; text-transform: uppercase; letter-spacing: .05em; }
.wlog-table td { padding: 9px 8px; border-top: 1px solid var(--border-soft); vertical-align: top; }
.wlog-table tr.click { cursor: pointer; }
.wlog-table tr.click:hover td { background: var(--row-hover); }

.wlog-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.wlog-dot.red { background: var(--danger); }
.wlog-dot.yellow { background: var(--warn); }
.wlog-dot.green { background: var(--success); }
.wlog-dot.grey { background: var(--text-dim); }
.wlog-dot.unread { background: var(--accent); }

.wlog-cnt { font: inherit; font-size: 12px; padding: 2px 7px;
  border-radius: 5px; background: rgba(16, 185, 129, 0.12); color: var(--success-text); }
.wlog-cnt.lo { background: rgba(245, 158, 11, 0.14); color: var(--warn-text); }
.wlog-cnt.na { background: var(--bg-raised); color: var(--text-muted); }
/* Edit log (2026-11-10): the quiet "Edited <time>" tag readers see on a log changed after posting. Tokens only. */
.wlog-edited-tag { display: inline-block; margin-left: 6px; font-size: 12px; line-height: 16px; padding: 1px 7px;
  border-radius: 999px; background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }

/* -------------------- Team this week (the page app.js renders) --------------------
   One card, one table, generous white space. Same tokens and same .wlog-card /
   .wlog-dot / .wlog-src-link as the rest of this file, so both read as one app.
   A person is one <tbody>: the row, an optional priorities line, and the
   expanded block (hidden until the row is opened). */
.wl-team-card { max-width: 1120px; padding: 6px 22px 8px; margin-bottom: 8px; }
.wl-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.wl-table thead th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); padding: 16px 12px 12px; }
.wl-table thead th:nth-child(1) { width: 20%; }
.wl-table thead th:nth-child(2) { width: 22%; }
.wl-table thead th:nth-child(3), .wl-table thead th:nth-child(4) { width: 7%; }
.wl-table thead th:nth-child(5) { width: 9%; }
.wl-table thead th:nth-child(6) { width: 14%; }
.wl-table thead th:nth-child(7) { width: 15%; }
.wl-table thead th:nth-child(8) { width: 6%; }
.wl-person { border-top: 1px solid var(--border-soft); }
.wl-person:hover, .wl-person.open { background: var(--row-hover); }
.wl-table td { padding: 0; vertical-align: middle; }
.wl-tr { cursor: pointer; }
.wl-tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wl-tr > td { padding: 16px 12px; }
.wl-person.has-peek .wl-tr > td { padding-bottom: 6px; }
.wl-name { font-weight: 600; color: var(--text); margin-right: 8px; }
.wl-c-status .wlog-dot { margin-right: 8px; }
.wl-c-status .wlog-src-link, .wl-c-status .wl-src { margin-left: 6px; }
.wl-src { color: var(--text-muted); font-size: 11.5px; }
.wl-table td.num { font-variant-numeric: tabular-nums; }
.wl-table td.num.zero { color: var(--text-dim); }
.wl-table td.num.stuck { color: var(--warn-text); font-weight: 600; }
.wl-c-posted { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.wl-c-posted .wl-late-tag { margin-left: 6px; }

/* Read vs unread on Team this week (Brian, 2026-11-02: "which ones are unread and
   which ones are read. So I don't go back into them"). Unread: bold name, blue
   edge. Read: the whole collapsed row steps back, with a green check. */
.wl-person.is-unread .wl-tr > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.wl-person.is-unread .wl-name { font-weight: 700; }
.wl-person.is-unread .wl-status-text { font-weight: 600; color: var(--text); }
.wl-person.is-read:not(.open) .wl-tr > td:not(.wl-c-status):not(.wl-c-act),
.wl-person.is-read:not(.open) .wl-peek-tr > td { opacity: .45; }
.wl-person.is-read:not(.open) .wl-name { font-weight: 500; }
.wl-person.is-read:not(.open) .wl-status-text { color: var(--text-muted); }
.wl-person.is-read:not(.open) .wlog-src-link { opacity: .5; }
.wl-read-check { display: inline-block; width: 9px; margin-right: 8px; color: var(--success); font-weight: 700; font-size: 12px; }
/* Stucks are not highlighted on a collapsed row; the opened row shows them. */
.wl-table .wl-person:not(.open) td.num.stuck { color: inherit; font-weight: inherit; }
.wl-c-act { text-align: right; white-space: nowrap; }
.wl-row-chev { display: inline-block; width: 14px; margin-left: 4px; font-size: 18px; line-height: 1; color: var(--text-dim); vertical-align: middle;
  transition: transform .15s; text-align: center; }
.wl-person.open .wl-row-chev { transform: rotate(90deg); }
.wl-peek-tr > td { padding: 0 12px 16px; }
.wl-peek-tr .wl-peek-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-dim); margin-right: 8px; }
.wl-peek-tr > td { color: var(--text-muted); font-size: 12.5px; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-peek-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-peek-tr .wl-peek-label.wl-peek-stuck { color: var(--warn-text); font-weight: 600; }
.wl-says-fixed { color: var(--text-muted); opacity: .75; font-style: italic; }
.wl-person.open .wl-peek-tr { display: none; }
.wl-needs { margin: 0 0 12px; font-size: 13px; }
.wl-needs-line { margin-top: 4px; line-height: 1.5; }
.wl-needs-label { color: var(--text-muted); }
.wl-date-passed { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--danger-text); border: 1px solid var(--danger); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.wl-needs-title { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.wl-needs-link { color: var(--accent); text-decoration: none; }
.wl-needs-link:hover { text-decoration: underline; }
.wl-needs-clear { color: var(--text-muted); }
.wl-body-tr.hidden { display: none; }
.wl-body-tr > td { padding: 0 12px 24px; background: var(--bg-alt); }
.wl-row-body { border-top: 1px solid var(--border-soft); padding-top: 16px; }

.wl-meta { font-size: 12px; color: var(--text-muted); margin: 0 0 14px; }
.wl-meta a { color: var(--accent); text-decoration: none; }
.wl-meta a:hover { text-decoration: underline; }
.wl-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wl-secs.wl-secs-one { grid-template-columns: minmax(0, 1fr); }
.wl-sec h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); }
.wl-sec-stucks h3 { color: var(--warn-text); }
.wl-sec .wl-body { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.wl-sec .wl-body ul, .wl-sec .wl-body ol { padding-left: 18px; margin: 4px 0; }
.wl-sec .wl-body p { margin: 4px 0; }
.wl-sec .wl-body em.empty-inline { color: var(--text-dim); font-style: normal; }
.wl-empty { color: var(--text-muted); font-size: 13px; margin: 4px 0 8px; }
.wl-row-body .wl-thread { margin-top: 20px; }
.wl-row-body .wl-thread-item, .wl-history .wl-thread-item { overflow-wrap: anywhere; }

.wl-reply { margin-top: 22px; }
.wl-reply-msg { display: block; width: 100%; box-sizing: border-box; min-height: 78px; padding: 10px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.wl-reply-msg:focus { outline: none; border-color: var(--accent); }
.wl-reply-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wl-reply-note { font-size: 11.5px; color: var(--text-dim); margin-left: 4px; }
.wl-reply-result { font-size: 12px; }
.wl-reply-result .ok { color: var(--success-text); font-weight: 600; }
.wl-reply-result .err { color: var(--danger-text); }
.wl-reply-result a { color: var(--accent); text-decoration: none; }
/* The log block: a title that says what it is, the sections as lists, then the
   comments around it (Brian, 2026-09-29). */
.wl-log-title { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 10px; }
.wl-notice { margin: 0 0 10px; padding: 6px 10px; font-size: 12.5px; border-radius: 6px;
  color: var(--warn-text); background: var(--bg); border: 1px dashed var(--warn); }
/* Wins are the long list, so it gets the wide left column and Stucks over
   Priorities share the right one, instead of three columns with one very tall
   and two nearly empty. */
.wl-log .wl-secs { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px 32px; align-items: start; }
.wl-log .wl-secs > .wl-sec:first-child { grid-row: span 2; }
.wl-log .wl-secs.wl-secs-one { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.wl-log .wl-secs.wl-secs-one > .wl-sec:first-child { grid-row: auto; }
.wl-list { margin: 4px 0; padding-left: 18px; }
.wl-list li { margin: 0 0 5px; }
.wl-serves { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border-soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: baseline; }
.wl-list li.wl-d1, .wl-list li.wl-d2, .wl-list li.wl-d3 { list-style: circle; color: var(--text-muted); }
.wl-list li.wl-d1 { margin-left: 16px; }
.wl-list li.wl-d2 { margin-left: 32px; }
.wl-list li.wl-d3 { margin-left: 48px; }
/* Headline + detail: a quiet "more" under the headline, the action plan always
   showing, minor wins folded into one closed line. Distinct from .wl-more, which
   clamps an "Also this week" comment. */
.wl-det-btn { border: 0; background: transparent; padding: 0; font: inherit; font-size: 11.5px;
  color: var(--accent); cursor: pointer; }
.wl-det-btn:hover { text-decoration: underline; }
.wl-action { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.wl-action-lab { font-weight: 600; color: var(--text); }
.wl-det { margin: 3px 0 2px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); overflow-wrap: anywhere; }
.wl-det p { margin: 0 0 3px; }
.wl-det-list { margin: 2px 0; padding-left: 16px; }
.wl-det-list li { margin: 0 0 2px; }
.wl-det-list li.wl-sub2 { margin-left: 16px; list-style: circle; }
.wl-det-list li.wl-sub3 { margin-left: 32px; list-style: circle; }
.wl-more-wins { margin-top: 4px; }
.wl-more-wins > summary { cursor: pointer; font-size: 12px; color: var(--accent); padding: 2px 0; }
.wl-also { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.wl-also-title { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); }
.wl-also-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-also-item { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-soft);
  border-left-width: 3px; background: var(--bg); overflow-wrap: anywhere; }
.wl-also-item.from-manager { border-left-color: var(--success); }
.wl-also-item.from-them { border-left-color: var(--border); }
.wl-also-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px;
  color: var(--text-muted); margin-bottom: 4px; }
.wl-also-tag { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.wl-also-tag.after { color: var(--accent); border-color: var(--accent); }
.wl-also-who { font-weight: 600; color: var(--text); }
.wl-also-head a { margin-left: auto; color: var(--accent); text-decoration: none; }
.wl-also-body { font-size: 12.5px; line-height: 1.5; }
.wl-also-body p { margin: 3px 0; }
.wl-also-body ul, .wl-also-body ol { padding-left: 18px; margin: 3px 0; }
.wl-also-body.wl-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.wl-also-body.wl-clamp > * { margin-top: 0; margin-bottom: 0; }
.wl-more { border: 0; background: transparent; padding: 2px 0 0; font: inherit; font-size: 11.5px;
  color: var(--accent); cursor: pointer; }
.wl-more:hover { text-decoration: underline; }
/* Prior weeks: one quiet line each; opening one draws the same view as above. */
.wl-week { border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg); }
.wl-week > summary { cursor: pointer; padding: 8px 12px; font-size: 12.5px; color: var(--text-muted);
  list-style: none; display: flex; gap: 8px; align-items: baseline; }
.wl-week > summary::-webkit-details-marker { display: none; }
.wl-week > summary::before { content: "\25B8"; font-size: 12px; color: var(--text-muted); }
.wl-week[open] > summary::before { content: "\25BE"; }
.wl-week[open] > summary { color: var(--text); }
.wl-week-body { padding: 4px 14px 14px; border-top: 1px solid var(--border-soft); margin-top: 2px; padding-top: 14px; }
.wl-week-body .wl-secs { gap: 20px 32px; }
@media (max-width: 900px) {
  .wl-log .wl-secs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .wl-log .wl-secs > .wl-sec:first-child { grid-row: auto; }
}
.wl-history, .wl-reconfigure { margin-top: 20px; font-size: 12px; }
.wl-history > summary, .wl-reconfigure > summary { cursor: pointer; padding: 2px 0; }
.wl-history-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.wl-reconfigure > div { margin-top: 10px; }

@media (max-width: 900px) {
  .wl-secs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* The page header (title, week, Following, Review/Priorities) stacks on a
   narrow screen instead of squeezing the title into a word per line. */
@media (max-width: 720px) {
  #view-weekly-logs .objectives-header { flex-direction: column; gap: 12px; }
  #view-weekly-logs .wl-header-right { margin-left: 0; width: 100%; justify-content: space-between; }
  #view-weekly-logs .header-left { width: 100%; }
}

/* Card work behind the log (phase 1): the Cards closed column, its cues, and the
   list at the top of an opened row. Counted cards are bold numbers; automatic
   and test cards are muted and never summed in. */
.wl-c-cards { white-space: nowrap; }
.wl-cw-num { font-weight: 600; cursor: pointer; }
.wl-c-cards.zero .wl-cw-num { font-weight: 400; }
.wl-cw-auto, .wl-cw-none, .wl-cw-na { color: var(--text-dim); font-size: 11.5px; }
.wl-cw-none { font-size: 15px; }
.wl-cw-cue { margin-top: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: normal; }
.wl-cw-cue.under { color: var(--danger-text); }
.wl-cw-cue.none { color: var(--text-dim); font-weight: 500; }
.wl-cw { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.wl-cw-head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.wl-cw-head .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wl-cw-list { list-style: none; margin: 0 0 6px; padding: 0; }
.wl-cw-list li { padding: 3px 0; font-size: 13px; }
.wl-cw-list a { color: var(--accent); text-decoration: none; }
.wl-cw-list a:hover { text-decoration: underline; }
.wl-cw-day { color: var(--text-muted); font-size: 11.5px; margin-left: 8px; }
.wl-cw-okr { font-size: 10px; font-weight: 600; letter-spacing: .03em; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.wl-cw-note { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
/* "2/5 OKR" under the Priorities number, and the Monday panel of OKR projects that did not move. */
.wl-okr-chip { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; color: var(--accent); }
.wl-okr-chip.zero, .wl-okr-chip.na { color: var(--text-dim); font-weight: 500; }
.wl-okrflag .wl-cw-head { margin-bottom: 6px; }
.wl-okrflag-why { margin-left: 8px; font-size: 11.5px; color: var(--text-muted); }

/* Phone: the table collapses to stacked rows (name and x, status, the three
   counts on one line, posted). Nothing may push the page wider than the screen. */
@media (max-width: 720px) {
  .wl-team-card { padding: 2px 14px 4px; max-width: 100%; }
  .wl-table, .wl-table tbody, .wl-table tr, .wl-table td { display: block; width: 100%; box-sizing: border-box; }
  .wl-table thead { display: none; }
  .wl-person { padding: 14px 0; }
  .wl-person:hover, .wl-person.open { background: transparent; }
  .wl-table .wl-body-tr > td { background: transparent; }
  .wl-table .wl-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .wl-table .wl-tr > td { padding: 0; width: auto; }
  .wl-table .wl-tr > td:empty { display: none; }
  .wl-table .wl-c-person { order: 1; flex: 1 1 0; min-width: 0; }
  .wl-table .wl-c-act { order: 2; flex: 0 0 auto; }
  .wl-table .wl-c-status { order: 3; flex: 1 0 100%; }
  .wl-table .wl-tr > td.num { order: 4; flex: 0 0 auto; font-size: 12.5px; color: var(--text-muted); }
  .wl-table td.num::after { content: attr(data-unit); }
  .wl-table td.num.has-okr { display: flex; align-items: baseline; gap: 0 4px; }
  .wl-table td.num.has-okr::after { order: 1; }
  .wl-table td.num.has-okr .wl-okr-chip { order: 2; margin: 0 0 0 4px; }
  .wl-cw-num::after { content: attr(data-unit); font-weight: 400; }
  .wl-table td.num.stuck { color: var(--warn-text); }
  .wl-table .wl-c-posted { order: 5; flex: 1 0 100%; }
  .wl-table .wl-person.has-peek .wl-tr > td { padding-bottom: 0; }
  .wl-table .wl-peek-tr > td { padding: 8px 0 0; white-space: normal; overflow: visible; }
  .wl-peek-line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .wl-table .wl-body-tr > td { padding: 0 0 8px; }
  .wl-row-body { margin-top: 12px; }
  .wl-reply-note { flex: 1 0 100%; margin-left: 0; }
}

/* -------------------- thread -------------------- */
.wlog-weeks-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.wlog-weeks-heading h3 { margin: 0; }
.wlog-weeks-range, .wlog-weeks-summary { margin: 0; font: 12px/1.5 var(--font); color: var(--text-muted); }
.wlog-weeks-summary { margin-bottom: 12px; }
.wlog-week-list { list-style: none; margin: 0; padding: 0; min-width: 0; border-bottom: 1px solid var(--border); }
.wlog-week-row { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.wlog-week-toggle {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 16px;
  align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 8px 4px; margin: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  color: var(--text-muted); font: 13px/1.5 var(--font); text-align: left;
  cursor: pointer; touch-action: manipulation; scroll-margin-top: 12px;
  transition: background-color 180ms ease;
}
.wlog-week-toggle:disabled { cursor: default; opacity: 1; }
.wlog-week-date { font-variant-numeric: tabular-nums; transition: color 180ms ease; }
.wlog-week-info { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; }
.wlog-week-status { color: var(--text-muted); }
.wlog-week-toggle.lo .wlog-week-status { color: var(--warn-text); }
.wlog-week-note { display: block; margin: 0; color: var(--text-muted); font-size: 12px; }
.wlog-week-chevron {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(0deg); transition: transform 180ms ease;
}
.wlog-week-toggle[aria-expanded="true"] .wlog-week-chevron { transform: rotate(180deg); }
.wlog-week-toggle[aria-expanded="true"] .wlog-week-date { color: var(--accent-on); font-weight: 600; }
.wlog-week-toggle:enabled:is(:hover, :active) .wlog-week-date { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.wlog-week-toggle:focus-visible { outline: 2px solid var(--accent-on); outline-offset: -2px; }
.wlog-week-panel { min-width: 0; margin: 0; padding: 2px 0 8px; scroll-margin-top: 8px; }
.wlog-week-panel[hidden] { display: none; }
@media (max-width: 600px) {
  .wlog-weeks-heading { display: block; }
  .wlog-weeks-range { margin-top: 4px; }
  .wlog-week-toggle { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wlog-week-toggle, .wlog-week-toggle * { transition: none !important; }
}

.wlog-post { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; }
.wlog-post .who { font-weight: 600; }
.wlog-post .when { color: var(--text-muted); font-size: 11.5px; margin-left: 6px; }
.wlog-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); margin: 12px 0 2px; }
.wlog-lab.st { color: var(--warn-text); }
.wlog-line { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.wlog-line .t { flex: 1; }
/* History tab (Anthony, 2026-11-11): the same look as This week. Section titles stand out like a step's Top 3
   heading, all one colour; lines are bullets; a priority's answer stays small and grey after it. Tokens only. */
.wlog-hist .wlog-hist-head { margin: 16px 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--text); }
.wlog-hist .wlog-hist-head:first-child { margin-top: 4px; }
.wlog-hist .wlog-hist-list { margin: 0; padding-left: 20px; list-style: disc; }
.wlog-hist .wlog-hist-li { padding: 2px 0; font-size: 14px; line-height: 22px; color: var(--text); overflow-wrap: anywhere; }
.wlog-hist .wlog-hist-li::marker { color: var(--text-muted); }
.wlog-hist .wlog-hist-li.wlog-reply { margin: 0; padding: 2px 0; background: none; border: 0; }
.wlog-hist .wlog-hist-list + .wlog-hint, .wlog-hist .wlog-hist-head + .wlog-hint { margin: 2px 0 0; }
.wlog-ck { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border);
  vertical-align: -2px; flex: none; margin-top: 2px; }
.wlog-ck.done { background: var(--success); border-color: var(--success); }
.wlog-ck.partial { background: var(--warn); border-color: var(--warn); }
.wlog-ck.moved { background: var(--accent); border-color: var(--accent); }
.wlog-ck.waiting { background: var(--warn); border-color: var(--warn); }
.wlog-ck.need_help { background: var(--danger); border-color: var(--danger); }
.wlog-ck.still_going { background: var(--accent); border-color: var(--accent); }
.wlog-ck.dropped { background: #fff; border-color: var(--danger); }
.wlog-reply-btn { font-size: 11px; color: var(--accent); cursor: pointer; background: none; border: 0;
  font: inherit; white-space: nowrap; }
.wlog-reply { margin: 2px 0 4px 20px; padding: 6px 10px; border-left: 2px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 6px 6px 0; font-size: 12.5px; }
.wlog-reply b { color: var(--accent-on); }
.wlog-reply-box { margin: 4px 0 6px 20px; display: flex; gap: 6px; }
.wlog-reply-box input { flex: 1; }
.wlog-cancelled { text-decoration: line-through; opacity: .6; }

/* A week read from EG PM / Basecamp (no EG Hub post): text only, plus a link
   back to where it lives. */
.wlog-src-link { color: var(--accent); font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.wlog-src-link:hover { text-decoration: underline; }
.wlog-legacy .wlog-line .t { min-width: 0; overflow-wrap: anywhere; }
.wlog-legacy .when { margin-left: 0; display: block; margin-bottom: 4px; }

/* Sample 1: only the person thread (including its person-page tab). The My
   week editor and Team this week use their existing rows and list styles. */
.wlog-person-thread .wlog-thread-list { list-style-type: disc; margin: 0; padding: 3px 0 0 19px; }
.wlog-person-thread .wlog-thread-list > li { padding-left: 3px; margin: 0 0 10px; }
.wlog-person-thread .wlog-thread-list > li:last-child { margin-bottom: 0; }
.wlog-person-thread .wlog-thread-list > li::marker { color: var(--text-muted); font-size: .75em; }
.wlog-person-thread .wlog-line { padding: 0; }
.wlog-person-thread .wlog-line .t { min-width: 0; overflow-wrap: anywhere; }
.wlog-person-thread .t strong, .wlog-person-thread .t b { font-weight: 600; }
.wlog-person-thread .wlog-thread-action { list-style-type: disc; margin: 6px 0 0 18px;
  padding-left: 17px; color: var(--text-muted); font-size: 14px; overflow-wrap: anywhere; }
.wlog-person-thread .wlog-thread-action > li { padding-left: 2px; }
.wlog-person-thread .wlog-thread-action > li::marker { font-size: .75em; }
.wlog-person-thread .wlog-thread-details { list-style-type: disc; margin: 6px 0 0; padding-left: 19px;
  overflow-wrap: anywhere; }
.wlog-person-thread .wlog-thread-details > .wl-sub2 { margin-left: 16px; list-style-type: circle; }
.wlog-person-thread .wlog-thread-details > .wl-sub3 { margin-left: 32px; list-style-type: circle; }
@media (max-width: 600px) {
  .wlog-person-thread .wlog-thread-list { padding-left: 18px; }
  .wlog-person-thread .wlog-thread-action { margin-left: 12px; }
}
/* Per-line replies, "Sample C, thinner" (Jose, 2026-11-14). Only the Reply
   control, reply rows and box of a line in the person thread; the whole-log
   reply and the EG PM / Basecamp week box keep their own look. */
.wlog-person-thread .wlog-line { border-radius: 5px; transition: background-color 140ms ease; }
.wlog-person-thread .wlog-line .wlog-reply-btn { display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; flex: none; min-width: 40px; padding: 0 4px; margin-right: -4px; border-radius: 5px;
  font-size: 11px; line-height: 22px; font-variant-numeric: tabular-nums; color: var(--text-faint); opacity: .75;
  transition: color 140ms ease, background-color 140ms ease, opacity 140ms ease; }
.wlog-person-thread .wlog-reply-btn svg { display: block; width: 14px; height: 14px; flex: none; }
.wlog-person-thread .wlog-reply-btn[aria-expanded="true"],
.wlog-person-thread .wlog-line:focus-within .wlog-reply-btn { color: var(--accent-on); background: var(--accent-soft); opacity: 1; }
.wlog-person-thread .wlog-reply-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) {
  .wlog-person-thread .wlog-line:hover { background: var(--bg); }
  .wlog-person-thread .wlog-line:hover .wlog-reply-btn { color: var(--accent-on); opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .wlog-person-thread .wlog-line .wlog-reply-btn { opacity: 1; }
  .wlog-person-thread .wlog-line .wlog-reply-btn:not([aria-expanded="true"]) { color: var(--text-muted); }
}
.wlog-person-thread .wlog-replies { list-style: none; margin: 4px 0 0 20px; padding: 0; }
/* One line per reply; long text wraps under itself, never under the avatar. */
.wlog-person-thread .wlog-replies .wlog-reply { position: relative; display: block; margin: 0; padding: 2px 0 2px 26px;
  border: 0; border-radius: 0; background: transparent; font-size: 12.5px; line-height: 1.5; }
.wlog-person-thread .wlog-reply-av { position: absolute; left: 0; top: 3px; display: inline-flex; align-items: center;
  justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-on); font-size: 8px; font-weight: 600; letter-spacing: .02em; }
.wlog-person-thread .wlog-reply-av.is-writer { background: rgba(16, 185, 129, .14); color: var(--success-text); }
.wlog-person-thread .wlog-reply-who { margin-right: 8px; color: var(--text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.wlog-person-thread .wlog-reply-time { margin-right: 8px; color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.wlog-person-thread .wlog-reply-body { color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
/* The box is always in the page; it opens by growing its grid row, so the
   open/close animates and a draft survives. Closed = inert, out of tab order. */
.wlog-person-thread .wlog-reply-box[data-open] { display: grid; grid-template-rows: 0fr; margin: 0 0 0 20px;
  visibility: hidden; opacity: 0;
  transition: grid-template-rows 180ms ease, opacity 140ms ease, visibility 0s linear 180ms; }
.wlog-person-thread .wlog-reply-box[data-open="true"] { grid-template-rows: 1fr; visibility: visible; opacity: 1;
  transition: grid-template-rows 180ms ease, opacity 140ms ease, visibility 0s; }
.wlog-person-thread .wlog-reply-in { overflow: hidden; min-height: 0; padding: 0 3px; }
.wlog-person-thread .wlog-reply-box[data-open="true"] .wlog-reply-in { padding: 4px 3px 2px; }
.wlog-person-thread .wlog-reply-field { position: relative; display: flex; }
.wlog-person-thread .wlog-reply-field .wlog-input { box-sizing: border-box; flex: 1; min-width: 0; height: 30px;
  padding: 5px 34px 5px 12px; font-size: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-alt); }
.wlog-person-thread .wlog-reply-field .wlog-input::placeholder { color: var(--text-faint); }
.wlog-person-thread .wlog-reply-field .wlog-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wlog-person-thread .wlog-reply-send { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.wlog-person-thread .wlog-reply-send svg { display: block; width: 12px; height: 12px; }
.wlog-person-thread .wlog-reply-help { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.wlog-person-thread .wlog-reply-cancel { border: 0; border-radius: 3px; padding: 0 2px; background: transparent;
  color: var(--text-muted); font: inherit; cursor: pointer; }
.wlog-person-thread .wlog-reply-cancel:hover { color: var(--accent-on); text-decoration: underline; }
@media (max-width: 600px) {
  .wlog-person-thread .wlog-replies, .wlog-person-thread .wlog-reply-box[data-open] { margin-left: 0; }
}
@media (max-width: 430px) {
  .wlog-person-thread .wlog-line .wlog-reply-btn { min-width: 38px; min-height: 36px; margin-top: -7px; margin-bottom: -7px; }
  .wlog-person-thread .wlog-reply-field .wlog-input { font-size: 16px; }
  .wlog-person-thread .wlog-reply-cancel { padding: 5px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .wlog-person-thread .wlog-line, .wlog-person-thread .wlog-reply-btn, .wlog-person-thread .wlog-reply-box[data-open] { transition: none; }
}

.wlog-thread-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* -------------------- generic states -------------------- */
.wlog-empty { color: var(--text-muted); font-size: 13px; padding: 16px 0; }
.wlog-error { color: var(--danger-text); font-size: 13px; }

.plan-wlog-status { margin-top: 3px; }

/* -------------------- 393px phone width: no horizontal overflow -------------------- */
@media (max-width: 430px) {
  .wlog-page { padding: 8px 10px 32px; }
  .wlog-cols { grid-template-columns: minmax(0, 1fr); }
  .wlog-tiles { grid-template-columns: minmax(0, 1fr); }
  .wlog-table, .wlog-table thead, .wlog-table tbody, .wlog-table tr { display: block; width: 100%; }
  .wlog-table thead { display: none; }
  .wlog-table tr { border-top: 1px solid var(--border-soft); padding: 8px 0; }
  .wlog-table td { display: block; padding: 2px 0; border-top: 0; }
  .wlog-add-row { flex-direction: column; }
  .wlog-reply-box { margin-left: 8px; flex-direction: column; }
  .wlog-reply { margin-left: 8px; }
}

/* The warmer is stale or failing: amber, small, next to the age pill. */
.wl-warm-note { color: var(--warn-text); font-size: 11px; margin-right: 8px; }
.wl-warm-note:empty { display: none; }

/* My week: the optional detail / action-plan fields under a win or stuck, and
   the gentle past-15-words nudge (empty means no nudge, no space). */
.wlog-inline-input { display: inline-block; width: auto; max-width: 420px; min-width: 200px; }
.wlog-headline-hint { color: var(--warn-text); }
.wlog-headline-hint:empty { display: none; }

/* Weekly Log x EG PM cards, phase 2 */
.wlog-cand a { color: inherit; font-weight: 600; text-decoration: none; }
.wlog-cand a:hover { text-decoration: underline; }
.wlog-cand .wlog-src-chip { margin-right: 4px; }
.wlog-card[hidden] { display: none; }

/* Team this week: how last week's committed cards ended (Brian's five states) */
.wl-c-states { white-space: normal; min-width: 210px; font-size: 12px; line-height: 1.7; }
.wl-st { display: inline-block; margin-right: 8px; white-space: nowrap; color: var(--text); }
.wl-st b { font-weight: 600; }
.wl-st.zero { color: var(--text-dim); }
.wl-st.zero b { font-weight: 400; }
.wl-st.need-help:not(.zero) { color: var(--danger-text); }
.wl-st.waiting:not(.zero) { color: var(--warn-text); }
.wl-st-age { font-size: 10.5px; font-weight: 600; color: var(--danger-text); }
.wl-st-none { color: var(--text-dim); font-size: 11.5px; }
.wl-needs-what { color: var(--text-muted); }

/* -------------------- "This week on your objectives" (the weekly check-in block, step 4) -------------------- */
.ck-obj { padding: 10px 0; border-top: 1px solid var(--border-soft); }
.ck-obj:first-of-type { border-top: 0; padding-top: 2px; }
.ck-objtitle { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.ck-kr { padding: 8px 0 8px 10px; margin-top: 6px; border-left: 3px solid var(--accent); }
.ck-kr.ck-off { border-left-color: var(--border); opacity: .8; }
.ck-kr.ck-none { border-left-color: var(--border); padding-top: 4px; padding-bottom: 4px; }
.ck-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ck-title { font-size: 13px; }
.ck-seg { display: flex; gap: 4px; }
.ck-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 6px; }
.ck-lbl { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text-muted); }
.ck-val { width: 110px; }
.ck-st { width: auto; min-width: 140px; }
.ck-sum { flex: 1 1 240px; min-width: 200px; }
.ck-src { margin-top: 3px; }
.ck-src a { color: var(--accent-on); }
.ck-quiet { margin-top: 4px; }
.ck-quiet > summary { cursor: pointer; font-size: 11.5px; color: var(--text-muted); padding: 4px 0; }
.ck-warn { color: var(--warn-text); }
.wlog-chip.ck-warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.12); cursor: default; }
.ck-badnum { color: var(--danger-text); }

/* ==================== My week rework (Brian, 2026-10-21): less text, tooltips, clean rows ==================== */

/* Base layout without recommendations; Calm 2 overrides this with its persistent summary rail. */
.wlog-cols.solo { grid-template-columns: minmax(0, 1fr); }
.wlog-cols #wlog-recs:empty { display: none; }

/* The (i) after a heading. The glyph and its bubble are EG Plan's (.plan-info, plan.js wireTips). */
.wlog-info { margin-left: 5px; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; vertical-align: baseline; }
.wlog-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 50%; }
.wlog-tile-label .wlog-info { margin-left: 4px; }
.wlog-tiles .wlog-tile-value { font-size: 20px; line-height: 1.25; }
.wlog-tiles .wlog-card { margin-bottom: 0; }
.wlog-okr-share { margin: 8px 0 0; cursor: help; }
.wlog-prio-count { margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

/* A list that can be long scrolls in its own box instead of pushing the page down. */
.wlog-scroll { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.wlog-scroll-tall { max-height: 420px; padding-right: 4px; }

.wlog-chips-line { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; min-width: 0; }
.wlog-chips-line .wlog-src-chip { margin-left: 0; }
.wlog-chip-trunc { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---- Step 1: one line per priority, the card chip carries what used to be a second line ---- */
.wlog-closing-text { font-size: 13.5px; }
.wlog-closing-panel { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wlog-closing-confirm-all { margin: 0 0 8px; display: flex; justify-content: flex-end; }
.wlog-closing-done .wlog-hint { margin: 2px 0 4px 18px; }
.wlog-closing-done .wlog-closing { margin-left: 18px; }
.wlog-closing-who { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---- A list of closed or parked cards (Stucks: "parked" cards) ---- */
/* A drawn chevron (the font's triangle glyph rendered as a speck). Right = closed, down = open. */
.wlog-other > summary::before { content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .12s; }
.wlog-other[open] > summary::before { transform: rotate(45deg); }
.wlog-cwin { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.wlog-cwin-main { flex: 1 1 auto; min-width: 0; font-size: 12.5px; }
.wlog-cwin-title { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.wlog-cwin-title:hover { text-decoration: underline; }
.wlog-cwin-main .wlog-src-chip { margin-left: 6px; }
.wlog-cwin .wlog-btn { flex: none; }
.wlog-other { margin-top: 8px; border-top: 1px solid var(--border-soft); padding-top: 6px; }
.wlog-other > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-muted); padding: 4px 0; list-style: none; }
.wlog-other > summary::-webkit-details-marker { display: none; }
.wlog-other > summary::before { margin: 0 10px 2px 7px; }
.wlog-other > summary .wlog-src-chip { margin-left: 2px; }
.wlog-other .wlog-scroll { margin: 2px 0 4px 18px; }

/* Wins and stucks: the text, then its fields as full-width inputs (labels live in the placeholders). */
.wlog-row.wlog-win, .wlog-row.wlog-stuck { display: block; }
.wlog-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wlog-row-head .wlog-win-head { flex: 1 1 auto; min-width: 0; }
.wlog-row-head .wlog-btn { flex: none; }
.wlog-win-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 0; }
.wlog-win-head .wlog-hint { flex-basis: 100%; }
.wlog-win-text { font-size: 13.5px; overflow-wrap: anywhere; }
/* Drag a win between the top 3 and Other wins (Anthony, 2026-10-30). */
.wlog-win-num { flex: 0 0 auto; min-width: 18px; margin-right: 6px; font-weight: 600; opacity: .7; }
.wlog-row.wlog-win.is-draggable { cursor: grab; touch-action: none; }
.wlog-row.wlog-win.is-dragging { opacity: .45; cursor: grabbing; }
.wlog-win-group { min-height: 8px; border-radius: 8px; }
.wlog-win-group.drop-into { outline: 2px dashed var(--accent-fill); outline-offset: 2px; background: var(--accent-soft); }
/* No hover bubble while a row is being dragged (it would sit over the rows you are dropping between). */
body.wlog-dragging .plan-tip-bubble { visibility: hidden; }
.wlog-win-detail { margin-top: 5px; display: block; }
.wlog-stuck-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; margin-top: 6px; }

/* ---- Step 4: a priority is one calm row: text, then quiet Link a card / More / Remove ---- */
.wlog-row.wlog-prio { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 0; }
.wlog-prio-text { min-width: 0; resize: none; overflow: hidden; min-height: 32px; line-height: 1.35; field-sizing: content; }
.wlog-prio-actions { display: inline-flex; align-items: center; justify-self: end; gap: 4px; }
.wlog-prio-pop { position: relative; display: inline-flex; }
.wlog-prio-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; width: 248px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px var(--border-soft); }
.wlog-prio-panel[hidden] { display: none; }
.wlog-prio-panel .wlog-btn { text-align: left; white-space: normal; }
.wlog-prio-stretch { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px; font-size: 12px; color: var(--text); cursor: pointer; }
.wlog-prio-stretch input { margin: 0; }
.wlog-prio-move { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.wlog-prio-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.wlog-prio-meta .wlog-src-chip { margin-left: 0; }
.wlog-prio-state { font-size: 11px; line-height: 16px; color: var(--text-muted); }
.wlog-card-chip { max-width: min(100%, 300px); }
.wlog-prio-obj { display: block; width: 100%; padding: 3px 8px; font-size: 12px; }
@media (max-width: 560px) {
  .wlog-row.wlog-prio { grid-template-columns: minmax(0, 1fr); }
  .wlog-prio-text { grid-column: 1 / -1; }
  .wlog-prio-actions { justify-self: stretch; margin-left: -8px; }
  .wlog-prio-remove { margin-left: auto; }
  .wlog-prio-panel { left: 0; right: auto; max-width: calc(100vw - 48px); }
  .wlog-card-chip { max-width: 100%; }
}

/* ---- the objectives block: sources are small chips, the sentence is the tooltip ---- */
.ck-srcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ck-srcs .wlog-src-chip { margin-left: 0; }
.ck-srcchip { text-decoration: none; }
a.ck-srcchip { color: var(--accent-on); }
a.ck-srcchip:hover { text-decoration: underline; }
.ck-head .wlog-src-chip { margin-left: 0; align-self: center; }
.ck-head .wlog-chip, .ck-head .wlog-btn { align-self: center; }

/* ---- Post refused: the row is outlined and a banner says what it is ---- */
.wlog-problem { outline: 2px solid var(--danger); outline-offset: 3px; border-radius: 8px; background: rgba(239, 68, 68, 0.07); }
.wlog-problem.ck-kr { outline-offset: 2px; }
.wlog-problem-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; padding: 8px 12px;
  border: 1px solid var(--danger); border-left-width: 4px; border-radius: 8px; background: rgba(239, 68, 68, 0.08); }
.wlog-problem-text { flex: 1 1 240px; font-size: 13px; font-weight: 600; color: var(--danger-text); min-width: 0; overflow-wrap: anywhere; }
.wlog-problem-banner .wlog-hint { margin: 0; }
.wlog-step.has-problem { border-color: var(--danger); color: var(--danger-text); }
.wlog-step.has-problem::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--danger); vertical-align: middle; }
.wlog-step.cur.has-problem { color: #fff; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }

/* Last week's priorities as squares (Brian, 2026-11-02, "priorities as cards" mockup). */
.wl-sqs { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.wl-sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--border); vertical-align: middle; }
.wl-sq-done { background: var(--success); }
.wl-sq-going { background: #3b6fd4; }
.wl-sq-wait { background: var(--warn); }
.wl-sq-help { background: var(--danger); }
.wl-sq-drop { background: var(--text-dim); }
.wl-sq-none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.wl-sq.slip { box-shadow: 0 0 0 1.5px var(--bg-raised, #fff), 0 0 0 3px var(--danger); }
.wl-sq-score { font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: middle; }
.wl-sq-note, .wl-sq-slip { display: inline-block; margin-left: 6px; font-size: 10.5px; color: var(--text-dim); vertical-align: middle; }
.wl-sq-slip { color: var(--danger-text); font-weight: 600; }
.wl-pr-list .wl-sq { margin-right: 6px; }

/* Small celebrations (Anthony, 2026-11-10): balloons from Next (~1 s), confetti from Post (under 2 s).
 * His one approved exception to "no flashy effects" for the weekly log. Never blocks clicks. Plays with reduce motion on too (Anthony, 2026-11-10). */
.wlog-celebrate { position: fixed; pointer-events: none; overflow: visible; z-index: var(--eg-z-toast, 9000); contain: layout style; }
.wlog-balloon { position: absolute; bottom: 60%; width: 11px; height: 14px; margin-left: -5px; border-radius: 50% 50% 48% 48%;
  background: color-mix(in srgb, var(--c) 82%, var(--bg)); opacity: 0;
  animation: wlog-balloon-rise 900ms cubic-bezier(.22, .61, .36, 1) var(--delay, 0ms) forwards; }
.wlog-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px;
  background: color-mix(in srgb, var(--c) 50%, var(--bg)); }
@keyframes wlog-balloon-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.7); }
  20% { opacity: .95; transform: translate(calc(var(--drift) * .2), calc(var(--rise) * -.2)) scale(1); }
  70% { opacity: .85; }
  100% { opacity: 0; transform: translate(var(--drift), calc(var(--rise) * -1)) scale(1); }
}
.wlog-confetto { position: absolute; top: 20%; width: 5px; height: 8px; border-radius: 1px;
  background: color-mix(in srgb, var(--c) 80%, var(--bg)); opacity: 0;
  animation: wlog-confetti-burst 1700ms cubic-bezier(.2, .7, .3, 1) var(--delay, 0ms) forwards; }
@keyframes wlog-confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  30% { opacity: 1; transform: translate(calc(var(--dx) * .75), var(--up)) rotate(calc(var(--rot) * .4)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--up) + var(--fall))) rotate(var(--rot)); }
}

/* Saved win groups and objective tags on History and manager reports. */
.wlog-reader-okr { display: table; max-width: 100%; margin-top: 4px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--accent-soft);
  color: var(--accent-on); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.wlog-reader-heading { margin: 16px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.wlog-reader-heading:first-child { margin-top: 0; }
.wlog-hist .wlog-hist-li:has(>.wlog-reader-okr) { padding: 4px 0; }
.wlog-person-thread .wlog-thread-list > li { margin-bottom: 8px; }

.wlog-hist ol.wlog-hist-list { list-style: decimal; }

/* Dates stay readable without crowding the weekly editor. The calm frame's 11px hint size is too small
   for the dates (taste review: no text under 12px), so the message keeps 12px inside it too. */
.wlog-week-message, .wlog-myweek-calm .wlog-hint.wlog-week-message { font-size: 12px; line-height: 20px; }
.wlog-week-message p { margin: 8px 0; }
.wlog-myweek-calm .wlog-week-message .wlog-btn.sm { font-size: 12px; }

/* Settings, Schedule: Last workday + Time side by side, Manila time beside them; they wrap on a phone. */
.wlog-sched-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.wlog-sched-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.wlog-sched-field .wlog-select { width: auto; min-width: 140px; max-width: 100%; color: var(--text); }
.wlog-sched-field .wlog-select:disabled { opacity: .6; cursor: not-allowed; }
.wlog-sched-manila { font-size: 12px; line-height: 20px; padding-bottom: 8px; color: var(--text-muted); }
.wlog-sched-manila[hidden] { display: none; }
.wlog-sched-off { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 14px; color: var(--text); cursor: pointer; }
.wlog-sched-off input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

/* My week: Calm 2 - approved round-3 sample. The frame is shared by all My week tabs;
   content overrides stay inside This week.
   Tokens come from :root, html[data-theme="dark"], and html:not([data-theme])
   inside the prefers-color-scheme: dark media query in style.css. */
.wlog-page.wlog-myweek-frame { max-width: 1264px; min-width: 0; width: 100%; box-sizing: border-box; margin: 0; padding: 0 var(--eg-space-5, 24px) 16px; container: wlogweek / inline-size; }
/* A gap between the menu and the text (Anthony, 2026-11-10: "it looks like it's right against the edge"). */
@media (max-width:760px) { .wlog-page.wlog-myweek-frame { padding: 0 var(--eg-space-4, 16px) 16px; } }
.wlog-page.wlog-myweek-calm { font: 13px/1.45 var(--font); }
.wlog-page.wlog-myweek-calm [hidden] { display: none !important; }
.wlog-page.wlog-myweek-calm a[role="link"] { cursor: pointer; }
.wlog-myweek-calm .wlog-cols, .wlog-myweek-calm .wlog-cols.solo { grid-template-columns: minmax(0,1fr); gap: 0; }
.wlog-myweek-calm .wlog-cols>div { min-width: 0; }
.wlog-myweek-frame>.wlog-tabs { margin: 0 0 8px; gap: 24px; }
.wlog-myweek-frame>.wlog-tabs>.wlog-tab { padding: 8px 0; font-size: 12px; line-height: 16px; }
.wlog-myweek-calm .wlog-header { margin: 0 0 8px; gap: 8px; align-items: center; }
.wlog-myweek-calm .wlog-header h2 { font-size: 24px; line-height: 32px; letter-spacing: -.6px; font-weight: 650; }
.wlog-myweek-calm .wlog-sub { font-size: 12px; line-height: 16px; margin: 0; }
.wlog-myweek-calm .wlog-toggle { font-size: 11px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-tile-label { font-size: 11px; line-height: 16px; text-transform: none; letter-spacing: 0; }
.wlog-myweek-calm #wlog-draft-hint:empty { display: none; }
.wlog-myweek-calm .wlog-info { color: var(--text-faint); font-size: 11px; margin-left: 8px; }
.wlog-myweek-calm .wlog-stepper { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0 0 16px; }
.wlog-myweek-calm .wlog-step, .wlog-myweek-calm .wlog-step.done { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid var(--border-soft); border-radius: 0; padding: 8px 0; font-size: 12px; line-height: 16px; min-height: 34px; text-align: left; background: transparent; color: var(--text-muted); }
.wlog-myweek-calm .wlog-step.cur { border-bottom-color: var(--text); color: var(--text); font-weight: 600; background: transparent; }
.wlog-myweek-calm .step-number { font-size: 11px; font-variant-numeric: tabular-nums; }
.wlog-myweek-calm .wlog-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; margin: 0 0 8px; }
.wlog-myweek-calm .wlog-card h4, .wlog-myweek-calm .calm-section h4 { font-size: 16px; line-height: 24px; letter-spacing: -.2px; text-transform: none; color: var(--text); font-weight: 600; margin: 0 0 8px; }
.wlog-myweek-calm #wlog-step-body>.wlog-card>h4:not(:first-child) { margin-top: 16px !important; }
.wlog-myweek-calm .wlog-row { padding: 8px 0; gap: 8px; border-top: 1px solid var(--border-soft); }
.wlog-myweek-calm .wlog-closing-text, .wlog-myweek-calm .wlog-win-text { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.wlog-myweek-calm .wlog-grow { min-width: 0; }
.wlog-myweek-calm .wlog-hint { font-size: 11px; line-height: 16px; margin-top: 0; color: var(--text-muted); }
.wlog-myweek-calm .wlog-hint:empty { display: none; }
.wlog-myweek-calm .wlog-src-chip, .wlog-myweek-calm .wlog-chip[data-stuck-age] { background: transparent; border: 0; padding: 0; margin: 0; color: var(--text-muted); font-size: 10px; line-height: 16px; font-weight: 400; border-radius: 0; }
.wlog-myweek-calm .wlog-chip-trunc { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
.wlog-myweek-calm .wlog-chips-line { display: flex; gap: 8px; margin: 0; line-height: 16px; }
.wlog-myweek-calm .wlog-chips-line .wlog-src-chip { margin: 0; }
.wlog-myweek-calm .wlog-chips-line .wlog-src-chip+.wlog-src-chip::before { content: '·'; margin-right: 8px; color: var(--text-faint); }
.wlog-myweek-calm .wlog-btn { padding: 0 16px; min-height: 32px; font-size: 12px; line-height: 24px; border-radius: 4px; box-shadow: none; }
.wlog-myweek-calm .wlog-btn.sm { padding: 0 8px; min-height: 24px; line-height: 24px; font-size: 11px; border: 0; background: transparent; color: var(--text-muted); }
.wlog-myweek-calm .wlog-btn.sm:hover { color: var(--accent-on); background: var(--accent-soft); }
.wlog-myweek-calm .wlog-btn.pri { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.wlog-myweek-calm .wlog-btn.pri:hover { background: var(--btn-primary-bg-hover); border-color: var(--btn-primary-bg-hover); }
.wlog-myweek-calm .wlog-btn:focus-visible, .wlog-myweek-calm .wlog-chip:focus-visible, .wlog-myweek-calm .wlog-step:focus-visible, .wlog-myweek-calm summary:focus-visible, .wlog-myweek-calm .wlog-toggle:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.wlog-myweek-calm .wlog-input, .wlog-myweek-calm .wlog-select, .wlog-myweek-calm .wlog-textarea, .wlog-myweek-calm .wlog-dropped-reason { font-family: inherit; font-size: 12px; line-height: 20px; padding: 3px 8px; min-height: 28px; max-width: 100%; min-width: 0; background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 4px; color: var(--text); }
.wlog-myweek-calm .wlog-input:focus, .wlog-myweek-calm .wlog-select:focus, .wlog-myweek-calm .wlog-textarea:focus, .wlog-myweek-calm .wlog-dropped-reason:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent-fill); }
.wlog-myweek-calm .wlog-input::placeholder, .wlog-myweek-calm .wlog-dropped-reason::placeholder { color: var(--text-faint); }
.wlog-myweek-calm textarea.wlog-input, .wlog-myweek-calm textarea.wlog-dropped-reason { display: block; field-sizing: content; resize: none; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; overflow-y: auto; max-height: 240px; margin: 0; }
/* An empty box never scrolls. Zoomed in (Cmd +), WebKit sizes an empty box's placeholder wider than the box and,
   with scroll bars set to always show, drew a gray scroll bar over the placeholder (Anthony, 2026-11-03). Text
   wraps, so sideways scrolling is never wanted either. */
.wlog-myweek-calm textarea.wlog-input:placeholder-shown, .wlog-myweek-calm textarea.wlog-dropped-reason:placeholder-shown { overflow: hidden; }
.wlog-myweek-calm .wlog-closing { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; }
.wlog-myweek-calm .wlog-closing-text { display: block; }
.wlog-myweek-calm .closing-meta { display: flex; align-items: baseline; gap: 8px; min-height: 16px; font-size: 10px; line-height: 16px; color: var(--text-muted); }
.wlog-myweek-calm .closing-meta>span { white-space: nowrap; }
.wlog-myweek-calm .closing-meta>span+span::before { content: '·'; margin-right: 8px; color: var(--text-faint); }
.wlog-myweek-calm .wlog-closing-panel { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 0; align-items: start; margin: 0; width: 100%; min-width: 0; }
.wlog-myweek-calm .wlog-closing-panel .wlog-dropped-reason { width: 100%; min-height: 28px; background: transparent; border-color: var(--border-soft); border-radius: 4px 0 0 4px; padding: 3px 8px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-closing-panel .wlog-dropped-reason:focus { background: var(--bg-alt); border-color: var(--accent); outline-offset: 2px; }
.wlog-myweek-calm .wlog-closing-panel [data-drop-save] { min-width: 56px; min-height: 28px; align-self: stretch; border: 1px solid var(--border-soft); border-left: 0; border-radius: 0 4px 4px 0; background: var(--bg-raised); }
.wlog-myweek-calm .wlog-closing-who { grid-column: 1/-1; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; font-size: 11px; line-height: 24px; min-width: 0; max-width: 100%; }
.wlog-myweek-calm .wlog-inline-input { width: 240px; max-width: 100%; min-width: 0; min-height: 24px; padding: 0 8px; line-height: 22px; font-size: 11px; }
.wlog-myweek-calm .wlog-chips { gap: 0; align-items: center; }
.wlog-myweek-calm .wlog-chips .wlog-chip[data-outcome-chip] { border: 0; border-radius: 4px; background: transparent; color: var(--text-muted); font-size: 11px; line-height: 24px; padding: 0 8px; min-height: 24px; font-weight: 400; }
.wlog-myweek-calm .wlog-chips .wlog-chip[data-outcome-chip][aria-checked="true"] { background: var(--accent-soft); color: var(--accent-on); font-weight: 600; }
.wlog-myweek-calm .wlog-chips .wlog-chip[data-outcome-chip]:hover { background: var(--bg-raised); }
.wlog-myweek-calm .answer-menu { position: relative; justify-self: end; max-width: 100%; font-size: 11px; }
.wlog-myweek-calm .answer-menu>.answer-toggle { list-style: none; cursor: pointer; background: var(--bg-raised); color: var(--text); border-radius: 12px; padding: 0 8px; line-height: 24px; min-height: 24px; font-weight: 500; white-space: nowrap; }
.wlog-myweek-calm .answer-menu .wlog-chips { position: absolute; right: 0; top: 32px; z-index: 10; width: 224px; display: flex; flex-direction: column; align-items: stretch; padding: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px var(--border-soft); }
.wlog-myweek-calm .answer-menu .wlog-chips .wlog-chip { text-align: left; line-height: 32px; min-height: 32px; white-space: normal; }
.wlog-myweek-calm .wlog-rec, .wlog-myweek-calm .wlog-rec.warn { font-size: 11px; line-height: 16px; color: var(--text-muted); background: none; border: 0; border-radius: 4px; padding: 0; margin: 0; }
.wlog-myweek-calm .wlog-recs { min-width: 0; }
.wlog-myweek-calm .wlog-row.wlog-win, .wlog-myweek-calm .wlog-row.wlog-stuck { padding: 8px 0; }
.wlog-myweek-calm .wlog-win-head { gap: 0 8px; align-items: baseline; }
.wlog-myweek-calm .wlog-win-head>.wlog-src-chip { margin: 0; }
.wlog-myweek-calm .wlog-win-num { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-right: 0; }
.wlog-myweek-calm .wlog-win-detail { margin-top: 8px !important; }
.wlog-myweek-calm .wlog-okr-drift { margin: 0 0 8px; }
.wlog-myweek-calm .wlog-headline-hint { margin: 0; }
.wlog-myweek-calm .wlog-stuck-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 200px; gap: 8px; margin-top: 8px; }
.wlog-myweek-calm .wlog-stuck-fields:has(>.calm-field:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.wlog-myweek-calm .calm-field { display: flex; flex-direction: column; gap: 0; min-width: 0; font-size: 10px; line-height: 16px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-win-head>.wlog-chip { background: var(--bg-raised); color: var(--text-muted); border: 0; padding: 0 8px; line-height: 24px; font-size: 11px; }
.wlog-myweek-calm .wlog-add-row { margin-top: 8px; gap: 8px; }
.wlog-myweek-calm .wlog-add-row .wlog-input { min-width: 0; }
.wlog-myweek-calm .wlog-cwin { padding: 8px 0; }
.wlog-myweek-calm .wlog-scroll, .wlog-myweek-calm .wlog-scroll-tall { max-height: 280px; overflow: auto; padding-right: 8px; }
.wlog-myweek-calm .wlog-cand { align-items: center; flex-wrap: nowrap; }
.wlog-myweek-calm .wlog-cand a { font-size: 13px; font-weight: 600; line-height: 20px; }
.wlog-myweek-calm .wlog-cand>.wlog-btn { flex: none; }
.wlog-myweek-calm .wlog-row.wlog-prio { padding: 8px 0; gap: 0 8px; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.wlog-myweek-calm .wlog-prio-text { font-size: 14px; font-weight: 600; line-height: 20px; min-height: 28px; padding: 3px 0; background: transparent; border-color: transparent; }
.wlog-myweek-calm .wlog-prio-text:hover { border-bottom-color: var(--border); }
.wlog-myweek-calm .wlog-prio-stretch { font-size: 12px; gap: 8px; }
.wlog-myweek-calm .wlog-prio-panel .wlog-btn.sm { min-height: 32px; line-height: 32px; font-size: 12px; color: var(--text); }
.wlog-myweek-calm .wlog-prio-state { font-size: 10px; line-height: 16px; }
.wlog-myweek-calm .wlog-prio-meta { margin: 0; gap: 8px; line-height: 24px; }
.wlog-myweek-calm .wlog-prio-obj { width: 100%; max-width: 100%; min-height: 32px; padding: 0 8px; font-size: 12px; line-height: 30px; background: transparent; }
.wlog-myweek-calm .wlog-prio-count { font-size: 11px; color: var(--text-muted); }
.wlog-myweek-calm .calm-section { margin-top: 8px; border-top: 1px solid var(--border); }
.wlog-myweek-calm .calm-section>summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 0; min-height: 40px; }
.wlog-myweek-calm .calm-section>summary::-webkit-details-marker { display: none; }
.wlog-myweek-calm .calm-section>summary::before { content: '›'; font-size: 18px; line-height: 24px; color: var(--text-muted); }
.wlog-myweek-calm .calm-section[open]>summary::before { transform: rotate(90deg); }
.wlog-myweek-calm .calm-section>summary h4 { font-size: 14px; line-height: 24px; margin: 0; }
.wlog-myweek-calm .section-count { color: var(--text-muted); font-size: 11px; line-height: 16px; }
.wlog-myweek-calm #wlog-checkin { margin: 0; padding: 0; }
.wlog-myweek-calm .ck-obj { padding: 8px 0; border-top: 1px solid var(--border); }
.wlog-myweek-calm .ck-objtitle { font-size: 14px; line-height: 20px; margin: 0 0 8px; }
.wlog-myweek-calm .ck-kr { border-left: 0; border-top: 1px solid var(--border-soft); padding: 8px 0; margin: 8px 0 0; }
.wlog-myweek-calm .ck-title { font-size: 13px; line-height: 20px; }
.wlog-myweek-calm .ck-edit { display: grid; grid-template-columns: 112px 160px minmax(0,1fr); gap: 8px; margin-top: 8px; }
.wlog-myweek-calm .ck-val, .wlog-myweek-calm .ck-st, .wlog-myweek-calm .ck-sum { min-width: 0; width: 100%; max-width: 100%; }
.wlog-myweek-calm .ck-lbl { font-size: 10px; gap: 0; }
.wlog-myweek-calm .ck-head { gap: 8px; }
.wlog-myweek-calm .ck-seg { gap: 0; }
.wlog-myweek-calm .ck-seg .wlog-chip { border: 0; background: none; color: var(--text-muted); line-height: 24px; padding: 0 8px; }
.wlog-myweek-calm .ck-seg .wlog-chip.on-done { background: var(--accent-soft); color: var(--accent-on); }
.wlog-myweek-calm .ck-off { opacity: 1; }
.wlog-myweek-calm .ck-srcs { margin-top: 8px; gap: 8px; }
.wlog-myweek-calm .ck-none { padding-left: 0; }
.wlog-myweek-calm #wlog-main-nav { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); gap: 8px; }
.wlog-myweek-calm #wlog-main-nav>.pri { margin-left: auto; order: 3; }
.wlog-myweek-calm #wlog-main-nav>.wlog-save-state:empty { display: none; }
.wlog-myweek-calm #wlog-main-nav>.wlog-btn:not(.pri) { background: transparent; border-color: transparent; color: var(--text-muted); }
@media (max-width:1100px) {
}
@media (max-width:760px) {
  .wlog-myweek-calm .wlog-header h2 { font-size: 22px; line-height: 32px; }
  .wlog-myweek-calm .wlog-toggle { font-size: 10px; }
  .wlog-myweek-calm .wlog-stepper { gap: 8px; margin-bottom: 8px; }
  .wlog-myweek-calm .wlog-step { font-size: 10px; line-height: 16px; gap: 4px; align-items: flex-start; min-height: 50px; }
  .wlog-myweek-calm .step-number { font-size: 10px; }
  .wlog-myweek-calm .wlog-closing { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .wlog-myweek-calm .wlog-closing-text, .wlog-myweek-calm .wlog-win-text, .wlog-myweek-calm .wlog-prio-text { font-size: 16px; line-height: 24px; }
  .wlog-myweek-calm #wlog-recs .wlog-rec-title { font-size: 14px; line-height: 20px; }
  .wlog-myweek-calm .wlog-step-title { font-size: 20px; line-height: 28px; }
  .wlog-myweek-calm .wlog-closing-panel { grid-column: 1; }
  .wlog-myweek-calm .closing-meta { flex-wrap: wrap; gap: 0 8px; }
  .wlog-myweek-calm .wlog-closing-who { flex-wrap: wrap; }
  .wlog-myweek-calm .wlog-inline-input { width: 220px; }
  .wlog-myweek-calm .answer-menu { justify-self: start; }
  .wlog-myweek-calm .answer-menu .wlog-chips { left: 0; right: auto; max-width: calc(100vw - 48px); }
  .wlog-myweek-calm .wlog-stuck-fields, .wlog-myweek-calm .wlog-stuck-fields:has(>.calm-field:nth-child(2):last-child) { grid-template-columns: minmax(0,1fr); }
  .wlog-myweek-calm .wlog-input, .wlog-myweek-calm .wlog-select, .wlog-myweek-calm .wlog-dropped-reason { font-size: 16px; line-height: 24px; min-height: 32px; }
  .wlog-myweek-calm .wlog-closing-panel .wlog-dropped-reason { min-height: 32px; }
  .wlog-myweek-calm .wlog-win-detail { font-size: 16px; }
  .wlog-myweek-calm .wlog-row-head { gap: 8px; }
  .wlog-myweek-calm .wlog-btn.sm { min-height: 32px; line-height: 32px; }
  .wlog-myweek-calm .wlog-chips-line { gap: 0 8px; }
  .wlog-myweek-calm .wlog-chips-line .wlog-src-chip { white-space: normal; }
  .wlog-myweek-calm .wlog-cand { align-items: flex-start; }
  .wlog-myweek-calm .wlog-cand a { font-size: 13px; }
  .wlog-myweek-calm .wlog-scroll, .wlog-myweek-calm .wlog-scroll-tall { max-height: 280px; }
  .wlog-myweek-calm .wlog-row.wlog-prio { grid-template-columns: minmax(0,1fr); gap: 0 8px; }
  .wlog-myweek-calm .wlog-prio-text { grid-column: 1/-1; font-size: 16px; line-height: 20px; }
  .wlog-myweek-calm .wlog-prio-meta { grid-column: 1/-1; }
  .wlog-myweek-calm .wlog-prio-obj { width: 100%; font-size: 16px; }
  .wlog-myweek-calm .wlog-prio-panel .wlog-btn.sm { min-height: 44px; line-height: 44px; }
  .wlog-myweek-calm .wlog-prio-stretch { min-height: 44px; }
  .wlog-myweek-calm .ck-head { flex-wrap: wrap; }
  .wlog-myweek-calm .ck-edit { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .wlog-myweek-calm .ck-edit>.ck-sum { grid-column: 1/-1; }
  .wlog-myweek-calm .ck-srcs .wlog-src-chip { white-space: normal; }
  .wlog-myweek-calm .calm-section>summary { flex-wrap: wrap; gap: 0 8px; }
  .wlog-myweek-calm .section-count { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .wlog-myweek-calm * { transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width:761px) {
  .wlog-myweek-calm .wlog-header { justify-content: flex-start; column-gap: 32px; }
  .wlog-myweek-calm .wlog-closing { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .wlog-myweek-calm .wlog-closing>.wlog-grow { flex: 0 1 auto; max-width: 100%; }
  .wlog-myweek-calm .wlog-closing>.wlog-closing-panel { flex-basis: 100%; }
  .wlog-myweek-calm .answer-menu { justify-self: start; flex: none; }
  .wlog-myweek-calm .answer-menu .wlog-chips { left: 0; right: auto; }
  .wlog-myweek-calm .wlog-row-head { justify-content: flex-start; gap: 8px; }
  .wlog-myweek-calm .wlog-row-head .wlog-win-head { flex: 0 1 auto; }
  .wlog-myweek-calm .wlog-cwin-main { flex: 0 1 auto; }
  .wlog-myweek-calm .wlog-cand { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 8px; align-items: center; }
  .wlog-myweek-calm .wlog-cand>.wlog-grow { display: contents; }
  .wlog-myweek-calm .wlog-cand .wlog-grow>a { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; }
  .wlog-myweek-calm .wlog-cand .wlog-chips-line { order: 2; flex-basis: 100%; flex-wrap: wrap; }
  .wlog-myweek-calm .wlog-cand>.wlog-btn { order: 1; }
  .wlog-myweek-calm .wlog-row.wlog-prio { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 8px; }
  .wlog-myweek-calm .wlog-prio-text { flex: 0 1 auto; width: auto; min-width: 0; max-width: calc(100% - 200px); field-sizing: content; }
  .wlog-myweek-calm .wlog-prio-meta { flex-basis: 100%; justify-content: flex-start; }
  .wlog-myweek-calm .wlog-prio-obj { flex: none; }
}

/* One column (Anthony, 2026-11-10: "remove the side panel"). Draft my week, the draft dates, last week's score
   and Out this week sit in one quiet bar at the top; the step uses the full width; recommendations sit at
   the bottom of the step they are about. Each step opens with a big heading and one plain instruction. */
.wlog-myweek-calm #wlog-my-week-content { display: block; min-width: 0; }
.wlog-myweek-calm .wlog-cols, .wlog-myweek-calm .wlog-cols>div { display: block; min-width: 0; }
.wlog-myweek-calm .wlog-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; line-height: 16px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-bar-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.wlog-myweek-calm .wlog-topbar>.wlog-bar-item+.wlog-bar-item { margin-right: auto; }
.wlog-myweek-calm .wlog-bar-item .wlog-tile-label { font-size: 12px; line-height: 16px; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.wlog-myweek-calm .wlog-bar-item .wlog-tile-value { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text); margin: 0; }
.wlog-myweek-calm .wlog-bar-item .wlog-hint { font-size: 11px; line-height: 16px; margin: 0; }
.wlog-myweek-calm #wlog-draft-tile, .wlog-myweek-calm #wlog-lastweek-tile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.wlog-myweek-calm .wlog-topbar #wlog-draft-hint { order: 11; flex-basis: 100%; margin: 0; }
.wlog-myweek-calm #wlog-draft-hint:empty { display: none; }
.wlog-myweek-calm .wlog-topbar #wlog-ooo-toggle { font-family: inherit; padding: 0; border: 0; background: transparent; font-size: 12px; line-height: 16px; min-height: 32px; color: var(--text-muted); }
/* Draft my week is a plain button; it is the one primary only while nothing is drafted or written yet. */
.wlog-myweek-calm #wlog-draft-btn { margin: 0; min-height: 32px; padding: 0 12px; font-size: 12px; line-height: 16px; border: 1px solid var(--btn-secondary-border); background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); }
.wlog-myweek-calm #wlog-draft-btn:hover { background: var(--btn-secondary-bg-hover); }
.wlog-myweek-calm #wlog-draft-btn.pri { border-color: var(--btn-primary-bg); background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.wlog-myweek-calm #wlog-draft-btn.pri:hover { background: var(--btn-primary-bg-hover); }
.wlog-myweek-calm .wlog-step-intro { margin: 0 0 16px; }
.wlog-myweek-calm .wlog-step-intro:empty { display: none; }
.wlog-myweek-calm .wlog-step-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -.3px; color: var(--text); }
.wlog-myweek-calm .wlog-step-lead { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
/* Section names inside a step are quiet labels; the rows under them are what the eye lands on. */
.wlog-myweek-calm #wlog-step-body .wlog-card>h4, .wlog-myweek-calm #wlog-recs h4 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin: 0 0 4px; }
.wlog-myweek-calm #wlog-step-body>.wlog-card>h4:not(:first-child) { margin-top: 24px !important; }
.wlog-myweek-calm .wlog-closing-text, .wlog-myweek-calm .wlog-win-text, .wlog-myweek-calm .wlog-prio-text { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); }
.wlog-myweek-calm [data-win-group="other"] .wlog-win-text, .wlog-myweek-calm .wlog-ideas .wlog-prio-text { font-size: 14px; line-height: 20px; font-weight: 500; }
.wlog-myweek-calm #wlog-recs:empty { display: none; }
.wlog-myweek-calm #wlog-recs:not(:empty) { margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.wlog-myweek-calm .wlog-add-detail { font: inherit; font-size: 12px; line-height: 16px; min-height: 24px; padding: 0; margin: 4px 0 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.wlog-myweek-calm .wlog-add-detail:hover { color: var(--text); text-decoration: underline; }
.wlog-myweek-calm .wlog-add-detail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wlog-myweek-calm .wlog-headline-hint { font-size: 11px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-closing-confirm-all { display: flex; align-items: center; gap: 4px; }
.wlog-myweek-calm #wlog-recs .wlog-rec { margin-bottom: 12px; overflow-wrap: anywhere; }
/* Each note reads like a row in Wins (2026-11-03): the title in bold, why in small grey text, the action as
   quiet as Remove. */
.wlog-myweek-calm #wlog-recs .wlog-rec-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.wlog-myweek-calm #wlog-recs .wlog-rec-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.wlog-myweek-calm #wlog-recs .wlog-rec-why { font-size: 11px; line-height: 24px; color: var(--text-muted); }
.wlog-myweek-calm #wlog-recs .wlog-rec-line>.wlog-btn.sm:first-child, .wlog-myweek-calm #wlog-recs .wlog-recs-more { margin-left: -8px; }
.wlog-myweek-calm #wlog-recs .wlog-btn.sm:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.wlog-myweek-calm .answer-toggle { font: inherit; border: 0; cursor: pointer; max-width: 100%; white-space: normal; text-align: left; }
.wlog-myweek-calm .answer-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wlog-myweek-calm .answer-menu>.answer-toggle.is-suggested { background: transparent; border: 1px dashed var(--text-muted); line-height: 22px; }
.wlog-myweek-calm .answer-menu .wlog-chips { max-width: min(224px, calc(100vw - 48px)); }
.wlog-myweek-calm .wlog-closing-text, .wlog-myweek-calm .wlog-win-text { overflow-wrap: anywhere; }
.wlog-myweek-calm .calm-section>summary>span:first-child { font-size: 14px; font-weight: 600; color: var(--text); }
.wlog-myweek-calm .calm-field .wlog-win-detail { margin-top: 0 !important; }
.wlog-myweek-calm .wlog-win>.calm-field { margin-top: 8px; }
@media (max-width:760px) {
  .wlog-myweek-calm .wlog-closing>.wlog-grow { min-width: 0; }
  .wlog-myweek-calm .wlog-closing-who input { flex: 1 1 160px; width: auto; }
  .wlog-myweek-calm .ck-edit>.ck-summary { grid-column: 1 / -1; }
  .wlog-myweek-calm .wlog-row-head { flex-wrap: wrap; }
}

.wlog-myweek-calm .wlog-closing-unsaved { align-self: center; font-size: 10px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-closing-unsaved:not(:empty) { padding: 0 6px; }

/* Step 3: suggested stucks (Anthony, 2026-11-04). Each row reads like a Recommendations note: the
   title in bold, why in small grey text, the action as quiet as Remove. Parked cards fold under one
   grey close-or-drop line. */
.wlog-myweek-calm .wlog-sugg-list { margin-top: 16px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.wlog-myweek-calm .wlog-sugg-head { margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.wlog-myweek-calm .wlog-sugg { padding: 4px 0; overflow-wrap: anywhere; }
.wlog-myweek-calm .wlog-sugg .wlog-rec-title { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-decoration: none; }
.wlog-myweek-calm .wlog-sugg a.wlog-rec-title:hover { text-decoration: underline; }
.wlog-myweek-calm .wlog-sugg .wlog-rec-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.wlog-myweek-calm .wlog-sugg .wlog-rec-why { font-size: 11px; line-height: 24px; color: var(--text-muted); }
.wlog-myweek-calm .wlog-sugg .wlog-btn.sm:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
/* Suggested stucks rows are reached with Tab; Enter puts one in the Top 3 (2026-11-10). */
.wlog-myweek-calm .wlog-sugg[tabindex]:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; border-radius: 4px; }
.wlog-myweek-calm .wlog-parked { margin-top: 12px; }
.wlog-myweek-calm .wlog-parked > summary { font-weight: 400; }

/* Under Draft my week (Anthony, 2026-11-05): a quiet "Reads Fri Oct 30 to today" that opens From / To,
   so the writer can see and change which days the draft reads. Secondary text, never a second primary. */

/* Edit in place and drag to reorder on My week (Anthony, 2026-11-06). A line's text is editable on
   double-click; rows drag with a drop line between them; a stuck dragged onto the suggestions is taken out. */
.wlog-myweek-calm .wlog-editable { cursor: text; border-radius: 4px; }
.wlog-myweek-calm .wlog-editable:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.wlog-myweek-calm .wlog-row-head .wlog-win-head:has(>.wlog-inline-edit) { flex: 1 1 auto; }
.wlog-myweek-calm .wlog-inline-edit { flex: 1 1 240px; width: auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 20px; padding: 2px 8px; }
.wlog-myweek-calm .wlog-row.wlog-stuck.is-draggable, .wlog-myweek-calm .wlog-sugg.is-draggable { cursor: grab; touch-action: none; }
.wlog-myweek-calm .wlog-row.wlog-stuck.is-draggable .wlog-stuck-fields { touch-action: auto; cursor: auto; }
.wlog-myweek-calm .wlog-row.is-dragging, .wlog-myweek-calm .wlog-sugg.is-dragging { opacity: .45; cursor: grabbing; }
.wlog-myweek-calm .wlog-stuck-list.drop-into, .wlog-myweek-calm .wlog-prio-group.drop-into,
.wlog-myweek-calm #wlog-stuck-sugg.drop-out { outline: 2px dashed var(--accent-fill); outline-offset: 2px; border-radius: 4px; background: var(--accent-soft); }
.wlog-myweek-calm .wlog-row.wlog-prio.is-draggable { grid-template-columns: 16px minmax(0,1fr) auto; }
.wlog-myweek-calm .wlog-drag-grip { align-self: center; justify-self: center; cursor: grab; touch-action: none; color: var(--text-muted); font-size: 12px; line-height: 20px; letter-spacing: -2px; opacity: .6; user-select: none; }
.wlog-myweek-calm .wlog-drag-grip::before { content: "\22EE\22EE"; }
.wlog-myweek-calm .wlog-row.wlog-prio.is-draggable:hover .wlog-drag-grip { opacity: 1; }
@media (max-width:760px) {
  .wlog-myweek-calm .wlog-row.wlog-prio.is-draggable { grid-template-columns: 16px minmax(0,1fr); }
  .wlog-myweek-calm .wlog-row.wlog-prio.is-draggable .wlog-prio-text { grid-column: 2; }
  .wlog-myweek-calm .wlog-row.wlog-prio.is-draggable .wlog-prio-actions { grid-column: 1 / -1; }
}


/* Removed (N): the folded list at the bottom of each list on My week, with Put back. */
.wlog-myweek-calm .wlog-removed { margin-top: 6px; }
.wlog-myweek-calm .wlog-removed > summary { font-weight: 400; }
.wlog-myweek-calm .wlog-removed-list { margin: 2px 0 4px 18px; display: flex; flex-direction: column; gap: 2px; }
.wlog-myweek-calm .wlog-removed-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; }
.wlog-myweek-calm .wlog-removed-text { color: var(--text-muted); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }

/* Top 3 priorities for next week (Anthony, 2026-11-06): the Top 3 are numbered like the top wins and are
   what the log posts; Other ideas sit under a quiet heading; a quiet "Add to top 3" shows on hover or focus. */
.wlog-myweek-calm .wlog-prio-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wlog-myweek-calm .wlog-prio-line .wlog-prio-text { flex: 1 1 0; min-width: 0; max-width: 100%; }
.wlog-myweek-calm .wlog-prio-line .wlog-win-num { flex: none; min-width: 12px; }
@media (min-width:761px) {
  .wlog-myweek-calm .wlog-prio-line { flex: 0 1 auto; max-width: calc(100% - 200px); }
  .wlog-myweek-calm .wlog-prio-line .wlog-prio-text { flex: 0 1 auto; width: auto; }
}
@media (max-width:760px) {
  .wlog-myweek-calm .wlog-row.wlog-prio.is-draggable .wlog-prio-line { grid-column: 2; }
}
.wlog-myweek-calm .wlog-top3-msg:empty { display: none; }
.wlog-myweek-calm .wlog-top3-msg { margin: 4px 0 0; }
.wlog-myweek-calm .wlog-ideas-head { margin: 16px 0 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.wlog-myweek-calm .wlog-pick { margin-top: 16px; }
.wlog-myweek-calm .wlog-reveal { opacity: 0; transition: opacity .12s; }
.wlog-myweek-calm .wlog-cand:hover .wlog-reveal, .wlog-myweek-calm .wlog-cand:focus-within .wlog-reveal,
.wlog-myweek-calm .wlog-prio:hover .wlog-reveal, .wlog-myweek-calm .wlog-prio:focus-within .wlog-reveal,
.wlog-myweek-calm .wlog-reveal:focus-visible { opacity: 1; }
@media (hover: none) { .wlog-myweek-calm .wlog-reveal { opacity: 1; } }
.wlog-myweek-calm .wlog-cand.is-draggable { cursor: grab; touch-action: none; }
.wlog-myweek-calm .wlog-cand.is-dragging { opacity: .45; cursor: grabbing; }

/* Top 3 stucks (Anthony, 2026-11-06): numbered like the top wins; any more sit in a quiet Other stucks list. */
.wlog-myweek-calm .wlog-stucks-msg:empty { display: none; }
.wlog-myweek-calm .wlog-stucks-msg { margin: 4px 0 0; }

/* Card search on Next week (Anthony, 2026-11-06): the Add box and Link a card list your open cards as you type. */
.wlog-myweek-calm .wlog-cs { position: relative; }
.wlog-myweek-calm .wlog-cs-list { display: flex; flex-direction: column; margin-top: 4px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-alt); max-height: 280px; overflow-y: auto; }
.wlog-myweek-calm .wlog-cs-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; text-align: left;
  font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; border-top: 1px solid var(--border-soft);
  padding: 8px 12px; cursor: pointer; }
.wlog-myweek-calm .wlog-cs-opt:first-child { border-top: 0; }
.wlog-myweek-calm .wlog-cs-opt:hover, .wlog-myweek-calm .wlog-cs-opt.is-active, .wlog-myweek-calm .wlog-cs-opt:focus-visible { background: var(--bg-raised); }
.wlog-myweek-calm .wlog-cs-title { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.wlog-myweek-calm .wlog-cs-bits .wlog-src-chip { margin-left: 0; margin-right: 4px; }
.wlog-myweek-calm .wlog-cs-none { padding: 8px 0; }
.wlog-myweek-calm .wlog-prio-panel .wlog-cs { flex: 1 1 100%; margin-bottom: 8px; }
.wlog-myweek-calm .wlog-prio-panel .wlog-cs-input { width: 100%; }

.wlog-myweek-calm [data-prio-pop="link"] .wlog-prio-panel { width: 380px; max-width: calc(100vw - 48px); }

/* Card links (Anthony, 2026-11-06): every card mention opens its EG PM card in a new tab. Titles keep their
   look and underline on hover; the small card chips read as links. */
.wlog-myweek-calm a.wlog-card-link { text-decoration: none; cursor: pointer; }
.wlog-myweek-calm a.wlog-card-link:hover, .wlog-myweek-calm a.wlog-card-link:focus-visible { color: var(--accent-on); text-decoration: underline; }
.wlog-myweek-calm a.wlog-card-title { color: inherit; text-decoration: none; }
.wlog-myweek-calm a.wlog-card-title:hover, .wlog-myweek-calm a.wlog-card-title:focus-visible { text-decoration: underline; }
.wlog-myweek-calm #wlog-recs a.wlog-rec-title { display: block; }

/* Drag you can see (Anthony, 2026-11-10): "it shows almost a see-through version of what you're dragging ...
   showing where you can drop it off." A see-through copy follows the pointer, the row stays put faded, a 2px
   accent line marks the landing spot and the rows on either side slide apart. Reduce motion: no sliding. */
.wlog-myweek-calm .wlog-drag-ghost { position: fixed; z-index: 1000; margin: 0; box-sizing: border-box; pointer-events: none;
  opacity: .92; background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-fill) 45%, var(--border)); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .12); cursor: grabbing; will-change: transform; transition: none; }
.wlog-myweek-calm .wlog-drag-ghost.is-landing { transition: transform 160ms ease-out, opacity 160ms ease-out; opacity: 0; }
.wlog-myweek-calm .wlog-drag-ghost.is-returning { transition: transform 180ms ease-in-out, opacity 180ms ease-in; opacity: 0; }
.wlog-myweek-calm .is-dragging:is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]) { opacity: .35; cursor: grabbing; }
.wlog-myweek-calm .wlog-drag-on :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]) { transition: transform 160ms ease-out; }
.wlog-myweek-calm .wlog-drag-on .wlog-shift-up { transform: translateY(-8px); }
.wlog-myweek-calm .wlog-drag-on .wlog-shift-down { transform: translateY(8px); }
.wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]):is(.drop-before, .drop-after) { position: relative; }
.wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]):is(.drop-before, .drop-after)::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--accent-fill); pointer-events: none; }
.wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]).drop-before::after { top: -9px; }
.wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]).drop-after::after { bottom: -9px; }
@media (prefers-reduced-motion: reduce) {
  .wlog-myweek-calm .wlog-drag-on :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]) { transition: none; }
  .wlog-myweek-calm .wlog-drag-on .wlog-shift-up, .wlog-myweek-calm .wlog-drag-on .wlog-shift-down { transform: none; }
  .wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]).drop-before::after { top: -1px; }
  .wlog-myweek-calm :is([data-win-row], [data-stuck-row], [data-priority-row], [data-cand], [data-sugg-row]).drop-after::after { bottom: -1px; }
  .wlog-myweek-calm .wlog-drag-ghost.is-landing, .wlog-myweek-calm .wlog-drag-ghost.is-returning { transition: none; }
}

/* Color hints (Anthony, 2026-11-10, card 1366113: "keep the plain background, add a light tint of the accent
   color" in 3 places). One accent, no gradients, app tokens only: --accent-soft is EG Hub's soft accent (the
   eghub theme's eg-accent-soft), --accent-on its text color, --success-text the green that passes contrast in
   light and dark. (1) the current step tab, (2) the Top 3 boxes on Wins, Stucks and Next week, (3) a green check
   on finished Close last week rows and on the Done (N) group. */
.wlog-myweek-calm .wlog-step, .wlog-myweek-calm .wlog-step.done { padding-left: 8px; padding-right: 8px; border-radius: 6px 6px 0 0; }
.wlog-myweek-calm .wlog-step.cur { background: var(--accent-soft); color: var(--accent-on); border-bottom-color: var(--accent-fill); }
.wlog-myweek-calm .wlog-top3-box { background: var(--accent-soft); border-radius: 8px; padding: 4px 12px; }
.wlog-myweek-calm .wlog-top3-box>.wlog-row:first-child { border-top: 0; }
.wlog-myweek-calm .wlog-top3-box>.wlog-hint { padding: 8px 0; margin: 0; }
.wlog-myweek-calm .wlog-done-check { flex: none; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--success-text); }
.wlog-myweek-calm .wlog-closing.is-finished .wlog-closing-text { display: inline; }
.wlog-myweek-calm .wlog-closing-done>summary .wlog-done-check { margin: 0 4px 0 0; }

/* What goes in your log (Anthony, 2026-11-11): one small label with an (i) at the top of every Top 3 box. */
.wlog-myweek-calm .wlog-box-label { padding: 8px 0 2px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--accent-on); }
.wlog-myweek-calm .wlog-top3-box>.wlog-box-label+.wlog-row { border-top: 0; }
