/* Личный кабинет ДомСигнал: мобильный интерфейс-приложение. Светлая и тёмная темы подхватываются из системы. */
:root {
  --bg: #f3f4f8; --surface: #ffffff; --surface-2: #f7f8fb; --ink: #0d1117; --ink-2: #3b4350; --muted: #6b7482; --faint: #98a0ad;
  --line: #e5e8ef; --line-2: #d6dae3; --accent: #2a56f5; --accent-ink: #ffffff; --accent-soft: #e8eeff;
  --ok: #0f9d58; --ok-soft: #e4f6ec; --warn: #c26a05; --warn-soft: #fff3de; --bad: #d92d3a; --bad-soft: #fde8ea;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06); --shadow-lg: 0 20px 60px rgba(8, 12, 24, .28);
  --r: 20px; --r-sm: 14px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d12; --surface: #151a23; --surface-2: #1b212c; --ink: #f2f4f8; --ink-2: #c6ccd8; --muted: #8e97a6; --faint: #5f6877;
    --line: #232a37; --line-2: #2e3646; --accent: #5b82ff; --accent-soft: #1b2748; --ok: #34c07a; --ok-soft: #123324; --warn: #f0a23a; --warn-soft: #3a2a10; --bad: #ff6672; --bad-soft: #3d1a1f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
svg { display: block; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); }
.logo { width: 52px; height: 52px; border-radius: 16px; background: #0d1117; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 26px; letter-spacing: -.02em; box-shadow: 0 6px 18px rgba(13, 17, 23, .25); }
@media (prefers-color-scheme: dark) { .logo { background: #fff; color: #0d1117; } }
.splash .logo { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }

/* каркас */
.shell { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(96px + var(--safe-b)); min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.topbar .logo { width: 38px; height: 38px; border-radius: 12px; font-size: 19px; box-shadow: none; }
.topbar .who { flex: 1; min-width: 0; }
.topbar .hi { font-size: 13px; color: var(--muted); }
.topbar .nm { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; transition: transform .1s, background .15s; }
.iconbtn:active { transform: scale(.94); } .iconbtn:hover { background: var(--surface-2); }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.page { animation: rise .28s ease-out; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.stack { display: grid; gap: 14px; }

/* нижняя навигация (на телефоне) и верхняя (на широком экране) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 8px 12px calc(8px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs .in { display: flex; width: 100%; max-width: 560px; gap: 4px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border-radius: 14px; font-size: 11.5px; font-weight: 650; transition: color .15s, background .15s; }
.tabs button.on { color: var(--accent); background: var(--accent-soft); }
@media (min-width: 760px) {
  .shell { max-width: 760px; padding-bottom: 40px; padding-top: calc(24px + var(--safe-t)); }
  .tabs { position: static; background: none; border: 0; backdrop-filter: none; padding: 0 0 16px; justify-content: flex-start; }
  .tabs .in { max-width: none; width: auto; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 16px; gap: 2px; }
  .tabs button { grid-auto-flow: column; gap: 8px; padding: 9px 18px; font-size: 14px; }
}

/* карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; }
.sp { justify-content: space-between; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: 0; padding-top: 2px; } .kv .k { color: var(--muted); flex: none; } .kv .v { font-weight: 600; text-align: right; word-break: break-word; }
.copy { border: 0; background: none; color: var(--accent); padding: 0 0 0 8px; vertical-align: middle; }

/* главная карточка статуса */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2c3a78 0%, #151a33 55%, #0d1020 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 130, 255, .55), transparent 65%); z-index: -1; }
.hero.ok { background: radial-gradient(120% 140% at 0% 0%, #136a45 0%, #0d3a2b 55%, #08241b 100%); } .hero.ok::after { background: radial-gradient(circle, rgba(52, 211, 140, .5), transparent 65%); }
.hero.bad { background: radial-gradient(120% 140% at 0% 0%, #8a1f2b 0%, #4a1219 55%, #2a0a0f 100%); } .hero.bad::after { background: radial-gradient(circle, rgba(255, 102, 114, .5), transparent 65%); }
.hero.warn { background: radial-gradient(120% 140% at 0% 0%, #8a5200 0%, #4a2d06 55%, #2a1903 100%); } .hero.warn::after { background: radial-gradient(circle, rgba(255, 190, 90, .45), transparent 65%); }
.hero .pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hero .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 0 4px rgba(126, 224, 168, .25); } .hero.bad .dot { background: #ff8c95; box-shadow: 0 0 0 4px rgba(255, 140, 149, .25); } .hero.warn .dot { background: #ffc875; box-shadow: 0 0 0 4px rgba(255, 200, 117, .25); }
.hero .label { margin-top: 20px; font-size: 14px; opacity: .72; }
.hero .big { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.035em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero .big.date { font-size: 32px; }
.hero .sub { margin-top: 6px; font-size: 14.5px; opacity: .82; line-height: 1.4; }
/* шкала оплаченного срока */
.scale { margin-top: 20px; --c: #7ee0a8; } .scale.warn { --c: #ffc875; } .scale.bad { --c: #ff8c95; }
.scale .top { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 9px; } .scale .top b { color: var(--c); font-weight: 750; }
.scale .track { position: relative; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.scale .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff 0%), var(--c)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.scale.bad .track i { width: 100% !important; opacity: .38; box-shadow: none; }
.scale .track u { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(10, 12, 24, .55) calc(25% - 2px) 25%); border-radius: 12px; }
.scale .ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12.5px; opacity: .75; }
.hero .cta { margin-top: 18px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: 0; border-radius: 16px; padding: 15px 18px; font-weight: 700; font-size: 16px; background: var(--accent); color: var(--accent-ink); transition: transform .1s, filter .15s, opacity .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: scale(.985); } .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn.light { background: #fff; color: #0d1117; } .btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); } .btn.dark { background: #0d1117; color: #fff; }
.btn.sm { width: auto; padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.hero .btn.strong { font-size: 17px; font-weight: 800; color: #b3202e; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); gap: 8px; } .hero .btn.strong .ico { width: 20px; height: 20px; }
.hero .best { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; text-align: center; } .hero .best:active { transform: scale(.985); }
.hero .btn.glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.act { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 13px 4px 11px; display: grid; justify-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); text-decoration: none; box-shadow: var(--shadow); transition: transform .1s; }
.act:active { transform: scale(.96); } .act .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.act.ok .ic { background: var(--ok-soft); color: var(--ok); }

/* уведомления и объявления */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.note .ico { margin-top: 2px; color: var(--accent); } .note b { display: block; margin-bottom: 2px; }
.note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .note.warn .ico { color: var(--warn); }
.note.important, .note.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .note.important .ico, .note.bad .ico { color: var(--bad); }
.note.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .note.ok .ico { color: var(--ok); }
.note .txt { white-space: pre-wrap; word-break: break-word; font-size: 15px; } .note a { color: inherit; }

/* список платежей */
.pay { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.pay:first-child { border-top: 0; }
.pay .pi { width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.pay .pi.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pay .mid { flex: 1; min-width: 0; } .pay .t { font-weight: 650; } .pay .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay .am { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.link { border: 0; background: none; color: var(--accent); font-weight: 650; font-size: 13px; padding: 2px 0; text-decoration: none; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); } .empty .ico { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .6; }

/* формы */
.field { display: grid; gap: 7px; } .field > label { font-size: 13px; font-weight: 650; color: var(--muted); }
.input { width: 100%; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 14px 15px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
.pw { position: relative; } .pw .input { padding-right: 52px; } .pw button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 12px; display: grid; place-items: center; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid var(--line-2); background: var(--surface); flex: none; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); } .check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translate(-1px, -1px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .pillbtn { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-weight: 650; font-size: 14px; color: var(--ink-2); } .pillbtn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* вход */
.login { max-width: 440px; margin: 0 auto; padding: calc(38px + var(--safe-t)) 20px calc(30px + var(--safe-b)); min-height: 100vh; display: flex; flex-direction: column; }
.login .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.login h1 { font-size: 34px; letter-spacing: -.035em; line-height: 1.08; margin: 34px 0 10px; }
.login .lead { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.login form { display: grid; gap: 16px; }
.login .help { margin-top: 22px; }
.login .legal { margin-top: auto; padding-top: 28px; font-size: 12px; color: var(--faint); line-height: 1.6; text-align: center; }
.login .legal button { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 12px; padding: 0 2px; }
.contacts { display: grid; gap: 10px; }
.cbtn { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 650; }
.cbtn .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.cbtn small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.cbtn.primary { background: var(--accent); color: #fff; border-color: transparent; } .cbtn.primary .ic { background: rgba(255, 255, 255, .2); color: #fff; } .cbtn.primary small { color: rgba(255, 255, 255, .8); }

/* аккордеон */
.acc { border-top: 1px solid var(--line); } .acc:first-of-type { border-top: 0; }
.acc > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border: 0; background: none; font-weight: 650; text-align: left; font-size: 15.5px; }
.acc > button .ico { transition: transform .2s; color: var(--muted); } .acc.open > button .ico { transform: rotate(180deg); }
.acc .body { display: none; padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; } .acc.open .body { display: block; animation: rise .2s ease-out; }
.acc .body p { margin: 0 0 9px; } .acc .body ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.doclink { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-weight: 600; font-size: 15.5px; }
.doclink:first-child { border-top: 0; } .doclink .ico:last-child { margin-left: auto; color: var(--faint); }

/* шторка / окно */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 18, .55); backdrop-filter: blur(3px); animation: fade .2s ease-out; display: flex; align-items: flex-end; justify-content: center; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 8px 18px calc(22px + var(--safe-b)); animation: up .3s cubic-bezier(.2, .9, .25, 1); box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 4px auto 12px; }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .sheet h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.sheet .doc h4 { margin: 18px 0 6px; font-size: 14px; letter-spacing: .02em; } .sheet .doc p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; } .sheet .doc ul { padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
@media (min-width: 760px) { .scrim { align-items: center; } .sheet { border-radius: 26px; max-height: 86vh; } .sheet .grab { display: none; } }

/* способ оплаты */
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 18px; border: 1.8px solid var(--line-2); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.opt .rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; } .opt.on { border-color: var(--accent); background: var(--accent-soft); } .opt.on .rd { border-color: var(--accent); } .opt.on .rd::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.opt .m { flex: 1; min-width: 0; } .opt .t { font-weight: 750; font-size: 16.5px; } .opt .s { font-size: 13px; color: var(--muted); } .opt .p { font-weight: 800; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; } .opt .p small { display: block; font-size: 12px; font-weight: 700; color: var(--ok); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; } .total b { font-size: 26px; letter-spacing: -.02em; }

/* итоги оплаты */
.result { text-align: center; padding: 18px 6px 4px; } .result .big { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--ok-soft); color: var(--ok); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); } .result .big .ico { width: 38px; height: 38px; stroke-width: 2.4; }
.result.bad .big { background: var(--bad-soft); color: var(--bad); } .result.wait .big { background: var(--accent-soft); color: var(--accent); } .result h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; } .result p { margin: 0 0 18px; color: var(--muted); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: #0d1117; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: up .25s ease-out; }
.offline { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 14px; } @keyframes sk { to { background-position: -200% 0; } }
.footer { text-align: center; font-size: 12px; color: var(--faint); line-height: 1.7; padding: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* «Посоветуй другу» */
.card.ref { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 70%); }
.refcode { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.refcode b { font-size: 26px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--accent); flex: 1; }
.card.ref .ref-btns { display: grid; gap: 8px; margin-top: 12px; } .card.ref .v.ok { color: var(--ok); } .card.ref .v.warn { color: var(--warn, #c77700); } .card.ref .v.muted { color: var(--muted); }

/* Информационный блок из CRM */
.info { --ic: var(--accent); --ics: var(--accent-soft); position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--ic) 9%, var(--surface)) 0%, var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--ic) 22%, var(--line)); box-shadow: var(--shadow); overflow: hidden; }
.info::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ic); }
.info.warn { --ic: var(--warn); --ics: var(--warn-soft); } .info.important { --ic: var(--bad); --ics: var(--bad-soft); }
.info .ib { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ics); color: var(--ic); } .info .ib .ico { width: 20px; height: 20px; }
.info .ibody { flex: 1; min-width: 0; }
.info .itop { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.info .ikind { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ic); }
.info .ix { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; margin: -6px -6px 0 0; border-radius: 9px; display: grid; place-items: center; cursor: pointer; } .info .ix:hover { background: var(--surface-2); } .info .ix .ico { width: 16px; height: 16px; }
.info .ititle { margin: 2px 0 4px; font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.info .itext { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.info .itext a { color: var(--ic); font-weight: 650; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ic) 40%, transparent); }
.info .itext.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.info .imore { margin-top: 6px; font-size: 13.5px; }
.info.important .ib { animation: ipulse 2.4s ease-in-out infinite; } @keyframes ipulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bad) 18%, transparent); } }

/* Уведомления: каналы и выбор, о чём сообщать */
.chan { padding: 12px 0; border-top: 1px solid var(--line); } .chan:first-of-type { border-top: 0; padding-top: 0; }
.chan .btn.sm { min-height: 38px; padding: 0 14px; flex: none; width: auto; }
.chan .pend { margin-top: 12px; display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.codebox { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface); } .codebox b { flex: 1; font-size: 20px; letter-spacing: .14em; color: var(--ink); }
.prefrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); } .prefrow:first-of-type { border-top: 0; }
.sw { flex: none; width: 52px; height: 32px; border-radius: 99px; border: 0; padding: 3px; background: var(--line-2); cursor: pointer; transition: background .15s; } .sw i { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; } .sw.on { background: var(--ok); } .sw.on i { transform: translateX(20px); }
