
/* ---------- сводки ---------- */
.card.sum { padding-bottom: 12px; }
.acc { display: grid; margin-top: 8px; }
.acc-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; border-top: 1px solid var(--line); text-align: left; font-size: 17px; line-height: 22px; font-weight: 500; }
.acc-h .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.acc-h[aria-expanded="true"] .chev { transform: rotate(90deg); }
.acc-h.is-doing, .acc-h.is-doing .acc-n { color: color-mix(in srgb, var(--doing) 80%, var(--text)); }
.acc-n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-n.zero { color: var(--muted); font-weight: 400; }
.acc-l { padding-bottom: 8px; }
.acc-i { display: block; width: 100%; min-height: 44px; padding: 6px 0; text-align: left; font-size: 15px; line-height: 20px; }
.acc-i time { display: block; font-size: 13px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-empty { padding: 4px 0 12px; font-size: 15px; line-height: 20px; color: var(--muted); }
.stats { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; margin-top: 16px; }
.stat { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; line-height: 18px; color: var(--muted); }
.stat.s-done b { color: color-mix(in srgb, var(--done) 80%, var(--text)); }
.stat.s-idea b { color: color-mix(in srgb, var(--snooze) 80%, var(--text)); }

/* ---------- «План»: переключатель и лупа сверху, под ними календарь (4 дня, неделя) или список ---------- */
.page-plan { display: flex; flex-direction: column; overflow: hidden; }
.plan-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; }
.plan-seg { flex: 1; min-width: 0; }
.plan-find { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.plan-find:active { background: var(--surface-2); }
.plan-cal { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.plan-cal > .biz-wait { min-height: 100%; }
.plan-list { flex: 1; min-height: 0; padding-bottom: 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.plan-list::-webkit-scrollbar { display: none; }
.plan-sec { padding: 12px 16px 0; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-bottom: 8px; }
.sec-row h3 { padding: 0 4px; }
.sec-act { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 20px; font-weight: 500; }
.sec-act:active { background: var(--surface-2); }
.plan-sec h3 { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
.plan-sec h3 span { font-size: 15px; line-height: 20px; font-weight: 400; color: var(--muted); }
.plan-sec h3.over { color: color-mix(in srgb, var(--urgent) 80%, var(--text)); }
.sec-toggle { display: flex; align-items: center; width: 100%; min-height: 44px; text-align: left; }
.sec-toggle .chev { width: 16px; height: 16px; margin-left: 8px; color: var(--muted); transition: transform .2s; }
.sec-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.rows { overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) var(--shade-s), transparent); }
.row { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-height: 52px; padding: 14px 16px 14px 12px; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row:active { background: var(--surface-2); }
.row-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.row-dot.u { background: var(--urgent); }
.row-t { flex: none; width: 48px; font-size: 15px; line-height: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: break-word; }
.row-dot.i { background: var(--snooze); }
.row-file { align-items: center; }
.row-file .fl-pv { width: 44px; height: 44px; margin-left: 4px; }
mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--doing) 28%, transparent); color: inherit; }
.row-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; vertical-align: 1px; white-space: nowrap; border-radius: 10px; background: color-mix(in srgb, var(--doing) 16%, var(--surface)); color: color-mix(in srgb, var(--doing) 80%, var(--text)); font-size: 13px; line-height: 16px; font-weight: 600; }
.row-steps { flex: none; margin-top: 3px; padding: 0 8px; border-radius: 10px; background: var(--surface-2); font-size: 13px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row.is-done .row-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.plan-empty { padding: 4px 4px 4px; font-size: 15px; line-height: 20px; color: var(--muted); }
.plan-empty.pad { padding: 32px 16px; text-align: center; overflow-wrap: break-word; }
/* ---------- поиск поверх «Плана» (лупа): поле ввода, «Отмена», найденное ---------- */
.search-layer { position: absolute; left: 0; right: 0; top: calc(48px + env(safe-area-inset-top, 0px)); bottom: var(--dock-h); z-index: 19; display: flex; flex-direction: column; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s; }
.search-layer.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.search-bar { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px 16px; }
.search-cancel { flex: none; min-height: 44px; padding: 0 12px; border-radius: 22px; color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-size: 17px; line-height: 22px; font-weight: 600; }
.search-cancel:active { background: var(--surface-2); }
.search-body { flex: 1; min-height: 0; padding-bottom: 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.search-body::-webkit-scrollbar { display: none; }
.plan-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) var(--shade-s), transparent); color: var(--muted); }
.plan-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.plan-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; color: var(--text); font: 400 17px/22px var(--font-ui); outline: none; }
.plan-search input::placeholder { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .search-layer, .search-layer.on { transform: none; transition: opacity .15s, visibility 0s; } }

/* ---------- «Идеи» ---------- */
.page-ideas { padding: 4px 16px 24px; }
.page-ideas .seg { margin-bottom: 16px; }
.board { column-count: 2; column-gap: 12px; }
.note { display: flex; flex-direction: column; align-items: flex-start; width: 100%; break-inside: avoid; margin: 0 0 12px; padding: 14px 12px 14px 14px; text-align: left; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) var(--shade-s), transparent); }
.note.is-idea { box-shadow: inset 3px 0 0 var(--snooze), 0 1px 2px color-mix(in srgb, var(--shade) var(--shade-s), transparent); }
.note:active { background: var(--surface-2); }
.note-k { margin-bottom: 4px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); }
.note.is-idea .note-k { color: color-mix(in srgb, var(--snooze) 80%, var(--text)); }
.note-t { font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: break-word; max-width: 100%; }
.note-b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-top: 6px; max-width: 100%; font-size: 15px; line-height: 20px; color: var(--muted); overflow-wrap: break-word; }
.note-f { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; font-size: 13px; line-height: 16px; color: var(--muted); }
.note-clip { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.note-clip .ico { width: 14px; height: 14px; }
.board-empty { padding: 32px 8px; text-align: center; font-size: 15px; line-height: 20px; color: var(--muted); }
