/* ── a brand's creative strategy workspace (brandstrategy.js, migration 126) ── */
.sw-tabs { display: flex; flex-wrap: wrap; width: 100%; margin-bottom: 10px; }
.sw-tabs button { flex: 1 1 auto; justify-content: center; }
.sw-tab-n { font-size: 11px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sw-tab-n:empty { display: none; }
.sw-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sw-tools .hint { margin: 0; flex: 1; min-width: 0; }
.sw-tools .btn { flex-shrink: 0; }
.sw-empty { margin: 4px 0; }

.sw-list { display: flex; flex-direction: column; gap: 8px; }
.sw-group { display: flex; flex-direction: column; gap: 8px; }
.sw-group + .sw-group { margin-top: 6px; }
.sw-group-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 2px 2px 0; }
.sw-group-head span { flex: 1; min-width: 0; }
.sw-group-head em { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sw-group-loose { color: var(--ink-3); }

.sw-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 11px 14px; }
.sw-card-winner { border-color: var(--good); box-shadow: inset 3px 0 0 var(--good); }
.sw-card-testing { box-shadow: inset 3px 0 0 var(--warn); }
.sw-card-killed { opacity: .6; }
.sw-card-top { display: flex; align-items: flex-start; gap: 10px; }
.sw-card-main { flex: 1; min-width: 0; }
.sw-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.sw-card-killed .sw-title { text-decoration: line-through; }
.sw-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sw-st, .sw-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; line-height: 1.5; max-width: 100%; }
.sw-pill { background: var(--surface-3); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-pill .i { width: 12px; height: 12px; flex-shrink: 0; }
.sw-st-idea { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-2); }
.sw-st-ready { background: var(--act); color: var(--act-ink); }
.sw-st-testing { background: var(--warn-soft); color: var(--warn-ink); }
.sw-st-winner { background: var(--good-soft); color: var(--good-ink); }
.sw-st-killed { background: var(--surface-4); color: var(--ink-3); }
.sw-body { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.sw-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sw-more { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.sw-more:hover { color: var(--ink); }
.sw-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sw-edit { flex-shrink: 0; opacity: .6; }
.sw-card:hover .sw-edit, .sw-edit:focus-visible { opacity: 1; }

.sw-killed > summary { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; list-style: none; padding: 4px 2px; }
.sw-killed > summary::-webkit-details-marker { display: none; }
.sw-killed > summary::after { content: ' ›'; }
.sw-killed[open] > summary::after { content: ' ⌄'; }
.sw-killed[open] { display: flex; flex-direction: column; gap: 8px; }

.sw-kind-seg { display: flex; flex-wrap: wrap; }
.sw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-form-row > [hidden] { display: none; }
.modal-actions .sw-del { margin-right: auto; }

@media (max-width: 640px) {
  .sw-tabs button { min-height: 44px; padding: 5px 8px; }
  .sw-tools { flex-direction: column; align-items: stretch; }
  .sw-card { padding: 10px 12px; }
  .sw-edit { opacity: 1; }
  .sw-form-row { grid-template-columns: 1fr; }
}
