@font-face{font-family:Manrope;src:url('/assets/manrope-regular.ttf')}@font-face{font-family:Manrope;src:url('/assets/manrope-bold.ttf');font-weight:700}*{box-sizing:border-box}body{margin:0;background:#fafaf9;color:#202220;font-family:Manrope,Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #458275;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #416b60;outline-offset:1px}input,select,textarea{width:100%;border:1px solid #d9dcd7;background:#fff;color:#202220;padding:11px 12px;border-radius:6px;min-height:44px}textarea{resize:vertical;line-height:1.65}label{display:block;font-size:13px;font-weight:700}label input,label select,label textarea{margin-top:6px;font-weight:400}label small{display:block;color:#70756f;font-weight:400;margin-top:5px}p{margin:0 0 16px}h1,h2,h3{margin:0;letter-spacing:-.035em;line-height:1.2}h1{font-size:34px}h2{font-size:22px}h3{font-size:16px}small,.small-text{font-size:12px}.muted{color:#747a73}.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#171a18;color:#fafcf9;padding:36px 20px 24px;position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column}.brand{text-decoration:none;padding:0 12px 40px;display:block}.brand strong{font-size:26px;letter-spacing:-1px;display:block}.brand strong span{font-size:12px;vertical-align:top;letter-spacing:0;margin-left:4px}.brand>span{font-size:11px;color:#9ba49b;display:block;margin-top:6px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 10px;margin:5px 0;text-decoration:none;border-radius:6px;font-size:13px;color:#afb8b0}.nav-item:hover{background:#262d28;color:#fff}.nav-item.active{background:#f0f3ee;color:#181c18}.nav-symbol{font-size:19px;width:20px;text-align:center}.nav-count{margin-left:auto;font-size:11px;opacity:.7}.sidebar-foot{margin-top:auto;padding:32px 10px 0}.sidebar-button{background:none;border:0;padding:0;color:#d6dfd5;font-size:11px;text-align:left;text-decoration:underline;text-underline-offset:4px}main{grid-column:2;min-width:0}.topbar{min-height:78px;border-bottom:1px solid #e7e9e3;display:flex;justify-content:flex-end;align-items:center;gap:20px;padding:16px 36px;background:#fff}.topbar>div{display:flex;align-items:center;gap:10px}#breadcrumb{font-size:12px;color:#737970}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:11px 18px;text-decoration:none;border:1px solid transparent;border-radius:6px;font-weight:700;font-size:13px;white-space:nowrap}.button.small{padding:9px 13px;min-height:40px;font-size:12px}.primary{background:#202820;color:#fff}.primary:hover{background:#3b4a3d}.secondary{background:#fff;border-color:#d9ded6;color:#344132}.secondary:hover{background:#f1f4ef}.page-content{padding:40px 36px;max-width:1800px;margin:auto}.page-heading{margin-bottom:30px}.page-heading h1{margin-bottom:12px}.page-heading h1 span{font-size:13px;letter-spacing:0;color:#677064;background:#e9ede6;border-radius:30px;padding:5px 11px;margin-left:12px;vertical-align:middle}.page-heading p:last-child{color:#747b72;font-size:13px;margin:0}.eyebrow{font-size:10px!important;letter-spacing:.13em;color:#828a7f;margin-bottom:14px!important;font-weight:700}.toolbar{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.toolbar .search{flex:1;min-width:220px}.toolbar input{margin:0}.toolbar select{width:auto;min-width:130px;font-size:12px}.table-wrap{background:white;border:1px solid #e2e6de;border-radius:9px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;min-width:780px}th{padding:15px 18px;font-weight:400;color:#7c8478;background:#f7f9f4;font-size:11px;border-bottom:1px solid #e5e9e0}td{padding:22px 18px;border-bottom:1px solid #edf0e9;vertical-align:middle;font-size:12px}tr:last-child td{border:0}tbody tr:hover{background:#fbfcf8}.company-link,.next-link{border:0;background:none;text-align:left;color:#222a20;padding:0;line-height:1.5}.company-link{font-size:14px;font-weight:700}.company-link:hover{text-decoration:underline}.company-link small,.next-link small{display:block;font-weight:400;font-size:11px;color:#858d7f;margin-top:5px}.next-link{font-size:12px;max-width:220px}.next-link .overdue{color:#a04c36}.badge{font-size:10px;padding:5px 8px;background:#edf0e9;color:#65705f;border-radius:4px;white-space:nowrap}.stage-qualified,.stage-answered,.stage-discussion{background:#e7f1e7;color:#3d6c43}.stage-contacted,.stage-proposal{background:#fcf1d9;color:#906d23}.stage-won{background:#d9eddf;color:#326740}.stage-lost{background:#f5e7e1;color:#995b44}.channels{display:flex;gap:4px;flex-wrap:wrap}.channel-tag{font-size:10px;border:1px solid #e4e8df;border-radius:4px;padding:3px 6px}.list-foot{display:flex;justify-content:space-between;align-items:center;padding:18px 2px;font-size:11px;color:#838c7c}.text-action{border:0;background:none;padding:4px 0;color:#425b3c;font-size:12px;font-weight:700;text-underline-offset:3px}.text-action:hover{text-decoration:underline}.pipeline{display:flex;gap:15px;overflow:auto;padding-bottom:20px;min-height:280px}.pipeline-column{min-width:230px;width:230px;background:#f0f2ec;padding:14px;border-radius:8px}.pipeline-column h2{font-size:12px;letter-spacing:0;display:flex;justify-content:space-between;margin:0 0 20px}.pipeline-column h2 span{color:#7e8876}.pipeline-card{display:block;background:white;border:1px solid #e2e7dc;width:100%;text-align:left;padding:16px;border-radius:6px;margin-bottom:12px}.pipeline-card:hover{border-color:#76916c}.pipeline-card strong,.pipeline-card>span{display:block}.pipeline-card strong{font-size:14px}.pipeline-card>span{font-size:11px;color:#84907a;margin-top:6px}.pipeline-card p{font-size:12px;margin:20px 0 6px}.pipeline-card small{font-size:10px;color:#78816e}.pipeline-empty{font-size:11px;color:#7f8977}.empty-state{padding:65px 24px;text-align:center;border:1px dashed #cdd5c5;border-radius:8px}.empty-state h2{margin:15px 0}.empty-state p{color:#79816f;font-size:13px}.empty-mark{font-size:36px;color:#59704e}dialog{border:1px solid #e0e5da;padding:0;color:inherit;background:#fff;border-radius:12px;box-shadow:0 24px 100px #17200e30;max-height:92dvh;width:min(680px,calc(100% - 32px))}dialog::backdrop{background:#111a1466;}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:26px 30px;border-bottom:1px solid #e9ede4}.dialog-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#7c8774;margin:0 0 7px}.icon-button{border:1px solid #e0e6d9;background:white;border-radius:50%;width:40px;height:40px;flex-shrink:0;font-size:24px;line-height:1;color:#66715e}.dialog-scroll{padding:25px 30px;max-height:64dvh;overflow-y:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.form-section-title{margin:30px 0 18px}.dialog-scroll>label{margin-top:18px}.dialog-footer{padding:18px 30px;border-top:1px solid #e8ede2;display:flex;justify-content:space-between;gap:12px;align-items:center}.dialog-footer>div{display:flex;gap:8px;margin-left:auto}.inline-error{color:#a34c35;font-size:12px;margin:8px 0;white-space:pre-wrap}.inline-error:empty{display:none}.client-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(650px,100%);max-height:100dvh;height:100dvh;border-radius:0;border:0;overflow-y:auto}.client-drawer .dialog-header{position:sticky;top:0;z-index:1;background:#fff}.drawer-body{padding:20px 30px 50px}.card-actions{display:flex;justify-content:space-between;margin-bottom:22px}.action-box{background:#f4f6f0;padding:18px;border-radius:7px}.action-box>label{margin-bottom:15px}.action-box{display:grid;grid-template-columns:1fr 1fr auto;gap:15px;align-items:end}.action-bottom label{flex:1}.contact-links{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 12px}.meta-line{font-size:12px;color:#68755f}.personal-note{margin:25px 0;padding:15px;border:1px solid #dfe5d7;background:#fcfcfa}.personal-note h3{font-size:12px;letter-spacing:0;margin-bottom:8px}.personal-note p{font-size:12px;color:#6d775f;white-space:pre-wrap;margin:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin:30px 0 18px}.composer-options{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:end;gap:8px;margin-bottom:14px}.composer-options label{font-size:11px}.composer-options select{font-size:12px}.draft-status{font-size:10px;color:#849076;margin:7px 0 14px}.composer-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.sent-action{margin:16px 0 0}.history-section{margin-top:35px}.record-options{display:flex;gap:10px;margin-bottom:10px}.record-options select{font-size:12px}.history-section textarea{margin-bottom:10px}.history{margin-top:25px}.history-item{border:1px solid #e3e8dc;padding:16px;border-radius:8px;margin-bottom:12px}.history-item.incoming{background:#f2f6ec}.history-item.outgoing{background:#fafbf8}.history-item header{display:flex;justify-content:space-between;gap:10px;font-size:11px}.history-item small{font-size:10px;color:#818c75}.history-item p{font-size:12px;white-space:pre-wrap;margin:12px 0 0;overflow-wrap:anywhere}.history-empty{color:#929985;font-size:12px;line-height:1.8}.settings-form{max-width:760px}.settings-form section{margin:0 0 32px;padding-bottom:30px;border-bottom:1px solid #e1e7d8}.settings-form h2{font-size:18px;margin-bottom:20px}.settings-form section>label{margin-top:20px}.settings-form .muted{font-size:12px}.integration-note{margin:25px 0;font-size:12px}.file-input{margin-top:25px}.file-input input{padding:15px}.compact-dialog{width:min(560px,calc(100% - 32px))}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#253121;color:white;padding:14px 20px;border-radius:7px;font-size:12px;box-shadow:0 10px 35px #14200d33;z-index:100;max-width:calc(100% - 30px);width:max-content}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;z-index:100;background:white;padding:10px}.skip-link:focus{top:10px}.initial-loading{padding:30px}.skeleton-title,.skeleton-row{background:#eef1e8;border-radius:6px;height:30px;width:45%;margin-bottom:24px}.skeleton-row{height:65px;width:100%}.initial-loading p{font-size:12px;color:#818a76}#import-result{font-size:13px;color:#416239;margin-top:18px}
@media(min-width:1600px){.page-content{padding:48px 48px}.topbar{padding-inline:48px}}
@media(max-width:1100px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding-inline:12px}.page-content{padding:28px 22px}.topbar{padding:16px 22px}.toolbar select{min-width:110px}.brand strong{font-size:24px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:auto;padding:20px 16px 8px}.brand{padding:0 4px 18px;display:flex;justify-content:space-between;align-items:center}.brand>span{font-size:10px}.sidebar nav{display:flex;overflow-x:auto;gap:6px}.nav-item{padding:9px 12px;white-space:nowrap;flex-shrink:0;font-size:11px}.nav-symbol{display:none}.nav-count{margin-left:5px}.sidebar-foot{display:none}.topbar{padding:14px 16px;min-height:66px}.topbar>span{display:none}.topbar>div{width:100%;justify-content:space-between}.page-content{padding:30px 16px}h1{font-size:27px}.page-heading{margin-bottom:24px}.page-heading p:last-child{line-height:1.7}.toolbar{gap:8px}.toolbar .search{flex-basis:100%}.toolbar select{flex:1;min-width:0;font-size:11px;padding-inline:6px}.table-wrap{overflow:visible;background:transparent;border:0}table,tbody,tr,td{display:block;min-width:0}thead{display:none}tbody tr{position:relative;margin-bottom:14px;padding:18px;background:white;border:1px solid #e2e7db!important;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:14px}td{padding:0;border:0}td:first-child{grid-column:1/-1}.company-link{font-size:16px;width:100%;padding-right:80px;min-height:42px}td:nth-child(3){position:absolute;top:22px;right:18px}td:nth-child(2){grid-column:1/-1;display:flex;align-items:center;gap:8px}td:nth-child(2) .score-label{margin:0}td:nth-child(4){grid-column:1/-1}td:nth-child(5){grid-column:1/-1;font-size:10px;text-align:right}.next-link{font-size:12px}.channel-tag{font-size:10px}.list-foot{padding-top:5px}.drawer-body{padding:18px 18px 40px}.dialog-header{padding:20px 18px}.dialog-scroll{padding:20px 18px}.dialog-footer{padding:16px 18px;flex-wrap:wrap}.dialog-footer .inline-error{flex-basis:100%}.form-grid{gap:15px}.composer-options{grid-template-columns:1fr 1.4fr}.composer-options>button{grid-column:1/-1}.history-item header{flex-wrap:wrap}.action-bottom{gap:8px}.action-bottom .button{font-size:11px}.dialog-header h2{font-size:21px}.dialog-scroll{max-height:66dvh}.settings-form .form-grid{grid-template-columns:1fr}.toast{bottom:15px}.empty-state{padding:40px 20px}}
@media(prefers-reduced-motion:no-preference){.button,.nav-item{transition:background .15s}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

.nav-symbol svg{display:block;width:20px;height:20px}::selection{background:#dbe5d5;color:#1d281a}input,textarea{caret-color:#405739}*{scrollbar-color:#c4cebd #f3f5ef;scrollbar-width:thin}td,small,.nav-count{font-variant-numeric:tabular-nums}.muted,.company-link small,.next-link small,.draft-status,.meta-line,.history-empty,.list-foot,.page-heading p:last-child{color:#65705f}input::placeholder,textarea::placeholder{color:#71796b;opacity:1}.brand>span{color:#acb6aa}
th,.page-heading h1 span,.pipeline-column h2 span,.pipeline-card>span,.pipeline-card small,.pipeline-empty,.history-item small,#breadcrumb{color:#5d6856}.stage-contacted,.stage-proposal{color:#77571a}.meta-line{overflow-wrap:anywhere}.dialog-header h2{overflow-wrap:anywhere}.personal-note{margin-top:24px}.brand strong{letter-spacing:-1px}

.drawer-metadata{font-size:12px;color:#5d6856;margin:8px 0 0}.drawer-metadata:empty{display:none}

.delete-company-area{margin-top:36px;padding-top:20px;border-top:1px solid #e3e8dc}.danger-action{color:#a13c2d}
.score{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:26px;padding:0 9px;border-radius:13px;font-weight:700;font-size:12px;cursor:help}.score-hot{background:#e1efd9;color:#2c5720}.score-warm{background:#f6ebd2;color:#78530f}.score-cold{background:#eceeea;color:#646c60}.score-label{display:block;margin-top:5px;font-size:10px;color:#7c8478}
.score-help{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;display:inline-flex;gap:6px;align-items:center}.score-help span{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;border:1px solid #c4ccbd;font-size:9px}.score-help:hover{color:#2f3a2b}
.score-box{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;margin-bottom:18px;border:1px solid #e2e7dc;border-radius:9px;background:#fbfcf8}.score-box .score{height:42px;min-width:52px;font-size:17px;border-radius:21px;cursor:default}.score-box>div{flex:1;min-width:0}.score-box ul{margin:6px 0 0;padding:0;list-style:none;font-size:12px;color:#5d6856}.score-box li{display:flex;justify-content:space-between;gap:12px;padding:2px 0}.score-box li b{font-weight:700;color:#2f3a2b}.score-box .text-action{white-space:nowrap}
.legend-body{padding:18px 30px 26px}.legend-body h3{font-size:13px;margin:20px 0 8px}.legend-list{margin:0;border:1px solid #e5e9e0;border-radius:8px}.legend-list div{display:flex;justify-content:space-between;gap:16px;padding:9px 14px;border-bottom:1px solid #edf0e9;font-size:12px}.legend-list div:last-child{border:0}.legend-list dt{color:#3a4336}.legend-list dd{margin:0;font-weight:700;white-space:nowrap}
@media(max-width:700px){.toolbar #sort-by{flex-basis:100%}.score-box{flex-wrap:wrap}.legend-body{padding:16px 18px 22px}}
.heading-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0;margin-top:6px}
.site-box{padding:14px 16px;margin-bottom:18px;border:1px solid #e2e7dc;border-radius:9px;background:#fff}.site-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:13px}.site-head small{color:#7c8478;font-size:11px}.site-head .text-action{margin-left:auto}.site-box ul{margin:8px 0 0;padding-left:18px;font-size:12px;color:#5d6856;line-height:1.7}.site-box li.bad{color:#7a3d1c}.site-down,.site-issues{border-color:#ecd3bf;background:#fdf8f3}.site-ok{border-color:#d3e4c8}
.check-progress{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:90;display:flex;gap:16px;align-items:center;background:#fff;border:1px solid #cfd8c6;box-shadow:0 10px 30px #14200d22;padding:12px 18px;border-radius:9px;font-size:12px;max-width:calc(100% - 32px)}.check-progress[hidden]{display:none}
@media(max-width:700px){.check-progress{left:16px;right:16px;transform:none;max-width:none;justify-content:space-between}.heading-actions{width:100%}.heading-actions .button{flex:1}}
.call-dial{display:flex;gap:18px;align-items:center;margin:4px 0 16px}.call-qr-box{display:flex;gap:14px;align-items:center;flex-shrink:0;max-width:330px}.call-qr{width:150px;height:150px;flex-shrink:0;border:1px solid #e2e7dc;border-radius:8px}.call-qr-box p{margin:0;font-size:12px;line-height:1.5;color:#5d6856}.call-qr-box b{white-space:nowrap}.call-phones{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-width:0}.call-phone{font:inherit;font-size:15px;font-weight:600;color:#1d281a;letter-spacing:-.2px;padding:6px 12px;border:1px solid #cfd8c6;border-radius:9px;background:#fff;cursor:pointer}.call-phone.active{font-size:24px;font-weight:700;background:#f3f6ee;border-color:#9fb393}.call-phone:hover,.call-phone:focus-visible{background:#e6eddf}
.call-script{border:1px solid #e2e7dc;border-radius:9px;padding:10px 14px;margin-bottom:14px;background:#fbfcf8}.call-script summary{cursor:pointer;font-size:12px;font-weight:700;color:#425b3c}.call-script dl{margin:8px 0 0}.call-script div{padding:6px 0;border-top:1px solid #edf0e9}.call-script dt{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7c8478;margin-bottom:2px}.call-script dd{margin:0;font-size:13px;line-height:1.55;color:#2a3227}
.queue-body .call-comment textarea{min-height:58px;height:58px;font-size:13px}.call-script dd{font-size:13px}.call-outcomes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}.call-outcomes .button{white-space:normal;text-align:center}.call-callback{display:flex;gap:10px;align-items:end;margin-top:10px;padding:12px;border:1px solid #cfd8c6;border-radius:9px;background:#f3f6ee}.call-callback[hidden]{display:none}.call-callback label{flex:1}
.callback{color:#425b3c;font-weight:700}.overdue{color:#a04c36;font-weight:700}.history-item.call{background:#f4f6fa}
@media(max-width:700px){.call-outcomes{grid-template-columns:1fr 1fr}.call-dial{flex-direction:column;align-items:flex-start}.call-phone.active{font-size:21px}.call-callback{flex-direction:column;align-items:stretch}}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.page-heading>.button{flex-shrink:0;margin-top:6px}
.queue-dialog{width:min(720px,calc(100% - 32px))}.queue-body{padding:22px 30px 26px}.queue-meta{margin:6px 0 0;font-size:12px;color:#6c7568}.queue-meta a{color:#425b3c}
.queue-channels{border:0;padding:0;margin:0 0 14px;display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.queue-channels legend{font-size:11px;color:#7c8478;margin-bottom:8px;padding:0}.queue-channels label{display:flex;align-items:center;gap:7px;cursor:pointer}.queue-channels input{width:16px;height:16px;min-height:0;margin:0;accent-color:#405739}
.queue-body textarea{min-height:200px;font-size:14px}.queue-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:8px}.queue-actions .text-action{margin-left:auto}
.queue-confirm{margin-top:8px;padding:16px;border:1px solid #cfd8c6;background:#f3f6ee;border-radius:9px}.queue-confirm .queue-actions{margin-top:12px}
.queue-warning{margin:0 0 14px;padding:10px 12px;border-radius:7px;background:#fdf1e7;color:#7a3d1c;font-size:12px}
.queue-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #edf0e9;font-size:11px;color:#7c8478}.queue-foot label{display:flex;align-items:center;gap:8px;white-space:nowrap}.queue-foot input{width:72px;min-height:32px;padding:5px 8px;font-size:12px}
@media(max-width:700px){.page-heading{flex-direction:column}.queue-body{padding:18px}.queue-actions .button{flex:1}.queue-actions .text-action{margin-left:0}}
.pick-head{display:flex;align-items:center;gap:12px}.pick-cell{display:flex;align-items:center;gap:12px}.pick-head input,.pick-cell input{width:18px;height:18px;min-height:0;margin:0;padding:0;flex-shrink:0;accent-color:#405739;cursor:pointer}tbody tr.picked{background:#f3f6ee}
.bulk-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;background:#fff;border:1px solid #cfd8c6;border-radius:9px;font-size:12px}.bulk-spacer{flex:1}.button.danger{background:#a13c2d;color:#fff}.button.danger:hover{background:#8a3125}.list-foot>span .text-action{font-size:11px}
@media(max-width:700px){.pick-cell{align-items:flex-start}.pick-cell input{margin-top:4px}.bulk-bar{position:sticky;top:8px;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:10px}.bulk-bar #bulk-clear{justify-self:end}.bulk-bar .button{width:100%}.bulk-spacer{display:none}}.delete-company-area p{font-size:12px;color:#65705f;margin:8px 0 0}
/* Прайс */
.price-form{max-width:1200px}
.price-tax{max-width:160px;margin-bottom:20px}
.price-table{background:#fff;border:1px solid #e2e6de;border-radius:9px;margin-bottom:14px}
.price-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(200px,2fr) 110px 80px 76px 120px 96px 32px;gap:10px;align-items:center;padding:10px 14px;border-bottom:1px solid #edf0e9}
.price-row:last-child{border-bottom:0}
.price-head{background:#f7f9f4;color:#7c8478;font-size:11px;padding-top:12px;padding-bottom:12px;border-radius:9px 9px 0 0}
.price-row label{font-weight:400}
.price-row label input{margin:0;min-height:38px;padding:8px 10px;font-size:13px}
.price-name input{font-weight:700}
.price-monthly{display:flex;align-items:center;gap:6px;font-size:12px;color:#5d6856}
.price-monthly input{width:16px;height:16px;min-height:0;margin:0;padding:0}
.price-net,.price-hour{font-size:13px;white-space:nowrap}
.price-hour{font-weight:700}
.price-remove{border:0;background:none;color:#9aa196;font-size:20px;line-height:1;width:32px;height:32px;border-radius:50%}
.price-remove:hover{background:#f1f3ee;color:#202220}
@media(max-width:1100px){
.price-head{display:none}
.price-row{grid-template-columns:1fr 1fr;gap:8px 12px;padding:16px}
.price-name,.price-scope{grid-column:1/-1}
.price-net::before{content:'Остаётся: ';color:#7c8478;font-weight:400}
.price-hour::before{content:'За час: ';color:#7c8478;font-weight:400}
.price-remove{justify-self:end;grid-column:2;grid-row:1}
.price-name{grid-column:1}
}
.price-stages{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:2px 0 4px;font-size:12px}
.price-stage{display:inline-flex;align-items:center;gap:6px;background:#f7f9f4;border:1px solid #e5e9e0;border-radius:6px;padding:4px 6px 4px 8px}
.price-stage input{min-height:30px;padding:4px 8px;font-size:12px;margin:0}
.price-stage input[name=stage-name]{width:128px}
.price-stage input[name=stage-share]{width:62px}
.price-stage b{min-width:62px;text-align:right}
.price-stage-remove{border:0;background:none;color:#9aa196;font-size:16px;width:24px;height:24px;border-radius:50%;padding:0}
.price-stage-remove:hover{background:#e9ede6;color:#202220}
.price-stage-warn{color:#b3261e;font-weight:700}
.price-stages .text-action{font-size:12px}
.call-script .call-script-aside dd{color:#5d6856;font-size:12px}
.call-script-more{margin-top:8px;border-top:1px solid #edf0e9;padding-top:8px}
.call-script-more summary{cursor:pointer;font-size:12px;font-weight:700;color:#425b3c}
.call-script-more dt{text-transform:none;letter-spacing:0;font-size:12px;font-weight:700;color:#2a3227}
.call-script-note{font-size:11px;color:#7c8478;margin:10px 0 0}
/* Прайс: группы и карточки с воздухом */
.price-table{background:none;border:0;border-radius:0}
.price-head{background:none;border:0;padding:0 18px 10px;border-radius:0}
.price-group{margin:0 0 36px}
.price-group h2{font-size:17px;margin:0 0 14px;padding-left:2px}
.price-group .price-row{background:#fff;border:1px solid #e2e6de;border-radius:10px;padding:18px;margin-bottom:12px;row-gap:14px}
.price-group .price-row:last-child{border-bottom:1px solid #e2e6de}
.price-stages{border-top:1px solid #edf0e9;padding-top:14px}
.price-group .price-head{background:none;border:0;padding:0 18px 8px;margin:0}
/* Редактор подсказки для разговора */
.script-settings h3{font-size:14px;margin:22px 0 8px}
.script-settings code{font-size:11px;background:#eef2ea;border-radius:4px;padding:1px 5px;white-space:nowrap}
.script-item{background:#fff;border:1px solid #e2e6de;border-radius:10px;padding:12px;margin-bottom:10px}
.script-item-head{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.script-item-head input{flex:1;min-height:36px;padding:6px 10px;font-weight:700}
.script-item-head select{width:190px;min-height:36px;padding:6px 8px}
.script-item textarea{min-height:64px;font-size:13px}
.script-reset{color:#8a4b45}
/* Бриф */
.brief-dialog{width:min(760px,calc(100% - 32px))}
.brief-progress{margin:6px 0 0;font-size:12px}
.brief-section{border:1px solid #e2e6de;border-radius:10px;background:#fff;margin-bottom:12px}
.brief-section summary{cursor:pointer;padding:14px 16px;font-weight:700;font-size:14px;display:flex;justify-content:space-between;gap:12px}
.brief-section summary span{font-weight:400;font-size:12px;color:#5d6856}
.brief-section[open] summary{border-bottom:1px solid #edf0e9}
.brief-q{padding:12px 16px 0;font-size:12px}
.brief-q:last-child{padding-bottom:16px}
.brief-q textarea{min-height:58px;font-size:13px}
.call-brief{margin-bottom:10px}
.brief-link{font-weight:700}
/* Договор */
.contract-stage{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.contract-stage input[data-stage-name]{flex:1;min-height:38px;padding:7px 10px}
.contract-stage input[data-stage-amount]{width:130px;min-height:38px;padding:7px 10px}
.contract-stage .text-action{white-space:nowrap;font-size:12px}
#contract-form .dialog-scroll .queue-warning{margin-bottom:16px}
#contract-form [hidden]{display:none}
.contract-stage input[data-stage-days]{width:70px;min-height:38px;padding:7px 8px}
#contract-form input[readonly]{background:#f4f6f1}
.esign-check{display:flex;gap:10px;align-items:center;font-weight:400;margin:14px 0 4px}
.esign-check input{width:18px;height:18px;min-height:0;margin:0;padding:0}
/* Карточка компании: шапка с главным, ниже вкладки */
.drawer-top{display:grid;gap:12px;margin-bottom:18px}
.drawer-top .action-box{margin:0;padding:14px 16px}
.drawer-quick{display:flex;flex-direction:column;gap:8px}
.drawer-quick .meta-line{margin:0;font-size:13px;color:#2a3227}
.drawer-quick .meta-line a{font-weight:700;color:#202220}
.drawer-quick .contact-links{margin:0}
.drawer-top .card-actions{margin:0;justify-content:flex-start;gap:6px 18px;flex-wrap:wrap;border-top:1px solid #edf0e9;padding-top:10px}
.drawer-top .card-actions #archive-company{margin-left:auto}
.drawer-tabs{display:flex;gap:4px;border-bottom:1px solid #e2e6de;margin:0 -2px 18px;position:sticky;top:73px;background:#fff;z-index:1}
.drawer-tabs button{border:0;background:none;padding:10px 14px;font-weight:700;color:#7c8478;border-bottom:2px solid transparent;margin-bottom:-1px;display:flex;gap:6px;align-items:center}
.drawer-tabs button span{font-weight:400;font-size:11px;background:#eef2ea;border-radius:20px;padding:1px 7px}
.drawer-tabs button span:empty{display:none}
.drawer-tabs button.active{color:#202220;border-bottom-color:#202220}
.drawer-panel[hidden]{display:none}.drawer-panel>section,.drawer-panel>.score-box,.drawer-panel>.site-box{margin-bottom:18px}
/* Оглавление настроек */
.settings-nav{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:6px;background:#fafaf9;padding:10px 0 12px;margin:-8px 0 20px;border-bottom:1px solid #e2e6de}
.settings-nav button{border:1px solid #e0e6d9;background:#fff;border-radius:20px;padding:6px 12px;font-size:12px;color:#425b3c}
.settings-nav button:hover{border-color:#202220;color:#202220}
#page-content section[id]{scroll-margin-top:70px}
/* Перетаскивание */
.pipeline-card{cursor:grab}
.pipeline-card.dragging{opacity:.45}
.pipeline-column.drop-target{background:#e3eadb;outline:2px dashed #76916c;outline-offset:-4px}
.price-group .price-row{position:relative;padding-left:36px}
.price-group .price-head{padding-left:36px}
.price-drag{position:absolute;left:10px;top:24px;cursor:grab;color:#9aa196;font-size:14px;letter-spacing:-3px;user-select:none;line-height:1}
.price-drag:hover{color:#202220}
.price-row.dragging{opacity:.5;outline:2px dashed #76916c}
.stat-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0 18px}.stat-period{display:inline-flex;background:#eef2ea;border-radius:9px;padding:3px}.stat-period button{border:0;background:none;padding:7px 16px;border-radius:7px;font-weight:700;color:#5d6856;cursor:pointer}.stat-period button.active{background:#fff;color:#202220;box-shadow:0 1px 3px #14200d1f}
.stat-nav{display:flex;align-items:center;gap:10px}.stat-nav b{min-width:150px;text-align:center}.stat-nav .icon-button:disabled{opacity:.35;cursor:default}
.stat-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.stat-tile{background:#fff;border:1px solid #e2e7dc;border-radius:9px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}.stat-tile span{font-size:12px;color:#5d6856}.stat-tile b{font-size:24px;line-height:1.25;font-variant-numeric:tabular-nums}.stat-tile small{font-size:11px;color:#7c8478}.stat-tile small.up{color:#3d6b2f}.stat-tile small.down{color:#8a4a22}
.stat-section{margin-top:30px}.stat-section h2{font-size:15px;margin:0 0 12px}
.stat-chart{display:flex;align-items:flex-end;gap:6px;height:200px;padding:14px 12px 0;background:#fff;border:1px solid #e2e7dc;border-radius:9px}.stat-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}.stat-num{font-size:11px;color:#5d6856;font-variant-numeric:tabular-nums;min-height:16px}.stat-stack{width:100%;max-width:38px;min-height:0;background:#d5ddcd;border-radius:4px 4px 0 0;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.stat-stack i{display:block;background:#405739}.stat-col small{font-size:10px;color:#7c8478;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:4px 0 8px}
.stat-legend{display:flex;align-items:center;gap:6px;font-size:12px;color:#5d6856;margin:8px 0 0}.stat-legend i{width:10px;height:10px;border-radius:2px;background:#d5ddcd;margin-left:10px}.stat-legend i.reached{background:#405739;margin-left:0}
.stat-table-wrap{overflow-x:auto;background:#fff;border:1px solid #e2e7dc;border-radius:9px}.stat-table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums}.stat-table th,.stat-table td{padding:8px 12px;border-bottom:1px solid #edf0e9;text-align:right;white-space:nowrap}.stat-table thead th{font-weight:700;color:#5d6856;font-size:11px;white-space:normal;min-width:80px;vertical-align:bottom}.stat-table tr>th:first-child{text-align:left;position:sticky;left:0;background:#fff}.stat-table tbody tr:last-child>*{border-bottom:0}
.stat-funnel{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}.stat-funnel div{display:flex;justify-content:space-between;gap:8px;padding:10px 14px;background:#fff;border:1px solid #e2e7dc;border-radius:8px;font-size:12px}.stat-funnel b{font-variant-numeric:tabular-nums}.stat-note{font-size:12px;margin-top:22px;max-width:760px}
@media(max-width:700px){.stat-tiles{grid-template-columns:repeat(2,1fr)}.stat-tile b{font-size:20px}.stat-chart{gap:3px;padding:10px 6px 0}.stat-col small{font-size:9px}.stat-nav b{min-width:0;font-size:13px}.stat-table{display:table}.stat-table thead{display:table-header-group}.stat-table tbody{display:table-row-group}.stat-table tr{display:table-row;border:0;padding:0;margin:0;background:none}.stat-table th,.stat-table td{display:table-cell;position:static;padding:8px 12px;border-bottom:1px solid #edf0e9}.stat-table tr>th:first-child{position:sticky}}
.search-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}.search-wizard{display:grid;gap:14px}.search-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px;background:#fff;border:1px solid #e3e7df;border-radius:8px;padding:20px}.step-num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#171a18;color:#fff;font-weight:700;font-size:13px}.step-body h2{font-size:17px;margin:4px 0 14px}.step-body>small{display:block;margin-top:6px}.niche-grid{display:flex;flex-wrap:wrap;gap:8px}.niche-chip{position:relative;font-weight:400}.niche-chip input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.niche-chip span{display:inline-block;padding:8px 13px;border:1px solid #d9dcd7;border-radius:999px;font-size:13px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}.niche-chip span:hover{border-color:#9aa596}.niche-chip input:checked+span{background:#171a18;border-color:#171a18;color:#fff}.niche-chip input:focus-visible+span{outline:3px solid #458275;outline-offset:2px}.search-custom{margin-top:16px;max-width:360px}.search-check{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;font-weight:700;cursor:pointer}.search-check input{width:18px;height:18px;min-height:0;margin:2px 0 0;flex-shrink:0}.search-check small{display:block;color:#70756f;font-weight:400;margin-top:2px}.search-limit{max-width:180px;margin-top:6px}.search-go{display:flex;gap:10px;flex-wrap:wrap}.search-error:empty{display:none}.search-error{margin:12px 0 0}.search-note{font-size:12px;margin:12px 0 0}.search-side{display:grid;gap:14px;position:sticky;top:20px}.search-card{background:#fff;border:1px solid #e3e7df;border-radius:8px;padding:18px}.search-card h3{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:10px}.search-card p{font-size:13px;margin:0}.search-card.attention{border-color:#c0492f;box-shadow:0 0 0 3px #c0492f22}.ext-dot{width:9px;height:9px;border-radius:50%;background:#c0492f;flex-shrink:0}.ext-dot.ok{background:#3d8b4f}.ext-steps{margin:0;padding-left:18px;font-size:13px;display:grid;gap:6px}.feed-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}.feed-list li{padding-bottom:12px;border-bottom:1px solid #edf0e9}.feed-list li:last-child{border-bottom:0;padding-bottom:0}.feed-list small{display:block;color:#70756f;font-size:12px}.feed-list p{margin:4px 0}.feed-new{color:#2f6b3a;font-weight:700}.feed-total{margin-top:12px!important}
@media(max-width:1000px){.search-layout{grid-template-columns:1fr}.search-side{position:static}}
@media(max-width:600px){.search-step{grid-template-columns:1fr;padding:16px}.step-num{width:26px;height:26px}.search-go .button{flex:1 1 100%}}
.brand strong#brand-name{font-size:21px;letter-spacing:-.5px;line-height:1.15}.sidebar-foot .sidebar-button{display:block;margin-top:10px}
.profile-cards{border:0;padding:0;margin:4px 0 20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-cards legend{font-size:13px;font-weight:700;margin-bottom:10px;padding:0}.profile-card{position:relative;font-weight:400;cursor:pointer}.profile-card input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.profile-card span{display:block;height:100%;padding:14px 16px;border:1px solid #d9dcd7;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}.profile-card b{display:block;font-size:14px;margin-bottom:3px}.profile-card small{display:block;color:#70756f;font-size:12px;line-height:1.4}.profile-card span:hover{border-color:#9aa596}.profile-card input:checked+span{border-color:#171a18;box-shadow:inset 0 0 0 1px #171a18}.profile-card input:focus-visible+span{outline:3px solid #458275;outline-offset:2px}.profile-line{margin:16px 0 0;font-size:13px}
@media(max-width:600px){.profile-cards{grid-template-columns:1fr}}
.sidebar-user{margin-top:18px;padding:12px 12px 0;border-top:1px solid #2c312d;display:flex;flex-direction:column;gap:6px}.user-email{color:#afb8b0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user .sidebar-button{align-self:flex-start}.account-form{margin-top:8px}
.auth-page{min-height:100vh;background:#171a18}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:48px;align-items:center;max-width:1040px;margin:0 auto;padding:40px 24px}.auth-brand{color:#fafcf9}.auth-brand strong{display:block;font-size:44px;letter-spacing:-1.5px;line-height:1.05;margin-bottom:18px}.auth-brand p{color:#afb8b0;font-size:16px;max-width:420px;margin:0}.auth-card{background:#fafaf9;border-radius:12px;padding:28px}.auth-card h1{font-size:24px;margin:18px 0 18px}.auth-card form{display:grid;gap:14px}.auth-tabs{display:flex;gap:4px;background:#ecefe9;border-radius:8px;padding:4px}.auth-tabs button{flex:1;border:0;background:none;border-radius:6px;padding:9px 0;font-weight:700;font-size:13px;color:#5d655c}.auth-tabs button[aria-selected=true]{background:#fff;color:#171a18;box-shadow:0 1px 3px #0000001a}.auth-submit{width:100%;margin-top:4px}.auth-note{margin:16px 0 0;font-size:12px}#auth-error:empty{display:none}
@media(max-width:820px){.auth-shell{grid-template-columns:1fr;gap:28px;padding:32px 16px}.auth-brand strong{font-size:34px}}

.billing-banner{margin:0 0 18px;padding:12px 16px;border-radius:8px;background:#eef3e9;color:#2b3a26;font-size:13px}.billing-banner.danger{background:#fbeee9;color:#7a2c18}.billing-banner a{font-weight:700;color:inherit}
.billing-test{background:#fff6dc;color:#6b4e00;border-radius:8px;padding:10px 14px;font-size:12px;margin:0 0 18px}
.billing-current{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:center;background:#fff;border:1px solid #e3e7df;border-radius:10px;padding:22px;margin-bottom:22px}.billing-current.inactive{border-color:#e4b9a8;background:#fffaf8}.billing-current h2{font-size:22px;margin:2px 0 6px}.billing-current p{margin:0}.usage-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:8px}.usage-bar{height:8px;border-radius:999px;background:#edf0e9;overflow:hidden;margin-bottom:8px}.usage-bar span{display:block;height:100%;background:#2f6b3a;border-radius:inherit;width:0}.autorenew{grid-column:1/-1;margin:0}
.period-toggle{display:inline-flex;gap:4px;background:#ecefe9;border-radius:8px;padding:4px;margin-bottom:16px}.period-toggle button{border:0;background:none;border-radius:6px;padding:8px 14px;font-weight:700;font-size:13px;color:#5d655c}.period-toggle button[aria-pressed=true]{background:#fff;color:#171a18;box-shadow:0 1px 3px #0000001a}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.plan-card{background:#fff;border:1px solid #e3e7df;border-radius:10px;padding:22px;display:flex;flex-direction:column}.plan-card.current{border-color:#171a18;box-shadow:inset 0 0 0 1px #171a18}.plan-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.plan-card h2{font-size:20px}.plan-badge{font-size:11px;font-weight:700;background:#171a18;color:#fff;border-radius:999px;padding:3px 9px}.plan-price{font-size:15px;margin:12px 0 2px}.plan-price b{font-size:28px;letter-spacing:-.5px}.plan-sub{font-size:12px;margin:0 0 12px}.plan-card ul{margin:0 0 18px;padding-left:18px;display:grid;gap:5px;font-size:13px;flex:1}.billing-note{margin:14px 0}
.billing-history{margin-top:28px}.billing-history h2{font-size:18px;margin-bottom:10px}.history-table{background:#fff;border:1px solid #e3e7df;border-radius:8px}.history-table div{display:grid;grid-template-columns:110px minmax(0,1fr) 110px 130px;gap:12px;padding:10px 14px;border-bottom:1px solid #edf0e9;font-size:13px}.history-table div:last-child{border-bottom:0}.pay-succeeded{color:#2f6b3a;font-weight:700}.pay-canceled,.pay-failed{color:#9a3a22}
.pay-shell{grid-template-columns:minmax(0,440px);justify-content:center}.pay-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.billing-current{grid-template-columns:1fr}.history-table div{grid-template-columns:1fr 1fr}}

.agree{display:grid;gap:10px}.agree-row{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:13px;line-height:1.45;cursor:pointer}.agree-row input{width:18px;height:18px;min-height:0;margin:1px 0 0;flex-shrink:0}.agree-row a,.auth-docs a{color:#2f6b3a}.auth-docs{margin:10px 0 0;font-size:12px;color:#747a73}
.billing-legal{font-size:12px;color:#747a73;margin:10px 0 0}.billing-legal a{color:#2f6b3a}

.auth-ok{background:#eef6e8;color:#2b4a1f;border-radius:8px;padding:10px 12px;font-size:13px;margin:0}.auth-forgot{margin:8px 0 0}.auth-forgot .text-action{color:#2f6b3a;font-size:12px}
#verify-banner .text-action{color:inherit;text-decoration:underline;font-size:13px}

[hidden]{display:none!important}
.check-mail{display:grid;gap:12px;font-size:14px}.check-mail p{margin:0}.check-mail-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.check-mail-actions .text-action,#auth-error .text-action{color:#2f6b3a;font-size:13px;text-decoration:underline}

.sidebar-account{display:flex;align-items:center;gap:10px;margin-top:auto;padding:10px 12px;border-radius:6px;text-decoration:none;color:#afb8b0;font-size:13px;border-top:1px solid #2c312d}.sidebar-account:hover{color:#fff}.sidebar-account.active{background:#f0f3ee;color:#181c18}
.sidebar-account b{display:block;font-weight:700}.sidebar-account small{display:block;font-size:11px;opacity:.8;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-icon svg{display:block;width:20px;height:20px}
.account-card{background:#fff;border:1px solid #e3e7df;border-radius:10px;padding:20px;margin:0 0 18px;max-width:760px;display:grid;gap:10px;justify-items:start}.account-card p{margin:0}.account-email{font-size:16px;font-weight:700}
.badge-ok,.badge-warn{font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;margin-left:6px;vertical-align:middle}.badge-ok{background:#e4f2dc;color:#2f6b3a}.badge-warn{background:#fff1cc;color:#7a5600}
.search-note{padding-left:18px;display:grid;gap:4px}
@media(max-width:700px){.sidebar-account{margin-top:8px}}
.account-form{max-width:760px;margin:0 0 18px}.account-form section{background:#fff;border:1px solid #e3e7df;border-radius:10px;padding:20px;margin:0}.account-form section h2{font-size:16px;margin-bottom:14px}.account-form .button{margin-top:14px}.account-form .small-text{margin:8px 0 0}

.queue-limit-stop{background:#fdf0ea;border:1px solid #f0c9b8;color:#6e2a14;border-radius:10px;padding:16px;margin:0 0 14px;display:grid;gap:8px}.queue-limit-stop p{margin:0;font-size:13px}.queue-limit-stop .queue-actions{margin:4px 0 0}
.limits-grid{grid-template-columns:repeat(3,minmax(0,160px))!important}

.filter-wrap{position:relative}
.filter-toggle{min-height:44px}
.filter-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:min(640px,calc(100vw - 32px));max-height:min(70vh,640px);overflow:auto;background:#fff;border:1px solid #e3e7df;border-radius:12px;box-shadow:0 18px 50px #1a221726;padding:18px}
.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px}
.filter-group{border:0;margin:0;padding:0;min-width:0}.filter-group legend{font-size:12px;font-weight:700;color:#5d655c;margin-bottom:8px;padding:0}
.filter-group select{width:100%;min-height:38px;padding:7px 10px;font-size:13px}
.filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.filter-chip{border:1px solid #d9dcd7;background:#fff;border-radius:999px;padding:6px 11px;font-size:12px;color:#2a2f2b;transition:background .15s,border-color .15s}.filter-chip:hover{border-color:#9aa596}
.filter-chip[aria-pressed=true]{background:#171a18;border-color:#171a18;color:#fff}
.filter-foot{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid #edf0e9}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:-12px 0 20px}
.active-filter{display:inline-flex;align-items:center;gap:6px;border:0;background:#eef3e9;color:#2b3a26;border-radius:999px;padding:6px 8px 6px 12px;font-size:12px;font-weight:700}.active-filter span{font-size:15px;line-height:1;opacity:.6}.active-filter:hover span{opacity:1}
@media(max-width:700px){.filter-grid{grid-template-columns:1fr}.filter-panel{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:75vh}}
@media(min-width:1101px){.filter-panel{width:min(880px,calc(100vw - 300px));max-height:calc(100vh - 340px)}.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1100px){.filter-panel{max-height:calc(100vh - 340px)}}

/* ===== Единая система размеров =====
   40 — кнопки и поля; 36 — компактные поля внутри таблиц и списков; 32 — переключатели и «чипы».
   Слой стоит последним и выравнивает всё, что выше задавало свои высоты. */
:root{--h:40px;--h-compact:36px;--h-chip:32px;--r:8px;--r-chip:999px;--fs:13px;--fs-sm:12px}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select{height:var(--h);min-height:var(--h);padding:0 12px;font-size:var(--fs);border-radius:var(--r);line-height:1.2}
select{padding-right:28px}
textarea{min-height:var(--h);padding:10px 12px;font-size:var(--fs);border-radius:var(--r)}
.button,.button.small{min-height:var(--h);padding:8px 16px;font-size:var(--fs);border-radius:var(--r);line-height:1.2;gap:6px}
.button.small{padding:8px 14px;font-size:var(--fs-sm)}
.icon-button{width:var(--h);height:var(--h);min-height:var(--h);border-radius:50%}
.text-action{font-size:var(--fs-sm);line-height:1.4}
/* Компактные поля */
.price-row label input,.price-stage input,.script-item-head input,.script-item-head select,.contract-stage input,.queue-foot input,.filter-field select,.limits-grid input{height:var(--h-compact);min-height:var(--h-compact);padding:0 10px;font-size:var(--fs)}
.queue-foot input{width:72px}
/* Переключатели (вкладки, периоды) — одной высоты */
.auth-tabs button,.period-toggle button,.stat-period button,.settings-nav button,.drawer-tabs button{height:var(--h-chip);min-height:var(--h-chip);padding:0 14px;font-size:var(--fs);line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:6px}
/* «Чипы» */
.niche-chip span,.active-filter{display:inline-flex;align-items:center;height:var(--h-chip);padding:0 12px;font-size:var(--fs-sm);line-height:1}
.active-filter{padding-right:8px}
/* Шапки разделов и панель инструментов — одной высоты и с одинаковыми промежутками */
.heading-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.toolbar{gap:8px;align-items:center}
.toolbar select{min-width:170px;font-size:var(--fs)}
.filter-toggle{min-height:var(--h)}
.queue-actions,.check-mail-actions,.pay-actions,.search-go,.composer-buttons{gap:8px}

/* Панель фильтров: ровная сетка одинаковых списков */
.filter-panel{width:min(760px,calc(100vw - 32px));padding:20px;max-height:none;overflow:visible}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px}
.filter-field{display:grid;gap:6px;font-size:var(--fs-sm);font-weight:700;color:#5d655c;margin:0}
.filter-field select{width:100%;margin:0;color:#202220;font-weight:400;background:#fff}
.filter-field.is-set select{border-color:#171a18;box-shadow:inset 0 0 0 1px #171a18;font-weight:700}
.filter-foot{margin-top:18px;padding-top:14px}
@media(max-width:900px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.filter-grid{grid-template-columns:1fr}.filter-panel{max-height:75vh;overflow:auto}.toolbar select{min-width:0}}

/* Карточка компании: «Сохранить» на одной линии с полями «Этап» и «Бюджет» */
.action-box>label{margin-bottom:0}
/* Выбор файла — в стиле сервиса, а не системная серая кнопка */
.file-input{margin-top:18px;display:grid;gap:6px}
.file-input input[type=file]{width:100%;padding:14px;border:1px dashed #cdd5c5;border-radius:var(--r);background:#fafbf8;font-size:var(--fs-sm);color:#5d655c;cursor:pointer}
.file-input input[type=file]::file-selector-button{height:var(--h-chip);margin-right:12px;padding:0 14px;border:1px solid #d9dcd7;border-radius:var(--r);background:#fff;color:#202220;font:inherit;font-weight:700;font-size:var(--fs-sm);cursor:pointer}
.file-input input[type=file]:hover::file-selector-button{border-color:#9aa596}
/* Телефон: «Фильтры» и сортировка — в одну строку под поиском */
@media(max-width:700px){.toolbar .filter-wrap{flex:0 0 auto}.toolbar #sort-by{flex:1 1 0;flex-basis:0;min-width:0}}
#import-file-info:empty{display:none}

.toolbar .stage-select{min-width:160px;width:auto}
.toolbar .stage-select.is-set{border-color:#171a18;box-shadow:inset 0 0 0 1px #171a18;font-weight:700}
@media(max-width:700px){.toolbar .stage-select{flex:1 1 100%;min-width:0}}

/* «Фильтры» — в правом краю строки, после сортировки */
.toolbar .filter-wrap{order:10}

/* Пока открыта карточка или окно, страница под ним не прокручивается — одна полоса прокрутки, у самого окна */
html:has(dialog[open]){overflow:hidden}

/* Логотип в боковом меню */
.brand{display:flex;align-items:center;justify-content:flex-start;gap:10px}
.brand-mark{display:block;width:30px;height:30px;flex-shrink:0}
.brand strong#brand-name{font-size:22px;letter-spacing:-.6px}
.auth-mark{display:block;width:64px;height:64px;margin-bottom:18px}

.reply-wrap{margin:12px 0 0}.reply-wrap textarea{margin-top:6px}
.notes-list{margin-top:14px}

/* Вкладки карточки прилипают ровно под шапку (её высота зависит от длины названия) */
.drawer-tabs{top:var(--drawer-head,104px)}
.client-drawer .dialog-header{z-index:2}

/* Карточка компании: контакты двумя ровными строками */
.drawer-quick{gap:10px}
.contact-person{margin:0;font-size:13px;color:#4c5649}.contact-person b{color:#202220}
.contact-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start}
.contact-label{font-size:12px;font-weight:700;color:#7c8478;line-height:var(--h)}
.contact-items{display:flex;flex-wrap:wrap;gap:8px}
.phone-btn{font-variant-numeric:tabular-nums;font-weight:700}
.btn-icon{width:16px;height:16px;flex-shrink:0}
/* Ряд действий: обычные кнопки, «В архив» — тихая справа */
.card-actions{gap:8px;align-items:center;padding-top:14px}
.card-actions #archive-company{margin-left:auto}
.button.ghost{background:transparent;border-color:transparent;color:#7c8478}.button.ghost:hover{border-color:#d9ded6;color:#202220}
/* Сообщение: шаги слева, «Сохранить · Очистить» — справа */
.composer-buttons{align-items:center}
.composer-extra{margin-left:auto;display:flex;gap:14px}
#mark-sent{gap:6px}
@media(max-width:600px){.contact-row{grid-template-columns:1fr;gap:6px}.contact-label{line-height:1.2}.composer-extra{margin-left:0;width:100%}}

/* Карточка на телефоне: во всю ширину экрана, «Этап» и бюджет — в ряд, «Сохранить» — под ними */
.client-drawer{max-width:none}
@media(max-width:600px){.action-box{grid-template-columns:1fr 1fr}.action-box>button{grid-column:1/-1}}
.phone-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr))}.phone-items .phone-btn{justify-content:flex-start}
