/* Task Master — stage 1 (16 oct 2026). Reference: CollectUI "Folio" (@pankajstwt, post
 * d31bb143) — a views rail with counts beside dense rows. House tokens only; the catalog
 * defaults (`tb-btn`, `tb-seg`, `bp-chip`, `tb-empty`) carry the controls. See taskmaster.js. */

.tm-page { padding-bottom: 48px; }

/* index.html's inline `button {}` (navy, inline-flex) out-ranks a single class — the trap
   knowledge.css and pillars.css document. Every button here re-declares what it needs. */
.tm-page button { font-family: 'Outfit', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }

.tm-shell {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 28px;
  align-items: start;
}

/* ------------------------------------------------------------------ rail */

.tm-rail {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 2px;
}
.tm-name { margin: 0 0 14px 8px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--bb-ink); }
.tm-views, .tm-tags { display: flex; flex-direction: column; gap: 1px; }
/* Search sits in the rail, above the views — the Things / TickTick sidebar pattern: it is a way
 * INTO the list, so it lives with the navigation, not in the pane next to the quick-add. */
.tm-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 0 9px; height: 34px;
  border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
  transition: box-shadow var(--bb-t-fast, .12s) ease-out;
}
.tm-search:focus-within { box-shadow: var(--bb-sh-focus, 0 0 0 2px var(--bb-accent, #1B4A9C)); }
.tm-page .tm-search input {
  flex: 1 1 auto; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  font: 400 13px/1.3 'Outfit', system-ui, sans-serif; color: var(--bb-ink);
}
.tm-page .tm-search input::-webkit-search-cancel-button { display: none; }
.tm-page .tm-search input::placeholder { color: var(--bb-ink-3, #8A8578); }
.tm-page .tm-search-x {
  border: 0; background: transparent; box-shadow: none; padding: 2px 4px; min-height: 0;
  font-size: 11px; color: var(--bb-ink-3, #8A8578); cursor: pointer;
}
.tm-page .tm-search-x:hover { color: var(--bb-ink); }
.tm-page .tm-view, .tm-page .tm-tag {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 9px; border: 0; border-radius: var(--bb-r-control, 8px);
  background: transparent; color: var(--bb-ink-2, #5A564F); box-shadow: none;
  font-size: 13px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background-color var(--bb-t-fast, .12s) ease-out, color var(--bb-t-fast, .12s) ease-out;
}
.tm-page .tm-view:hover, .tm-page .tm-tag:hover { background: var(--bb-hover, #F4F2EC); color: var(--bb-ink); }
.tm-page .tm-view.is-on, .tm-page .tm-tag.is-on {
  background: var(--bb-surface, #fff); color: var(--bb-ink);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
}
.tm-view span, .tm-tag span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ic { width: 16px; height: 16px; flex: 0 0 16px; color: var(--bb-ink-3, #8A8578); }
.tm-view.is-on .tm-ic { color: var(--bb-accent, #1B4A9C); }
.tm-ic-sm { width: 14px; height: 14px; flex-basis: 14px; }
.tm-ic-xs { width: 12px; height: 12px; flex-basis: 12px; }
.tm-n {
  font: 500 11.5px/1 var(--bb-mono); font-variant-numeric: tabular-nums;
  color: var(--bb-ink-3, #8A8578);
}
.tm-n-late {
  padding: 2px 5px; border-radius: var(--bb-r-chip, 6px);
  color: var(--bb-red, #B23B3B); background: var(--bb-red-tint, #F9EBEB);
}
.tm-rail-h {
  margin: 16px 9px 4px; font-size: 11px; font-weight: 600; color: var(--bb-ink-3, #8A8578);
  text-transform: uppercase; letter-spacing: .06em;
}
.tm-page .tm-cap { margin-top: 16px; border-top: 1px solid var(--bb-line, #E6E1D8); border-radius: 0 0 var(--bb-r-control, 8px) var(--bb-r-control, 8px); padding-top: 10px; }
.tm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bb-line-strong, #D4CFC4); }
.tm-dot.on { background: var(--bb-green, #2E7D52); }

/* ------------------------------------------------------------------ pane */

.tm-pane { min-width: 0; max-width: 880px; }
.tm-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.tm-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--bb-ink); }
.tm-head-n { font-size: 14px; color: var(--bb-ink-3, #8A8578); }
.tm-mono { font-family: var(--bb-mono); font-variant-numeric: tabular-nums; }
.tm-page .tm-tagoff { cursor: pointer; align-self: center; }

.tm-add {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 0 14px; height: 46px;
  border-radius: var(--bb-r-card, 12px);
  background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
  transition: box-shadow var(--bb-t-fast, .12s) ease-out;
}
.tm-add:focus-within { box-shadow: var(--bb-sh-focus, 0 0 0 2px var(--bb-accent, #1B4A9C)); }
.tm-add-plus { font: 400 20px/1 'Outfit', system-ui, sans-serif; color: var(--bb-ink-3, #8A8578); }
.tm-page .tm-add input {
  flex: 1 1 auto; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  font: 400 14px/1.3 'Outfit', system-ui, sans-serif; color: var(--bb-ink);
}
.tm-page .tm-add input::placeholder { color: var(--bb-ink-3, #8A8578); }

.tm-group + .tm-group { margin-top: 18px; }
.tm-group-h {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px 4px;
  font-size: 12px; font-weight: 600; color: var(--bb-ink-2, #5A564F);
}
.tm-group-h b { font-weight: 500; color: var(--bb-ink-3, #8A8578); font-size: 11.5px; }
.tm-group-h.is-neg span { color: var(--bb-red, #B23B3B); }
/* Someone else's action items: a folded header he clicks open (Mías never folds). */
.tm-owner-h { border: 0; background: transparent; padding: 4px 6px 4px 4px; margin-left: 0; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: var(--bb-ink-2, #5A564F); align-items: center; }
.tm-owner-h:hover { background: var(--bb-hover, rgba(13,42,94,0.05)); color: var(--bb-ink, #1C1B19); }
.tm-owner-h:focus-visible { outline: 2px solid var(--bb-navy, #0D2A5E); outline-offset: 1px; }
.tm-chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin: 0 2px 0 2px; flex: none; }
.tm-group.is-open .tm-chev { transform: rotate(45deg); }
.tm-group:not(.is-open) + .tm-group:not(.is-open) { margin-top: 4px; }

.tm-list {
  list-style: none; margin: 0; padding: 0;
  border-radius: var(--bb-r-card, 12px); background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
  overflow: hidden;
}
.tm-row { border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-row:first-child { border-top: 0; }
.tm-line {
  display: flex; align-items: center; gap: 11px; padding: 9px 14px; min-height: 44px; cursor: pointer;
  transition: background-color var(--bb-t-fast, .12s) ease-out;
}
.tm-row:not(.is-open) .tm-line:hover { background: var(--bb-hover, #F4F2EC); }
.tm-row.is-open { background: var(--bb-page, #F5F3EE); }
.tm-main { flex: 1 1 auto; min-width: 0; }
/* beautiful.css styles every bare text/date input (0,1,1) — these re-declare under .tm-page. */
.tm-page .tm-title {
  display: block; width: 100%; box-sizing: border-box; padding: 2px 0; margin: 0;
  min-height: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; cursor: inherit;
  font: 500 14px/1.35 'Outfit', system-ui, sans-serif; color: var(--bb-ink);
  text-overflow: ellipsis;
}
.tm-page .tm-row.is-open .tm-title { cursor: text; font-weight: 600; }
/* Open row: the title wraps in full (textarea, height fitted by fitTitle) and the chips drop to
   their own line under it, aligned with the title — beside it they squeezed it to an ellipsis. */
.tm-row.is-open .tm-line { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; cursor: default; }
.tm-row.is-open .tm-check { margin-top: 1px; }
.tm-page .tm-row.is-open textarea.tm-title {
  resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.4;
}
.tm-row.is-open .tm-chips { flex-basis: 100%; max-width: 100%; justify-content: flex-start; padding-left: 31px; }
.tm-page .tm-row.is-done .tm-title { color: var(--bb-ink-3, #8A8578); text-decoration: line-through; text-decoration-color: var(--bb-ink-3, #8A8578); }
.tm-prev {
  margin-top: 1px; font-size: 12.5px; color: var(--bb-ink-3, #8A8578);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-chips { display: flex; align-items: center; gap: 5px; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.tm-chips .bp-chip i { font-style: normal; font-family: var(--bb-mono); font-variant-numeric: tabular-nums; font-weight: 500; opacity: .85; }
.tm-chip-date.tm-today { color: var(--bb-accent-ink, #11326D); background: var(--bb-accent-tint, #E8EEF8); }
.tm-chip-who { color: var(--bb-violet, #6B4FBB); background: var(--bb-violet-tint, #F0ECFA); }
/* The agency's: same chip, the accent instead of violet — a hand-off reads apart from waiting on
 * a colleague at a glance. Its check is dashed: done here means "WildFi delivered". */
.tm-chip-who.tm-chip-agency { color: var(--bb-accent-ink, #11326D); background: var(--bb-accent-tint, #E8EEF8); }
.tm-page .tm-check.is-agency:not([aria-pressed="true"]) { border-style: dashed; }
.tm-page .tm-own { margin-left: auto; align-self: center; }
.tm-page .tm-own button { gap: 6px; padding: 0 10px; }
.tm-page .tm-own-ai { align-self: center; display: inline-flex; align-items: center; gap: 6px; }
.tm-chip-tag { cursor: pointer; }
.tm-src { display: inline-flex; color: var(--bb-ink-3, #8A8578); }
.tm-notedot { display: inline-flex; width: 20px; justify-content: center; color: var(--bb-ink-3, #8A8578); }

/* The AI sorter's marks (api/taskmasterAi.js). ✦ before a chip = the model set it; editing the
   field takes the mark off. The dots = still being sorted. */
.tm-chip-area { color: var(--bb-accent-ink, #11326D); background: var(--bb-accent-tint, #EAEFF8); cursor: pointer; }
.tm-chips .tm-ai::before { content: '✦'; font-size: 9px; margin-right: 1px; color: var(--bb-violet, #6B4FBB); }
.tm-sorting { display: inline-flex; gap: 3px; padding: 0 4px; align-items: center; height: 18px; }
.tm-sorting i { width: 4px; height: 4px; border-radius: 50%; background: var(--bb-violet, #6B4FBB); opacity: .35;
  animation: tm-dot 1.1s ease-in-out infinite; }
.tm-sorting i:nth-child(2) { animation-delay: .15s; }
.tm-sorting i:nth-child(3) { animation-delay: .3s; }
@keyframes tm-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .tm-sorting i { animation: none; opacity: .7; } }
.tm-raw { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--bb-ink-2, #5A564F); }
.tm-raw span { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--bb-ink-3, #8A8578); }
.tm-raw q { quotes: none; min-width: 0; overflow-wrap: anywhere; }

/* The check: a ring whose colour IS the priority — the row needs no extra priority chip. */
.tm-page .tm-check {
  flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.6px solid var(--bb-ink-3, #8A8578);
  background: transparent; color: transparent; box-shadow: none; cursor: pointer;
  transition: background-color var(--bb-t-fast, .12s) ease-out, border-color var(--bb-t-fast, .12s) ease-out, transform var(--bb-t-fast, .12s) ease-out;
}
.tm-page .tm-check svg { width: 12px; height: 12px; }
.tm-page .tm-check.p1 { border-color: var(--bb-accent, #1B4A9C); }
.tm-page .tm-check.p2 { border-color: var(--bb-orange, #C77D1B); }
.tm-page .tm-check.p3 { border-color: var(--bb-red, #B23B3B); border-width: 2px; }
.tm-page .tm-check:hover { color: var(--bb-ink-3, #8A8578); background: var(--bb-hover, #F4F2EC); }
.tm-page .tm-check:active { transform: scale(.9); }
.tm-page .tm-check[aria-pressed="true"] { background: var(--bb-green, #2E7D52); border-color: var(--bb-green, #2E7D52); color: #fff; }
.tm-row.is-done { animation: tm-settle .42s var(--bb-ease-strong, ease-out); }
@keyframes tm-settle { from { opacity: 1; } 60% { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tm-row.is-done { animation: none; } }

/* ---------------------------------------------------------------- editor */

.tm-ed { padding: 2px 14px 14px 45px; display: flex; flex-direction: column; gap: 12px; }
.tm-page .tm-ed-body {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink);
  font: 400 13.5px/1.55 'Outfit', system-ui, sans-serif; outline: 0;
}
.tm-page .tm-ed-body:focus, .tm-page .tm-f input:focus { border-color: var(--bb-accent, #1B4A9C); }
.tm-ed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tm-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-f-wide { grid-column: 1 / -1; }
.tm-f-half { grid-column: span 2; }
.tm-f span { font-size: 11px; font-weight: 600; color: var(--bb-ink-3, #8A8578); }
.tm-page .tm-f input {
  width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px; outline: 0;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink);
  font: 400 13px/1 'Outfit', system-ui, sans-serif;
}
.tm-page .tm-f input[type="date"], .tm-page .tm-f input[type="time"] { font-family: var(--bb-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tm-page .tm-f input:disabled { opacity: .5; }
.tm-ed-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-ed-meta { margin-left: auto; font-size: 11.5px; color: var(--bb-ink-3, #8A8578); }
/* The priority / kind picker. NOT .tm-seg — that is the transcript row, a 3-column grid, and the
   picker inherited it (Baja/Media/Alta wrapped into a 2x2 block). */
.tm-ed-acts { padding-top: 10px; border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-page .tm-pick { flex: none; }
.tm-page .tm-pick button { display: inline-flex; align-items: center; min-width: 44px; justify-content: center; background: transparent; color: var(--bb-ink-2, #5A564F); box-shadow: none; }
.tm-page .tm-pick button:hover { background: var(--bb-hover, #F4F2EC); color: var(--bb-ink, #1A1A1A); }
.tm-page .tm-pick button.is-on { background: var(--bb-surface, #fff); color: var(--bb-accent-ink, #11326D); box-shadow: var(--bb-sh-btn, 0 1px 2px rgba(13,42,94,.08)); }
.tm-page .tm-del { color: var(--bb-red, #B23B3B); }

/* ----------------------------------------------------------------- areas
   His own tree (taskmaster_areas). Sub-areas sit indented under their area; ✦ = the AI made it
   and he has not touched it yet. The editor card opens above the list while an area is selected. */
.tm-rail-h-act { display: flex; align-items: center; justify-content: space-between; margin-right: 4px; }
.tm-page .tm-plus {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--bb-r-chip, 6px);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--bb-ink-3, #8A8578); box-shadow: none;
  font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer;
}
.tm-page .tm-plus:hover { background: var(--bb-hover, #F4F2EC); color: var(--bb-ink, #1A1A1A); }
/* Section header = fold toggle. Inherits .tm-rail-h's type; the chevron turns -90deg when folded. */
.tm-page .tm-fold {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 0; margin-left: -2px;
  border: 0; background: transparent; box-shadow: none; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
}
.tm-page .tm-fold:hover { color: var(--bb-ink, #1A1A1A); }
.tm-fold-ic { width: 11px; height: 11px; flex: none; transition: transform .16s ease; }
.tm-fold[aria-expanded="false"] .tm-fold-ic { transform: rotate(-90deg); }
.tm-page .tm-tag.tm-sub { padding-left: 24px; font-size: 12.5px; }
.tm-ai-mark { font-style: normal; font-size: 10px; margin-right: 4px; color: var(--bb-violet, #6B4FBB); }
.tm-area-new { margin: 2px 0; }
.tm-page .tm-area-new input {
  width: 100%; box-sizing: border-box; height: 32px; min-height: 0; padding: 0 9px; outline: 0;
  border: 1px solid var(--bb-accent, #0D2A5E); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink); box-shadow: none;
  font: 500 13px/1 'Outfit', system-ui, sans-serif;
}
.tm-page .tm-area-editbtn { align-self: center; padding: 5px 10px; }
.tm-page .tm-area-editbtn.is-on { background: var(--bb-accent-tint, #EAEFF8); color: var(--bb-accent-ink, #11326D); }
.tm-area-ed { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.tm-area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tm-page .tm-f select, .tm-page .tm-f textarea {
  width: 100%; box-sizing: border-box; min-height: 34px; padding: 6px 10px; outline: 0;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink); box-shadow: none;
  font: 400 13px/1.45 'Outfit', system-ui, sans-serif;
}
.tm-page .tm-f textarea { resize: vertical; }
.tm-page .tm-f select:focus, .tm-page .tm-f textarea:focus { border-color: var(--bb-accent, #1B4A9C); }
.tm-page .tm-f select:disabled { opacity: .55; }
.tm-area-kids { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-f-l { font-size: 11px; font-weight: 600; color: var(--bb-ink-3, #8A8578); margin-right: 4px; }
.tm-area-kids .tm-chip-area { cursor: pointer; }
.tm-sub-new { margin: 0; width: 170px; }
.tm-page .tm-sub-new input { height: 26px; border-color: var(--bb-line, #E6E1D8); font-size: 12px; }
.tm-f-area { min-width: 200px; }

/* ------------------------------------------------------------ recordatorios
   The reminder presets (api/taskmasterCal.js). The chip on a row says a series is live on his
   Outlook calendar; the rail lists the presets with their times. */
.tm-chip-wf { color: var(--bb-violet, #6B4FBB); background: var(--bb-violet-tint, #F0ECFA); cursor: pointer; gap: 4px; }
.tm-chip-wf i { font-style: normal; font-weight: 600; opacity: .75; }
.tm-wf-t { display: block; font-style: normal; font-size: 11px; font-weight: 500; color: var(--bb-ink-3, #8A8578); margin-top: 1px; }
.tm-page .tm-wf { align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
.tm-chip-time { cursor: pointer; font-family: var(--bb-mono); font-variant-numeric: tabular-nums; }
.tm-page .tm-sub-new input[type="time"] { width: 124px; font-family: var(--bb-mono); }

/* --------------------------------------------------------------- capture */

.tm-card {
  padding: 16px; border-radius: var(--bb-r-card, 12px); background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
}
.tm-capcard { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.tm-cap-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.tm-cap-row span { flex: 0 0 96px; color: var(--bb-ink-3, #8A8578); font-size: 12px; font-weight: 600; }
.tm-cap-row b { font-weight: 500; color: var(--bb-ink); min-width: 0; overflow-wrap: anywhere; }
.tm-cap-token {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--bb-r-control, 8px); background: var(--bb-field, #F1EFE8);
}
.tm-cap-token code { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow-wrap: anywhere; color: var(--bb-ink); }
.tm-cap-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------------------- llamadas
   His call transcripts → action items by owner → tasks (api/taskmasterCalls.js). Reference:
   CollectUI "Task management layout" (square-ui, @ln_dev7) — a list that opens into a detail
   with the checklist grouped by person above the source text. Rows reuse .tm-line / .tm-check;
   they are NOT .tm-row (that class opens the item editor by data-tm-id). */
.tm-crow, .tm-arow { border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-crow:first-child, .tm-arow:first-child { border-top: 0; }
.tm-crow .tm-line:hover { background: var(--bb-hover, #F4F2EC); }
.tm-arow .tm-line { cursor: default; align-items: flex-start; }
.tm-arow .tm-check { margin-top: 1px; }
.tm-ctitle { font: 500 14px/1.35 'Outfit', system-ui, sans-serif; color: var(--bb-ink); overflow-wrap: anywhere; }
.tm-arow .tm-prev { white-space: normal; }
.tm-arow .tm-chips { max-width: 62%; }
.tm-actl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tm-arow.is-done .tm-ctitle { color: var(--bb-ink-3, #8A8578); text-decoration: line-through; }
.tm-arow.is-dis .tm-ctitle { color: var(--bb-ink-3, #8A8578); }
.tm-page .tm-check.tm-check-ghost { border-style: dashed; cursor: default; }
.tm-page .tm-check.tm-check-ghost:hover { background: transparent; }
.tm-page .tm-asel {
  height: 26px; min-height: 0; padding: 0 6px; outline: 0; box-shadow: none;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink-2, #5A564F);
  font: 500 12px/1 'Outfit', system-ui, sans-serif;
}
.tm-page .tm-abtn { padding: 4px 10px; font-size: 12px; }
.tm-page .tm-ax, .tm-page .tm-back {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: var(--bb-r-control, 8px); background: transparent; box-shadow: none;
  color: var(--bb-ink-3, #8A8578); font-size: 12px; cursor: pointer;
}
.tm-page .tm-ax:hover, .tm-page .tm-back:hover { background: var(--bb-hover, #F4F2EC); color: var(--bb-ink); }
.tm-page .tm-back { align-self: center; width: 30px; height: 30px; }
.tm-head-sp { flex: 1 1 auto; }
.tm-page .tm-upl { cursor: pointer; align-self: center; margin-left: auto; }
.tm-page .tm-chip-time { border: 0; box-shadow: none; }
.tm-page .tm-dis-h { border: 0; background: transparent; box-shadow: none; padding: 0; cursor: pointer; }
.tm-acts { margin: 0 0 22px; }
.tm-page .tm-extract { padding: 9px 16px; font-size: 13.5px; }
.tm-arun { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--bb-ink-2, #5A564F); }
.tm-load { padding: 12px 4px; }
.tm-segs { padding: 6px 0; max-height: 70vh; overflow: auto; }
.tm-seg {
  display: grid; grid-template-columns: 58px 168px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 5px 16px; font-size: 13px; line-height: 1.45;
  transition: background-color .4s ease-out;
}
.tm-seg.is-hit { background: var(--bb-accent-tint, #EAEFF8); }
.tm-seg-t { font-size: 11.5px; color: var(--bb-ink-3, #8A8578); }
.tm-seg-s { font-weight: 600; font-size: 12.5px; color: var(--bb-ink-2, #5A564F); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-seg p { margin: 0; color: var(--bb-ink); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .tm-seg { grid-template-columns: 48px minmax(0, 1fr); }
  .tm-seg-s { grid-column: 2; }
  .tm-seg p { grid-column: 2; }
  .tm-arow .tm-line { flex-wrap: wrap; }
  .tm-arow .tm-chips { max-width: 100%; justify-content: flex-start; padding-left: 31px; }
}

/* ---- Llamadas: cards · week calendar · the pop-up (16 oct 2026). Card = the catalog's row card
   (1px hairline on four sides + --bb-r-card, NO side stripe — state is a chip). Pop-up = the
   catalog's .bbh-pop, taller than its default by Miguel's ask (transcript + chat inside). */
.tm-pane { position: relative; }
.tm-page .tm-seg-lay { margin-left: auto; align-self: center; }
.tm-page .tm-seg-lay + .tm-upl { margin-left: 0; }
.tm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tm-page .tm-cc-title, .tm-page .tm-cc-when { flex: 0 0 auto; }
.tm-page .tm-ccard {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 128px;
  padding: 13px 14px 12px; margin: 0; text-align: left; cursor: pointer;
  white-space: normal; height: auto; font: inherit; text-transform: none; letter-spacing: normal;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-card, 12px);
  background: var(--bb-surface, #fff); box-shadow: none; color: var(--bb-ink);
  transition: border-color var(--bb-t-fast, .12s) ease-out, box-shadow var(--bb-t-fast, .12s) ease-out, transform var(--bb-t-fast, .12s) ease-out;
}
.tm-page .tm-ccard:hover { border-color: var(--bb-line-strong, #D6D0C4); box-shadow: var(--bb-sh-card, 0 1px 2px rgba(13,42,94,.06)); transform: translateY(-1px); }
.tm-page .tm-ccard.is-on { border-color: var(--bb-accent, #1B4A9C); }
.tm-cc-when { font-size: 11.5px; font-weight: 500; color: var(--bb-ink-3, #8A8578); }
.tm-cc-title { font: 600 14.5px/1.3 'Outfit', system-ui, sans-serif; letter-spacing: -.005em; color: var(--bb-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-avs { display: inline-flex; padding-left: 4px; }
.tm-av {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -4px;
  border-radius: 50%; box-shadow: 0 0 0 2px var(--bb-surface, #fff);
  font: 600 9.5px/1 'Outfit', system-ui, sans-serif; font-style: normal; letter-spacing: .02em;
}
.tm-av-accent { background: var(--bb-accent-tint, #EAEFF8); color: var(--bb-accent-ink, #11326D); }
.tm-av-violet { background: var(--bb-violet-tint, #F0ECFA); color: var(--bb-violet, #6B4FBB); }
.tm-av-green  { background: var(--bb-green-tint, #E7F3EC); color: var(--bb-green, #2E7D52); }
.tm-av-orange { background: var(--bb-orange-tint, #FBF0E2); color: var(--bb-orange, #C77D1B); }
.tm-av-cyan   { background: var(--bb-cyan-tint, #E3F3F6); color: var(--bb-cyan, #1F7A8C); }
.tm-av-gold   { background: var(--bb-gold-tint, #F8F1DD); color: var(--bb-gold, #9A7B1D); }
.tm-av-more   { background: var(--bb-field, #F1EFE8); color: var(--bb-ink-2, #5A564F); }
.tm-chip-ok { color: var(--bb-green, #2E7D52); background: var(--bb-green-tint, #E7F3EC); }
.tm-chip-run { padding-top: 0; padding-bottom: 0; }

.tm-cal-nav { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.tm-page .tm-cal-today { padding: 4px 12px; font-size: 12.5px; }
.tm-page .tm-flip svg { transform: scaleX(-1); }
.tm-cal-range { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--bb-ink); }
.tm-cal {
  display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr));
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-card, 12px);
  background: var(--bb-surface, #fff); overflow: hidden;
}
.tm-cal-corner { border-bottom: 1px solid var(--bb-line, #E6E1D8); }
.tm-cal-dh { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 10px 0 9px;
  border-bottom: 1px solid var(--bb-line, #E6E1D8); border-left: 1px solid var(--bb-line, #E6E1D8);
  font-size: 12px; font-weight: 500; color: var(--bb-ink-3, #8A8578); text-transform: capitalize; }
.tm-cal-dh b { font-size: 15px; font-weight: 600; color: var(--bb-ink); }
.tm-cal-dh.is-today b { color: var(--bb-accent-ink, #11326D); background: var(--bb-accent-tint, #EAEFF8); border-radius: 999px; padding: 1px 7px; }
.tm-cal-ad { display: flex; flex-direction: column; gap: 4px; padding: 5px 4px; border-left: 1px solid var(--bb-line, #E6E1D8); border-bottom: 1px solid var(--bb-line, #E6E1D8); }
.tm-cal-hours { display: flex; flex-direction: column; }
.tm-cal-hours span { box-sizing: border-box; padding: 0 8px 0 0; text-align: right; transform: translateY(-7px);
  font: 500 10.5px/1 var(--bb-mono); font-variant-numeric: tabular-nums; color: var(--bb-ink-3, #8A8578); }
.tm-cal-hours span:first-child { visibility: hidden; }
.tm-cal-col { position: relative; border-left: 1px solid var(--bb-line, #E6E1D8); }
.tm-cal-col.is-today { background: color-mix(in srgb, var(--bb-accent-tint, #EAEFF8) 45%, transparent); }
.tm-cal-line { display: block; box-sizing: border-box; border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-cal-line:first-child { border-top: 0; }
.tm-page .tm-cblock {
  position: absolute; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  margin: 1px 0 0; padding: 6px 8px; overflow: hidden; text-align: left; cursor: pointer;
  white-space: normal; font: inherit; text-transform: none; letter-spacing: normal; min-height: 0;
  border: 1px solid color-mix(in srgb, var(--bb-accent, #1B4A9C) 26%, transparent); border-radius: 8px;
  background: var(--bb-accent-tint, #EAEFF8); color: var(--bb-accent-ink, #11326D); box-shadow: none;
  transition: box-shadow var(--bb-t-fast, .12s) ease-out, border-color var(--bb-t-fast, .12s) ease-out;
}
.tm-page .tm-cblock:hover, .tm-page .tm-cblock.is-on { border-color: var(--bb-accent, #1B4A9C); box-shadow: var(--bb-sh-card, 0 1px 2px rgba(13,42,94,.08)); }
.tm-page .tm-cblock-ad { position: static; padding: 4px 7px; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
.tm-cblock-ad b { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-page .tm-cblock > span { flex: 0 0 auto; min-width: 0; }
.tm-page .tm-cb-when { display: block; font-size: 10.5px; font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-page .tm-cb-title { font: 600 12.5px/1.25 'Outfit', system-ui, sans-serif; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tm-page .tm-cblock.is-short { flex-direction: row; align-items: baseline; gap: 6px; padding-top: 4px; padding-bottom: 4px; }
.tm-page .tm-cblock.is-short .tm-cb-title { -webkit-line-clamp: 1; flex: 1 1 auto; }
.tm-page .tm-cblock + .tm-cblock { box-shadow: 0 0 0 2px var(--bb-surface, #fff); }
.tm-cblock .tm-av { width: 20px; height: 20px; font-size: 8.5px; box-shadow: 0 0 0 2px var(--bb-accent-tint, #EAEFF8); }

.tm-page .tm-pop {
  width: min(560px, 100%); max-height: min(82vh, 780px); display: flex; flex-direction: column; z-index: 20;
  animation: tm-pop-in .18s var(--bb-ease-strong, cubic-bezier(.16,1,.3,1)) both;
}
@keyframes tm-pop-in { from { opacity: 0; transform: translateY(4px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-page .tm-pop { animation: none; } }
.tm-page .tm-pop::before { top: var(--arrow, 22px); }
.tm-pop.tm-pop-l::before { left: auto; right: -6px; }
.tm-pop-h { display: flex; align-items: flex-start; gap: 4px; padding: 14px 12px 6px 16px; }
.tm-pop-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tm-pop-t b { font: 600 15px/1.3 'Outfit', system-ui, sans-serif; color: var(--bb-ink); }
.tm-pop-t span { font-size: 12px; color: var(--bb-ink-3, #8A8578); }
.tm-pop-who { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; font-size: 12px; color: var(--bb-ink-2, #5A564F); }
.tm-pop-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-page .tm-pop-tabs { margin: 0 16px 10px; align-self: flex-start; }
.tm-pop-tabs i { font-style: normal; opacity: .7; }
.tm-pop-b { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-pop-tx { overflow: auto; padding: 6px 0 10px; }
.tm-pop-tx .tm-seg { grid-template-columns: 46px minmax(0, 1fr); padding: 5px 16px; }
.tm-pop-tx .tm-seg-s { grid-column: 2; }
.tm-pop-tx .tm-seg p { grid-column: 2; font-size: 12.5px; }
.tm-pop-acts { overflow: auto; padding: 12px 12px 14px; }
.tm-pop-acts .tm-arow .tm-line { flex-wrap: wrap; padding: 9px 11px; }
.tm-pop-acts .tm-arow .tm-chips { max-width: 100%; justify-content: flex-start; padding-left: 31px; }
.tm-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.tm-chat-ses { display: flex; gap: 5px; padding: 10px 14px 8px; overflow-x: auto; flex: 0 0 auto; }
.tm-page .tm-chat-chip { flex: 0 0 auto; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border: 0; }
.tm-page .tm-chat-chip.is-on { background: var(--bb-accent-tint, #EAEFF8); color: var(--bb-accent-ink, #11326D); }
.tm-page .tm-chat-new { color: var(--bb-ink-3, #8A8578); background: transparent; }
.tm-chat-log { flex: 1 1 auto; min-height: 180px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 12px; }
.tm-chat-log .bb-agent-msg { font-size: 13px; }
.tm-ans-body { display: flex; flex-direction: column; gap: 10px; align-self: stretch; min-width: 0; }
.tm-ans-body .bb-agent-vizwrap { min-width: 0; }
.tm-ans-body .bb-agent-msg { max-width: 100%; }
.tm-chat-log .bb-agent-assistant .tm-chip-time { padding: 0 5px; font-size: 11px; vertical-align: 1px; }
.tm-chat-run { display: flex; align-items: center; gap: 8px; padding: 2px 2px 6px; }
.tm-chat-run b { font-size: 12px; font-weight: 500; color: var(--bb-ink-3, #8A8578); }
.tm-chat-err { font-size: 12px; color: var(--bb-red, #B23B3B); }
.tm-chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; border-top: 1px solid var(--bb-line, #E6E1D8); }
.tm-page .tm-chat-form textarea {
  flex: 1 1 auto; min-height: 40px; max-height: 120px; resize: none; box-sizing: border-box; padding: 9px 11px; outline: 0;
  border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
  background: var(--bb-surface, #fff); color: var(--bb-ink); box-shadow: none;
  font: 400 13px/1.4 'Outfit', system-ui, sans-serif;
}
.tm-page .tm-chat-form textarea:focus { border-color: var(--bb-accent, #1B4A9C); }
.tm-page .tm-chat-form .tb-btn { padding: 9px 14px; }
@media (max-width: 860px) {
  .tm-page .tm-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 82vh; }
  .tm-page .tm-pop::before { display: none; }
  .tm-cal { overflow-x: auto; grid-template-columns: 44px repeat(var(--cols), minmax(120px, 1fr)); }
}

/* ---------------------------------------------------------------- narrow */

@media (max-width: 860px) {
  .tm-shell { grid-template-columns: 1fr; gap: 14px; }
  .tm-rail { position: static; }
  .tm-name { margin-left: 0; }
  .tm-views { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .tm-page .tm-views .tm-view { width: auto; }
  .tm-rail-h, .tm-tags { display: none; }
  .tm-ed { padding-left: 14px; }
  .tm-ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-chips { max-width: 50%; }
}

/* ---------------------------------------------------------------- Pulso
   His daily analysis drill (taskmaster.js "PULSO"). Reference: CollectUI, JaejinBong's journal —
   a calendar overview whose day opens the entry. Quiet surfaces, one accent for "answered". */
.tm-pl-tabs { margin-left: 6px; }
.tm-pl-nav { display: inline-flex; gap: 4px; }
.tm-page .tm-pl-nav .tb-btn { min-width: 30px; justify-content: center; }
.tm-pl-streak { margin-left: auto; color: var(--bb-ink-2, #5A564F); background: var(--bb-hover, #F4F2EC); }
.tm-pl-streak b { margin-left: 4px; font-weight: 600; color: var(--bb-ink); }

.tm-pl-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.tm-page .tm-pl-day {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px;
  padding: 10px 12px; border: 0; border-radius: var(--bb-r-card, 12px); cursor: pointer; text-align: left;
  background: var(--bb-surface, #fff); color: var(--bb-ink-2, #5A564F);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
  transition: box-shadow var(--bb-t-fast, .12s) ease-out, transform .24s cubic-bezier(0, 0, .58, 1);
}
.tm-page .tm-pl-day:hover:not(:disabled) { transform: translateY(-1px); }
.tm-page .tm-pl-day:disabled { cursor: default; opacity: .45; }
.tm-page .tm-pl-day.is-today .tm-pl-dow { color: var(--bb-accent, #1B4A9C); }
.tm-page .tm-pl-day.is-on { box-shadow: var(--bb-sh-focus, 0 0 0 2px var(--bb-accent, #1B4A9C)); }
.tm-pl-dow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-ink-3, #8A8578); }
.tm-pl-day b { font-size: 18px; font-weight: 600; color: var(--bb-ink); justify-self: end; }
.tm-pl-bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--bb-line, #E6E1D8); overflow: hidden; }
.tm-pl-bar > i { display: block; height: 100%; background: var(--bb-green, #2E7D52); transition: width .39s cubic-bezier(.25, .1, .25, 1); }
.tm-pl-n { grid-column: 1 / -1; font-size: 11px; color: var(--bb-ink-3, #8A8578); }

.tm-pl-cards { display: grid; gap: 10px; }
.tm-pl-frees { margin-top: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.tm-pl-card {
  padding: 12px 14px; border-radius: var(--bb-r-card, 12px); background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
  border-left: 0;
}
.tm-pl-card.is-done .tm-pl-qt { color: var(--bb-ink-2, #5A564F); }
.tm-pl-card.is-done .tm-pl-qt::before { content: '✓'; margin-right: 6px; color: var(--bb-green, #2E7D52); font-weight: 700; }
.tm-pl-q { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.tm-pl-qt { flex: 1 1 auto; font: 500 14px/1.4 'Outfit', system-ui, sans-serif; color: var(--bb-ink); }
.tm-pl-who { flex: none; margin-top: 1px; }
.tm-pl-who-G { color: var(--bb-accent-ink, #11326D); background: var(--bb-accent-tint, #E8EEF8); }
.tm-pl-who-O { color: var(--bb-violet, #6B4FBB); background: var(--bb-violet-tint, #F0ECFA); }
.tm-pl-who-GO { color: var(--bb-ink-2, #5A564F); background: var(--bb-hover, #F4F2EC); }
.tm-pl-st { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: transparent; transition: background-color .2s ease-out; }
.tm-pl-st.is-saving { background: var(--bb-line-strong, #D4CFC4); }
.tm-pl-st.is-ok { background: var(--bb-green, #2E7D52); }
.tm-pl-st.is-err { background: var(--bb-red, #B23B3B); }
.tm-page .tm-pl-ta, .tm-page .tm-pl-in {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; min-height: 0;
  border: 0; border-radius: var(--bb-r-control, 8px); outline: 0; resize: none; overflow: hidden;
  background: var(--bb-page, #F5F3EE); box-shadow: none;
  font: 400 14px/1.45 'Outfit', system-ui, sans-serif; color: var(--bb-ink);
  transition: box-shadow var(--bb-t-fast, .12s) ease-out;
}
.tm-page .tm-pl-in { height: 38px; }
.tm-page .tm-pl-ta:focus, .tm-page .tm-pl-in:focus { box-shadow: var(--bb-sh-focus, 0 0 0 2px var(--bb-accent, #1B4A9C)); }
.tm-page .tm-pl-ta::placeholder { color: var(--bb-ink-3, #8A8578); }
.tm-pl-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tm-page .tm-pl-dir button { min-width: 32px; justify-content: center; font: 600 13px/1 var(--bb-mono); }
.tm-page .tm-pl-star.is-on { color: var(--bb-gold-ink, #9A6B12); background: var(--bb-gold-tint, #FBF3E2); }
.tm-pl-go { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }

.tm-pl-prev { margin-bottom: 18px; }
.tm-pl-stars .tm-pl-starrow {
  display: grid; grid-template-columns: 56px minmax(110px, 180px) minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 9px 14px; border-top: 1px solid var(--bb-line, #E6E1D8); font-size: 13.5px;
}
.tm-pl-stars .tm-pl-starrow:first-child { border-top: 0; }
.tm-pl-sday { font-size: 12px; color: var(--bb-ink-3, #8A8578); }
.tm-pl-sq { font-weight: 600; color: var(--bb-ink-2, #5A564F); }
.tm-pl-sa { color: var(--bb-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tm-pl-sd { font-family: var(--bb-mono); }

.tm-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; align-items: start; }
.tm-pl-col {
  min-height: 120px; padding: 8px; border-radius: var(--bb-r-card, 12px); background: var(--bb-surface, #fff);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
}
.tm-page .tm-pl-colh {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 6px;
  padding: 4px 6px 8px; border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--bb-ink-2, #5A564F);
}
.tm-page .tm-pl-colh:disabled { cursor: default; opacity: .45; }
.tm-pl-col.is-today .tm-pl-colh { color: var(--bb-accent, #1B4A9C); }
.tm-pl-mini { padding: 7px 8px; border-radius: var(--bb-r-control, 8px); background: var(--bb-page, #F5F3EE); font-size: 12.5px; }
.tm-pl-mini + .tm-pl-mini { margin-top: 6px; }
.tm-pl-mini.is-star { box-shadow: inset 0 0 0 1px var(--bb-gold-ink, #9A6B12); }
.tm-pl-mq { display: block; font-weight: 600; color: var(--bb-ink-2, #5A564F); }
.tm-pl-mq b { font-family: var(--bb-mono); }
.tm-pl-ma { display: block; margin-top: 2px; color: var(--bb-ink); white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .tm-pl-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-pl-frees { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tm-pl-strip { gap: 4px; }
  .tm-page .tm-pl-day { padding: 8px; }
  .tm-pl-stars .tm-pl-starrow { grid-template-columns: 48px minmax(0, 1fr); }
  .tm-pl-sa { grid-column: 1 / -1; }
}

/* ---- Llamadas: the upload rows (21 oct 2026). One row per dropped file, every field editable in
   place (his canvas-first rule: no modal, no form page); Guardar writes them all. CollectUI:
   "File upload [UI element]" (@disarto_max, 0223f724) for the dropped-file row — name, meta in mono, a remove ×, the
   pane tinted while a file is held over it. Built with the page's own tokens. */
.tm-stage {
  display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 10px;
  background: var(--bb-surface, #fff); border-radius: var(--bb-r-card, 12px);
  box-shadow: var(--bb-sh-card, 0 0 0 1px var(--bb-line, #E6E1D8));
}
.tm-stage-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px 122px auto auto 28px; gap: 8px; align-items: center;
}
.tm-stage-row.is-reading, .tm-stage-row.is-err { grid-template-columns: minmax(0, 1fr) auto 28px; }
.tm-stage-row.is-saving { opacity: .55; pointer-events: none; }
.tm-stage-row input {
  min-width: 0; height: 32px; padding: 0 9px; font: 500 13.5px/1 'Outfit', system-ui, sans-serif; color: var(--bb-ink);
  background: var(--bb-surface, #fff); border: 1px solid var(--bb-line, #E6E1D8); border-radius: var(--bb-r-control, 8px);
}
.tm-stage-row input.tm-mono { font-family: var(--bb-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tm-stage-row input:focus { outline: none; border-color: var(--bb-accent, #0D2A5E); box-shadow: 0 0 0 3px var(--bb-accent-tint, #EAEFF8); }
.tm-stage-row input.is-guess { background: var(--bb-accent-tint, #EAEFF8); }
.tm-stage-meta { font-size: 12px; color: var(--bb-ink-3, #8A8578); white-space: nowrap; }
.tm-stage-f { font-size: 13px; color: var(--bb-ink-2, #5A564F); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-stage-err { font-size: 12.5px; color: var(--bb-neg, #B3261E); }
.tm-stage-row .tm-load { padding: 0; }
.tm-page .tm-stage-x {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer;
  border-radius: var(--bb-r-control, 8px); color: var(--bb-ink-3, #8A8578); font-size: 16px; line-height: 1;
}
.tm-page .tm-stage-x:hover { background: var(--bb-hover, #F4F2EC); color: var(--bb-ink); }
.tm-stage-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.tm-stage-foot .bb-btn[disabled] { opacity: .45; cursor: default; }
.tm-pane.is-drop::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  border: 2px dashed var(--bb-accent, #0D2A5E); border-radius: var(--bb-r-card, 12px);
  background: color-mix(in srgb, var(--bb-accent-tint, #EAEFF8) 55%, transparent);
}
@media (max-width: 720px) {
  .tm-stage-row { grid-template-columns: 1fr 1fr 28px; }
  .tm-stage-title { grid-column: 1 / -1; }
  .tm-stage-meta, .tm-stage-chip { grid-column: span 1; }
}
