/* Studio page: task-statuses (features/studio/task-statuses.js). Page-specific styles only; shared ones are in kit.css. */

/* The status pill — filled with the exact Kitsu colour; ink (dark/white) is chosen in JS by contrast. */
.ts-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); background: var(--zinc-100); color: var(--text-2); }
.ts-pill.no-color { background: var(--card); box-shadow: none; border: 1px dashed var(--zinc-500); color: var(--text-2); }
.ts-pill.lg { height: 34px; min-width: 72px; padding: 0 16px; font-size: 13px; }
button.ts-pill { cursor: pointer; transition: transform .1s, box-shadow .15s; }
button.ts-pill:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12); }
button.ts-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* "In Kitsu order" strip */
.ts-strip { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 14px 18px 16px; margin-bottom: 20px; }
.ts-strip-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.ts-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.ts-flow li { display: inline-flex; align-items: center; }
.ts-sep { display: inline-flex; color: var(--text-3); margin: 0 2px; }
.ts-sep svg { width: 14px; height: 14px; }

/* List */
.ts-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.ts-list > li + li { border-top: 1px solid var(--border); }
.ts-row { width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 16px; padding: 13px 18px; text-align: left; transition: background .12s; }
.ts-row:hover { background: light-dark(#fafafc, #1e1e21); }
.ts-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 4px; }
.ts-row[aria-selected="true"] { background: var(--blue-soft); }
.ts-row.is-archived .ts-pill, .ts-row.is-archived .ts-name { opacity: .55; }
.ts-pill-cell { display: flex; }
.ts-main { display: grid; gap: 2px; min-width: 0; }
.ts-name { font-size: 14px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.ts-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ts-desc.sk-missing { color: var(--text-3); }
.ts-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 420px; }

/* Meaning badges — compact tinted pills, readable labels */
.ts-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid var(--zinc-200); background: var(--zinc-100); color: var(--text); }
.ts-badge.tone-green { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-200); }
.ts-badge.tone-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.ts-badge.tone-amber { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }
.ts-badge.tone-rose { background: var(--rose-50); color: var(--rose-700); border-color: var(--rose-200); }
.ts-badge.tone-indigo { background: var(--indigo-50); color: var(--indigo-700); border-color: var(--indigo-200); }
.ts-badge.tone-grey { background: var(--zinc-100); color: var(--text); border-color: var(--zinc-200); font-weight: 600; }
.ts-badge.tone-who { background: var(--card); color: var(--zinc-500); border-color: var(--border-strong); }
.ts-stale { font-size: 12.5px; color: var(--amber-700); background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }

/* Drawer */
.ts-drawer { display: grid; gap: 22px; }
.ts-title-pill { margin-left: 10px; vertical-align: middle; display: inline-flex; }
.ts-hero { display: grid; justify-items: start; gap: 12px; padding: 16px; border-radius: 14px; background: var(--subtle); border: 1px solid var(--border); }
.ts-hero-desc { font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.ts-hero-desc.sk-missing { color: var(--text-3); }
.ts-meanings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts-meanings li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.ts-plain { font-size: 13px; color: var(--text-2); }
.ts-color { display: inline-flex; align-items: center; gap: 8px; }
.ts-color code { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.ts-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-700); }
.ts-yes svg { width: 14px; height: 14px; flex: none; }
.ts-no { color: var(--text-2); }
.ts-note { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.ts-drawer-actions { display: flex; }

@media (max-width: 760px) {
  .ts-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding: 12px 14px; }
  .ts-badges { grid-column: 2; justify-content: flex-start; max-width: none; }
  .ts-badges:empty { display: none; }
  .ts-strip { padding: 12px 14px 14px; }
}

/* The studio's statuses, kept in Flowly (Admin › Task Statuses, Felix 2026-11-12): pill · name · order · remove */
.sst { background: var(--card); border: 1px solid var(--border, #ececee); border-radius: 14px; padding: 8px 16px 14px; max-width: 760px; }
.sst-list { list-style: none; margin: 0; padding: 0; }
.sst-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border, #ececee); }
.sst-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; justify-self: start; cursor: pointer; }
.sst-pill.sm { height: 20px; padding: 0 8px; font-size: 10.5px; cursor: inherit; }
.sst-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sst-name { height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; }
.sst-name:hover:not(:disabled), .sst-name:focus { border-color: var(--border-strong, #d2d2d7); background: var(--card); outline: none; }
.sst-acts { display: inline-flex; gap: 2px; }
.sst-new { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; padding-top: 10px; }
.sst-plus { color: var(--text-3, #86868b); padding-left: 10px; }
.sst-add { height: 32px; padding: 0 10px; border: 1px dashed light-dark(#c7c7cc, #49494f); border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; }
.sst-add:focus { outline: none; border-style: solid; border-color: #0a84ff; }
.sst-note { font-size: 12.5px; color: var(--text-3, #86868b); margin: 10px 0 0; }
.sst-pop { display: grid; gap: 8px; min-width: 240px; padding: 4px; }
.sst-imp { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.sst-imp-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sst-imp-item:hover { background: light-dark(#f2f2f4, #252528); }
.sst-imp-item.all { color: var(--blue, #0071e3); font-weight: 600; }
.sst-imp-item svg { width: 15px; height: 15px; }
.sst-pill { border: 0; font-family: inherit; } .sst-pill:disabled { cursor: default; }
