/* pc-rt.css — кабинет партнёра: заставка, аватарка, обрезка фото и бегунок меню как в Рефкоманде.
   Логика и вид перенесены из rt.css (referral-managers-app), чтобы оба кабинета выглядели одинаково. */
:root {
  --rt-bg: #0b0b0c; --rt-pop: #111114; --rt-tx: #edeae2; --rt-mist: rgba(237,234,226,.58);
  --rt-line: rgba(237,234,226,.1); --rt-line2: rgba(237,234,226,.17);
  --rt-lime: #d1e05a;
  --rt-navbg: rgba(16,16,19,.88); --rt-fade: 11,11,12;
  --rt-gem: linear-gradient(-45deg, #1a73e8, #4285f4, #7b6ad0, #9b72cb, #c76a9e, #d96570, #e28a45, #f9ab00, #d96570, #9b72cb, #4285f4);
  --rt-gm: conic-gradient(from 0deg, #4285f4, #24c1e0, #9b72cb, #d96570, #f06cb4, #9b72cb, #4285f4);
  --rt-e: cubic-bezier(.22,1,.36,1);
  --rt-safeT: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --rt-safeB: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
html.light {
  --rt-bg: #f3f3f0; --rt-pop: #fff; --rt-tx: #141416; --rt-mist: rgba(20,20,22,.62);
  --rt-line: rgba(20,20,22,.1); --rt-line2: rgba(20,20,22,.18);
  --rt-navbg: rgba(255,255,255,.92); --rt-fade: 243,243,240;
}

/* ---------- заставка ---------- */
html.rt-spl .card { visibility: hidden; }
.rt-splash { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: transparent; transition: opacity .55s ease, transform .55s ease; color: var(--rt-tx); font-family: var(--f-ui, "Tilda Sans", system-ui, sans-serif); }
.rt-splash[hidden] { display: none; }
.rt-splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.rt-sp-ring { position: relative; isolation: isolate; width: 128px; height: 128px; border-radius: 50%; padding: 3px; margin-bottom: 26px; animation: rtPop .9s cubic-bezier(.2,.9,.2,1.2) both, rtPulse 3s ease-in-out .9s infinite; }
.rt-sp-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--rt-gm); animation: rtSpin 3.2s linear infinite; }
.rt-sp-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--rt-gm); filter: blur(16px); opacity: .75; z-index: -1; animation: rtSpin 3.2s linear infinite; }
.rt-sp-ring .rt-face { position: relative; width: 100%; height: 100%; border: 3px solid var(--rt-bg); font-size: 38px; }
.rt-sp-hello { font-size: 28px; font-weight: 700; letter-spacing: -.02em; text-align: center; min-height: 40px; }
.rt-sp-hello span { display: inline-block; opacity: 0; transform: translateY(14px); animation: rtWord .55s var(--rt-e) forwards; }
.rt-sp-hello em { font-style: normal; background: var(--rt-gem); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; opacity: 0; transform: translateY(14px); animation: rtWord .55s var(--rt-e) forwards, rtGrad 4s linear infinite; }
.rt-sp-step { margin-top: 12px; height: 20px; color: var(--rt-mist); font-size: 14px; overflow: hidden; text-align: center; }
.rt-sp-step span { display: inline-block; animation: rtStep .35s ease both; }
html:not(.fonts) .rt-sp-hello, html:not(.fonts) .rt-sp-step { visibility: hidden; }
.rt-sp-bar { margin-top: 16px; width: 180px; height: 3px; border-radius: 3px; background: var(--rt-line); overflow: hidden; }
.rt-sp-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--rt-lime); transition: width .4s ease; }
@keyframes rtSpin { to { transform: rotate(360deg); } }
@keyframes rtPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes rtPop { from { opacity: 0; transform: scale(.6); } }
@keyframes rtWord { to { opacity: 1; transform: none; } }
@keyframes rtGrad { to { background-position: 300% 0; } }
@keyframes rtStep { from { opacity: 0; transform: translateY(10px); } }
@keyframes rtGemT { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-75%); } }
@keyframes rtGlow { 0%,100% { opacity: .22; } 50% { opacity: .42; } }
@keyframes rtSq { 0% { transform: none; } 35% { transform: scaleX(1.28) scaleY(.9); } 70% { transform: scaleX(.96) scaleY(1.03); } 100% { transform: none; } }
@keyframes rtIn { from { opacity: 0; } }

/* ---------- аватарка ---------- */
.rt-av { position: relative; isolation: isolate; flex: 0 0 74px; width: 74px; height: 74px; border: 0; border-radius: 50%; padding: 2px; display: block; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s ease; }
.rt-av:active { transform: scale(.95); }
.rt-av::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--rt-gem); filter: blur(8px); opacity: .28; z-index: -2; animation: rtGlow 3.2s ease-in-out infinite; }
.rt-av > i { position: absolute; inset: 0; z-index: -1; border-radius: 50%; overflow: hidden; }
.rt-av > i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--rt-gem); animation: rtGemT 7s ease-in-out infinite; will-change: transform; }
.rt-face { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 2px solid #121214; background: linear-gradient(135deg, #2a2a33, #16161b); color: #edeae2; font-family: var(--f-ui, "Tilda Sans", system-ui, sans-serif); font-weight: 700; font-size: 24px; line-height: 1; }
.rt-face img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-select: none; user-select: none; }
.rt-plus { position: absolute; right: 3.2px; bottom: 3.2px; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; background: var(--rt-lime); color: #0b0b0c; display: flex; align-items: center; justify-content: center; border: 1px solid #121214; }
.rt-plus svg { width: 13px; height: 13px; stroke-width: 1.6; }

.rt-prof { text-align: center; padding: 4px 0 8px; }
.rt-prof .rt-av { width: 104px; height: 104px; margin: 0 auto 9px; flex: none; }
.rt-prof .rt-face { font-size: 34px; }
.rt-prof h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--rt-tx); }
.rt-lnk { display: block; margin: 10px auto 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--rt-mist); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.todoit.tap { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.todoit.tap:active { opacity: .7; }
html.cab .toast { z-index: 90; bottom: calc(var(--rt-safeB) + 96px); }

/* ---------- обрезка фото ---------- */
#rtCrop { position: fixed; inset: 0; z-index: 80; background: #08080a; color: #edeae2; display: flex; flex-direction: column; align-items: center; padding: calc(var(--rt-safeT) + 10px) 16px calc(var(--rt-safeB) + 16px); font-family: var(--f-ui, "Tilda Sans", system-ui, sans-serif); animation: rtIn .22s ease both; }
#rtCrop[hidden] { display: none; }
.rt-crt { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.rt-crs { position: relative; width: min(100%, 360px); aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #000; touch-action: none; -webkit-user-select: none; user-select: none; }
.rt-crs img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.rt-crm { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 0 calc(100% - 1px), rgba(8,8,10,.62) 100%); }
.rt-crm::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(209,224,90,.85) inset; }
.rt-crh { margin: 14px 0 10px; font-size: 12.5px; color: rgba(237,234,226,.56); text-align: center; max-width: 320px; }
.rt-crz { width: min(100%, 320px); accent-color: #d1e05a; }
.rt-btns { display: grid; gap: 7px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: 100%; max-width: 360px; margin-top: auto; padding-top: 16px; }
.rt-btn { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 15px; background: var(--rt-lime); color: #0b0b0c; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s ease; }
.rt-btn:active { transform: scale(.975); }
.rt-btn.ghost { background: rgba(237,234,226,.1); color: #edeae2; border: 1px solid rgba(237,234,226,.16); }

/* ---------- полный экран, как в Рефкоманде ---------- */
html.cab .card, html.cab.in-tg .card { position: fixed; left: 0; right: 0; top: 0; width: 100%; height: var(--tgh, 100dvh); padding: 0; overflow: hidden; }
html.cab .scene { position: absolute; inset: 0; display: block; padding: 0; }
html.cab .scene .body.top { position: absolute; inset: 0; padding: calc(var(--rt-safeT) + 8px) max(14px, calc((100% - 620px) / 2)) calc(var(--rt-safeB) + 104px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
html.cab .scene .body.top::-webkit-scrollbar { display: none; }
html.cab .scene .body.swap { animation: none; }
html.cab .scene .body.swap > :not(.head) { animation: swapIn .2s ease-out both; }
.pc-edge { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 4; }
.pc-edge.t { top: 0; height: calc(var(--rt-safeT) + 30px); background: linear-gradient(180deg, rgba(var(--rt-fade),.96) 0%, rgba(var(--rt-fade),.82) 55%, rgba(var(--rt-fade),0) 100%); opacity: var(--rtf, 0); transition: opacity .18s linear; }
.pc-edge.b { bottom: 0; height: calc(var(--rt-safeB) + 112px); background: linear-gradient(0deg, rgba(var(--rt-fade),.94) 0%, rgba(var(--rt-fade),.72) 52%, rgba(var(--rt-fade),0) 100%); }

/* ---------- плавающее меню и бегунок: перетекает с вкладки на вкладку ---------- */
.ptabs { position: relative; --i: 0; }
html.cab .ptabs { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: calc(var(--rt-safeB) + 10px); max-width: 616px; margin: 0 auto; padding: 6px; border-radius: 25px; background: var(--rt-navbg); border: 1px solid var(--rt-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.8); }
.pind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px - 8px) / 5); pointer-events: none; transform: translateX(calc(var(--i) * (100% + 2px))); transition: transform .52s cubic-bezier(.34,1.3,.44,1); will-change: transform; }
.pind::before { content: ""; position: absolute; inset: 0; border-radius: 19px; background: var(--lime, #d1e05a); box-shadow: 0 6px 18px -8px rgba(209,224,90,.7); }
.ptabs.mv .pind::before { animation: rtSq .52s cubic-bezier(.3,.7,.4,1); }
.ptab { z-index: 1; padding: 8px 0 7px; border-radius: 19px; }
.ptab.on { background: none; }

/* ---------- «Получить ссылку»: шапка карточки стоит, ссылка выезжает ---------- */
.prod { gap: 0; }
.prodtop > .prodact { flex: 0 0 auto; display: grid; justify-items: end; align-items: center; }
.prodact > * { grid-area: 1 / 1; transition: opacity .24s ease, transform .3s var(--rt-e), visibility 0s linear 0s; }
.prodact > .prodx { opacity: 0; visibility: hidden; transform: scale(.7); transition: opacity .24s ease, transform .3s var(--rt-e), visibility 0s linear .24s; }
.prodact.got > .act { opacity: 0; visibility: hidden; transform: scale(.92); transition: opacity .2s ease, transform .3s var(--rt-e), visibility 0s linear .2s; }
.prodact.got > .prodx { opacity: 1; visibility: visible; transform: none; transition: opacity .24s ease .08s, transform .3s var(--rt-e) .08s, visibility 0s linear 0s; }
.linkwrap { display: flow-root; }
.linkwrap > .linkcard { margin: 10px 0 0; animation: none; }

/* ---------- клиенты: фильтры ---------- */
.cfbar { display: flex; gap: 6px; margin: 0 -14px; padding: 2px 14px; overflow-x: auto; scrollbar-width: none; }
.cfbar::-webkit-scrollbar { display: none; }
.cf { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--rt-line); border-radius: 17px; background: var(--rt-glass, rgba(14,14,16,.5)); color: var(--rt-mist); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s ease, color .2s ease; }
.cf b { font-weight: 700; opacity: .7; }
.cf.on { background: var(--rt-lime); border-color: transparent; color: #0b0b0c; }
.lhead { cursor: pointer; }
.lmore { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--rt-mist); }
.lmore::after { content: "›"; margin-left: 5px; font-size: 15px; }

/* ---------- карточка клиента ---------- */
.csh { position: fixed; inset: 0; z-index: 75; }
.cshov { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s ease; }
.csh.on .cshov { opacity: 1; }
.cshbox { position: absolute; left: 0; right: 0; bottom: 0; max-width: 620px; max-height: calc(var(--tgh, 100dvh) - var(--rt-safeT) - 12px); margin: 0 auto; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--rt-pop); border-top: 1px solid var(--rt-line2); color: var(--rt-tx); font-family: var(--f-ui, "Tilda Sans", system-ui, sans-serif); transform: translateY(102%); transition: transform .36s var(--rt-e); }
.csh.on .cshbox { transform: none; }
.cshgrab { flex: 0 0 auto; width: 38px; height: 4px; margin: 9px auto 0; border-radius: 2px; background: var(--rt-line2); }
.cshx { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--rt-line); color: var(--rt-mist); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cshx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cshbody { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 18px calc(var(--rt-safeB) + 22px); }
.cshtop { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-right: 40px; }
.cshtop .lname { font-size: 19px; font-weight: 700; line-height: 1.2; }
.cfix { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(209,224,90,.12); border: 1px solid rgba(209,224,90,.3); font-size: 13px; font-weight: 600; }
.cfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cfacts div { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--rt-line); }
.cfacts span { display: block; font-size: 11px; color: var(--rt-mist); }
.cfacts b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; }
.cnext { margin-top: 8px; padding: 11px 12px; border-radius: 14px; background: var(--rt-line); font-size: 13.5px; line-height: 1.4; }
.cnext span { display: block; margin-bottom: 2px; font-size: 11px; color: var(--rt-mist); }
.csec { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rt-mist); }
.fn { list-style: none; margin: 0; padding: 0; }
.fn li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.fn li:last-child { padding-bottom: 0; }
.fn li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: var(--rt-line2); }
.fn li:last-child::before { display: none; }
.fn li.fdone::before { background: var(--rt-lime); }
.fn i { position: relative; z-index: 1; flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--rt-line2); background: var(--rt-pop); }
.fn li.fdone i { background: var(--rt-lime); border-color: var(--rt-lime); }
.fn li.fcur i { border-color: var(--rt-lime); box-shadow: 0 0 0 4px rgba(209,224,90,.2); }
.fn div { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 10px; }
.fn b { font-size: 13.5px; font-weight: 600; }
.fn span { flex: 0 0 auto; font-size: 12px; color: var(--rt-mist); }
.fn li.fwait b { color: var(--rt-mist); font-weight: 500; }
.fn li.fcur b { font-weight: 700; }
.cacts { list-style: none; margin: 0; padding: 0; }
.cacts li { padding: 8px 0; border-top: 1px solid var(--rt-line); font-size: 13.5px; line-height: 1.35; }
.cacts li:first-child { border-top: 0; }
.cacts li.key { font-weight: 600; }
.cacts time { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 400; color: var(--rt-mist); }
.cacts small { display: block; margin-top: 2px; font-size: 12px; color: var(--rt-mist); }

/* Подпись шапки стоит посередине между кнопками Telegram и аватаркой. Аватарка на месте. */
html.cab .head.cab .eyebrow { position: relative; top: -6px; }

/* ---------- Главная: шапка с кольцом, лог, знания, результат (вид как в Рефкоманде, компактнее) ---------- */
:root { --rt-glass: rgba(14,14,16,.6); --rt-faint: rgba(237,234,226,.36); --rt-acc: #d1e05a; --rt-limeD: rgba(209,224,90,.13); --rt-amber: #f5c84b; --rt-coral: #fa876b; }
html.light { --rt-glass: rgba(255,255,255,.82); --rt-faint: rgba(20,20,22,.42); --rt-acc: #5f6b10; --rt-limeD: rgba(160,178,30,.16); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.rt-hero { position: relative; isolation: isolate; display: flex; gap: 11px; align-items: center; padding: 14px 17px 14px 11px; border-radius: 22px; background: var(--rt-glass); border: 1px solid var(--rt-line); overflow: hidden; }
.rt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 50%, rgba(155,114,203,.17), transparent 55%); }
.rt-hero .rt-av { flex: 0 0 58px; width: 58px; height: 58px; }
.rt-htx { min-width: 0; flex: 1; }
.rt-hi { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--rt-acc); }
.rt-hero h2 { margin: 2px 0 1px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.08; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rt-tx); }
.rt-role { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; margin-top: 7px; font-size: 10.5px; line-height: 1.25; color: var(--rt-mist); }
.rt-rtag { flex: 0 0 auto; padding: 1px 5px; border: .75px solid var(--rt-mist); border-radius: 7px; line-height: 1.2; color: var(--rt-mist); }
.rt-ring { font: inherit; transition: --p .6s var(--rt-e); --p: 0; --c: var(--rt-lime); position: relative; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--rt-line) 0); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rt-ring::before { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #17171b; }
html.light .rt-ring::before { background: #fff; }
.rt-ring b { position: relative; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--rt-tx); }
.rt-ring.c1 { --c: #f2554d; }
.rt-ring.c2 { --c: #f5c84b; }
.rt-ring.c3 { --c: #f7953f; }
.rt-ring.c4 { --c: #4f9ef7; }
.rt-ring.c5 { --c: #4fd07f; }
.rt-ring.full b { font-size: 11px; letter-spacing: -.02em; }

.pc-duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; height: 160px; animation: enter .38s cubic-bezier(.22,1,.36,1) both; }
.pc-log, .pc-kcard { min-width: 0; display: flex; flex-direction: column; padding: 11px 12px; border-radius: 19px; background: var(--rt-glass); border: 1px solid var(--rt-line); overflow: hidden; }
.pc-lh { flex: 0 0 auto; margin-bottom: 7px; font-size: 13px; font-weight: 700; line-height: 16px; color: var(--rt-tx); }
.pc-lrows { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.pc-lg { display: grid; grid-template-columns: 6px minmax(0,1fr); column-gap: 7px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
button.pc-lg { cursor: pointer; }
button.pc-lg:active { opacity: .7; }
.pc-lg > i { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--rt-line2); }
.pc-lg.key > i { background: var(--rt-lime); }
.pc-lg > div { min-width: 0; }
.pc-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pc-l1 b { min-width: 0; font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rt-tx); }
.pc-l1 time { flex: 0 0 auto; font-size: 10.5px; color: var(--rt-faint); }
.pc-lg span { display: block; font-size: 11px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rt-mist); }
.pc-lempty { font-size: 12px; line-height: 1.38; color: var(--rt-mist); }
.pc-kcard { padding: 12px; }
.pc-khd { display: flex; align-items: center; gap: 8px; }
.pc-kic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rt-limeD); color: var(--rt-acc); }
.pc-kic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pc-khd b { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--rt-tx); }
.pc-kcard p { flex: 1 1 auto; margin: 8px 0 0; font-size: 11.5px; line-height: 1.38; color: var(--rt-mist); }
.rt-kbtn { flex: 0 0 auto; display: flex; width: 100%; min-height: 36px; margin: 0; padding: 0; border: 1.5px solid var(--rt-lime); align-items: center; justify-content: center; border-radius: 13px; background: none; color: var(--rt-tx); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .14s ease; -webkit-tap-highlight-color: transparent; }
.rt-kbtn:active { transform: scale(.975); }

.rt-seg { --n: 4; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); margin: 8px 0; padding: 3px; border-radius: 14px; background: var(--rt-glass); border: 1px solid var(--rt-line); }
.rt-seg > i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); transform: translateX(calc(var(--i) * 100%)); transition: transform .42s cubic-bezier(.34,1.3,.44,1); }
.rt-seg > i::before { content: ""; position: absolute; inset: 0; border-radius: 11px; background: var(--rt-lime); }
.rt-seg button { position: relative; z-index: 1; min-width: 0; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: -.1px; text-align: center; white-space: nowrap; color: var(--rt-mist); cursor: pointer; transition: color .25s ease; -webkit-tap-highlight-color: transparent; }
.rt-seg button.on { color: #0b0b0c; }
.pc-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.pc-w { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 8px 11px; border-radius: 15px; background: var(--rt-glass); border: 1px solid var(--rt-line); }
.pc-w small { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--rt-mist); }
.pc-w small svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: var(--rt-acc); stroke-width: 1.8; }
.pc-w b { flex: 0 0 auto; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--rt-tx); }

.pc-note { margin: 8px 0 12px; font-size: 13px; line-height: 1.4; color: var(--rt-mist); }
.pc-steps { list-style: none; margin: 0; padding: 0; }
.pc-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rt-line); font-size: 14px; color: var(--rt-mist); }
.pc-steps li:first-child { border-top: 0; }
.pc-steps li.on { font-weight: 600; color: var(--rt-tx); }
.pc-steps i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rt-line2); }
.pc-steps li.on i { border-color: transparent; background: var(--rt-lime); }
.pc-steps svg { width: 14px; height: 14px; fill: none; stroke: #0b0b0c; stroke-width: 2.4; }
.pc-kn { padding: 12px 0; border-bottom: 1px solid var(--rt-line); }
.pc-kn b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--rt-tx); }
.pc-kn em { margin-left: auto; padding: 2px 8px; border-radius: 9px; background: var(--rt-limeD); font-style: normal; font-size: 11px; font-weight: 600; color: var(--rt-acc); }
.pc-kn p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.42; color: var(--rt-mist); }
.pc-kact { margin-top: 14px; }

/* Главная должна умещаться на первом экране: блоки ближе друг к другу, кнопка темы в строке подписи */
.pc-duo { margin-top: -12px; }
.rt-seg { margin: -4px 0 0; }
.pc-grid { margin-top: -4px; }
/* Подпись и кнопка темы в одной строке, кнопка в 10 px от подписи, блок с именем ниже них */
html.cab .head.cab { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 8px 0; margin-top: -10px; }
html.cab .head.cab .eyebrow { grid-column: 1; grid-row: 1; top: 0; }
html.cab .head.cab .themebtn { position: static; grid-column: 2; grid-row: 1; justify-self: start; width: 26px; height: 26px; margin-left: 10px; }
html.cab .head.cab .themebtn svg { width: 14px; height: 14px; }
html.cab .head.cab .rt-hero { grid-column: 1 / -1; grid-row: 2; }

/* ---------- Курс MoneyShop: кнопка в строке подписи и конвертер (вид из You Shepel) ---------- */
.pc-rate { position: relative; isolation: isolate; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 58px; height: 44px; margin-right: 2px; padding: 0 8px; border: 0; border-radius: 14px; background: none; color: var(--rt-tx); font: inherit; cursor: pointer; transition: transform .14s ease; -webkit-tap-highlight-color: transparent; }
.pc-rate:active { transform: scale(.94); }
.pc-rate > .xgm { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.pc-rate > .xgm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--rt-gem); animation: rtGemT 7s ease-in-out infinite; will-change: transform; }
.pc-rate > .xgm::after { content: ""; position: absolute; inset: 1.5px; border-radius: 12.5px; background: #1e1e23; }
html.light .pc-rate > .xgm::after { background: #fff; }
.pc-rate .rb1 { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; color: var(--rt-mist); }
.pc-rate .rb2 { font-size: 13px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
#cvWrap .rt-seg { margin: 12px 0; }
#cvWrap .rt-seg button { font-size: 13px; padding: 8px 2px; }
.cvbox { padding: 14px; border-radius: 16px; background: rgba(237,234,226,.05); border: 1px solid var(--rt-line); }
html.light .cvbox { background: rgba(20,20,22,.05); }
.cvbox:focus-within { border-color: rgba(209,224,90,.55); }
.cvh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--rt-mist); }
.cvr { display: flex; align-items: center; gap: 10px; }
.cvin, .cvout { flex: 1; min-width: 0; font-size: 30px; font-weight: 500; letter-spacing: -.01em; color: var(--rt-tx); }
.cvin { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-family: inherit; }
.cvout { 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: rgba(237,234,226,.05); border: 1px solid var(--rt-line); font-size: 13px; font-weight: 700; color: var(--rt-tx); }
.cvsw { position: relative; z-index: 2; display: flex; justify-content: center; margin: -10px 0; }
.cvsw button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--rt-lime); box-shadow: 0 0 0 5px var(--rt-pop); cursor: pointer; transition: transform .3s var(--rt-e); }
.cvsw button:active { transform: rotate(180deg) scale(.92); }
.cvsw svg { width: 19px; height: 19px; fill: none; stroke: #0b0b0c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-kv { display: flex; flex-direction: column; margin-top: 12px; border-radius: 16px; background: rgba(237,234,226,.05); border: 1px solid var(--rt-line); }
.pc-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--rt-line); font-size: 14px; }
.pc-kv div:first-child { border-top: 0; }
.pc-kv span { color: var(--rt-mist); }
.pc-kv b { font-weight: 700; color: var(--rt-tx); }
.pc-cvn { margin: 12px 0 0; text-align: center; font-size: 12px; }

/* Фон Gemini как в Рефкоманде: те же цвета и движение, но размытие сделано заранее в маленьких картинках.
   Живой blur на больших движущихся слоях на iPhone даёт сбои и грузит телефон. */
html.gem .gembg::before { filter: none; background: url(/assets/gem/c.webp) center / 100% 100% no-repeat; }
html.gem .gembg i { filter: none; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
html.gem .gembg .g1 { background-image: url(/assets/gem/g1.webp); }
html.gem .gembg .g2 { background-image: url(/assets/gem/g2.webp); }
html.gem .gembg .g3 { background-image: url(/assets/gem/g3.webp); }
html.gem .gembg .g4 { background-image: url(/assets/gem/g4.webp); }
.rt-av::after { inset: -14px; border-radius: 0; background: url(/assets/gem/a.webp) center / 100% 100% no-repeat; filter: none; }
html.cab .ptabs { background: rgba(16,16,19,.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.light.cab .ptabs { background: rgba(255,255,255,.96); }

/* Кнопка «Получить ссылку»: текст не касается краёв */
.prodtop .act[data-get] { padding-left: 17px; padding-right: 17px; }

/* Обводка кнопок на Главной одной толщины: 1,5 px, как у «Курса», «Знаний» и рейтинга */
html.cab .themebtn, html.cab .prodx, html.cab .act:not(.pri), html.cab .rt-seg, html.cab .matseg { border-width: 1.5px; }
.rt-hero .rt-av { padding: 1.5px; }

/* Окно «Всё для работы»: разделы со знаниями */
.pc-khead { margin: 16px 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rt-acc); }
.pc-kn { padding: 10px 0; }
.pc-kn:last-of-type { border-bottom: 0; }

/* Полоса прокрутки нигде не видна. На 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; }

/* Аватарка не показывает квадрат при нажатии: круг задан жёстко, в Профиле нет сжатия */
.rt-av::after { border-radius: 50%; }
.rt-av > i { clip-path: circle(50% at 50% 50%); }
.rt-prof .rt-av:active { transform: none; }
.rt-av, .rt-av *, .rt-plus { -webkit-tap-highlight-color: transparent; }
.pc-rate > .xgm { clip-path: inset(0 round 14px); }

/* Смена фото: окно обрезки круглое, без квадратных углов. Нажатие приходит на кнопку, а не на квадратную картинку внутри неё. */
.rt-crs { border-radius: 50%; }
.rt-crm { background: none; }
.rt-av { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.rt-av .rt-face, .rt-av .rt-face img, .rt-av .rt-plus { pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; }

/* Окно рейтинга: пункты плана, как в Рефкоманде */
.pc-pl { padding: 11px 0; border-bottom: 1px solid var(--rt-line); }
.pc-pl:last-child { border-bottom: 0; }
.pc-pl > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--rt-tx); }
.pc-pl b { font-weight: 700; white-space: nowrap; }
.pc-bar { height: 7px; margin-top: 6px; border-radius: 4px; background: rgba(237,234,226,.06); overflow: hidden; }
html.light .pc-bar { background: rgba(20,20,22,.05); }
.pc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--rt-lime); }
.pc-pl small { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.3; color: var(--rt-mist); }

/* Сводка на вкладке «Клиенты» */
.pc-chero .rt-ring { flex: 0 0 58px; width: 58px; height: 58px; }
.pc-chero .rt-ring b { font-size: 14px; }
.pc-mini { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box; min-width: 58px; height: 44px; padding: 0 8px; border: 1.5px solid var(--rt-line2); border-radius: 14px; color: var(--rt-tx); }
.pc-mini .rb1 { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--rt-mist); }
.pc-mini .rb2 { font-size: 15px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
