/* Nyamagnet — строгая тема в духе Apple HIG в палитре аватарки:
   индиго-синий фон, один лавандовый акцент, сгруппированные контейнеры, рейл навигации. */
:root {
  --bg: #13182e;             /* окно */
  --rail: #0e1224;
  --elev: #1a2040;           /* сгруппированный контейнер */
  --elev-2: #222a4f;         /* поля, наведение */
  --elev-3: #2d3561;
  --sep: #272f55;
  --sep-2: #363f6a;
  --label: #f4f3fb;
  --label-2: #b7b5d1;        /* 8:1 */
  --label-3: #9694b9;        /* 5.4:1, на полях 4.7:1 */

  --accent: #a78bfa;         /* лаванда — выбранное, фокус, прогресс */
  --accent-btn: #6d50d0;     /* фон кнопки: белый 5.7:1 */
  --accent-text: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, .16);
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff6961;
  --gray: #8e8e93;
  /* этапы задачи — системные цвета Apple (тёмная тема) */
  --st-download: #0a84ff;    /* Качаю / Тяну с FTP */
  --st-process: #bf5af2;     /* Жму / Пакую */
  --st-wait: #ff9f0a;        /* Ждёт тебя */
  --st-upload: #40c8e0;      /* Несу на Диск */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", system-ui, sans-serif;
  --r: 8px;
  --r-lg: 12px;
  --t: 160ms;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--label); font: 400 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid rgba(167, 139, 250, .6); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--label-3); }
.sec { color: var(--label-2); }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 12px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* статусная точка */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--gray); }
.dot.green { background: var(--green); }
.dot.accent { background: var(--accent); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 14px;
  border: 0; border-radius: var(--r); background: var(--elev-2); color: var(--label); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: background var(--t), opacity var(--t);
}
.btn:hover { background: var(--elev-3); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent-btn); color: #fff; }
.btn.primary:hover { background: #7b5fe0; }
.btn.plain { background: transparent; color: var(--accent-text); padding: 0 8px; }
.btn.plain:hover { background: var(--accent-soft); }
.btn.icon { width: 32px; padding: 0; background: transparent; color: var(--label-2); }
.btn.icon:hover { background: var(--elev-2); color: var(--label); }
.btn.icon.danger:hover { color: var(--red); }
.btn.lg { min-height: 40px; padding: 0 18px; font-size: 14px; }

.field { display: grid; gap: 6px; }
.field > label, .flabel { font-size: 13px; font-weight: 500; color: var(--label-2); }
.help { font-size: 12px; color: var(--label-3); }
.input {
  width: 100%; min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r);
  background: var(--elev-2); transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder { color: var(--label-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 139, 250, .28); }
textarea.input { padding: 9px 12px; resize: vertical; min-height: 72px; line-height: 1.55; white-space: pre; overflow-x: auto; }
textarea.input.mono { font-size: 12px; }
select.input { width: auto; min-height: 32px; padding: 0 30px 0 10px; font-size: 13px; }
.search { position: relative; }
.search svg.i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--label-3); pointer-events: none; }
.search .input { padding-left: 32px; min-height: 32px; width: 240px; font-size: 13px; }

/* сегментированный переключатель (как UISegmentedControl) */
.seg { display: inline-flex; padding: 2px; border-radius: var(--r); background: var(--elev-2); gap: 2px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; min-height: 28px; padding: 0 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--label-2); white-space: nowrap; transition: background var(--t), color var(--t);
}
.seg button:hover { color: var(--label); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--elev-3); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.seg button .n { color: var(--label-3); margin-left: 4px; }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--elev); border: 1px solid var(--sep); }
.notice > div { flex: 1; min-width: 0; }
.notice .ttl { font-weight: 600; }
.alert { padding: 10px 12px; border-radius: var(--r); font-size: 13px; background: rgba(255, 105, 97, .12); color: #ffb4ae; }

/* ---------- каркас: рейл + контент ---------- */
.app { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; background: var(--rail); border-right: 1px solid var(--sep);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0;
}
.rail .mark { width: 30px; height: 30px; margin-bottom: 18px; }
.rail a, .rail button.ri {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--label-3);
  border: 0; background: transparent; cursor: pointer; position: relative; transition: background var(--t), color var(--t);
}
.rail a:hover, .rail button.ri:hover { background: var(--elev); color: var(--label); }
.rail a[aria-current="page"] { background: var(--elev-2); color: var(--label); }
.rail a .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid var(--rail); }
.rail .spacer { flex: 1; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--elev-3); color: var(--label-2); font-size: 12px; font-weight: 600; }

.content { min-width: 0; padding: 28px 32px 40px; max-width: 1400px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-right: auto; }
.pc { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r); background: var(--elev); color: var(--label-2); font-size: 13px; }
.pc:hover { text-decoration: none; background: var(--elev-2); color: var(--label); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* сгруппированная таблица */
.group { background: var(--elev); border-radius: var(--r-lg); overflow: hidden; }
.thead, .trow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px 130px 76px 44px; column-gap: 16px; padding: 0 16px; }
.thead { font-size: 12px; font-weight: 500; color: var(--label-3); border-bottom: 1px solid var(--sep); }
.thead > div { padding: 10px 0; }
.thead .r, .trow .c-time { text-align: right; }
.trow { padding-top: 12px; padding-bottom: 12px; align-items: start; border-bottom: 1px solid var(--sep); transition: background var(--t); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgba(255, 255, 255, .02); }
.trow.attn { background: rgba(255, 159, 10, .06); }
.trow .t { font-size: 14px; font-weight: 600; word-break: break-word; }
.trow .m { font-size: 12px; color: var(--label-3); margin-top: 2px; word-break: break-word; }
.trow .c-st, .trow .c-pc, .trow .c-time { padding-top: 1px; font-size: 13px; }
.trow .c-pc, .trow .c-time { color: var(--label-2); }
.trow .c-act { display: flex; justify-content: flex-end; margin-top: -4px; }
.trow .c-sub { grid-column: 1 / -1; min-width: 0; }
.trow .c-sub > :first-child { margin-top: 10px; }
.prog { font-size: 13px; color: var(--label-2); }
.bar { height: 4px; border-radius: 2px; background: var(--elev-3); margin-top: 7px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 500ms ease-out; }

/* этапы: у каждого свой цвет; текущий — с бегущими полосками, пройденные — приглушённые */
.st-download { --st: var(--st-download); } .st-process { --st: var(--st-process); }
.st-wait { --st: var(--st-wait); } .st-upload { --st: var(--st-upload); }
.prog .pct { color: color-mix(in srgb, var(--st, var(--label-2)) 75%, white); font-weight: 600; }  /* светлее полоски — текст ≥ 5:1 */
.stepbar { display: flex; gap: 3px; margin-top: 7px; }
.stepbar > span { flex: 1; height: 4px; border-radius: 2px; background: var(--elev-3); overflow: hidden; }
.stepbar > span > i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--st); transition: width 600ms cubic-bezier(.2, .8, .2, 1); }
.stepbar > .past > i { opacity: .45; }
.stepbar > .now > i {
  background-image: linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, .28) 30% 50%, transparent 50% 80%, rgba(255, 255, 255, .28) 80%);
  background-size: 24px 100%; animation: stripes 900ms linear infinite;
  box-shadow: 0 0 8px color-mix(in srgb, var(--st) 60%, transparent);
}
.stepbar > .now.st-wait > i { animation: breathe 1.6s ease-in-out infinite; background-image: none; }
@keyframes stripes { to { background-position: 24px 0; } }
@keyframes breathe { 50% { opacity: .45; } }

/* точка статуса в работе — цвета этапа и «дышит» кольцом */
.dot.st { background: var(--st); position: relative; }
.dot.st::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--st); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.linkrow { display: flex; align-items: center; gap: 2px; min-width: 0; }
.linkrow a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.err-text { color: var(--red); font-size: 13px; }

/* выбор сабов */
.subs { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--elev-2); }
.subs-h { font-size: 13px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--sep-2);
  background: transparent; cursor: pointer; font-size: 13px; color: var(--label-2); transition: background var(--t), border-color var(--t), color var(--t);
}
.opt::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--label-3); box-sizing: border-box; }
.opt:hover { color: var(--label); }
.opt[aria-pressed="true"] { border-color: var(--accent); color: var(--label); background: var(--accent-soft); }
.opt[aria-pressed="true"]::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--accent); }
.subs-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subs-f .grow { flex: 1; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--r); background: var(--elev-3); font-size: 13px; }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--label-2); }
.stepper button:hover { background: var(--elev-2); color: var(--label); }
.stepper output { min-width: 52px; text-align: center; font-weight: 600; }

details.log summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--label-3); }
details.log summary::-webkit-details-marker { display: none; }
details.log summary:hover { color: var(--label-2); }
details.log summary svg.i { width: 13px; height: 13px; transition: transform var(--t); }
details.log[open] summary svg.i { transform: rotate(90deg); }
details.log pre { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--bg); color: var(--label-2); font: 12px/1.65 ui-monospace, "SF Mono", Consolas, monospace; max-height: 220px; overflow: auto; white-space: pre-wrap; }

.empty { padding: 56px 16px; text-align: center; color: var(--label-3); font-size: 14px; }
.empty .mark { width: 40px; opacity: .7; margin-bottom: 10px; }
.skel { height: 58px; border-bottom: 1px solid var(--sep); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .025), transparent); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* компьютеры и люди */
.agents .trow { grid-template-columns: minmax(0, 1fr) 130px 220px 44px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--label-3); padding: 10px 16px; border-bottom: 1px solid var(--sep); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--sep); vertical-align: middle; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.role { font-size: 12px; color: var(--label-3); }
.role.admin { color: var(--accent-text); }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.switch { position: relative; width: 42px; height: 26px; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--elev-3); border-radius: 999px; transition: background var(--t); }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform var(--t); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(167, 139, 250, .6); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.note { margin-top: 12px; font-size: 12px; color: var(--label-3); }

/* ---------- окна (sheet) ---------- */
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--sep-2); border-radius: 14px; background: var(--elev); color: var(--label); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
dialog.wide { width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(6, 8, 22, .6); }
dialog[open] { animation: sheet 200ms ease-out; }
@keyframes sheet { from { opacity: 0; transform: translateY(10px); } }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px 20px; }
.dlg-h h2 { font-size: 17px; font-weight: 600; }
.dlg-b { padding: 12px 20px 20px; display: grid; gap: 16px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--sep); }
.pw-row { display: flex; gap: 6px; }
.folders { display: grid; max-height: 230px; overflow: auto; border-radius: var(--r); background: var(--elev-2); }
.folder { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; border: 0; border-top: 1px solid var(--sep); background: transparent; cursor: pointer; text-align: left; font-size: 13px; color: var(--label); }
.folder:first-child { border-top: 0; }
.folder:hover { background: var(--elev-3); }
.folder[aria-pressed="true"] { background: var(--accent-soft); }
.folder[aria-pressed="true"]::after { content: "✓"; margin-left: auto; color: var(--accent-text); font-weight: 600; }
.folder .tag { margin-left: auto; font-size: 11px; color: var(--orange); }
.folders .help { padding: 10px 12px; }
.release { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--label-3); word-break: break-all; }
.release svg.i { width: 14px; height: 14px; margin-top: 1px; }
.path { font-size: 12px; color: var(--label-3); }
.path b { color: var(--label-2); font-weight: 500; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.steps li { padding-left: 4px; }
.steps li > * + * { margin-top: 8px; }
.pair-code { display: flex; align-items: center; gap: 10px; }
.pair-code .code { font: 600 26px ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .12em; padding: 6px 14px; border-radius: var(--r); background: var(--elev-2); }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: min(360px, 100%); display: grid; gap: 22px; }
.login-h { display: grid; justify-items: center; gap: 10px; text-align: center; }
.login-h .mark { width: 48px; height: 48px; }
.login-h h1 { font-size: 22px; font-weight: 700; }
.login-h p { margin: 0; font-size: 13px; color: var(--label-3); }
.login form { display: grid; gap: 14px; padding: 20px; border-radius: 14px; background: var(--elev); }

/* ---------- уведомления ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; justify-items: center; }
.toast { padding: 10px 16px; border-radius: 999px; background: rgba(45, 53, 97, .96); border: 1px solid var(--sep-2); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: sheet 200ms ease-out; }
.toast.err { color: #ffb4ae; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .thead, .trow { grid-template-columns: minmax(0, 1fr) 140px 170px 44px; }
  .thead .h-pc, .trow .c-pc, .thead .h-time, .trow .c-time { display: none; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 60px; flex-direction: row; justify-content: space-around; padding: 0 8px; border-right: 0; border-top: 1px solid var(--sep); z-index: 20; }
  .rail .mark, .rail .spacer { display: none; }
  .content { padding: 18px 14px 24px; }
  .head h1 { font-size: 24px; }
  .search .input { width: 100%; }
  .toolbar > * { min-width: 0; }
  .toolbar .search, .toolbar select, .toolbar .seg { flex: 1 1 100%; }
  .toolbar .grow { display: none; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .head .btn.primary { order: 3; flex: 1 1 100%; min-height: 44px; }
  .thead { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "main act" "st st" "pr pr" "sub sub"; row-gap: 8px; }
  .trow .c-main { grid-area: main; } .trow .c-st { grid-area: st; } .trow .c-pr { grid-area: pr; } .trow .c-act { grid-area: act; } .trow .c-sub { grid-area: sub; }
  .trow .c-sub > :first-child { margin-top: 0; }
  .agents .trow { grid-template-columns: minmax(0, 1fr) 40px; }
  #users th:nth-child(3), #users td:nth-child(3), #users th:nth-child(4), #users td:nth-child(4) { display: none; }
  .btn, .seg button, .opt, .folder { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* звук с FTP */
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt .dim { color: var(--label-3); font-size: 12px; }
.opt .cloud { color: var(--accent-text); font-size: 12px; }
.picked { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 4px 4px 12px; border-radius: var(--r); background: var(--elev-2); font-size: 14px; font-weight: 500; }
.picked svg.i { color: var(--accent-text); }
.picked .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btns { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 720px) {
  .head #audio { order: 3; flex: 1 1 100%; min-height: 44px; }
}

/* тайтлы и чек-лист материалов */
.tlink { color: inherit; }
.tlink:hover { color: var(--accent-text); text-decoration: none; }
.titles .trow { grid-template-columns: minmax(0, 1fr) 24px; cursor: pointer; }
.titles .trow:hover { background: var(--elev-2); }
.titles .trow svg.i { color: var(--label-3); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent-text); margin-bottom: 6px; }
.back svg.i { transform: rotate(180deg); width: 16px; height: 16px; }
.sub-h { font-size: 13px; color: var(--label-3); margin-top: 2px; }
.sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sum > div { padding: 14px 16px; border-radius: var(--r-lg); background: var(--elev); }
.sum .k { font-size: 12px; color: var(--label-3); }
.sum .v { font-size: 22px; font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.sum .v small { font-size: 14px; font-weight: 500; color: var(--label-3); }
.sum .bar > i { background: var(--orange); }
.sum .full .bar > i { background: var(--green); }
.ck td, .ck th { text-align: center; }
.ck td:first-child, .ck th:first-child { text-align: left; font-weight: 600; }
.ck .yes { color: var(--green); }
.ck .no { color: var(--label-3); }
.ck svg.i { width: 18px; height: 18px; vertical-align: middle; }
.tag-ftp { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); white-space: nowrap; }
.ck tr.miss td { background: rgba(255, 159, 10, .04); }
.live { font-size: 12px; color: var(--label-3); margin-left: 6px; font-weight: 400; }
@media (max-width: 720px) {
  .sum { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sum > div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .sum .bar { grid-column: 1 / -1; }
  .ck td, .ck th { padding: 10px 8px; }
}
.titles .trow { grid-template-areas: none; text-decoration: none; color: inherit; align-items: center; }
.titles .trow:hover { text-decoration: none; }
