:root{--ok:#6c855b;--ok-bg:#e8efe4;--brand:#250303;--forest:#250303;--forest-deep:#1a0202;--forest-mid:#4a1a1a;--sage:#ece6e6;--sage-text:#6a4e50;--paper:#f5f4ef;--card:#fff;--ink:#2c2825;--muted:#87817e;--line:#e7e1e1;--copper:#b9774d;--amber:#ad7b36;--amber-bg:#f7efdf;--red:#a85750;--red-bg:#f8eae7;--blue:#5c7a89;--blue-bg:#edf3f5;--radius:14px;--shadow:0 12px 50px #22050510;--sidebar:236px;--gutter:36px;--topbar-h:76px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #a2774f;outline-offset:2px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #a2774f;outline-offset:0}.modal:focus,#main:focus{outline:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle;stroke-width:1.7}button svg{pointer-events:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}button{border:0}strong{font-weight:600}.muted{color:var(--muted)}.nowrap{white-space:nowrap}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boot-screen{display:flex;min-height:100vh;align-items:center;justify-content:center;flex-direction:column;gap:18px;color:var(--forest)}.boot-monogram{font:italic 70px Georgia,serif;letter-spacing:-10px}.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:white;padding:12px 20px;border-radius:8px}.skip-link:focus{top:12px}
.app-shell{min-height:100vh}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:var(--forest);color:#dfd7d7;display:flex;flex-direction:column;z-index:30;padding:34px 18px 18px}.brand{padding:0 16px 33px;display:flex;flex-direction:column}.brand-name{font-family:Georgia,'Times New Roman',serif;font-size:23px;letter-spacing:1.3px;color:#f9f6e9}.brand-subtitle{font-size:9px;letter-spacing:3.3px;margin-top:7px;color:#bfb5b0}.nav-label{padding:0 16px;font-size:9px;letter-spacing:1.8px;color:#a2968f;margin:0 0 10px}.nav-list{position:relative;display:flex;flex-direction:column;gap:5px;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent;margin:0 -18px;padding:0 18px}.nav-link{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:43px;border-radius:8px;color:#c4bbb5;font-size:12px;transition:background .15s,color .15s}.nav-link:hover{background:#ffffff08;color:#fff}.nav-link:focus-visible{outline-offset:-2px}.nav-link.active{background:#eedadb;color:#330e0e}.nav-link.active:before{content:'';position:absolute;left:-18px;width:3px;height:18px;background:#d3b1b3;border-radius:0 4px 4px 0}.nav-link svg{width:18px;height:18px}.nav-count{margin-left:auto;font-size:10px;background:#f0d9db20;color:#e4c9cb;padding:2px 6px;border-radius:4px;min-width:19px;text-align:center}.nav-link.active .nav-count{background:#d9bec0;color:#3e1212}.nav-divider{height:1px;background:#ffffff10;margin:21px 14px}.sidebar-bottom{margin-top:auto;padding:16px 5px 0;flex-shrink:0}.local-state{font-size:10px;color:#b3a69f;display:flex;gap:7px;align-items:center;padding:13px 12px;min-width:0}.local-state>.truncate{min-width:0}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#92b887;flex-shrink:0}.status-dot.offline{background:#c89760}.sidebar-profile{border-top:1px solid #ffffff12;display:flex;gap:11px;align-items:center;padding:17px 8px 0}.sidebar-profile>div{min-width:0;flex:1}.profile-avatar{flex-shrink:0;width:31px;height:31px;border-radius:50%;background:#e6d6bb;color:#3c1111;display:grid;place-items:center;font-size:11px;font-weight:600}.sidebar-profile strong{display:block;font-size:11px;font-weight:500;color:#efe8e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile small{font-size:10px;display:block;margin-top:4px;color:#b09e9f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile>svg{margin-left:auto;width:15px;color:#ae9a9b}.main-shell{margin-left:var(--sidebar)}.topbar{height:var(--topbar-h);background:#fbf7f8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 var(--gutter);gap:22px}.breadcrumbs{display:flex;align-items:center;gap:11px;font-size:12px;color:#968f8b;white-space:nowrap;min-width:0}.breadcrumbs svg{width:12px;height:12px;color:#b9b1ac}.breadcrumbs strong{color:#665f5b;font-weight:500;overflow:hidden;text-overflow:ellipsis}.topbar-tools{display:flex;align-items:center;gap:19px}.global-search{border:1px solid #e5dddd;border-radius:7px;display:flex;align-items:center;gap:8px;padding:9px 11px;background:#f7f1f2;color:#91857e;width:230px;text-align:left;font-size:11px}.global-search svg{width:15px;height:15px}.global-search kbd{margin-left:auto;font:9px inherit;color:#aa9c94;background:#fff;border:1px solid #e4dadb;padding:1px 4px;border-radius:3px}.topbar-date{font-size:10px;color:#938a84;white-space:nowrap}.icon-button{background:transparent;display:grid;place-items:center;width:33px;height:33px;border:1px solid transparent;border-radius:7px;color:#776961}.icon-button:hover{background:#f0e9e9}.menu-toggle{display:none}.topbar-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e9ddc9;color:#6a6551;font-size:10px;font-weight:600}.main-content{padding:34px var(--gutter) 28px}.main-content.entering{animation:enter .25s ease-out}@keyframes enter{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;letter-spacing:2px;color:#948b86;font-weight:600;text-transform:uppercase;margin-bottom:9px}.page-title{font-family:Georgia,'Times New Roman',serif;font-size:31px;font-weight:400;letter-spacing:-.6px;line-height:1.2}.page-description{font-size:11px;color:#968d88;margin-top:10px;line-height:1.65}.page-actions{display:flex;gap:8px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:36px;border-radius:7px;background:var(--forest);color:#f6eeee;border:1px solid var(--forest);font-size:11px;font-weight:500;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{background:#3c0b0b}.button:active{transform:translateY(1px)}.button svg{width:15px;height:15px}.button.secondary{background:var(--card);border-color:#ded7d7;color:#736760}.button.secondary:hover{background:#f4eeee}.button.ghost{background:transparent;border-color:transparent;color:#705b5c}.button.ghost:hover{background:#f0e7e7}.button.danger{background:var(--red-bg);color:var(--red);border-color:#eecfca}.button.small{min-height:30px;padding:7px 10px;font-size:10px}.button.wide{width:100%}.text-button{background:none;color:#796264;font-size:10px;display:inline-flex;align-items:center;gap:5px;padding:4px 0}.text-button:hover{color:#3b0a0a}.text-button svg{width:13px;height:13px}.demo-notice{display:flex;align-items:center;gap:8px;border:1px solid #e6dadb;background:#f1e7e8;border-radius:7px;color:#876d6f;font-size:10px;padding:10px 13px;margin-bottom:24px;line-height:1.5}.demo-notice svg{width:14px;height:14px;color:#97797b}.demo-notice .notice-link{margin-left:auto;white-space:nowrap;color:#705455;text-decoration:underline;text-underline-offset:3px}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 19px 17px;min-height:136px;position:relative;overflow:hidden}.metric-card.primary{background:var(--forest);border-color:var(--forest);color:#f4eaeb}.metric-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.metric-label{font-size:10px;color:#908680}.metric-icon{width:28px;height:28px;background:#f3eeee;border-radius:8px;display:grid;place-items:center;color:#908178}.metric-icon svg{width:15px;height:15px}.metric-value{font-family:Georgia,'Times New Roman',serif;font-size:31px;line-height:1;letter-spacing:-.6px}.metric-unit{font-family:inherit;font-size:18px;color:#968b84;margin-left:4px}.metric-foot{font-size:9px;color:#a79d97;margin-top:12px;display:flex;align-items:center;gap:5px}.primary .metric-label{color:#cdbcbe}.primary .metric-icon{background:#ffffff0b;color:#cbafb0}.primary .metric-unit{color:#d3bfc0}.primary .metric-foot{color:#bba1a3}.mini-pill{font-size:9px;background:#efe6e6;color:#8f6568;padding:2px 5px;border-radius:4px}.primary .mini-pill{background:#ffffff11;color:#e1bdc0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.37fr) minmax(310px,1fr);gap:22px}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-header{padding:21px 22px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-title{font-family:Georgia,'Times New Roman',serif;font-size:19px;letter-spacing:-.25px;font-weight:400;display:flex;align-items:center;gap:9px}.panel-subtitle{font-size:10px;color:#9c948f;margin-top:6px;line-height:1.55}.count-badge{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:inline-flex;align-items:center;justify-content:center;background:#f0e7e7;color:#89776d;border-radius:5px;font-size:9px;height:19px;min-width:21px;padding:0 6px;letter-spacing:0}.priority-list{padding:0 20px 5px}.priority-row{display:flex;align-items:flex-start;gap:13px;padding:17px 0;border-top:1px solid #efeaea}.priority-symbol{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:#f4ece1;color:#b3854d;flex-shrink:0}.priority-symbol svg{width:17px;height:17px}.priority-symbol.red{background:#f7e8e5;color:#b37467}.priority-symbol.green{background:#ebf0e5;color:#8d9b6f}.priority-info{min-width:0;flex:1}.priority-title{font-size:11px;line-height:1.55;color:#59514c;font-weight:500;display:flex;gap:7px;align-items:center}.priority-description{font-size:10px;color:#a29993;line-height:1.5;margin-top:5px}.priority-meta{display:flex;gap:7px;align-items:center;margin-top:9px;font-size:9px;color:#a2958e;flex-wrap:wrap}.priority-row .icon-button{width:26px;height:26px;margin-top:3px;color:#a6978e}.priority-row .icon-button svg{width:15px;height:15px}.tag,.status-badge,.demo-tag{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:9px;line-height:1.25;padding:4px 7px;border-radius:5px;background:#f0e8e8;color:#7f6769;font-weight:400}.tag.amber,.status-badge.amber{background:var(--amber-bg);color:var(--amber)}.tag.red,.status-badge.red{background:var(--red-bg);color:var(--red)}.tag.blue,.status-badge.blue{background:var(--blue-bg);color:var(--blue)}.tag.gray,.status-badge.gray{background:#f1eced;color:#988d87}.status-badge.green{background:#e8efe4;color:#6c855b}.demo-tag{font-size:8px;padding:2px 4px;background:#f2f1e8;color:#a19c86;letter-spacing:.15px;vertical-align:middle;font-weight:400}.inbox-mini{padding:0 21px 8px}.inbox-mini-row{padding:16px 0;border-top:1px solid #efeaea;display:flex;gap:11px;cursor:pointer}.inbox-mini-row:hover .inbox-mini-title{color:var(--forest)}.avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#ebe6d9;color:#928566;font-size:10px;font-weight:500}.avatar.moss{background:#ece0e1;color:#876466}.avatar.blue{background:#e8eef0;color:#809198}.avatar.pink{background:#f2e5df;color:#af8b75}.avatar.large{height:53px;width:53px;font-size:17px}.inbox-mini-main{min-width:0;flex:1}.inbox-mini-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.inbox-mini-title{font-size:11px;color:#695f59;line-height:1.4}.inbox-mini-time{font-size:9px;color:#aca29c;white-space:nowrap}.inbox-mini-text{font-size:10px;color:#9f9690;margin:6px 0 8px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-mini-bottom{display:flex;align-items:center;justify-content:space-between}.mini-file{font-size:9px;color:#9f948d;display:flex;align-items:center;gap:5px}.mini-file svg{width:12px;height:12px}.panel-footer{display:flex;align-items:center;justify-content:center;padding:13px 18px;border-top:1px solid #efeaea;background:#fefafb;color:#97867c;font-size:10px;gap:8px}.panel-footer:hover{background:#f8f2f2}.panel-footer svg{width:12px;height:12px}.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.37fr) minmax(310px,1fr);gap:22px;margin-top:22px}.pipeline{padding:7px 22px 21px;display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.pipeline-step{min-width:0}.pipeline-count{font:24px Georgia,serif;color:#785b5d;padding-bottom:10px}.pipeline-bar{height:5px;background:#a78184;border-radius:2px;margin-bottom:10px}.pipeline-step:nth-child(2) .pipeline-bar{background:#b79092}.pipeline-step:nth-child(3) .pipeline-bar{background:#c4a5a7}.pipeline-step:nth-child(4) .pipeline-bar{background:#d1b8ba}.pipeline-step:nth-child(5) .pipeline-bar{background:#e0cfd0}.pipeline-label{font-size:9px;color:#9f938c;line-height:1.5}.pipeline-amount{font-size:9px;color:#b5aba5;margin-top:5px}.task-mini-list{padding:0 21px 8px}.task-mini-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #efeaea;min-height:46px}.task-check{width:15px;height:15px;border:1px solid #e1d2d3;background:#fff;border-radius:4px;display:grid;place-items:center;color:#957174;flex-shrink:0;padding:0}.task-check:hover{background:#f1e7e8;border-color:#b29294}.task-check.done{background:#e8efdf;border-color:#c8d7b6}.task-check svg{width:12px;height:12px}.task-mini-title{font-size:10px;color:#80736c;flex:1;line-height:1.5;cursor:pointer}.task-mini-date{font-size:9px;color:#a1948d;white-space:nowrap}.task-mini-date.overdue{color:#b17b64}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#b4aaa4;font-size:9px;padding:27px 2px 0}.page-footer-brand{font-family:Georgia,serif;letter-spacing:1.5px;font-size:10px;color:#a5968e}.live-dot{display:inline-flex;gap:5px;align-items:center;font-size:9px;color:#988082}.live-dot .status-dot{width:5px;height:5px}
.section-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin-bottom:18px;flex-wrap:wrap}.search-input{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;flex:0 1 340px;min-width:230px;max-width:100%;padding:0 12px}.search-input:focus-within{border-color:#b48f6a;box-shadow:0 0 0 2px #b48f6a33}.search-input svg{width:16px;color:#a3968e}.search-input input{padding:9px 0;border:0;background:none;outline:none;min-width:0;width:100%;font-size:12px;color:#614c4d}.search-input input::placeholder{color:#aa9d96}.filter-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;gap:6px;background:transparent;padding:8px 11px;border-radius:7px;color:#9c8f88;font-size:11px;border:1px solid transparent}.filter-row .inline-select{height:34px;max-width:210px;padding:0 8px;border-color:var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:11px}.filter-chip:hover{background:#efe8e8}.filter-chip.active{color:#614446;background:#eaddde;border-color:#e2d1d2}.filter-chip small{font-size:9px;color:inherit;opacity:.7}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left;white-space:nowrap}.data-table th{font-size:9px;letter-spacing:.4px;color:#a79a93;font-weight:500;background:#fbf7f8;padding:14px 20px;border-bottom:1px solid var(--line)}.data-table td{padding:17px 20px;border-bottom:1px solid #efe9e9;color:#877870;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr[data-open]{cursor:pointer}.data-table tbody tr[data-open]:hover{background:#fbf6f7}.person-cell{display:flex;align-items:center;gap:11px}.cell-title{color:#614c4d;font-weight:500;line-height:1.4;white-space:normal;display:flex;align-items:center;gap:6px}.cell-sub{font-size:9px;color:#ab9e96;margin-top:5px;font-weight:400;white-space:normal;line-height:1.5}.table-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 20px;font-size:9px;color:#aa9c94;gap:12px}.empty-state{padding:54px 24px;text-align:center;color:#a38e8f}.empty-state>svg{width:32px;height:32px;color:#b7a1a2;margin-bottom:14px}.empty-state h3{font:22px Georgia,serif;color:#807168;margin-bottom:8px}.empty-state p{font-size:11px;line-height:1.6;max-width:380px;margin:0 auto 18px}.empty-state.compact{padding:28px 20px}.empty-state.compact h3{font-size:18px}.empty-state.compact p{font-size:10px;margin-bottom:0}.inbox-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.inbox-cards{display:grid;gap:12px}.inbox-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 20px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.inbox-card:hover{border-color:#c9b0b2;box-shadow:0 4px 15px #330e0e06}.inbox-card-header{display:flex;gap:11px;align-items:center}.inbox-card-header .sender-info{flex:1}.inbox-card-text{color:#786960;font-size:12px;line-height:1.7;margin:16px 0 14px;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.inbox-card-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inbox-card-footer .time-label{margin-left:auto;font-size:9px;color:#aa9f98}.process-card{padding:21px}.process-step{display:flex;gap:12px;position:relative;padding:16px 0}.process-step+.process-step:before{content:'';position:absolute;left:14px;top:-10px;height:20px;width:1px;background:#e7ddde}.process-number{width:29px;height:29px;display:grid;place-items:center;background:#f1e6e7;color:#987779;border:1px solid #e9dcdd;border-radius:50%;font-size:10px;flex-shrink:0}.process-step strong{font-size:11px;color:#7b6b62;font-weight:500;display:block;margin:2px 0 5px}.process-step p{font-size:10px;color:#a89c95;line-height:1.6}.safe-note{background:#f6f0f0;border:1px solid #ebe0e1;border-radius:8px;padding:13px;font-size:10px;color:#97867c;line-height:1.7;margin-top:12px;display:flex;gap:9px}.safe-note svg{width:15px;height:15px;color:#a08183;margin-top:2px}.kanban-column{background:#eee6e6;border:1px solid #e7dadb;border-radius:11px;min-height:390px;padding:12px}.kanban-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 13px 10px;font-size:12px;font-weight:600;color:var(--ink)}.kanban-column>.production-card,.kanban-column>.kanban-empty{margin:0 8px 8px}.kanban-heading>span{display:flex;gap:7px;align-items:center}.kanban-heading .status-dot{width:6px;height:6px}.kanban-column:nth-child(2) .status-dot{background:#bfa579}.kanban-column:nth-child(3) .status-dot{background:#b8af7b}.kanban-column:nth-child(4) .status-dot{background:#a2ad85}.kanban-column:nth-child(5) .status-dot{background:#859d78}.kanban-column:nth-child(6) .status-dot{background:#688c63}.production-card{background:white;border:1px solid #e6d9da;border-radius:9px;padding:13px;margin-bottom:10px;cursor:pointer}.production-card:hover{border-color:#ba9699}.production-number{font-size:9px;color:#ac9697;display:flex;justify-content:space-between;gap:5px}.production-title{font-size:11px;color:#674d4f;font-weight:500;line-height:1.55;margin-top:10px}.production-client{font-size:9px;color:#a79192;margin:7px 0 13px}.production-details{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:13px}.production-footer{border-top:1px solid #f0e8e8;padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:6px;color:#a28b8d;font-size:9px}.inline-select{border:1px solid #e6d8d9;border-radius:5px;padding:6px;color:#8a6e6f;background:#fdf9fa;max-width:120px;font-size:9px}.kanban-empty{font-size:10px;color:#b8a2a3;text-align:center;padding:30px 5px;border:1px dashed #decccd;border-radius:7px;line-height:1.6}.summary-strip{display:flex;gap:22px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:15px 20px;border-radius:10px;margin-bottom:21px}.summary-strip-item{display:flex;align-items:center;gap:8px;font-size:10px;color:#a38d8e}.summary-strip-item strong{font-family:Georgia,serif;font-size:21px;color:#7a585a;font-weight:400}.certificate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.certificate-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.certificate-face{background:#ebe0e1;padding:23px 22px;position:relative;overflow:hidden;min-height:160px;color:#7e5a5d}.certificate-face:after{content:'MP';font-family:Georgia,serif;font-size:105px;position:absolute;right:-9px;bottom:-15px;opacity:.055;letter-spacing:-14px}.certificate-face .eyebrow{color:#9a7c7e;font-size:8px;letter-spacing:2px}.certificate-amount{font-family:Georgia,serif;font-size:30px;margin-top:17px;letter-spacing:-.8px}.certificate-code{font-size:10px;letter-spacing:1.5px;margin-top:12px;color:#a88e90}.certificate-face .status-badge{position:absolute;right:17px;top:17px}.certificate-body{padding:18px 20px}.certificate-person{display:flex;justify-content:space-between;gap:15px;font-size:10px;line-height:1.6;margin-bottom:9px;color:#a79991}.certificate-person strong{color:#836769;font-weight:500;text-align:right}.certificate-balance{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9d8182;padding-top:13px;border-top:1px solid #f0e6e7;margin-top:16px}.certificate-card:nth-child(3n+2) .certificate-face{background:#eee6da;color:#9d8361}.certificate-card:nth-child(3n+2) .certificate-face .eyebrow{color:#b39d7c}.certificate-card:nth-child(3n+2) .certificate-code{color:#b9a88f}.settings-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:22px}.service-list{padding:0 21px 5px}.service-row{padding:17px 0;display:flex;gap:11px;align-items:flex-start;border-top:1px solid #efe8e8}.service-icon{width:32px;height:32px;border-radius:8px;background:#f2eaea;display:grid;place-items:center;color:#a98d8e;flex-shrink:0}.service-icon svg{width:17px;height:17px}.service-info{flex:1;min-width:0}.service-title{font-size:11px;color:#836a6c;line-height:1.5}.service-desc{font-size:10px;line-height:1.6;color:#ac999a;margin-top:4px;overflow-wrap:anywhere}.service-row>.status-badge{margin-top:3px}.docs-list{padding:0 21px 11px}.doc-link{display:flex;align-items:center;gap:10px;padding:14px 0;border-top:1px solid #efe8e8;color:#967a7b;font-size:10px;line-height:1.5}.doc-link>svg:first-child{width:17px;height:17px;color:#ac8f91}.doc-link>svg:last-child{width:13px;height:13px;margin-left:auto;color:#b49fa0}.doc-link:hover{color:var(--forest)}.settings-note{padding:20px;font-size:10px;line-height:1.8;color:#a28b8d}.activity-list{padding:0 21px 8px}.activity-row{display:flex;align-items:flex-start;gap:10px;border-top:1px solid #efe9e9;padding:14px 0}.activity-row>.status-dot{margin-top:5px;background:#cdb4b6;width:5px;height:5px}.activity-text{flex:1;font-size:10px;color:#997d7f;line-height:1.55}.activity-text small{display:block;color:#b7a1a2;font-size:9px;margin-top:4px}.activity-time{font-size:9px;color:#b09b9c;white-space:nowrap}
.overlay{position:fixed;inset:0;background:#20060660;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(4px);animation:fadein .15s ease-out}@keyframes fadein{from{opacity:0}to{opacity:1}}.modal{background:var(--paper);border:1px solid #e7dbdc;border-radius:16px;max-height:90vh;max-height:90dvh;overflow:hidden;width:min(640px,100%);box-shadow:0 25px 100px #21040430;display:flex;flex-direction:column}.modal.large{width:min(860px,100%)}.modal.search-modal{align-self:flex-start;margin-top:9vh;width:min(650px,100%)}.modal-header{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;padding:24px 27px 20px;border-bottom:1px solid var(--line);background:#fef9fa}.modal-header .page-title{font-size:25px}.modal-header .page-description{margin-top:6px;font-size:10px}.modal-header .icon-button{margin-top:-5px;margin-right:-8px}.modal-body{padding:23px 27px;overflow-y:auto;overscroll-behavior:contain}.modal-footer{padding:17px 27px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;align-items:center;background:#fef9fa}.modal-footer .footer-note{margin-right:auto;color:#a99394;font-size:9px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.form-field.full{grid-column:1/-1}.form-label{font-size:10px;color:#958379;display:flex;justify-content:space-between;align-items:center;gap:10px}.form-label small{font-size:9px;color:#b8a3a4;font-weight:400}.form-field input,.form-field textarea,.form-field select,.search-full input{border:1px solid #e4d5d6;background:#fff;border-radius:7px;padding:10px 11px;font-size:12px;color:#694c4e;min-width:0;width:100%;outline-offset:2px}.form-field input::placeholder,.form-field textarea::placeholder{color:#baa7a8}.form-field textarea{resize:vertical;min-height:90px;line-height:1.7}.form-field input[type=checkbox]{width:16px;accent-color:var(--forest)}.form-hint{font-size:9px;color:#aa9596;line-height:1.6}.form-section{margin:24px 0 15px;padding-top:21px;border-top:1px solid var(--line);font-family:Georgia,serif;font-size:19px;color:#7e5f61;font-weight:400}.form-section:first-child{padding-top:0;border:0;margin-top:0}.drop-zone{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;border:1px dashed #d7bdbf;background:#f9f4f4;border-radius:9px;min-height:114px;padding:18px;color:#a38183;cursor:pointer;flex-direction:column;gap:8px}.drop-zone:hover,.drop-zone.drag-over{background:#f2e4e5;border-color:#aa8487}.drop-zone svg{width:24px;height:24px;color:#b08d8f}.drop-zone strong{font-size:11px;font-weight:500}.drop-zone span{font-size:9px;color:#b9a2a4}.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.file-list{display:flex;flex-direction:column;gap:6px;margin-top:9px}.file-item{display:flex;align-items:center;gap:7px;padding:9px 11px;background:#f2e9e9;border:1px solid #e8dadb;border-radius:6px;font-size:10px;color:#997b7d}.file-item svg{width:14px;height:14px}.file-item small{margin-left:auto;color:#b5a0a1}.detail-hero{display:flex;gap:15px;align-items:center;margin-bottom:23px}.detail-hero .detail-name{font-family:Georgia,serif;font-size:24px;color:#715355}.detail-hero .detail-meta{font-size:10px;color:#a48d8f;margin-top:8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:20px}.detail-field{display:flex;flex-direction:column;gap:6px;min-width:0}.detail-field span{font-size:9px;color:#af9b9c}.detail-field strong{font-size:11px;font-weight:400;color:#886b6d;line-height:1.7;overflow-wrap:anywhere}.detail-field.full{grid-column:1/-1}.source-box{border:1px solid #e5d8d9;border-radius:10px;background:#fff;padding:17px;margin-bottom:17px}.source-box-title{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#ae9193;display:flex;align-items:center;gap:7px;margin-bottom:10px}.source-box-title svg{width:14px;height:14px}.source-text{font-size:12px;line-height:1.8;color:#8a786d;white-space:pre-wrap;overflow-wrap:anywhere}.attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.attachment-link{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #e7d7d8;border-radius:6px;background:#f9f2f2;color:#9f7b7e;font-size:10px;max-width:100%;overflow-wrap:anywhere}.attachment-link svg{width:14px;height:14px}.media-preview{width:100%;max-height:220px;object-fit:contain;border-radius:6px;background:#f8f3f3;display:block;margin-top:10px}.audio-preview{width:100%;height:38px;margin-top:10px}.proposal-block{border:1px solid #e6d6d7;background:#fff;border-radius:10px;padding:17px;margin-top:15px}.proposal-heading{font-family:Georgia,serif;font-size:19px;color:#836365;display:flex;gap:9px;align-items:center;margin-bottom:15px}.proposal-heading svg{width:17px;height:17px;color:#b69496}.proposal-block .form-grid{gap:14px}.review-warning{padding:12px 14px;border:1px solid #eadfc8;border-radius:8px;background:#faf5e8;color:#b59a63;font-size:10px;line-height:1.8;margin-bottom:16px}.review-warning ul{padding-left:17px;margin:5px 0 0}.error-note{border:1px solid #ead0c8;color:#a46d60;background:#fbf0eb;padding:13px 15px;border-radius:8px;font-size:11px;line-height:1.7;margin:12px 0;overflow-wrap:anywhere}.related-list{display:flex;flex-direction:column;gap:9px}.modal-body .related-list:not(:empty){margin:14px 0 12px}.modal-body .divider-label+.related-list{margin-top:0}.related-list+p{margin-top:10px}.related-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid #e8d9da;border-radius:7px;background:#fff;text-align:left;cursor:pointer}.related-item:hover{border-color:#c9adae}.related-item>svg{width:16px;height:16px;color:#b09294}.related-item .related-main{flex:1;color:#957678;font-size:11px}.related-item small{font-size:9px;color:#b59b9d;display:block;margin-top:5px}.related-item>.status-badge{margin-left:auto}.divider-label{display:flex;align-items:center;gap:10px;color:#b69c9e;font-size:9px;letter-spacing:1px;margin:25px 0 15px}.divider-label:after{content:'';height:1px;background:#e7d7d8;flex:1}.search-full{display:flex;align-items:center;gap:12px;padding:19px 23px;background:#fff;border-bottom:1px solid var(--line)}.search-full>svg{color:#a37b7d}.search-full input{padding:5px 0;border:0;background:none;font-size:15px;outline:none}.search-results{padding:9px;overflow-y:auto}.search-category{font-size:9px;letter-spacing:1.5px;color:#b19799;padding:15px 13px 7px;text-transform:uppercase}.search-result{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:7px;width:100%;background:transparent;text-align:left;color:#906f71}.search-result:hover{background:#f2e6e7}.search-result>svg{width:17px;height:17px;color:#b39698}.search-result-main{flex:1;font-size:12px;line-height:1.5}.search-result-main small{display:block;font-size:9px;color:#b19b9c;margin-top:3px}.search-result>svg:last-child{width:13px}.search-help{padding:12px 22px;border-top:1px solid var(--line);font-size:9px;color:#b8a5a6;background:#fef9fa}.json-editor{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;min-height:240px!important;font-size:10px!important;color:#8a6b6d!important}.native-details{margin-top:17px}.native-details summary{font-size:10px;color:#b09294;cursor:pointer;padding:8px 0}.native-details .form-field{margin-top:10px}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:calc(100vw - 32px)}.toast{display:flex;gap:10px;align-items:center;max-width:440px;border:1px solid #e4ccce;background:#fef7f7;border-radius:9px;color:#825356;box-shadow:0 5px 25px #34070718;padding:14px 17px;font-size:11px;line-height:1.6;animation:enter .2s ease-out}.toast svg{width:17px;height:17px;color:#a77376}.toast.error{background:#fff5ef;border-color:#efd7c9;color:#b28469}.toast.error svg{color:#c89b78}.connection-banner{margin-bottom:20px;padding:11px 15px;background:#f9ebdf;border:1px solid #eed8be;color:#b48e5e;border-radius:8px;font-size:11px;line-height:1.6}.mobile-shade{display:none}
@media(min-width:1600px){.main-content{padding-top:40px}.metric-card{min-height:150px}.metric-value{font-size:35px}.priority-row{padding:20px 0}.inbox-mini-row{padding:19px 0}}
@media(max-width:1280px){:root{--sidebar:215px;--gutter:26px}.nav-list{margin:0 -15px;padding:0 15px}.sidebar{padding-left:15px;padding-right:15px}.brand{padding-left:12px}.brand-name{font-size:21px}.nav-link.active:before{left:-15px}.main-content{padding-top:28px;padding-bottom:28px}.global-search{width:200px}.topbar-tools{gap:14px}.page-title{font-size:28px}.metric-card{padding:17px}.metric-value{font-size:29px}.dashboard-grid,.dashboard-bottom{gap:17px;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr)}.panel-header{padding:19px 18px 16px}.priority-list,.inbox-mini,.task-mini-list{padding-left:17px;padding-right:17px}.panel-title{font-size:18px}.metrics-grid{gap:13px}.page-actions .button{padding:9px 11px}.inbox-layout{grid-template-columns:minmax(0,1fr) 260px;gap:17px}.certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:minmax(0,1fr)}.data-table th,.data-table td{padding-left:16px;padding-right:16px}}
@media(max-width:1050px){.topbar-date{display:none}.dashboard-grid,.dashboard-bottom{grid-template-columns:1fr}.dashboard-grid .panel,.dashboard-bottom .panel{min-width:0}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-header{align-items:flex-start}.page-actions{flex-wrap:wrap;justify-content:flex-end}.page-title{font-size:27px}.inbox-layout{grid-template-columns:1fr}.inbox-help{display:none}.global-search{width:210px}.metric-card{min-height:133px}:root{--topbar-h:68px}}
@media(max-width:1024px){.sidebar{transform:translateX(-100%);transition:transform .2s ease;visibility:hidden}.sidebar.open{transform:translateX(0);visibility:visible}.mobile-shade.open{display:block;position:fixed;inset:0;background:#1f020255;z-index:29;backdrop-filter:blur(2px)}.main-shell{margin-left:0}.menu-toggle{display:grid}.breadcrumbs{margin-right:auto}}@media(max-width:760px){:root{--sidebar:236px;--gutter:19px;--topbar-h:65px}.topbar{gap:12px}.breadcrumbs{gap:8px;font-size:11px}.topbar-tools{gap:9px}.global-search{width:33px;height:33px;padding:0;display:grid;place-items:center;background:none;border:0}.global-search>span,.global-search>kbd{display:none}.global-search svg{width:19px;height:19px}.topbar-avatar{width:29px;height:29px}.main-content{padding-top:25px;padding-bottom:25px}.page-header{gap:15px;flex-direction:column;margin-bottom:21px}.page-title{font-size:29px}.eyebrow{font-size:8px;margin-bottom:8px}.page-description{font-size:10px;margin-top:8px}.page-actions{width:100%;justify-content:flex-start}.page-actions .button{font-size:10px;min-height:35px}.demo-notice{align-items:flex-start;font-size:9px;gap:7px;padding:10px;margin-bottom:18px}.demo-notice .notice-link{display:none}.demo-notice svg{margin-top:1px}.metrics-grid{gap:10px;margin-bottom:18px}.metric-card{padding:14px;min-height:129px;border-radius:11px}.metric-top{margin-bottom:14px}.metric-label{font-size:9px}.metric-icon{height:24px;width:24px;border-radius:6px}.metric-icon svg{width:13px;height:13px}.metric-value{font-size:28px}.metric-unit{font-size:15px}.metric-foot{font-size:8px;line-height:1.6;flex-wrap:wrap;margin-top:9px}.dashboard-grid,.dashboard-bottom{gap:17px}.dashboard-bottom{margin-top:17px}.panel-header{padding:18px 17px 16px}.panel-title{font-size:20px}.priority-title{font-size:11px;display:block}.priority-title .demo-tag{margin-left:4px}.priority-description{font-size:10px}.priority-list{padding-left:16px;padding-right:16px}.priority-row{gap:10px}.priority-symbol{width:30px;height:30px}.pipeline{gap:6px;padding:5px 17px 20px}.pipeline-label{font-size:8px}.pipeline-amount{font-size:8px}.pipeline-count{font-size:22px}.page-footer{align-items:flex-start;font-size:8px;line-height:1.8;padding-top:24px}.page-footer .live-dot{display:none}.section-toolbar{align-items:stretch;gap:12px}.search-input{width:100%;min-width:0;flex:1 1 100%}.filter-chip{white-space:nowrap;padding:8px 9px}.data-table td{padding:15px}.data-table th{padding:13px 15px}.data-table{font-size:10px}.table-bottom{font-size:8px;padding:12px 14px}.certificate-grid{grid-template-columns:1fr}.summary-strip{gap:14px;padding:13px 15px}.summary-strip-item{font-size:9px}.summary-strip-item strong{font-size:18px}.inbox-card{padding:17px}.inbox-card-text{font-size:11px}.inbox-mini-time{font-size:8px}.settings-grid{gap:17px}.overlay{padding:12px}.modal{max-height:94dvh;border-radius:13px}.modal-header{padding:20px}.modal-header .page-title{font-size:23px}.modal-body{padding:20px}.modal-footer{padding:15px 20px;flex-wrap:wrap}.modal-footer .footer-note{width:100%;font-size:8px}.form-grid{gap:14px 12px}.form-field input,.form-field select,.form-field textarea{font-size:13px}.form-label{font-size:10px}.detail-grid{gap:17px 13px}.detail-hero .detail-name{font-size:23px}.search-full{padding:18px}.search-full input{font-size:14px}.toast-stack{right:16px;bottom:16px}.toast{font-size:10px;padding:12px 15px}.source-text{font-size:11px}.modal.search-modal{margin-top:4vh}.inbox-card-footer .time-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sidebar{overflow:hidden}.nav-link{min-height:39px;padding-top:10px;padding-bottom:10px}.nav-list{gap:3px}.page-description{color:#887c75}.cell-sub{color:#94847a}.data-table td{color:#7b6264}.data-table th{color:#917e73}.inbox-card-text{color:#715658}.form-label{color:#88686a}.form-hint{color:#987c7e}.detail-field strong,.source-text{color:#795558}.modal-footer{flex-wrap:wrap}.modal-footer .button.ghost{margin-right:auto}.production-title{color:#614446}.panel-subtitle{color:#98867c}
.brand-name{white-space:nowrap;font-size:20px;letter-spacing:1.1px}.global-search kbd{white-space:nowrap}.global-search>span{white-space:nowrap}.table-wrap{scrollbar-width:thin;scrollbar-color:#d5bfc0 transparent}
.production-distribution{display:grid;gap:12px;padding:3px 22px 24px}.distribution-row{display:flex;align-items:center;gap:13px;font-size:10px;color:#987f81}.distribution-row>span{width:70px;flex-shrink:0}.distribution-row>strong{font-family:Georgia,serif;font-weight:400;font-size:14px;color:#886567;width:12px;text-align:right}.distribution-track{height:6px;background:#f2eaea;border-radius:5px;flex:1;overflow:hidden}.distribution-track>i{display:block;height:100%;border-radius:5px;min-width:0}
@media(max-width:760px){.modal-footer>.button{flex:1}.modal-footer .footer-note{flex-basis:100%}}
@media(max-height:940px) and (min-width:761px){.sidebar{padding-top:22px}.sidebar .brand{padding-bottom:18px}.nav-label{display:none}.nav-list{gap:2px}.sidebar-bottom{padding-top:10px}.nav-divider{margin:9px 14px}.sidebar-profile{padding-top:10px}.local-state{padding-top:7px;padding-bottom:7px}.nav-link{min-height:34px;padding-top:7px;padding-bottom:7px}}@media(max-height:760px) and (min-width:761px){.sidebar{padding-top:16px}.sidebar .brand{padding-bottom:12px}.brand-subtitle{display:none}.nav-link{min-height:32px;padding-top:6px;padding-bottom:6px}.local-state{padding-top:5px;padding-bottom:5px}}@media(max-height:690px) and (min-width:761px){.sidebar-profile{display:none}.nav-link{min-height:30px;padding-top:5px;padding-bottom:5px}}
.packet-materials{font-size:11px;color:var(--muted);margin:9px 0 0}.packet-parts{padding-left:22px;margin:14px 0 0}.packet-parts li{padding:8px 0;border-bottom:1px solid #ebe0e1}.packet-parts li:last-child{border:0}.packet-parts .attachment-link{margin-top:6px}.customer-match{margin-top:16px;border:1px solid #e6d8d9;border-radius:9px;background:#f8f2f3;padding:14px 16px;color:#755557}.customer-match.needs-choice{background:var(--amber-bg);border-color:#e6d9b9}.customer-match h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px;font-weight:500}.customer-match h3 svg{width:16px;height:16px}.customer-match p,.customer-match li{font-size:11px;line-height:1.7;margin:6px 0}.customer-match ul{padding-left:18px;margin:10px 0}.customer-match small{display:block;color:#7b6264}.customer-match .demo-tag{margin-left:6px}.inbox-history{margin-top:12px}.inbox-history-item{text-align:left;align-items:flex-start}.inbox-history-item .related-main{min-width:0;overflow-wrap:anywhere}.inbox-history-item>svg{flex-shrink:0}.inbox-history-item .source-excerpt{color:#715658;white-space:pre-wrap;line-height:1.6}.inbox-card-header .status-badge,.inbox-mini-bottom .status-badge,.inbox-history-item .status-badge{white-space:normal;flex-shrink:0;max-width:165px}.inbox-mini-bottom{gap:8px}.inbox-mini-bottom .mini-file{white-space:normal}
@media(max-width:760px){.inbox-card-header{flex-wrap:wrap}.inbox-card-header>.status-badge{margin-left:47px}.inbox-history-item{flex-wrap:wrap;gap:8px}.inbox-history-item .related-main{flex-basis:calc(100% - 32px)}.inbox-history-item>.status-badge{margin-left:24px;max-width:none}.customer-match{padding:12px}.inbox-mini-bottom{align-items:flex-start;flex-wrap:wrap}}

.entity-link{border:0;background:none;padding:0;color:#704749;font:inherit;cursor:pointer;text-align:left;line-height:1.5;text-decoration:underline;text-decoration-color:#d0bebf;text-underline-offset:3px;overflow-wrap:anywhere}.entity-link:hover{color:#3c0c0c;text-decoration-color:currentColor}.entity-link:focus-visible{outline:2px solid #876062;outline-offset:3px;border-radius:2px}.customer-code{font-variant-numeric:tabular-nums;letter-spacing:.04em;color:#6d5052}.production-detail{padding:17px;margin:16px 0;border:1px solid #e6d8d9;border-radius:9px;background:#f8f3f3}.production-detail .detail-meta{margin:12px 0}.production-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.production-actions .button{white-space:normal;text-align:left;line-height:1.45}.production-status{margin:10px 0}.production-status .status-badge{white-space:normal;line-height:1.6}.production-links{display:flex;flex-wrap:wrap;gap:7px 13px;margin:12px 0;font-size:11px}.production-context{margin:0 0 18px}.production-worker-filter{min-width:190px;max-width:310px}.production-card .form-hint{margin:8px 0;line-height:1.6}.production-card .production-client{margin:6px 0 8px}.production-card .entity-link{font-size:inherit}.missing-data{padding:8px 10px;border-radius:6px;background:var(--amber-bg);color:#8b6835;font-size:10px;line-height:1.6}.data-table .entity-link{max-width:250px}.data-table .cell-sub .status-badge{font-size:9px;white-space:normal;margin-top:6px}.detail-field .entity-link{font-weight:inherit}.production-card{cursor:default}.production-title .entity-link{color:inherit}.production-number .entity-link{font-size:10px}.production-detail>.form-hint{margin:10px 0}.production-card .overdue{color:var(--red)}
@media(max-width:760px){.production-worker-filter{width:100%;max-width:none}.production-actions .button{flex:1 1 auto}.customer-code{font-size:11px}.detail-meta .button{padding:4px 8px}.data-table .entity-link{max-width:180px}}

.safe-note[hidden]{display:none}
/* Сделки: канбан по этапам воронки. Цвет фазы — из палитры мастерской. */
.phase-lead{--phase:var(--blue);--phase-bg:var(--blue-bg)}.phase-making{--phase:var(--copper);--phase-bg:#f6ece4}.phase-handover{--phase:var(--amber);--phase-bg:var(--amber-bg)}.phase-care{--phase:#7a2e2e;--phase-bg:#f5e9e7}.phase-result{--phase:var(--muted);--phase-bg:#efe9ea}
.deal-stage-badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:9px;line-height:1.25;padding:4px 7px;border-radius:5px;background:var(--phase-bg);color:var(--phase)}.deal-stage-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.view-tabs{display:inline-flex;gap:2px;padding:3px;margin:0 0 16px;background:#ebeae2;border-radius:9px;max-width:100%;overflow-x:auto}.view-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:7px;background:transparent;color:#857a74;font-size:11px;white-space:nowrap}.view-tab svg{width:15px;height:15px}.view-tab:hover{color:var(--ink)}.view-tab.active{background:var(--card);color:var(--forest);box-shadow:0 1px 3px #2503031a}
.kanban-scroll{overflow-x:auto;margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter) 14px;scroll-padding-inline:var(--gutter);scroll-snap-type:x proximity}
.kanban{display:grid;grid-template-columns:repeat(var(--stage-count),minmax(236px,1fr));column-gap:12px;row-gap:10px;align-items:start;width:max(100%,calc(var(--stage-count) * 236px + (var(--stage-count) - 1) * 12px))}
.deal-phase{font-size:9px;letter-spacing:2px;text-transform:uppercase;font-weight:600;color:var(--phase);padding:0 2px 7px;border-bottom:2px solid var(--phase)}
.kanban-column{scroll-snap-align:start;background:#efeee7;border-radius:12px;padding:0 0 8px;min-height:180px;border:1px dashed transparent;transition:background .15s,border-color .15s}
.kanban-column.drop-target{background:var(--phase-bg);border-color:var(--phase)}
.kanban-head{padding:13px 13px 10px}.kanban-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.kanban-title h2{font-family:Georgia,'Times New Roman',serif;font-size:15px;font-weight:400;letter-spacing:-.2px;line-height:1.25}
.kanban-sum{margin-top:4px;font-size:11px;color:var(--ink);font-variant-numeric:tabular-nums}
.kanban-rule{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:9px;color:#948b86}.kanban-rule svg{width:12px;height:12px;color:var(--phase)}
.kanban-cards{display:flex;flex-direction:column;gap:8px;padding:0 8px}
.kanban-empty{margin:0;padding:18px 10px;text-align:center;font-size:10px;color:#a89e98;border:1px dashed #d9d0d0;border-radius:9px}
.kanban-hint{display:flex;align-items:center;gap:7px;margin-top:4px;font-size:10px;color:#9c948f}.kanban-hint svg{width:13px;height:13px}
.deal-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:11px 12px 10px 14px;cursor:grab;transition:border-color .15s,box-shadow .15s,transform .15s}
.deal-card::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--phase)}
.deal-card:hover{border-color:#d7c9ca;box-shadow:0 6px 18px #22050512;transform:translateY(-1px)}
.deal-card:active{cursor:grabbing}.deal-card.dragging{opacity:.45;transform:none}
.deal-card-top{display:flex;align-items:center;gap:5px;font-size:9px;color:#a0958f}.deal-number{letter-spacing:.3px;font-variant-numeric:tabular-nums}.deal-age{margin-left:auto}
.deal-client{margin-top:6px;font-size:12px;font-weight:600;color:var(--ink)}
.deal-title{margin-top:2px;font-size:11px;color:#766e6a;line-height:1.4}
.deal-money{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 7px;margin-top:8px;font-size:10px;color:#a0958f;font-variant-numeric:tabular-nums}.deal-money strong{font-size:12px;color:var(--ink);font-weight:600}
.deal-next{display:flex;align-items:center;gap:6px;margin-top:9px;padding:6px 8px;border-radius:7px;background:#f6f1f2;font-size:10px;color:#675f5a}.deal-next svg{width:12px;height:12px;color:var(--phase)}.deal-next span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deal-next time{flex-shrink:0;color:#a0958f}
.deal-next.overdue{background:var(--red-bg);color:var(--red)}.deal-next.overdue svg,.deal-next.overdue time{color:var(--red)}
.deal-card-foot{display:flex;align-items:center;gap:7px;margin-top:9px}.deal-card-foot .avatar{width:22px;height:22px;font-size:8px}.deal-owner{flex:1;min-width:0;font-size:10px;color:#766e6a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deal-check{display:inline-flex;align-items:center;gap:3px;font-size:9px;color:#a0958f;font-variant-numeric:tabular-nums}.deal-check svg{width:11px;height:11px}.deal-check.complete{color:var(--ok)}
.stage-guide{display:flex;flex-direction:column;gap:26px}
.stage-guide-heading{font-size:9px;letter-spacing:2px;text-transform:uppercase;font-weight:600;color:var(--phase);padding-bottom:8px;margin-bottom:12px;border-bottom:2px solid var(--phase)}
.stage-guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.stage-card{background:var(--card);border:1px solid var(--line);border-top:3px solid var(--phase);border-radius:12px;padding:16px 17px}
.stage-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.stage-card h3{font-family:Georgia,'Times New Roman',serif;font-size:17px;font-weight:400}
.stage-card p{margin-top:8px;font-size:11px;line-height:1.55;color:#766e6a}
.stage-card-rule{display:flex;gap:9px;margin-top:12px;padding:10px 11px;border-radius:9px;background:var(--phase-bg)}.stage-card-rule svg{width:15px;height:15px;color:var(--phase);margin-top:1px}.stage-card-rule strong{display:block;font-size:11px;color:var(--ink)}.stage-card-rule small{display:block;margin-top:3px;font-size:10px;line-height:1.45;color:#766e6a}.stage-card-rule.quiet{background:#f4eff0}
.stage-card-checklist{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}.stage-card-checklist li{position:relative;padding-left:18px;font-size:11px;color:#675f5a;line-height:1.45}.stage-card-checklist li::before{content:"";position:absolute;left:1px;top:3px;width:9px;height:9px;border:1.5px solid #cebfc0;border-radius:3px}
.deal-panel{border:1px solid var(--line);border-left:3px solid var(--phase);border-radius:10px;padding:15px 17px;margin-bottom:17px;background:#fff}
.deal-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.deal-panel-head .source-box-title{margin-bottom:6px}.deal-panel-stage{display:block;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:400}.deal-panel-head small{display:block;margin-top:4px;font-size:10px;color:#948b86}
.deal-move{display:flex;flex-direction:column;gap:5px;min-width:210px}.deal-move select{border:1px solid #e3d7d8;border-radius:7px;padding:8px 9px;background:#fdf9fa;color:var(--ink);font-size:11px}
.deal-panel-text{margin-top:10px;font-size:11px;line-height:1.55;color:#766e6a}
.deal-panel-rule{display:flex;gap:8px;margin-top:10px;padding:9px 11px;border-radius:8px;background:var(--phase-bg);font-size:11px;line-height:1.5;color:#574f4b}.deal-panel-rule svg{width:14px;height:14px;color:var(--phase);margin-top:2px}
.deal-panel-return{align-items:center}.deal-panel-return svg{margin-top:0}.deal-panel-return span{flex:1}
.deal-checklist{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:4px}.deal-checklist label{display:flex;align-items:flex-start;gap:9px;padding:6px 4px;border-radius:6px;font-size:11px;color:var(--ink);cursor:pointer}.deal-checklist label:hover{background:#f6f1f2}.deal-checklist input{margin:1px 0 0;width:15px;height:15px;accent-color:var(--forest)}.deal-checklist input:checked+span{color:#a0958f;text-decoration:line-through}

@media(max-width:760px){.kanban{grid-template-columns:repeat(var(--stage-count),min(258px,78vw));width:max-content}.deal-move{min-width:100%}.stage-guide-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.deal-card,.kanban-column{transition:none}.deal-card:hover{transform:none}}
/* Продукция: каталог моделей и состав заказа в сделке. */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.product-card:hover{border-color:#d7c9ca;box-shadow:0 10px 28px #22050514;transform:translateY(-2px)}
.product-photo{position:relative;aspect-ratio:1;background:#efeee7;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.product-card:hover .product-photo img{transform:scale(1.03)}
.product-photo-empty{display:grid;place-items:center;width:100%;height:100%;color:#bdb5b0}.product-photo-empty svg{width:42px;height:42px;stroke-width:1.2}.product-photo-empty.large{aspect-ratio:1;border-radius:12px;background:#efeee7}
.product-photo-count{position:absolute;right:9px;bottom:9px;padding:3px 7px;border-radius:5px;background:#1a0202b3;color:#f3f0e7;font-size:9px;backdrop-filter:blur(3px)}
.product-body{display:flex;flex-direction:column;gap:5px;padding:13px 14px 15px}
.product-kind{font-size:9px;letter-spacing:1.6px;text-transform:uppercase;color:#a0958f}
.product-name{font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:400;line-height:1.3;color:var(--ink)}
.product-price{font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.product-price.large{font-size:21px;margin-top:6px}
.product-stock{display:flex;align-items:center;gap:6px;font-size:10px;color:#857a74}.product-stock .status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.product-stock.free{color:var(--ok)}.product-stock.reserved{color:var(--amber)}.product-stock.order{color:var(--blue)}
.catalog-note{display:flex;align-items:flex-start;gap:8px;margin-top:18px;font-size:10px;line-height:1.55;color:#9c948f}.catalog-note svg{width:13px;height:13px;margin-top:1px}
.product-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-bottom:18px}
.product-gallery-main{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:#efeee7;display:block}
.product-gallery-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.product-gallery-thumb{width:58px;height:58px;padding:0;border-radius:8px;overflow:hidden;background:#efeee7;border:2px solid transparent;opacity:.7}.product-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.product-gallery-thumb.active,.product-gallery-thumb:hover{opacity:1;border-color:var(--forest)}
.product-info{display:flex;flex-direction:column;gap:6px;min-width:0}.product-info .detail-name{margin-top:2px}
.product-specs{margin:12px 0 0;display:grid;gap:0;border-top:1px solid var(--line)}.product-specs div{display:grid;grid-template-columns:40% 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.product-specs dt{font-size:10px;color:#948b86}.product-specs dd{margin:0;font-size:11px;color:var(--ink)}
.product-options{margin-top:10px}.option-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.option-chips span{padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px;color:#675f5a;font-variant-numeric:tabular-nums}
.product-thumb{width:26px;height:26px;border-radius:6px;object-fit:cover;background:#efeee7;flex-shrink:0;display:inline-grid;place-items:center;color:#bdb5b0;-webkit-user-drag:none;user-select:none}.product-thumb svg{width:15px;height:15px}.product-thumb.large{width:62px;height:62px;border-radius:9px}.product-thumb.large svg{width:26px;height:26px}
.deal-thumbs{display:flex;align-items:center;gap:4px;margin-top:8px}.deal-thumbs .product-thumb{border:1px solid #fff;box-shadow:0 0 0 1px var(--line)}.deal-thumbs-more{font-size:9px;color:#a0958f;margin-left:2px}.deal-thumbs-label{flex:1;min-width:0;margin-left:4px;font-size:10px;color:#766e6a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deal-items{border:1px solid var(--line);border-radius:10px;padding:15px 17px;margin-bottom:17px;background:#fff}
.deal-items-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.deal-items-head .source-box-title{margin:0}
.deal-items-total{font-size:11px;color:#766e6a;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.deal-items-total strong{font-size:14px;color:var(--ink)}.deal-items-total small{font-size:10px;color:#a0958f}
.deal-item-list{display:flex;flex-direction:column;gap:8px}
.deal-item{display:flex;align-items:center;gap:13px;padding:9px;border:1px solid #ede8e8;border-radius:10px}
.deal-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.deal-item-name{padding:0;border:0;background:none;text-align:left;font-family:Georgia,'Times New Roman',serif;font-size:15px;color:var(--ink);cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.deal-item-name:hover{text-decoration-color:#d0bebf}
.deal-item-main small{font-size:10px;color:#a0958f}.deal-item-price{font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.deal-item-qty{display:flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:8px;padding:2px}.deal-item-qty button{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:transparent;color:#776961;font-size:14px}.deal-item-qty button:hover{background:#f0ebeb}.deal-item-qty button svg{width:13px;height:13px}.deal-item-qty span{min-width:18px;text-align:center;font-size:11px;font-variant-numeric:tabular-nums}
.bot-state{margin-top:-6px}
.deal-item-traits{font-size:11px;color:#5f5551;line-height:1.45}.deal-item-traits em{display:block;font-style:normal;color:#8a7f7a}
.deal-item-edit{flex:none;width:30px;height:30px;color:#8a7672}.deal-item-edit svg{width:14px;height:14px}
.deal-items-empty{margin:0 0 10px;font-size:11px;color:#948b86;line-height:1.5}
.deal-item-add{display:block;margin-top:10px;width:100%;min-width:0;max-width:100%;border:1px dashed #d5c5c6;border-radius:8px;padding:9px 10px;background:#fdf9fa;color:#704749;font-size:11px;cursor:pointer}
@media(max-width:760px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-body{padding:10px 11px 12px}.product-name{font-size:14px}.product-detail{grid-template-columns:1fr;gap:16px}.deal-item{flex-wrap:wrap}.deal-item-main{flex-basis:110px}.deal-item-qty{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.product-card,.product-photo img{transition:none}.product-card:hover{transform:none}.product-card:hover .product-photo img{transform:none}}

/* Логотип Matt Paker (белый, с mattpaker.com), встроен как data URI: бинарные файлы в репозиторий не кладём. */
.brand{align-items:center;padding:0 8px 30px;text-align:center}.brand-logo{display:block;width:100%;max-width:184px;aspect-ratio:400/75;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAABLCAYAAABeMdGUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACi+SURBVHhe7Z0HuHxVdcVNsaBRYxJjbLHG3o29R8WCJlYQ0WDUiIqiBrFhIxaIDTSoKCJRsUvUqFSxRLGAxkIAF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dp97X+TdFRp2YJnHH1nws4No74FkWCuS55eQxOD5gAg4LLEYX84g/5tSGJP29iDP/sfpR6uavzIFgoSU2OdeC7gA9Y/M5efZJzON3RLDxeJ9q2DiQ6WGzamVIzQNcgr5nfAfuO0YrrvW5N9waXMXri/O4KVLwxS3oxU1Bi2bQMa8Pdq9xAyhoVAWRLNXMAphV4xwDT2SS6LISA/i+7TIgUWhwrKGEJyi+fjYCNKNg8gxiGSXKnCQo7jxPIC0HB8cf6wD5QQ5yDsrYHQpvujws+IL5/MRUFnbC3Wr4hEag/72LvlfAVHLYdFV5UQKx1n4bZKFvNuzexELmN8Uib41vpeDE4U2HuUyCaJaF1QXmLOsUpwD/bci9k8K5R6yFfK+DcRsvst6F2ZUYgYzP5sE9xBVOsvGm/bZmi1H75+WWV1q8yxOhMevfj6rJYKuMHBLqGZO8RjA3K5sxL/we0P4qnrVVdeEqd8YghsJuttMyr1/BlELe62GxfcL6wZsIFiMuOE6Qo2q5RHhBZtPAFz3TTHMsEkt1bhfihAlbCh8tORriwuAodbWiKC5hHycuD9LnSQAkHwD9/Lc7fkJwjJ11syiEnEA4qqI4ia4Vn48HbPDRtw+2iqBl4nbhuxLgZccuVTN78x4mrA98ooS9wgkYtwcV6/g3bic2BFh1+Pgv6mcINwavE/95IJn8JikQtIVEwAkbajB1Tlop1RMmbGuYLouvjCAntEr8dpxM8FeyaHPKIHKPBDEMoSyveNHA5ePFnOM8jImFHV2BM6xhcZH9zWmE/6e4zGQBTmiF2X8YG7jnCCDzrPCc4DcnR4CaFJ+yocWzw9xiDqNThmsPl1426DxhwjLg/wDjTUpikwjs8AAAAABJRU5ErkJggg==") center/contain no-repeat}.brand-subtitle{margin-top:11px;text-align:center}
/* План-факт: выполнение плана, бонусы, история и клиенты. Факт — фирменный бордовый, статус плана — зелёный/янтарный/красный с подписью. */
.pf-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-bottom:16px}.pf-controls .view-tabs{margin:0}
.pf-viewers .view-tab{padding:6px 12px 6px 7px}.pf-viewers .avatar{width:22px;height:22px;font-size:8px}.pf-viewers .view-tab>svg{margin-left:4px}
.pf-period{display:flex;flex-direction:column;gap:5px}.pf-period select{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--card);color:var(--ink);font-size:12px;min-width:190px}
.pf-loading{display:flex;align-items:center;gap:8px;padding:40px 0;color:var(--muted);font-size:12px}
.pf-controls+.safe-note{margin-bottom:16px}
.pf-hero{display:grid;grid-template-columns:minmax(300px,1.25fr) minmax(0,2fr);gap:14px;margin-bottom:18px}
.pf-main{display:flex;flex-direction:column;gap:12px;background:var(--forest);color:#f6eeec;border-radius:var(--radius);padding:20px 22px}
.pf-main-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#d9c5c1}
.pf-status{display:inline-flex;align-items:center;gap:6px}.pf-status i{width:7px;height:7px;border-radius:50%;background:#d9c5c1}
.pf-main.good .pf-status i{background:#9fcf8c}.pf-main.near .pf-status i{background:#e6b566}.pf-main.behind .pf-status i{background:#f09a8e}
.pf-main-value{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:54px;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.pf-main .pf-meter{background:#ffffff1f;height:8px}.pf-main .pf-meter span{background:#f6eeec}
.pf-main-foot{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#d9c5c1}.pf-main-foot b{color:#fff;font-weight:600}
.pf-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pf-tile{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px}
.pf-tile-label{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.3px;color:var(--muted)}.pf-tile-label svg{width:14px;height:14px;color:var(--copper)}
.pf-tile strong{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:25px;letter-spacing:-.4px;color:var(--ink);font-variant-numeric:tabular-nums}
.pf-tile small{font-size:10px;color:var(--muted);line-height:1.45}
.pf-meter{position:relative;display:block;height:6px;border-radius:99px;background:#ece5e3;overflow:hidden}.pf-meter span{display:block;height:100%;border-radius:99px;background:var(--forest)}
.pf-meter i{position:absolute;top:-1px;bottom:-1px;width:2px;background:var(--card)}
.pf-meter.good span{background:var(--ok)}.pf-meter.near span{background:var(--amber)}.pf-meter.behind span{background:var(--red)}
.pf-panel{margin-bottom:18px}.pf-pad{padding:0 22px 20px}
.pf-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.pf-table td small,.pf-panel td small{display:block;font-size:9px;color:var(--muted);margin-top:2px}
.pf-table tfoot td{font-weight:600;background:#faf6f5;border-top:1px solid var(--line)}
.pf-row{cursor:pointer}.pf-row:hover td{background:#faf5f4}.pf-row:focus-visible{outline:3px solid #bba473;outline-offset:-3px}
.pf-person{display:flex;align-items:center;gap:10px}.pf-person strong{display:block;font-size:12px}.pf-person small{display:block;font-size:10px;color:var(--muted)}
.pf-cell-meter{display:flex;align-items:center;gap:10px;min-width:170px}.pf-cell-meter .pf-meter{flex:1}
.pf-pct{display:inline-flex;align-items:center;gap:5px;min-width:52px;font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.pf-pct i{width:6px;height:6px;border-radius:50%;background:var(--muted)}
.pf-pct.good i{background:var(--ok)}.pf-pct.near i{background:var(--amber)}.pf-pct.behind i{background:var(--red)}
.pf-legend{display:flex;gap:18px;flex-wrap:wrap;padding:0 22px 6px;font-size:10px;color:var(--muted)}.pf-legend span{display:inline-flex;align-items:center;gap:6px}
.pf-legend i{display:inline-block}.sw-fact{width:10px;height:10px;border-radius:3px;background:var(--forest)}.sw-plan{width:14px;height:2px;background:var(--ink)}.sw-current{width:10px;height:10px;border-radius:3px;background:#9c6a66}
.pf-chart-wrap{position:relative;overflow-x:auto;padding:0 12px 6px}
.pf-chart{display:block;width:100%;min-width:600px;height:auto}
.pf-grid{stroke:var(--line);stroke-width:1}.pf-axis{font-size:10px;fill:var(--muted);font-variant-numeric:tabular-nums}
.pf-bar{fill:var(--forest)}.pf-bar.current{fill:#9c6a66}.pf-plan{stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.pf-month{font-size:11px;fill:var(--ink)}.pf-month-pct{font-size:10px;fill:var(--muted);font-variant-numeric:tabular-nums}
.pf-dot{fill:var(--muted)}.pf-dot.good{fill:var(--ok)}.pf-dot.near{fill:var(--amber)}.pf-dot.behind{fill:var(--red)}
.pf-hit{fill:transparent}.pf-col.hover .pf-hit{fill:#25030308}
.pf-tooltip{position:absolute;z-index:2;display:flex;flex-direction:column;gap:2px;min-width:170px;padding:9px 11px;border-radius:8px;background:var(--card);border:1px solid var(--line);box-shadow:0 10px 26px #25030320;font-size:11px;color:var(--ink);pointer-events:none;font-variant-numeric:tabular-nums}.pf-tooltip strong{font-size:12px;margin-bottom:2px}.pf-tooltip b{font-weight:600}
.pf-table-toggle{padding:4px 22px 18px;font-size:11px;color:var(--muted)}.pf-table-toggle summary{cursor:pointer;width:max-content}.pf-table-toggle .table-wrap{margin-top:10px}
.pf-section{display:flex;flex-direction:column;gap:14px;margin-top:10px}.pf-section-head{display:flex;flex-direction:column;gap:4px}
.pf-metrics{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.pf-metric{display:flex;flex-direction:column;gap:5px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.pf-metric span{font-size:10px;color:var(--muted)}.pf-metric strong{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:22px;color:var(--ink);font-variant-numeric:tabular-nums}.pf-metric small{font-size:10px;color:var(--muted);line-height:1.4}
.pf-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pf-grid-2 .pf-panel{margin-bottom:0}.pf-grid-2+.pf-panel{margin-top:14px}
.pf-bars{display:flex;flex-direction:column;gap:10px;padding:0 22px 20px}
.pf-bar-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) 92px;align-items:center;gap:12px;font-size:11px}
.pf-bar-name{color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-bar-track{height:8px;border-radius:99px;background:#f1eceb;overflow:hidden}.pf-bar-track span{display:block;height:100%;border-radius:99px;background:var(--forest)}
.pf-bar-value{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.pf-bar-value small{display:block;font-weight:400;font-size:9px;color:var(--muted)}
.pf-bar-count{text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.pf-pairs{display:flex;flex-direction:column;gap:8px;padding:0 22px 20px}
.pf-pair{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #efe7e5;border-radius:9px}.pf-pair .product-thumb{width:30px;height:30px}
.pf-pair-names{flex:1;min-width:0;margin-left:4px;font-size:11px;line-height:1.4}.deal-item-name.small{font-size:12px}
.pf-pair-count{font-size:11px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.pf-late{color:var(--red);font-size:10px}
.kanban-more{margin-top:2px;padding:8px;border:1px dashed #d9cfcc;border-radius:9px;background:transparent;color:var(--muted);font-size:10px}.kanban-more:hover{color:var(--ink);background:#fff}
@media(max-width:1180px){.pf-hero{grid-template-columns:1fr}}
@media(max-width:760px){.pf-tiles{grid-template-columns:1fr 1fr}.pf-grid-2{grid-template-columns:1fr}.pf-main-value{font-size:44px}.pf-controls{align-items:stretch}.pf-period select{width:100%}.pf-bar-row{grid-template-columns:minmax(0,1fr) 70px 80px}}
@media(max-width:420px){.pf-tiles{grid-template-columns:1fr}}
.pf-tier-current td{background:#f7efed;font-weight:600}
.pf-tile small br+*{margin-top:2px}

.visit-day-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.visit-day-nav{display:inline-flex;align-items:center;gap:4px}.visit-day-nav .button{width:34px;min-height:34px;padding:0;font-size:17px;line-height:1}.visit-day-nav input{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.visit-day-toolbar h2{font:400 19px Georgia,'Times New Roman',serif;letter-spacing:-.2px;margin-left:8px}
.visit-calendar-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}.visit-month{padding:18px}.visit-month-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px}.visit-month-head strong{font:400 17px Georgia,serif;text-transform:capitalize}.visit-month-head .button{font-size:18px;padding:3px 10px}.visit-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.visit-weekday{font-size:9px;color:var(--muted);text-align:center;margin:5px 0 8px}.visit-month-day{position:relative;border:0;border-radius:7px;background:transparent;color:var(--ink);height:32px;font-size:11px}.visit-month-day:hover{background:var(--sage)}.visit-month-day.selected{background:var(--brand);color:#fff}.visit-month-day i{position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;bottom:4px;left:calc(50% - 1.5px)}.visit-month-day:focus-visible,.visit-slot:focus-visible,.visit-event:focus-visible{outline:2px solid var(--copper);outline-offset:-2px;z-index:3}
.visit-day{min-width:0;justify-self:start;width:max-content;max-width:100%}.visit-branch-head,.visit-time-grid{display:grid;grid-template-columns:60px repeat(2,minmax(160px,240px))}.visit-branch-head{background:#faf7f6;border-bottom:1px solid var(--line);min-height:64px}.visit-branch-head>span{font-size:10px;color:var(--muted);padding:24px 4px;text-align:center}.visit-branch-head>div{padding:17px 14px;border-left:1px solid var(--line)}.visit-branch-head strong{font-size:13px}.visit-branch-head small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.visit-times>div{height:36px;display:flex;align-items:center;justify-content:center;white-space:nowrap;border-bottom:1px solid var(--line);padding:0 4px;font-size:11px;font-variant-numeric:tabular-nums;color:#69595a}.visit-lane{position:relative;border-left:1px solid var(--line);min-width:0}.visit-slot{display:block;width:100%;height:36px;background:#fff;border:0;border-bottom:1px solid var(--line);padding:0}.visit-slot:hover{background:#faf4f3}.visit-event{position:absolute;background:#efe3e3;border:1px solid #ddc9cb;border-left:3px solid #7c4d52;border-radius:6px;overflow:hidden;text-align:left;padding:7px 8px;color:#482528;cursor:pointer;z-index:1;line-height:1.3}.visit-event:hover{background:#e8d7d9}.visit-event strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.visit-event time{display:block;font-size:11px;margin:4px 0;font-variant-numeric:tabular-nums}.visit-event small{display:block;font-size:11px;color:#795b5e}.visit-event.completed{background:#edf0e6;border-color:#d4ddc6;border-left-color:var(--ok);color:#435637}.visit-event.short{padding:0 4px;display:flex;gap:6px;align-items:center;white-space:nowrap}.visit-event.short strong{font-size:9px;overflow:hidden;text-overflow:ellipsis}.visit-event.short time{font-size:9px;margin:0}.visit-event.short small{display:none}.visit-day-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;font-size:10px;color:var(--muted);background:#faf7f6}.visit-unassigned{margin-top:20px}.visit-unassigned .related-list{padding:0 20px 15px}
@media(max-width:1120px){.visit-calendar-layout{grid-template-columns:210px minmax(0,1fr);gap:14px}.visit-month{padding:12px}}
@media(max-width:650px){.visit-calendar-layout{grid-template-columns:1fr}.visit-month{max-width:320px;width:100%}.visit-day{width:100%}.visit-branch-head,.visit-time-grid{grid-template-columns:52px repeat(2,minmax(0,1fr))}.visit-event{padding:5px}.visit-event strong{font-size:10px}}

.appointment-customer-results{border:1px solid var(--line);border-radius:7px;background:#fff;max-height:220px;overflow:auto;margin-top:4px}.appointment-customer-results button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink)}.appointment-customer-results button:hover,.appointment-customer-results button:focus-visible{background:var(--sage)}.appointment-customer-results strong{display:block;font-size:13px;font-weight:500}.appointment-customer-results small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.appointment-customer-results .form-hint{padding:10px 12px}.appointment-customer-results[hidden],[data-appointment-telegram][hidden]{display:none}
/* Телефон: строка таблицы — карточка; подпись столбца над значением, название строки сверху, служебные кнопки по углам. */
@media(max-width:760px){.data-table:not(.pf-table) thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}.data-table:not(.pf-table),.data-table:not(.pf-table) tbody{display:block;width:100%}.data-table:not(.pf-table) tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px 16px;border-bottom:1px solid #efe9e9}.data-table:not(.pf-table) tbody tr:last-child{border-bottom:0}.data-table:not(.pf-table) tr.has-lead{padding-left:46px}.data-table:not(.pf-table) td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}.data-table:not(.pf-table) td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:9px;letter-spacing:.4px;color:#a79a93}.data-table:not(.pf-table) td.cell-primary{grid-column:1/-1;padding-right:34px}.data-table:not(.pf-table) td.cell-primary[data-label]::before{display:none}.data-table:not(.pf-table) td.cell-lead{position:absolute;top:14px;left:14px}.data-table:not(.pf-table) td.cell-tail{position:absolute;top:10px;right:8px}.data-table:not(.pf-table) td.cell-tail:empty{display:none}}
@media(max-width:760px){.metric-card.primary{grid-column:1/-1}.priority-row .icon-button{width:36px;height:36px;margin-top:-2px}.task-check{width:22px;height:22px}.panel-header .text-button{padding:8px 0}.topbar-avatar{width:32px;height:32px}}
@media(max-width:760px){.sidebar .brand{padding-bottom:16px}.brand-logo{max-width:150px}.nav-label{display:none}}
/* Сделки с товаром свёрнуты в строку «В сделках N»; при большом числе — поиск по ним. */
.product-deals{margin:22px 0 4px;border:1px solid var(--line);border-radius:10px;background:#fff}.product-deals>summary{display:flex;align-items:center;gap:8px;padding:11px 14px;cursor:pointer;list-style:none;font-size:12px;color:var(--ink)}.product-deals>summary::-webkit-details-marker{display:none}.product-deals>summary b{font-weight:600;padding:1px 8px;border-radius:999px;background:#f0e7e7;color:#7c5e60;font-size:11px}.product-deals>summary::after{content:"";margin-left:auto;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}.product-deals[open]>summary::after{transform:rotate(-135deg)}.product-deals[open]>summary{border-bottom:1px solid var(--line)}.product-deals .product-deals-search{margin:12px 14px 0;width:auto;min-width:0}.product-deals .related-list:not(:empty){margin:12px 14px 14px;max-height:360px;overflow:auto}.product-deals .related-item[hidden]{display:none}
/* Сенсорный экран: кнопки, вкладки и списки не ниже 40 px; галочка задачи 28 px (поле нажатия за её край не выходит, чтобы не задеть название задачи), у стрелок календаря — 40 px в ширину. */
@media (pointer:coarse){.button,.button.small,.view-tab,.inline-select,.panel-header .text-button{min-height:40px}.task-check{width:28px;height:28px}.visit-month-head .button{min-width:40px}}

/* Перетаскивание визита по сетке дня: визит под рукой приподнят, колонка филиала, куда он встанет, подсвечена. */
.visit-event[data-drag]{cursor:grab}
.visit-event.dragging{cursor:grabbing;z-index:5;opacity:.95;box-shadow:0 10px 26px #2205052e}
.visit-dragging,.visit-dragging *{cursor:grabbing!important;user-select:none}
.visit-lane.drop-target .visit-slot{background:#fbf5f5}

/* График консультантов: вкладки филиалов, месяц по дням, в каждом дне — консультант смены из списка. */
.shift-toolbar{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;margin-bottom:16px}
.shift-month-nav{display:inline-flex;align-items:center;gap:8px}
.shift-month-nav strong{min-width:132px;text-align:center;font-family:Georgia,serif;font-size:15px;font-weight:400;color:var(--ink)}
.shift-month-nav strong::first-letter{text-transform:uppercase}
.shift-calendar{padding:14px}
.shift-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.shift-weekday{font-size:9px;color:var(--muted);text-align:center;padding:2px 0 4px;letter-spacing:.3px}
.shift-day{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:78px;padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff}
.shift-day.filled{background:#fbf7f3}
.shift-day.today{border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest)}
.shift-day.past{opacity:.55}
.shift-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0}
.shift-date{font-size:13px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.shift-weekname{display:none;margin-left:5px;font-size:10px;font-weight:400;color:var(--muted)}
.shift-visits{font-size:9px;color:#7a5520;background:var(--amber-bg);border-radius:5px;padding:1px 5px;white-space:nowrap}
.shift-pick{display:block;min-width:0}
.shift-pick select{width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;background:#fff;padding:6px;font-size:11px;color:var(--ink);text-overflow:ellipsis}
.shift-day.filled .shift-pick select{border-color:#d9c3c4;font-weight:600;color:var(--forest)}
.shift-pick select:focus-visible{outline:2px solid #b89c9e;outline-offset:1px}
@media(max-width:700px){
  .shift-grid{grid-template-columns:1fr;gap:4px}
  .shift-weekday,.shift-gap{display:none}
  .shift-day{flex-direction:row;align-items:center;min-height:0;padding:6px 8px}
  .shift-day-head{flex:0 0 112px;flex-direction:column;gap:2px}
  .shift-weekname{display:inline}
  .shift-pick{flex:1}
}
/* Остаток оплаты при выдаче: три суммы в строку, остаток выделен цветом долга. */
.settle-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}
.settle-sum div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--card)}
.settle-sum dt{font-size:11px;color:var(--muted)}
.settle-sum dd{margin:4px 0 0;font-family:Georgia,serif;font-size:20px;color:var(--ink)}
.settle-sum .settle-rest{border-color:var(--amber);background:var(--amber-bg)}
.settle-sum .settle-rest dd{color:var(--amber)}
.settle-deal p{margin:0;font-size:13px;line-height:1.55;color:var(--ink)}
@media (max-width:520px){.settle-sum{grid-template-columns:1fr}.settle-sum div{display:flex;justify-content:space-between;align-items:baseline}.settle-sum dd{margin:0}}
/* «Путь сделки» на «Обзоре»: шагов столько, сколько открытых этапов доски; на телефоне — в два ряда. */
.pipeline{grid-template-columns:repeat(var(--steps,5),minmax(0,1fr))}
.pipeline-step:nth-child(6) .pipeline-bar{background:#e8dcdd}
.pipeline-step:nth-child(7) .pipeline-bar{background:#efe6e6}
@media (max-width:600px){.pipeline{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:14px}}
/* Этап, открытый с «Обзора», коротко подсвечивается на доске. */
.kanban-column.kanban-focus{border:1px solid var(--copper);background:#f6efe9}
/* «Повторить»: кнопка «Выбрать дату» и календарь, который раскрывается под ней внутри формы (окно не обрезает его). */
.date-pick{position:relative;align-self:start}
.date-pick-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.date-pick-button.empty{color:var(--muted)}
.date-pick-button svg{width:16px;height:16px;flex:0 0 auto;color:var(--muted)}
.date-pick-button:focus-visible,.date-pick-day:focus-visible,.date-pick-head button:focus-visible,.date-pick-foot button:focus-visible,.date-pick-wheel:focus-visible{outline:2px solid var(--copper);outline-offset:1px}
/* Календарь как в Telegram: месяц сеткой из шести недель, круги дней, «Октябрь 2026» открывает барабаны месяца и года. */
.date-pick-pop{margin-top:6px;width:300px;max-width:100%;padding:12px 10px 8px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 12px 32px #2503031a}
.date-pick-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}
.date-pick-title{display:inline-flex;align-items:center;gap:7px;padding:4px 8px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:400;cursor:pointer}
.date-pick-caret{font-size:10px;color:var(--muted)}
.date-pick-arrows{display:flex;gap:2px}
.date-pick-arrows button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.date-pick-arrows svg{width:18px;height:18px}
.date-pick-title:hover,.date-pick-arrows button:hover{background:var(--sage);color:var(--ink)}
.date-pick-week,.date-pick-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.date-pick-week{margin-bottom:4px;font-size:11px;color:var(--muted)}
.date-pick-grid{row-gap:2px}
.date-pick-day{justify-self:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}
.date-pick-day.out{color:#b3aaa7}
.date-pick-day.today{color:var(--copper);font-weight:600}
.date-pick-day:hover{background:var(--sage)}
.date-pick-day.on{background:var(--brand);color:#fff;font-weight:500}
.date-pick-day:disabled{color:#ddd6d3;font-weight:400;background:transparent;cursor:default}
.date-pick-foot{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:8px;font-size:12px;color:var(--muted)}
.date-pick-foot button{padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.date-pick-foot button:hover{background:var(--sage)}
.date-pick-foot [data-date-pick-clear],.date-pick-note{margin-right:auto}
.date-pick-foot .date-pick-close{color:var(--brand);font-weight:500}
.date-pick-wheels{position:relative;display:grid;grid-template-columns:3fr 2fr;height:180px;margin:2px 0}
.date-pick-wheel{height:180px;padding:72px 0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;border-radius:10px;-webkit-mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent);mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent)}
.date-pick-wheel::-webkit-scrollbar{display:none}
.date-pick-wheel-item{display:block;width:100%;height:36px;padding:0;border:0;background:transparent;color:#a39b98;font:inherit;font-size:15px;scroll-snap-align:center;cursor:pointer}
.date-pick-wheel-item.on{color:var(--ink);font-weight:500}
.date-pick-band{position:absolute;left:10px;right:10px;top:72px;height:36px;border-block:2px solid var(--copper);pointer-events:none}
@media (max-width:520px){[data-form="contact-task"] .form-grid{grid-template-columns:minmax(0,1fr)}}
/* «Планы и команда»: три панели одна под другой, поля плана и шкалы в таблицах. */
.team-page{display:grid;gap:22px;max-width:1080px}
.team-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
/* Заявки на доступ: карточка заявки с выбором роли и решением; под ними — ссылка на страницу регистрации. */
.access-body{padding:0 22px 20px;display:grid;gap:10px}
.access-card{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(170px,220px) auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--copper);border-radius:12px;background:#fffdfa}
.access-who{display:grid;gap:3px;min-width:0}
.access-who strong{font-size:15px;font-weight:600;color:var(--ink)}
.access-who span{font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.access-who small{font-size:12px;color:var(--muted)}
.access-role{display:grid;gap:4px;font-size:12px;color:var(--muted)}
.access-role select{width:100%;padding:8px 10px;border:1px solid #ded7d2;border-radius:8px;background:#fff;font:inherit;font-size:13px;color:var(--ink)}
.access-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.access-link{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:14px;align-items:center;padding:14px 16px;border:1px dashed #d9cdc6;border-radius:12px;background:var(--paper)}
.access-link-text{display:grid;gap:3px}
.access-link-text strong{font-size:14px;font-weight:600}
.access-link-text small{font-size:12.5px;line-height:1.45;color:var(--muted)}
.access-link-copy{display:flex;gap:8px;min-width:0}
.access-link-copy input{flex:1;min-width:0;padding:8px 10px;border:1px solid #ded7d2;border-radius:8px;background:#fff;font:inherit;font-size:13px;color:var(--ink)}
/* «Настройки» по вкладкам и таблицы ролей. */
.settings-tabs{margin:0 0 18px}
.settings-grid .access-link{grid-template-columns:1fr}
.settings-tabs .count-badge{margin-left:2px}
.settings-rights{table-layout:fixed;width:100%}.settings-rights th:first-child,.settings-rights td:first-child{width:36%}
.settings-rights td{font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.settings-rights+.settings-rights{margin-top:6px}
@media (max-width:760px){.access-body{padding:0 14px 16px}.access-card{grid-template-columns:auto minmax(0,1fr)}.access-role,.access-actions{grid-column:1/-1}.access-actions{justify-content:stretch}.access-actions .button{flex:1;justify-content:center}.access-link{grid-template-columns:1fr}}
.team-months{padding:0 22px 12px}
.team-plan-input,.team-bonus input[type=number]{width:140px;max-width:100%;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:10px;font:inherit;background:var(--card);color:var(--ink)}
.team-plan-total td{font-weight:600}
.team-bonus .form-grid{padding:12px 22px 0}
.team-bonus-actions{padding:12px 22px 20px;display:flex;justify-content:flex-end}
/* «Мессенджеры» в «Настройках»: вкладки подключения и форма выбранного аккаунта. */
.settings-messengers-body{padding:0 22px 20px}
.settings-messengers-body .conversation-connections-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
/* «Личные чаты» в настройках: поиск, найденные и скрытые чаты одной лентой строк. */
.settings-private-body{padding:0 22px 20px}
.private-search input{width:100%;padding:9px 11px;border:1px solid #ded7d2;border-radius:6px;background:#fff;font:inherit;color:#250303}
.private-list{display:grid;margin-top:6px;max-height:340px;overflow:auto}
.private-row{display:flex;align-items:center;gap:11px;padding:9px 0;border-top:1px solid #efe8e8}
.private-avatar{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f0e7e7;color:#89776d;font-weight:600;font-size:13px}
.private-info{flex:1;min-width:0;display:grid;gap:2px}
.private-info strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.private-info small{font-size:11.5px;color:#89776d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.private-subtitle{margin:18px 0 0;font-size:13px;display:flex;align-items:center;gap:8px}
.private-empty{margin:10px 0 0;font-size:12px;color:#89776d}
/* «График»: филиал и месяц в одной строке, строка «Заполнить», дни соседних месяцев приглушены. */
.shift-toolbar .view-tabs{margin:0}
.shift-day{min-height:64px}
.shift-day.out{opacity:.55}
/* Вход в CRM: карточка по центру на фоне бумаги. */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:var(--paper)}
.auth-card{width:min(400px,100%);background:var(--card);border:1px solid var(--line);border-radius:16px;padding:28px 26px;box-shadow:var(--shadow)}
.auth-brand{margin:0;font:italic 400 15px Georgia,serif;color:var(--copper)}
.auth-title{margin:4px 0 16px;font:400 26px Georgia,serif;color:var(--ink)}
.auth-tabs{margin-bottom:16px}
.auth-form{display:grid;gap:12px}
.auth-form .button{justify-content:center;min-height:44px}
.auth-error{margin:0;min-height:1em;font-size:12px;color:var(--red)}
.auth-done p{margin:6px 0 14px;font-size:13px;line-height:1.55}
.auth-back{margin-top:14px}
.auth-register{margin:16px 0 0;font-size:13px;color:var(--muted);text-align:center}
.auth-register a{color:var(--brand);font-weight:600}
button.sidebar-profile{width:100%;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer}
.sidebar-logout{margin-left:auto}
.settings-auth-body{padding:0 22px 20px;display:grid;gap:8px}
.settings-auth-body p{margin:0;font-size:13px;line-height:1.55}
/* «График»: вид «Календарь» с кистью и вид «Таблица». */
.shift-brush{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.shift-brush-label{font-size:12px;color:var(--muted)}
.shift-pen{display:inline-flex;align-items:center;gap:8px;border:1.5px solid transparent;border-radius:999px;padding:5px 12px 5px 6px;background:#f7f4f1;font:inherit;font-size:13px;color:var(--ink);cursor:pointer}
.shift-pen i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:600;color:#fff}
.shift-pen i.erase{background:#c3b9b4;font-size:13px}
.shift-pen.active{border-color:var(--ink);background:#fff;box-shadow:0 2px 8px #25030318}
.shift-hint{margin:0 0 12px}
.shift-cell{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:78px;padding:7px 8px;border:1px solid var(--line);border-radius:11px;background:#fff;font:inherit;text-align:left;cursor:pointer;user-select:none;touch-action:manipulation}
.shift-cell:hover{box-shadow:inset 0 0 0 2px #2503032e}
.shift-cell:focus-visible{outline:2px solid var(--copper);outline-offset:1px}
.shift-cell.out{background:#faf8f6}
.shift-cell.out .shift-date{color:#b5aba5}
.shift-cell.today{border-color:var(--brand)}
.shift-cell.past{opacity:.75}
.shift-cell-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.shift-who{margin-top:auto;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shift-none{margin-top:auto;font-size:11px;color:#c3b9b4}
.shift-summary{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:12px;color:var(--muted)}
.shift-summary b{color:var(--ink);font-weight:600}
@media (max-width:760px){.shift-cell{min-height:60px;padding:5px}.shift-who{font-size:10px;padding:3px 5px}}
.shift-grid{touch-action:pan-y}
.shift-cell.selecting{box-shadow:inset 0 0 0 2px var(--ink)}

/* Филиалы: карточки — просмотр с «Изменить»; изменение — поля, часы по дням недели, особые дни. */
.branch-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;padding:4px 22px 22px}
.branch-card{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.branch-card.editing{grid-column:1/-1;max-width:760px;border-color:#d9c6bd;box-shadow:0 8px 28px #2503030f}
.branch-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.branch-card-head h3{margin:0;font:400 19px/1.25 Georgia,'Times New Roman',serif}
.branch-facts{display:grid;gap:10px;margin:0}
.branch-facts div{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:baseline}
.branch-facts dt{font-size:12px;color:var(--muted)}
.branch-facts dd{margin:0;font-size:13.5px;line-height:1.45}
.branch-empty{margin:0;color:var(--muted)}
.branch-special{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.branch-fields{display:grid;grid-template-columns:200px 1fr;gap:12px}
.branch-sub{margin:6px 0 0;font:400 16px/1.3 Georgia,'Times New Roman',serif}
.branch-sub span{margin-left:6px;font:12px/1.3 Inter,-apple-system,"Segoe UI",sans-serif;color:var(--muted)}
.branch-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px;border-top:1px solid var(--line)}
@media (max-width:640px){.branch-fields{grid-template-columns:1fr}.branch-facts div{grid-template-columns:1fr;gap:2px}}

/* «Визиты» по графику филиала: вне часов — заштриховано и не записывается, выходной — плашкой поверх дорожки. */
.visit-slot.off{background:repeating-linear-gradient(135deg,#f7f3f2 0 6px,#f0eae8 6px 12px);cursor:default}
.visit-slot.off:hover{background:repeating-linear-gradient(135deg,#f7f3f2 0 6px,#f0eae8 6px 12px)}
.visit-lane-closed{position:absolute;top:10px;left:10px;right:10px;z-index:1;padding:7px 10px;border-radius:9px;background:#fff;box-shadow:0 1px 3px #2503031a;font-size:12px;color:var(--muted);text-align:center;pointer-events:none}
.visit-branch-head>div.closed strong{color:var(--muted)}
.visit-hours-hint{grid-column:1/-1;margin:-4px 0 0;min-height:0}
.visit-hours-hint:empty{display:none}
.visit-hours-hint.warn{color:#a3361f}

/* Списки — клиенты, задачи, сообщения, сервис — на широком экране не растягиваются: строка читается целиком,
   стрелка открытия и кнопки раздела рядом с данными. Доски, каталог, календари и «Обзор» используют ширину целиком. */
.main-content:is([data-route=customers],[data-route=tasks],[data-route=outbox],[data-route=service])>*{max-width:1280px}
.main-content[data-route=team]>*{max-width:1080px}

/* График работы филиала — календарём, как «График сотрудников», но компактно: кисть, обычная неделя, дни месяца. */
.hours-brush{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hours-brush-label{font-size:13px;color:var(--muted)}
.hours-brush-time{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card)}
.hours-brush-time.active{border-color:#6b2334;box-shadow:0 0 0 2px #6b23341f}
.hours-brush-time input{width:50px;min-height:30px;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;font-variant-numeric:tabular-nums;text-align:center;outline:none}
.hours-pen,.hours-chip{min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.hours-chip{border-color:transparent;background:#f6f1ef;font-variant-numeric:tabular-nums}
.hours-pen.active,.hours-chip.active{border-color:#6b2334;background:#6b2334;color:#fff}
.hours-note{flex:1 1 180px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:13px}
.hours-hint{margin:2px 0 0;font-size:12px;color:var(--muted)}
.hours-caption{margin:4px 0 -4px;font-size:12px;color:var(--muted)}
.hours-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;-webkit-user-select:none;user-select:none;touch-action:pan-y}
.hours-cell{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;min-height:44px;padding:5px 8px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.hours-cell b{font-size:11.5px;font-weight:500;color:var(--muted)}
.hours-cell span{font-size:13px;font-variant-numeric:tabular-nums}
.hours-cell i{max-width:100%;overflow:hidden;font-size:10.5px;font-style:normal;color:#8e2443;white-space:nowrap;text-overflow:ellipsis}
.hours-cell.week{background:#f6f1ef}
.hours-cell.week b{color:var(--ink)}
.hours-cell.off span{color:var(--muted)}
.hours-cell.special{border-color:#efc3cf;background:#fbe6ec}
.hours-cell.today b{color:var(--copper);font-weight:700}
.hours-cell.past{opacity:.4;cursor:default}
.hours-cell:not(.past):hover{border-color:#c9b3aa}
.hours-cell.selecting{border-color:#6b2334;box-shadow:inset 0 0 0 1px #6b2334}
.hours-cell:focus-visible{outline:2px solid var(--copper);outline-offset:1px}
.hours-month{display:flex;align-items:center;gap:10px;margin-top:6px}
.hours-month strong{font:400 16px/1.3 Georgia,'Times New Roman',serif}
.hours-nav{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:inherit;font-size:16px;cursor:pointer}
.hours-special-list{margin:0;font-size:12.5px;color:#6f6763;line-height:1.5}
@media (max-width:640px){.hours-cell{padding:4px 5px;min-height:40px}.hours-cell span{font-size:11.5px}.hours-cell i{display:none}}
/* Длинные таблицы на компьютере догружаются порциями: строка под таблицей. Шрифт не задаём — размер на телефоне ведёт mobile.css. */
.phone-more{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;color:var(--muted)}
