:root{--lv-accent:#784596;--lv-soft:#e9dced;--lv-ink:#35213f;--lv-border:#b59cc3;--lv-muted:#66516f;--lv-surface:#fff;--lv-bg:#f1ebf5;--lv-space:22px}
html[data-theme=dark]{--lv-accent:#cfade6;--lv-soft:#40304d;--lv-ink:#f7effc;--lv-border:#705b7f;--lv-muted:#d0bfd9;--lv-surface:#2b2233;--lv-bg:#1c1622}
html[data-theme] body:is(.ux-crm,.ux-cabinet){--ux-accent:var(--lv-accent)!important;--ux-accent-ink:var(--lv-accent)!important;--ux-tint:var(--lv-soft)!important;--ux-hover:var(--lv-soft)!important;--ux-card:var(--lv-surface)!important;--ux-bg:var(--lv-bg)!important;--ux-text:var(--lv-ink)!important;--ux-muted:var(--lv-muted)!important;--ux-line:var(--lv-border)!important;--line:var(--lv-border)!important;--text-sec:var(--lv-muted)!important;--text-body:var(--lv-muted)!important;--card:var(--lv-surface)!important;--bg:var(--lv-bg)!important;--text:var(--lv-ink)!important;color:var(--lv-ink)!important;background:var(--lv-bg)!important}
html[data-theme] :is(.portal-nav,.topbar,.side,.glass-panel,.panel,.stat,.modal-c,.drawer,.calc-out,.xp-card,.streak,.ux-next-step,.opt-seg,.jr-colh,.mentor-card,.ux-dialog,.cc-coach){background-image:none!important;border-color:var(--lv-border)!important;color:var(--lv-ink)!important}
html[data-theme] :is(.streak,.calc-out,.xp-card,.ux-next-step,.ux-stage-value,.ux-award-summary,.tag-pill){background:var(--lv-soft)!important;color:var(--lv-ink)!important;border-color:var(--lv-border)!important;box-shadow:none!important}
html[data-theme] :is(.ux-action-target,.onb-highlight,.onb-target,[data-onb-active],.onb-focus){outline-color:var(--lv-accent)!important;border-color:var(--lv-accent)!important;box-shadow:0 0 0 3px var(--lv-soft)!important}
html[data-theme] .portal-brand{color:var(--lv-ink)!important;opacity:1!important;visibility:visible!important;font-family:Onest,sans-serif!important;font-weight:800!important}
html[data-theme] .portal-brand:before{content:''!important;display:block!important;width:30px!important;height:30px!important;flex:0 0 30px;background:var(--lv-accent)!important;mask:url('/workspace-assets/levessa-mark.svg') center/contain no-repeat;-webkit-mask:url('/workspace-assets/levessa-mark.svg') center/contain no-repeat;border:0!important;border-radius:0!important;box-shadow:none!important}
html[data-theme] .portal-brand{letter-spacing:-.9px!important;text-transform:lowercase}
.lv-chat-gate{margin:12px;flex:none;font-size:14px}.lv-chat-gate p{font-size:12px}
.ux-crm #content:has(.lv-panel){scrollbar-gutter:auto!important}
@media(max-width:900px){.ux-crm .side:not(.open){visibility:hidden;pointer-events:none}.ux-crm .side.open{visibility:visible;pointer-events:auto}.portal-links{scrollbar-width:none}.portal-links::-webkit-scrollbar{display:none}}
html[data-theme] #onb-coach.cc-coach{box-shadow:0 16px 48px #130c212e!important}
.view:has(#native-create-task) [onclick="Tasks.form()"]{display:none!important}
.cc-training-restore.cc-restore-visible{color:var(--lv-bg)!important;box-shadow:none!important}
@media(max-width:420px){.ux-crm .topbar{gap:8px!important}.ux-crm .topbar h1{font-size:18px!important;line-height:1.25;word-break:normal;overflow-wrap:normal}.ux-crm #help-btn:not(.cc-training-restore){display:none!important}.ux-crm .topbar>.ic-btn,.ux-crm .topbar>.mtoggle{flex:0 0 42px;width:42px;height:44px}}
@media(max-width:640px){.ux-cabinet .kb-categories{display:flex!important;gap:8px;overflow-x:auto;max-width:100%;padding-bottom:8px;margin-bottom:16px;scrollbar-width:thin}.ux-cabinet .kb-cat-card{flex:0 0 auto;min-height:44px;padding:10px 14px!important;border-radius:14px!important;white-space:nowrap}.ux-cabinet .kb-cat-card .kb-icon,.ux-cabinet .kb-cat-card>div:last-child>div:last-child{display:none!important}}
html[data-theme] .portal-links a{color:var(--lv-muted)!important;border:1px solid transparent!important;background:transparent!important}
html[data-theme] .portal-links a[aria-current=page]{color:var(--lv-ink)!important;background:var(--lv-soft)!important;border-color:var(--lv-accent)!important;box-shadow:inset 0 -2px var(--lv-accent)!important}
html[data-theme] :is(.btn,.ux-primary,.ux-secondary,button){transition:background .2s ease,border-color .2s ease,transform .2s ease}
html[data-theme] :is(.btn.primary,.ux-primary,.cc-primary){background:var(--lv-accent)!important;color:var(--lv-bg)!important;border-color:var(--lv-accent)!important;background-image:none!important}
html[data-theme] :is(input,textarea,select){border-color:var(--lv-border)!important;accent-color:var(--lv-accent)}
html[data-theme] :is(.field,.mentor-actions,.panel-h,.drawer-f,.modal-f){gap:12px}
.mentor-actions,.modal-f,.drawer-f{align-items:center;flex-wrap:wrap}.mentor-actions .btn{justify-content:center;min-height:42px}.ux-start-grid{grid-template-columns:minmax(0,1fr)!important}.ux-next-step{width:100%;box-sizing:border-box}
#lv-training-progress{display:flex;align-items:center;gap:20px;padding:12px 28px;background:var(--lv-soft);color:var(--lv-ink);border-bottom:1px solid var(--lv-border);flex:none}#lv-training-progress>div{display:grid;gap:4px}#lv-training-progress span{font-size:12px;color:var(--lv-muted)}#lv-training-progress progress{flex:1;height:8px;accent-color:var(--lv-accent);max-width:260px}#lv-training-progress button{margin-left:auto}
.lv-contact-gate{padding:18px 22px;border:1px solid var(--lv-border);border-radius:16px;background:var(--lv-soft);margin-bottom:18px;color:var(--lv-ink)}.lv-contact-gate p{margin:8px 0 0;line-height:1.6;font-size:14px}
#lv-reward{position:fixed;bottom:24px;right:24px;z-index:20000;display:flex;gap:16px;align-items:center;width:min(420px,calc(100vw - 48px));box-sizing:border-box;padding:20px;border:1px solid var(--lv-accent);border-radius:20px;background:var(--lv-surface);color:var(--lv-ink);box-shadow:0 12px 50px #0003;animation:lv-reveal .35s ease}#lv-reward>span{font-size:36px;color:var(--lv-accent)}#lv-reward p{margin:6px 0 0;line-height:1.5;font-size:14px}#lv-reward button{align-self:flex-start;background:none;border:0;color:inherit;font-size:22px;cursor:pointer}
.view,.mentor-card,.glass-panel{animation:lv-reveal .3s ease}.ux-action-target{animation:lv-pulse 2s ease-in-out infinite!important}@keyframes lv-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes lv-pulse{50%{outline-color:transparent}}
@media(max-width:760px){#lv-training-progress{padding:10px 12px;gap:8px;flex-wrap:wrap}#lv-training-progress>div{flex:1 1 200px}#lv-training-progress progress{max-width:none}#lv-training-progress .btn{font-size:12px;padding:8px}.modal-f .btn{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
html[data-theme] #onb-spot.cc-coach-spot,html[data-theme] .spot.ring{border-color:var(--lv-accent)!important;box-shadow:0 0 0 3px var(--lv-soft)!important;animation:lv-pulse 2s ease-in-out infinite!important}
html[data-theme] :is(.stat,.shift-card,.glass-panel){box-shadow:none!important}
html[data-theme=dark]{color-scheme:dark}html[data-theme=light]{color-scheme:light}
html[data-theme] .ux-cabinet .btn:not(.btn-outline){background:var(--lv-accent)!important;color:var(--lv-bg)!important;border-color:var(--lv-accent)!important;box-shadow:none!important}
html[data-theme] .ux-cabinet *{scrollbar-color:var(--lv-border) var(--lv-bg)!important}
html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{animation:none!important;transition:none!important}

/* A single surface system for both the CRM and embedded account sections. */
:root{--lv-shadow:0 3px 8px #35213f09,0 12px 30px #35213f0b}
html.embedded-tool #dashboard{box-sizing:border-box;padding:28px clamp(16px,3vw,40px) 40px!important;max-width:1440px!important;margin:0 auto!important;width:100%!important}
html.lv-tool-loading #dashboard{visibility:hidden!important}html.lv-tool-loading body:before{content:'Загружаем раздел…';display:block;position:absolute;top:28px;left:28px;color:var(--lv-muted);font:14px Onest,sans-serif}
html[data-theme=dark]{--lv-shadow:0 3px 8px #0003,0 14px 30px #0002}
html[data-theme] body.ux-crm :is(.panel,.stat,.shift-card,.xp-card,.tpl),html[data-theme] body.ux-cabinet .glass-panel{box-shadow:var(--lv-shadow)!important;border:1px solid var(--lv-border)!important}
html[data-theme] body.ux-crm .panel{padding:22px!important}
html[data-theme] body.ux-crm .panel.team-scroll{padding:0!important;isolation:isolate;max-height:65dvh!important;overflow:auto!important}
html[data-theme] .team-scroll thead th{position:sticky!important;top:0!important;background:var(--lv-surface)!important;z-index:5!important;border-bottom:1px solid var(--lv-border)}
html[data-theme] .team-scroll thead th:first-child{z-index:6!important}
html[data-theme] .team-scroll tbody td:first-child{background:var(--lv-surface)!important}
html[data-theme] .sched-tbl :is(thead th,tbody td:first-child){background:var(--lv-surface)!important;color:var(--lv-muted)!important;box-shadow:1px 0 0 var(--lv-border)}
html[data-theme] body.ux-crm .xp-card{padding:22px!important;align-self:stretch!important;min-height:0!important;height:auto!important;background:var(--lv-surface)!important}
html[data-theme] body.ux-crm .xp-card [style*="color:"]{color:var(--lv-ink)!important}
html[data-theme] body.ux-crm .xp-card .lvl-badge{background:var(--lv-accent)!important;color:var(--lv-bg)!important;width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:15px;font-size:22px}
html[data-theme] body.ux-crm .xp-card .streak{background:var(--lv-soft)!important;color:var(--lv-ink)!important;padding:8px 10px;border-radius:10px}
html[data-theme] body.ux-crm .xp-bar{background:var(--lv-soft)!important;height:8px;margin-top:18px}.xp-bar i{background:var(--lv-accent)!important}
html[data-theme] #onb-coach.lv-intro{border-radius:28px!important;padding:12px!important;box-shadow:0 24px 80px #0004!important}
#onb-coach.lv-intro .cc-coach-header{padding:22px 24px 12px}#onb-coach.lv-intro h4{font-size:30px;line-height:1.2;letter-spacing:-.7px}
#onb-coach.lv-intro .cc-coach-body{padding:8px 24px 20px;font-size:16px;line-height:1.6}#onb-coach.lv-intro .cc-coach-footer{padding:0 24px 20px}
.lv-intro-lead{color:var(--lv-muted)}.lv-intro-steps{display:grid;gap:12px;margin-top:20px}.lv-intro-steps>div{display:grid;grid-template-columns:34px 1fr;gap:4px 12px;padding:16px;border-radius:16px;background:var(--lv-soft)}.lv-intro-steps span{grid-row:span 2;color:var(--lv-accent);font-weight:800}.lv-intro-steps h3{font-size:17px;margin:0}.lv-intro-steps p{margin:0!important;font-size:14px;line-height:1.6}
#the-modal.lv-full-completion{padding:0!important;background:var(--lv-bg)!important}
#the-modal.lv-full-completion .modal-c{width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;overflow:auto!important;background:var(--lv-bg)!important}
.lv-full-completion .modal-h,.lv-full-completion .modal-f{display:none!important}.lv-full-completion .modal-b{padding:24px!important}
.lv-finale{max-width:760px;margin:clamp(20px,6vh,80px) auto;text-align:center;animation:lv-reveal .5s ease}.lv-finale h2{font-size:clamp(28px,4vw,48px)!important;line-height:1.15;letter-spacing:-1px;margin:20px 0}.lv-finale p{font-size:17px;line-height:1.7;color:var(--lv-muted)}.lv-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:700;color:var(--lv-accent)}.lv-bonus{display:flex;align-items:center;justify-content:center;gap:24px;background:var(--lv-soft);border:1px solid var(--lv-border);border-radius:24px;padding:28px;margin:28px 0;text-align:left;box-shadow:var(--lv-shadow)}.lv-bonus strong{font-size:48px;color:var(--lv-accent);white-space:nowrap}.lv-bonus div{font-weight:700;font-size:18px}.lv-bonus span{display:block;font-size:15px;line-height:1.6;font-weight:400;margin-top:6px}.lv-finale .lv-finale-note{font-size:14px}.lv-finale>.btn{min-height:50px;margin-top:16px;padding:14px 28px}
.lv-template-search{display:grid;gap:8px;margin:20px 0;font-size:13px;font-weight:700}.lv-template-search input{width:100%;padding:14px 16px;border:1px solid var(--lv-border);border-radius:14px;background:var(--lv-surface);color:var(--lv-ink);font:inherit;box-sizing:border-box}
.lv-template-mobile{display:none}
.lv-template-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}.lv-template-layout .tpl-cats{display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;margin:0;max-height:none;overflow:visible}.lv-template-layout .tpl-cat{display:flex;justify-content:space-between;gap:8px;align-items:center;text-align:left;white-space:normal;min-height:44px}.tpl-cat small{opacity:.75}.lv-template-layout .tpl-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:stretch;gap:18px}.lv-template-layout .tpl{display:flex;flex-direction:column;padding:22px!important;background:var(--lv-surface)!important;border-radius:20px}.tpl h3{font-size:17px;margin:8px 0}.tpl .tx{font-size:14px;line-height:1.7;margin:0 0 20px;flex:1}.tpl .ta{flex-wrap:wrap;gap:8px}.lv-programs{margin-top:24px}.lv-programs summary{cursor:pointer;font-weight:700;padding:4px}.lv-program-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin-top:20px}.lv-program-grid article{padding:18px;background:var(--lv-soft);border-radius:16px}.lv-program-grid h3{margin:8px 0;font-size:19px}.lv-program-grid p{font-size:14px;line-height:1.6}.lv-program-grid small,.lv-program-grid span{font-size:12px;color:var(--lv-muted)}
html.embedded-tool body{background:var(--lv-bg)!important}.embedded-tool #dashboard{box-sizing:border-box;padding:12px 20px 36px!important}.embedded-tool #kb-article-content-container{padding:clamp(22px,4vw,48px)!important;max-width:940px;margin:auto}.embedded-tool #kb-article-content-container p,.embedded-tool #kb-article-content-container li{font-size:16px;line-height:1.85;color:var(--lv-muted);margin-bottom:12px}.embedded-tool #kb-article-content-container h3{font-size:22px;line-height:1.35;margin:30px 0 16px;color:var(--lv-ink)}.embedded-tool #kb-article-content-container ol{padding-left:24px}.lv-article-tip{padding:20px 24px;background:var(--lv-soft);color:var(--lv-ink);border-left:3px solid var(--lv-accent);border-radius:0 16px 16px 0;line-height:1.7;margin:24px 0}
@media(max-width:760px){html[data-theme] body.ux-crm .panel{padding:18px!important}.lv-template-layout{grid-template-columns:1fr;gap:16px}.lv-template-layout .tpl-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.lv-template-layout .tpl-cat{font-size:12px;padding:10px}.embedded-tool #dashboard{padding:8px 12px 28px!important}.lv-bonus{flex-direction:column;text-align:center;gap:8px;padding:20px}#onb-coach.lv-intro .cc-coach-header,#onb-coach.lv-intro .cc-coach-body,#onb-coach.lv-intro .cc-coach-footer{padding-left:14px;padding-right:14px}#onb-coach.lv-intro h4{font-size:25px}.lv-intro-steps>div{padding:12px}}
@media(max-width:760px){.lv-template-layout .tpl-cats{display:none!important}.lv-template-mobile{display:grid;gap:8px;margin-bottom:18px;font-size:13px;font-weight:700}.lv-template-mobile select{width:100%;min-height:46px;padding:12px;border:1px solid var(--lv-border);border-radius:12px;background:var(--lv-surface);color:var(--lv-ink);font:inherit}}

/* Content-led card geometry shared by the CRM and embedded account sections. */
html[data-theme] body.ux-crm .stat{min-height:0;padding:20px;align-content:center;row-gap:8px}
html[data-theme] body.ux-crm .stat .ico{align-self:center}
html[data-theme] body.ux-crm .ux-next-step{flex-direction:row;align-items:center;gap:24px!important}
html[data-theme] body.ux-crm .ux-next-step .gm{flex:1!important;min-width:0}
html[data-theme] body.ux-crm .ux-next-step>.btn{margin:0;flex:none;align-self:center}
html[data-theme] body.ux-crm .ux-next-step .gm b{font-size:21px!important}
html[data-theme] body.ux-crm .ux-next-step .gm span:empty{display:none}
html[data-theme] body.ux-crm .xp-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px}
html[data-theme] body.ux-crm .xp-card .lvl{margin:0;gap:12px;align-items:center}
.lv-xp-progress{display:grid;gap:10px}
.lv-xp-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--lv-muted);font-size:12px}
.lv-xp-summary strong{font-size:24px;line-height:1.2;color:var(--lv-ink);letter-spacing:-.5px}
.lv-xp-summary small{font-size:12px;letter-spacing:0;font-weight:600;color:var(--lv-muted)}
html[data-theme] body.ux-crm .lv-xp-progress .xp-bar{margin:0}
.lv-xp-next{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--lv-border);font-size:12px;line-height:1.5;color:var(--lv-muted)}
.lv-xp-link{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--lv-accent);font-weight:650}
.lv-xp-link svg{width:16px;height:16px}
html[data-theme] body.ux-crm .lv-quality-card{display:flex;flex-direction:column;justify-content:space-between;gap:16px}
html[data-theme] body.ux-crm .lv-quality-card .panel-h{margin:0}
.lv-quality-metric{display:grid;gap:8px}
.lv-quality-label{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-size:12.5px;line-height:1.5;color:var(--lv-muted)}
.lv-quality-label strong{color:var(--lv-ink);font-size:15px}
html[data-theme] body.ux-crm .lv-quality-card>.help{margin:0;padding-top:12px;border-top:1px solid var(--lv-border);line-height:1.5}
html[data-theme] body.ux-crm .panel-h{align-items:center;margin-bottom:16px;gap:12px}
html[data-theme] body.ux-crm .panel-h>h3{min-width:0;margin:0}
html[data-theme] body.ux-crm .empty{padding:16px!important}
html[data-theme] body.ux-crm .empty .ei{margin-bottom:8px}
html[data-theme] body.ux-crm .ux-work-column:first-child>.panel{display:flex;flex-direction:column}
html[data-theme] body.ux-crm .ux-work-column:first-child>.panel>.empty{flex:1;display:flex;flex-direction:column;justify-content:center}
html[data-theme] body.ux-crm .ux-work-column:first-child>.panel>.d-item{flex:1;align-items:center}
html[data-theme] body.ux-crm :is(.d-item,.set-row){gap:12px}
html[data-theme] body.ux-crm .set-row>div:first-child{min-width:0;flex:1}
html[data-theme] body.ux-crm .set-row>:last-child{flex-shrink:0}
html[data-theme] body.ux-crm .mentor-card{gap:18px;padding:var(--lv-space)}
html[data-theme] body.ux-crm .mentor-description{margin:0}
html[data-theme] body.ux-crm .mentor-actions{margin-top:auto;padding-top:0}
.lv-program-grid>article{display:flex;flex-direction:column;gap:12px}
.lv-program-grid>article>:is(h3,p){margin:0}
.lv-program-grid>article>small{margin-top:auto}
.lv-template-layout .tpl{gap:14px}
.lv-template-layout .tpl>:is(.tx,.tpl-h){margin:0}
.lv-template-layout .tpl .tpl-actions{margin-top:auto}
html[data-theme] body.ux-cabinet .glass-panel{padding:var(--lv-space)}
@media(max-width:760px){
 :root{--lv-space:18px}
 html[data-theme] body.ux-crm .stat{padding:16px;row-gap:6px}
 html[data-theme] body.ux-crm .xp-card{padding:18px!important;gap:18px}
 html[data-theme] body.ux-crm .ux-next-step{flex-direction:column;align-items:stretch;gap:16px!important}
 html[data-theme] body.ux-crm .ux-next-step>.btn{align-self:flex-start}
 .lv-xp-next{flex-wrap:wrap;gap:8px 16px}
 html[data-theme] body.ux-crm .panel-h{flex-wrap:wrap}
}
html[data-theme] body.ux-crm .ux-next-step .ux-kicker{color:var(--lv-accent)!important}
html[data-theme] body.ux-crm .ux-next-step .gm span{color:var(--lv-muted)!important}
html[data-theme] body.ux-cabinet .grid-2>.glass-panel{min-width:0}
html[data-theme] body.ux-cabinet .grid-2>div>.form-label{margin-top:0}
html[data-theme] body.ux-cabinet .ui-msg:empty{display:none}
html[data-theme] body.ux-cabinet .grid-2{row-gap:22px}
.lv-template-layout .tpl>h3{margin:0;line-height:1.4}
.lv-template-layout .tpl .ta{margin-top:auto}

/* Final audit: readable status chips, compact lists and mobile journal controls. */
html[data-theme] body.ux-crm :is(.ex-badge,.demo-badge){background:var(--lv-soft)!important;color:var(--lv-accent)!important;border:1px solid var(--lv-border);border-radius:6px;padding:3px 6px;line-height:1.2}
html[data-theme] body.ux-crm .kcard .tag{background:var(--lv-soft)!important;color:var(--lv-ink)!important}
html[data-theme=dark] body.ux-crm :is(.pill,.chip)[style*="color:"]{color:var(--lv-ink)!important}
html[data-theme] body.ux-crm .kcard{padding:20px;border-color:var(--lv-border);box-shadow:var(--lv-shadow)}
.lv-task-columns>.panel{display:flex;flex-direction:column}
.lv-task-body{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}
.lv-task-body>.empty{margin-block:auto}
.lv-task-columns>.panel>.help{padding-top:14px;border-top:1px solid var(--lv-border)}
.lv-journal-filters{display:contents}
.lv-filter-fields{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lv-filter-toggle{display:none!important}
.lv-template-picker-controls{display:grid;gap:12px;margin-bottom:16px;position:sticky;top:0;background:var(--lv-surface);padding:0 0 12px;z-index:1}
.lv-template-picker-controls label{display:grid;gap:8px;font-size:12px;font-weight:650;color:var(--lv-muted)}
.lv-template-picker-controls :is(input,select){width:100%;padding:12px;border:1px solid var(--lv-border);border-radius:12px;background:var(--lv-bg);color:var(--lv-ink);font:inherit;min-height:44px}
#lv-template-picker-results .tp-item{padding:14px;margin-bottom:10px;gap:8px;min-width:0}
#lv-template-picker-results .tp-item span{line-height:1.6}
html[data-theme] .modal-b>.help{font-size:12px;line-height:1.6;margin-bottom:14px}
html[data-theme] body.ux-cabinet .glass-panel+:is(h2,h3,h4){margin-top:24px}
html[data-theme] body.ux-crm .d-item>:is(div,span){min-width:0}
@media(max-width:760px){
 .lv-journal-filters{display:block;flex:1 1 100%;min-width:0}
 .lv-filter-toggle{display:flex!important;width:100%;justify-content:center;min-height:44px}
 .lv-filter-fields{display:none;gap:10px;padding-top:12px}
 .lv-journal-filters.is-open .lv-filter-fields{display:grid;grid-template-columns:minmax(0,1fr)}
 .lv-journal-filters .mini-select{width:100%!important}
 html[data-theme] body.ux-crm .kcard{padding:18px}
 .lv-task-body{justify-content:flex-start}
 .lv-template-picker-controls{position:static}
 html[data-theme] body.ux-crm .mentor-grid{min-width:0;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.view,.mentor-card,.glass-panel{animation:none!important}.onb-focus,.ux-action-target{animation:none!important}}
html[data-motion=off] :is(*,*::before,*::after){animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Keep tools reachable when the keyboard or landscape hides the top navigation. */
.lv-account-shortcuts{display:none}
.ux-short-viewport .lv-account-shortcuts{display:block;border-top:1px solid var(--lv-border);margin-top:12px;padding-top:12px}
html[data-theme] body.ux-crm.ux-short-viewport .chat-tools{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 8px;flex-shrink:0}
html[data-theme] body.ux-crm.ux-short-viewport .chat-tools .btn{min-height:40px;padding:6px 10px;white-space:nowrap;flex:none}
html[data-theme] body.ux-crm.ux-short-viewport .chat-in textarea{height:48px;min-height:48px;max-height:96px;resize:none;padding:10px 12px;line-height:24px}
@media(max-height:500px){.lv-template-picker-controls{position:static}}
@media(min-width:600px) and (max-height:500px){.lv-template-picker-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lv-template-picker-controls label{min-width:0}}
html[data-theme] body.ux-crm .scrim{backdrop-filter:none;-webkit-backdrop-filter:none}
.ux-crm .set-row .switch{width:46px;height:44px}
.ux-crm .set-row .switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:2;cursor:pointer}
.ux-crm .set-row .switch .sw,.ux-crm .set-row .switch .sl{top:9px;bottom:9px}
.ux-crm .set-row .switch:has(input:focus-visible){outline:2px solid var(--lv-accent);outline-offset:3px;border-radius:12px}
@media(max-height:500px){html[data-theme] body.ux-crm .modal{backdrop-filter:none;-webkit-backdrop-filter:none}}
html[data-theme] body.ux-crm.ux-short-viewport .lv-chat-gate{padding:10px 12px;margin:8px;font-size:12px;line-height:1.5}
.ux-short-viewport .lv-chat-gate p{display:none}
