/* ── a brand's tasks (brandtasks.js, migration 052) ─────────────────────── */
.bt-box .cpb-head em { font-style: normal; }
.bt-bar { height: 6px; border-radius: 999px; background: var(--surface-4); overflow: hidden; margin-bottom: 12px; }
.bt-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--commit); transition: width .3s ease; }
.bt-next { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.bt-next b { color: var(--ink); font-weight: 600; }
.bt-next-ceo { color: var(--ink-3); }
.bt-late-n { color: var(--crit-ink); font-weight: 600; }
.bt-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.bt-phases { display: flex; flex-direction: column; gap: 8px; }
.bt-phase { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.bt-phase > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px;
  cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bt-phase > summary::-webkit-details-marker { display: none; }
.bt-phase > summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg); transition: transform .15s ease; flex-shrink: 0; margin-right: 2px; }
.bt-phase[open] > summary::before { transform: rotate(45deg); }
.bt-ph-name { flex: 1; min-width: 0; }
.bt-ph-count { display: inline-flex; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bt-phase-done { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--ink-3); }
.bt-phase-done b { color: var(--ink-2); font-weight: 600; }

.bt-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.bt-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.bt-row:first-child { border-top: 0; }
.bt-check { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--on-accent); cursor: pointer; }
.bt-check:hover { border-color: var(--ink-3); }
.bt-check[aria-pressed="true"] { background: var(--commit); border-color: var(--commit); color: var(--commit-ink); }
.bt-check .i { width: 14px; height: 14px; stroke-width: 2.5; }
.bt-main { flex: 1; min-width: 0; }
.bt-line { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.bt-title { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.bt-row.is-done .bt-title { color: var(--ink-3); text-decoration: line-through; }
.bt-meta { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bt-who, .bt-due, .bt-st { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.bt-who-me { background: var(--commit); color: var(--commit-ink); }
.bt-who-ceo { background: var(--act); color: var(--act-ink); }
.bt-who-claude { background: var(--motion); color: var(--motion-ink); }
.bt-who-lawyer { background: var(--surface-4); color: var(--ink-2); }
.bt-due { background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bt-due.is-late { background: var(--crit-soft); color: var(--crit-ink); }
.bt-st { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-2); }
.bt-row.is-done .bt-who, .bt-row.is-done .bt-due { opacity: .55; }
.bt-more { margin-top: 4px; }
.bt-more > summary { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; list-style: none; }
.bt-more > summary::-webkit-details-marker { display: none; }
.bt-more > summary::after { content: ' ›'; }
.bt-more[open] > summary::after { content: ' ⌄'; }
.bt-more p { margin: 6px 0 2px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.bt-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.bt-edit { flex-shrink: 0; opacity: .6; }
.bt-row:hover .bt-edit, .bt-edit:focus-visible { opacity: 1; }

.bt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions .bt-del { margin-right: auto; }

@media (max-width: 640px) {
  .bt-row { padding: 10px; gap: 8px; }
  .bt-check { width: 28px; height: 28px; }
  .bt-edit { opacity: 1; }
  .bt-form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-bar > i, .bt-phase > summary::before { transition: none; }
}

/* the switch between a client brand's two workspaces (130) */
.bt-trackbar { padding-top: 12px; padding-bottom: 12px; }
.bt-tracks { display: flex; width: 100%; margin-bottom: 8px; }
.bt-tracks button { flex: 1 1 0; justify-content: center; font-size: 13.5px; padding: 8px 12px; }
.bt-track-n { font-size: 11px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bt-trackbar .hint { margin: 0; }
@media (max-width: 640px) { .bt-tracks button { min-height: 44px; flex-direction: column; gap: 0; } }

/* steps, hand-ins and E-commerce's shortcuts (132) */
.bt-ecom-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bt-more-steps > summary { color: var(--ink-2); }
.bt-steps { margin: 6px 0 2px; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.bt-steps p { margin: 6px 0; }
.bt-steps ol, .bt-steps ul { margin: 6px 0 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; }
.bt-steps ol { list-style: decimal; }
.bt-steps ul { list-style: disc; }
.bt-steps li::marker { color: var(--ink-3); font-weight: 600; }
.bt-up { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bt-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.bt-drop.is-over { border-color: var(--commit); background: var(--surface-3); }
.bt-drop-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--ink-2); flex-shrink: 0; }
.bt-drop-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-3); }
.bt-drop-txt b { font-size: 13px; color: var(--ink); font-weight: 600; }
.bt-up-state { font-size: 12.5px; color: var(--ink-2); min-height: 0; }
.bt-up-state:empty { display: none; }
.bt-up-state.is-bad { color: var(--crit-ink); }
.bt-files { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bt-file { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.bt-file-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.bt-file-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bt-file-meta { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bt-file-st { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.bt-file-new .bt-file-st { background: var(--warn-soft); color: var(--warn-ink); }
.bt-file-read .bt-file-st { background: var(--good-soft); color: var(--good-ink); }
.bt-file-failed .bt-file-st { background: var(--crit-soft); color: var(--crit-ink); }
.bt-file-del.is-sure { color: var(--crit-ink); }
.bt-file-help { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.bt-file-note { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--ink-2); }
.bt-file-note > b { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 640px) {
  .bt-drop { flex-wrap: wrap; }
  .bt-drop .btn { width: 100%; justify-content: center; min-height: 44px; }
  .bt-file-st { margin-left: 0; }
}
