/* ─── Токены ─────────────────────────────────────────────── */
:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --column: #efeff2;
  --sidebar: #fbfbfc;
  --hover: rgba(24, 24, 27, .05);
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e6e6ea;
  --line-strong: #d4d4da;
  --accent: #5b5bd6;
  --accent-hover: #4d4dc7;
  --accent-soft: #eeeefc;
  --accent-text: #4545b5;
  --high: #e5484d;
  --medium: #f0a020;
  --low: #3b9eff;
  --done: #2f9e6a;
  --done-soft: #e6f5ee;
  --danger-soft: #fdecec;
  --warn-soft: #fdf3e2;
  --warn-text: #b86e00;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05);
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 2px 6px rgba(16, 16, 24, .05);
  --shadow-hover: 0 2px 4px rgba(16, 16, 24, .05), 0 8px 20px -6px rgba(16, 16, 24, .12);
  --shadow-lg: 0 24px 64px -12px rgba(16, 16, 24, .28), 0 4px 12px rgba(16, 16, 24, .06);
  --tag-l: 94%; --tag-tl: 32%; --tag-s: 70%;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f12; --surface: #19191d; --surface-2: #1e1e23; --column: #141417; --sidebar: #121215;
    --hover: rgba(255, 255, 255, .05); --text: #ececf0; --text-2: #c8c8cf; --muted: #8d8d97; --faint: #5d5d66;
    --line: #26262c; --line-strong: #34343c; --accent: #7474ee; --accent-hover: #8484f3;
    --accent-soft: rgba(116, 116, 238, .16); --accent-text: #a9a9ff; --done-soft: rgba(47, 158, 106, .16);
    --danger-soft: rgba(229, 72, 77, .15); --warn-soft: rgba(240, 160, 32, .15); --warn-text: #f0a020;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-hover: 0 6px 18px -4px rgba(0, 0, 0, .55); --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, .7);
    --tag-l: 22%; --tag-tl: 78%; --tag-s: 40%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f12; --surface: #19191d; --surface-2: #1e1e23; --column: #141417; --sidebar: #121215;
  --hover: rgba(255, 255, 255, .05); --text: #ececf0; --text-2: #c8c8cf; --muted: #8d8d97; --faint: #5d5d66;
  --line: #26262c; --line-strong: #34343c; --accent: #7474ee; --accent-hover: #8484f3;
  --accent-soft: rgba(116, 116, 238, .16); --accent-text: #a9a9ff; --done-soft: rgba(47, 158, 106, .16);
  --danger-soft: rgba(229, 72, 77, .15); --warn-soft: rgba(240, 160, 32, .15); --warn-text: #f0a020;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-hover: 0 6px 18px -4px rgba(0, 0, 0, .55); --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, .7);
  --tag-l: 22%; --tag-tl: 78%; --tag-s: 40%;
  color-scheme: dark;
}

/* ─── База ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.45; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
kbd { font-family: inherit; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 16px; display: inline-block; }
::selection { background: var(--accent-soft); }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Кнопки и поля ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--danger { background: var(--high); border-color: var(--high); color: #fff; }
.btn--danger:hover { background: #d63c41; border-color: #d63c41; }
.btn--danger-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--high); }
.btn--danger-ghost:hover { background: var(--danger-soft); border-color: transparent; }
.btn--ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn--ghost:hover { background: var(--hover); color: var(--text); border-color: transparent; }
.btn--sm { height: 28px; padding: 0 8px; font-size: 13px; }

.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); flex: none; box-shadow: var(--shadow-sm); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.icon-btn--ghost:hover { background: var(--hover); }
.icon-btn--xs { width: 24px; height: 24px; border: 0; background: transparent; box-shadow: none; color: var(--muted); border-radius: 6px; }
.icon-btn--xs:hover { background: var(--hover); color: var(--text); }
.toggle.is-on { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.link { border: 0; background: none; color: var(--accent-text); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

.input, .select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, textarea::placeholder { color: var(--faint); }
.select { appearance: none; padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
.select:disabled { opacity: .6; cursor: default; }

/* Круглый чекбокс задач и квадратный — для пунктов чек-листа */
.check { appearance: none; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface) center / 12px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check:hover { border-color: var(--done); }
.check:checked { background-color: var(--done); border-color: var(--done); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.check--sq { border-radius: 5px; width: 17px; height: 17px; }

/* ─── Раскладка ─────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; height: 100vh; }

/* ─── Боковая панель ────────────────────────────────────── */
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); padding: 14px 10px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 4px 8px 16px; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px -1px rgba(91, 91, 214, .5); }
.logo .ic { width: 15px; height: 15px; stroke-width: 3; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 4px 4px 4px 10px; }
.sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.sidebar__empty { color: var(--muted); font-size: 13px; padding: 8px 10px; }

.avatar { --c: var(--accent); width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; text-transform: uppercase; }
.avatar--sm { width: 22px; height: 22px; }
.avatar:empty { display: none; }

.project__row, .board-item { display: flex; align-items: center; border-radius: 7px; min-height: 32px; transition: background .12s; }
.project__row:hover, .board-item:hover { background: var(--hover); }
.project__toggle, .board-item__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 6px 8px; text-align: left; }
.project__toggle { font-weight: 500; color: var(--text); }
.project__name, .board-item__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { width: 14px; height: 14px; color: var(--faint); margin-left: auto; transition: transform .15s; }
.project.is-collapsed .caret { transform: rotate(-90deg); }
.project.is-collapsed .boards { display: none; }
.boards { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px; }
.board-item__name { padding-left: 16px; color: var(--muted); }
.board-item__name .ic { width: 15px; height: 15px; color: var(--faint); margin-left: 3px; }
.board-item.is-active { background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.board-item.is-active .board-item__name { color: var(--text); font-weight: 500; }
.board-item.is-active .board-item__name .ic { color: var(--accent); }
.board-item__count { font-size: 12px; color: var(--faint); padding-right: 10px; font-variant-numeric: tabular-nums; }
.boards__empty { color: var(--faint); font-size: 13px; padding: 4px 10px 4px 44px; }
.row-actions { display: none; gap: 1px; padding-right: 4px; }
.project__row:hover .row-actions, .board-item:hover .row-actions { display: flex; }
.board-item:hover .board-item__count { display: none; }
.row-actions button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); }
.row-actions button:hover { background: var(--hover); color: var(--text); }
.row-actions button:disabled { opacity: .35; cursor: default; background: transparent; color: var(--faint); }
.row-actions .ic { width: 14px; height: 14px; }

.sidebar__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); text-align: left; }
.side-btn:hover { background: var(--hover); color: var(--text); }
.side-btn .ic { color: var(--muted); }
.sidebar__hint { font-size: 12px; color: var(--faint); padding: 8px 10px 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 5px; }
.sidebar-backdrop { display: none; }

/* ─── Верхняя панель ────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs__project { color: var(--muted); white-space: nowrap; }
.crumbs__sep { color: var(--faint); }
.crumbs__project:empty, .crumbs__project:empty + .crumbs__sep { display: none; }
h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 6px; }
.meter__bar { width: 72px; height: 6px; border-radius: 999px; background: var(--column); overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; background: var(--done); border-radius: inherit; transition: width .3s; }
.toolbar { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--faint); width: 230px; cursor: text; transition: border-color .15s, box-shadow .15s, background .15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box:focus-within kbd { display: none; }
.toolbar .select { width: auto; }
.menu-btn { display: none; }

/* ─── Доска ─────────────────────────────────────────────── */
.board { flex: 1; display: flex; gap: 14px; padding: 20px; align-items: flex-start; overflow: auto; }
.board-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 40px 24px; }
.board-empty__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 6px; }
.board-empty__icon .ic { width: 26px; height: 26px; }
.board-empty h2 { font-size: 17px; }
.board-empty p { color: var(--muted); }
.board-empty__actions { display: flex; gap: 8px; margin-top: 8px; }

.column { width: 292px; flex: none; display: flex; flex-direction: column; max-height: 100%; background: var(--column); border-radius: 12px; padding: 6px; transition: box-shadow .15s, opacity .15s; }
.column.is-over { box-shadow: 0 0 0 2px var(--accent) inset; }
.column.is-dragging { opacity: .4; }
.column__head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 8px 8px; min-height: 36px; cursor: grab; border-radius: 8px; }
.column__head:active { cursor: grabbing; }
.column__dot { --c: var(--faint); width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); flex: none; }
.column__name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column__count { font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }
.column__done { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--done-soft); color: var(--done); flex: none; }
.column__done .ic { width: 11px; height: 11px; stroke-width: 3; }
.column__head .row-actions { margin-left: auto; padding: 0; }
.column__head:hover .row-actions { display: flex; }
.column__list { display: flex; flex-direction: column; gap: 6px; min-height: 12px; overflow-y: auto; padding: 2px; margin: -2px; }
.column__add { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; }
.column__add:hover { background: var(--hover); color: var(--text); }
.column-new { width: 260px; flex: none; height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: transparent; color: var(--muted); font-weight: 500; transition: .15s; }
.column-new:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.empty { color: var(--faint); font-size: 13px; text-align: center; padding: 16px 8px; border: 1.5px dashed var(--line-strong); border-radius: 9px; }

/* Маркеры места вставки: отрицательные отступы гасят лишний gap */
.drop-line { height: 2px; border-radius: 2px; background: var(--accent); margin: -4px 0; flex: none; pointer-events: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.col-drop-line { width: 3px; align-self: stretch; border-radius: 2px; background: var(--accent); margin: 0 -8.5px; flex: none; pointer-events: none; }

/* ─── Карточка ──────────────────────────────────────────── */
.card { position: relative; -webkit-touch-callout: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; transition: box-shadow .15s, border-color .15s, transform .15s, opacity .15s; }
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card:active { cursor: grabbing; }
.card.is-dragging { opacity: .35; transform: rotate(1deg); }
.card__parent { display: flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0 0 6px 28px; }
.card__parent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__parent .ic { width: 12px; height: 12px; }
.card__parent:hover { color: var(--accent-text); }
.card__top { display: flex; align-items: flex-start; gap: 10px; }
.card__check { margin-top: 1px; }
.card__title { flex: 1; min-width: 0; font-weight: 500; line-height: 1.4; word-break: break-word; }
.card.is-done .card__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.card__desc { color: var(--muted); font-size: 13px; margin: 4px 0 0 28px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.card__meta { display: flex; gap: 5px; flex-wrap: wrap; margin: 9px 0 0 28px; }
.card__bar { margin: 9px 0 1px 28px; }

.prio { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.prio rect { fill: var(--line-strong); }
.prio--low { color: var(--low); } .prio--medium { color: var(--medium); } .prio--high { color: var(--high); }
.prio--low rect:nth-child(1), .prio--medium rect:nth-child(-n+2), .prio--high rect { fill: currentColor; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; font-size: 12px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip .ic { width: 12px; height: 12px; }
.chip--tag { --h: 240; border-color: transparent; background: hsl(var(--h) var(--tag-s) var(--tag-l)); color: hsl(var(--h) 50% var(--tag-tl)); font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.chip--overdue { background: var(--danger-soft); border-color: transparent; color: var(--high); font-weight: 500; }
.chip--today { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); font-weight: 500; }
.chip--complete { background: var(--done-soft); border-color: transparent; color: var(--done); }

.bar { height: 4px; border-radius: 999px; background: var(--column); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--done); border-radius: inherit; transition: width .25s; }

/* ─── Модальные окна ────────────────────────────────────── */
.modal { margin: auto; border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); }
.modal[open] { animation: pop .18s ease-out; }
.modal::backdrop { background: rgba(10, 10, 14, .45); backdrop-filter: blur(2px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal--sm { width: min(420px, calc(100vw - 24px)); }
.modal--task { width: min(900px, calc(100vw - 24px)); }
.modal--import { width: min(620px, calc(100vw - 24px)); }

.dialog-form { padding: 22px; display: grid; gap: 14px; }
.dialog-form h2 { font-size: 16px; font-weight: 600; }
.dialog-form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.confirm__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--danger-soft); color: var(--high); display: grid; place-items: center; }
.confirm__icon .ic { width: 20px; height: 20px; }

/* Окно задачи */
.task-form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.task-form__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.task-form__crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.task-form__crumbs b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.task-form__body { display: grid; grid-template-columns: 1fr 250px; min-height: 0; overflow: hidden; flex: 1; }
.task-form__main { padding: 20px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.task-form__side { padding: 18px; border-left: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.task-form__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.hint { display: flex; align-items: center; gap: 3px; color: var(--faint); font-size: 12px; margin-right: 6px; }

.title-input { width: 100%; border: 0; outline: none; background: none; font-size: 20px; font-weight: 600; letter-spacing: -.015em; padding: 4px 0; color: var(--text); }
.title-input::placeholder { color: var(--faint); }
.desc-input { border: 1px solid transparent; border-radius: 8px; outline: none; background: none; resize: vertical; min-height: 64px; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); color: var(--text-2); line-height: 1.55; transition: border-color .15s, background .15s, box-shadow .15s; }
.desc-input:hover { background: var(--surface-2); }
.desc-input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.parent-info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.parent-info .ic { width: 14px; height: 14px; }

.prop { display: grid; gap: 6px; }
.prop__label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.prop__label .ic { width: 13px; height: 13px; }
.side__meta { margin-top: auto; font-size: 12px; color: var(--faint); padding-top: 8px; }

.block { margin-top: 18px; display: grid; gap: 8px; }
.block__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); min-height: 28px; }
.block__head .ic { color: var(--muted); }
.block__count { font-weight: 500; color: var(--muted); font-size: 12px; background: var(--column); padding: 0 7px; border-radius: 999px; line-height: 18px; }
.block__count:empty { display: none; }
.block__action { margin-left: auto; }

.inline-add { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; border-radius: 8px; color: var(--faint); border: 1px dashed var(--line-strong); transition: border-color .15s, box-shadow .15s; }
.inline-add:focus-within { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent-text); }
.inline-add input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text); }
.inline-add input::placeholder { color: var(--faint); }

.subs { list-style: none; display: grid; gap: 2px; }
.sub { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 10px; height: 36px; border-radius: 8px; transition: background .12s; }
.sub:hover { background: var(--surface-2); }
.sub__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub__title.is-done { text-decoration: line-through; color: var(--muted); }
.sub__status { font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.sub .prio { margin-top: 0; }
.mini-btn { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--faint); flex: none; opacity: 0; transition: opacity .12s, background .12s; }
.sub:hover .mini-btn, .cl-item:hover .mini-btn, .checklist__head:hover .mini-btn, .mini-btn:focus-visible { opacity: 1; }
.mini-btn:hover { background: var(--hover); color: var(--text); }
.mini-btn .ic { width: 14px; height: 14px; }

#checklists { display: grid; gap: 12px; }
#checklists:empty::before { content: "Разбейте задачу на шаги — добавьте чек-лист."; color: var(--faint); font-size: 13px; }
.checklist { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; display: grid; gap: 6px; }
.checklist__head { display: flex; align-items: center; gap: 8px; }
.checklist__title { flex: 1; min-width: 0; font-weight: 600; border: 1px solid transparent; background: none; border-radius: 6px; padding: 4px 6px; margin-left: -6px; outline: none; }
.checklist__title:focus { border-color: var(--accent); background: var(--surface); }
.checklist__pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.checklist ul { list-style: none; display: grid; }
.cl-item { display: flex; align-items: center; gap: 9px; border-radius: 6px; padding-left: 2px; }
.cl-item:hover { background: var(--surface-2); }
.cl-item__text { flex: 1; min-width: 0; border: 1px solid transparent; background: none; border-radius: 6px; padding: 5px 6px; outline: none; }
.cl-item__text:focus { border-color: var(--accent); background: var(--surface); }
.cl-item__text.is-done { text-decoration: line-through; color: var(--muted); }
.checklist .inline-add { height: 32px; margin-top: 2px; }

/* ─── Импорт ────────────────────────────────────────────── */
.import { padding: 22px; display: grid; gap: 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
.import__head { display: flex; align-items: flex-start; gap: 12px; }
.import__head > div { flex: 1; }
.import__head h2 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; padding: 3px; background: var(--column); border-radius: 10px; }
.seg button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 500; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.import__how { font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.import__how ol { padding-left: 18px; display: grid; gap: 3px; }
.import__how b { font-weight: 600; }
.import__how .muted { font-size: 12px; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; text-align: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--column); display: grid; place-items: center; color: var(--muted); margin-bottom: 6px; }
.drop.is-over .drop__icon { color: var(--accent-text); background: var(--surface); }
.drop__icon .ic { width: 20px; height: 20px; }
.drop .muted { font-size: 13px; }
.import__error { background: var(--danger-soft); color: var(--high); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.preview { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.preview__file { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.preview__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.src-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.preview__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.stat b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.preview__cols { display: flex; flex-wrap: wrap; gap: 5px; }
.preview__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.import__foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ─── Уведомления ───────────────────────────────────────── */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #1f1f24; color: #f4f4f6; box-shadow: var(--shadow-lg); font-size: 13px; animation: toast-in .2s ease-out; pointer-events: auto; }
.toast .ic { color: #4ade80; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ─── Палитра, фильтры, вид ─────────────────────────────── */
.palette-btn { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--faint); box-shadow: var(--shadow-sm); text-align: left; }
.palette-btn span { flex: 1; color: var(--muted); }
.palette-btn:hover { border-color: var(--line-strong); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.btn.is-active { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.pop-anchor { position: relative; }
.popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; display: grid; gap: 12px; animation: pop .14s ease-out; }
.fgroup { display: grid; gap: 6px; }
.fgroup__title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.fgroup__items { display: flex; flex-wrap: wrap; gap: 5px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text-2); font-size: 13px; }
.fchip:hover { border-color: var(--line-strong); }
.fchip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.fchip .prio { margin: 0; }
.popover__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--muted); }
.seg--icons { display: flex; padding: 2px; border-radius: 9px; }
.seg--icons button { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 7px; }
.empty .link { font-size: 13px; }

/* ─── Меню (карточка, колонка) ──────────────────────────── */
.menu { position: fixed; z-index: 90; min-width: 210px; max-height: calc(100vh - 16px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; animation: pop .12s ease-out; }
.menu__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 7px 9px 4px; }
.menu__item { display: flex; align-items: center; gap: 9px; width: 100%; height: 32px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--text-2); text-align: left; white-space: nowrap; }
.menu__item:hover, .menu__item:focus-visible { background: var(--hover); color: var(--text); outline: none; }
.menu__item .ic { color: var(--muted); }
.menu__item .prio { margin: 0; }
.menu__item.is-checked::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.menu__item.is-danger { color: var(--high); }
.menu__item.is-danger .ic { color: var(--high); }
.menu__item.is-danger:hover { background: var(--danger-soft); }
.menu__item:disabled { opacity: .4; cursor: default; background: none; }
.menu__sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0 4px; }

.card__menu { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); opacity: 0; transition: opacity .12s; }
.card__menu:hover { color: var(--text); background: var(--surface-2); }
.card:hover .card__menu, .card__menu:focus-visible, .card__menu[aria-expanded="true"] { opacity: 1; }
.card:hover .prio { visibility: hidden; }
.column__menu { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--faint); opacity: 0; transition: opacity .12s; }
.column__menu .ic { width: 15px; height: 15px; }
.column__head:hover .column__menu, .column__menu:focus-visible, .column__menu[aria-expanded="true"] { opacity: 1; }
.column__menu:hover { background: var(--hover); color: var(--text); }
.column.is-over-limit .column__count { background: var(--danger-soft); color: var(--high); box-shadow: none; font-weight: 600; }
.column.is-over-limit { box-shadow: inset 0 2px 0 var(--high); }

/* ─── Список ────────────────────────────────────────────── */
.list-view { flex: 1; overflow: auto; padding: 20px; }
.ltable { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ltable th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable th button { display: flex; align-items: center; gap: 4px; width: 100%; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; }
.ltable th button:hover { color: var(--text); }
.ltable th .ic { width: 13px; height: 13px; }
.ltable td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ltable tr:last-child td { border-bottom: 0; }
.ltable tbody tr { cursor: pointer; transition: background .1s; }
.ltable tbody tr:hover { background: var(--surface-2); }
.ltable .col-check { width: 40px; padding-right: 0; }
.ltable .col-status { width: 170px; } .ltable .col-prio { width: 130px; } .ltable .col-due { width: 120px; } .ltable .col-progress { width: 120px; }
.lrow__title { font-weight: 500; }
.lrow.is-done .lrow__title { color: var(--muted); text-decoration: line-through; }
.lrow__parent { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lrow__parent .ic { width: 12px; height: 12px; }
.lrow__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle; }
.lrow .select { height: 30px; font-size: 13px; }
.lprio { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.lprio .prio { margin: 0; }
.lgroup td { background: var(--column); font-weight: 600; font-size: 12px; color: var(--text-2); padding: 6px 12px; cursor: default; }
.list-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ─── Описание (Markdown) ───────────────────────────────── */
.desc { position: relative; }
.desc-view { padding: 6px 8px; margin: 0 -8px; border-radius: 8px; border: 1px solid transparent; cursor: text; min-height: 40px; color: var(--text-2); line-height: 1.6; }
.desc-view:hover { background: var(--surface-2); }
.desc-view:focus-visible { outline: none; border-color: var(--accent); }
.md > * + * { margin-top: .55em; }
.md h3 { font-size: 17px; } .md h4 { font-size: 15px; } .md h5 { font-size: 14px; }
.md h3, .md h4, .md h5 { color: var(--text); font-weight: 600; }
.md ul, .md ol { padding-left: 22px; }
.md li + li { margin-top: 2px; }
.md li.task-item { list-style: none; margin-left: -20px; display: flex; gap: 8px; align-items: baseline; }
.md li.task-item.is-done { color: var(--muted); text-decoration: line-through; }
.md .md-check { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 4px; display: inline-grid; place-items: center; font-size: 10px; color: #fff; text-decoration: none; position: relative; top: 2px; }
.md li.is-done .md-check { background: var(--done); border-color: var(--done); }
.md a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.md code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--column); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--column); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--line-strong); padding-left: 12px; color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); }

/* ─── Метки ─────────────────────────────────────────────── */
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: text; transition: border-color .15s, box-shadow .15s; }
.tag-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#tagChips { display: contents; }
.tag-input .chip--tag { padding-right: 2px; gap: 2px; }
.tag-input .chip--tag button { display: grid; place-items: center; width: 16px; height: 16px; border: 0; border-radius: 4px; background: none; color: inherit; opacity: .7; }
.tag-input .chip--tag button:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.tag-input .chip--tag .ic { width: 10px; height: 10px; stroke-width: 3; }
.tag-input input { flex: 1; min-width: 80px; height: 24px; border: 0; outline: none; background: none; font-size: 13px; }

/* ─── История ───────────────────────────────────────────── */
.activity { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.activity__list { list-style: none; display: grid; gap: 8px; max-height: 220px; overflow-y: auto; }
.activity__list li { position: relative; padding-left: 14px; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.activity__list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.activity__list time { display: block; color: var(--faint); font-size: 11px; }
.activity__empty { font-size: 12px; color: var(--faint); }

/* ─── Палитра команд ────────────────────────────────────── */
.modal--palette { width: min(620px, calc(100vw - 24px)); margin-top: 12vh; margin-bottom: auto; }
.palette { display: flex; flex-direction: column; max-height: 70vh; }
.palette__input { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--line); color: var(--faint); }
.palette__input .ic { width: 18px; height: 18px; }
.palette__input input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; color: var(--text); }
.palette__list { overflow-y: auto; padding: 6px; }
.palette__group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 10px 10px 4px; }
.palette__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--text-2); }
.palette__item .ic { color: var(--muted); }
.palette__item.is-active { background: var(--accent-soft); color: var(--text); }
.palette__item.is-active .ic { color: var(--accent-text); }
.palette__main { flex: 1; min-width: 0; display: grid; }
.palette__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__item.is-done .palette__title { text-decoration: line-through; color: var(--muted); }
.palette__item mark { background: none; color: var(--accent-text); font-weight: 600; }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); }
.palette__foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette__foot span { display: flex; align-items: center; gap: 3px; }

/* ─── Уведомление с действием, перетаскивание пальцем ───── */
.toast__action { margin-left: 6px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.toast__action:hover { background: rgba(255, 255, 255, .2); }
.drag-ghost { position: fixed; z-index: 95; pointer-events: none; opacity: .95; box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: none; }
body.is-touch-dragging { user-select: none; -webkit-user-select: none; }

/* ─── Адаптив ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .meter { display: none; }
  .search-box { width: 160px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(10, 10, 14, .4); z-index: 30; }
  .sidebar .row-actions { display: flex; }
  .board-item__count { display: none; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 12px; gap: 10px; }
  .toolbar { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .search-box kbd, .sidebar__hint, .hint { display: none; }
  .board { padding: 12px; gap: 10px; }
  .column { width: min(292px, 84vw); }
  .task-form__body { grid-template-columns: 1fr; overflow-y: auto; }
  .task-form__main { overflow: visible; }
  .task-form__side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .side__meta { grid-column: 1 / -1; }
  .mini-btn { opacity: 1; }
  .card__menu, .column__menu { opacity: 1; }
  .card .prio { visibility: hidden; }
  .card, .column__head { user-select: none; -webkit-user-select: none; }
  .list-view { padding: 12px; }
  .palette-btn kbd { display: none; }
}
@media (max-width: 520px) {
  .btn__label { display: none; }
  .popover { position: fixed; left: 12px; right: 12px; top: auto; width: auto; }
  .preview__stats { grid-template-columns: repeat(2, 1fr); }
  .preview__fields, .task-form__side { grid-template-columns: 1fr; }
  .task-form__main { padding: 16px; }
}

/* ─── Пользователь, сохранение, ошибки ──────────────────── */
.user-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
.user-btn:hover { border-color: var(--line-strong); }
.user-btn > .ic { color: var(--faint); }
.user-btn__main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.user-btn__main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn__main span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar--user { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; background: linear-gradient(135deg, var(--accent), #8b5cf6); }
.sync { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); padding: 6px 10px 0; min-height: 22px; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--done); flex: none; }
.sync[data-status="pending"] i, .sync[data-status="saving"] i { background: var(--medium); animation: pulse 1s ease-in-out infinite; }
.sync[data-status="offline"] { color: var(--high); }
.sync[data-status="offline"] i { background: var(--high); }
.sync[data-status="local"] { display: none; }
@keyframes pulse { 50% { opacity: .35; } }
.toast--error .ic { color: #ff8a8e; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: rgba(255, 255, 255, .8) rgba(255, 255, 255, .8) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn--primary):not(.btn--danger).is-busy::after { border-color: var(--muted) var(--muted) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
