/* ============================================================
   worktools.css — v24 "Zen Desk": Morning Meeting three lists,
   Notes page, Quick note. Tokens only (css/tokens.css); loaded
   last so it can style the pages owned here without touching
   any other CSS file. Both themes via [data-theme="dark"].
   ============================================================ */

/* ---------- Morning Meeting: the three lists ---------- */
#view-standup .su-lists {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5, 14px);
  margin-bottom: var(--s-5, 14px);
}
@media (max-width: 900px) {
  #view-standup .su-lists { grid-template-columns: 1fr; }
}
#view-standup .su-list {
  border-left: 3px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
#view-standup .su-list-teal   { border-left-color: var(--c-teal); }
#view-standup .su-list-teal   .wh-side-h { background: color-mix(in srgb, var(--c-teal) 6%, transparent); }
#view-standup .su-list-orange { border-left-color: var(--orange); }
#view-standup .su-list-orange .wh-side-h { background: color-mix(in srgb, var(--orange) 6%, transparent); }
#view-standup .su-list-violet { border-left-color: var(--c-violet); }
#view-standup .su-list-violet .wh-side-h { background: color-mix(in srgb, var(--c-violet) 6%, transparent); }
#view-standup .su-list .wh-side-h { margin: calc(-1 * var(--s-7)) calc(-1 * var(--s-8)) 8px; padding: 10px var(--s-8); border-radius: var(--r) var(--r) 0 0; }
#view-standup .su-list-add { display: flex; }
#view-standup .su-list-add input { width: 100%; }
#view-standup .su-list-rows { display: flex; flex-direction: column; gap: 6px; }

#view-standup .su-item {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 6px;
}
#view-standup .su-item.disc { opacity: .68; }
#view-standup .su-item-row { display: flex; align-items: center; gap: 8px; }
#view-standup .su-item-check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer; font-size: 12px; padding: 0;
}
#view-standup .su-item-check.on { background: var(--good); border-color: var(--good); color: #fff; }
#view-standup .su-item-check:focus-visible { outline: none; box-shadow: var(--ring); }
#view-standup .su-item-t { flex: 1 1 auto; font-size: var(--fs-sm, 13px); }
#view-standup .su-item.disc .su-item-t { text-decoration: line-through; text-decoration-color: var(--line); }
#view-standup .su-item-who {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-100);
  color: var(--navy-700); font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
[data-theme="dark"] #view-standup .su-item-who { background: rgba(255,255,255,.12); color: var(--ink); }
#view-standup .su-item-carry { font-size: var(--fs-2xs); color: var(--ink-3); white-space: nowrap; }
#view-standup .su-item-x { color: var(--ink-4); }
#view-standup .su-item-x:hover { color: var(--bad); }
#view-standup .su-item-note { font-size: var(--fs-xs, 12px); padding: 5px 8px; }
#view-standup .su-item-note:disabled { opacity: .55; }

/* ---------- Notes page ---------- */
#view-notes .nt-card, #view-notes .nt-row { transition: box-shadow var(--fast); }
#view-notes .nt-actions { display: flex; gap: 8px; align-items: center; }
#view-notes .nt-editor .wh-detail-actions .btn.danger,
#view-notes .nt-editor .wh-detail-actions .btn.ghost.danger { color: var(--bad); }

/* ---------- Quick note ---------- */
.qn-btn {
  position: fixed; right: 22px; bottom: 84px; z-index: 45;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--orange); color: #fff; box-shadow: var(--sh-2);
  display: grid; place-items: center; cursor: pointer;
}
.qn-btn:hover { background: var(--orange-600); }
.qn-btn:focus-visible { outline: none; box-shadow: var(--ring), var(--sh-2); }
.qn-panel {
  position: fixed; right: 22px; bottom: 140px; z-index: 46; width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.qn-panel textarea {
  width: 100%; min-height: 110px; resize: vertical; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); padding: 8px 10px;
  font: inherit; font-size: var(--fs-sm, 13px);
}
.qn-panel textarea:focus-visible { outline: none; box-shadow: var(--ring); }
.qn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qn-recent { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.qn-recent-h { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.qn-recent-row {
  text-align: left; background: none; border: 0; padding: 4px 2px; border-radius: var(--r-xs);
  color: var(--ink-2); font-size: var(--fs-xs, 12px); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qn-recent-row:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 480px) {
  .qn-panel { right: 16px; left: 16px; width: auto; }
  .qn-btn { right: 16px; }
}

/* v24 polish: note cards — meta on its own line, actions wrap cleanly; pin reads as on/off */
#view-notes .nt-card-f { flex-wrap: wrap; row-gap: 8px; }
#view-notes .nt-card-f > .note { flex-basis: 100%; }
#view-notes .nt-card-f > .grow { display: none; }
#view-notes .nt-pin { color: var(--ink-4); }
#view-notes .nt-card.pinned .nt-pin, #view-notes .nt-pin.on { color: var(--c-amber); }
