
/* ---------- линейка времени ---------- */
.rl-title { font-size: 15px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.rl-q { margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 600; }
.rl-result { margin-top: 4px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rl-zone { position: relative; height: 56px; margin-top: 8px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.rl-track { position: absolute; left: 32px; right: 32px; top: 0; bottom: 0; }
.rl-line { position: absolute; left: -8px; right: -8px; top: 22px; height: 4px; margin-top: -2px; border-radius: 2px; background: color-mix(in srgb, var(--snooze) 16%, var(--surface)); }
.rl-fill { position: absolute; left: -8px; top: 22px; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--snooze); }
.rl-tick { position: absolute; top: 34px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.rl-tick.major { top: 34px; height: 12px; background: var(--muted); }
.rl-thumb { position: absolute; top: 22px; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--snooze); box-shadow: 0 0 0 4px var(--surface), 0 2px 10px color-mix(in srgb, var(--shade) var(--shade-m), transparent); }
.rl-thumb.snap { transition: left .22s var(--spring); }
.rl-fill.snap { transition: width .22s var(--spring); }
.rl-stops { position: relative; height: 48px; }
.rl-stop { position: absolute; top: 0; width: 64px; height: 48px; margin-left: -32px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 5px; border-radius: 12px; font-size: 14px; line-height: 18px; font-weight: 500; }
.rl-stop small { font-size: 13px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rl-stop[aria-pressed="true"] { color: color-mix(in srgb, var(--snooze) 80%, var(--text)); font-weight: 700; background: color-mix(in srgb, var(--snooze) 12%, var(--surface)); }
.rl-extra { margin-top: 8px; }
.rl-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.rl-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; background: var(--surface-2); font-size: 17px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rl-day small { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); }
.rl-day[aria-pressed="true"] { background: color-mix(in srgb, var(--snooze) 18%, var(--surface)); box-shadow: inset 0 0 0 2px var(--snooze); }
.rl-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 15px; line-height: 20px; color: var(--muted); }
.field-time { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 600 17px/22px var(--font-ui); font-variant-numeric: tabular-nums; }
.rl-btns { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 12px; }
.solid.snooze { background: var(--snooze); }
.rl-some { display: block; width: 100%; min-height: 44px; margin-top: 4px; border-radius: 14px; color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-size: 16px; line-height: 20px; font-weight: 600; text-align: center; }
.rl-some:active { background: var(--surface-2); }

/* ---------- метки при записи: время (всегда), «Срочно», тип только у идеи и заметки ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; }
.chip { flex: none; display: inline-flex; align-items: center; height: 44px; border-radius: 22px; background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 18px; font-weight: 500; }
.chip-main { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; }
.chip-main .ico { width: 16px; height: 16px; }
.chip-x { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -14px; border-radius: 0 22px 22px 0; opacity: .7; }
.chip-x .ico { width: 14px; height: 14px; }
.chip.t-task { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
.chip.t-idea { background: color-mix(in srgb, var(--snooze) 14%, var(--surface)); color: color-mix(in srgb, var(--snooze) 78%, var(--text)); }
.chip.t-note { background: color-mix(in srgb, var(--drop) 16%, var(--surface)); }
.chip.t-urgent { background: color-mix(in srgb, var(--urgent) 14%, var(--surface)); color: color-mix(in srgb, var(--urgent) 80%, var(--text)); }
.chip.t-time { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip.t-file { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
/* метка шагов: нажатие раскрывает список под метками (только просмотр), крестик отменяет деление */
.chip.t-steps { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip-chev { transform: rotate(90deg); transition: transform .15s var(--ease-out); }
.chip-main[aria-expanded="true"] .chip-chev { transform: rotate(-90deg); }
.chip-main .chip-chev { width: 12px; height: 12px; margin-left: -2px; color: var(--muted); }
.chip-steps { flex: 0 0 100%; min-width: 0; max-height: 132px; margin: 0; padding: 6px 14px; list-style: none; counter-reset: st; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; background: var(--surface-2); }
.chip-steps li { counter-increment: st; display: flex; gap: 10px; padding: 4px 0; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.chip-steps li::before { content: counter(st); flex: none; width: 18px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- переключатель ---------- */
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: color-mix(in srgb, var(--muted) 30%, var(--surface)); transition: background .2s; }
.switch::before { content: ""; position: absolute; inset: -8px -4px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--icon-fg); box-shadow: 0 1px 3px color-mix(in srgb, var(--shade) var(--shade-m), transparent); transition: transform .25s var(--spring); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.sheet .solid.wide { width: 100%; margin-top: 16px; }

/* ---------- «Подробнее»: шаги ---------- */
.dt-kicker { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--muted); }
.dt-title { margin-top: 4px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; }
/* название правится на месте: при правке — синяя черта снизу, как у поля записи */
.dt-title[contenteditable] { cursor: text; outline: none; border-radius: 0; -webkit-user-select: text; user-select: text; }
.dt-title[contenteditable]:focus { box-shadow: 0 2px 0 var(--accent); }
.dt-sum { margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--muted); }
.dt-urg { font-weight: 600; color: color-mix(in srgb, var(--urgent) 80%, var(--text)); }
.dt-h { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; font-size: 17px; line-height: 22px; font-weight: 600; }
.dt-h span { font-size: 15px; line-height: 20px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt-hint { margin-top: 4px; font-size: 14px; line-height: 18px; color: var(--muted); }
.steps { position: relative; margin-top: 4px; }
.steps ul { margin: 0; padding: 0; list-style: none; }
.step { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 0; text-align: left; }
.step-circle { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); color: var(--on-color); }
.step-circle .ico { width: 14px; height: 14px; stroke-width: 2.8; opacity: 0; }
.step.is-done .step-circle { background: var(--done); box-shadow: none; }
.step.is-done .step-circle .ico { opacity: 1; }
.step-txt { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.step.is-done .step-txt { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.step-more { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 22px; color: var(--muted); }
.step-more:active, .step-more[aria-expanded="true"] { background: var(--surface-2); }
.step-menu { position: absolute; right: 0; z-index: 5; width: min(272px, 100%); padding: 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.step-menu button { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 14px; text-align: left; font-size: 16px; line-height: 20px; font-weight: 500; }
.step-menu button:active { background: var(--surface-2); }
.step-menu .danger { color: color-mix(in srgb, var(--urgent) 80%, var(--text)); }
.step-add { display: flex; align-items: center; gap: 8px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.step-new { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left; font-weight: 600; color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
.add-plus { display: block; width: 24px; font-size: 26px; line-height: 24px; font-weight: 400; text-align: center; }
.step-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 400 17px/22px var(--font-ui); }
.step-input::placeholder { color: var(--muted); }
.step-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.step-add .step-ok { flex: none; min-height: 48px; padding: 0 16px; font-size: 16px; }
.sl-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sl-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.sl-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin: 4px 5px 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.sl-btns { display: grid; gap: 8px; margin-top: 20px; }
.solid.done { background: color-mix(in srgb, var(--done) 16%, var(--surface)); color: color-mix(in srgb, var(--done) 78%, var(--text)); box-shadow: inset 0 0 0 2px var(--done); }
.when-task { margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--muted); overflow-wrap: break-word; }
.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.when-grid button { min-height: 56px; padding: 8px 12px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--doing) 13%, var(--surface)); color: color-mix(in srgb, var(--doing) 78%, var(--text)); font-size: 16px; line-height: 20px; font-weight: 600; }
.when-grid button:active { background: color-mix(in srgb, var(--doing) 26%, var(--surface)); }
.sheet .ghost-btn.wide { width: 100%; margin-top: 8px; }
