/* Tasks-specific component styles. Tokens (:root vars, reset, .app shell)
   live in shared/tokens.css — this file only holds markup genuinely
   specific to this app, ported from docs/mockups/home-tasks-outline.html
   and docs/mockups/home-task-detail-outline.html per the brief's
   "port as-is" instruction for the functional pieces.

   Build order step 5 scope only: projects, steps, tool cross-referencing,
   priority editing. NOT included yet (step 6): budget, decisions,
   resources, the "Reconsider priority?" nudge, the housekeeping
   auto-card, photo nudges, or the "what should I work on" recommend
   panel — see README for the recorded scope decision. */

/* ---------- Header (shared shape with Inventory) ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243,236,225,0.92);
  backdrop-filter: blur(8px);
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 4px; text-decoration: none; }
.wordmark .underline { position: relative; }
.wordmark .underline::after {
  content: ""; position: absolute; left: 2px; right: -4px; bottom: -4px;
  height: 6px; background: var(--timber); opacity: 0.28; border-radius: var(--r-pill); transform: rotate(-0.6deg);
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
.subtitle-row { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px 34px; }
.subtitle { font-size: 12px; color: var(--ink-soft); margin: 0; }
.subtitle-row .link { font-size: 12px; color: var(--timber); font-weight: 600; text-decoration: none; }

.chip-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--cream-card); color: var(--ink-soft);
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.chip.active { background: var(--timber); color: #fff; border-color: var(--timber); }
.avatar-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 700; color: #fff; flex-shrink: 0; }

main { padding: 20px; display: flex; flex-direction: column; gap: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; margin: 0; }
.section-head .count { font-size: 12px; color: var(--ink-soft); }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .projects-grid { grid-template-columns: 1fr 1fr; } }

.project-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); position: relative; text-decoration: none; color: inherit; display: block; }
.project-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.project-card .ptitle { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.edit-btn { border: none; background: transparent; color: var(--ink-soft); padding: 4px; border-radius: var(--r-sm); transition: background var(--fast) var(--ease); }
.edit-btn:hover { background: var(--timber-tint); color: var(--timber-dark); }

.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.badge.imp-high { background: var(--cat-terracotta-tint); color: var(--cat-terracotta); }
.badge.imp-medium { background: var(--cat-ochre-tint); color: var(--cat-ochre); }
.badge.imp-low { background: var(--cat-sage-tint); color: var(--cat-sage); }
.badge.urg-high { background: var(--ink); color: #fff; }
.badge.urg-medium { background: var(--timber-tint); color: var(--timber-dark); }
.badge.urg-low { background: var(--border); color: var(--ink-soft); }
.badge.plan-source { background: var(--cream-card); color: var(--ink-soft); border: 1px solid var(--border); }

.readiness { margin-bottom: 10px; }
.readiness .rlabel { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-soft); margin-bottom: 4px; }
.readiness .rlabel span:last-child { text-align: right; }
.readiness .track { height: 6px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; }
.readiness .fill { height: 100%; background: var(--timber); border-radius: var(--r-pill); transition: width 400ms var(--ease); }

.steps-line { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

.card-footer { display: flex; align-items: center; justify-content: space-between; }
.assignee { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.assignee.unassigned { font-style: italic; }

/* priority editor (inline, shown when edit tapped) */
.priority-editor { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.priority-editor.open { display: block; }
.editor-row { margin-bottom: 8px; }
.editor-row .elabel { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; display: block; }
.seg { display: inline-flex; background: var(--cream-bg); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 2px; }
.seg button { border: none; background: transparent; font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); color: var(--ink-soft); }
.seg button.active { background: var(--timber); color: #fff; }

/* ---------- Add project modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(58,46,36,0.35); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.modal-overlay.open { display: flex; }
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal { background: var(--cream-card); width: 100%; max-width: 480px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 20px 26px; box-shadow: var(--shadow-lg); max-height: 85vh; overflow-y: auto; position: relative; }
@media (min-width: 600px) { .modal { border-radius: var(--r-lg); } }
.modal h3 { font-size: 16px; margin: 0 0 14px; }
.modal .qgroup { margin-bottom: 18px; }
.modal .qlabel { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; display: block; }
.modal textarea, .modal input[type=text] { width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px; background: var(--cream-bg); resize: vertical; }
.choice-row { display: flex; gap: 8px; }
.choice-btn { flex: 1; border: 1px solid var(--border); background: var(--cream-bg); border-radius: var(--r-sm); padding: 12px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-align: left; }
.choice-btn.active { border-color: var(--timber); background: var(--timber-tint); color: var(--timber-dark); }
.first-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.first-steps li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: var(--cream-bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 11px; }
.first-steps .num { font-family: var(--font-display); font-weight: 700; color: var(--timber); flex-shrink: 0; }
.first-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.first-tools li { font-size: 12px; background: var(--cream-bg); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px 11px; }
.modal-submit { width: 100%; background: var(--timber); color: #fff; border: none; border-radius: var(--r-pill); padding: 13px; font-weight: 700; font-family: var(--font-display); margin-top: 6px; }
.modal-submit:disabled { opacity: 0.5; cursor: default; }
.modal-secondary { width: 100%; background: transparent; color: var(--ink-soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 11px; font-weight: 600; font-size: 12.5px; margin-top: 8px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--ink-soft); font-size: 18px; }
.plan-status { font-size: 12px; color: var(--ink-soft); margin: -6px 0 12px; }
.plan-status.error { color: var(--cat-terracotta); }

/* ---------- FAB + person picker (shared shape with Inventory) ---------- */
.fab { position: fixed; right: 20px; bottom: 24px; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--timber); color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--fast) var(--ease), background var(--fast) var(--ease); z-index: 30; }
.fab:hover { transform: translateY(-2px) scale(1.03); background: var(--timber-dark); }

.person-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--cream-card); display: flex; align-items: center; justify-content: center; color: var(--timber); }
.person-sheet { position: fixed; inset: 0; background: rgba(58,46,36,0.35); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.person-sheet[hidden] { display: none; }
.person-sheet .panel { background: var(--cream-card); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.person-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.person-option { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--cream-bg); text-align: left; }
.person-option.selected { border-color: var(--timber); background: var(--timber-tint); }
.person-option .avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; }

/* ---------- Empty state (shared shape with Inventory) ---------- */
.empty-state { border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: 22px 16px; text-align: center; color: var(--ink-soft); }
.empty-state .headline { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.empty-state .sub { font-size: 12.5px; }

/* =========================================================
   PROJECT DETAIL PAGE
   ========================================================= */
.back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.back-btn { border: 1px solid var(--border); background: var(--cream-card); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--shadow-sm); text-decoration: none; flex-shrink: 0; }
.header-title { font-size: 18px; margin: 0; flex: 1; }

.meta-row { display: flex; align-items: center; justify-content: space-between; }
.last-activity { font-size: 11.5px; color: var(--ink-soft); }

/* READINESS */
.readiness-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); }
.readiness-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.readiness-top .rnum { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.readiness-top .rlabel { font-size: 12px; color: var(--ink-soft); }
.track { height: 8px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; }
.fill { height: 100%; background: var(--timber); border-radius: var(--r-pill); transition: width 400ms var(--ease); }
.readiness-sub { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* PLAN */
.plan-text { font-size: 13.5px; line-height: 1.6; color: var(--ink); background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; margin: 0; }
.plan-empty { font-size: 12.5px; color: var(--ink-soft); font-style: italic; }

/* STEPS */
.steps-list { display: flex; flex-direction: column; gap: 8px; }
.step-row { display: flex; align-items: flex-start; gap: 11px; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.step-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); margin-top: 1px; background: transparent; }
.step-check svg { opacity: 0; transition: opacity var(--fast) var(--ease); }
.step-row.done .step-check { background: var(--timber); border-color: var(--timber); }
.step-row.done .step-check svg { opacity: 1; }
.step-text { font-size: 13.5px; flex: 1; transition: color var(--fast) var(--ease), text-decoration var(--fast) var(--ease); }
.step-row.done .step-text { color: var(--ink-soft); text-decoration: line-through; }
.step-num { font-family: var(--font-display); font-weight: 700; color: var(--timber); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.step-remove { border: none; background: transparent; color: var(--ink-soft); padding: 2px; flex-shrink: 0; font-size: 12px; }

/* TOOLS & MATERIALS */
.tool-list { display: flex; flex-direction: column; gap: 8px; }
.tool-row { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-name { font-size: 13.5px; font-weight: 600; }
.status-chip { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); flex-shrink: 0; border: none; }
.status-chip.owned { background: var(--cat-sage-tint); color: var(--cat-sage); }
.status-chip.need_to_buy { background: var(--cat-terracotta-tint); color: var(--cat-terracotta); }
.status-chip.need_to_borrow { background: var(--cat-ochre-tint); color: var(--cat-ochre); }
.tool-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }
.tool-action { margin-top: 8px; display: flex; gap: 6px; }
.mini-btn { border: 1px solid var(--border); background: var(--cream-bg); border-radius: var(--r-pill); padding: 6px 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.mini-btn.primary { background: var(--timber); border-color: var(--timber); color: #fff; }

/* Add-step / add-tool bars — not in the mockups (they're static),
   same visual language as Inventory's search-bar / add-resource-bar
   pattern from the detail mockup. */
.add-bar { display: flex; gap: 8px; margin-top: 4px; }
.add-bar input { flex: 1; border: 1px solid var(--border); background: var(--cream-card); border-radius: var(--r-pill); padding: 9px 15px; font-family: var(--font-body); font-size: 13px; }
.add-bar button { background: var(--timber); color: #fff; border: none; border-radius: var(--r-pill); padding: 0 16px; font-weight: 700; font-size: 12.5px; }

.mock-note { font-size: 11px; color: var(--ink-soft); text-align: center; padding: 10px 20px 0; }

/* =========================================================
   STEP 6 — budget, decisions, resources, reconsider nudge,
   recommendation panel, housekeeping card. Ported from
   docs/home-tasks-preview.html, where all of this was prototyped and
   click-tested before this real build.
   ========================================================= */

/* ---------- Reconsider-priority chip (dashboard card) ---------- */
.reconsider-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--cat-terracotta-tint); color: var(--cat-terracotta); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); border: none; margin-top: 2px; margin-bottom: 8px; }

/* ---------- Recommend panel (dashboard) ---------- */
.recommend-btn { width: 100%; background: var(--timber); color: #fff; border: none; border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-md); transition: transform var(--fast) var(--ease); }
.recommend-btn:hover { transform: translateY(-1px); }
.recommend-panel { margin-top: 12px; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); display: none; }
.recommend-panel.open { display: block; }
.recommend-item { padding: 10px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; display: block; }
.recommend-item:first-child { border-top: none; padding-top: 0; }
.lead { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.rtitle { font-weight: 700; font-size: 13.5px; margin: 0 0 3px; }
.rwhy { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.recommend-empty { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.recommend-source { font-size: 10.5px; color: var(--ink-soft); text-align: right; margin: 8px 0 0; font-style: italic; }

/* ---------- Housekeeping "Add photos" card (dashboard) ---------- */
.housekeeping-card { border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: 14px; background: var(--cream-bg); margin-bottom: 12px; }
.housekeeping-card .htitle { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.housekeeping-card .hsub { font-size: 12px; color: var(--ink-soft); margin: 0; }
.housekeeping-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.housekeeping-list li { font-size: 12.5px; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; }

/* ---------- Budget card (project detail) ---------- */
.budget-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.budget-stat { display: flex; flex-direction: column; gap: 2px; }
.budget-stat .bnum { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.budget-stat .blabel { font-size: 10.5px; color: var(--ink-soft); }
.budget-stat.pending .bnum { color: var(--cat-terracotta); }
.budget-track { height: 10px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; display: flex; }
.paid-fill { background: var(--timber); height: 100%; transition: width 400ms var(--ease); }
.pending-fill { background: var(--cat-terracotta); opacity: .55; height: 100%; transition: width 400ms var(--ease); }
.budget-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--ink-soft); flex-wrap: wrap; align-items: center; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.budget-overspend { color: var(--cat-terracotta); font-weight: 700; }
.budget-empty { font-size: 12.5px; color: var(--ink-soft); }
.cost-input { width: 84px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 8px; font-family: var(--font-body); font-size: 12px; background: var(--cream-bg); }

/* ---------- Decisions (project detail) ---------- */
.decision-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.decision-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.decision-q { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 0; }
.decision-people { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); margin-bottom: 10px; }
.decision-answers { display: flex; gap: 6px; }
.answer-btn { flex: 1; border: 1px solid var(--border); background: var(--cream-bg); border-radius: var(--r-pill); padding: 7px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.answer-btn.yes.active { background: var(--cat-sage-tint); border-color: var(--cat-sage); color: var(--cat-sage); }
.answer-btn.no.active { background: var(--cat-terracotta-tint); border-color: var(--cat-terracotta); color: var(--cat-terracotta); }
.answer-btn.maybe.active { background: var(--cat-ochre-tint); border-color: var(--cat-ochre); color: var(--cat-ochre); }
.decision-resolved { font-size: 12px; color: var(--cat-sage); font-weight: 600; display: flex; align-items: center; gap: 6px; margin: 0; }
.decision-resolved.no-color { color: var(--cat-terracotta); }
.decision-reason { font-size: 11.5px; color: var(--ink-soft); margin: 4px 0 0; font-style: italic; }
.decision-stale { font-size: 10.5px; color: var(--cat-terracotta); font-weight: 700; margin: 4px 0 0; }
.no-reason { display: none; margin-top: 8px; }
.no-reason.show { display: block; }
.no-reason textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; font-family: var(--font-body); font-size: 12.5px; background: var(--cream-bg); resize: vertical; }
.decision-add { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.decision-add-row { display: flex; gap: 8px; }
.decision-add-row select { border: 1px solid var(--border); background: var(--cream-card); border-radius: var(--r-sm); padding: 0 8px; font-size: 12.5px; }
.decision-hint { font-size: 11px; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.step-deleted-note { font-size: 11px; color: var(--ink-soft); font-style: italic; margin: 4px 0 0; }

/* ---------- Resources (project detail) ---------- */
.resource-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.resource-row { display: flex; align-items: center; gap: 10px; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 13px; box-shadow: var(--shadow-sm); }
.resource-icon { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--timber-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--timber-dark); }
.resource-body { flex: 1; min-width: 0; }
.resource-title { font-size: 13px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-title a { color: inherit; }
.resource-meta { font-size: 11px; color: var(--ink-soft); margin: 2px 0 0; }
.resource-remove { border: none; background: transparent; color: var(--ink-soft); padding: 2px; flex-shrink: 0; font-size: 12px; }
.add-resource-bar { display: flex; gap: 8px; }

/* ---------- Tool row additions: photo nudge + send-to-shopping ---------- */
.tool-photo-nudge { font-size: 11px; color: var(--cat-ochre); margin-top: 6px; }
.shopping-sent-badge { font-size: 10.5px; font-weight: 700; color: var(--timber-dark); background: var(--timber-tint); padding: 2px 8px; border-radius: var(--r-pill); }

/* =========================================================
   CALENDAR PAGE
   ========================================================= */
.agenda-list { display: flex; flex-direction: column; gap: 8px; }
.agenda-row { display: flex; align-items: center; gap: 12px; background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.agenda-date { flex-shrink: 0; width: 46px; text-align: center; }
.agenda-date .dow { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.agenda-date .dom { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.agenda-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.agenda-icon.bin-general { background: var(--border); }
.agenda-icon.bin-recycling { background: var(--cat-ochre-tint); }
.agenda-icon.bin-green_waste, .agenda-icon.bin-green, .agenda-icon.bin-fogo { background: var(--cat-sage-tint); }
.agenda-icon.hard_rubbish { background: var(--cat-terracotta-tint); }
.agenda-icon.bill { background: var(--cat-blue-tint); }
.agenda-icon.project { background: var(--timber-tint); }
.agenda-icon.custom { background: var(--cat-plum-tint); }
.agenda-body { flex: 1; min-width: 0; }
.agenda-title { font-size: 13.5px; font-weight: 600; margin: 0; }
.agenda-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.agenda-action { flex-shrink: 0; }
.paid-toggle { border: 1px solid var(--border); background: var(--cream-bg); border-radius: var(--r-pill); padding: 5px 11px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.paid-toggle.paid { background: var(--cat-sage-tint); border-color: var(--cat-sage); color: var(--cat-sage); }

.feed-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); }
.feed-status { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 8px; }
.feed-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.feed-link-row input { flex: 1; border: 1px solid var(--border); background: var(--cream-bg); border-radius: var(--r-sm); padding: 8px 10px; font-size: 12px; font-family: monospace; }
.feed-hint { font-size: 11px; color: var(--ink-soft); margin: 8px 0 0; }

#f-category.choice-row { flex-wrap: wrap; }
#f-category .choice-btn { flex: 1 1 40%; }

/* ---------- Notification bell + global search (step 9) ----------
   Same "icon button opens a panel" interaction shape for both, sitting
   next to the person picker in the header. Duplicated verbatim into
   every app's app.css, same convention as the JS modules behind them. */
.header-actions { display: flex; align-items: center; gap: 8px; }

.notif-btn {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--cream-card); display: flex; align-items: center; justify-content: center;
  color: var(--timber); cursor: pointer;
}
.notif-badge {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: var(--r-pill); background: var(--cat-terracotta); color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 300px; max-height: 380px;
  overflow-y: auto; background: var(--cream-card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); z-index: 60; padding: 4px 0;
}
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.notif-panel-head .link { font-size: 11.5px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.notif-empty { padding: 16px 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.notif-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.notif-row-body { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.notif-body { font-size: 12px; color: var(--ink-soft); margin: 0 0 2px; }
.notif-when { font-size: 10.5px; color: var(--ink-soft); margin: 0; opacity: 0.8; }
.notif-dismiss { border: none; background: transparent; color: var(--ink-soft); font-size: 11px; cursor: pointer; padding: 2px 4px; border-radius: 50%; }
.notif-dismiss:hover { background: var(--timber-tint); color: var(--timber); }

.search-panel { width: 300px; padding: 10px; }
.search-panel .search-box {
  display: flex; align-items: center; gap: 8px; background: var(--cream-bg);
  border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 12px; color: var(--ink-soft);
}
.search-panel .search-box input {
  border: none; background: transparent; outline: none; font-family: var(--font-body);
  font-size: 14px; color: var(--ink); flex: 1;
}
.search-panel .search-box input::placeholder { color: var(--ink-soft); }
#global-search-results { max-height: 300px; overflow-y: auto; margin-top: 6px; }
.search-empty { padding: 10px 4px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.search-hit { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--r-sm); text-decoration: none; color: inherit; }
.search-hit:hover { background: var(--timber-tint); }
.search-hit-icon { font-size: 16px; }
.search-hit-body { display: flex; flex-direction: column; }
.search-hit-title { font-size: 13px; font-weight: 600; }
.search-hit-sub { font-size: 11px; color: var(--ink-soft); }
