/* Supp · Studio 2 — экраны. */

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--canvas); color: var(--ink); }
.splash svg { width: 84px; height: 84px; animation: splash-bob 1.2s var(--ease-out) infinite alternate; }
.splash .se { fill: var(--canvas); }
@keyframes splash-bob { from { transform: translateY(0) scale(1); } to { transform: translateY(-8px) scale(1.03); } }

.small-p { font-size: 14px; }
.spacer { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 4px -6px; padding: 6px 10px 6px 4px; border-radius: 99px; color: var(--ink-2); font-weight: 560; font-size: 14px; }
.back:hover { color: var(--ink); background: var(--surface-2); }
.eyebrow.light { color: rgba(255, 255, 255, .7); }
.hint-line { margin-top: 14px; font-size: 13px; text-align: center; }

/* ---------- «Сегодня»: приветствие ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 4px 0 22px; }
.hero-text { flex: 1 1 380px; min-width: 0; }
.hero-title { font-size: clamp(30px, 3.1vw, 40px); font-weight: 780; letter-spacing: -.045em; line-height: 1.05; margin: 8px 0 8px; text-wrap: balance; }
.hero-title .dot { color: var(--accent); }
.hero-sub { color: var(--ink-2); font-size: 16px; max-width: 760px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- фокус дня ---------- */
.focus-card, .progress-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 24px; min-height: 168px; isolation: isolate; }
.focus-card { background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; }
:root[data-theme="dark"] .focus-card { background: #f4f3ef; }
.fc-top { display: flex; align-items: center; gap: 10px; }
:root[data-theme="dark"] .focus-card .eyebrow.light { color: rgba(20, 21, 24, .6); }
.fc-title { margin-top: 12px; font-size: clamp(22px, 2.1vw, 28px); font-weight: 740; letter-spacing: -.035em; line-height: 1.08; max-width: min(78%, calc(100% - 170px)); text-wrap: balance; }
.fc-notes { margin-top: 10px; opacity: .66; max-width: 62%; font-size: 14.5px; }
.fc-bottom { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.focus-card .tag { background: rgba(255, 255, 255, .12); color: inherit; }
:root[data-theme="dark"] .focus-card .tag { background: rgba(20, 21, 24, .08); }
.fc-timer { font-weight: 680; font-size: 15px; opacity: .8; }
.fc-timer.run { opacity: 1; display: inline-flex; align-items: center; gap: 8px; }
.fc-timer.run::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.fc-btn { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.fc-done { background: var(--accent); color: #fff; box-shadow: none; }
.fc-done:hover, .fc-btn:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.fc-art { position: absolute; z-index: -1; right: -14px; top: -8px; width: 300px; height: 300px; pointer-events: none; transform: scale(.5); transform-origin: top right; }
.fc-art i { position: absolute; display: block; }
.fc-art .a1 { width: 160px; height: 160px; border-radius: 50%; background: var(--cobalt); right: 20px; top: 26px; }
.fc-art .a2 { width: 96px; height: 96px; border-radius: 18px; background: var(--sun); right: 150px; top: 92px; transform: rotate(16deg); }
.fc-art .a3 { width: 70px; height: 70px; border-radius: 50% 50% 50% 12px; background: var(--coral); right: 54px; top: 166px; }

.progress-card { background: var(--accent); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pc-count { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; transform-origin: 0 100%; }
.pc-count b { font-size: 64px; font-weight: 760; letter-spacing: -.05em; line-height: 1; }
.pc-count span { font-size: 22px; opacity: .7; font-weight: 600; }
.pc-count i { font-style: normal; }
.pc-ring { width: 76px; height: 76px; transform: rotate(-90deg); flex: none; }
.pc-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.pc-ring .track { stroke: rgba(255, 255, 255, .22); }
.pc-ring .val { stroke: #fff; }
.pc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 84px; margin-top: auto; }
.pc-day { display: grid; gap: 6px; justify-items: center; height: 100%; grid-template-rows: 1fr auto; }
.pc-day .bar { position: relative; width: 100%; max-width: 26px; height: 100%; border-radius: 8px; background: rgba(255, 255, 255, .14); overflow: hidden; display: flex; align-items: flex-end; }
.pc-day .bar i { display: block; width: 100%; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.pc-day.now .bar i { background: var(--sun); }
.pc-day small { font-size: 11px; opacity: .7; font-weight: 600; }
.pc-day.now small { opacity: 1; }
.pc-streak { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.pc-streak [data-i] { color: var(--sun); }
.pc-streak [data-i] svg { fill: var(--sun); stroke: none; }

/* ---------- «Сегодня»: слева фокус и задачи, справа «Мой день» и погода ---------- */
.today-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
.today-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); min-width: 0; }
.list-card { padding: 18px; }
.list-card .card-head { padding: 4px 6px 0; }
.list-card .quick-add { margin-bottom: 6px; }
.list-card .parsed { padding: 4px 8px 8px; }
.today-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.empty.small { padding: 26px 16px 18px; }
.empty.small .cat-wrap { width: 72px; height: 72px; }
.done-box { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.done-box summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 12px 10px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 14px; border-radius: var(--r-sm); }
.done-box summary::-webkit-details-marker { display: none; }
.done-box summary:hover { background: var(--surface-2); }
.done-box summary [data-i] { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.done-box[open] summary [data-i] { transform: rotate(90deg); }
.next-list { display: grid; gap: 4px; }
.next-list li { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--t-fast); }
.next-list li:hover { background: var(--surface-2); }
.nd { display: grid; place-items: center; width: 44px; height: 46px; border-radius: 12px; background: var(--surface-2); flex: none; line-height: 1; }
.nd b { font-size: 17px; font-weight: 720; }
.nd small { font-size: 11px; color: var(--ink-3); font-weight: 650; text-transform: uppercase; }
.nt { min-width: 0; }
.nt b { display: block; font-weight: 560; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt small { color: var(--ink-3); font-size: 12.5px; }
.later { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.later .eyebrow { margin-bottom: 4px; }
.later-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 10px; margin: 0 -8px; border-radius: var(--r-sm); text-align: left; font-size: 14px; }
.later-item:hover { background: var(--surface-2); }
.later-item .tag { opacity: 0; transition: opacity var(--t-fast); }
.later-item:hover .tag, .later-item:focus-visible .tag { opacity: 1; }
@media (hover: none) { .later-item .tag { opacity: 1; } }
.mini-projects { display: grid; gap: 14px; }
.mp { display: grid; gap: 8px; }
.mp-top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mp-top b { font-weight: 580; flex: 1; }
.mp-top .dot { width: 10px; height: 10px; border-radius: 4px; }
.mp-top small { color: var(--ink-3); font-weight: 600; }
.mp-bar, .pj-bar, .cr-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mp-bar i, .pj-bar i, .cr-bar i { display: block; height: 100%; border-radius: 99px; }
.mp:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- «Задачи» ---------- */
.chips.scroll.filter-row { margin-bottom: 20px; --pad: 0px; }
.tasks-card { padding: 6px 14px 14px; }
.tasks-card .group-title:first-child { padding-top: 14px; }
.show-done { display: flex; align-items: center; gap: 8px; margin: 12px auto 0; padding: 10px 16px; border-radius: 99px; color: var(--ink-3); font-weight: 600; font-size: 13.5px; }
.show-done:hover { color: var(--ink); background: var(--surface-2); }
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.quad { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 16px 12px 12px; min-height: 240px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; }
.quad::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--qc); }
.quad header { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; }
.quad header b { display: block; font-weight: 700; letter-spacing: -.02em; }
.quad header small { display: block; color: var(--ink-3); font-size: 12.5px; }
.quad header .badge { margin-left: auto; }
.qdot { width: 14px; height: 14px; border-radius: 5px; background: var(--qc); flex: none; }
.quad-list { min-height: 120px; border-radius: var(--r-md); }
.drag-ghost { opacity: .35; }
.drag-on { opacity: 1 !important; box-shadow: var(--shadow-3) !important; background: var(--surface) !important; border-radius: var(--r-md); }

/* ---------- календарь ---------- */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 14px; }
.cal-title { font-size: 26px; font-weight: 740; letter-spacing: -.03em; line-height: 1; }
.cal-title small { font-size: 15px; font-weight: 560; color: var(--ink-3); letter-spacing: 0; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.cal-card { padding: 18px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 6px; padding: 0 0 10px; }
.cal-wd span { text-align: center; color: var(--ink-3); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.cal-clip { overflow: hidden; touch-action: pan-y; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-cell { min-width: 0; position: relative; display: grid; align-content: start; justify-items: stretch; gap: 4px; min-height: 112px; padding: 8px 8px 8px; border-radius: 14px; text-align: left; transition: background var(--t-fast), box-shadow var(--t-fast); }
.cal-cell:not(.empty):hover { background: var(--surface-2); }
.cal-cell b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 600; font-size: 14px; justify-self: start; }
.cal-cell.past b { color: var(--ink-3); }
.cal-cell.today b { background: var(--ink); color: var(--on-ink); }
.cal-cell.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.late::after { content: ''; position: absolute; top: 9px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; justify-content: center; }   /* точки — только на телефоне, на ПК в ячейке список дел */
.cal-chips { display: grid; gap: 3px; min-width: 0; }
.cal-chip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; min-width: 0; padding: 2px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 540; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); box-shadow: inset 2px 0 0 var(--c, var(--accent)); }
.cal-chip.done { color: var(--ink-3); text-decoration: line-through; background: var(--surface-2); box-shadow: inset 2px 0 0 var(--ink-3); }
.cal-chip.st-miss { color: var(--coral); }
.cal-chip.st-skipped { color: var(--ink-2); }
.cal-more { font-size: 11px; color: var(--ink-3); font-weight: 600; padding-left: 7px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
.cal-cell small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.day-card { padding: 16px; position: sticky; top: 76px; }
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.day-big { display: flex; align-items: center; gap: 12px; }
.day-big b { font-size: 38px; font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.day-big span { display: grid; font-weight: 650; font-size: 16px; line-height: 1.2; }
.day-big small { color: var(--ink-3); font-weight: 560; font-size: 13px; text-transform: capitalize; }

/* ---------- проекты ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.proj-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow var(--t-med); text-align: left; }
.proj-card:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.pj-cover { height: 150px; background: color-mix(in srgb, var(--pc) 14%, var(--surface)); overflow: hidden; }
.pj-cover svg { width: 100%; height: 100%; }
.pj-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.pj-name { display: flex; align-items: center; gap: 8px; }
.pj-name b { font-size: 18px; font-weight: 720; letter-spacing: -.025em; }
.pj-body p { color: var(--ink-2); font-size: 14px; min-height: 21px; }
.pj-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.pj-foot .pj-bar { flex: 1; }
.pj-bar i { background: var(--pc); }
.pj-pct { font-weight: 700; font-size: 14px; }
.proj-card small { font-size: 12.5px; }
.proj-card.add { align-items: center; justify-content: center; gap: 8px; min-height: 300px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); border: 0; color: var(--ink-2); padding: 20px; text-align: center; }
.proj-card.add:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.proj-card.add b { font-size: 16px; font-weight: 680; color: var(--ink); }
.proj-card.add small { max-width: 200px; color: var(--ink-3); }
.pa-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 20px; background: var(--ink); color: var(--on-ink); margin-bottom: 6px; transition: transform .4s var(--ease-spring); }
.proj-card.add:hover .pa-plus { transform: rotate(90deg) scale(1.06); }

.pj-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 20px; margin: 8px 0 18px; padding: 30px 32px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--pc) 14%, var(--surface)); overflow: hidden; min-height: 220px; }
.pj-hero-art { position: absolute; right: -20px; top: 0; bottom: 0; width: 420px; }
.pj-hero-art svg { width: 100%; height: 100%; }
.pj-hero-text { position: relative; z-index: 1; }
.pj-hero h1 { font-size: var(--fs-display); font-weight: 780; letter-spacing: -.045em; line-height: 1.02; }
.pj-hero p { margin-top: 8px; color: var(--ink-2); max-width: 460px; }
.pj-hero-stats { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.pj-hero-stats b { font-size: 22px; font-weight: 760; color: var(--ink); letter-spacing: -.03em; margin-right: 2px; }
.pj-menu { position: absolute; z-index: 2; top: 14px; right: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.pj-tabs { margin-bottom: 16px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
/* вторая полоса прокрутки над колонками (projects.js: ширина = ширине доски, позиции синхронизированы) */
.board-xbar { overflow-x: auto; overflow-y: hidden; height: 14px; margin: -4px 0 6px; }
.board-xbar > div { height: 1px; }
.board-xbar.off { display: none; }
.board::-webkit-scrollbar, .board-xbar::-webkit-scrollbar { height: 10px; }
.board::-webkit-scrollbar-thumb, .board-xbar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
.board::-webkit-scrollbar-thumb:hover, .board-xbar::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
.col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); min-height: 360px; scroll-snap-align: start; }
:root[data-theme="dark"] .col { background: var(--surface); }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.col header b { font-size: 14px; font-weight: 680; flex: 1; }
.sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); }
.col-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; flex: 1; min-height: 60px; }   /* весь столбец — зона броска; «добавить» — последним в списке */
.kcard { display: grid; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); cursor: grab; transition: box-shadow var(--t-fast), transform var(--t-fast); }
:root[data-theme="dark"] .kcard { background: var(--surface-2); }
.kcard:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.kcard b { font-weight: 560; font-size: 14.5px; line-height: 1.35; }
.kcard.done b { color: var(--ink-3); text-decoration: line-through; }
.k-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.k-meta .tag { max-width: 100%; height: auto; min-height: 24px; white-space: normal; }
.k-meta:empty { display: none; }
.k-meta [data-i] { width: 16px; height: 16px; }
.k-note { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }   /* комментарий (описание дела) внизу карточки, до 90 знаков */
/* «добавить» под последней карточкой: плашка как уведомление о деле — цветной круг этапа, значок, подпись */
.col-add { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border-radius: var(--r-md); text-align: left; color: var(--ink-2);
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc, var(--accent)) 16%, var(--surface)), var(--surface) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc, var(--accent)) 26%, var(--line)); cursor: pointer; transition: box-shadow var(--t-fast), transform .25s var(--ease-out); }
.col-add::before { content: ''; position: absolute; right: -26px; top: -30px; width: 84px; height: 84px; border-radius: 50%; background: var(--sc, var(--accent)); opacity: .18; pointer-events: none; }
.col-add:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc, var(--accent)) 45%, var(--line)), var(--shadow-1); }
.col-add:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.col-add .ca-ico { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--sc, var(--accent)) 24%, var(--surface)); color: var(--ink); }
.col-add .ca-ico [data-i] { width: 18px; height: 18px; }
.col-add .ca-t { position: relative; display: grid; min-width: 0; }
.col-add .ca-t b { font-size: 14px; font-weight: 640; color: var(--ink); }
.col-add .ca-t small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-add input { position: relative; flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.col-add input::placeholder { color: var(--ink-2); }
/* поля на карточке: значок, подпись, значение — щелчок копирует */
.k-fields { display: grid; grid-template-columns: fit-content(38%) minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 12.5px; }
.k-fields dt { min-width: 0; display: flex; align-items: baseline; gap: 5px; color: var(--ink-3); overflow-wrap: anywhere; }
.k-fields dt span { min-width: 0; }
.k-fields dt [data-i] { flex: none; width: 13px; height: 13px; }
.k-fields dd { margin: 0; min-width: 0; }
.kf { max-width: 100%; padding: 0 2px; border-radius: 6px; color: var(--ink-2); font: inherit; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; display: block; cursor: copy; }
.k-value summary { color: var(--accent-text); cursor: pointer; overflow-wrap: anywhere; }
.k-value:not([open]) summary span + span, .k-value[open] summary span:first-child { display: none; }
.kf:hover { background: var(--accent-soft); color: var(--accent-text); }
.k-q { display: inline-block; width: 8px; height: 8px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--qc); vertical-align: middle; }
.k-meta .tag.run { background: var(--ok-soft); color: var(--ok); }
.board-bar .chip .badge { margin-left: 2px; }
/* исполнитель на карточке (03.11.2026): кружок с инициалами + имя; чип-фильтр «Исполнитель» в полосе канбана — чип с <select> внутри */
.k-meta .tag.k-who { padding-left: 4px; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.k-ini { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.chip.who-chip { min-width: 0; max-width: 100%; padding-right: 8px; cursor: pointer; }
.chip.who-chip .choice-trigger { min-height: 100%; padding: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; }
.task .t-meta .t-who { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.task .t-meta .t-who [data-i] { width: 13px; height: 13px; }
.ed-people .field .input { width: 100%; }
/* быстрое добавление в четверть матрицы */
.quad-add { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-3); background: color-mix(in srgb, var(--qc) 8%, transparent); }
.quad-add:focus-within { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.quad-add input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }

/* ---------- заметки ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.note-card { position: relative; display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 22px 20px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .4s var(--ease-spring), box-shadow var(--t-med); }
.note-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.notes-grid > * { min-width: 0; }                       /* ячейка сетки не растёт под длинное слово в заголовке (03.11.2026, телефон) */
.note-card b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.note-card small, .note-card p { overflow-wrap: anywhere; }
.note-card p { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.note-card small { margin-top: auto; font-size: 12.5px; }
.nc-tab { position: absolute; top: 0; left: 20px; width: 36px; height: 6px; border-radius: 0 0 6px 6px; background: var(--pc); }
.note-card.big { grid-column: span 2; background: color-mix(in srgb, var(--pc) 16%, var(--surface)); }
.note-card.big b { font-size: 24px; }
.note-card.add { place-items: center; align-content: center; text-align: center; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.note-page { max-width: 760px; margin: 10px 0 0; background: var(--surface); border-radius: var(--r-xl); padding: 24px 40px 48px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.note-page.embed-page { max-width: none; }   /* встроенная страница (дашборд) — во всю ширину рабочей области */
.note-tools { display: flex; align-items: center; gap: 10px; margin: 0 -16px 20px; }
.saved { font-size: 13px; }
.note-title { width: 100%; border: 0; outline: 0; background: none; font-size: var(--fs-display); font-weight: 780; letter-spacing: -.045em; line-height: 1.1; padding: 0; margin-bottom: 18px; }
.note-text { width: 100%; border: 0; outline: 0; background: none; resize: none; font: 450 16px/1.7 var(--font); min-height: 320px; padding: 0; }
.md { font-size: 16px; line-height: 1.7; color: var(--ink); }
.md h1 { display: none; }
.md h2 { font-size: 22px; font-weight: 720; letter-spacing: -.02em; margin: 26px 0 8px; }
.md h3 { font-size: 18px; font-weight: 680; margin: 20px 0 6px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md ul { list-style: disc; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--accent); }
.md a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.md code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.md blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--sun); color: var(--ink-2); }

/* ---------- листы: новая задача, редактор, проект, подсказка ---------- */
.qa-sheet .sheet-body { padding-top: 18px; }
.qa { display: grid; gap: 14px; }
.qa-top { display: flex; align-items: center; gap: 14px; }
.qa-top b { display: block; font-size: 20px; font-weight: 740; letter-spacing: -.03em; }
.qa-top small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.qa-cat { width: 52px; height: 52px; flex: none; }
.quick-add.big { min-height: 62px; }
.quick-add.big input { font-size: 18px; font-weight: 520; }
.qa-opts { display: grid; gap: 10px; }
.qa-opts .chips.scroll { --pad: 24px; }
.qa-opts > .chip { justify-self: start; }
.qa-opts .chip.on [data-i] svg { fill: currentColor; }
.ed { display: grid; gap: 20px; }
.ed-title-row { display: flex; gap: 14px; align-items: flex-start; }
.ed-title-row .check { margin-top: 4px; }
.check.on .fill { transform: scale(1); }
.check.on svg path { stroke-dashoffset: 0; }
.check .fill, .check svg path { transition: transform .35s var(--ease-spring), stroke-dashoffset .3s var(--ease-out) .1s; }
.ed-title { flex: 1; border: 0; outline: 0; background: none; resize: none; font-size: 24px; font-weight: 720; letter-spacing: -.03em; line-height: 1.2; padding: 0; overflow: hidden; }
.ed-proj { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 560; font-size: 14px; margin-top: -10px; }
.ed-proj .dot { width: 10px; height: 10px; border-radius: 4px; }
.ed-sec { display: grid; gap: 10px; }
.date-chip { position: relative; cursor: pointer; }
.date-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.switch-row > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.switch-row > span [data-i] { grid-row: span 2; color: var(--sun); }
.switch-row b { font-weight: 640; }
.switch-row small { color: var(--ink-3); font-size: 12.5px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); transition: background .25s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s var(--ease-spring); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.np { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }      /* колонка не шире листа: широкий элемент не растягивает всю форму */
.np-cover { height: 140px; border-radius: var(--r-md); overflow: hidden; background: color-mix(in srgb, var(--pc) 14%, var(--surface)); }
.np-cover svg { width: 100%; height: 100%; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .3s var(--ease-spring); }
.swatch.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.hint-sheet .sheet-body { padding: 28px 28px 26px; }
.hint { display: grid; justify-items: center; text-align: center; gap: 12px; }
.hint h2 { font-size: 24px; font-weight: 760; letter-spacing: -.035em; text-wrap: balance; }
.hint p { color: var(--ink-2); max-width: 400px; }
.hint-actions { display: grid; gap: 6px; width: 100%; margin-top: 10px; }
.hint-art { position: relative; width: 170px; height: 130px; margin-bottom: 4px; }
.hint-art > * { position: absolute; display: block; }
.h-s1 { width: 100px; height: 100px; border-radius: 50%; background: var(--cobalt); left: 0; top: 18px; }
.h-s2 { width: 64px; height: 64px; border-radius: 14px; background: var(--sun); right: 6px; top: 6px; transform: rotate(14deg); }
.hint-cat { width: 92px; height: 92px; left: 40px; top: 32px; }
:root[data-theme="dark"] .hint-cat .c-body, :root[data-theme="dark"] .pro-cat .c-body, :root[data-theme="dark"] .w-cat .c-body, :root[data-theme="dark"] .brand-cat .c-body, :root[data-theme="dark"] .msg-ava .c-body, :root[data-theme="dark"] .pb-cat .c-body { fill: #f4f3ef; }
:root[data-theme="dark"] .hint-cat .c-pupil, :root[data-theme="dark"] .pro-cat .c-pupil, :root[data-theme="dark"] .w-cat .c-pupil, :root[data-theme="dark"] .brand-cat .c-pupil, :root[data-theme="dark"] .msg-ava .c-pupil, :root[data-theme="dark"] .pb-cat .c-pupil { fill: #141518; }
.hint-crown, .pro-crown { width: 40px; height: 40px; color: var(--sun); }
.hint-crown { left: 66px; top: 0; }
.hint-crown svg, .pro-crown svg { fill: var(--sun); stroke: #8a6100; stroke-width: 1; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- помощник ---------- */
@media (min-width: 1200px) { .shell.assist-open .assist { display: block; } }
.assist { display: none; min-width: 0; height: calc(100dvh - var(--tb-h) - 20px); margin: 10px 10px 10px 0; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--glass-line); overflow: hidden; }
.as { display: flex; flex-direction: column; height: 100%; }
.as-page { height: calc(100dvh - var(--tb-h) - 64px - 40px); max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; }
.as-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.as-head b { display: block; font-weight: 720; font-size: 16px; letter-spacing: -.02em; }
.as-head small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.as-log { flex: 1; overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg.me { align-self: flex-end; }
.msg-ava { width: 30px; height: 30px; flex: none; }
.msg-body { display: grid; gap: 8px; }
.msg-text { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface-2); font-size: 15px; line-height: 1.5; }
.msg.me .msg-text { background: var(--ink); color: var(--on-ink); border-radius: 20px 20px 6px 20px; }
.msg-text .li { display: block; padding-left: 14px; position: relative; }
.msg-text .li::before { content: ''; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.msg-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 5px; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface-2); }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.as-sugg { flex-wrap: nowrap; min-width: 0; overflow: clip; margin: 0; padding: 2px 16px 10px; }
.as-sugg .chip { background: var(--surface-2); box-shadow: none; }
.as-input { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px; border-radius: 24px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast), background var(--t-fast); }
.as-input:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.as-input textarea { flex: 1; min-height: 40px; max-height: 140px; padding: 9px 4px; border: 0; outline: 0; background: none; resize: none; font-size: 15px; line-height: 1.45; }
.as-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); transition: background .2s, color .2s, transform .3s var(--ease-spring); }
.as-input.ready .as-send { background: var(--ink); color: var(--on-ink); }
.as-input.ready .as-send:active { transform: scale(.9); }

/* ---------- «Ещё» ---------- */
.me-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.me-card b { display: block; font-size: 17px; font-weight: 700; }
.me-card small { color: var(--ink-3); }
.me-card > [data-i] { margin-left: auto; color: var(--ink-3); }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.pro-banner { position: relative; display: flex; align-items: center; overflow: hidden; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); margin-bottom: 14px; isolation: isolate; min-height: 140px; }
.pro-banner b { display: block; font-size: 19px; font-weight: 740; letter-spacing: -.025em; line-height: 1.2; max-width: 200px; margin-top: 8px; }
.pro-banner .pro-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 99px; background: var(--on-ink); color: var(--ink); }
.pb-cat { position: absolute; right: 18px; bottom: -10px; width: 96px; height: 96px; }
.pro-banner .pb-cat .c-body { fill: var(--on-ink); }
.pro-banner .pb-cat .c-pupil { fill: var(--on-ink); }
.pro-banner .pb-cat .c-eye { fill: var(--ink); }
.pb-s1 { position: absolute; z-index: -1; right: 70px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--cobalt); }
.pb-s2 { position: absolute; z-index: -1; right: -14px; top: 18px; width: 60px; height: 60px; border-radius: 14px; background: var(--sun); transform: rotate(18deg); }
:root[data-theme="dark"] .pro-banner .eyebrow.light { color: rgba(20, 21, 24, .6); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { display: grid; gap: 10px; padding: 16px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.tile-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.tile b { font-size: 14px; font-weight: 640; }
.tile small { color: var(--ink-3); font-size: 12px; margin-top: -8px; }
.row-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 6px; border-radius: var(--r-sm); text-align: left; font-weight: 540; }
.row-link:hover { background: var(--surface-2); }
.row-link span { flex: 1; }
.row-link small { color: var(--ink-3); }
.row-link > [data-i]:last-child { color: var(--ink-3); width: 18px; height: 18px; }
.row-link .dot { width: 10px; height: 10px; border-radius: 4px; }
.more-projects { padding: 14px 14px 8px; }

/* ---------- настройки ---------- */
/* Карточка раздела (.set-sec) — колонка с ровным шагом; каждая настройка — плитка на --surface-2: переключатель
   (.switch-row), поле или выбор (.set-tile: значок, заголовок, пояснение, ниже или справа — элемент управления),
   раскрывающаяся служба (.own-svc). Вложенные элементы плитки выровнены по колонке текста (значок 20 + зазор 10). */
.settings { display: grid; gap: var(--gap); max-width: 860px; }
.set-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.set-stack, .set-tile { min-width: 0; }   /* длинная команда (claude mcp add …) прокручивается внутри, а не растягивает карточку */
.set-sec h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.set-stack { display: grid; gap: 12px; }
.set-sec .switch-row + .switch-row, .set-stack .switch-row + .switch-row { margin-top: -4px; }
.set-tile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.set-tile.inline { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); align-items: center; }
.st-text { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-width: 0; }
.st-text > [data-i] { grid-row: span 2; width: 20px; height: 20px; color: var(--sun); }
.st-text b { font-weight: 640; }
.st-text small { grid-column: 2; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.st-text .st-tag { grid-column: 3; grid-row: 1 / span 2; }
.set-tile .input, .own-svc .input, .set-tile .mcp-code { background: var(--surface); }
.set-tile .chip:not(.on), .set-tile .btn:not(.primary):not(.ghost) { background: var(--surface); }
.set-tile:not(.inline) > :not(.st-text) { margin: 0; padding-left: 30px; }
.set-note { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.set-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.set-head h3 { margin: 0; flex: 1; }
.set-sub { display: grid; gap: 2px; padding: 8px 2px 0; }
.set-sub b { font-weight: 680; }
.set-sub small { color: var(--ink-3); font-size: 12.5px; }
.ac-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ac-projects .switch-row { margin: 0 !important; padding: 12px 14px; }
.ac-dot { display: block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); grid-row: span 2; align-self: center; }
.ac-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-soft); font-size: 13.5px; line-height: 1.5; }
.ac-warn [data-i] { width: 20px; height: 20px; flex: none; color: color-mix(in srgb, var(--sun) 70%, var(--ink)); }
.set-foot { align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 2px 2px 0; font-size: 13px; }
.set-foot .btn-row { margin: 0; }
.own-svc { border-radius: var(--r-md); background: var(--surface-2); }
.own-svc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); cursor: pointer; }
.own-svc summary::-webkit-details-marker { display: none; }
.own-svc summary .st-text { flex: 1; }
.own-svc summary > [data-i] { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-fast); }
.own-svc[open] summary > [data-i] { transform: rotate(90deg); }
.own-svc .fields-grid { padding: 0 16px 16px 46px; }
.own-svc > .btn { margin: 0 16px 16px 46px; }
@media (max-width: 759px) {
  .set-tile.inline { grid-template-columns: minmax(0, 1fr); }
  .set-tile:not(.inline) > :not(.st-text), .own-svc .fields-grid { padding-left: 0; }
  .own-svc .fields-grid { padding: 0 16px 16px; }
  .own-svc > .btn { margin: 0 16px 16px; }
}
.set-profile { display: flex; align-items: flex-end; gap: 16px; }
.grow { flex: 1; }
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tp { display: grid; gap: 10px; padding: 8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow var(--t-fast); }
.tp > span:last-child { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px; font-weight: 600; font-size: 14px; }
.tp > span:last-child [data-i] { width: 17px; height: 17px; }
.tp.on { box-shadow: inset 0 0 0 2px var(--accent); }
.tp-prev { position: relative; display: block; height: 84px; border-radius: 12px; overflow: hidden; }
.tp-prev i { position: absolute; display: block; border-radius: 6px; }
.tp-prev i:nth-child(1) { left: 10px; top: 10px; width: 26px; bottom: 10px; }
.tp-prev i:nth-child(2) { left: 44px; top: 12px; right: 12px; height: 26px; border-radius: 8px; }
.tp-prev i:nth-child(3) { left: 44px; top: 46px; width: 40%; height: 10px; }
.tp-light { background: #ecebe5; } .tp-light i { background: #fff; } .tp-light i:nth-child(2) { background: #141518; } .tp-light i:nth-child(3) { background: #3b49f0; }
.tp-dark { background: #0b0b0d; } .tp-dark i { background: #1a1b1e; } .tp-dark i:nth-child(2) { background: #f4f3ef; } .tp-dark i:nth-child(3) { background: #6d78ff; }
.tp-system { background: linear-gradient(115deg, #ecebe5 50%, #0b0b0d 50%); } .tp-system i { background: rgba(127, 127, 127, .45); } .tp-system i:nth-child(3) { background: #3b49f0; }
.sub-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sub-row > div { flex: 1; min-width: 180px; }
.sub-row b { display: block; font-weight: 680; }
.sub-row small { color: var(--ink-3); font-size: 13px; }
.sub-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--ink); color: var(--sun); flex: none; }
.sub-ico svg { fill: var(--sun); stroke: none; }
.sub-ico.free { background: var(--surface-2); color: var(--ink-2); }
.sub-ico.free svg { fill: none; stroke: currentColor; }
.about { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 6px 4px; border-top: 1px solid var(--line); }
.brand-cat.sm { width: 26px; height: 26px; }
.about small { width: 100%; }

/* ---------- Pro ---------- */
.pro-page { display: grid; gap: var(--gap); max-width: 880px; margin: 0; padding-top: 10px; }
.pro-hero { display: grid; justify-items: center; text-align: center; padding: 10px 0 18px; }
.pro-hero h1 { font-size: var(--fs-hero); font-weight: 790; letter-spacing: -.055em; line-height: 1; max-width: 760px; margin: 14px 0 14px; text-wrap: balance; }
.pro-hero p { color: var(--ink-2); font-size: 17px; max-width: 520px; }
.pro-hero .eyebrow [data-i] svg { fill: var(--sun); stroke: none; }
.pro-orbit { position: relative; width: 260px; height: 220px; margin-bottom: 4px; }
.orbit { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.orbit .o { position: absolute; display: block; }
.o1 { width: 46px; height: 46px; border-radius: 50%; background: var(--cobalt); left: -12px; top: 70px; }
.o2 { width: 38px; height: 38px; border-radius: 10px; background: var(--sun); right: 6px; top: 6px; }
.o3 { width: 34px; height: 34px; border-radius: 50% 50% 50% 8px; background: var(--coral); right: 20px; bottom: 0; }
.o4 { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); left: 40px; bottom: 6px; }
.pro-cat { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -50px 0 0 -56px; }
.pro-crown { position: absolute; left: 50%; top: 24px; width: 54px; height: 54px; margin-left: -27px; transform: rotate(-8deg); }
.pro-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.pf-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--fc) 15%, transparent); color: var(--fc); }
.pf b { font-weight: 700; font-size: 15.5px; letter-spacing: -.015em; }
.pf small { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.pro-buy { display: grid; gap: 14px; padding: 22px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; display: grid; justify-items: start; gap: 2px; padding: 18px 18px 16px; border-radius: var(--r-md); text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow var(--t-fast), background var(--t-fast); }
.plan.on { box-shadow: inset 0 0 0 2.5px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.plan b { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.plan-price { font-size: 28px; font-weight: 780; letter-spacing: -.04em; line-height: 1.15; }
.plan small { color: var(--ink-3); font-size: 13px; }
.plan-badge { position: absolute; top: -10px; right: 14px; padding: 4px 10px; border-radius: 99px; background: var(--coral); color: #141518; font-size: 12px; font-weight: 750; }
.plan-radio { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); display: grid; place-items: center; }
.plan-radio i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s var(--ease-spring); }
.plan.on .plan-radio { box-shadow: inset 0 0 0 2px var(--accent); }
.plan.on .plan-radio i { transform: scale(1); }
.fine { color: var(--ink-3); font-size: 12.5px; text-align: center; line-height: 1.5; }
.fine-links { display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--ink-3); }
.fine-links button:hover, .fine-links a:hover { color: var(--ink); }
.pro-on { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pro-on > div { flex: 1; min-width: 200px; }
.pro-on b { display: block; font-weight: 700; }
.pro-on small { color: var(--ink-2); }
.compare h3 { font-size: 17px; font-weight: 720; margin-bottom: 10px; }
.cmp-row { display: grid; grid-template-columns: 1fr 90px 90px; align-items: center; min-height: 46px; border-top: 1px solid var(--line); font-size: 14.5px; }
.cmp-row.head { border-top: 0; color: var(--ink-3); font-size: 13px; }
.cmp-row.head b { font-weight: 650; text-align: center; }
.cmp-row i { display: grid; place-items: center; font-style: normal; color: var(--ink-3); }
.cmp-row i.yes { color: var(--ink); }
.cmp-row i.pro { color: var(--accent); }
.cmp-row i [data-i] svg { stroke-width: 2.6; }

/* ---------- знакомство ---------- */
body.welcome-on .side, body.welcome-on .tabbar, body.welcome-on .topbar, body.welcome-on .assist { display: none !important; }
body.welcome-on #shell { grid-template-columns: minmax(0, 1fr); }
body.welcome-on .main { margin: 0; height: 100dvh; border-radius: 0; box-shadow: none; }
body.welcome-on .view { padding: 0; max-width: none; min-height: 100dvh; }
.welcome { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(18px + var(--safe-t)) clamp(18px, 4vw, 48px) calc(22px + var(--safe-b)); background: var(--bg); }
.w-top { display: flex; align-items: center; gap: 16px; }
.w-brand { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.w-brand .brand-cat { width: 30px; height: 30px; }
.w-dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.w-dots i { position: relative; width: 34px; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.w-dots i b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.w-dots i.on b { transform: scaleX(1); }
.w-top .btn { min-width: 120px; justify-content: flex-end; }
.w-stage { flex: 1; display: grid; place-items: center; touch-action: pan-y; }
.w-slide { display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 520px; text-align: center; padding: 24px 0; }
.w-text h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 790; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
.w-text p { margin-top: 14px; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.w-actions { display: grid; gap: 8px; width: 100%; max-width: 380px; }
.w-slide .w-art { position: relative; width: 320px; height: 260px; flex: none; }   /* .w-art в features.css — другая картинка 72×64 */
.w-art.hello .ws { position: absolute; display: block; }
.ws1 { width: 170px; height: 170px; border-radius: 50%; background: var(--cobalt); left: 10px; top: 20px; }
.ws2 { width: 110px; height: 110px; border-radius: 22px; background: var(--sun); right: 16px; top: 0; transform: rotate(14deg); }
.ws3 { width: 96px; height: 90px; border-radius: 58% 42% 50% 50%; background: var(--coral); right: 30px; bottom: 6px; }
.ws4 { width: 240px; height: 240px; border-radius: 50%; border: 1.5px solid var(--line-strong); left: 40px; top: 10px; }
.w-cat { position: absolute; width: 150px; height: 150px; left: 85px; top: 70px; filter: drop-shadow(0 20px 30px rgba(20, 21, 24, .3)); }
.w-cat.sm { position: static; width: 84px; height: 84px; filter: none; justify-self: center; }
.w-art.voice { display: grid; align-content: center; gap: 22px; justify-items: center; }
.bubble { text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 24px 24px 24px 8px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); font-size: 18px; font-weight: 560; min-width: 280px; min-height: 64px; }
.mic-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff; flex: none; }
.typed::after { content: '|'; margin-left: 1px; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.w-task { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); min-width: 300px; }
.w-task b { flex: 1; text-align: left; font-weight: 600; }
.w-art.focus { display: grid; place-items: center; align-content: center; gap: 18px; }
.w-ring { position: relative; width: 170px; height: 170px; }
.w-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.w-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.w-ring .track { stroke: var(--surface-3); }
.w-ring .val { stroke: var(--accent); }
.w-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 780; letter-spacing: -.04em; }
.w-chips { display: flex; gap: 8px; }
.w-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }
.w-chip [data-i] { width: 16px; height: 16px; color: var(--coral); }
/* слайд «Один аккаунт везде»: окно приложения и окно сайта, связанные дугой, кот посередине */
.w-slide .w-art.acc { width: 340px; height: 210px; flex: none; }
.w-art.acc .wa-win { position: absolute; display: block; width: 150px; height: 118px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); text-align: left; }
.w-art.acc .wa-win.app { left: 0; top: 70px; transform: rotate(-6deg); }
.w-art.acc .wa-win.web { right: 0; top: 70px; transform: rotate(6deg); }
.w-art.acc .wa-win i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); margin-right: 4px; }
.w-art.acc .wa-win.app i:first-child { background: var(--coral); } .w-art.acc .wa-win.web i:first-child { background: var(--mint); }
.w-art.acc .wa-win b { display: block; margin: 12px 0 12px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-art.acc .wa-win span { display: block; height: 8px; margin-top: 9px; border-radius: 4px; background: var(--surface-3); }
.w-art.acc .wa-win span.s { width: 60%; background: color-mix(in srgb, var(--cobalt) 40%, var(--surface-3)); }
.w-art.acc .wa-link { position: absolute; left: 100px; top: 24px; width: 120px; height: 40px; overflow: visible; }
.w-art.acc .wa-link path { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.w-cat.mid { width: 92px; height: 92px; left: 114px; top: 4px; }
.w-code { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.w-code b { display: block; font-weight: 700; } .w-code small { color: var(--ink-2); font-size: 13.5px; } .w-code small b { display: inline; letter-spacing: .08em; }
.signin .w-top { justify-content: flex-start; }
.si-slide .w-text h1 .dot { color: var(--accent); }
.si-form { display: grid; gap: 10px; text-align: left; }
.si-form .field { margin: 0; }
.si-err { margin: 0; }
.si-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 4px; }
.si-links button { padding: 6px 2px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.si-links button:hover { color: var(--ink); }
.si-slide .fine { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }
.w-form { display: grid; gap: 18px; width: 100%; text-align: left; }
.input.big { min-height: 58px; font-size: 19px; font-weight: 560; }
.w-form .chips { justify-content: flex-start; }
.w-slide.w-name .w-text, .w-slide.w-pro .w-text { order: -1; }
.w-pro-box { display: grid; gap: 16px; width: 100%; }
.w-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-feats > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; text-align: left; }
.w-feats i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--fc) 16%, transparent); color: var(--fc); flex: none; }
.w-feats [data-i] { width: 17px; height: 17px; }

/* ---------- здоровье и финансы ---------- */
.health-grid, .fin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
.weight-card { padding: 24px; }
.wc-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.wc-val { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 10px; }
.wc-val b { font-size: 56px; font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.wc-val span { color: var(--ink-3); font-size: 20px; font-weight: 600; }
.tag.good { background: var(--ok-soft); color: var(--ok); }
.tag [data-i] { width: 14px; height: 14px; }
.chart { position: relative; }
.line-chart { width: 100%; height: 220px; overflow: visible; }
.line-chart .grid { stroke: var(--line); stroke-dasharray: 3 5; }
.line-chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.line-chart .last { fill: var(--accent); stroke: var(--surface); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.soon-card { display: grid; gap: 12px; }
.soon-card h3 { font-size: 16px; font-weight: 700; }
.soon { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: var(--r-sm); }
.soon > div { flex: 1; }
.soon b { display: block; font-weight: 640; font-size: 14.5px; }
.soon small { color: var(--ink-3); font-size: 12.5px; }
.big-num { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.input.huge { font-size: 44px; font-weight: 760; letter-spacing: -.04em; min-height: 82px; text-align: center; }
.big-num span { font-size: 28px; font-weight: 700; color: var(--ink-3); }
.fin-top { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); gap: var(--gap); margin-bottom: var(--gap); }
.fin-balance { position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: 26px; border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); isolation: isolate; min-height: 230px; }
:root[data-theme="dark"] .fin-balance .eyebrow.light { color: rgba(20, 21, 24, .6); }
.fin-big { font-size: clamp(38px, 4vw, 52px); font-weight: 790; letter-spacing: -.05em; line-height: 1.05; margin-top: 4px; }
.fin-split { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 14px; }
.fin-split > span { display: flex; align-items: center; gap: 10px; opacity: .85; }
.fin-split b { margin-left: auto; font-weight: 700; }
.fin-split i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; }
.fin-split i.up { background: var(--mint); color: #fff; }
.fin-split i.down { background: var(--coral); color: #fff; transform: rotate(180deg); }
.fin-split [data-i] { width: 15px; height: 15px; }
.fb-s1 { position: absolute; z-index: -1; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--mint); opacity: .9; }
.fb-s2 { position: absolute; z-index: -1; right: 70px; top: 36px; width: 56px; height: 56px; border-radius: 14px; background: var(--sun); transform: rotate(-12deg); }
.bars { container: finance-days / inline-size; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: min(6px, .8%); height: 150px; align-items: end; }
.bars .b { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px; height: 100%; justify-items: center; }
.bars .b span { display: flex; align-items: flex-end; width: 100%; max-width: 24px; height: 100%; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bars .b i { display: block; width: 100%; border-radius: 8px; background: var(--coral); }
.bars .b.now i { background: var(--ink); }
.bars small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
@container finance-days (width < 540px) {
  .bars:has(.b:nth-child(16)) .b:not(:nth-child(5n + 1)):not(:last-child) small { visibility: hidden; }
}
.cats { display: grid; gap: 14px; }
.cat-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.cr-name { display: flex; align-items: center; gap: 8px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-name .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cat-row b { font-weight: 680; }
.fin-list { display: grid; }
.fin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fin-row:first-child { border-top: 0; }
.fin-row > div { flex: 1; min-width: 0; }
.fin-row > div b { display: block; font-weight: 580; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-row small { color: var(--ink-3); font-size: 12.5px; }
.fin-row > b { font-weight: 700; white-space: nowrap; }
.fin-row > b.income { color: var(--ok); }
.fr-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.fr-ico.income { background: var(--ok-soft); color: var(--ok); }
.fr-ico [data-i] { width: 18px; height: 18px; }
/* «Финансы»: валюты и крипта, долги и кредиты основного блока, блоки-проекты (static/v2/spheres.js) */
.fin-extra { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: start; }
.fin-extra > #fin-assets { grid-row: span 2; }
.fin-extra .card-head, .fin-block .card-head { flex-wrap: wrap; row-gap: 8px; }
.fin-split i.mix { background: rgba(255, 255, 255, .16); color: inherit; }
.fin-scope { margin-bottom: 10px; }
.fin-scopebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--gap); }
.fin-scopebar .fin-scope { margin: 0; }
.fin-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-content: start; min-width: 0; }
button.cat-row.proj .cr-name [data-i] { width: 14px; height: 14px; color: var(--accent-text); flex: none; }
.fr-ico.transfer { background: var(--surface-3); color: var(--ink-2); }
.fin-row > b.transfer { color: var(--ink-2); }
.fin-row .fin-transfer-note { display: block; width: fit-content; max-width: 100%; margin-top: 5px; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; line-height: 1.4; white-space: normal; }
.debt-row { gap: 10px; }
.debt-row .dr-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; border-radius: 12px; }
.debt-row .dr-text { flex: 1; min-width: 0; display: block; }
.debt-row .dr-text b { display: block; font-weight: 580; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.debt-row .btn { flex: none; }
.fin-hint { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); text-align: left; font-size: 13.5px; }
.fin-hint [data-i] { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lk-row { padding: 6px 0 12px; border-top: 1px solid var(--line); }
.lk-row:first-child { border-top: 0; }
.lk-row .chips { margin-top: 4px; }
#fin-records { container: finance-records / inline-size; }
#fin-list-kind { max-width: 100%; }
@container finance-records (width < 360px) {
  #fin-list-kind { width: 100%; flex-wrap: wrap; }
  #fin-list-kind button { flex: 1 1 auto; padding-inline: 8px; }
}
/* верх раздела: четыре карточки одного вида (рубли, валюты и крипта, долги, займы) — тёмная, крупная сумма, фигура в углу,
   ниже строки за месяц и действия; над ними — капитал спокойной строкой */
.fin-capline { display: flex; gap: 8px 36px; flex-wrap: wrap; align-items: baseline; margin: 0 4px 14px; }
.fcap { display: inline-flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.fcap b { font-size: 17px; font-weight: 740; letter-spacing: -.02em; white-space: nowrap; }
.fcap b.neg { color: var(--danger); }
.fcap i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.fin-total { min-height: 0; gap: 14px; padding: 22px 26px; margin-bottom: var(--gap); }
.ft-row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 48px; }
.ft-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.ft-cur { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); }
.ft-cur button { border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 640; padding: 3px 12px; border-radius: 999px; cursor: pointer; opacity: .55; }
.ft-cur button.on { background: var(--on-ink); color: var(--ink); opacity: 1; }
.ft-sum { display: flex; align-items: center; gap: 6px; }
.ft-main, .ft-net { min-width: 0; max-width: 100%; }
.ft-sum { flex-wrap: wrap; }
.fin-total .fin-big { font-size: clamp(34px, 6cqi, 48px); margin: 0; overflow-wrap: anywhere; }
.ft-net .ft-sum b { font-size: 24px; font-weight: 740; letter-spacing: -.02em; white-space: nowrap; }
.ft-net .ft-sum b.neg { color: var(--danger); }
.fin-eye { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .5; cursor: pointer; }
.fin-eye:hover, .fin-eye:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.fin-eye [data-i] { width: 18px; height: 18px; }
.ft-parts { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.fin-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in srgb, currentColor 9%, transparent); font-size: 14px; }
.fin-chip b { font-weight: 640; }
.fin-chip.off { opacity: .5; }
.fc-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--on-ink); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 760; }
.fin-chip.t-usd .fc-ico, .fin-chip.t-usdc .fc-ico { background: #3b49f0; color: #fff; }
.fin-chip.t-usdt .fc-ico { background: #26a17b; color: #fff; }
.fin-chip.t-eur .fc-ico { background: #2f6fdc; color: #fff; }
.fin-chip.t-btc .fc-ico { background: #f7931a; color: #fff; }
.fin-total .fb-s1 { right: -46px; top: -70px; width: 180px; height: 180px; }
.fin-total .fb-s2 { right: 118px; top: -16px; width: 48px; height: 48px; }
@container finance (width < 560px) { .fin-total { padding: 18px; border-radius: var(--r-lg); } .ft-row { gap: 10px 28px; } .ft-net .ft-sum b { font-size: 20px; } .fin-total .fb-s2 { right: 70px; } }
.fin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
.fin-cards .fin-balance { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; padding: 22px; }
:root[data-theme="dark"] .fin-cards .fin-balance { background: #f4f3ef; }
.fin-cards .eyebrow { max-width: calc(100% - 58px); }
.fin-cards .fin-big { font-size: clamp(22px, 2.5cqi, 30px); max-width: 100%; overflow-wrap: anywhere; margin-top: 4px; }
.fin-cards .fin-big[data-jump] { cursor: pointer; }
.fin-bigrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.fin-cur { flex: none; padding: 2px; }
.fin-cur button { padding: 1px 7px; font-size: 12px; }
.fin-cards .fin-split > span { min-height: 26px; flex-wrap: wrap; row-gap: 2px; }
.fin-cards .fin-start { padding-bottom: 9px; margin-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.fin-cards .fin-own { margin-top: 8px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.fin-cards .fin-own .fin-parts { margin-top: 0; }
.fin-cards .fb-s1 { right: -62px; top: -66px; width: 132px; height: 132px; }
.fin-cards .fb-s2 { right: -12px; top: 58px; width: 34px; height: 34px; border-radius: 10px; }   /* ниже круга: не под тумблером ₽/$ */
.fin-cards .c-port .fb-s1 { background: var(--sky); }
.fin-cards .c-port .fb-s2 { background: var(--coral); border-radius: 50%; }
.fin-cards .c-debt .fb-s1 { background: var(--coral); }
.fin-cards .c-debt .fb-s2 { background: var(--sun); border-radius: 50% 50% 50% 8px; }
.fin-cards .c-loan .fb-s1 { background: var(--lilac); }
.fin-cards .c-loan .fb-s2 { background: var(--mint); border-radius: 50%; }
.fin-sub { font-weight: 620; opacity: .72; }
.fin-note { margin: 4px 0 0; font-size: 13px; line-height: 1.42; opacity: .72; }
.fin-cards .fin-split { margin-top: 6px; padding-top: 12px; gap: 7px; font-size: 13.5px; }
.fin-cards .fin-split b { white-space: nowrap; }
.fin-cards .fin-split b:has(.fin-contributions) { max-width: 100%; white-space: normal; }
.fin-contributions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
.fin-contributions > span { overflow-wrap: anywhere; }
:root[data-theme="dark"] .fin-cards .fin-split i.mix { background: rgba(20, 21, 24, .1); }
.fin-mon { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .55; }
.fin-parts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cap-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 9px; border-radius: 9px; background: rgba(255, 255, 255, .13); color: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: background var(--t-fast); }
.cap-chip:hover { background: rgba(255, 255, 255, .22); }
.cap-chip b { font-weight: 720; }
.cap-chip.off { opacity: .6; }
:root[data-theme="dark"] .cap-chip { background: rgba(20, 21, 24, .08); }
:root[data-theme="dark"] .cap-chip:hover { background: rgba(20, 21, 24, .14); }
.fin-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.fin-foot-note { font-size: 12px; opacity: .6; }
.fin-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; transition: opacity var(--t-fast), transform var(--t-fast); }
.fin-act.primary { background: var(--on-ink); color: var(--ink); }
.fin-act [data-i] { width: 15px; height: 15px; }
.fin-act:hover { opacity: .85; }
.fin-act:active { transform: scale(.97); }
:root[data-theme="dark"] .fin-act { background: rgba(20, 21, 24, .1); }
:root[data-theme="dark"] .fin-act.primary { background: #141518; color: #f4f3ef; }
.fe-debt { margin-bottom: 14px; }
.fe-debt .chips { margin-top: 10px; }
.fe-debt .bad-note { margin: 8px 0 0; }
.pm-what { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.pm-what span { color: var(--ink-3); white-space: nowrap; }
#pm-q { margin: -4px 0 12px; }
/* «Записи» свёрнуты до высоты карточки «Категории» */
.fin-list.clip { overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
.fin-more { margin-top: 8px; width: 100%; justify-content: center; }
.fin-more[hidden] { display: none; }
.switch-row.plain > span { grid-template-columns: minmax(0, 1fr); }
.fin-sec { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 36px 0 16px; }
.fin-sec > div { flex: 1; min-width: 240px; }
.fin-sec h2 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.fin-sec p { margin-top: 6px; max-width: 620px; font-size: 14.5px; }
.fin-blocks { display: grid; gap: var(--gap); }
.fin-history-card { margin-block: var(--gap); }
.fin-history-card .card-head h3 { flex: 1; min-width: 0; }
.fin-history-card .card-head > .spacer { display: none; }
.fin-history-filter { min-width: 0; width: min(46%, 260px); }
.fin-history summary { cursor: pointer; list-style: none; }
.fin-history summary::-webkit-details-marker { display: none; }
.fin-history > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 650; }
.fin-history summary > [data-i] { width: 18px; height: 18px; flex: none; margin-left: auto; transition: transform .2s; }
.fin-history[open] > summary > [data-i], .fin-history-month[open] > summary > [data-i] { transform: rotate(180deg); }
.fin-history-month { border-top: 1px solid var(--line); }
.fin-history-month > summary { display: grid; grid-template-columns: minmax(0,1fr) 18px; gap: 10px; padding: 14px 0; }
.fin-history-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-weight: 650; text-transform: capitalize; }
.fin-history small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.fin-history-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; grid-column: 1 / -1; grid-row: 2; }
.fin-history-values > span { display: grid; gap: 4px; min-width: 0; }
.fin-history-values b { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-history-values .income { color: var(--ok); }
.fin-history-rows { padding-bottom: 12px; }
.fin-history-entry > small { display: block; margin: 8px 12px 0; }
.fb-cols > .fb-history { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .fin-history summary > [data-i] { transition: none; } }
.fin-block { display: grid; gap: 16px; }
.fin-block .card-head { margin-bottom: 0; }
.fin-block .card-head > .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.fin-block .card-head h3 { font-size: 18px; }
.fin-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 560; color: var(--ink-2); }
.fin-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.fin-toggle .switch { width: 42px; height: 26px; }
.fin-toggle .switch::after { width: 20px; height: 20px; }
.fin-toggle input:checked + .switch { background: var(--accent); }
.fin-toggle input:checked + .switch::after { transform: translateX(16px); }
.fin-toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fb-tile { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.fb-tile span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fb-tile b { font-size: 18px; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-tile b.income { color: var(--ok); }
.fb-tile small { font-size: 12px; color: var(--ink-3); }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 32px; align-items: start; }
.fb-cols > div { min-width: 0; }
.fb-cols .btn.ghost { margin-top: 6px; }
.fb-head { display: flex; align-items: center; gap: 8px; font-weight: 680; font-size: 14.5px; margin-bottom: 4px; }
.fb-head > b { margin-left: auto; font-variant-numeric: tabular-nums; }
.fb-sub { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 2px; font-size: 12px; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.fb-sub b { letter-spacing: 0; text-transform: none; font-weight: 660; font-size: 13px; color: var(--ink-2); }
.fin-extra .fin-row, .fin-block .fin-row { width: 100%; text-align: left; border-radius: 12px; padding-inline: 6px; transition: background var(--t-fast); }
.fin-extra button.fin-row:hover, .fin-block button.fin-row:hover { background: var(--surface-2); }
.fin-prog { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.fin-prog > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.fin-prog.big { height: 8px; margin: 12px 0 8px; }
.debt-row.off { opacity: .55; }
.fr-ico.debt { background: var(--danger-soft); color: var(--danger); }
.fr-ico.loan { background: var(--ok-soft); color: var(--ok); }
.fr-ico.credit { background: var(--accent-soft); color: var(--accent-text); }
.fr-ico.coin { font-size: 10.5px; font-weight: 780; letter-spacing: -.02em; }
.asset-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.asset-total b { font-size: 28px; font-weight: 770; letter-spacing: -.04em; }
.asset-total > span.num { color: var(--ink-2); font-weight: 620; }
.asset-val { display: grid; justify-items: end; flex: none; text-align: right; }
.asset-val b { font-weight: 700; white-space: nowrap; }
.asset-ch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag.good, .tag.late { font-variant-numeric: tabular-nums; }
/* карточка кредита и долга (лист) */
.cr-left { display: grid; }
.cr-left > b { font-size: clamp(34px, 5vw, 46px); font-weight: 790; letter-spacing: -.05em; line-height: 1.05; margin-top: 6px; }
.cr-next { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.cr-split { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-3); margin: 8px 0; }
.cr-split i:first-child, .cr-legend i.int { background: var(--coral); }
.cr-split i:last-child, .cr-legend i.body { background: var(--accent); }
.cr-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cr-legend i { width: 9px; height: 9px; border-radius: 3px; }
.cr-more { border-top: 1px solid var(--line); padding-top: 12px; }
.cr-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 680; font-size: 14.5px; list-style: none; }
.cr-more summary::-webkit-details-marker { display: none; }
.cr-more summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform var(--t-fast); }
.cr-more[open] summary::after { transform: rotate(-135deg); }
.cr-more[open] summary { margin-bottom: 10px; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cr-table th { text-align: right; font-size: 11.5px; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 6px 10px; }
.cr-table td { text-align: right; padding: 7px 0 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.cr-table th:first-child, .cr-table td:first-child { text-align: left; padding-left: 0; }
.cr-table td[colspan] { text-align: left; white-space: normal; }
.cr-preview { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); font-size: 14px; line-height: 1.45; }
.cr-preview[hidden] { display: none; }
@media (max-width: 759px) {
  .fin-sec { margin-top: 26px; }
  .fb-tile { padding: 12px 14px; }
  .fb-tile b { font-size: 15.5px; white-space: normal; overflow-wrap: anywhere; }
  .fb-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fin-block .card-head .spacer { flex-basis: 100%; height: 0; }
  .asset-total b { font-size: 24px; }
  .cr-more { overflow-x: auto; }
  .cr-table { font-size: 12.5px; }
}


/* ---------- узкие экраны ---------- */
@media (max-width: 1199px) {
}
@media (max-width: 1023px) {
  .today-cols, .cal-layout, .health-grid, .fin-grid, .fin-top, .fin-extra { grid-template-columns: minmax(0, 1fr); }
  .day-card { position: static; }
  .pro-feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 759px) {
  .hero { padding: 2px 0 16px; }
  .hero-title { font-size: 32px; margin: 8px 0 8px; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; height: 48px; padding: 0 14px; font-size: 15px; }
  .focus-card, .progress-card { padding: 22px; min-height: 0; border-radius: var(--r-lg); }
  .fc-title { max-width: 100%; font-size: 24px; }
  .fc-notes { max-width: 100%; }
  .fc-art { width: 300px; height: 300px; right: -10px; top: -10px; transform: scale(.42); transform-origin: top right; }
  .fc-title { max-width: 78%; }
  .fc-bottom .btn { height: 44px; }
  .fc-done span:not([data-i]) { display: none; }
  .fs-step { grid-template-columns: 32px 1fr; }
  .fs-step .btn { grid-column: 2; justify-self: start; }
  .fc-done { width: 44px; padding: 0; }
  .pc-count b { font-size: 52px; }
  .pc-week { height: 70px; }
  .list-card { padding: 12px 8px; border-radius: var(--r-lg); }
  .tasks-card { padding: 4px 8px 10px; }
  .matrix { grid-template-columns: 1fr; }
  .quad { min-height: 0; }
  .cal-card { padding: 12px 8px; border-radius: var(--r-lg); }
  .cal-grid { gap: 2px; }
  .cal-cell { aspect-ratio: auto; min-height: 56px; height: 56px; padding: 6px 2px 4px; border-radius: 12px; gap: 3px; justify-items: center; text-align: center; }
  .cal-cell b { justify-self: center; }
  .cal-dots { display: flex; }
  .cal-chips { display: none; }
  .cal-cell b { width: 30px; height: 30px; font-size: 14px; }
  .cal-cell.late::after { top: 5px; right: 6px; }
  .cal-dots i { width: 5px; height: 5px; }
  .day-big b { font-size: 40px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.add { min-height: 140px; }
  .pj-hero { grid-template-columns: 1fr; padding: 24px 22px; min-height: 200px; }
  .pj-hero-art { width: 260px; right: -60px; opacity: .55; }
  .board { grid-auto-columns: 84%; margin: 0 -18px; padding: 0 18px 12px; scroll-padding: 0 18px; scroll-snap-type: x proximity; }
  .board-xbar { display: none; }
  .notes-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .note-card { min-height: 150px; padding: 18px 16px 14px; }
  .note-card.big { grid-column: span 2; }
  .note-page { padding: 18px 20px 40px; border-radius: var(--r-lg); margin: 6px -6px 0; }
  .note-tools { margin: 0 -8px 16px; }
  /* у беседы своя шапка: верхняя полоса на этом экране не нужна */
  body[data-route="assistant"] .topbar { display: none; }
  body[data-route="assistant"] .view { padding: var(--safe-t) 0 0; }
  .as-page { height: calc(var(--app-h, 100dvh) - var(--safe-t) - var(--tab-space)); max-width: none; margin: 0; border-radius: 0; box-shadow: none; background: transparent; }
  body.kb .as-page { height: calc(var(--app-h, 100dvh) - var(--safe-t)); }   /* клавиатура открыта — нижняя панель спрятана, поле ввода у клавиатуры */
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 14px 10px; justify-items: center; text-align: center; }
  .settings { gap: 12px; }
  .set-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .theme-pick { gap: 8px; }
  .tp-prev { height: 64px; }
  .tp > span:last-child { font-size: 12.5px; padding: 0 2px 2px; }
  .tp > span:last-child [data-i] { display: none; }
  .pro-hero h1 { font-size: 38px; }
  .pro-feats { grid-template-columns: 1fr; gap: 8px; }
  .pf { grid-template-columns: auto 1fr; column-gap: 14px; padding: 14px; }
  .pf .pf-ico { grid-row: span 2; }
  .pro-buy { padding: 16px; }
  .plan-price { font-size: 24px; }
  .cmp-row { grid-template-columns: 1fr 70px 50px; }
  .w-top .btn, .w-brand { min-width: 0; }
  .w-brand .wordmark { display: none; }
  .w-slide .w-art { width: 280px; height: 230px; transform: scale(.92); }
  .bubble { min-width: 0; font-size: 16px; }
  .w-task { min-width: 0; width: 100%; }
  .w-slide { gap: 18px; }
  .cat-row { grid-template-columns: 110px 1fr auto; }
  .wc-val b { font-size: 46px; }
  .input.huge { font-size: 36px; }
}

/* иконки-короны занимают свой блок целиком */
.pro-crown [data-i], .hint-crown [data-i] { width: 100%; height: 100%; }
.pro-orbit { margin-bottom: 26px; }
/* сетки с одной колонкой не должны растягиваться по длинному тексту */
.next-list, .later, .mini-projects, .fin-list, .cats, .soon-card, .settings, .w-form { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 759px) { .qa-opts .chips.scroll { --pad: 20px; } }
.chart-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 9px color-mix(in srgb, var(--accent) 18%, transparent); }
.chart-plot { position: relative; }


/* экран входа на телефоне: форма помещается без прокрутки */
@media (max-width: 759px) {
  .w-slide.si-slide { gap: 12px; padding: 6px 0; }
  .w-slide.si-slide .w-art { transform: scale(.56); margin: -52px 0 -52px; }
  .si-slide .w-text p { margin-top: 8px; font-size: 15px; }
}

/* ---------- телефон: больше полезного места (прогон экранов как пользователь, 08.11.2026) ---------- */
@media (max-width: 759px) {
  .page-head { padding: 2px 0 14px; gap: 12px; }
  .page-head h1 { font-size: 34px; }
  .page-head .titles > p { display: none; }               /* описание раздела — на компьютере; на телефоне место под дела */
  .page-head .actions { flex-wrap: nowrap; width: 100%; }  /* «+» рядом с видами, а не отдельной строкой */
  .page-head .actions .seg { flex: 1; min-width: 0; }

  /* «Сегодня»: порядок блоков задаёт сама разметка — фокус, задачи, «Мой день», погода; «Новая задача» — у кота в
     нижней панели */
  .hero-actions { display: none; }
  .hero-title { font-size: 30px; }
  .fc-why { display: none; }

  /* проекты: компактные карточки без обложки — на экране видно все, а не полтора */
  .pj-cover, .pj-body p { display: none; }
  .proj-card { box-shadow: var(--shadow-1), inset 4px 0 0 var(--pc), inset 0 0 0 1px var(--line); }
  .proj-card .pj-body { padding: 14px 16px 14px 20px; gap: 6px; }
  .proj-card.add { min-height: 0; flex-direction: row; padding: 16px; }
  .proj-card.add small { display: none; }

  .file-hint { display: none; }                            /* «перетащите сюда» — на телефоне перетаскивать некуда */
}

/* «Сегодня»: занятия на время под делами; «Мой день» на телефоне — название дела в две строки, проект — в одну (11.11.2026) */
.today-sub { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.today-sub h4 { margin: 0; font-size: 13px; font-weight: 640; color: var(--ink-2); letter-spacing: .01em; }
@media (max-width: 759px) {
  .day-line .tl-body b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .day-line .tl-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* «Первые шаги» на «Сегодня» для нового аккаунта */
.starter { margin-bottom: var(--gap); }
.fs-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.fs-step { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 6px; border-radius: var(--r-sm); }
.fs-step + .fs-step { box-shadow: inset 0 1px 0 var(--line); }
.fs-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.fs-step.on .fs-num { background: var(--ok); color: #fff; }
.fs-step.on .fs-text b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.fs-num [data-i] { width: 16px; height: 16px; }
.fs-text { display: grid; gap: 2px; min-width: 0; }
.fs-text b { font-weight: 640; }
.fs-text small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }

details.mini-adv { margin: 4px 0 2px; }
details.mini-adv > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; font-weight: 600; padding: 4px 0; width: max-content; }
details.mini-adv[open] > summary { margin-bottom: 10px; }
/* интеграции, которых нет на этой платформе: одна карточка со списком */
.integ-locked .il-list { display: grid; gap: 6px; margin-top: 12px; }
.il-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); text-align: left; cursor: help; }
.il-row b { font-weight: 620; font-size: 14px; }
.il-row small { margin-left: auto; font-size: 12.5px; }
.il-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, transparent); }
.il-ico [data-i] { width: 16px; height: 16px; }
.integ-locked { grid-column: 1 / -1; }
.il-row { flex-wrap: wrap; }

/* ---------- карточка задачи: люди, файлы и журнал — раскрывающимся блоком ---------- */
details.ed-more { border-top: 1px solid var(--line); padding-top: 4px; }
details.ed-more > summary { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
details.ed-more > summary::-webkit-details-marker { display: none; }
details.ed-more > summary > [data-i] { color: var(--ink-3); }
details.ed-more > summary > [data-i]:last-child { transition: transform .25s; }
details.ed-more[open] > summary > [data-i]:last-child { transform: rotate(180deg); }
details.ed-more .em-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
details.ed-more .em-t b { font-weight: 650; font-size: 14.5px; }
details.ed-more .em-t small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.ed-more .em-body { display: grid; gap: 20px; padding-top: 4px; }

/* «Финансы» на телефоне: пустые сводные карточки (0 ₽, без движения) не загораживают записи */

/* ---------- настройки: поиск, подсветка найденного (ряд вкладок — в live.css: не переносится, листается вбок) ---------- */
.set-find { position: relative; }
.set-find .search-in { min-width: min(280px, 100%); }
.set-hits { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: min(340px, 90vw); display: grid; gap: 2px; padding: 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-3, var(--shadow-2)), inset 0 0 0 1px var(--line); }
.set-hit-row { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; text-align: left; }
.set-hit-row:hover, .set-hit-row:focus-visible { background: var(--surface-2); }
.set-hits p { padding: 8px 10px; margin: 0; }
@keyframes set-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.set-flash { animation: set-flash 1.6s ease-out; }
@media (max-width: 759px) { .set-find { width: 100%; } .set-hits { left: 0; right: auto; width: 100%; } }
details.ed-more .em-top { display: grid; gap: 20px; }
details.ed-more .em-top:empty { display: none; }
details.ed-more .em-top > .switch-row.urgent { margin: 0; }

/* ---------- раскладка по ширине рабочей области, а не окна: при открытом помощнике окно широкое, а экран узкий —
   сетки «Сегодня», календаря, «Здоровья» и «Финансов» складываются в колонку, фокус дня не закрывается фигурами ---------- */
.view.v-today, .view.v-tasks, .view.v-health, .view.v-projects, .view.v-notes, .view.v-base, .view.v-food { container: workspace / inline-size; }
.view.v-finance { container: finance / inline-size; }
@container (max-width: 820px) {
  .today-cols, .cal-layout, .health-grid, .fin-grid, .fin-top, .fin-extra { grid-template-columns: minmax(0, 1fr); }
  .day-card { position: static; }
}
.focus-card { container-type: inline-size; }
@container (max-width: 460px) {
  .fc-art { width: 300px; height: 300px; right: -10px; top: -10px; transform: scale(.42); transform-origin: top right; }
  .fc-title { max-width: 78%; }
}
@container workspace (max-width: 740px) {
  .pj-hero { grid-template-columns: minmax(0, 1fr); padding: 24px; min-height: 0; }
  .pj-hero-art { width: 180px; right: -80px; opacity: .25; }
  .pj-hero h1 { font-size: clamp(28px, 6cqi, 40px); overflow-wrap: anywhere; }
  .matrix { grid-template-columns: minmax(0, 1fr); }
  .quad { min-height: 0; }
}
@container workspace (max-width: 480px) {
  .cal-title { flex: 1 0 100%; }
  .cal-bar .spacer { display: none; }
}
/* Строка задачи встречается и в узкой колонке матрицы внутри широкого окна. */
@container task-row (max-width: 620px) {
  .task .t-side { display: contents; }
  .task .t-side .star { grid-column: 3; grid-row: 1; }
  .task .t-tags { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; }
  .task .t-side .tag:not(.today):not(.late) { display: inline-flex; }
}
/* календарь: в узкой рабочей области панель дня — под месяцем, ячейкам вся ширина (названия задач не режутся до 7 букв) */
@container (max-width: 1000px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
/* совсем узкая рабочая область (помощник открыт на ноутбуке): в ячейках — точки, как на телефоне; задачи дня — в панели под месяцем */
@container (max-width: 640px) {
  .cal-cell { min-height: 56px; height: 56px; padding: 6px 2px 4px; gap: 3px; justify-items: center; text-align: center; }
  .cal-cell b { justify-self: center; }
  .cal-dots { display: flex; }
  .cal-chips { display: none; }
}
/* шапка экрана в узкой рабочей области: виды (Список, Канбан, … Пропущенные) переносятся, а не уходят за край */
@media (min-width: 760px) {                 /* на телефоне ряд по-прежнему листается пальцем */
  @container (max-width: 820px) {
    .page-head .actions { max-width: 100%; min-width: 0; }
    .page-head .actions .seg { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
  }
}

/* «Финансы», окно в два столбца: пустая сводная карточка — компактная строка (название, 0 ₽, кнопка); когда пусты все
   три — они столбиком справа от карточки рублей, иначе — узкими полосами под заполненными. Записи — на первом экране. */
@container finance (560px <= width < 1088px) {
  .fin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-cards .fin-balance.fin-empty { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 0; padding: 14px 20px; grid-column: 1 / -1; order: 5; }
  .fin-cards .fin-empty .fin-note, .fin-cards .fin-empty .fin-split, .fin-cards .fin-empty .fb-s2 { display: none; }
  .fin-cards .fin-empty .eyebrow { max-width: none; }
  .fin-cards .fin-empty .fin-big { font-size: 20px; margin: 0; }
  .fin-cards .fin-empty .fin-foot { margin: 0 0 0 auto; padding: 0; }
  .fin-cards .fin-empty .fb-s1 { right: -84px; top: -84px; }
  .fin-cards.all-empty > .fin-balance:first-child { grid-row: span 3; }
  .fin-cards.all-empty .fin-balance.fin-empty { grid-column: auto; order: 0; }
}
@container finance (width < 560px) {
  .fin-cards { grid-template-columns: minmax(0, 1fr); }
  .fin-cards .fin-balance { border-radius: var(--r-lg); }
  .fin-cards .fin-balance.fin-empty { display: none; }
  .fin-capline { gap: 6px 24px; }
  .debt-row { flex-wrap: wrap; }
  .debt-row .dr-main { flex-basis: 100%; }
  .debt-row > b { margin-left: 50px; }
}

/* ---------- настройки, пять вкладок: свёрнутые блоки, подключения строками, компактный выбор темы ---------- */
details.fold > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { flex: 1; margin: 0; }
details.fold > summary > [data-i] { color: var(--ink-3); transition: transform .25s; }
details.fold[open] > summary > [data-i] { transform: rotate(180deg); }
details.fold .fold-in { display: grid; gap: 12px; padding-top: 12px; }
details.integ > summary { cursor: pointer; list-style: none; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; }
details.integ > summary::-webkit-details-marker { display: none; }
details.integ > summary > [data-i]:last-child { color: var(--ink-3); transition: transform .25s; }
details.integ[open] > summary > [data-i]:last-child { transform: rotate(180deg); }
details.integ .integ-in { display: grid; gap: 14px; padding-top: 14px; }
details.integ:not([open]) { gap: 0; }
#cn-int .integr { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.cn-folders { margin-top: var(--gap); }
.acc-extra { margin-top: var(--gap); }
.theme-pick.compact .tp-prev { height: 54px; }
.theme-pick.compact .tp-prev i:nth-child(1) { top: 8px; bottom: 8px; width: 18px; }
.theme-pick.compact .tp-prev i:nth-child(2) { left: 36px; top: 9px; height: 16px; }
.theme-pick.compact .tp-prev i:nth-child(3) { left: 36px; top: 32px; height: 8px; }
details.integ:not([open]) > summary small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.integ > summary > div { min-width: 0; }
details.integ:not([open]) { padding-block: 16px; }
@media (max-width: 640px) {      /* узкий экран: состояние — под названием, а не сбоку */
  details.integ > summary { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; }
  details.integ > summary > .tag { grid-column: 2; grid-row: 2; justify-self: start; }
  details.integ > summary > [data-i]:last-child { grid-column: 3; grid-row: 1; }
  details.integ > summary > .pf-ico { grid-row: 1; }
}
#cn-int { display: grid; gap: var(--gap); max-width: 860px; }
#cn-int > .set-lead { margin-bottom: 0; }
.set-sec > h3 + .set-share { margin-top: 0; padding-top: 0; border-top: 0; }      /* ID — первым в своём блоке: без черты под заголовком */

/* Asset actions stay inside the card on narrow screens. */
#fin-assets > .card-head { flex-wrap: wrap; gap: 8px; }
#fin-assets > .card-head h3 { margin-right: auto; }

.swap-form .set-grid { align-items: end; }
