/* CDI Mini App — токены из ТЗ v3, вёрстка по макетам «CDI Mini App — экраны» (390 px) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/vendor/fonts/Manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/vendor/fonts/Manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/vendor/fonts/Manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/vendor/fonts/Manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/vendor/fonts/Unbounded-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/vendor/fonts/Unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/vendor/fonts/Unbounded-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/vendor/fonts/Unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0A0A0D; --card: #15151B; --card2: #1C1C24; --line: rgba(255,255,255,0.06);
  --text: #F5F5F7; --text2: #9A9AA4; --text3: #6E6E7A;
  --accent: #FF6B35; --pos: #45D6A0; --neg: #FF8095; --warn: #E8B84B;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --font: "Manrope", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --nav-h: 84px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.35; }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:active { opacity: 0.85; }
[hidden] { display: none !important; }

.glow { position: fixed; top: -190px; left: -70px; width: 560px; height: 430px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,107,53,0.32), rgba(255,107,53,0) 68%); transition: background .3s; }
.glow[data-glow="money"]  { left: auto; right: -110px; width: 520px; height: 400px; background: radial-gradient(circle at 50% 50%, rgba(69,214,160,0.18), rgba(69,214,160,0) 68%); }
.glow[data-glow="board"]  { background: radial-gradient(circle at 50% 50%, rgba(124,108,246,0.24), rgba(124,108,246,0) 68%); }
.glow[data-glow="base"]   { background: radial-gradient(circle at 50% 50%, rgba(57,135,229,0.22), rgba(57,135,229,0) 68%); }
.glow[data-glow="orders"] { background: radial-gradient(circle at 50% 50%, rgba(255,107,53,0.28), rgba(255,107,53,0) 68%); }

#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 26px 18px calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
.screen { display: flex; flex-direction: column; gap: 12px; }

.hdr { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.brand { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.hdr-date { font-size: 12px; color: #8E8E98; margin-top: 2px; }
.title { font-family: var(--display); font-size: 20px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; margin: -3px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }

.hero { border-radius: 24px; padding: 20px; background: linear-gradient(158deg, #241620 0%, #16161D 62%); border: 1px solid rgba(255,255,255,0.08); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text2); }
.hero-num { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; line-height: 1; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.09); margin-top: 18px; overflow: hidden; }
.bar-fill { width: 0; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s ease; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--text2); }
.linklike { border: none; background: none; padding: 6px 0; margin: -6px 0; font-size: 12px; font-weight: 600; color: var(--text2); }
.linklike.accent { color: var(--accent); }

.tiles { display: flex; gap: 9px; }
.tile { flex: 1 1 0; min-width: 0; border-radius: 18px; padding: 13px 12px; background: var(--card); border: 1px solid var(--line); }
.tile-l { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text2); }
.tile-v { font-size: 17px; font-weight: 800; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.card { border-radius: 20px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-title { font-family: var(--display); font-size: 13px; font-weight: 500; }
.muted-xs { font-size: 11px; color: var(--text2); }

.funnel { display: flex; }
.funnel > div { flex: 1 1 0; }
.funnel-n { font-size: 22px; font-weight: 800; }
.funnel-l { font-size: 11px; color: var(--text2); margin-top: 2px; }

.card-tasks { padding-bottom: 8px; }
.task-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.task-row:last-child { border-bottom: none; }
.task-row.done { opacity: 0.35; }
.check { width: 44px; height: 44px; margin: 0 -11px; flex-shrink: 0; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.check i { display: block; width: 21px; height: 21px; border-radius: 7px; border: 1.6px solid rgba(255,255,255,0.22); }
.task-row.done .check i { background: var(--pos); border-color: var(--pos); }
.task-text { flex: 1 1 auto; font-size: 13px; font-weight: 500; line-height: 1.35; }
.btn-2min { flex-shrink: 0; border: none; border-radius: 99px; min-height: 44px; padding: 6px 12px; font-size: 11px; font-weight: 700; color: #0A0A0D; background: var(--accent); font-variant-numeric: tabular-nums; }
.btn-2min.running { background: var(--warn); }
.btn-2min.finished { background: var(--pos); }
.empty { padding: 14px 0; font-size: 13px; color: var(--text2); }
.card-cal { padding-bottom: 8px; }
.cal-row { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cal-row:last-child { border-bottom: 0; }
.cal-row.past { opacity: 0.45; }
.cal-time { flex: 0 0 68px; font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.cal-title { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.cal-loc { display: block; margin-top: 2px; font-size: 12px; color: var(--text2); }
.fsrc { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--text2); }
.reply-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reply-actions .chip { min-height: 44px; padding: 0 16px; }

.hold-banner { width: 100%; display: flex; align-items: center; gap: 11px; border-radius: 18px; padding: 13px 16px; background: rgba(232,184,75,0.10); border: 1px solid rgba(232,184,75,0.30); text-align: left; }
.hold-banner span { flex: 1 1 auto; font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; }

.pill-select { position: relative; display: inline-flex; align-items: center; min-height: 44px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); font-size: 12px; font-weight: 600; padding: 0 14px; }
.pill-select select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }

.chart-wrap { position: relative; margin-top: 10px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wrap .bar-rect { cursor: pointer; }
.tip { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: #26262F; border: 1px solid rgba(255,255,255,0.10); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }

.cat { margin-bottom: 11px; }
.cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cat-sq { width: 9px; height: 9px; flex-shrink: 0; border-radius: 3px; }
.cat-name { flex: 1 1 auto; font-size: 12px; font-weight: 600; }
.cat-sum { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.cat-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.cat-bar i { display: block; height: 100%; border-radius: 99px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 4px; padding: 0 18px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 44px; border: 1px solid rgba(255,255,255,0.12); border-radius: 99px; padding: 6px 13px; font-size: 12px; font-weight: 600; color: #C9C9D1; background: transparent; }
.chip.on { border-color: transparent; color: #0A0A0D; background: var(--accent); font-weight: 700; }

.op { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.op:last-child { border-bottom: none; }
.op-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text2); }
.op-main { flex: 1 1 auto; min-width: 0; }
.op-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-when { font-size: 11px; color: var(--text2); margin-top: 1px; }
.op-sum { font-size: 13px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.goal-line { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

.soon { padding: 22px 18px; }
.soon-t { font-family: var(--display); font-size: 14px; font-weight: 500; }
.soon-d { font-size: 13px; color: var(--text2); margin-top: 8px; line-height: 1.5; }

/* нижняя навигация: активная вкладка поднята кругом 50 px */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 8px 0 env(safe-area-inset-bottom);
  background: rgba(12,12,16,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: flex-start; }
.tab { flex: 1 1 0; border: none; background: none; padding: 9px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 60px; }
.tab-ic { width: 21px; height: 21px; display: flex; align-items: center; justify-content: center; }
.tab-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--text3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab-l { font-size: 10px; font-weight: 600; color: var(--text3); }
.tab.on { padding-top: 0; gap: 5px; }
.tab.on .tab-ic { width: 50px; height: 50px; border-radius: 50%; margin-top: -20px; background: var(--accent); box-shadow: 0 8px 22px rgba(255,107,53,0.38); }
.tab.on .tab-ic svg { stroke: #0A0A0D; stroke-width: 2.2; }
.tab.on .tab-l { color: var(--text); font-weight: 700; }

/* нижний лист */
.sheet-bg { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); background: #16161D; border: 1px solid rgba(255,255,255,0.08); }
.sheet-title { font-family: var(--display); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.sheet-text { font-size: 17px; font-weight: 700; line-height: 1.35; }
.sheet-note { font-size: 12px; color: var(--text2); line-height: 1.45; margin-top: 8px; }
.sheet-row { display: flex; gap: 9px; margin-top: 16px; }
.btn { flex: 1 1 0; border: none; border-radius: 13px; min-height: 48px; padding: 13px; font-size: 13px; font-weight: 700; color: #0A0A0D; background: var(--accent); }
.btn.pos { background: var(--pos); }
.btn.ghost { border: 1px solid rgba(255,255,255,0.14); background: transparent; color: var(--text); }
.input { width: 100%; min-height: 48px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--text); font-size: 20px; font-weight: 700; padding: 10px 14px; font-family: inherit; font-variant-numeric: tabular-nums; }
.input:focus { outline: none; border-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; padding: 10px 16px; border-radius: 12px; background: #26262F; border: 1px solid rgba(255,255,255,0.10); font-size: 13px; font-weight: 600; max-width: 90vw; }

/* --- Заказы --- */
.hdr-right { display: flex; align-items: center; gap: 10px; }
.chips-static { margin-bottom: 0; }
.order-card { border-radius: 22px; padding: 18px; background: #16161D; border: 1px solid rgba(255,255,255,0.08); }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.order-title a { color: inherit; text-decoration: none; }
.order-budget { flex-shrink: 0; font-size: 15px; font-weight: 800; color: var(--pos); font-variant-numeric: tabular-nums; text-align: right; }
.order-budget small { display: block; font-size: 11px; font-weight: 600; color: var(--text2); }
.tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); border: 1px solid rgba(255,255,255,0.12); border-radius: 99px; padding: 4px 9px; }
.bid-box { margin-top: 14px; border-radius: 14px; background: rgba(255,255,255,0.04); padding: 13px; font-size: 12px; line-height: 1.5; color: #C9C9D1; max-height: 116px; overflow: hidden; position: relative; white-space: pre-wrap; cursor: pointer; }
.bid-box.open { max-height: none; }
.bid-box:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(22,22,29,0), #1B1B22); }
.order-actions { display: flex; gap: 8px; margin-top: 14px; }
.order-actions .btn { min-height: 46px; }
.sq-btn { width: 46px; min-height: 46px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.14); border-radius: 13px; background: transparent; display: flex; align-items: center; justify-content: center; }
.sq-btn svg { width: 17px; height: 17px; fill: none; stroke: #C9C9D1; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.order-status { margin-top: 10px; font-size: 12px; color: var(--warn); }
.list-card { padding: 6px 18px; }
.q-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; border-left: none; border-right: none; border-top: none; background: none; text-align: left; color: inherit; }
.q-row:last-child { border-bottom: none; }
.q-main { flex: 1 1 auto; min-width: 0; }
.q-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.q-meta { font-size: 11px; color: var(--text2); margin-top: 3px; }
.q-price { flex-shrink: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.textarea { width: 100%; min-height: 180px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--text); font-size: 13px; line-height: 1.5; padding: 12px 14px; font-family: inherit; resize: vertical; }
.textarea:focus, .input.sm:focus { outline: none; border-color: var(--accent); }
.input.sm { font-size: 14px; font-weight: 600; min-height: 44px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.frow:last-child { border-bottom: none; }
.frow .fname { flex: 1 1 auto; font-size: 13px; font-weight: 700; }
.frow .input.sm { width: 110px; text-align: right; }
.toggle { width: 44px; height: 26px; border-radius: 99px; border: none; background: rgba(255,255,255,0.12); position: relative; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--pos); } .toggle.on::after { left: 21px; }
.sheet.tall { max-height: 88vh; overflow-y: auto; }

/* --- База --- */
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 99px; background: rgba(255,255,255,0.06); }
.seg-btn { flex: 1 1 0; border: none; border-radius: 99px; min-height: 44px; padding: 9px; font-size: 12px; font-weight: 600; color: #C9C9D1; background: transparent; }
.seg-btn.on { color: #0A0A0D; background: var(--accent); font-weight: 700; }
.upload-btn { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 56px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 18px; padding: 13px 15px; background: rgba(255,255,255,0.03); text-align: left; cursor: pointer; color: inherit; font-family: inherit; }
.upload-t { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.upload-d { display: block; font-size: 11px; color: var(--text2); margin-top: 2px; }
.folders { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.folder { flex: 0 0 auto; min-width: 104px; border-radius: 16px; padding: 12px; background: var(--card); border: 1px solid var(--line); text-align: left; color: inherit; }
.folder.on { border-color: var(--accent); }
.folder svg { width: 17px; height: 17px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.folder-n { font-size: 12px; font-weight: 700; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.folder-c { font-size: 11px; color: var(--text2); margin-top: 1px; }
.file-row { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; border-left: none; border-right: none; border-top: none; background: none; text-align: left; color: inherit; }
.file-row:last-child { border-bottom: none; }
.file-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.file-main { flex: 1 1 auto; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 11px; color: var(--text2); margin-top: 2px; }
.chev { width: 15px; height: 15px; fill: none; stroke: #5E5E6A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.note-row { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); background: none; border-left: none; border-right: none; border-top: none; text-align: left; color: inherit; }
.note-row:last-child { border-bottom: none; }
.note-row-t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.note-row-m { font-size: 11px; color: var(--text2); margin-top: 4px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.tag-sm { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #FF9A6E; border: 1px solid rgba(255,107,53,0.35); border-radius: 99px; padding: 2px 8px; }
.idea-row { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.idea-row:last-child { border-bottom: none; }
.idea-t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.idea-t.done { text-decoration: line-through; opacity: 0.55; }
.idea-m { font-size: 11px; color: var(--text2); margin-top: 4px; }
.hold-card { border-radius: 22px; padding: 18px; background: linear-gradient(158deg, #2A2116 0%, #16161D 64%); border: 1px solid rgba(232,184,75,0.28); margin-bottom: 12px; }
.hold-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.hold-text { font-size: 17px; font-weight: 700; line-height: 1.35; margin-top: 10px; }
.hold-note { font-size: 12px; color: var(--text2); line-height: 1.45; margin-top: 8px; }
.search-row { display: block; width: 100%; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.05); background: none; border-left: none; border-right: none; border-top: none; text-align: left; color: inherit; }
.search-row:last-child { border-bottom: none; }
/* страница заметки */
.note-top { display: flex; align-items: center; gap: 10px; }
.icon-btn.sm { width: 44px; height: 44px; margin: 0; }   /* тап-зона не меньше 44px */
#n-crumb { flex: 1 1 auto; }
.note-title { width: 100%; border: none; background: none; color: var(--text); font-family: inherit; font-size: 26px; font-weight: 800; line-height: 1.22; padding: 0; margin-top: 6px; }
.note-title:focus { outline: none; }
.tags-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tag-input { border: none; background: none; color: var(--text2); font-family: inherit; font-size: 12px; min-width: 60px; padding: 4px 0; }
.tag-input:focus { outline: none; color: var(--text); }
#editorjs { min-height: 40vh; padding-bottom: 20px; }
#screen-note { padding-bottom: 20px; }
.codex-editor__redactor { padding-bottom: 60px !important; }
.ce-block__content, .ce-toolbar__content { max-width: 100%; }
.ce-paragraph, .ce-header, .cdx-list, .cdx-quote, .cdx-block { color: var(--text); font-size: 15px; line-height: 1.55; }
.ce-header { font-weight: 700; }
.cdx-quote { border-left: 2px solid var(--warn); border-radius: 0 12px 12px 0; background: rgba(232,184,75,0.08); padding: 12px 14px; }
.cdx-quote__text, .cdx-quote__caption, .cdx-input { color: var(--text); border: none; box-shadow: none; }
.cdx-input { background: rgba(255,255,255,0.05); border-radius: 10px; }
.ce-toolbar__plus, .ce-toolbar__settings-btn { color: var(--text2); background: var(--card2); }
.ce-popover, .ce-popover__container { background: #1C1C24; border-color: rgba(255,255,255,0.10); color: var(--text); }
.ce-popover-item { color: var(--text); } .ce-popover-item__icon { background: #26262F; color: var(--text); }
.ce-popover-item:hover:not(.ce-popover-item--no-hover) { background: rgba(255,255,255,0.06); }
.cdx-search-field { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); } .cdx-search-field__input { color: var(--text); }
.ce-inline-toolbar { background: #1C1C24; border-color: rgba(255,255,255,0.10); color: var(--text); }
.cdx-checklist__item-checkbox { border-radius: 6px; }
.tc-table, .tc-cell { color: var(--text); } .tc-wrap { --color-border: rgba(255,255,255,0.12); }
.ce-code__textarea { background: #101014; color: var(--text); border-color: rgba(255,255,255,0.1); }
.image-tool__image-picture { border-radius: 12px; }
.cdx-attaches { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.cdx-attaches__title, .cdx-attaches__size { color: var(--text); }
.note-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(72px + env(safe-area-inset-bottom)); padding: 0 18px env(safe-area-inset-bottom); background: rgba(12,12,16,0.94); border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 8px; }
.nb { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: #C9C9D1; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nb svg { width: 17px; height: 17px; fill: none; stroke: #C9C9D1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-done { flex: 0 0 auto; min-height: 44px; padding: 12px 18px; border-radius: 12px; }
.children { margin-top: 10px; }

/* --- Доска --- */
.board-screen { padding-right: 0; }
.board-screen .hdr, .board-screen .start-card, .board-screen #d-list { margin-right: 18px; }
.seg-sm .seg-btn { min-height: 44px; padding: 6px 13px; font-size: 11px; flex: 0 0 auto; }
.start-card { border-radius: 18px; padding: 13px 15px; background: linear-gradient(158deg, #1D1A2E 0%, #16161D 64%); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.start-main { flex: 1 1 auto; min-width: 0; }
.start-text { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.btn-2min.big { border-radius: 12px; min-height: 44px; padding: 12px 14px; font-size: 12px; }
.columns { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 18px; padding-bottom: 8px; scrollbar-width: none; }
.columns::-webkit-scrollbar { display: none; }
.col { width: 248px; flex-shrink: 0; border-radius: 20px; padding: 14px; background: #131319; border: 1px solid var(--line); scroll-snap-align: start; }
.col.drop { border-color: var(--accent); }
.col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.col-dot { width: 8px; height: 8px; border-radius: 99px; }
.col-name { flex: 1 1 auto; font-size: 12px; font-weight: 700; }
.col-count { font-size: 11px; color: var(--text2); }
.tcard { border-radius: 14px; padding: 12px; background: var(--card2); border: 1px solid rgba(255,255,255,0.07); margin-bottom: 9px; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.tcard.dragging { opacity: 0.35; }
.tcard-text { font-size: 13px; font-weight: 600; line-height: 1.35; }
.tcard-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.tcard-foot .when { flex: 1 1 auto; font-size: 11px; color: var(--text2); }
.tcard-foot .btn-2min { min-height: 44px; padding: 5px 12px; }
.tag-c { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; border: 1px solid; }
.col-add { width: 100%; min-height: 44px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 12px; padding: 10px; font-size: 12px; font-weight: 600; color: var(--text2); background: transparent; }
.drag-ghost { position: fixed; z-index: 30; width: 220px; pointer-events: none; opacity: 0.92; transform: rotate(2deg); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.list-group { margin-bottom: 12px; }
.list-group .card-title { margin-bottom: 4px; }
.suggest { border-radius: 14px; padding: 12px 14px; background: rgba(69,214,160,0.08); border: 1px solid rgba(69,214,160,0.3); font-size: 14px; font-weight: 600; line-height: 1.4; margin-top: 10px; }

/* Строка состояния бэкапа под сводкой: тихая, пока всё в порядке */
.sys-line { margin: 14px 4px 0; font-size: 11px; color: var(--text2); text-align: center; letter-spacing: .01em; }
.sys-line.warn { color: var(--warn, #E8B84B); }

/* Заказы: состояние отправки */
.send-state { font-size: 12px; line-height: 1.45; color: var(--text2); padding: 10px 12px; border-radius: 12px; margin: 0 0 12px; background: rgba(255,255,255,.04); }
.send-state:empty { display: none; }
.send-state b { color: var(--text); font-weight: 600; }
.send-state.off b { color: var(--neg); }
