/* ---------- срочные: кружок у вкладки «Сейчас», строка лестницы, линейка до часа ---------- */
.tab-badge { position: absolute; top: 2px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: color-mix(in srgb, var(--urgent) 88%, var(--text)); color: var(--on-color); box-shadow: 0 0 0 2px var(--bg); font: 700 12px/18px var(--font-ui); font-style: normal; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }

/* верх карточки: слева метка (переносится сама), справа кольцо повторов остаётся наверху */
.card-top { align-items: flex-start; flex-wrap: nowrap; }
.card-lead { flex: 1 1 0; flex-wrap: wrap; row-gap: 4px; }
.card-top .ring { margin-left: auto; padding-top: 0; }
.tag-urgent { white-space: nowrap; }
.card-ladder { margin-top: 6px; font-size: 13px; line-height: 16px; color: var(--muted); overflow-wrap: break-word; }
.card-ladder.is-sent { font-weight: 500; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }

.rl-urg-note { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; line-height: 18px; font-weight: 600; color: color-mix(in srgb, var(--urgent) 80%, var(--text)); }
.rl-urg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--urgent); }
.rl-rec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 4px 0 12px; border-radius: 14px; background: var(--surface-2); font-size: 15px; line-height: 20px; font-weight: 500; }
.rl-rec-undo { flex: none; min-height: 44px; padding: 0 14px; border-radius: 14px; color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-weight: 600; }
.rl-rec-undo:active { background: var(--line); }
.rl-unurg { display: block; width: 100%; min-height: 48px; margin-top: 4px; border-radius: 14px; background: color-mix(in srgb, var(--urgent) 10%, var(--surface)); color: color-mix(in srgb, var(--urgent) 80%, var(--text)); font-size: 16px; line-height: 20px; font-weight: 600; text-align: center; }
.rl-unurg:active { background: color-mix(in srgb, var(--urgent) 18%, var(--surface)); }

/* ---------- «Ассистент пишет сам»: новые карточки ---------- */
.card[data-type="stuck"]:not(.is-urgent) { box-shadow: inset 4px 0 0 var(--doing), var(--shadow-card); }
.nudge .card-title { margin-top: 10px; }
.idea-lead { display: block; margin-bottom: 2px; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.quote.q-idea { border-left-color: color-mix(in srgb, var(--snooze) 55%, transparent); }
.q-rows { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.q-rows .acc-i + .acc-i { border-top: 1px solid var(--line); }
.q-more { padding: 0 0 8px; font-size: 13px; line-height: 16px; color: var(--muted); }

/* ряды кнопок под карточками-сводками и «Застрявшим» */
.actions[data-layout="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions[data-layout="three"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions[data-layout="two"] .ans-one, .actions[data-layout="three"] .ans-one { grid-column: auto; }
.actions[data-layout="stuck"] { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.ans-alt { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.ans-alt:active { background: var(--surface-2); }

/* ---------- настройки: блок «Срочные», «Ассистент пишет сам», «Сферы» ---------- */
.grp-sub { margin: 16px 0 8px; padding: 0 16px; font-size: 15px; line-height: 20px; font-weight: 600; }
.grp-note { margin: 8px 0 0; padding: 0 16px; font-size: 13px; line-height: 18px; color: var(--muted); overflow-wrap: break-word; }
.set-row.is-sub { padding-left: 32px; }
.set-row.is-sub .set-k { font-size: 15px; line-height: 20px; color: var(--muted); }
.set-row.is-sub .set-val { color: var(--text); font-weight: 600; }
#sphName { z-index: 54; }
.sn-input { display: block; width: 100%; margin-top: 12px; }
