/* Planner (board + agenda), inbox, activity, team. Precomputed colors only. */
.eyebrow { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.pl-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pl-sub { color: var(--ink-3); margin-top: 6px; font-size: 14.5px; }
.pl-sub b { color: var(--ink); font-weight: 750; }
.pl-nav { display: flex; align-items: center; gap: 6px; }
.pl-nav .btn { min-height: 40px; }
.nav-btn { background: var(--sf); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-btn:hover { background: var(--bg); }
.pl-nav .btn[aria-current="date"] { background: var(--bg); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.pl-bar { display: flex; height: 8px; margin: 16px 0 14px; border-radius: 999px; overflow: hidden; background: var(--line); }
.pl-bar b { display: block; background: #8DB43A; border-radius: 999px; }
html[data-mode="dark"] .pl-bar b { background: #BFE478; }
html[data-mode="dark"] .pl-bar, html[data-mode="dark"] .wk-meter { background: #4A5157; }
/* week strip */
.wk-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; scroll-padding: 0 var(--gut); }
@media (max-width: 860px) { .wk-strip { margin: 0 calc(-1 * var(--gut)) 10px; padding: 2px var(--gut) 8px; scrollbar-width: none; } .wk-strip::-webkit-scrollbar { display: none; } }
.wk { position: relative; flex: 1 0 92px; max-width: 160px; scroll-snap-align: center; display: grid; gap: 2px; min-width: 92px; padding: 9px 12px 12px; border-radius: var(--r-tile); background: var(--sf); box-shadow: var(--e1); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.wk:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.wk[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink), var(--e1); }
html[data-mode="dark"] .wk[aria-current="true"] { box-shadow: inset 0 0 0 2px #F4F5F7, var(--e1); }
.wk-d { font-weight: 750; font-size: 14px; }
.wk-p { font-size: 12.5px; color: var(--ink-3); font-weight: 650; font-variant-numeric: tabular-nums; }
.wk .dot-new { position: absolute; top: 12px; right: 12px; }
.wk-meter { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wk-meter b { display: block; height: 100%; background: #8DB43A; }
html[data-mode="dark"] .wk-meter b { background: #BFE478; }
.pl-callout { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-card); background: var(--acc-soft); box-shadow: inset 0 0 0 1px rgba(109,148,30,.22); }
html[data-mode="dark"] .pl-callout { box-shadow: inset 0 0 0 1px rgba(191,228,120,.18); }
.pl-callout p { flex: 1; font-size: 14.5px; color: var(--ink-2); }
.pl-callout b { color: var(--ink); }
.pc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #BFE478; color: #1F2328; flex: none; }
.pl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.view-seg svg { width: 16px; height: 16px; }
/* board */
.pl-body.view-board .agenda { display: none; }
.pl-body.view-list .board { display: none; }
.board { --bd-ch: 148px; background: var(--sf); border-radius: var(--r-panel); box-shadow: var(--e1); overflow: hidden; }
.bd-row { display: grid; grid-template-columns: var(--bd-cols, var(--bd-ch) repeat(7, minmax(0, 1fr))); }
.bd-row.empty .bd-cell { min-height: 46px; }
.bd-row.empty .bd-ch { padding-top: 13px; padding-bottom: 10px; color: var(--ink-3); }
.bd-row + .bd-row { box-shadow: inset 0 1px 0 var(--hair); }
.bd-head { background: var(--bg); }
.bd-day { padding: 10px 10px 9px; display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--ink-3); box-shadow: inset 1px 0 0 var(--hair); }
.bd-day b { color: var(--ink-2); font-weight: 750; }
.bd-day.today { color: var(--ink); }
.bd-day.today span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--sel-bg); color: var(--sel-ink); font-weight: 750; }
html[data-mode="dark"] .bd-day.today span { background: #F4F5F7; color: #1F2328; }
.bd-ch { display: flex; align-items: flex-start; gap: 9px; padding: 12px 12px; color: var(--ink-2); }
.bd-ch svg { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); flex: none; }
.bd-ch b { display: block; font-size: 13.5px; font-weight: 750; line-height: 1.25; }
.bd-ch small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }
.bd-cell { min-height: 76px; padding: 6px; display: grid; align-content: start; gap: 6px; box-shadow: inset 1px 0 0 var(--hair); min-width: 0; }
.bd-cell.today { background: #FAFBF4; }
html[data-mode="dark"] .bd-cell.today { background: #33383C; }
.chip { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 7px 5px 5px; border-radius: var(--r-tile); background: var(--sf); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s, background .15s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 14px -8px var(--shd); transform: translateY(-1px); }
.chip img, .chip-ph { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg); display: grid; place-items: center; color: var(--ink-3); }
.chip-ph svg { width: 16px; height: 16px; }
.chip-tx { min-width: 0; display: grid; }
.chip-tx b { font-size: 12.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.chip-tx small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-st { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.chip.s-in_review .chip-st { background: #D9C63A; }
.chip.s-changes_requested .chip-st { background: var(--disc); }
.chip.s-approved .chip-st, .chip.s-scheduled .chip-st, .chip.s-posted .chip-st { background: #8DB43A; }
html[data-mode="dark"] .chip.s-approved .chip-st, html[data-mode="dark"] .chip.s-scheduled .chip-st, html[data-mode="dark"] .chip.s-posted .chip-st { background: #BFE478; }
.chip.s-rejected .chip-st { background: var(--teach); }
.chip.s-approved { background: var(--acc-soft); box-shadow: inset 0 0 0 1px rgba(109,148,30,.25); }
html[data-mode="dark"] .chip.s-approved { box-shadow: inset 0 0 0 1px rgba(191,228,120,.22); }
.chip.planned { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); border-radius: var(--r-tile); }
.chip.planned { background-image: none; outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; box-shadow: none; }
.chip.planned .chip-tx b { color: var(--ink-2); font-weight: 650; }
.chip.off { opacity: .55; }
.chip.off .chip-tx b { text-decoration: line-through; }
.chip-new { position: absolute; top: 5px; right: 5px; }
/* agenda (list) */
.agenda { display: grid; gap: 18px; }
.ag-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 0 2px 8px; }
.ag-h span:not(.tag) { color: var(--ink-3); font-weight: 650; }
.ag-list { display: grid; gap: 8px; }
.ag-none { color: var(--ink-3); font-size: 14px; padding: 12px 14px; border-radius: var(--r-card); outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; }
.icard { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px 14px 10px 10px; border-radius: var(--r-card); background: var(--sf); box-shadow: var(--e1); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.icard:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.icard.planned { background: none; box-shadow: none; outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; }
.ic-thumb { position: relative; width: 84px; height: 105px; border-radius: var(--r-tile); overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--ink-3); }
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-thumb .chip-ph { width: 100%; height: 100%; border-radius: 0; background: none; }
.ic-thumb.tall img { object-fit: cover; }
.ic-n { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(31,35,40,.72); color: #FFFFFF; font-size: 11.5px; font-weight: 750; }
.ic-n svg { width: 12px; height: 12px; }
.ic-body { min-width: 0; display: grid; gap: 5px; }
.ic-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ic-title { font-size: 15.5px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.ic-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ser { padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.ic-ch { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.chn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chn svg { width: 14px; height: 14px; }
.chn.off { text-decoration: line-through; opacity: .7; }
.ic-side { display: grid; justify-items: end; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.appr, .cmts { position: relative; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.appr svg, .cmts svg { width: 15px; height: 15px; }
.appr.met { color: var(--acc-ink); }
.cmts.new { color: var(--unread-ink); }
.cmts .dot-new { margin-left: 2px; }
.tag.needs { background: var(--unread-soft); color: var(--unread-ink); box-shadow: none; }
.tag.needs .dot-new { width: 6px; height: 6px; }
@media (max-width: 1180px) { .board { --bd-ch: 118px; } .bd-ch small { display: none; } }
@media (max-width: 960px) {
  .pl-body.view-board .board { display: none; }
  .pl-body.view-board .agenda { display: grid; }
  .view-seg { display: none; }
}
@media (max-width: 600px) {
  .pl-hd { align-items: flex-start; }
  .pl-nav { width: 100%; justify-content: space-between; }
  .pl-nav .btn { flex: 1; }
  .pl-tools .seg:first-child { width: 100%; }
  .pl-callout { flex-wrap: wrap; }
  .pl-callout p { flex-basis: calc(100% - 50px); }
  .pl-callout .btn { width: 100%; }
  .icard { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .ic-thumb { width: 64px; height: 80px; }
  .ic-side { grid-column: 2; display: flex; justify-content: flex-start; gap: 14px; }
  .ic-title { font-size: 15px; }
}

/* ---------- inbox ---------- */
.ib-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.ib-stat { padding: 14px 16px; border-radius: var(--r-card); background: var(--sf); box-shadow: var(--e1); display: grid; gap: 2px; }
.ib-stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ib-stat span { color: var(--ink-3); font-size: 13.5px; font-weight: 650; }
.ib-stat.hl { background: var(--unread-soft); box-shadow: inset 0 0 0 1px rgba(29,97,108,.14); }
.ib-stat.hl b { color: var(--unread-ink); }
.ib-sec { margin-top: 22px; }
.ib-sec > h2 { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 16px; }
.ib-sec > h2 .cnt { font-size: 12px; }
.ib-sec .ag-list { gap: 8px; }
@media (max-width: 600px) { .ib-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ib-stat { padding: 10px 12px; } .ib-stat b { font-size: 22px; } .ib-stat span { font-size: 12px; line-height: 1.3; } }

/* ---------- activity ---------- */
.act-list { list-style: none; margin: 0; padding: 6px 0; }
.act { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 12px 18px; }
.act + .act { box-shadow: inset 0 1px 0 var(--hair); }
.act .av { width: 32px; height: 32px; font-size: 12px; }
.act-tx { font-size: 14.5px; line-height: 1.45; min-width: 0; }
.act-tx b { font-weight: 750; }
.act-tx a { font-weight: 700; text-decoration: none; color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--line-2); }
.act-tx a:hover { box-shadow: inset 0 -1.5px 0 var(--ink-3); }
.act-q { display: block; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-size: 13.5px; overflow-wrap: anywhere; }
.act-t { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }
.act-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); }
.act-ico svg { width: 16px; height: 16px; }
.act-ico.ok { background: var(--acc-soft); color: var(--acc-ink); }
.act-ico.warn { background: var(--disc-soft); color: var(--disc-ink); }
.act-ico.no { background: var(--teach-soft); color: var(--teach-ink); }
.act-ico.talk { background: var(--vol-soft); color: var(--vol-ink); }
.act-more { display: flex; justify-content: center; padding: 10px 0 16px; }
@media (max-width: 600px) { .act { grid-template-columns: 30px minmax(0, 1fr); padding: 12px 14px; row-gap: 0; } .act-t { grid-column: 2; margin-top: -2px; } }

/* ---------- team ---------- */
.tm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.tm-card { padding: 18px 20px; }
.tm-card > h2 { margin-bottom: 4px; }
.tm-card > p.muted { font-size: 14px; margin-bottom: 14px; }
.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-u { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.tm-u + .tm-u { box-shadow: inset 0 1px 0 var(--hair); }
.tm-u b { display: block; font-weight: 750; }
.tm-u small { display: block; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.tm-u .tm-st { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tm-act { display: flex; align-items: center; gap: 6px; }
.tm-form { display: grid; gap: 12px; }
.tm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick { display: grid; gap: 6px; }
.role-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.role-pick label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--bg); }
html[data-mode="dark"] .role-pick label:has(input:checked) { box-shadow: inset 0 0 0 1.5px #F4F5F7; }
.role-pick input { margin: 3px 0 0; accent-color: #6D941E; }
.role-pick b { display: block; font-size: 14px; }
.role-pick small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.linkbox { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-tile); background: var(--vol-soft); color: var(--vol-ink); font-size: 13.5px; font-weight: 600; }
.linkbox .inp { font-size: 13px; background: var(--sf); }
.set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-row .sel { width: auto; min-width: 90px; }
.ob-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; }
.ob-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink-2); }
.ob-list li + li { box-shadow: inset 0 1px 0 var(--hair); }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tm-u { grid-template-columns: 32px minmax(0, 1fr); } .tm-act { grid-column: 2; } .tm-row2 { grid-template-columns: 1fr; } }
