/* ---------- лист «Добавить» ---------- */
.add-list { display: grid; gap: 8px; margin-top: 12px; }
.add-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 16px 8px 12px; border-radius: 20px; background: var(--surface-2); text-align: left; font-size: 18px; line-height: 24px; font-weight: 600; }
.add-row:active { background: var(--line); }
.add-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
.add-ic .ico { width: 24px; height: 24px; }
.add-t { min-width: 0; overflow-wrap: break-word; }
.add-note { margin-top: 12px; padding: 0 8px; text-align: center; font-size: 13px; line-height: 16px; color: var(--muted); }

/* ---------- выбор из списка (сфера, повтор), выбор срока, правка текста ---------- */
.ch-list { display: grid; margin-top: 8px; }
.ch-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 4px; border-top: 1px solid var(--line); text-align: left; font-size: 17px; line-height: 22px; font-weight: 500; }
.ch-row:first-child { border-top: 0; }
.ch-row .sph-dot { width: 12px; height: 12px; }
.ch-check { width: 20px; height: 20px; margin-left: auto; color: var(--accent); opacity: 0; }
.ch-row[aria-pressed="true"] { font-weight: 600; }
.ch-row[aria-pressed="true"] .ch-check { opacity: 1; }
.dp-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.dp-q { min-height: 48px; padding: 0 8px; border-radius: 16px; background: var(--surface-2); font-size: 16px; line-height: 20px; font-weight: 600; }
.dp-q[aria-pressed="true"], .dp-days .rl-day[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.dp-days { margin-top: 12px; }
.ed-text { display: block; width: 100%; min-height: 168px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 400 17px/24px var(--font-ui); resize: none; }
.ed-text::placeholder { color: var(--muted); }
.ed-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor .rl-btns { margin-top: 12px; }

/* ---------- «Подробнее»: «Когда напомнить» на виду, остальное под «Ещё» ---------- */
.dt-props { margin-top: 16px; overflow: hidden; border-radius: 18px; background: var(--surface-2); }
.prop { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: left; }
.prop + .prop, .dt-more > div > .prop:first-child { border-top: 1px solid var(--line); }
button.prop:active { background: var(--line); }
.prop-k { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.prop-k small { display: block; font-size: 13px; line-height: 16px; color: var(--muted); }
.prop-v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 17px; line-height: 22px; color: var(--muted); text-align: right; overflow-wrap: break-word; }
.prop-v.is-hot { color: color-mix(in srgb, var(--urgent) 80%, var(--text)); font-weight: 600; }
.prop .chev { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.prop-col { display: block; padding-block: 10px 12px; }
.dt-more { margin-top: 20px; }
#dtMore .chev { margin-left: auto; }
#dtMore[aria-expanded="true"] .chev { transform: rotate(90deg); }
.dt-kind { margin-top: 8px; }

/* ---------- настройки: полный экран ---------- */
.set-screen { z-index: 44; }
.set-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.set-body { flex: 1; min-height: 0; padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.grp-h { margin: 24px 0 8px; padding: 0 16px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.set-body > .grp-h:first-child { margin-top: 8px; }
.grp { overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) var(--shade-s), transparent); }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; min-height: 52px; padding: 8px 16px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-k { min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.set-k small { display: block; font-size: 13px; line-height: 16px; color: var(--muted); }
.set-k.link { color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-weight: 500; }
.set-val { margin-left: auto; min-width: 0; max-width: 100%; font-size: 15px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: break-word; }
.set-sw { flex-wrap: nowrap; justify-content: space-between; }
.set-sw .set-k { flex: 1; }
.set-sph { flex-wrap: nowrap; gap: 12px; padding-block: 12px; }
.set-sph .set-k { flex: 1; font-weight: 500; }
.set-col { display: block; padding-block: 12px; }
.set-list { margin: 4px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 20px; color: var(--muted); }
.set-list li + li { margin-top: 2px; }
/* строки со значением: нажатие открывает маленький нижний лист */
.set-edit { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; width: 100%; text-align: left; }
.set-edit:active { background: var(--surface-2); }
.set-edit .set-k { flex: 1; }
.set-edit .set-val { flex: none; max-width: 60%; margin-left: 0; }
.set-edit .chev { flex: none; width: 16px; height: 16px; margin-left: -4px; color: var(--muted); }

/* лист «Время»: часы 06:00–23:00, минуты, «Готово» */
.tp-seg { margin-top: 12px; }
.tp-seg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-val { margin-top: 8px; font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.tp-min { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.tp-grid button, .tp-min button { min-height: 44px; padding: 0 2px; border-radius: 14px; background: var(--surface-2); font-size: 15px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-min button { min-height: 48px; font-size: 17px; }
.tp-grid button:active, .tp-min button:active { background: var(--line); }
.tp-grid button[aria-pressed="true"], .tp-min button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 600; }

/* лист «Числа»: «−» и «+» */
.np-list { display: grid; margin-top: 8px; }
.np-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 0; border-top: 1px solid var(--line); }
.np-row:first-child { border-top: 0; }
.np-k { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.np-v { min-width: 84px; text-align: center; font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-btn { flex: none; width: 52px; height: 52px; border-radius: 26px; background: var(--surface-2); font-size: 28px; line-height: 28px; font-weight: 400; }
.np-btn:active:not(:disabled) { background: var(--line); }
.np-btn:disabled { opacity: .35; }
