/* ---------------- Parity 3 (2026-10-16) ------------------
 * The project-page pass: Summary's money tiles, doors and
 * Activities; the team editor; the daily-log register and
 * editor; the project header's dashboard door. The rich-text
 * editor's own styles live in notes.css (it debuts there);
 * the quote thumbnail lives in chat.css.
 * ========================================================== */

/* ---- Summary: card heads and doors ---- */
.sum-card-head { display: flex; align-items: center; gap: 10px; }
.sum-card-head h3 { margin: 0; }
.sum-card-doors { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sum-door { font: inherit; font-size: 13px; color: var(--gold, #b8860b); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.sum-door:hover { text-decoration: underline; }

/* ---- header dashboard door (clients.js paintProjectMeta) ---- */
.meta-dash { font: inherit; font-size: inherit; color: var(--gold, #b8860b); background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; }
.meta-dash:hover { text-decoration: underline; }

/* ---- Activities ---- */
.act-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.act-filters input[type="search"] { flex: 1 1 180px; }
.act-filters select { flex: 0 1 auto; }
.act-group { margin-top: 10px; }
.act-day { font-size: 11px; letter-spacing: .08em; color: var(--muted, #777); margin: 0 0 6px; text-transform: uppercase; }
.act-line { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line, #e5e0d5); }
.act-line:first-of-type { border-top: 0; }
.act-kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); padding-top: 3px; white-space: nowrap; }
.act-text { flex: 1; min-width: 0; }
.act-time { font-size: 12px; color: var(--muted, #777); white-space: nowrap; padding-top: 2px; }
.act-none { padding: 8px 0 2px; }

/* ---- the archive door at the foot of Summary ---- */
.sum-archive { margin-top: 18px; }
.sum-archive-door { font: inherit; font-size: 13px; color: var(--bad, #a33); background: none; border: 1px solid var(--line, #e5e0d5); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.sum-archive-door:hover { border-color: var(--bad, #a33); }

/* ---- team editor ---- */
.team-ed-blurb { margin: 4px 0 14px; }
.team-ed-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); margin: 12px 0 6px; }
.team-ed-ptype { width: 100%; }
.team-ed-note { font-size: 13px; margin: 8px 0; }
.team-ed-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.team-ed-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line, #e5e0d5); border-radius: 12px; }
.team-ed-who { display: flex; align-items: baseline; gap: 7px; min-width: 0; flex: 1 1 auto; }
.team-ed-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-ed-rate { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-ed-ratewords { font-size: 12px; color: var(--muted, #777); }
.team-ed-own { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.team-ed-add { width: 100%; margin-top: 4px; }
.team-ed-ext { font-size: 13px; margin: 6px 0 0; }
.team-co-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); margin: 4px 0 2px; }
/* wave518: Project team dialog polish — one baseline per member row, a
 * quiet rate caption beside its select, the owner choice grouped with
 * its row (soft gold edge on the owner's row), a ghost remove that only
 * warms on hover, and one spacing rhythm down the whole dialog. */
.team-blurb { margin: 2px 0 16px; font-size: 14.5px; line-height: 1.5; }
.team-type { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 600; }
.fx-form .team-type input[type="text"] { display: block; width: 100%; max-width: none; box-sizing: border-box; margin-top: 6px; }
.team-type-hint { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 400; }
.team-note { font-size: 13px; margin: 0 0 12px; }
.fx-form [data-team-rows], .fx-form [data-team-corows] { display: flex; flex-direction: column; gap: 8px; }
.fx-form [data-team-corows] { margin-top: 16px; }
.team-ed-row.team-is-owner { border-color: var(--gold, #c0a060); background: rgba(192, 160, 96, .06); }
.team-ed-rate-cap { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #777); white-space: nowrap; }
.team-ed-rates { font-size: 12px; white-space: nowrap; }
.team-ed-owner { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.team-ed-owner input[type="radio"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--navy, #0b2235); }
.team-ed-remove { font: inherit; flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; color: var(--muted, #8a94a3); font-size: 14px; line-height: 1; }
.team-ed-remove:hover { color: var(--bad, #a33); border-color: var(--line, #e3e7ee); background: rgba(170, 51, 51, .06); }
.team-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.team-add select { flex: 0 1 300px; min-width: 0; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line, #e3e7ee); border-radius: 9px; background: var(--card, #fff); font: inherit; font-size: 14px; box-sizing: border-box; }
.team-ext { font-size: 13px; margin: 12px 0 0; }
.sum-owner-pill { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold, #b8860b); margin-left: 6px; }

/* ---- daily-log register ---- */
.dl-expand-toggle { display: inline-flex; align-items: center; gap: 6px; }
.dl-reg-ref { font-weight: 800; white-space: nowrap; }
.dl-reg-proj { min-width: 0; }
.dl-reg-title { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-reg-who { white-space: nowrap; }
.dl-reg-who > .avatar-chip { vertical-align: middle; margin-right: 6px; }
.dl-reg-date { white-space: nowrap; color: var(--muted, #777); font-size: 13px; }
.dl-reg-photos { white-space: nowrap; }
.dl-reg-photos > * { vertical-align: middle; margin-right: 4px; }
.dl-reg-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; background: var(--line, #e5e0d5); }
.dl-ed-thumbs .dl-reg-thumb { width: 52px; height: 52px; }
.dl-reg-more { font-size: 12px; font-weight: 700; color: var(--muted, #777); }
.dl-reg-share { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13px; white-space: nowrap; align-self: center; }
.dl-reg-menuwrap { position: relative; align-self: center; padding-right: 10px; }
.dl-reg-menubtn { font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; cursor: pointer; padding: 6px 8px; }
.dl-reg-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; min-width: 180px; background: var(--card, #fff); border: 1px solid var(--line, #e5e0d5); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 4px; }
.dl-reg-menu button { font: inherit; font-size: 14px; text-align: left; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 6px; }
.dl-reg-menu button:hover { background: var(--line, #f0ece2); }
.dl-reg-menu button.danger { color: var(--bad, #a33); }
.dl-reg-field { display: flex; gap: 12px; margin: 4px 0; }
.dl-reg-field b { flex: 0 0 170px; font-size: 13px; }
.dl-reg-field span { white-space: pre-wrap; }
.dl-reg-meta { margin-top: 8px; font-size: 12px; }

/* ---- daily-log editor ---- */
.dl-editor { margin-bottom: 14px; }
.dl-ed-head { display: flex; align-items: baseline; gap: 12px; }
.dl-ed-head h2 { margin: 0; }
.dl-ed-field { display: block; margin: 10px 0; }
.dl-ed-field > span, .dl-ed-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); margin-bottom: 4px; }
.dl-ed-field input[type="text"], .dl-ed-field input[type="date"], .dl-ed-field select, .dl-ed-field textarea { width: 100%; }
.dl-ed-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.dl-ed-note { font-size: 12px; }
.dl-ed-weather { border: 1px solid var(--line, #e5e0d5); border-radius: 10px; margin: 12px 0; padding: 10px 12px; }
.dl-ed-weather legend { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); padding: 0 4px; }
.dl-ed-weather > label { display: block; margin-top: 6px; }
.dl-ed-weather > label span { display: block; font-size: 12px; margin-bottom: 4px; }
.dl-ed-weather > label input { width: 100%; }
.dl-ed-weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.dl-ed-weather-grid label span { display: block; font-size: 12px; margin-bottom: 4px; }
.dl-ed-weather-grid input { width: 100%; }
.dl-ed-photos { margin: 12px 0; }
.dl-ed-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.dl-ed-upload { display: inline-flex; cursor: pointer; }
.dl-ed-delay { border: 1px solid var(--line, #e5e0d5); border-radius: 10px; margin: 12px 0; padding: 8px 12px; }
.dl-ed-delay legend { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); padding: 0 4px; }
.dl-ed-delay label { margin-right: 16px; }
.dl-ed-history { margin: 12px 0; }
.dl-ed-history p { margin: 2px 0; font-size: 13px; }
.dl-ed-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 720px) {
  .dl-reg-field { flex-direction: column; gap: 2px; }
  .dl-reg-field b { flex-basis: auto; }
}

/* ---- daily-log register as Billdr's table + the log's own page
 * (fix pass 2026-10-17) ---- */
.dl-tablewrap { overflow-x: auto; }
.dl-table { width: 100%; border-collapse: collapse; background: var(--card, #fff); border: 1px solid var(--line, #e5e0d5); border-radius: 12px; overflow: hidden; }
.dl-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #777); padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e0d5); white-space: nowrap; }
.dl-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e0d5); vertical-align: middle; font-size: 14px; }
.dl-table tbody tr:last-child td { border-bottom: 0; }
.dl-table .dl-c-chev { width: 34px; }
.dl-table .dl-c-menu { width: 52px; }
.dl-chev { font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; padding: 4px 6px; color: var(--muted, #777); }
.dl-table .dl-reg-proj span { display: block; font-size: 12px; }
.dl-table .dl-reg-title { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-table .dl-reg-menuwrap { padding-right: 0; }
.dl-tdetail td { background: var(--bg, #faf8f3); padding: 12px 16px 14px 46px; }
.dl-detail { padding: 16px 18px; }
.dl-detail-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dl-detail-actions { display: inline-flex; align-items: center; gap: 12px; }
.dl-detail-title { margin: 0 0 4px; }
.dl-detail-meta { color: var(--muted, #777); margin: 0 0 12px; font-size: 13px; }
.dl-detail-field { display: flex; gap: 12px; margin: 6px 0; }
.dl-detail-field b { flex: 0 0 190px; font-size: 13px; }
.dl-detail-field span { white-space: pre-wrap; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dl-detail-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--line, #e5e0d5); }
@media (max-width: 720px) {
  .dl-detail-field { flex-direction: column; gap: 2px; }
  .dl-detail-field b { flex-basis: auto; }
  .dl-tdetail td { padding-left: 16px; }
}

/* Daily-log comments (fix pass 13) */
.dl-comments-h { margin: 18px 0 8px; font-size: 1rem; }
.dl-comment { padding: 8px 0; border-top: 1px solid var(--line); }
.dl-comment-meta { margin: 0 0 2px; font-size: .85rem; }
.dl-comment-body { margin: 0; white-space: pre-wrap; }
.dl-comment-new { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dl-comment-new textarea { width: 100%; }

/* ======================= DW1 · Daily logs (design wave, 2026-10-17) ======================= */
/* Capture §1. The global register (#view-dailylog, dailylog.js) and the
 * project page's Daily Logs tab (project-modules.js renderProjectDailyLog)
 * share one table (dlRegisterTableHtml), so every table rule below serves
 * both. Selectors hang off existing ids/classes only. */

/* Page head: count line under the H1; "+ Create a daily log" pinned
 * top-right of the view (Billdr's pinned primary). The button stays in
 * the filter bar's markup; only its box moves. */
body.skin-billdr #app #view-dailylog { position: relative; }
body.skin-billdr #app #view-dailylog > .page-head { padding-right: 230px; }
body.skin-billdr #app #view-dailylog #dailylog-count { font-size: var(--ds-fs-sm); color: var(--ds-muted); margin: 0; }
body.skin-billdr #app #view-dailylog #dl-new { position: absolute; top: 0; right: 0; }

/* Filter bar: Billdr's three equal-width dropdowns (~420px each). The
 * shared .filterbar rule hides the captions (kept as accessible names). */
body.skin-billdr #app #view-dailylog > .filterbar > label:not(.dl-expand-toggle) { flex: 1 1 0; min-width: 190px; max-width: 420px; }
body.skin-billdr #app #view-dailylog > .filterbar > label:not(.dl-expand-toggle) > select { width: 100%; }
/* "Expand all" — a real checkbox; it gets its own row under the
 * filters (Billdr's placement), its words back (the shared rule zeroes
 * label text), gold ink, and the iOS switch look since it is on/off. */
body.skin-billdr #app .filterbar > label.dl-expand-toggle {
  flex: 0 0 100%; flex-direction: row; align-items: center; gap: 8px;
  font-size: var(--ds-fs-sm); line-height: 1.4; font-weight: 600; color: var(--ds-gold-ink); cursor: pointer;
}
body.skin-billdr #app .filterbar > label.dl-expand-toggle:hover { color: var(--ds-gold-ink-hover); }
body.skin-billdr #app .dl-expand-toggle > input#dl-expand,
body.skin-billdr #app label.dl-reg-share > input[data-dlshare],
body.skin-billdr #app .dl-ed-check > input#dl-ed-share {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer; vertical-align: middle;
  width: 36px; height: 20px; min-width: 36px; padding: 0; border: 0; border-radius: var(--ds-r-pill);
  background: #d3d9e1 radial-gradient(circle, #fff 7px, transparent 7.5px) no-repeat 0 0 / 20px 20px;
  transition: background-color .15s, background-position .15s;
}
body.skin-billdr #app .dl-expand-toggle > input#dl-expand:checked,
body.skin-billdr #app label.dl-reg-share > input[data-dlshare]:checked,
body.skin-billdr #app .dl-ed-check > input#dl-ed-share:checked { background-color: var(--ds-gold-strong); background-position: 16px 0; }
body.skin-billdr #app .dl-expand-toggle > input#dl-expand:focus-visible,
body.skin-billdr #app label.dl-reg-share > input[data-dlshare]:focus-visible,
body.skin-billdr #app .dl-ed-check > input#dl-ed-share:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app :is(label.dl-reg-share > input[data-dlshare], .dl-ed-check > input#dl-ed-share):disabled { opacity: .5; cursor: default; }
body.skin-billdr #app label.dl-reg-share { padding: 0; gap: 8px; font-size: var(--ds-fs-sm); color: var(--ds-ink); cursor: pointer; }

/* The table (rule 5): white 12px card, header with no fill and small
 * grey sentence-case labels, hairline dividers, no zebra, tall rows. */
body.skin-billdr #app .dl-tablewrap { overflow-x: auto; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r); }
/* (fix 2026-11-12) the wrap keeps its sideways scroll at EVERY
 * width. The old wide-screen rule (overflow: visible from 1400px,
 * meant to keep a bottom row's menu out of the scroll box) let the
 * table outgrow the content column instead — the owner's walk
 * showed the Quick view column clipped off the page's right edge
 * with no way to reach it. Row menus are fx popups (rkMenu), not
 * clipped by this box. */
@media (min-width: 1400px) { body.skin-billdr #app .dl-tablewrap { overflow-x: auto; overflow-y: hidden; } }
body.skin-billdr #app .dl-tablewrap > table.dl-table { border: 0; border-radius: 0; border-collapse: separate; border-spacing: 0; background: var(--ds-card); }
body.skin-billdr #app table.dl-table th {
  font-size: var(--ds-fs-xs); font-weight: 500; color: var(--ds-muted); text-transform: none; letter-spacing: 0;
  background: var(--ds-card); padding: 14px 12px 12px; border-bottom: 1px solid var(--ds-line); vertical-align: bottom;
}
body.skin-billdr #app table.dl-table td {
  font-size: var(--ds-fs-sm); color: var(--ds-ink); padding: var(--ds-row-pad) 12px;
  border-bottom: 1px solid var(--ds-hair); vertical-align: middle;
}
body.skin-billdr #app table.dl-table tbody tr:last-child td { border-bottom: 0; }
body.skin-billdr #app table.dl-table tr.dl-trow:hover td { background: var(--ds-tint); }
body.skin-billdr #app table.dl-table :is(th, td).dl-c-chev { width: 28px; padding-left: 12px; padding-right: 0; }
body.skin-billdr #app table.dl-table :is(th, td).dl-c-menu { width: 48px; padding-left: 4px; text-align: right; }
body.skin-billdr #app .dl-chev { color: var(--ds-muted); font-size: 13px; width: 28px; height: 28px; padding: 0; border-radius: var(--ds-r-sm); }
body.skin-billdr #app .dl-chev:hover { background: var(--ds-bg); color: var(--ds-navy); }
/* Cell roles: grey ref; two-line Project cell (bold navy over grey
 * address); Name in ink; avatar + name; grey date. */
body.skin-billdr #app table.dl-table td.dl-reg-ref { color: var(--ds-muted); font-weight: 500; white-space: nowrap; letter-spacing: .01em; }
body.skin-billdr #app table.dl-table td.dl-reg-proj { min-width: 170px; max-width: 260px; }
body.skin-billdr #app table.dl-table td.dl-reg-proj > b { display: block; color: var(--ds-navy); font-weight: 700; font-size: var(--ds-fs); line-height: 1.35; }
body.skin-billdr #app table.dl-table td.dl-reg-proj > span { display: block; color: var(--ds-muted); font-size: var(--ds-fs-sm); line-height: 1.4; margin-top: 2px; }
body.skin-billdr #app table.dl-table td.dl-reg-title { color: var(--ds-ink); font-size: var(--ds-fs); min-width: 140px; max-width: 260px; white-space: normal; overflow: visible; }
body.skin-billdr #app table.dl-table td.dl-reg-who { color: var(--ds-ink); }
body.skin-billdr #app table.dl-table td.dl-reg-who > .avatar-chip { width: 32px; height: 32px; font-size: 11px; margin-right: 8px; }
body.skin-billdr #app table.dl-table td.dl-reg-date { color: var(--ds-muted); font-size: var(--ds-fs-sm); white-space: normal; min-width: 96px; }
/* Photos: 40px rounded squares (Billdr's ~44px, trimmed so all nine
 * columns fit a 1440px screen without the card scrolling); the "+N" count is its own dark square
 * beside them (Billdr overlays it on the last thumb — here it sits next
 * to them so no shown photo is covered and N stays true). */
body.skin-billdr #app table.dl-table .dl-reg-thumb { width: 40px; height: 40px; border-radius: var(--ds-r-sm); border: 1px solid var(--ds-line); background: var(--ds-fill); }
body.skin-billdr #app table.dl-table .dl-reg-more {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--ds-r-sm); background: rgba(11, 34, 53, .82); color: #fff; font-size: var(--ds-fs-sm); font-weight: 700;
}
/* Row-edge menu: the gold ellipsis (the "⋯" glyph turned upright,
 * Billdr's vertical ⋮), and the menu in the shared fx-menu dress. */
body.skin-billdr #app .dl-reg-menubtn {
  width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: var(--ds-r-sm);
  color: var(--ds-gold-ink); font-size: 18px; font-weight: 700; transform: rotate(90deg);
}
body.skin-billdr #app .dl-reg-menubtn:hover { background: var(--ds-bg); border-color: var(--ds-line); }
body.skin-billdr #app .dl-reg-menu { border-radius: var(--ds-r-ctl); border-color: var(--ds-line); box-shadow: var(--ds-shadow-pop); padding: 4px; text-align: left; }
body.skin-billdr #app .dl-reg-menu button { font-size: var(--ds-fs-sm); padding: 9px 10px; color: var(--ds-ink); }
body.skin-billdr #app .dl-reg-menu button:hover { background: var(--ds-bg); }
body.skin-billdr #app .dl-reg-menu button.danger { color: var(--ds-danger); }
/* The expanded row: a quiet tinted band with label / value lines. */
body.skin-billdr #app table.dl-table tr.dl-tdetail td { background: var(--ds-tint); padding: 16px 20px 18px 56px; }
body.skin-billdr #app .dl-reg-field { font-size: var(--ds-fs-sm); color: var(--ds-ink); margin: 6px 0; }
body.skin-billdr #app .dl-reg-field b { font-weight: 600; color: var(--ds-navy); }
body.skin-billdr #app .dl-reg-meta { color: var(--ds-muted); font-size: var(--ds-fs-xs); margin-top: 10px; }

/* The log's own page (View) and the editor: card heads navy, labels
 * sentence-case (rule 5's "never all-caps"). */
body.skin-billdr #app .dl-detail { padding: 20px 24px; }
body.skin-billdr #app .dl-detail-title { font-size: var(--ds-fs-xl); font-weight: 700; color: var(--ds-navy); }
body.skin-billdr #app .dl-detail-meta { font-size: var(--ds-fs-sm); color: var(--ds-muted); }
body.skin-billdr #app .dl-detail-field { font-size: var(--ds-fs-sm); margin: 8px 0; }
body.skin-billdr #app .dl-detail-field b { font-weight: 600; color: var(--ds-navy); }
body.skin-billdr #app .dl-detail-thumb { border-radius: var(--ds-r-sm); border: 1px solid var(--ds-line); }
body.skin-billdr #app .dl-comments-h { font-size: var(--ds-fs-md); font-weight: 700; color: var(--ds-navy); }
body.skin-billdr #app .dl-comment { border-top-color: var(--ds-hair); font-size: var(--ds-fs-sm); }
body.skin-billdr #app .dl-editor { padding: 20px 24px; }
body.skin-billdr #app .dl-ed-head h2 { font-size: var(--ds-fs-xl); font-weight: 700; color: var(--ds-navy); }
body.skin-billdr #app :is(.dl-ed-field > span, .dl-ed-label, .dl-ed-weather legend, .dl-ed-delay legend) {
  font-size: var(--ds-fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ds-navy);
}
body.skin-billdr #app :is(.dl-ed-weather, .dl-ed-delay) { border-color: var(--ds-line); border-radius: var(--ds-r); }
body.skin-billdr #app .dl-ed-field :is(input[type="text"], input[type="date"], select),
body.skin-billdr #app .dl-ed-weather input { min-height: var(--ds-ctl); padding: 0 12px; }
body.skin-billdr #app .dl-ed-check { font-size: var(--ds-fs-sm); color: var(--ds-ink); gap: 10px; }
body.skin-billdr #app .dl-ed-thumbs .dl-reg-thumb { border-radius: var(--ds-r-sm); border: 1px solid var(--ds-line); }

/* Project page → Daily Logs tab: the flags filter row sits like a
 * filter bar; its helper line is grey meta. */
body.skin-billdr #app .dl-filterbar > .muted { font-size: var(--ds-fs-sm); }

@media (max-width: 760px) {
  body.skin-billdr #app #view-dailylog > .page-head { padding-right: 0; }
  body.skin-billdr #app #view-dailylog #dl-new { position: static; order: 10; }
  body.skin-billdr #app #view-dailylog > .filterbar > label:not(.dl-expand-toggle) { flex: 1 1 100%; max-width: none; }
  body.skin-billdr #app table.dl-table tr.dl-tdetail td { padding-left: 16px; }
}
/* (DW1 addendum) the Expand all caption: sentence case, not the old
 * uppercase filter-label dress from styles.css. */
body.skin-billdr #app #view-dailylog .dl-expand-toggle { text-transform: none; letter-spacing: 0; font-size: var(--ds-fs-sm); }

/* ======================= DW2 P03 · Daily logs (2026-10-18) =======================
 * Comments column, the share switch's On/Off word, Billdr's photo
 * cluster (three squares, the third wearing a dark "+N"), Export CSV,
 * the project tab's Create door, the log's own page (sections, photo
 * grid, comments rail) and the sectioned editor. Structure first
 * (plain selectors: they hold in the Navy appearance too), then the
 * light skin's look. */

/* -- structure -- */
.dl-reg-thumbbtn, .dl-photo-cell, .dl-reg-comments {
  font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit;
}
.dl-reg-thumbbtn { position: relative; display: inline-flex; vertical-align: middle; margin-right: 6px; border-radius: 8px; }
.dl-reg-thumbbtn:last-child { margin-right: 0; }
.dl-reg-thumbbtn > .dl-reg-thumb { display: block; }
.dl-reg-thumbbtn.has-more > .dl-reg-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: inherit; background: rgba(11, 34, 53, .72); color: #fff; font-size: 13px; font-weight: 700;
}
.dl-reg-comments { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; font-size: 14px; }
.dl-reg-comments .i-btn { width: 16px; height: 16px; }
.dl-reg-comments.is-zero { opacity: .65; }
.dl-share-word { font-size: 13px; min-width: 2em; }
.dl-share-cap { font-size: 13px; }
.dl-filterbar { align-items: center; }
.dl-proj-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#view-dailylog .filterbar > .dl-export { flex: none; margin-left: auto; }

/* The log's own page: main column + comments rail. */
.dl-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.dl-detail-rail { border-left: 1px solid var(--line, #e5e0d5); padding-left: 24px; min-width: 0; }
.dl-detail-rail .dl-comments-h { margin-top: 0; }
.dl-detail-ref { margin: 0 0 2px; }
.dl-detail-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 8px; }
.dl-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-fact small { font-size: 12px; color: var(--muted, #777); }
.dl-fact b { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.dl-sec { padding: 14px 0; border-top: 1px solid var(--line, #e5e0d5); }
.dl-sec-h { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dl-sec-text { margin: 0; white-space: pre-wrap; }
.dl-weather-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-weather-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--line, #e5e0d5); border-radius: 10px; min-width: 110px; }
.dl-weather-tile small { font-size: 12px; color: var(--muted, #777); }
/* wave545 — the weather block with its symbol (weather-symbols.js):
 * big symbol + temperature, the condition words, feels-like under,
 * then the measured tiles. The mini rides the register cell and the
 * expanded row's weather line. */
.dl-wx { display: flex; flex-direction: column; gap: 10px; }
.dl-wx-hero { display: flex; align-items: center; gap: 14px; }
.dl-wx-ico { width: 46px; height: 46px; flex: none; color: var(--gold, #b98a2f); }
.dl-wx-temp { font-size: 32px; font-weight: 650; line-height: 1; color: var(--ink, #14202e); white-space: nowrap; }
.dl-wx-unit { font-size: 17px; font-weight: 600; margin-left: 2px; }
.dl-wx-words { display: flex; flex-direction: column; gap: 1px; }
.dl-wx-words b { font-size: 15.5px; font-weight: 600; color: var(--ink, #14202e); }
.dl-wx-words small { font-size: 13px; color: var(--muted, #66717f); }
.dl-wx-mini { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--gold, #b98a2f); }
.dl-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.dl-photo-cell { display: block; border-radius: 10px; overflow: hidden; }
.dl-photo-grid .dl-detail-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.dl-detail-actions { flex-wrap: wrap; justify-content: flex-end; }
.dl-detail-del { color: var(--bad, #a33); }
.dl-comment { display: flex; gap: 10px; }
.dl-comment-main { min-width: 0; flex: 1; }
.dl-comment-av .avatar-chip { width: 28px; height: 28px; font-size: 10px; }

/* The editor's sections. */
.dl-ed-sec { margin: 14px 0 0; padding: 14px 16px 6px; border: 1px solid var(--line, #e5e0d5); border-radius: 10px; }
.dl-ed-sec-h { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dl-ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl-ed-thumbs { align-items: center; }
.dl-ed-thumbs .dl-photo-cell { border-radius: 8px; }
.dl-ed-thumbs .dl-reg-thumb { display: block; }
.dl-ed-upload { gap: 6px; align-items: center; }
.dl-ed-sec .dl-ed-delay { margin: 10px 0 8px; }
.dl-ed-bar { position: sticky; bottom: 0; background: var(--card, #fff); padding: 12px 0 2px; }

@media (max-width: 1100px) {
  .dl-detail-grid { grid-template-columns: 1fr; }
  .dl-detail-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--line, #e5e0d5); padding-top: 14px; }
}
@media (max-width: 720px) {
  .dl-ed-row { grid-template-columns: 1fr; }
  .dl-proj-actions { margin-left: 0; }
}

/* -- light skin look -- */
body.skin-billdr #app #view-dailylog > .filterbar > label.dl-expand-toggle { flex: 1 1 60%; }
body.skin-billdr #app #view-dailylog > .filterbar > .dl-export { min-height: var(--ds-ctl-sm); }
body.skin-billdr #app table.dl-table td { padding-top: 18px; padding-bottom: 18px; }
body.skin-billdr #app table.dl-table .dl-reg-thumb { width: 56px; height: 56px; border-radius: var(--ds-r-sm); }
body.skin-billdr #app table.dl-table .dl-reg-thumbbtn { border-radius: var(--ds-r-sm); }
body.skin-billdr #app table.dl-table .dl-reg-thumbbtn:focus-visible,
body.skin-billdr #app .dl-photo-cell:focus-visible,
body.skin-billdr #app .dl-reg-comments:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app table.dl-table .dl-reg-thumbbtn.has-more > .dl-reg-more {
  width: auto; height: auto; background: rgba(11, 34, 53, .72); font-size: var(--ds-fs-sm);
}
body.skin-billdr #app table.dl-table th.dl-c-comments { white-space: nowrap; }
body.skin-billdr #app .dl-reg-comments { color: var(--ds-navy); font-size: var(--ds-fs-sm); font-weight: 600; }
body.skin-billdr #app .dl-reg-comments:hover { background: var(--ds-bg); }
body.skin-billdr #app .dl-reg-comments .i-btn { color: var(--ds-muted); }
body.skin-billdr #app .dl-reg-comments.is-zero { opacity: 1; color: var(--ds-muted); font-weight: 500; }
body.skin-billdr #app .dl-share-word { color: var(--ds-muted); font-size: var(--ds-fs-sm); }
body.skin-billdr #app label.dl-reg-share > input:checked + .dl-share-word,
body.skin-billdr #app .dl-ed-check > input:checked ~ .dl-share-word { color: var(--ds-ink); font-weight: 600; }
body.skin-billdr #app .dl-share-cap { color: var(--ds-ink); font-size: var(--ds-fs-sm); font-weight: 600; }
body.skin-billdr #app .dl-filterbar > .dl-flagnote { flex: 1 1 260px; }

/* the log's own page */
body.skin-billdr #app .dl-detail { padding: 20px 28px 24px; }
body.skin-billdr #app .dl-detail-bar { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ds-hair); }
body.skin-billdr #app .dl-detail-title { font-size: var(--ds-fs-page); line-height: 1.2; margin: 0 0 4px; }
body.skin-billdr #app .dl-detail-facts { margin: 14px 0 10px; }
body.skin-billdr #app .dl-fact small { color: var(--ds-muted); font-size: var(--ds-fs-xs); }
body.skin-billdr #app .dl-fact b { color: var(--ds-navy); font-size: var(--ds-fs); }
body.skin-billdr #app .dl-fact b .avatar-chip { width: 26px; height: 26px; font-size: 10px; }
body.skin-billdr #app .dl-sec { border-top-color: var(--ds-hair); padding: 16px 0; }
body.skin-billdr #app .dl-sec-h { color: var(--ds-navy); font-size: var(--ds-fs-md); font-weight: 700; }
body.skin-billdr #app .dl-sec-text { color: var(--ds-ink); font-size: var(--ds-fs); line-height: 1.55; }
body.skin-billdr #app .dl-sec-text.muted { color: var(--ds-muted); font-size: var(--ds-fs-sm); }
body.skin-billdr #app .dl-weather-tile { border-color: var(--ds-line); border-radius: var(--ds-r-sm); background: var(--ds-tint); }
body.skin-billdr #app .dl-weather-tile small { color: var(--ds-muted); font-size: var(--ds-fs-xs); }
body.skin-billdr #app .dl-weather-tile b { color: var(--ds-navy); font-size: var(--ds-fs-md); }
body.skin-billdr #app .dl-photo-cell { border-radius: var(--ds-r-sm); border: 1px solid var(--ds-line); background: var(--ds-fill); }
body.skin-billdr #app .dl-photo-cell:hover { border-color: var(--ds-gold-line); }
body.skin-billdr #app .dl-photo-grid .dl-detail-thumb { border: 0; border-radius: 0; width: 100%; height: auto; }
body.skin-billdr #app .dl-detail-rail { border-left-color: var(--ds-line); }
body.skin-billdr #app .dl-detail-del { color: var(--ds-danger); }
body.skin-billdr #app .dl-comment { border-top-color: var(--ds-hair); padding: 12px 0; }
body.skin-billdr #app .dl-comment-meta b { color: var(--ds-navy); }
body.skin-billdr #app .dl-comment-meta .muted { font-size: var(--ds-fs-xs); }
body.skin-billdr #app .dl-comment-body { color: var(--ds-ink); font-size: var(--ds-fs-sm); line-height: 1.5; }
body.skin-billdr #app .dl-comment-new textarea { border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); padding: 10px 12px; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .dl-comment-none { font-size: var(--ds-fs-sm); }

/* the editor */
body.skin-billdr #app .dl-ed-sec { border-color: var(--ds-line); border-radius: var(--ds-r); padding: 16px 18px 8px; background: var(--ds-card); }
body.skin-billdr #app .dl-ed-sec-h,
body.skin-billdr #app fieldset.dl-ed-sec > legend { color: var(--ds-navy); font-size: var(--ds-fs-md); font-weight: 700; }
body.skin-billdr #app fieldset.dl-ed-weather.dl-ed-sec { margin: 14px 0 0; padding: 12px 18px 14px; }
body.skin-billdr #app .dl-ed-sec .dl-ed-delay { border-color: var(--ds-line); }
body.skin-billdr #app .dl-ed-thumbs .dl-reg-thumb { width: 72px; height: 72px; }
body.skin-billdr #app .dl-ed-bar { background: var(--ds-card); border-top: 1px solid var(--ds-hair); margin-top: 18px; }
/* the project tab's Expand all wears the same switch as the page's */
body.skin-billdr #app .dl-filterbar > label.dl-proj-expand { text-transform: none; letter-spacing: 0; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .dl-proj-expand > input#proj-dl-expand {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer; vertical-align: middle;
  width: 36px; height: 20px; min-width: 36px; padding: 0; border: 0; border-radius: var(--ds-r-pill);
  background: #d3d9e1 radial-gradient(circle, #fff 7px, transparent 7.5px) no-repeat 0 0 / 20px 20px;
  transition: background-color .15s, background-position .15s;
}
body.skin-billdr #app .dl-proj-expand > input#proj-dl-expand:checked { background-color: var(--ds-gold-strong); background-position: 16px 0; }
body.skin-billdr #app .dl-proj-expand > input#proj-dl-expand:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app table.dl-table .dl-reg-thumb { width: 48px; height: 48px; }
body.skin-billdr #app table.dl-table .dl-reg-thumbbtn { margin-right: 4px; }
body.skin-billdr #app table.dl-table td.dl-reg-proj { min-width: 150px; max-width: 220px; }
body.skin-billdr #app table.dl-table td.dl-reg-title { min-width: 120px; }
.dl-comment-new textarea, .dl-editor textarea { font: inherit; }
