/* You Shepel — пульт владельца. Дизайн-система Laya App (кабинеты Shepel):
   тёмная база, живой фон Gemini, стеклянные плитки, акцент лайм, нижнее меню-пилюля
   с плашкой-бегунком. Золота нет. */
@font-face { font-family: "Tilda Sans"; src: url("/fonts/TildaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/TildaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/TildaSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/TildaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --ink: #0b0b0c; --ink2: #111113; --ink3: #17171a;
  --lime: #d1e05a; --limeHi: #dcf047; --limeD: rgba(209, 224, 90, .14);
  --sand: #edeae2; --mist: rgba(237, 234, 226, .56); --faint: rgba(237, 234, 226, .32);
  --line: rgba(237, 234, 226, .1); --line2: rgba(237, 234, 226, .16);
  --glass: rgba(14, 14, 16, .58); --glass2: rgba(237, 234, 226, .06);
  --sea: #6fd6c9; --amber: #f5c84b; --coral: #fa876b; --blue: #6aa8ff;
  --xe: cubic-bezier(.22, 1, .36, 1);
  --gemini: linear-gradient(-45deg, #1a73e8, #4285f4, #7b6ad0, #9b72cb, #c76a9e, #d96570, #e28a45, #f9ab00, #d96570, #9b72cb, #4285f4);
  --gm: conic-gradient(from 0deg, #4285f4, #24c1e0, #9b72cb, #d96570, #f06cb4, #9b72cb, #4285f4);
  --r: 20px; --r2: 16px;
  --safeT: env(safe-area-inset-top, 0px); --safeB: env(safe-area-inset-bottom, 0px);
  --navH: 74px;
  /* старые имена — на всякий случай указывают на новую палитру */
  --tx: var(--sand); --tx2: var(--mist); --mut: var(--faint); --card: var(--glass); --card2: var(--glass2);
  --green: var(--sea); --red: var(--coral); --gold: var(--lime); --gold2: var(--lime); --goldD: var(--limeD);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--sand); }
body { font-family: "Tilda Sans", "Manrope", -apple-system, system-ui, sans-serif; font-size: 15px; line-height: 1.35; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { max-width: 100%; }
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- живой фон Gemini (как в Laya App) ---------- */
.gembg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--ink); }
.gembg::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; background: url(/ys/gem-conic.webp) center / 100% 100% no-repeat; opacity: .3; will-change: transform; animation: gemTurn 60s linear infinite; }
.gembg i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.gembg .g1 { width: 70vmax; height: 70vmax; left: -25vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(66,133,244,.42) 0%, rgba(66,133,244,.3) 22%, rgba(66,133,244,.14) 44%, rgba(66,133,244,.04) 60%, rgba(66,133,244,0) 70%); animation: gemDrift1 26s ease-in-out infinite; }
.gembg .g2 { width: 60vmax; height: 60vmax; right: -25vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(217,101,112,.38) 0%, rgba(217,101,112,.27) 22%, rgba(217,101,112,.13) 44%, rgba(217,101,112,.04) 60%, rgba(217,101,112,0) 70%); animation: gemDrift2 32s ease-in-out infinite; }
.gembg .g3 { width: 55vmax; height: 55vmax; left: 10vmax; bottom: -35vmax; background: radial-gradient(circle, rgba(155,114,203,.42) 0%, rgba(155,114,203,.3) 22%, rgba(155,114,203,.14) 44%, rgba(155,114,203,.04) 60%, rgba(155,114,203,0) 70%); animation: gemDrift3 38s ease-in-out infinite; }
.gembg .g4 { width: 40vmax; height: 40vmax; right: -10vmax; top: -18vmax; background: radial-gradient(circle, rgba(249,171,0,.21) 0%, rgba(249,171,0,.15) 22%, rgba(249,171,0,.07) 44%, rgba(249,171,0,.02) 60%, rgba(249,171,0,0) 70%); animation: gemDrift1 44s ease-in-out infinite reverse; }
.gembg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.72) 0%, rgba(11,11,12,.55) 40%, rgba(11,11,12,.2) 100%); }
@keyframes gemTurn { to { transform: rotate(360deg); } }
@keyframes gemDrift1 { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(18vw,-10vh,0) scale(1.15); } }
@keyframes gemDrift2 { 0%, 100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-20vw,-14vh,0) scale(.9); } }
@keyframes gemDrift3 { 0%, 100% { transform: translate3d(0,0,0) scale(.95); } 50% { transform: translate3d(12vw,-18vh,0) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
html.ovl-on .gembg::before, html.ovl-on .gembg i { animation-play-state: paused; }

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; transition: opacity .6s ease, transform .6s ease; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
/* обводка аватара «как у Gemini»: крутится, светится и дышит */
.sp-ring { position: relative; isolation: isolate; width: 128px; height: 128px; border-radius: 50%; padding: 3px; margin-bottom: 26px; animation: popIn .9s cubic-bezier(.2,.9,.2,1.2) both, ringPulse 3s ease-in-out .9s infinite; }
.sp-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--gm); animation: spin 3.2s linear infinite; }
.sp-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--gm); filter: blur(16px); opacity: .75; z-index: -1; animation: spin 3.2s linear infinite, haloPulse 3s ease-in-out infinite; }
.sp-ring img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--ink); }
.sp-glow { position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(circle, rgba(155,114,203,.34), rgba(66,133,244,.14) 45%, transparent 68%); animation: breathe 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; transform: scale(.92); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes haloPulse { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }
.sp-hello { font-size: 30px; font-weight: 700; letter-spacing: -.02em; text-align: center; min-height: 40px; }
.sp-hello span { display: inline-block; opacity: 0; transform: translateY(14px); animation: wordIn .55s var(--xe) forwards; }
.sp-hello em { font-style: normal; background: var(--gemini); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordIn .55s var(--xe) forwards, gGrad 4s linear infinite; }
@keyframes gGrad { to { background-position: 300% 0; } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.sp-step { margin-top: 14px; height: 20px; color: var(--mist); font-size: 14px; overflow: hidden; }
.sp-step span { display: inline-block; animation: stepIn .45s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.sp-bar { margin-top: 18px; width: 180px; height: 3px; border-radius: 3px; background: rgba(237,234,226,.08); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px rgba(209,224,90,.6); transition: width .5s ease; }

/* ---------- закрыто ---------- */
.gate { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; background: var(--ink); }
.gate .lock { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line2); margin-bottom: 18px; }
.gate .lock svg { width: 34px; height: 34px; stroke: var(--lime); }
.gate h2 { margin: 0 0 8px; font-size: 24px; }
.gate p { margin: 0; color: var(--mist); max-width: 280px; }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 2; padding: calc(var(--safeT) + 10px) 18px calc(var(--navH) + var(--safeB) + 28px); max-width: 640px; margin: 0 auto; }
.view { animation: viewIn .38s var(--xe) both; }
.view.bwd { animation-name: viewInB; }
@keyframes viewIn { from { opacity: 0; transform: translateX(14px); } }
@keyframes viewInB { from { opacity: 0; transform: translateX(-14px); } }
.hd { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.hd .hx { flex: 1; min-width: 0; }
.hd .eb { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.hd .upd { font-size: 11px; color: var(--faint); white-space: nowrap; align-self: flex-end; padding-bottom: 4px; }
/* своя кнопка «назад» в шапке — дублирует системную кнопку Telegram */
.back { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--sand); transition: transform .14s ease, background .2s ease; animation: backIn .4s var(--xe) both; }
.back:active { transform: scale(.9); background: var(--glass2); }
.back svg { width: 20px; height: 20px; stroke-width: 2.2; }
@keyframes backIn { from { opacity: 0; transform: translateX(-8px); } }
.sec { margin: 22px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.sec h3 { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.sec .more { font-size: 12px; font-weight: 700; color: var(--lime); }
.empty { padding: 18px; border-radius: var(--r2); border: 1px dashed var(--line2); background: var(--glass); color: var(--mist); font-size: 14px; text-align: center; }
.note { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.4; }

/* ---------- герой главной ---------- */
.hero { position: relative; isolation: isolate; display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 50%, rgba(155,114,203,.16), transparent 55%); }
.hero .av { position: relative; isolation: isolate; flex: 0 0 78px; width: 78px; height: 78px; border-radius: 50%; padding: 3px; animation: ringPulse 3s ease-in-out infinite; }
.hero .av::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--gm); animation: spin 4s linear infinite; }
.hero .av::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--gm); filter: blur(11px); z-index: -1; animation: spin 4s linear infinite, haloPulse 3s ease-in-out infinite; }
.hero .av img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #121214; display: block; }
.hero .hi { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.hero h2 { margin: 4px 0 3px; font-size: 24px; letter-spacing: -.01em; line-height: 1.05; }
.hero .role { font-size: 12.5px; color: var(--mist); line-height: 1.3; }
.crown { display: inline-block; margin-left: 2px; }

.lead { margin-top: 10px; padding: 13px 15px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--mist); }
.lead b { color: var(--sand); font-weight: 700; }
.lead .lt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 5px; }

/* ---------- виджеты ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w { position: relative; text-align: left; padding: 14px 14px 13px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); overflow: hidden; transition: transform .16s ease, border-color .2s ease; animation: rise .55s var(--xe) both; }
.w:active { transform: scale(.97); }
.w.wide { grid-column: 1 / -1; }
.w .wt { display: flex; align-items: center; gap: 7px; padding-right: 14px; white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.w .wt svg { width: 16px; height: 16px; stroke: var(--lime); flex: 0 0 16px; }
.w .big { margin-top: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--sand); }
.w .big small { font-size: 12.5px; font-weight: 600; color: var(--mist); margin-left: 5px; letter-spacing: 0; }
.w .sub { margin-top: 7px; font-size: 12.5px; color: var(--mist); line-height: 1.35; }
.w .sub b { color: var(--sand); font-weight: 700; }
.w .ar { position: absolute; right: 12px; top: 13px; width: 14px; height: 14px; stroke: var(--faint); stroke-width: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.g { background: var(--sea); box-shadow: 0 0 0 3px rgba(111,214,201,.15); }
.dot.a { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,200,75,.15); }
.dot.r { background: var(--coral); box-shadow: 0 0 0 3px rgba(250,135,107,.15); animation: pulse 1.8s ease-in-out infinite; }
.dot.n { background: var(--faint); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(250,135,107,0); } }

/* ---------- списки ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); animation: rise .5s var(--xe) both; transition: transform .14s ease, background .2s ease; }
button.row:active { transform: scale(.985); background: rgba(24,24,28,.7); }
.row .ic, .cell .ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--glass2); font-weight: 700; font-size: 14.5px; color: var(--sand); }
.row .ic svg, .cell .ic svg { width: 19px; height: 19px; stroke: var(--lime); }
.row .ic.ai { background: rgba(106,168,255,.14); color: var(--blue); }
.row .ic.ai svg { stroke: var(--blue); }
.row .tx { flex: 1; min-width: 0; }
.row .t1 { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { font-size: 12.5px; color: var(--mist); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rt { flex: 0 0 auto; text-align: right; font-size: 12.5px; color: var(--mist); }
.row .rt b { display: block; font-size: 15px; color: var(--sand); margin-bottom: 3px; }
.row .rt .na { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }
.row > svg.ar { flex: 0 0 14px; width: 14px; height: 14px; stroke: var(--faint); stroke-width: 2; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; background: var(--glass2); color: var(--mist); white-space: nowrap; }
.tag.gold { background: var(--limeD); color: var(--lime); }
.tag.g { background: rgba(111,214,201,.13); color: var(--sea); }
.tag.a { background: rgba(245,200,75,.13); color: var(--amber); }
.tag.r { background: rgba(250,135,107,.14); color: var(--coral); }
.tag.b { background: rgba(106,168,255,.14); color: var(--blue); }

/* ---------- сегменты (плашка-бегунок, как в меню) и чипы ---------- */
.seg { display: flex; gap: 2px; padding: 5px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 12px; position: relative; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 15px; font-size: 13px; font-weight: 700; color: var(--mist); position: relative; z-index: 1; transition: color .32s ease, transform .14s ease; white-space: nowrap; }
.seg button:active { transform: scale(.95); }
.seg button.on { color: var(--ink); }
.seg .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 15px; background: var(--lime); box-shadow: 0 6px 18px -8px rgba(209,224,90,.7); transition: left .5s cubic-bezier(.34,1.3,.44,1), width .5s cubic-bezier(.34,1.3,.44,1); }
.seg .pill.now { transition: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--glass); border: 1px solid var(--line); color: var(--sand); transition: background .25s ease, color .25s ease, transform .14s ease; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chip i { font-style: normal; opacity: .55; margin-left: 4px; font-weight: 700; }
.search { width: 100%; padding: 12px 15px; border-radius: 15px; background: var(--glass); border: 1px solid var(--line); color: var(--sand); font: inherit; font-size: 15px; margin-bottom: 10px; outline: none; transition: border-color .2s ease; }
.search::placeholder { color: var(--faint); }
.search:focus { border-color: rgba(209,224,90,.5); }

/* ---------- цифры (плитки как в Laya) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { padding: 13px 14px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); animation: rise .5s var(--xe) both; }
.kpi .k2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.kpi .k1 { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); line-height: 1.25; }
.kpi .k3 { font-size: 11.5px; color: var(--mist); margin-top: 3px; }
.kpis .kpi { display: flex; flex-direction: column; }
.kpis .kpi .k2 { order: 1; } .kpis .kpi .k1 { order: 2; } .kpis .kpi .k3 { order: 3; }
.kpi.g .k2 { color: var(--sea); } .kpi.r .k2 { color: var(--coral); } .kpi.a .k2 { color: var(--amber); } .kpi.gold .k2 { color: var(--lime); }

/* ---------- контент-ячейки ---------- */
.cell { border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); overflow: hidden; animation: rise .5s var(--xe) both; }
.cell .top { display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 12px; }
.cell .tg { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.cell .tg .tx { min-width: 0; }
.cell .t1 { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .t2 { font-size: 12.5px; color: var(--mist); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .acts { display: flex; gap: 6px; }
.ib { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line); color: var(--sand); transition: transform .14s ease, background .2s ease; }
.ib:active { transform: scale(.9); background: var(--limeD); }
.ib svg { width: 17px; height: 17px; }
.cell .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--xe); }
.cell.open .more { grid-template-rows: 1fr; }
.cell .more > div { overflow: hidden; }
.cell .in { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.cell .in p { margin: 10px 0 0; font-size: 14px; color: var(--mist); white-space: pre-line; }
.cell .in .lb { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-top: 12px; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 16px; font-weight: 700; font-size: 14.5px; background: var(--lime); color: var(--ink); margin-top: 12px; width: 100%; box-shadow: 0 8px 22px -12px rgba(209,224,90,.8); transition: transform .14s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 2; }
.btn.ghost { background: var(--glass); color: var(--sand); border: 1px solid var(--line2); box-shadow: none; }
.btns { display: flex; gap: 8px; }
.btns .btn { flex: 1; }
.btn.del { background: rgba(255,92,92,.10); color: #ff8f8f; border: 1px solid rgba(255,92,92,.32); box-shadow: none; }
/* кнопка с живой обводкой Gemini (как «Видео-обзор» и «Перепродажи» в Laya) */
.gbtn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 16px; font-weight: 700; font-size: 14.5px; color: var(--sand); width: 100%; margin-top: 12px; transition: transform .14s ease; }
.gbtn:active { transform: scale(.97); }
.gbtn > .xgm { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.gbtn > .xgm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--gemini); animation: xGemT 7s ease-in-out infinite; will-change: transform; }
.gbtn > .xgm::after { content: ""; position: absolute; inset: 1.5px; border-radius: 14.5px; background: rgba(18,18,22,.94); }
.gbtn::after { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: 18px; background: var(--gemini); opacity: .35; filter: blur(8px); animation: xGlow 3.2s ease-in-out infinite; }
.gbtn svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 2; }
.gbtn.sm { width: auto; height: 34px; padding: 0 13px; border-radius: 12px; font-size: 12.5px; margin: 0; }
.gbtn.sm > .xgm::after { border-radius: 10.5px; }
.gbtn.sm::after { border-radius: 14px; }
@keyframes xGemT { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-75%); } }
@keyframes xGlow { 0%, 100% { opacity: .22; } 50% { opacity: .5; } }

/* ---------- нижнее меню: пилюля с плашкой-бегунком ---------- */
.ptabs { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(var(--safeB) + 10px); max-width: 616px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 2px; padding: 6px; border-radius: 25px; background: rgba(16,16,19,.86); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.8); }
.ptab-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px - (var(--n, 6) - 1) * 2px) / var(--n, 6)); pointer-events: none; transform: translateX(calc(var(--i, 0) * (100% + 2px))); transition: transform .52s cubic-bezier(.34,1.3,.44,1); will-change: transform; }
.ptab-ind::before { content: ""; position: absolute; inset: 0; border-radius: 19px; background: var(--lime); box-shadow: 0 6px 18px -8px rgba(209,224,90,.7); }
.ptabs.mv .ptab-ind::before { animation: xIndSq .52s cubic-bezier(.3,.7,.4,1); }
@keyframes xIndSq { 0% { transform: none; } 35% { transform: scaleX(1.3) scaleY(.9); } 70% { transform: scaleX(.96) scaleY(1.03); } 100% { transform: none; } }
.ptab { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 0 8px; border-radius: 19px; color: var(--faint); font-size: clamp(9px, 2.45vw, 10.5px); font-weight: 600; letter-spacing: -.2px; transition: color .32s ease, transform .14s ease; }
.ptab:active { transform: scale(.94); }
.ptab svg { width: 22px; height: 22px; stroke-width: 1.7; }
.ptab span { white-space: nowrap; }
.ptab.on { color: var(--ink); }
.ptab .bd { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--amber); color: var(--ink); font: 800 9.5px/16px "Tilda Sans", sans-serif; text-align: center; }

/* ---------- шторка ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sh-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fadeIn .25s ease both; }
.sh-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: #111114; border-radius: 26px 26px 0 0; border-top: 1px solid var(--line2); padding: 8px 18px calc(22px + var(--safeB)); animation: sheetIn .42s var(--xe) both; max-width: 640px; margin: 0 auto; overscroll-behavior: contain; }
.sh-card.swap .sh-body { animation: viewIn .32s var(--xe) both; }
.sheet.closing .sh-card { animation: sheetOut .25s ease forwards; }
.sheet.closing .sh-back { animation: fadeOut .25s ease forwards; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sh-top { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: -8px -18px 6px; padding: 10px 14px 6px; background: #111114; }
.sh-grip { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line2); }
.sh-nav { height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 8px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--sand); }
.sh-nav svg { width: 18px; height: 18px; stroke-width: 2.2; }
.sh-x { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line); color: var(--sand); margin-left: auto; }
.sh-x svg { width: 16px; height: 16px; stroke-width: 2.2; }
.sh-body h2 { margin: 6px 0 4px; font-size: 24px; letter-spacing: -.01em; }
.sh-body .ss { color: var(--mist); font-size: 14px; margin-bottom: 10px; }
.sh-body .kpis { margin-top: 10px; }
.kv { display: flex; flex-direction: column; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); margin-top: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--line); font-size: 14px; }
.kv div:first-child { border-top: 0; }
.kv span { color: var(--mist); flex: 0 0 auto; }
.kv b { font-weight: 700; text-align: right; white-space: pre-line; }
.txt { margin-top: 12px; padding: 13px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); font-size: 14px; color: var(--mist); white-space: pre-line; }
.txt .lb { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-bottom: 6px; }
.txt b { color: var(--sand); }

/* ---------- просмотрщик материалов ---------- */
.viewer { position: fixed; inset: 0; z-index: 45; background: var(--ink); display: flex; flex-direction: column; animation: fadeIn .25s ease both; }
.vw-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--safeT) + 8px) 12px 10px; background: rgba(16,16,19,.96); border-bottom: 1px solid var(--line); font-weight: 700; }
.vw-top span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-x { height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 8px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.vw-x svg { width: 18px; height: 18px; stroke-width: 2.2; }
.viewer iframe { flex: 1; border: 0; width: 100%; background: #191b1e; }

.toast { position: fixed; left: 50%; bottom: calc(var(--navH) + var(--safeB) + 22px); transform: translateX(-50%); z-index: 70; padding: 10px 16px; border-radius: 14px; background: rgba(24,24,28,.96); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; animation: toastIn .3s ease both; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- полосы ---------- */
.bar { height: 6px; border-radius: 4px; background: rgba(237,234,226,.07); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--lime); transform-origin: left; animation: grow .9s var(--xe) both; }
@keyframes grow { from { transform: scaleX(0); } }
.funnel { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); }
.funnel .fr { display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mist); }
.funnel .fr .bar { margin: 0; }
.funnel .fr b { text-align: right; color: var(--sand); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- без дёрганий: при переключателях и фильтрах ничего не «въезжает» заново ---------- */
.view.still .w, .view.still .row, .view.still .cell, .view.still .kpi, .view.still .bar i, .view.still .back, .view.still .pay, .view.still .steps li { animation: none !important; }
.w .big, .kpi .k2, .row .rt b, .chip i, .pay .pv b { font-variant-numeric: tabular-nums; }
/* чипы-фильтры: та же лаймовая плашка-бегунок, что в меню и сегментах */
.chips { position: relative; }
.chips .pill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 0; border-radius: 999px; background: var(--lime); box-shadow: 0 6px 18px -8px rgba(209,224,90,.7); transition: left .5s cubic-bezier(.34,1.3,.44,1), width .5s cubic-bezier(.34,1.3,.44,1); pointer-events: none; }
.chips .pill.now { transition: none; }
.chips .chip { position: relative; z-index: 1; }
.chips .chip.on { background: transparent; border-color: transparent; color: var(--ink); }

/* ---------- выплаты застройщиков ---------- */
.pay { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); text-align: left; width: 100%; animation: rise .5s var(--xe) both; transition: transform .14s ease; }
button.pay:active { transform: scale(.985); }
.pay .ph { display: flex; align-items: center; gap: 10px; }
.pay .ph .tx { flex: 1; min-width: 0; }
.pay .ph .t1 { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay .ph .t2 { font-size: 12.5px; color: var(--mist); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay .pv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay .pv div { padding: 9px 10px; border-radius: 12px; background: var(--glass2); }
.pay .pv b { display: block; font-size: 14.5px; }
.pay .pv span { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.steps { list-style: none; margin: 0; padding: 14px; border-radius: var(--r2); background: var(--glass); border: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--mist); animation: rise .5s var(--xe) both; }
.steps li i { flex: 0 0 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--limeD); color: var(--lime); }
.steps li b { color: var(--sand); }
.soon { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(106,168,255,.14); color: var(--blue); vertical-align: 2px; }

/* ---------- команда: активность в превью ---------- */
.prow { align-items: flex-start; }
.prow > .ic { margin-top: 2px; }
.prow > svg.ar { margin-top: 13px; }
.pst { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; font-size: 12px; color: var(--mist); }
.pst b { color: var(--sand); font-weight: 700; margin-right: 3px; font-variant-numeric: tabular-nums; }
.pst .sa b { color: var(--amber); } .pst .sw b { color: var(--lime); } .pst .sr b { color: var(--coral); }
.sdots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.sdots i, .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.sdots em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 2px; }
.sdots .sa, .legend .sa { background: var(--amber); } .sdots .sg, .legend .sg { background: var(--sea); }
.sdots .sb, .legend .sb { background: var(--blue); } .sdots .sw, .legend .sw { background: var(--lime); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 11.5px; color: var(--faint); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ic.pic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--glass2); }
.ic.pic svg { width: 19px; height: 19px; stroke: var(--lime); }

/* ---------- кликабельные плитки ---------- */
.kpi.tap { position: relative; text-align: left; width: 100%; transition: transform .14s ease, background .2s ease; }
.kpi.tap:active { transform: scale(.97); }
.kpi.tap > svg.ar { position: absolute; right: 11px; top: 13px; width: 13px; height: 13px; stroke: var(--faint); stroke-width: 2; }

/* ---------- карточка человека / бота ---------- */
.phead { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.phead h2 { margin: 0 0 3px; }
.phead .ss { margin: 0; }
.pav { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line2); font-weight: 700; font-size: 19px; }
.pav.ai { background: rgba(106,168,255,.14); color: var(--blue); }
.pav svg { width: 26px; height: 26px; stroke: currentColor; }
.rlink { margin-top: 12px; padding: 13px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); }
.rlink .lb, .instr .lb { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.rl { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 12px; border-radius: 13px; background: rgba(0,0,0,.25); border: 1px dashed var(--line2); font-weight: 700; font-size: 14px; word-break: break-all; }
.rl small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--faint); }
.rlink .btns .gbtn { margin-top: 10px; }

/* ---------- должностная инструкция ---------- */
.instr { margin-top: 12px; padding: 13px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); transition: border-color .2s ease; }
.instr.ed { border-color: rgba(209,224,90,.45); }
.instr .ih { display: flex; align-items: center; justify-content: space-between; }
.instr .ist { font-size: 11px; font-weight: 700; color: var(--lime); }
.itext { margin-top: 8px; font-size: 14px; color: var(--sand); white-space: pre-line; line-height: 1.45; }
.iph { color: var(--faint); }
.instr .btns .btn { height: 42px; font-size: 13.5px; }
.lnk { display: block; margin: 10px auto 0; font-size: 12.5px; font-weight: 600; color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- поле под свою клавиатуру ---------- */
.fld { position: relative; min-height: 46px; padding: 12px 14px; border-radius: 15px; background: var(--glass); border: 1px solid var(--line); color: var(--sand); font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; cursor: text; transition: border-color .2s ease; }
.fld.on { border-color: rgba(209,224,90,.6); box-shadow: 0 0 0 3px rgba(209,224,90,.12); }
.fld.ml { margin-top: 8px; min-height: 160px; background: rgba(0,0,0,.25); font-size: 14px; }
.fld.search { margin-bottom: 10px; }
.fld .ph { color: var(--faint); }
.caret { display: inline-block; width: 2px; height: 1.15em; margin: 0 1px -3px; background: var(--lime); animation: caretB 1s steps(1) infinite; }
@keyframes caretB { 50% { opacity: 0; } }

/* ---------- клавиатура ---------- */
.xkb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 7px 4px calc(8px + var(--safeB)); background: rgba(18,18,21,.97); border-top: 1px solid var(--line); animation: kbUp .3s var(--xe) both; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@keyframes kbUp { from { transform: translateY(100%); } }
.xk-row { display: flex; gap: 5px; margin-bottom: 9px; padding: 0 2px; }
.xk-row:last-child { margin-bottom: 0; }
.xk-row.r1:not(:has(.kk:nth-child(10))) { padding: 0 5%; }
.kk { flex: 1 1 0; min-width: 0; height: 42px; padding: 0; border-radius: 8px; background: rgba(237,234,226,.13); color: var(--sand); font: 500 19px/1 "Tilda Sans", sans-serif; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(0,0,0,.45); transition: background .08s; touch-action: manipulation; }
.kk.dn { background: rgba(237,234,226,.3); }
.kk svg { width: 21px; height: 21px; stroke-width: 1.7; }
.kk.fn { background: rgba(237,234,226,.06); font-size: 14px; font-weight: 600; }
.kk.fn.dn { background: rgba(237,234,226,.22); }
.xk-row.r2 .kk.sh, .xk-row.r2 .kk.bs { flex: 1.4 1 0; }
.kk.sh.on { background: var(--sand); color: var(--ink); }
.xk-row.r3 .kk.fn { flex: 0 0 12%; }
.kk.sp { flex: 1 1 auto; font-size: 14px; color: var(--mist); }
.xk-row.r3 .kk.go { flex: 0 0 22%; background: var(--lime); color: var(--ink); font-weight: 700; }
.xk-pv { position: fixed; z-index: 90; transform: translate(-50%, -110%) scale(.6); opacity: 0; min-width: 46px; height: 54px; padding: 0 8px; border-radius: 12px; background: #3a3a40; color: var(--sand); font: 600 28px/54px "Tilda Sans", sans-serif; text-align: center; pointer-events: none; transition: opacity .06s, transform .06s; }
.xk-pv.on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.xk-pv.alt { background: var(--lime); color: var(--ink); }
html.kb-on .ptabs { display: none; }
html.kb-on .app { padding-bottom: 300px; }
html.kb-on .sh-card { padding-bottom: 300px; max-height: 100vh; }

/* ---------- календарь ---------- */
.mweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.mc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 7px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); }
.mc span:first-child { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mc b { font-size: 15px; font-weight: 700; color: var(--sand); line-height: 1.1; }
.mc.on { border-color: rgba(209, 224, 90, .55); background: var(--limeD); }
.mc.on b { color: var(--lime); }
.dts { display: flex; gap: 3px; min-height: 6px; align-items: center; justify-content: center; }
.dts i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.dts em { font-size: 9px; font-style: normal; font-weight: 700; color: var(--mist); line-height: 6px; }
.cm { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.cm b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cm .ib svg { width: 18px; height: 18px; stroke: var(--sand); fill: none; stroke-width: 2; }
.cal { padding: 10px 8px 8px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); animation: rise .5s var(--xe) both; }
.cw, .cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cw span { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 2px 0 8px; }
.cd { height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; color: var(--sand); transition: background .25s ease, transform .14s ease, border-color .25s ease; }
.cd:active { transform: scale(.92); }
.cd .dn { font-size: 14.5px; font-weight: 600; line-height: 1; }
.cd.has { background: rgba(237, 234, 226, .035); }
.cd.out { opacity: .32; }
.cd.td { border-color: rgba(209, 224, 90, .55); }
.cd.td .dn { color: var(--lime); font-weight: 800; }
.cd.sel { background: var(--lime); border-color: var(--lime); box-shadow: 0 8px 20px -10px rgba(209, 224, 90, .8); }
.cd.sel .dn { color: var(--ink); font-weight: 800; }
.cd.sel .dts i { box-shadow: 0 0 0 1.5px rgba(11, 11, 12, .55); }
.cd.sel .dts em { color: var(--ink); }
.cfl { display: flex; flex-wrap: wrap; gap: 6px; }
.cf { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--sand); font-size: 12.5px; font-weight: 600; transition: opacity .25s ease, background .25s ease, border-color .25s ease, transform .14s ease; }
.cf:active { transform: scale(.95); }
.cf i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.cf em { font-style: normal; font-weight: 700; color: var(--faint); font-size: 11.5px; }
.cf.on { border-color: rgba(209, 224, 90, .6); background: var(--limeD); }
.cf.on em { color: var(--lime); }
.cf.off { opacity: .42; }
.evd { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: 0 0 0 4px rgba(237, 234, 226, .05); }
.sec .lnk2 { font-size: 12px; font-weight: 700; color: var(--lime); padding: 2px 0; }

/* ---------- расходы: полоска суммы ---------- */
.gbar { height: 4px; border-radius: 3px; background: rgba(237, 234, 226, .07); margin-top: 7px; overflow: hidden; }
.gbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(209, 224, 90, .55), var(--lime)); transition: width .6s var(--xe); }

/* ---------- зарплата и бонусы в карточке ---------- */
.instr.money .mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 10px; }
.instr.money .mrow div { padding: 10px 10px 9px; border-radius: 13px; background: var(--glass2); border: 1px solid var(--line); min-width: 0; }
.instr.money .mrow b { display: block; font-size: 15px; font-weight: 700; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.instr.money .mrow span { display: block; font-size: 10.5px; color: var(--faint); margin-top: 3px; line-height: 1.25; }
.instr.money .mrow div:first-child b { color: var(--lime); }
.warnl { margin-top: 10px; font-size: 12.5px; color: var(--mist); }
.warnl b { color: var(--amber); }
.fl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 12px 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.two .fl { margin-top: 0; }
.gbtn svg:last-child:not(:first-of-type) { margin-left: 2px; }
.lnk { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--lime); text-align: left; }
/* точки в календаре: мельче, до 6 штук в два ряда по 3 */
.cd { height: 54px; gap: 5px; justify-content: flex-start; padding-top: 9px; }
.dts.g3 { display: grid; grid-template-columns: repeat(3, 5px); grid-auto-rows: 5px; gap: 3px; min-height: 5px; justify-content: center; }
.dts.g3 i { width: 5px; height: 5px; }
.dts.g3 em { grid-column: span 1; font-size: 7.5px; line-height: 5px; text-align: center; letter-spacing: -.04em; }
.mc .dts i { width: 5px; height: 5px; flex-basis: 5px; }
.dsum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dsum span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--sand); }
.dsum i { width: 8px; height: 8px; border-radius: 50%; }
.dsum b { font-weight: 800; color: var(--mist); }
.dsec h3 { display: flex; align-items: center; gap: 8px; }
.dsec h3 i { width: 8px; height: 8px; border-radius: 50%; }
.dts.g3 { display: flex; flex-wrap: wrap; width: 23px; gap: 3px; justify-content: center; align-content: flex-start; }
.dts.g3 em { flex: 0 0 auto; min-width: 5px; }
.cd.sel .dts i { box-shadow: 0 0 0 1px rgba(11, 11, 12, .3); }
.dts.g3 i { flex: 0 0 5px; }

/* ---------- кнопка «Курс» в шапке: бегущая градиентная обводка, внутри серая ---------- */
.hero { padding-right: 16px; }
.ratebtn { position: absolute; top: 12px; right: 19px; z-index: 2; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 66px; height: 44px; padding: 0 11px; border-radius: 15px; color: var(--sand); transition: transform .14s ease; }
.ratebtn:active { transform: scale(.94); }
.ratebtn > .xgm { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.ratebtn > .xgm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--gemini); animation: xGemT 7s ease-in-out infinite; will-change: transform; }
.ratebtn > .xgm::after { content: ""; position: absolute; inset: 1.5px; border-radius: 13.5px; background: #1e1e23; }
.ratebtn::after { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: 17px; background: var(--gemini); opacity: .2; filter: blur(7px); animation: xGlow 3.2s ease-in-out infinite; }
.ratebtn .rb1 { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); line-height: 1; }
.ratebtn .rb2 { font-size: 13.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
html.ovl-on .ratebtn > .xgm::before, html.ovl-on .ratebtn::after { animation-play-state: paused; }

/* ---------- конвертер ---------- */
.cvbox { padding: 14px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); }
.cvh { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mist); margin-bottom: 8px; }
.cvr { display: flex; align-items: center; gap: 10px; }
.cvr .fld.cvin { flex: 1; min-width: 0; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.cvr .fld.cvin .caret { height: 30px; }
.cvout { flex: 1; min-width: 0; font-size: 30px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.cvsw { display: flex; justify-content: center; margin: -10px 0; position: relative; z-index: 2; }
.cvsw button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 5px #111114; transition: transform .3s var(--xe); }
.cvsw button:active { transform: rotate(180deg) scale(.92); }
.cvsw svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 2.2; }
.sh-body .seg + .cvbox { margin-top: 2px; }

/* ---------- MoneyShop в карточке партнёра ---------- */
.msrate { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 13px 14px; border-radius: var(--r2); background: var(--limeD); border: 1px solid rgba(209,224,90,.35); text-align: left; }
.msrate span { display: block; font-size: 11.5px; color: var(--mist); }
.msrate b { display: block; font-size: 18px; color: var(--sand); }
.msrate em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--lime); }
.msrate em svg { width: 14px; height: 14px; stroke-width: 2.2; }
.sh-back { touch-action: none; }
.cvr .fld.cvin.on { box-shadow: none; border: 0; }
.cvbox:has(.fld.on) { border-color: rgba(209,224,90,.55); }
@media (max-width: 380px) { .hero h2 { font-size: 21px; } .ratebtn { min-width: 58px; padding: 0 9px; height: 40px; top: 10px; right: 16px; } .ratebtn .rb2 { font-size: 12.5px; } }

/* ---------- рейтинг: кольцо с живым градиентом (не кнопка — виджет) ---------- */
.rring { position: relative; flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; }
.rring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rring .trk { fill: none; stroke: rgba(237,234,226,.08); stroke-width: 3.4; }
.rring .val { fill: none; stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray .8s var(--xe); }
.rring b { position: relative; font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }
.rring.lo b { color: #ff8a8a; } .rring.mid b { color: #ffc65c; } .rring.hi b { color: var(--lime); } .rring.na b { color: var(--faint); }
.rring.lo svg { filter: drop-shadow(0 0 5px rgba(255,95,109,.45)); }
.rring.mid svg { filter: drop-shadow(0 0 5px rgba(245,165,36,.4)); }
.rring.hi svg { filter: drop-shadow(0 0 5px rgba(52,211,153,.4)); }
.rring.big { flex-basis: 76px; width: 76px; height: 76px; }
.rring.big .trk, .rring.big .val { stroke-width: 5; }
.rring.big b { font-size: 21px; }
.rtg { margin-top: 12px; padding: 14px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); }
.rtg-top { display: flex; align-items: center; gap: 14px; }
.rtg-top .lb { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.rtg-top b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 3px; }
.rtg-top b small { font-size: 13px; font-weight: 600; color: var(--mist); letter-spacing: 0; }
.rtg-top b.lo { color: #ff8a8a; } .rtg-top b.mid { color: #ffc65c; } .rtg-top b.hi { color: var(--lime); } .rtg-top b.na { color: var(--faint); }
.rtg-top em { display: block; font-style: normal; font-size: 12.5px; color: var(--mist); margin-top: 2px; }
.rcomp { margin-top: 12px; display: grid; gap: 10px; }
.rc1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; }
.rc1 b { font-size: 14px; font-weight: 800; }
.rc1 b.lo { color: #ff8a8a; } .rc1 b.mid { color: #ffc65c; } .rc1 b.hi { color: var(--lime); } .rc1 b.na { color: var(--faint); }
.rbar { height: 5px; border-radius: 3px; background: rgba(237,234,226,.07); margin: 6px 0 5px; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 3px; background-size: 200% 100%; animation: rbarMove 4s ease-in-out infinite alternate; }
.rbar.lo i { background-image: linear-gradient(90deg, #d63384, #ff5f6d, #ff9a8b); }
.rbar.mid i { background-image: linear-gradient(90deg, #fc6d3f, #f5a524, #ffd86f); }
.rbar.hi i { background-image: linear-gradient(90deg, #6fd6c9, #34d399, #dcf047); }
@keyframes rbarMove { from { background-position: 0 0; } to { background-position: 100% 0; } }
.rc2 { font-size: 12px; color: var(--mist); line-height: 1.35; }
.rsoon { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); display: grid; gap: 6px; font-size: 12px; color: var(--mist); line-height: 1.35; }
.rsoon .lb2 { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.rsoon div { position: relative; padding-left: 14px; }
.rsoon i { position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--faint); }
.rsoon b { color: var(--sand); font-weight: 700; }
html.ovl-on .rring .val { animation-play-state: paused; }
/* ---------- эффективность команды (верх «Команды») ---------- */
.eff { margin-bottom: 12px; padding: 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); animation: rise .5s var(--xe) both; }
.effr { margin-top: 12px; display: grid; gap: 4px; }
.effp { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 6px; border-radius: 14px; transition: background .2s ease, transform .14s ease; }
.effp:active { background: var(--glass2); transform: scale(.985); }
.effp .ei { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--glass2); }
.effp .ei svg { width: 16px; height: 16px; stroke: var(--lime); }
.effp .et { flex: 1; min-width: 0; }
.effp .rbar { display: block; margin: 6px 0 0; }
.effp .rbar i { display: block; }
.rc1 small { font-size: 11px; font-weight: 600; color: var(--faint); margin-left: 3px; }
.etr { flex: 0 0 auto; min-width: 42px; text-align: right; font-size: 12px; font-weight: 800; }
.etr.up { color: var(--sea); } .etr.dn { color: var(--coral); } .etr.eq, .etr.na { color: var(--faint); }
.rtg-top em .etr { min-width: 0; }
.eff .lnk { margin-top: 8px; }
.effe .rbar { margin-bottom: 8px; }
.effm { display: grid; gap: 6px; }
.effm div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 12.5px; }
.effm span { color: var(--sand); }
.effm b { font-weight: 800; text-align: right; }
.effm b.lo { color: #ff8a8a; } .effm b.mid { color: #ffc65c; } .effm b.hi { color: var(--lime); } .effm b.na { color: var(--faint); }
.effm em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--faint); }
.effs .lb2 { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.effsr + .effsr { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.effsr .rc2 { margin-top: 3px; }

/* ---------- аватарка: такая же обводка, как у кнопки «Курс» ---------- */
.hero .av { animation: none; padding: 2px; display: block; cursor: pointer; transition: transform .14s ease; }
.hero .av:active { transform: scale(.95); }
.hero .av::before { content: none; }
.hero .av::after { inset: -2px; background: var(--gemini); filter: blur(8px); opacity: .28; z-index: -2; animation: xGlow 3.2s ease-in-out infinite; }
.hero .av > .xgm { position: absolute; inset: 0; z-index: -1; border-radius: 50%; overflow: hidden; }
.hero .av > .xgm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--gemini); animation: xGemT 7s ease-in-out infinite; will-change: transform; }
.hero .av img { border: 2px solid #121214; }
html.ovl-on .hero .av > .xgm::before, html.ovl-on .hero .av::after { animation-play-state: paused; }
/* «Курс» — по центру шапки по вертикали */
.ratebtn { top: 50%; margin-top: -22px; }
@media (max-width: 380px) { .ratebtn { top: 50%; margin-top: -20px; } }

/* ---------- попап «Заменить фото?» и обрезка ---------- */
.avask { text-align: center; padding-top: 4px; }
.avask .avprev { width: 96px; height: 96px; margin: 4px auto 10px; border-radius: 50%; padding: 2px; background: var(--gemini); background-size: 300% 300%; animation: gdMove 4s ease-in-out infinite; }
.avask .avprev img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #111114; display: block; }
.avask .btns { margin-top: 14px; }
#crop { position: fixed; inset: 0; z-index: 80; background: #08080a; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safeT) + 10px) 16px calc(var(--safeB) + 16px); animation: fadeIn .2s ease both; }
#crop[hidden] { display: none; }
.cr-top { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cr-top b { font-size: 16px; }
.cr-top span { width: 64px; }
.cr-x { width: 64px; text-align: left; font-size: 14px; font-weight: 700; color: var(--mist); }
.cr-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #000; touch-action: none; user-select: none; }
.cr-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.cr-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 0 calc(100% - 1px), rgba(8,8,10,.62) 100%); }
.cr-mask::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(209,224,90,.85) inset; }
.cr-hint { margin: 14px 0 10px; font-size: 12.5px; color: var(--mist); text-align: center; max-width: 320px; }
.cr-zoom { width: min(100%, 320px); accent-color: var(--lime); }
.cr-btns { width: 100%; max-width: 360px; margin-top: auto; padding-top: 16px; }

/* ---------- «Под вашим руководством» — плитка ---------- */
.w.lw .wt { white-space: normal; line-height: 1.3; }
.lwl { display: grid; gap: 3px; margin-top: 10px; font-size: 13px; color: var(--mist); }
.lwl b { font-size: 17px; color: var(--sand); font-weight: 700; margin-right: 3px; }

/* ---------- «Созвон» — точка с живым градиентом ---------- */
i[style*="gemini"] { background-size: 300% 300% !important; animation: gdMove 3s ease-in-out infinite; box-shadow: 0 0 6px rgba(155,114,203,.55); }
@keyframes gdMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== ввод данных: страница-форма (выплата, расход, клиент) ===== */
.addbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin: 4px 0 14px; border-radius: 15px; background: var(--limeD); border: 1px dashed rgba(209,224,90,.45); color: var(--lime); font-weight: 800; font-size: 14px; transition: transform .14s ease; }
.addbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.addbtn:active { transform: scale(.98); }
#pg { position: fixed; inset: 0; z-index: 46; background: var(--ink); display: flex; flex-direction: column; animation: pgIn .32s var(--xe) both; }
#pg[hidden] { display: none; }
#pg.closing { animation: pgOut .22s ease forwards; }
@keyframes pgIn { from { transform: translateX(28px); opacity: 0; } }
@keyframes pgOut { to { transform: translateX(28px); opacity: 0; } }
.pg-top { flex: 0 0 auto; display: grid; grid-template-columns: 86px 1fr 86px; align-items: center; padding: calc(var(--safeT) + 8px) 12px 10px; border-bottom: 1px solid var(--line); background: rgba(11,11,12,.96); }
.pg-top > div { text-align: center; min-width: 0; }
.pg-top b { display: block; font-size: 16px; }
.pg-top span { display: block; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-x { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 6px 0 2px; color: var(--sand); font-weight: 700; font-size: 14px; }
.pg-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.pg-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pg-sp { height: 24px; }
html.kb-on .pg-body { padding-bottom: 300px; }
html.kb-on .pg-bot { display: none; }
.pg-bot { flex: 0 0 auto; padding: 8px 16px calc(var(--safeB) + 12px); border-top: 1px solid var(--line); background: rgba(11,11,12,.96); }
.pg-bot .btn { margin-top: 0; }
.pg-bot .btn[disabled] { opacity: .6; }
.fsec { margin: 20px 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.frow { margin-bottom: 12px; }
.frow > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--mist); margin: 0 0 6px 2px; }
.frow > label i { font-style: normal; color: var(--lime); margin-left: 3px; }
/* обязательное поле: морковная звёздочка */
.rq { font-style: normal; display: inline; margin-left: 4px; font-size: 15px; font-weight: 900; color: #ff6a3d; -webkit-text-fill-color: #ff6a3d; text-shadow: 0 0 8px rgba(255,106,61,.45); }
.frow > label i.rq { color: #ff6a3d; margin-left: 4px; }
.freq { display: flex; align-items: center; gap: 6px; margin: 2px 2px 14px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.freq .rq { margin-left: 0; }
.frow.err > label { color: var(--coral); }
.frow.err .fld { border-color: rgba(250,135,107,.7); box-shadow: 0 0 0 3px rgba(250,135,107,.12); }
.frow.err .fopts .chip { border-color: rgba(250,135,107,.55); }
.two > .frow { margin-bottom: 0; min-width: 0; }
.fopts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.fopts::-webkit-scrollbar { display: none; }
.fopts.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.fopts .chip { padding: 9px 13px; }
.frow .fopts + .fld { margin-top: 8px; }
.fhint { font-size: 11.5px; color: var(--faint); margin: 6px 2px 0; line-height: 1.35; }
.fhint.ok { color: var(--sea); }
.fhint.bad { color: var(--coral); }
.fsug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.fsug > span { font-size: 11.5px; color: var(--faint); margin-right: 2px; }
.fsug .chip { background: var(--glass2); }
.fdrop { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 18px 14px; border-radius: 18px; border: 1.5px dashed rgba(209,224,90,.5); background: linear-gradient(180deg, rgba(209,224,90,.08), rgba(209,224,90,.02)); color: var(--sand); text-align: center; transition: transform .14s ease; }
.fdrop:active { transform: scale(.985); }
.fdrop svg { width: 26px; height: 26px; stroke: var(--lime); fill: none; stroke-width: 2; margin-bottom: 2px; }
.fdrop b { font-size: 15px; }
.fdrop span { font-size: 12px; color: var(--faint); }
.ffile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--line2); }
.ffile .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--limeD); flex: 0 0 auto; }
.ffile .ic svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 1.8; }
.ffile .tx { flex: 1 1 auto; min-width: 0; }
.ffile .t1 { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ffile .t2 { font-size: 11.5px; color: var(--faint); }
.fsoon { display: flex; gap: 10px; margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: rgba(106,168,255,.08); border: 1px solid rgba(106,168,255,.22); }
.fsoon > i { flex: 0 0 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--gemini); background-size: 300% 300%; animation: gdMove 3s ease infinite; }
.fsoon b { display: block; font-size: 13px; }
.fsoon span { display: block; font-size: 12px; color: var(--mist); line-height: 1.4; margin-top: 2px; }
.fsoon.busy { position: relative; overflow: hidden; }
.fsoon.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.07) 50%, transparent 80%); transform: translateX(-100%); animation: aiSweep 1.6s ease-in-out infinite; }
@keyframes aiSweep { to { transform: translateX(100%); } }
.fsoon.done { background: rgba(111,214,201,.08); border-color: rgba(111,214,201,.25); }
.fsoon.done > i { background: var(--sea); animation: none; }
.fsoon.bad { background: rgba(250,135,107,.08); border-color: rgba(250,135,107,.28); }
.fsoon.bad > i { background: var(--coral); animation: none; }
.fsoon .lnk { margin-top: 6px; }
/* поле, заполненное из документа */
.frow.ai .fld, .frow.ai .fopts .chip.on { border-color: rgba(111,214,201,.55); box-shadow: 0 0 0 3px rgba(111,214,201,.10); }
.aitag { font-style: normal; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--sea); background: rgba(111,214,201,.12); vertical-align: 1px; }
.fbox { padding: 12px 12px 2px; margin: -2px 0 12px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--line); }
.fbox .fopts { margin: 0; padding: 0; flex-wrap: wrap; }
.fsum { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 14px; margin: 2px 0 12px; border-radius: 14px; background: var(--limeD); }
.fsum span { font-size: 12.5px; color: var(--mist); }
.fsum b { font-size: 16px; color: var(--lime); font-variant-numeric: tabular-nums; }
.fsched { margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); max-height: 260px; overflow-y: auto; }
.fsched .fsh { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--mist); margin-bottom: 6px; }
.fsched .fsh span { color: #fb923c; font-weight: 700; }
.fsched > div:not(.fsh) { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); }
.fsched > div.past { opacity: .45; }
.fsched b { font-variant-numeric: tabular-nums; }
.fwarn { padding: 13px 14px 2px; margin-bottom: 14px; border-radius: 16px; background: rgba(245,200,75,.09); border: 1px solid rgba(245,200,75,.3); }
.fwarn b { display: block; color: var(--amber); font-size: 14px; }
.fwarn span { display: block; font-size: 12.5px; color: var(--mist); margin-top: 3px; }

/* ===== производительность (29.10): те же эффекты, но на видеокарте — transform/opacity вместо перерисовки ===== */
/* точка «Созвон» и «скоро»: градиент едет внутри, а не перекрашивается каждый кадр */
i[style*="gemini"] { background: transparent !important; animation: none !important; position: relative; overflow: hidden; isolation: isolate; }
i[style*="gemini"]::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; background: var(--gemini); animation: gdMoveT 3s ease-in-out infinite; will-change: transform; }
.fsoon > i { background: transparent; animation: none; position: relative; overflow: hidden; isolation: isolate; }
.fsoon > i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; background: var(--gemini); animation: gdMoveT 3s ease-in-out infinite; will-change: transform; }
@keyframes gdMoveT { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-66.667%); } }
/* красная точка «просрочено»: пульс кольцом через scale/opacity */
.dot.r { animation: none; position: relative; }
.dot.r::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(250,135,107,.15); animation: pulseT 1.8s ease-in-out infinite; will-change: transform, opacity; }
@keyframes pulseT { 50% { transform: scale(1.5); opacity: 0; } }
/* полоски рейтинга: градиент сдвигается слоем */
.rbar i { position: relative; overflow: hidden; animation: none; background-image: none !important; }
.rbar i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; animation: rbarMoveT 4s ease-in-out infinite alternate; will-change: transform; }
.rbar.lo i::before { background-image: linear-gradient(90deg, #d63384, #ff5f6d, #ff9a8b); }
.rbar.mid i::before { background-image: linear-gradient(90deg, #fc6d3f, #f5a524, #ffd86f); }
.rbar.hi i::before { background-image: linear-gradient(90deg, #6fd6c9, #34d399, #dcf047); }
@keyframes rbarMoveT { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* размытые свечения дышат прозрачностью — держим их на отдельном слое */
.gbtn::after, .ratebtn::after, .hero .av::after { will-change: opacity; }
.gbtn > .xgm::before, .ratebtn > .xgm::before, .hero .av > .xgm::before { will-change: transform; }
/* приложение свёрнуто или под страницей ввода — анимации на паузе (вернутся с того же места) */
html.bg *, html.bg *::before, html.bg *::after { animation-play-state: paused !important; }
html.pg-on #app *, html.pg-on #app *::before, html.pg-on #app *::after, html.pg-on .ptabs * { animation-play-state: paused !important; }
/* кольцо рейтинга: дуга-маска + вращающийся градиент */
.rring .arcw { position: absolute; inset: 0; }
.rring.lo .arcw { filter: drop-shadow(0 0 5px rgba(255,95,109,.45)); }
.rring.mid .arcw { filter: drop-shadow(0 0 5px rgba(245,165,36,.4)); }
.rring.hi .arcw { filter: drop-shadow(0 0 5px rgba(52,211,153,.4)); }
.rring .arc { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.rring .arc > i { position: absolute; inset: 0; display: block; animation: spin 5s linear infinite; will-change: transform; }
.rring svg { filter: none !important; }
html.ovl-on .rring .arc > i { animation-play-state: running; }

/* операции: удержать или смахнуть влево → «Изменить» / «Удалить»; красная метка справа подсказывает жест */
.sw { position: relative; border-radius: var(--r2); overflow: hidden; }
.sw > .row { position: relative; z-index: 1; transition: transform .26s var(--xe), background .2s ease; padding-right: 18px; }
.sw::after { content: ""; position: absolute; z-index: 2; right: 5px; top: 50%; width: 3px; height: 22px; margin-top: -11px; border-radius: 3px; background: #ff5c5c; opacity: .55; transition: opacity .2s ease; pointer-events: none; }
.sw.open::after { opacity: 0; }
.sw.open > .row { transform: translateX(-164px); }
.sw-act { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 160px; display: flex; gap: 6px; padding: 4px 0 4px 6px; opacity: 0; transition: opacity .2s ease; }
.sw.open .sw-act { opacity: 1; z-index: 3; }
.sw-act button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; font-size: 11.5px; font-weight: 700; }
.sw-act button svg { width: 18px; height: 18px; stroke-width: 2; fill: none; }
.sw-e { background: var(--glass2); color: var(--sand); border: 1px solid var(--line2); }
.sw-e svg { stroke: var(--sand); }
.sw-d { background: #e5484d; color: #fff; }
.sw-d svg { stroke: #fff; }
/* свёрнутые группы: месяц / тема с итогом, раскрываются по нажатию */
details.fold { margin-top: 8px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .tx { flex: 1; min-width: 0; }
details.fold > summary .t1 { font-weight: 700; font-size: 14.5px; }
details.fold > summary .t2 { font-size: 12px; color: var(--mist); margin-top: 2px; }
details.fold > summary b { font-size: 14.5px; color: var(--sand); }
details.fold > summary svg.fa { width: 14px; height: 14px; stroke: var(--faint); stroke-width: 2; fill: none; transition: transform .2s ease; }
details.fold[open] > summary svg.fa { transform: rotate(90deg); }
details.fold > .list { padding: 0 8px 8px; }
.sw { animation: rise .5s var(--xe) both; }
.sw > .row { animation: none; }
.sw, .sw *, .cd, .cd * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cd.hold { animation: cdHold .38s var(--xe, ease) both; }
@keyframes cdHold { 0% { transform: scale(.88); } 55% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(209, 224, 90, .45); } 100% { transform: scale(1); } }
/* форма ввода (выплата, расход, клиент): не чёрный экран, а тот же фон, что в главном меню — статичный, без анимации */
#pg { background:
  linear-gradient(180deg, rgba(11,11,12,.50) 0%, rgba(11,11,12,.28) 45%, rgba(11,11,12,.06) 100%),
  radial-gradient(80vmax 60vmax at 0% 0%, rgba(150,105,40,.34) 0%, rgba(150,105,40,.12) 35%, rgba(150,105,40,0) 65%),
  radial-gradient(50vmax 45vmax at 100% 0%, rgba(249,171,0,.26) 0%, rgba(249,171,0,.09) 35%, rgba(249,171,0,0) 65%),
  radial-gradient(75vmax 75vmax at 5% 105%, rgba(66,133,244,.55) 0%, rgba(66,133,244,.22) 32%, rgba(66,133,244,0) 64%),
  radial-gradient(65vmax 65vmax at 105% 100%, rgba(217,101,112,.50) 0%, rgba(217,101,112,.2) 32%, rgba(217,101,112,0) 64%),
  radial-gradient(60vmax 60vmax at 48% 112%, rgba(155,114,203,.55) 0%, rgba(155,114,203,.22) 32%, rgba(155,114,203,0) 64%),
  #141216; }
#pg .pg-top, #pg .pg-bot { background: rgba(11,11,12,.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
#pg::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; background: url(/ys/gem-conic.webp) center / 100% 100% no-repeat; opacity: .28; z-index: -1; pointer-events: none; }

/* меню «что добавить» на дату: те же цвета, что точки и фильтры календаря */
.cadd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cadd-i { position: relative; text-align: left; padding: 12px 10px 12px 32px; border-radius: 16px; background: rgba(237, 234, 226, .04); border: 1px solid var(--line); color: var(--sand); display: flex; flex-direction: column; gap: 3px; min-height: 62px; transition: transform .14s ease, background .2s ease; }
.cadd-i:active { transform: scale(.96); background: rgba(237, 234, 226, .08); }
.cadd-i i { position: absolute; left: 12px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c) 60%, transparent); }
.cadd-i b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.cadd-i span { font-size: 11.5px; color: var(--mist); line-height: 1.25; }

/* барабан даты (как в приложении менеджеров застройщиков) */
.wheel { position: relative; display: grid; grid-template-columns: 0.8fr 1.5fr 1.05fr; height: 220px; flex: 0 0 220px; border-radius: 22px; border: 1px solid var(--line); background: rgba(237, 234, 226, 0.03); overflow: hidden; -webkit-user-select: none; user-select: none; margin: 4px 0 6px; }
.wcol { position: relative; height: 220px; perspective: 520px; }
.wscroll { height: 220px; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0, #000 38%, #000 62%, rgba(0,0,0,.15) 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0, #000 38%, #000 62%, rgba(0,0,0,.15) 100%); }
.wscroll::-webkit-scrollbar { display: none; }
.wpad { height: 88px; }
.wit { height: 44px; line-height: 44px; text-align: center; font-size: 21px; font-weight: 500; color: var(--sand); scroll-snap-align: center; transform-origin: 50% 50% -60px; backface-visibility: hidden; font-variant-numeric: tabular-nums; cursor: pointer; transition: color 0.15s ease; white-space: nowrap; }
.w-m .wit { font-size: 19px; }
.wit.on { color: var(--lime); font-weight: 600; }
.wband { position: absolute; left: 8px; right: 8px; top: 88px; height: 44px; border-radius: 12px; background: rgba(209, 224, 90, 0.09); border: 1px solid rgba(209, 224, 90, 0.28); pointer-events: none; }
.bwv { min-height: 20px; font-size: 14px; color: var(--mist); margin: 2px 2px 4px; }

/* точки после переключения фильтра — мягко появляются, сетка на месте */
.dts.fresh i { animation: dotIn .28s ease both; }
@keyframes dotIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* умная строка проекта: застройщик серым рядом с проектом */
.chip .cdev { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 6px; font-size: 11px; }
.fsug.one { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
.fsug.one::-webkit-scrollbar { display: none; }
.fsug.one .chip, .fsug.one > span { flex: 0 0 auto; }

/* дата в формах: кнопка-поле + календарик; комиссия — выпадающий список */
.fld.dsel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.fld.dsel .dic { width: 18px; height: 18px; flex: 0 0 18px; stroke: var(--mist); fill: none; stroke-width: 1.7; }
.fld.dsel .ddar { font-style: normal; color: var(--mist); font-size: 12px; }
.frow .fld.dsel + .fsug { margin-top: 6px; }
.ddl { margin-top: 6px; max-height: 232px; overflow-y: auto; border-radius: 15px; border: 1px solid var(--line); background: #141417; display: flex; flex-direction: column; scrollbar-width: none; animation: fadeIn .18s ease both; }
.ddl::-webkit-scrollbar { display: none; }
.ddl button { text-align: left; padding: 11px 14px; font-size: 15px; color: var(--sand); border-bottom: 1px solid var(--line); }
.ddl button:last-child { border-bottom: 0; color: var(--mist); }
.ddl button.on { color: var(--lime); font-weight: 700; }
#dp { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
#dp[hidden] { display: none; }
.dp-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fadeIn .2s ease both; }
.dp-card { position: relative; width: 100%; max-width: 520px; background: #111114; border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 16px 16px calc(16px + var(--safeB)); animation: pgIn .28s var(--xe) both; }
.dp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-h b { font-size: 17px; }
.dp-w, .dp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-w span { font-size: 11px; color: var(--faint); text-transform: uppercase; padding: 4px 0; }
.dp-d { height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--sand); border: 1px solid transparent; transition: background .2s ease, transform .14s ease; }
.dp-d:active { transform: scale(.92); }
.dp-d.td { border-color: rgba(209,224,90,.55); color: var(--lime); }
.dp-d.sel { background: var(--lime); color: var(--ink); }
.dp-card .btns { margin-top: 12px; }

/* ===== Движение: всё выезжает снизу и уезжает вниз, без резких появлений ===== */
#pg { animation: pgUp .42s var(--xe) both; }
#pg.closing { animation: pgDown .3s cubic-bezier(.4,0,1,1) forwards; }
@keyframes pgUp { from { transform: translateY(100%); } }
@keyframes pgDown { to { transform: translateY(100%); } }
.sheet.closing .sh-card { animation: sheetOut .28s cubic-bezier(.4,0,1,1) forwards; }
.xkb.out { animation: kbDown .2s ease forwards; }
@keyframes kbDown { to { transform: translateY(100%); } }
.viewer { animation: pgUp .4s var(--xe) both; }
.viewer.out { animation: pgDown .28s cubic-bezier(.4,0,1,1) forwards; }
#crop { animation: pgUp .38s var(--xe) both; }
#crop.out { animation: pgDown .26s cubic-bezier(.4,0,1,1) forwards; }
.dp-card { animation: sheetIn .38s var(--xe) both; }
#dp.out .dp-card { animation: sheetOut .24s cubic-bezier(.4,0,1,1) forwards; }
#dp.out .dp-bg { animation: fadeOut .24s ease forwards; }
.ddl { transform-origin: 50% 0; animation: ddIn .22s var(--xe) both; }
@keyframes ddIn { from { opacity: 0; transform: scaleY(.6) translateY(-6px); } }

/* ===== Фон всплывающих окон: тот же статичный градиент, что у формы ввода (без анимации и без тяжёлой картинки) ===== */
:root { --popbg:
  linear-gradient(180deg, rgba(11,11,12,.58) 0%, rgba(11,11,12,.34) 45%, rgba(11,11,12,.12) 100%),
  radial-gradient(80vmax 60vmax at 0% 0%, rgba(150,105,40,.30) 0%, rgba(150,105,40,.10) 35%, rgba(150,105,40,0) 65%),
  radial-gradient(50vmax 45vmax at 100% 0%, rgba(249,171,0,.22) 0%, rgba(249,171,0,.08) 35%, rgba(249,171,0,0) 65%),
  radial-gradient(75vmax 75vmax at 5% 105%, rgba(66,133,244,.48) 0%, rgba(66,133,244,.18) 32%, rgba(66,133,244,0) 64%),
  radial-gradient(65vmax 65vmax at 105% 100%, rgba(217,101,112,.44) 0%, rgba(217,101,112,.16) 32%, rgba(217,101,112,0) 64%),
  radial-gradient(60vmax 60vmax at 48% 112%, rgba(155,114,203,.48) 0%, rgba(155,114,203,.18) 32%, rgba(155,114,203,0) 64%),
  #141216; }
.sh-card, .dp-card { background: var(--popbg); }
.sh-top { background: rgba(17,15,19,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.viewer, #crop { background: var(--popbg); }
.ddl { background: rgba(14,13,17,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* мессенджер клиента: значок + название */
.mico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px; margin-right: 10px; vertical-align: middle; }
.mico svg { width: 14px; height: 14px; fill: #fff; }
.mico b { color: #fff; font-size: 12px; font-weight: 800; }
.mval { display: inline-flex; align-items: center; }
.ddl .mrow { display: flex; align-items: center; }
.csug { margin-top: 10px; }
.frow .fhint .lnk { padding: 0; }

/* следующий контакт: значок действия, галочка «точное время», барабан часов */
.aico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(209,224,90,.12); margin-right: 10px; flex: 0 0 24px; }
.aico svg { width: 14px; height: 14px; stroke: var(--lime); fill: none; stroke-width: 2; }
.tgl { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--sand); }
.tgl i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: background .2s ease, border-color .2s ease; }
.tgl.on i { background: var(--lime); border-color: var(--lime); }
.tgl.on i::after { content: ""; width: 9px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.tgl + .wheel { margin-top: 10px; animation: ddIn .24s var(--xe) both; }
.wheel.tw { grid-template-columns: 1fr 1fr; max-width: 240px; }
.wheel.tw .twc { position: absolute; left: 50%; top: 88px; height: 44px; line-height: 44px; transform: translateX(-50%); color: var(--lime); font-size: 21px; pointer-events: none; }

/* «О чём встреча»: поле на пару строк + темы чипами */
.fld.ml.ml2 { min-height: 64px; }
.fsug .chip.on { background: var(--lime); color: var(--ink); }
.fhint .lnk, .fhint a.lnk { display: inline; padding: 0; margin: 0; font-size: inherit; }
/* свои даты платежей рассрочки */
.csrow { display: grid; grid-template-columns: 22px 1fr 1fr 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.csrow .csn { font-size: 12px; font-weight: 800; color: var(--faint); text-align: center; }
.csrow .fld { margin: 0; min-width: 0; }
.csrow .csx { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mist); font-size: 17px; line-height: 1; }
.csrow:not(:has(.csx)) { grid-template-columns: 22px 1fr 1fr; }
/* выбор сделки и карточка сделки в формах */
.dpk { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text, #fff); }
.dpi b { font-size: 14px; font-weight: 700; }
.dpi span { font-size: 12px; color: var(--mist); }
.dpi.on { border-color: var(--lime); background: var(--limeD); box-shadow: 0 0 0 3px rgba(209,224,90,.10); }
.dpi.on b::after { content: " ✓"; color: var(--lime); }
.fcard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fcard span { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.fcard b { display: block; font-size: 14px; margin-top: 2px; }

/* ---------- Контент: отправка клиенту (чекбоксы) ---------- */
.cell .ck, .dlm .ck { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--line2); background: var(--glass2); display: grid; place-items: center; transition: background .2s ease, border-color .2s ease, transform .14s ease; }
.cell .ck:active, .dlm .ck:active { transform: scale(.88); }
.cell .ck i, .dlm .ck i { width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--xe); }
.cell .ck.on, .dlm .ck.on { background: var(--lime); border-color: var(--lime); }
.cell .ck.on i, .dlm .ck.on i { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.chint { margin: 10px 2px 0; }
/* строка-журнал «Контента»: живая переливающаяся обводка, как у .gbtn */
.csbar { position: sticky; top: calc(var(--safeT) + 6px); z-index: 30; isolation: isolate; margin: 0 0 14px; border-radius: var(--r2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.csbar > .xgm { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.csbar > .xgm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--gemini); animation: xGemT 7s ease-in-out infinite; will-change: transform; }
.csbar > .xgm::after { content: ""; position: absolute; inset: 1.5px; border-radius: calc(var(--r2) - 1.5px); background: rgba(18,18,22,.95); transition: background .3s ease; }
.csbar::after { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: calc(var(--r2) + 2px); background: var(--gemini); opacity: .3; filter: blur(10px); animation: xGlow 3.2s ease-in-out infinite; pointer-events: none; }
.csbar.on > .xgm::after { background: rgba(26,27,22,.96); }
.csbar.on > .xgm::before { animation-duration: 3.5s; }
.csin { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.csbar .lgi { flex: 0 0 26px; display: grid; place-items: center; margin-left: 2px; pointer-events: none; }
.csbar .lgi svg { width: 24px; height: 24px; stroke: var(--lime); stroke-width: 2; fill: none; }
.csbar .lgi.n { font-size: 24px; font-weight: 800; color: var(--lime); line-height: 1; }
.csbar .cs-tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.csbar .cs-tx b { font-size: 14.5px; font-weight: 700; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csbar.on .cs-tx b { color: var(--lime); }
.csbar .cs-tx span { font-size: 12.5px; color: rgba(236,228,214,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csbar .cs-tx u { text-decoration: underline; text-underline-offset: 2px; color: var(--sand); }
.csbar .cs-lg { animation: fadeIn .3s ease both; }
.csbar .cs-all { flex: 0 0 auto; height: 38px; padding: 0 12px; border-radius: 13px; background: var(--glass2); border: 1px solid var(--line2); color: var(--sand); font-weight: 700; font-size: 13px; }
.csbar .cs-b { flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--lime); display: grid; place-items: center; }
.csbar .cs-b svg { width: 19px; height: 19px; stroke: var(--ink); }
.csbar .cs-x { flex: 0 0 30px; height: 42px; color: var(--sand); font-size: 15px; opacity: .65; }
.cspv { margin-top: 12px; padding: 14px; border-radius: var(--r2); background: var(--glass2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--sand); word-break: break-word; }
.btns.col { flex-direction: column; gap: 0; }

/* ---------- Ссылки от застройщиков ---------- */
.dladd { display: flex; gap: 8px; margin-top: 14px; }
.dladd input, .dlsrch input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 15px; background: var(--glass2); border: 1px solid var(--line2); color: var(--sand); font: inherit; font-size: 15px; outline: none; -webkit-user-select: text; user-select: text; }
.dladd input:focus, .dlsrch input:focus { border-color: var(--lime); }
.dladd .btn { width: auto; flex: 0 0 auto; margin-top: 0; height: 48px; }
.dlres { margin-top: 10px; padding: 12px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); display: grid; gap: 8px; animation: fadeIn .2s ease both; }
.dlres .lb2 { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.dlres .btn[disabled] { opacity: .45; }
.dlv { margin-top: 8px; padding: 12px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line); }
.dlv.fresh { border-color: rgba(245,196,66,.55); box-shadow: 0 0 0 1px rgba(245,196,66,.18) inset; }
.dlm { display: flex; align-items: center; gap: 8px; }
.dlm .tx { flex: 1 1 0; width: 0; min-width: 0; display: block; text-align: left; }
.dlm .t1 { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 7px; }
.dlm .t2 { font-size: 13px; color: var(--sand); opacity: .82; margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dlm .t3 { font-size: 11.5px; color: var(--faint); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm .acts { display: flex; gap: 5px; flex: 0 0 auto; }
.dlm .ib { width: 38px; height: 38px; border-radius: 12px; }
.dlm .ib svg { width: 16px; height: 16px; }
.dlx { margin-top: 8px; display: grid; gap: 6px; }
.ydot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #f5c442; box-shadow: 0 0 0 3px rgba(245,196,66,.2); display: inline-block; animation: breathe 2.4s ease-in-out infinite; }
.row .t1 .ydot { margin-right: 7px; vertical-align: 1px; }
.dlnew { color: #f5c442; font-weight: 700; }
.dlr { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.dlr .tx { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; display: block; text-align: left; }
.dlr .acts { flex: 0 0 auto; }
.dlr .t1 { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlr .t2 { font-size: 11.5px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlr .acts { display: flex; gap: 5px; }
.dlr .ib { width: 34px; height: 34px; border-radius: 11px; }
.dlr .ib svg { width: 15px; height: 15px; }

/* затемнение контента под нижним меню: плавный градиент снизу, клики проходят насквозь */
body:has(#nav:not([hidden]))::after { content: ""; position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; height: calc(var(--navH) + var(--safeB) + 70px); pointer-events: none; background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,.55) 38%, rgba(10,10,12,.88) 72%, rgba(10,10,12,.96) 100%); }
html.kb-on body::after { display: none; }

/* «Ссылки от застройщиков»: поиск + кнопка добавления, выбор нескольких застройщиков */
.dlsrch { display: flex; gap: 8px; margin-top: 6px; }
.dlsrch input { -webkit-appearance: none; appearance: none; }
.dlsrch .btn { width: auto; flex: 0 0 auto; margin-top: 0; height: 48px; padding: 0 14px; }
.dlsrch .dladdb.on { border-color: var(--lime); color: var(--lime); }
.dlv.sel { border-color: rgba(209,224,90,.5); }
.dlbar { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 58px; box-sizing: border-box; padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(22,22,26,.97); border: 1px solid var(--line2); transition: background .2s ease, border-color .2s ease; }
.dlbar.on { background: rgba(30,32,22,.97); border-color: rgba(209,224,90,.55); box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.dlbar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: rgba(236,228,214,.55); }
.dlbar b { flex: 1; font-size: 14.5px; color: var(--lime); }
.dlbar .cs-b { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; }
.dlbar .cs-b svg { width: 18px; height: 18px; stroke: var(--ink); }
.dlbar .cs-x { flex: 0 0 30px; height: 40px; color: var(--sand); opacity: .65; }
/* строка-журнал: когда прилипла к верху — под ней мягкое затемнение, контент уходит «под» неё */
.csbar::before { content: ""; position: absolute; z-index: -3; left: -18px; right: -18px; top: calc(-1 * (var(--safeT) + 6px)); bottom: -46px; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,12,.95) 0%, rgba(10,10,12,.88) 55%, rgba(10,10,12,0) 100%); opacity: 0; transition: opacity .25s ease; }
.csbar.stuck::before { opacity: 1; }

/* шапка шторки с заголовком + шторка во всю высоту (не меняет размер от содержимого и клавиатуры) */
.sh-ttl { flex: 1 1 0; min-width: 0; padding: 2px 10px 0 4px; display: flex; flex-direction: column; gap: 3px; }
.sh-ttl b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-ttl small { font-size: 12.5px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-ttl i { font-style: normal; }
.sh-ttl:empty { display: none; }
.sh-card.full { top: calc(var(--safeT) + 10px); max-height: none; }
.sh-card.full .sh-top { padding-top: 18px; padding-bottom: 10px; }
.dlqw { position: relative; flex: 1; min-width: 0; display: flex; }
.dlqw input { flex: 1; min-width: 0; padding-right: 44px; }
.dlqx { position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 11px; display: none; place-items: center; color: var(--sand); background: var(--glass2); font-size: 14px; }
.dlqw.has .dlqx { display: grid; }
/* строка-журнал: при открытой шторке прячем (иначе её цветная рамка торчит над шторкой, обрезанная);
   при прокрутке — отдельный слой без backdrop-filter, чтобы не мерцала и не дёргалась на iPhone */
.csbar { -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity .25s ease; }
body:has(#sheet:not([hidden])) .csbar { opacity: 0; pointer-events: none; }
/* панель выбора прилипает под шапкой, только когда что-то отмечено; уходит ПОД шапку, а не поверх */
#dlBarW:has(.dlbar.on) { position: sticky; top: var(--shTopH, 76px); z-index: 1; }
/* «+ Ссылка»: строка вставки плавно выезжает (сворачивание по высоте + прозрачность) */
.dladdw { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-6px); transition: grid-template-rows .38s var(--xe), opacity .28s ease, transform .38s var(--xe); }
.dladdw > div { overflow: hidden; min-height: 0; }
.dladdw.open { grid-template-rows: 1fr; opacity: 1; transform: none; }
.dladdw .dladd { margin-top: 10px; }
.dlres, #dlRes .fhint { animation: stepIn .32s var(--xe) both; }

/* ===== Тень-градиент у каждой грани, за которую уезжает прокрутка (шапки и нижние панели) ===== */
/* без «резинки» при оттягивании вниз: на iPhone она размывала строку-журнал и её обводку */
html, body { overscroll-behavior-y: none; }
/* шторки: под шапкой */
.sh-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; background: linear-gradient(180deg, rgba(17,17,20,.92), rgba(17,17,20,0)); }
.sh-card.full .sh-top::after { height: 26px; }
/* полноэкранные страницы (формы, карточки): под шапкой и над нижней кнопкой */
.pg-top, .pg-bot, .vw-top { position: relative; z-index: 2; }
.pg-top::after, .vw-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; background: linear-gradient(180deg, rgba(11,11,12,.9), rgba(11,11,12,0)); }
.pg-bot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; pointer-events: none; background: linear-gradient(0deg, rgba(11,11,12,.9), rgba(11,11,12,0)); }
/* главный экран: верхний край (под шапкой Telegram), если нет строки-журнала со своей тенью */
body:not(:has(#csbar)):has(#nav:not([hidden]))::before { content: ""; position: fixed; z-index: 19; left: 0; right: 0; top: 0; height: calc(var(--safeT) + 18px); pointer-events: none; background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,0)); }
html.kb-on body::before { display: none; }
/* внутренние списки с прокруткой (выпадашки, расписание, календарь): мягкое затухание у краёв */
.ddl, .fsched, .wscroll ~ .ddl { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%); }

/* ===== Шапки поверх градиента: полупрозрачные с размытием (градиент просвечивает), тень под ними — тонированная, не чёрная ===== */
.sh-top { background: rgba(20,17,24,.58); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.sh-top::after { background: linear-gradient(180deg, rgba(14,12,18,.55), rgba(14,12,18,0)); }
.pg-top, .vw-top, .pg-bot { background: rgba(16,14,20,.55); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-color: rgba(255,255,255,.06); }
.pg-top::after, .vw-top::after { background: linear-gradient(180deg, rgba(12,11,16,.5), rgba(12,11,16,0)); }
.pg-bot::before { background: linear-gradient(0deg, rgba(12,11,16,.5), rgba(12,11,16,0)); }
/* верх главного экрана и тень строки-журнала — легче, чтобы живой градиент был виден под часами */
body:not(:has(#csbar)):has(#nav:not([hidden]))::before { background: linear-gradient(180deg, rgba(10,10,12,.5), rgba(10,10,12,0)); }
.csbar::before { background: linear-gradient(180deg, rgba(10,10,12,.65) 0%, rgba(10,10,12,.8) calc(100% - 46px), rgba(10,10,12,0) 100%); }
/* строка-журнал всегда одной высоты (как в режиме «Отмечено»), шейп не меняется при переключении */
.csin { height: 62px; box-sizing: border-box; }
.csbar .cs-all { height: 42px; }

/* ---------- Деньги: общий период (01.11) ---------- */
.perbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.perbar > i { width: 40px; flex: 0 0 40px; }
.perbar .pnav { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--sand); transition: transform .14s ease; }
.perbar .pnav:active { transform: scale(.9); }
.perbar .pnav svg { width: 18px; height: 18px; stroke-width: 2.2; }
.perbar .pnav.nx svg { transform: scaleX(-1); }
.perbar .plab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.perbar .plab b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.perbar .pnow { font-size: 11.5px; font-weight: 700; color: var(--lime); }

/* сервисы и подписки у Юли (01.11) — строка раскрывается, красное = ждёт оплаты / просрочено */
details.srow > summary { list-style: none; cursor: pointer; }
details.srow > summary::-webkit-details-marker { display: none; }
details.srow[open] > summary { border-color: rgba(209,224,90,.32); background: rgba(24,24,28,.72); }
details.srow > summary.bad { border-color: rgba(250,135,107,.42); background: rgba(250,135,107,.07); }
details.srow > .kv { margin: 6px 0 0; animation: rise .35s var(--xe) both; }
details.srow > .note { padding: 0 4px 4px; }
details.srow > summary .t2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .t2 .sst, .kv b.bad { color: var(--coral); font-weight: 700; }

/* Полоса прокрутки нигде не видна. На iPhone режим touch мешает её скрыть, плавная прокрутка там работает и без него. */
*, *::before, *::after { -webkit-overflow-scrolling: auto !important; scrollbar-width: none !important; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; background: transparent; }
