:root{--bg:#f5f6f8;--surface:#fff;--surface-strong:#fdfdfd;--text:#333;--muted-text:#596170;--border:#d8dde6;--border-soft:#e9edf3;--accent:#ff4719;--accent-ink:#cc3710;--accent-soft:#fff2ee;--cta:#ff4719;--cta-hover:#cc3710;--focus:#ff471940;--shadow:0 12px 24px #1d283a14;--status-error-bg:#fee2e2;--status-error-text:#991b1b;--status-error-border:#fca5a5;--status-success-bg:#dcfce7;--status-success-text:#166534;--status-success-border:#86efac;--status-warning-bg:#fef9c3;--status-warning-text:#854d0e;--status-warning-border:#fde68a;--status-info-bg:#dbeafe;--status-info-text:#1e40af;--status-info-border:#93c5fd}*{box-sizing:border-box}html,body,#root{min-height:100%}body{color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:radial-gradient(circle at 0 0,#fff 0%,#f9fbfd 42%,#f2f4f8 100%),linear-gradient(120deg,#ff47190d,#fff0 38%);margin:0;font-family:Roboto,Segoe UI,sans-serif;line-height:1.45}h1,h2,h3{color:var(--text);margin:0;line-height:1.2}h1{margin-top:.35rem;font-size:clamp(1.8rem,2.8vw,2.5rem)}h2{font-size:clamp(1.15rem,2vw,1.4rem)}p{margin:0}button,input,textarea,select{font:inherit}button{background:var(--cta);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:.62rem .95rem;transition:background-color .2s,transform .2s}@media (hover:hover){button:hover{background:var(--cta-hover);transform:translateY(-1px)}}button:disabled{opacity:.6;cursor:not-allowed;transform:none}button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:1px}input{border:1px solid var(--border);background:#fff;border-radius:10px;width:100%;padding:.68rem .78rem}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--accent);background:0 0;border:0;border-radius:0;padding:0}.biometric-login{gap:.6rem;margin-bottom:.2rem;display:grid}.biometric-login__btn{background:var(--cta);color:#fff;border:0;border-radius:12px;justify-content:center;align-items:center;gap:.55rem;width:100%;min-height:48px;padding:.85rem 1rem;font-size:1rem;font-weight:600;display:flex}.biometric-login__btn:hover{background:var(--cta-hover);color:#fff;transform:translateY(-1px)}.biometric-login__btn:disabled{transform:none}.biometric-login__icon{align-items:center;display:inline-flex}.biometric-login__hint{color:var(--muted-text);text-align:center;margin:0;font-size:.86rem}.biometric-login__slow{text-align:center;background:var(--status-warning-bg);border:1px solid var(--status-warning-border);color:var(--status-warning-text);border-radius:10px;justify-items:center;gap:.4rem;padding:.6rem .7rem;font-size:.88rem;display:grid}.biometric-login__slow p{margin:0}.biometric-login__linkbtn{color:var(--status-warning-text);text-underline-offset:2px;background:0 0;border:0;border-radius:0;padding:0;font-size:.86rem;font-weight:600;text-decoration:underline}.biometric-login__linkbtn:hover{color:var(--status-warning-text);background:0 0;transform:none}.biometric-login__notice{border:1px solid #0000;border-radius:10px;margin:0;padding:.55rem .7rem;font-size:.88rem}.biometric-login__notice--warn{background:var(--status-warning-bg);color:var(--status-warning-text);border-color:var(--status-warning-border)}.biometric-login__notice--info{background:var(--status-info-bg);color:var(--status-info-text);border-color:var(--status-info-border)}.biometric-login__notice--error{background:var(--status-error-bg);color:var(--status-error-text);border-color:var(--status-error-border)}.biometric-login__divider{color:var(--muted-text);text-transform:uppercase;letter-spacing:.08em;align-items:center;gap:.7rem;margin:.35rem 0 0;font-size:.82rem;display:flex}.biometric-login__divider:before,.biometric-login__divider:after{content:"";background:var(--border-soft);flex:1;height:1px}.auth-shell{min-height:100dvh;padding:calc(1.2rem + env(safe-area-inset-top)) calc(1.2rem + env(safe-area-inset-right)) calc(1.2rem + env(safe-area-inset-bottom)) calc(1.2rem + env(safe-area-inset-left));grid-template-columns:minmax(min(280px,100%),1.1fr) minmax(min(320px,100%),460px);align-items:stretch;gap:1.2rem;display:grid}.auth-intro,.auth-card-wrap{border:1px solid var(--border);box-shadow:var(--shadow);border-radius:20px}.auth-intro{color:#fff;background:linear-gradient(145deg,#28140af7,#3c1e0af2),radial-gradient(circle at 0 0,#ff47198c,#0000 42%);flex-direction:column;justify-content:center;padding:clamp(1.5rem,4vw,3rem);display:flex}.auth-kicker{color:#ffb399;text-transform:uppercase;letter-spacing:.12em;margin:0;font-size:.82rem;font-weight:700}.auth-intro h1{color:#fff;margin:.7rem 0 1rem}.auth-intro p{color:#ffffffdb;max-width:44ch}.auth-card-wrap{background:var(--surface);flex-direction:column;justify-content:center;padding:1.3rem;display:flex}.auth-form{gap:.9rem;display:grid}.auth-form h2{margin:0}.auth-form-subtitle{color:var(--muted-text);margin:-.35rem 0 .2rem;font-size:.92rem}.auth-form label{color:var(--text);gap:.35rem;font-weight:500;display:grid}.auth-form .auth-error{color:#b53200;background:#fff2ee;border:1px solid #ffcab8;border-radius:10px;margin:0;padding:.55rem .7rem;font-size:.88rem}.auth-switch{color:var(--muted-text);align-items:center;gap:.35rem;margin:1rem 0 0;font-size:.92rem;display:flex}.auth-switch button{color:var(--accent);text-underline-offset:2px;background:0 0;border:0;border-radius:0;padding:0;font-weight:600;text-decoration:underline}.auth-switch button:hover{color:var(--accent);background:0 0;transform:none}@media (width<=860px){.auth-shell{grid-template-columns:1fr;min-height:100%}.auth-intro{min-height:220px}}.sidebar{background:var(--surface);border:1px solid var(--border);width:min(250px,100%);box-shadow:var(--shadow);border-radius:18px;align-self:flex-start;max-height:calc(100vh - 2rem);padding:1rem .7rem;position:sticky;top:1rem;overflow-y:auto}.sidebar nav ul{gap:.25rem;margin:0;padding:0;list-style:none;display:grid}.sidebar nav ul li{margin:0}.sidebar__group+.sidebar__group{margin-top:.35rem}.sidebar__group-head{cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:.5rem .75rem .3rem;display:flex}.sidebar__group-head:hover{background:var(--surface-strong)}.sidebar__group-head:hover .sidebar__section-title,.sidebar__group-head:hover .sidebar__chevron{color:var(--text)}.sidebar__chevron{color:var(--muted-text);flex-shrink:0;transition:transform .18s;transform:rotate(-90deg)}.sidebar__chevron--open{transform:rotate(0)}@media (prefers-reduced-motion:reduce){.sidebar__chevron{transition:none}}.nav-item{text-align:left;width:100%;color:var(--text);background:0 0;border:1px solid #0000;border-radius:10px;padding:.55rem .75rem;font-weight:500}@media (hover:hover){.nav-item:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:#ffcab8}}.nav-item.active{color:#fff;background:#ff4719;border-color:#ff4719}.nav-item.disabled,.nav-item:disabled{opacity:.58;cursor:not-allowed}.nav-item:disabled:hover{color:var(--text);background:0 0;border-color:#0000}.sidebar__divider{border:0;border-top:1px solid var(--border-soft);margin:.85rem .25rem .6rem}.sidebar__section-title{color:var(--muted-text);text-transform:uppercase;letter-spacing:.1em;margin:0;padding:0;font-size:.72rem;font-weight:700}@media (width<=1024px){.sidebar{width:min(280px,82vw);height:100dvh;max-height:none;padding:calc(1rem + env(safe-area-inset-top)) .8rem calc(1rem + env(safe-area-inset-bottom)) calc(.8rem + env(safe-area-inset-left));z-index:200;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:0 18px 18px 0;transition:transform .22s;position:fixed;top:0;bottom:auto;left:0;overflow-y:auto;transform:translate(-100%);box-shadow:0 12px 40px #00000038}.sidebar--open{transform:translate(0)}.sidebar nav ul{grid-template-columns:1fr}.nav-item{text-align:left;padding:.85rem .8rem}}@media (prefers-reduced-motion:reduce){.sidebar{transition:none}}.header{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:18px;justify-content:space-between;align-items:center;gap:.6rem;padding:.9rem 1.1rem;display:flex;position:relative}.header-left{flex-direction:row;align-items:center;gap:.7rem;min-width:0;display:flex}.header-brand{flex-direction:column;gap:.12rem;min-width:0;display:flex}.header__menu-toggle{width:2.5rem;height:2.5rem;color:var(--text);border:1px solid var(--border);background:0 0;border-radius:10px;flex:none;justify-content:center;align-items:center;padding:0;font-size:1.25rem;display:none}.header__menu-toggle:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:#ffcab8;transform:none}.logo-mark{letter-spacing:.16em;font-size:1.2rem;font-weight:700}.logo-subtitle{color:var(--muted-text);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.header-right{flex:none;align-items:center;gap:.6rem;display:flex}.user-email{background:var(--accent-soft);color:var(--accent-ink);border-radius:999px;align-items:center;gap:.35rem;padding:.3rem .65rem;font-size:.85rem;text-decoration:none;transition:background-color .2s;display:inline-flex}.user-email:hover{background:var(--accent);color:#fff}.user-email__icon{flex:none;display:none}.header-right button{padding-inline:.85rem}.header__logout{white-space:nowrap;flex:none;justify-content:center;align-items:center;gap:.35rem;display:inline-flex}.header__logout-icon{flex:none;display:none}@media (width<=1024px){.header__menu-toggle{display:inline-flex}.header{gap:.5rem;padding:.7rem .8rem}.header-right{gap:.4rem}.logo-subtitle{display:none}.user-email{border-radius:50%;justify-content:center;width:2.25rem;height:2.25rem;padding:0}.user-email__icon{display:block}.user-email__text{display:none}.header-right button.header__logout{width:2.25rem;height:2.25rem;padding:0}.header__logout-icon{display:block}.header__logout-text{display:none}.notif__panel{width:auto;left:0;right:0}}@media (width<=380px){.header{gap:.35rem}.header-right{gap:.3rem}.header__menu-toggle{width:2.25rem;height:2.25rem}}.ui-modal__overlay{z-index:100;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0;overflow-y:auto}.ui-modal__box{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;margin:auto;padding:1.75rem;animation:.16s ease-out ui-modal-in;box-shadow:0 12px 40px #0000002e}@keyframes ui-modal-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.ui-modal__box--sm{max-width:560px}.ui-modal__box--md{max-width:720px}.ui-modal__box--lg{max-width:900px}.ui-modal__box--xl{max-width:1120px}.ui-modal__head{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.ui-modal__title{min-width:0;margin:0;font-size:1.15rem}.ui-modal__close{cursor:pointer;color:var(--muted-text);background:0 0;border:none;flex:none;padding:0 .25rem;font-size:1.6rem;line-height:1}.ui-modal__close:hover{color:var(--text);background:0 0;transform:none}@media (width<=1024px){.ui-modal__overlay{align-items:flex-start;padding:.5rem}.ui-modal__box{padding:1.25rem}}.ui-modal__box--sheet{padding-bottom:calc(1.75rem + env(safe-area-inset-bottom))}.ui-modal__grabber{display:none}@keyframes ui-sheet-in{0%{opacity:.6;transform:translateY(14%)}to{opacity:1;transform:translateY(0)}}@media (width<=1024px){.ui-modal__overlay--sheet{align-items:flex-end;padding:0}.ui-modal__box--sheet{-webkit-overflow-scrolling:touch;width:100%;max-width:none;max-height:88dvh;padding:.5rem 1rem calc(1rem + env(safe-area-inset-bottom));border-bottom:0;border-radius:18px 18px 0 0;margin:0;animation:.2s ease-out ui-sheet-in;overflow-y:auto}.ui-modal__box--sheet .ui-modal__grabber{background:var(--border);border-radius:999px;width:40px;height:4px;margin:4px auto 10px;display:block}.ui-modal__box--sheet .ui-modal__close{min-width:44px;min-height:44px}}@media (width>=701px) and (width<=1024px){.ui-modal__box--sheet{max-width:760px;margin:0 auto}}.help-view{flex-direction:column;gap:1.25rem;display:flex}.help-view__section{flex-direction:column;gap:.5rem;display:flex}.help-view__heading{letter-spacing:.06em;text-transform:uppercase;color:var(--accent-ink);margin:0;font-size:.78rem;font-weight:700}.help-view__text{color:var(--text);line-height:1.55}.help-view__steps{color:var(--text);flex-direction:column;gap:.4rem;margin:0;padding-left:1.25rem;line-height:1.5;display:flex}.help-view__buttons{flex-direction:column;gap:.55rem;margin:0;display:flex}.help-view__button-row{background:var(--surface-strong);border:1px solid var(--border-soft);border-radius:8px;grid-template-columns:minmax(min(140px,100%),.9fr) 1.6fr;gap:.75rem;padding:.55rem .7rem;display:grid}.help-view__button-name{color:var(--text);margin:0;font-weight:600}.help-view__button-desc{color:var(--muted-text);margin:0;line-height:1.45}@media (width<=640px){.help-view__button-row{grid-template-columns:1fr;gap:.2rem}}.help-btn__wrap{display:inline-flex;position:relative}.help-btn{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--accent-ink);cursor:pointer;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;font-size:1.05rem;font-weight:700;line-height:1;display:inline-flex}.help-btn:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink);transform:none}.help-btn__tooltip{background:var(--text);color:#fff;width:max-content;max-width:280px;box-shadow:var(--shadow);opacity:0;visibility:hidden;z-index:200;text-align:left;pointer-events:none;border-radius:10px;flex-direction:column;gap:.25rem;padding:.65rem .8rem;font-size:.82rem;line-height:1.4;transition:opacity .15s,transform .15s,visibility .15s;display:flex;position:absolute;top:calc(100% + 10px);right:0;transform:translateY(-4px)}.help-btn__wrap:hover .help-btn__tooltip,.help-btn:focus-visible+.help-btn__tooltip{opacity:1;visibility:visible;transform:translateY(0)}.help-btn__tooltip:before{content:"";border:6px solid #0000;border-bottom-color:var(--text);position:absolute;bottom:100%;right:12px}.help-btn__tooltip-title{font-size:.85rem}.help-btn__tooltip-hint{opacity:.75;margin-top:.15rem;font-size:.74rem}.help-modal.ui-modal__box--lg{max-width:920px}.help-modal__footer{border-top:1px solid var(--border-soft);justify-content:flex-end;margin-top:1.5rem;padding-top:1rem;display:flex}.help-modal__link{color:var(--accent-ink);border:1px solid var(--border);background:0 0;border-radius:10px;padding:.5rem .85rem;font-weight:600}.help-modal__link:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink);transform:none}@media (width<=480px){.help-btn__tooltip{max-width:220px}}.notif{position:relative}.notif__toggle{border:1px solid var(--border);color:var(--text);cursor:pointer;background:0 0;border-radius:8px;padding:6px 10px;font-size:16px;line-height:1;position:relative}.notif__toggle:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.notif__toggle:focus-visible{box-shadow:0 0 0 3px var(--focus);outline:none}.notif__count{background:var(--cta);color:#fff;text-align:center;border-radius:999px;min-width:18px;height:18px;padding:0 4px;font-size:11px;font-weight:600;line-height:18px;position:absolute;top:-6px;right:-6px}.notif__panel{overscroll-behavior:contain;background:var(--surface);border:1px solid var(--border);width:min(360px,100vw - 32px);max-height:min(70vh,460px);box-shadow:var(--shadow);z-index:200;border-radius:10px;padding:10px;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto}.notif__head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.notif__title{margin:0;font-size:15px}.notif__mark-all{color:var(--accent-ink);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 6px;font-size:13px}.notif__mark-all:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.notif__list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.notif__item{text-align:left;background:var(--surface-strong);border:1px solid var(--border-soft);width:100%;font:inherit;color:var(--text);cursor:pointer;border-radius:8px;padding:8px 10px}.notif__item:hover{background:var(--accent-soft);color:var(--text);transform:none}.notif__item--unread{border-left:3px solid var(--accent)}.notif__item-title{font-size:14px;font-weight:600;display:block}.notif__item-body{color:var(--muted-text);margin-top:2px;font-size:13px;display:block}.notif__empty{color:var(--muted-text);margin:6px 2px;font-size:13px}@media (width<=1024px){.notif{position:static}.notif__toggle{justify-content:center;align-items:center;width:2.25rem;height:2.25rem;padding:0;display:inline-flex}.notif__panel{max-height:min(65vh,420px)}.notif__mark-all{padding:4px 2px;font-size:12px}.notif__item-title,.notif__item-body{overflow-wrap:anywhere}}.offline-banner{z-index:120;border:1px solid var(--status-warning-border);background:var(--status-warning-bg);color:var(--status-warning-text);border-radius:12px;margin:0 0 .8rem;padding:.65rem .9rem;font-size:.9rem;line-height:1.4;position:sticky;top:0}.offline-banner__title{font-weight:700}@media (width<=1024px){.offline-banner{top:env(safe-area-inset-top);margin-bottom:.6rem;font-size:.85rem}}.ui-btn{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:.4rem;font-weight:600;transition:background-color .2s,border-color .2s,transform .2s;display:inline-flex}.ui-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.ui-btn:focus-visible{outline:3px solid var(--focus);outline-offset:1px}.ui-btn--md{padding:.62rem .95rem}.ui-btn--sm{border-radius:8px;padding:.4rem .7rem;font-size:.85rem}.ui-btn--primary{background:var(--cta);color:#fff}.ui-btn--primary:hover:not(:disabled){background:var(--cta-hover);transform:translateY(-1px)}.ui-btn--secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.ui-btn--secondary:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-ink);border-color:#ffcab8;transform:none}.ui-btn--ghost{color:var(--text);background:0 0}.ui-btn--ghost:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-ink);transform:none}.ui-btn--danger{color:#b91c1c;background:0 0;border-color:#fca5a5}.ui-btn--danger:hover:not(:disabled){background:#fef2f2;transform:none}.bio-prompt p{color:var(--text);margin:0 0 .8rem;line-height:1.5}.bio-prompt__note{color:var(--muted-text);font-size:.9rem}.bio-prompt__actions{justify-content:flex-end;gap:.75rem;margin-top:1.1rem;display:flex}.bio-prompt__footnote{color:var(--muted-text);margin:1rem 0 0;font-size:.82rem}.bio-prompt .alert{margin:0 0 .8rem}@media (width<=560px){.bio-prompt__actions{flex-direction:column-reverse}.bio-prompt__actions .ui-btn{width:100%;min-height:46px}}.app-layout{width:100%;min-height:100dvh;padding:calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));flex-direction:column;margin:0 auto;display:flex}.main-content{flex:1;gap:1rem;min-width:0;display:flex}.workspace-main{background:var(--surface-strong);border:1px solid var(--border);min-width:0;min-height:calc(100dvh - 124px);box-shadow:var(--shadow);border-radius:18px;flex:1;padding:1.2rem}.app-layout__backdrop{display:none}@media (width<=1024px){.app-layout{padding:calc(.7rem + env(safe-area-inset-top)) calc(.7rem + env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) calc(.7rem + env(safe-area-inset-left))}.main-content{flex-direction:column}.workspace-main{min-height:auto}body.app-layout--drawer-open{overflow:hidden}.app-layout__backdrop{z-index:150;background:#0006;display:block;position:fixed;inset:0}.workspace-main{overflow-x:clip}}.lead{max-width:1280px;margin:0 auto;padding:24px}.lead__top{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.lead__kicker{text-transform:uppercase;letter-spacing:.08em;color:var(--muted-text);margin:0;font-size:12px}.lead__title{margin:4px 0 0;font-size:26px}.lead__subtitle{color:var(--muted-text);max-width:62ch;margin:6px 0 0}.lead__btn{color:var(--text);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:8px;padding:8px 14px;font-size:14px}.lead__btn:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.lead__btn:disabled{cursor:not-allowed;opacity:.6}.lead__btn--primary{background:var(--cta);color:#fff;border-color:var(--cta)}.lead__btn--primary:hover{background:var(--cta-hover);color:#fff;transform:translateY(-1px)}.lead__btn--danger{color:var(--status-error-text);border-color:var(--status-error-border)}.lead__btn--danger:hover{background:var(--status-error-bg);color:var(--status-error-text);transform:none}.lead__btn--sm{padding:5px 10px;font-size:13px}.lead__banner{background:var(--status-warning-bg);border:1px solid var(--status-warning-border);color:var(--status-warning-text);border-radius:10px;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px 14px;font-size:14px;display:flex}.lead__banner a{color:inherit;font-weight:600}.lead__toolbar{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px;padding:14px 16px;display:flex}.lead__field{flex-direction:column;gap:4px;min-width:160px;display:flex}.lead__field--grow{flex:240px}.lead__field--narrow{flex:0 120px;min-width:100px}.lead__label{color:var(--muted-text);font-size:13px}.lead__input,.lead__select,.lead__textarea{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;width:100%;padding:8px 10px;font-family:inherit;font-size:14px}.lead__textarea{resize:vertical;min-height:80px}.lead__input:focus-visible,.lead__select:focus-visible,.lead__textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus);outline:none}.lead__views{border:1px solid var(--border);border-radius:8px;gap:4px;padding:3px;display:flex}.lead__view-btn{color:var(--muted-text);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:6px 12px;font-size:14px}.lead__view-btn:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.lead__view-btn--active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.lead__summary{flex-wrap:wrap;gap:10px;margin-bottom:16px;display:flex}.lead__stat{text-align:left;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:10px;min-width:130px;padding:10px 14px;display:block}.lead__stat:hover{background:var(--accent-soft);color:var(--text);border-color:var(--accent);transform:none}.lead__stat:focus-visible{box-shadow:0 0 0 3px var(--focus);outline:none}.lead__stat--active{background:var(--accent-soft);border-color:var(--accent)}.lead__stat--active .lead__stat-label{color:var(--accent-ink);font-weight:600}.lead__active-filter{color:var(--muted-text);flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;font-size:14px;display:flex}.lead__stat-value{font-size:20px;font-weight:600;display:block}.lead__stat-label{color:var(--muted-text);font-size:13px}.lead__stat--overdue .lead__stat-value{color:var(--status-error-text)}.lead__table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow-x:auto}.lead__table{border-collapse:collapse;width:100%;font-size:14px}.lead__table th,.lead__table td{text-align:left;border-bottom:1px solid var(--border-soft);vertical-align:middle;padding:10px 14px}.lead__table th{color:var(--muted-text);white-space:nowrap;font-size:13px;font-weight:600}.lead__table tbody tr:last-child td{border-bottom:none}.lead__table tbody tr:hover{background:var(--accent-soft)}.lead__row-name{font:inherit;color:var(--text);cursor:pointer;text-align:left;background:0 0;border:none;padding:0;font-weight:600}.lead__row-name:hover{color:var(--accent-ink);background:0 0;text-decoration:underline;transform:none}.lead__row-sub{color:var(--muted-text);font-size:12px;font-weight:400;display:block}.lead__cell-actions{white-space:nowrap;text-align:right}.lead__badge{border:1px solid var(--border);background:var(--bg);color:var(--muted-text);white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:12px;display:inline-block}.lead__badge--won{background:var(--status-success-bg);border-color:var(--status-success-border);color:var(--status-success-text)}.lead__badge--lost{background:var(--status-error-bg);border-color:var(--status-error-border);color:var(--status-error-text)}.lead__badge--overdue{background:var(--status-error-bg);border-color:var(--status-error-border);color:var(--status-error-text);font-weight:600}.lead__badge--today{background:var(--status-warning-bg);border-color:var(--status-warning-border);color:var(--status-warning-text);font-weight:600}.lead__kanban{align-items:flex-start;gap:12px;padding-bottom:8px;display:flex;overflow-x:auto}.lead__column{background:var(--bg);border:1px solid var(--border);border-radius:10px;flex:0 0 260px;min-height:120px;padding:10px}.lead__column--over{border-color:var(--accent);background:var(--accent-soft)}.lead__column-head{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.lead__column-title{margin:0;font-size:14px;font-weight:600}.lead__column-count{color:var(--muted-text);font-size:12px}.lead__card{background:var(--surface);border:1px solid var(--border);cursor:grab;text-align:left;width:100%;font:inherit;color:var(--text);border-radius:8px;margin-bottom:8px;padding:10px;display:block}.lead__card:hover{background:var(--accent-soft);color:var(--text);border-color:var(--accent);transform:none}.lead__card--overdue{border-left:3px solid var(--status-error-border)}.lead__card-name{font-weight:600;display:block}.lead__card-meta{color:var(--muted-text);margin-top:2px;font-size:12px;display:block}.lead__column-empty{color:var(--muted-text);margin:6px 2px;font-size:13px}.lead__empty{background:var(--surface);border:1px dashed var(--border);text-align:center;border-radius:10px;padding:40px 24px}.lead__empty h2{margin:0 0 6px;font-size:18px}.lead__empty p{color:var(--muted-text);margin:0 0 16px}.lead__form{flex-direction:column;gap:14px;display:flex}.lead__row{flex-wrap:wrap;gap:12px;display:flex}.lead__row>.lead__field{flex:180px}.lead__row>.lead__field--grow{flex:2 160px}.lead__row>.lead__field--narrow{flex:0 120px;min-width:100px}.lead__form-actions{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.lead__error{color:var(--status-error-text);margin:2px 0 0;font-size:13px}.lead__hint{color:var(--muted-text);margin:0;font-size:13px}.lead__detail{flex-direction:column;gap:18px;display:flex}.lead__detail-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lead__detail-actions{flex-wrap:wrap;gap:8px;display:flex}.lead__facts{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin:0;display:grid}.lead__fact dt{color:var(--muted-text);text-transform:uppercase;letter-spacing:.04em;font-size:12px}.lead__fact dd{word-break:break-word;margin:2px 0 0;font-size:15px}.lead__section-title{margin:0 0 8px;font-size:16px}.lead__section{border-top:1px solid var(--border-soft);padding-top:14px}.lead__notes{flex-direction:column;gap:10px;margin:12px 0 0;padding:0;list-style:none;display:flex}.lead__note{border:1px solid var(--border);background:var(--surface-strong);border-radius:8px;padding:10px 12px}.lead__note-meta{color:var(--muted-text);flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:4px;font-size:12px;display:flex}.lead__note-body{white-space:pre-wrap;margin:0}.lead__note-actions{gap:6px;display:flex}.lead__services{flex-direction:column;gap:6px;margin:0 0 10px;padding:0;list-style:none;display:flex}.lead__service{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;font-size:14px;display:flex}.lead__service-wf{color:var(--muted-text);font-size:12px}.lead__convert{flex-direction:column;gap:14px;display:flex}.lead__warning{background:var(--status-warning-bg);border:1px solid var(--status-warning-border);color:var(--status-warning-text);border-radius:8px;margin:0;padding:10px 12px;font-size:14px}.lead__check{align-items:center;gap:8px;font-size:14px;display:flex}.lead__check input{width:auto}.lead__wf-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.lead__wf-item{border:1px solid var(--border);border-radius:8px;padding:8px 10px}@media (width<=1024px){.lead{padding:16px}.lead__toolbar{flex-direction:column;align-items:stretch}}.lead__cards{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.lead__cards-more{justify-content:center;padding:12px 0 4px;display:flex}.lead__cards-more .lead__btn{min-height:44px}.lead__mfilters{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.lead__mfilters-row{gap:8px;display:flex}.lead__mfilters-search{flex:auto;min-width:0;min-height:44px;font-size:16px}.lead__mfilters-toggle{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);font:inherit;border-radius:8px;flex:none;align-items:center;gap:6px;padding:0 14px;font-weight:600;display:inline-flex}.lead__mfilters-toggle:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.lead__mfilters-toggle--active,.lead__mfilters-toggle--active:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);transform:none}.lead__mfilters-count{background:var(--cta);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:12px;display:inline-flex}.lead__mfilters-panel{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-direction:column;gap:12px;padding:12px;display:flex}.lead__mfilters-panel .lead__field{min-width:0}.lead__mfilters-panel .lead__select{min-height:44px;font-size:16px}.lead__mfilters-panel .lead__views{align-self:stretch}.lead__mfilters-panel .lead__view-btn{flex:1 1 0;min-height:40px}.lead__mfilters-panel>.lead__btn{min-height:44px}.lead__mbar{z-index:40;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--bg);background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:fixed;bottom:0;left:0;right:0}.lead__mbar-btn{background:var(--cta);color:#fff;width:100%;min-height:50px;font:inherit;border:0;border-radius:14px;font-size:1rem;font-weight:700}.lead__mbar-btn:hover{background:var(--cta-hover);color:#fff;transform:none}@media (width<=1024px){.lead.lead--mobile{padding:0}.lead.lead--with-bar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.lead--mobile .lead__summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.lead--mobile .lead__stat{min-width:0;min-height:64px;padding:8px 10px}.lead--mobile .lead__active-filter .lead__btn{min-height:40px}}.dashboard-hero{margin-bottom:1.5rem}.dashboard-kicker{color:var(--accent);letter-spacing:.14em;text-transform:uppercase;margin:0;font-size:.78rem;font-weight:700}.dashboard-subtitle{max-width:52ch;color:var(--muted-text);margin-top:.7rem}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:1rem}.stat-card--link{text-align:left;width:100%;color:var(--text);cursor:pointer;flex-direction:column;transition:border-color .2s,box-shadow .2s,transform .2s;display:flex}.stat-card--link:hover{background:var(--surface);border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-1px)}.stat-card--alert{background:#fef2f2;border-color:#fca5a5}.stat-card--alert:hover{background:#fef2f2;border-color:#f87171}.stat-card--alert .stat-value{color:#b91c1c}.stat-label{color:var(--muted-text);text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:.82rem}.stat-value{color:var(--text);margin:.25rem 0;font-size:1.95rem;font-weight:700}.stat-meta{color:var(--muted-text);margin:0;font-size:.9rem}.dashboard-stats-error{color:#b91c1c;background:#fef2f2;border:1px solid #fca5a5;border-radius:12px;margin-bottom:1.5rem;padding:.8rem 1rem}.workspace-grid{grid-template-columns:2fr 1.2fr;gap:1rem;display:grid}.panel-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:1rem 1.1rem}.panel-card h2{margin-top:0;margin-bottom:.9rem}.set-list{margin:0;padding:0;list-style:none}.set-list li{border-top:1px solid var(--border-soft);justify-content:space-between;align-items:center;gap:.8rem;padding:.8rem 0;display:flex}.set-list li:first-child{border-top:0;padding-top:0}.status-badge{background:var(--accent-soft);color:var(--accent-ink);border-radius:999px;padding:.3rem .65rem;font-size:.78rem;font-weight:600;display:inline-block}.status-badge.done{color:#287746;background:#e7f6ed}.actions-grid{gap:.7rem;display:grid}.actions-grid button{justify-content:center;width:100%}@media (width<=1024px){.stats-grid,.workspace-grid{grid-template-columns:1fr}}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=1024px){.crm-form__grid,.crm-contacts__row,.crm-gar__row,.crm-seat__row,.crm-veh__row,.crm-svc__row,.crm-ins__row,.crm-cred__row,.crmd__info,.ai-type-form__grid,.fin__summary,.sale__form,.wf__meta,.wf__details,.wfp__filters,.fnp__filters,.gar__row,.fsm__form,.svf__fields,.dtm__form-row,.dtm__editor,.add-user-form{grid-template-columns:1fr}.crmd{max-width:none}.set-list li{flex-wrap:wrap}}@media (width>=701px) and (width<=1024px){.crm-form__grid,.crm-contacts__row,.crm-gar__row,.crm-seat__row,.crm-veh__row,.crm-svc__row,.crm-ins__row,.crm-cred__row,.crmd__info,.ai-type-form__grid,.fin__summary,.sale__form,.wf__meta,.wf__details,.wfp__filters,.fnp__filters,.gar__row,.fsm__form,.svf__fields,.dtm__form-row,.dtm__editor,.add-user-form,.stats-grid,.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dtm__editor{grid-template-columns:1fr}}.access-error{border:1px solid var(--status-warning-border);background:var(--status-warning-bg);max-width:520px;color:var(--status-warning-text);border-radius:12px;flex-direction:column;align-items:flex-start;gap:10px;margin:2rem auto;padding:1.25rem 1.5rem;display:flex}.access-error__title{margin:0;font-size:1.05rem}.access-error__text{margin:0;font-size:.9rem}.access-error__btn{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;padding:.5rem 1rem;font-size:.9rem}.access-error__btn:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.dashboard-hero__top{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.dashboard-hero__actions{flex-wrap:wrap;gap:.5rem;display:flex}.dash-edit{flex-direction:column;gap:1.5rem;margin-top:.5rem;display:flex}.dash-edit__zone-title{margin-bottom:.75rem;font-size:1.05rem}.dash-edit__list{flex-direction:column;gap:.6rem;display:flex}.dash-edit__list--grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:.6rem;display:grid}.dash-edit__item{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:.6rem;padding:.6rem .75rem;display:flex}.dash-edit__item--hidden{background:var(--bg);color:var(--muted-text);border-style:dashed}.dash-edit__handle{width:2rem;height:2rem;color:var(--muted-text);border:1px solid var(--border);cursor:grab;touch-action:none;background:0 0;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;font-size:1.1rem;display:inline-flex}.dash-edit__handle:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:#ffcab8;transform:none}.dash-edit__handle:active{cursor:grabbing}.dash-edit__label{flex:1;font-weight:500}.dash-edit__toggle{color:var(--muted-text);cursor:pointer;flex:none;align-items:center;gap:.4rem;font-size:.85rem;display:inline-flex}.dash-edit__toggle input{width:auto}.empty-state{border:1px dashed var(--border);background:var(--surface);color:var(--muted-text);border-radius:14px;flex-direction:column;align-items:flex-start;gap:.75rem;padding:1.5rem;display:flex}@media (width<=1024px){.dash-edit__item{flex-wrap:wrap}}.ui-denied{border:1px solid var(--status-warning-border);background:var(--status-warning-bg);max-width:520px;color:var(--status-warning-text);border-radius:12px;flex-direction:column;align-items:flex-start;gap:10px;margin:2rem auto;padding:1.25rem 1.5rem;display:flex}.ui-denied__title{margin:0;font-size:1.05rem}.ui-denied__text{margin:0;font-size:.9rem}.ui-denied__link{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);border-radius:8px;align-items:center;padding:.5rem 1rem;font-size:.9rem;text-decoration:none;display:inline-flex}.ui-denied__link:hover{background:var(--accent-soft);color:var(--accent-ink);transform:none}.ui-confirm__desc{color:var(--text);white-space:pre-line;margin:0 0 1.25rem;font-size:.95rem;line-height:1.5}.ui-confirm__actions{justify-content:flex-end;gap:.75rem;display:flex}.ui-toast__viewport{bottom:calc(1.25rem + env(safe-area-inset-bottom));right:calc(1.25rem + env(safe-area-inset-right));z-index:1000;pointer-events:none;position:fixed}.ui-toast__list{flex-direction:column;gap:.6rem;max-width:min(380px,100vw - 2rem);margin:0;padding:0;list-style:none;display:flex}.ui-toast{pointer-events:auto;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--muted-text);box-shadow:var(--shadow);border-radius:12px;align-items:flex-start;gap:.6rem;padding:.75rem .9rem;animation:.18s ease-out ui-toast-in;display:flex}@keyframes ui-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.ui-toast__icon{color:#fff;background:var(--muted-text);border-radius:50%;flex:none;justify-content:center;align-items:center;width:1.4rem;height:1.4rem;margin-top:1px;font-size:.85rem;font-weight:700;display:inline-flex}.ui-toast__msg{color:var(--text);flex:1;font-size:.92rem;line-height:1.35}.ui-toast__close{color:var(--muted-text);cursor:pointer;background:0 0;border:none;flex:none;padding:0 .15rem;font-size:1.25rem;line-height:1}.ui-toast__close:hover{color:var(--text);background:0 0;transform:none}.ui-toast--success{border-left-color:#16a34a}.ui-toast--success .ui-toast__icon{background:#16a34a}.ui-toast--error{border-left-color:#dc2626}.ui-toast--error .ui-toast__icon{background:#dc2626}.ui-toast--info{border-left-color:var(--accent)}.ui-toast--info .ui-toast__icon{background:var(--accent)}@media (width<=1024px){.ui-toast__viewport{bottom:1rem;left:1rem;right:1rem}.ui-toast__list{max-width:none}.ui-tabs{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;flex-wrap:nowrap;padding-bottom:1px;overflow:auto hidden}.ui-tabs::-webkit-scrollbar{display:none}.ui-tabs>*{scroll-snap-align:start;white-space:nowrap;flex:none}}.ui-act--edit{--ui-act-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E")}.ui-act--delete{--ui-act-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E")}@media (width<=1024px){.ui-act{flex:none;justify-content:center;align-items:center;gap:0;width:2.25rem;min-width:2.25rem;height:2.25rem;padding:0;font-size:0;line-height:0;display:inline-flex}.ui-act:before{content:"";width:1.05rem;height:1.05rem;-webkit-mask:var(--ui-act-icon) center / contain no-repeat;-webkit-mask:var(--ui-act-icon) center / contain no-repeat;mask:var(--ui-act-icon) center / contain no-repeat;background:currentColor}.ui-act:disabled:before{opacity:.6}}@media (pointer:coarse){:where([class*=__btn--sm],.ui-btn--sm,.ui-act,.dash-edit__handle,.foe__handle){min-width:44px;min-height:44px}}@media (width<=1024px){:where(p,span,li,a,dd,dt,h1,h2,h3,h4,strong,em,small,label,code,figcaption){overflow-wrap:anywhere}:where(td,th,td *,th *){overflow-wrap:normal}:where(input,select,textarea){min-width:0}:where(img,svg,video,canvas,iframe,embed,object){max-width:100%}:where(pre){overflow-x:auto}:where([class*=__header],[class*=__head],[class*=__toolbar],[class*=__actions],[class*=__filters],[class*=__item],[class*=__row],[class*=__top],[class*=-item]){flex-wrap:wrap}}.task-form--stacked,.task-form--stacked .task-form__fields{flex-direction:column;gap:12px;display:flex}.task-form--stacked .wfp__input,.task-form--stacked .wfp__select,.task-form--stacked textarea{min-height:44px;font-size:16px}.task-form__submit{width:100%;min-height:48px;font-weight:700}.task-form__submit:hover{background:var(--cta-hover);color:#fff;transform:none}@media (width>=701px){.task-form--stacked,.task-form--stacked .task-form__fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px 14px;display:grid}:is(.task-form--stacked>.task-form__fields,.task-form--stacked>.task-rec,.task-form--stacked>.task-form__submit,.task-form--stacked .wfp__field:has(textarea)){grid-column:1/-1}}@media (width>=701px) and (width<=1024px){.trec,.tlist__group,.lead__cards,.vatc__list,.kalm__list,.vehm__list,.bum__list,.fin-page__cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;display:grid}.tlist__group-title{grid-column:1/-1}.ukoly-m__bar,.lead__mbar,.crmm__bar,.kalm__bar{padding-inline:max(12px,50% - 280px)}}
