@font-face{font-family:Inter;src:url('./assets/Inter-Regular.woff2')}@font-face{font-family:Inter;src:url('./assets/Inter-Medium.woff2');font-weight:500}@font-face{font-family:Inter;src:url('./assets/Inter-Bold.woff2');font-weight:700}*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#20242b;font:14px/1.55 Inter,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bb6f6;outline-offset:3px}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.2px;line-height:1.2}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}small{font-size:12px}.masthead{background:#111;color:#fff}.topline{max-width:1440px;margin:auto;display:flex;align-items:center;gap:32px;padding:18px 40px;min-height:88px}.brand{display:flex;align-items:center;gap:22px;flex-shrink:0}.brand img{width:100px;height:48px;object-fit:contain}.brand>span{border-left:1px solid #3b3b3b;padding-left:22px;color:#9fa6af;font-size:12px;line-height:1.5}.brand b{display:block;color:white;font-size:14px;font-weight:500}.global-search{display:flex;align-items:center;gap:10px;background:#242424;color:#8b939e;border:1px solid #363636;border-radius:9px;padding:11px 14px;margin-left:auto;width:300px}.global-search input{width:100%;background:none;border:0;outline:0;color:white;font-size:12px}.global-search input::placeholder{color:#9aa1ab}.top-actions{display:flex;align-items:center;gap:22px}.help-btn{border:1px solid #454545;color:#c8ced7;background:none;border-radius:50%;width:25px;height:25px;font-size:13px}.profile{display:flex;align-items:center;gap:10px;color:white;background:transparent;border:0;text-align:left;padding:0}.profile strong{display:block;font-size:12px;font-weight:500}.profile small{display:block;color:#8c95a2;font-size:10px}.profile-chevron{color:#7a838f;margin-left:14px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#edf3fd;color:#3977c8;font-size:11px;font-weight:700;flex:none}.profile .avatar{background:#292d34;border:1px solid #3b414a;color:#c0d0e8}.nav-wrap{height:66px;background:white;border-bottom:1px solid #e2e6ed;display:flex;align-items:stretch;padding:0 max(40px,calc((100vw - 1360px)/2));gap:20px;position:sticky;top:0;z-index:20}nav{display:flex;gap:26px;min-width:0}nav button{white-space:nowrap;display:flex;align-items:center;gap:8px;background:transparent;border:0;border-bottom:3px solid transparent;color:#6c7481;padding:3px 0 0;font-size:12px;font-weight:500}nav button.active{color:#387cdf;border-bottom-color:#387cdf}nav svg{width:17px;height:17px}.nav-count{padding:0 5px;border-radius:4px;background:#edf2f8;font-size:10px;line-height:17px}.role-chip{align-self:center;white-space:nowrap;font-size:10px;letter-spacing:.1px;color:#687385;margin-left:auto;display:flex;align-items:center;gap:7px}.role-chip i,.app-footer i{width:5px;height:5px;border-radius:50%;background:#387cdf;display:inline-block}main{max-width:1440px;margin:auto;padding:32px 40px 28px;outline:0;min-height:calc(100vh - 215px)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:#7c8797;margin-bottom:11px}.page-head p{margin-top:9px;font-size:13px;color:#77818f}.head-actions{display:flex;gap:10px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid #dfe5ed;background:white;color:#2d3847;font-size:12px;font-weight:500;padding:11px 16px;white-space:nowrap;line-height:1.25;min-height:39px}.btn.primary{background:#387cdf;border-color:#387cdf;color:white;box-shadow:0 3px 8px #387cdf15}.btn.soft{background:#edf3fd;border-color:#edf3fd;color:#387cdf}.btn.ghost{background:transparent;border-color:transparent}.btn.small{padding:8px 12px;min-height:32px;font-size:11px}.btn svg{width:16px;height:16px}.btn:hover{filter:brightness(.98);border-color:#b9cce8}.btn.primary:hover{background:#286dcd}.text-btn{color:#387cdf;border:0;background:transparent;padding:0;font-size:12px;font-weight:500;display:inline-flex;align-items:center;gap:7px}.text-btn svg{width:15px;height:15px}.icon-btn{border:1px solid #e0e6ed;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:white;color:#758297}.date-chip{color:#738092;background:white;border:1px solid #e3e8ef;border-radius:8px;padding:10px 13px;font-size:11px;display:flex;align-items:center;gap:8px}.date-chip svg{width:15px;height:15px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:24px}.stack{display:grid;gap:20px;align-content:start}.panel{border:1px solid #e3e8ef;background:white;border-radius:13px;overflow:hidden}.pad{padding:23px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.panel-head p{margin-top:4px;font-size:11px;color:#8a94a3}.panel-head h2{font-size:16px}.hero-task{background:#387cdf;border-radius:13px;padding:25px 28px;color:white;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:25px;align-items:center;min-height:192px}.hero-task:after{content:'';position:absolute;right:-38px;top:-66px;width:250px;height:250px;border:1px solid #ffffff13;border-radius:50%;pointer-events:none}.hero-task .eyebrow{color:#d7e6ff;margin:0 0 13px}.hero-task h2{font-size:27px;letter-spacing:-.8px}.hero-task p{color:#dfebff;font-size:12px;margin-top:8px;max-width:450px}.hero-task .btn{color:#2f70ca;border-color:white;position:relative;z-index:1;margin-top:19px}.hero-time{border-left:1px solid #ffffff3b;padding:7px 16px 7px 28px;min-width:140px;position:relative;z-index:1}.hero-time strong{display:block;font-size:34px;font-weight:500;letter-spacing:-1px}.hero-time small{font-size:10px;color:#d7e6ff}.mini-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric{background:white;border:1px solid #e3e8ef;border-radius:11px;padding:18px 20px}.metric-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7e8998}.metric-label svg{width:15px;height:15px;color:#9ba9bc}.metric strong{font-size:28px;letter-spacing:-.8px;display:block;line-height:1.5;margin-top:6px}.metric small{font-size:10px;color:#8490a1}.metric small.blue{color:#387cdf}.task-item{display:flex;align-items:flex-start;gap:11px;padding:15px 0;border-bottom:1px solid #edf0f4}.task-item:last-child{border-bottom:0;padding-bottom:0}.task-item:first-of-type{padding-top:0}.task-check{accent-color:#387cdf;width:17px;height:17px;margin:3px 0 0;flex:none;cursor:pointer}.task-copy{flex:1;min-width:0}.task-copy strong{display:block;font-size:12px;line-height:1.4;font-weight:500}.task-copy small{display:block;font-size:10px;color:#8c97a6;margin-top:5px}.task-copy.done strong{text-decoration:line-through;color:#94a0af}.task-time{font-size:11px;color:#768397;white-space:nowrap;padding-top:1px}.task-time.late{color:#b85d56}.day-progress{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#758296;margin-bottom:8px}.day-progress strong{color:#38485c;font-size:11px}.progress-track{height:4px;border-radius:5px;background:#edf1f7;overflow:hidden}.progress-track>span{display:block;height:100%;background:#387cdf;border-radius:5px}.rail-title{font-size:12px;letter-spacing:.1px;margin-bottom:15px;display:flex;justify-content:space-between;align-items:center}.rail-date{font-size:10px;color:#7b899a}.agenda-item{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid #eef1f5}.agenda-item:last-child{border-bottom:0}.agenda-item .time{font-size:11px;color:#8b97a8}.agenda-item h3{font-size:12px;font-weight:500}.agenda-item p{font-size:10px;color:#8b97a8;margin-top:4px}.rail-note{background:#eef3fb;border-radius:10px;padding:17px;color:#6c7c93;font-size:11px;line-height:1.75}.rail-note strong{display:block;color:#405674;font-size:12px;margin-bottom:5px}.section-cap{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#909aaa}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:9px;letter-spacing:.8px;font-weight:500;text-transform:uppercase;color:#8b97a8;padding:12px 18px;background:#fafbfd;border-bottom:1px solid #e9edf3;white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid #edf0f5;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}td .sub{font-size:10px;color:#8a96a7;margin-top:4px;display:block}td .name{font-size:12px;color:#29394e;font-weight:500;border:0;padding:0;background:none;text-align:left}.person{display:flex;align-items:center;gap:11px}.person .avatar{width:33px;height:33px;font-size:10px}.tag{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#edf3fd;color:#427fcf;font-size:9px;line-height:1.3;padding:5px 7px;white-space:nowrap;font-weight:500}.tag.amber{background:#fbf3e7;color:#ac7c32}.tag.green{background:#eaf5ef;color:#3a8a65}.tag.gray{background:#f0f2f5;color:#7f8a9b}.tag.red{background:#fbefed;color:#b5675b}.tag.dark{background:#e8edf4;color:#50637c}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.search-field{display:flex;gap:9px;align-items:center;background:white;border:1px solid #dde4ed;border-radius:8px;padding:10px 13px;max-width:360px;flex:1;min-width:180px;color:#91a0b5}.search-field input{border:0;outline:0;width:100%;background:none;font-size:12px}.search-field svg{width:16px;height:16px}.input,.select{border:1px solid #dce3ed;background:white;border-radius:7px;color:#334157;width:100%;padding:11px 12px;font-size:12px;min-height:40px}.select.auto{width:auto;min-width:155px}.field{display:block;margin-bottom:16px}.field>span{display:block;color:#79879b;font-size:10px;margin-bottom:6px}.field small{display:block;color:#8a97a8;font-size:10px;margin-top:6px}.toolbar .count{font-size:11px;color:#8b97a7;margin-left:auto}.split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.summary-dark{background:#191919;color:white;border:0}.summary-dark .eyebrow{color:#8c9db6}.summary-dark h2{font-size:34px;letter-spacing:-1.1px;margin:12px 0 7px}.summary-dark p{color:#a2adbc;font-size:11px}.calc-line{display:flex;justify-content:space-between;gap:20px;margin:17px 0;color:#8c9bb0;font-size:11px}.calc-line strong{color:#32445d;font-weight:500;text-align:right}.summary-dark .calc-line{color:#9ba8ba}.summary-dark .calc-line strong{color:#e3eaf5}.calc-divider{height:1px;background:#e8edf4;margin:20px 0}.summary-dark .calc-divider{background:#383838}.budget-meter{padding:12px 14px;border:1px solid #dce7f9;border-radius:8px;background:#f4f8ff;font-size:11px;color:#5b7497;margin:16px 0}.budget-meter.exceeded{border-color:#f0d8cf;background:#fff8f5;color:#b47456}.form-panel h2{margin-bottom:8px}.form-panel>p{font-size:11px;color:#8a96a7;margin-bottom:24px}.note{color:#8b97a8;font-size:10px;line-height:1.75}.board-scroll{overflow-x:auto;padding-bottom:12px}.board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:16px;align-items:start}.board-column{background:#eaf0f7;border-radius:10px;padding:12px;min-height:460px}.column-head{display:flex;justify-content:space-between;align-items:center;padding:4px 3px 14px;font-size:11px;font-weight:500;color:#61748e}.column-head span{border-radius:5px;background:#dce6f3;min-width:21px;text-align:center;font-size:10px}.deal-card{background:white;border:1px solid #e0e7f0;border-radius:9px;padding:16px 13px;margin-bottom:12px;box-shadow:0 3px 6px #23385803}.deal-card .name{border:0;padding:0;background:none;color:#263952;font-size:13px;font-weight:700;display:block;text-align:left}.deal-card p{font-size:10px;color:#8a97aa;margin:5px 0 13px}.deal-card .price{font-size:15px;letter-spacing:-.3px;font-weight:500;margin-bottom:16px}.deal-card .deal-next{font-size:10px;color:#718199;border-top:1px solid #eef1f5;padding-top:11px;line-height:1.6}.deal-card .select{font-size:10px;min-height:31px;padding:6px;margin-top:12px}.empty-column{font-size:10px;color:#93a0b3;text-align:center;padding:30px 5px;border:1px dashed #cfd9e7;border-radius:8px}.tab-filter{display:flex;gap:5px;align-items:center;background:white;border:1px solid #e0e6ed;border-radius:8px;padding:4px}.tab-filter button{border:0;background:transparent;color:#8290a4;border-radius:5px;padding:7px 13px;font-size:11px}.tab-filter button.active{background:#edf3fd;color:#387cdf}.task-group{padding:21px 24px}.task-group+.task-group{border-top:1px solid #e8edf4}.task-group h3{font-size:11px;display:flex;gap:8px;align-items:center;margin-bottom:5px}.task-group .task-item{align-items:center}.task-group .task-copy strong{font-size:13px}.task-group .task-copy small{font-size:11px}.task-group .task-check{margin-top:0}.order-card{padding:24px;margin-bottom:18px}.order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.order-head h2{font-size:18px}.order-head p{margin-top:6px;font-size:11px;color:#8996a8}.timeline{display:flex;margin:28px 0 24px}.timeline-step{flex:1;position:relative;padding-top:22px;font-size:10px;color:#9aa6b8}.timeline-step:before{content:'';position:absolute;left:0;top:3px;right:0;height:2px;background:#e7edf5}.timeline-step:after{content:'';position:absolute;left:0;top:0;width:8px;height:8px;border-radius:50%;background:#dbe4f0;border:2px solid white;box-sizing:content-box}.timeline-step:last-child:before{display:none}.timeline-step.done{color:#4b78b7}.timeline-step.done:before{background:#93b5e7}.timeline-step.done:after{background:#387cdf}.timeline-step.current{font-weight:700;color:#387cdf}.timeline-step.current:after{box-shadow:0 0 0 4px #edf3fd}.order-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e9eef5;padding-top:18px}.order-foot p{font-size:11px;color:#8b97a9}.order-foot strong{display:block;color:#4b5d75;font-size:12px;font-weight:500;margin-bottom:3px}.doc-icon{width:35px;height:42px;background:#edf3fd;border:1px solid #dbe7f7;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#497ec0}.doc-icon svg{width:19px;height:19px}.empty{padding:38px;text-align:center;font-size:12px;color:#8a98ad}.app-footer{max-width:1440px;margin:auto;padding:8px 40px 24px;display:flex;justify-content:space-between;gap:12px;color:#9aa5b4;font-size:10px}.app-footer span:first-child{display:flex;align-items:center;gap:7px}#overlay{position:fixed;inset:0;z-index:100;background:#0b142468;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}#overlay[hidden]{display:none}.modal{width:min(620px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:15px;box-shadow:0 20px 100px #0b152733;outline:0}.modal.wide{width:min(960px,100%)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 26px;border-bottom:1px solid #e9edf3;position:sticky;top:0;background:white;z-index:2}.modal-head h2{font-size:19px}.modal-head p{font-size:11px;color:#8a96a8;margin-top:3px}.close-btn{background:#f3f5f8;border:0;border-radius:7px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#8090a5}.close-btn svg{width:16px;height:16px}.modal-body{padding:24px 26px}.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:17px 26px;border-top:1px solid #e9edf3;background:#fbfcfe}.client-layout{display:grid;grid-template-columns:250px 1fr;gap:28px}.client-meta{background:#f6f8fc;border-radius:10px;padding:18px;align-self:start}.client-meta .avatar{width:49px;height:49px;margin-bottom:15px;font-size:16px}.client-meta h3{font-size:17px;margin-bottom:3px}.client-meta>p{font-size:11px;color:#8b97aa}.meta-item{margin-top:20px}.meta-item small{font-size:9px;display:block;color:#8b98ac;margin-bottom:4px}.meta-item strong{font-size:12px;color:#3e526f;font-weight:500;display:block}.client-main h3{font-size:13px;margin-bottom:15px}.history-item{position:relative;margin-left:4px;padding:0 0 21px 20px;border-left:1px solid #e6ecf4}.history-item:before{content:'';position:absolute;top:5px;left:-4px;width:7px;height:7px;border-radius:50%;background:#b5c8e4}.history-item small{font-size:9px;color:#9ba7b8;display:block;margin-bottom:5px}.history-item p{font-size:12px;color:#65768e}.history-item:last-child{padding-bottom:3px}.inline-form{display:flex;gap:8px;margin-bottom:22px;align-items:flex-start}.inline-form textarea{min-height:76px;resize:vertical}.inline-form .btn{align-self:stretch;white-space:normal}.contact-card{background:#edf4ff;border:1px solid #dce8fb;border-radius:9px;padding:16px;margin-bottom:24px}.contact-card strong{display:block;font-size:12px;margin-bottom:5px}.contact-card p{font-size:11px;color:#7486a0}.contact-card .btn{margin-top:13px}.document-sheet{border:1px solid #e4e9f0;border-radius:9px;padding:26px;background:#fff}.document-sheet .sheet-brand{font-size:11px;letter-spacing:2px;color:#387cdf;font-weight:700}.document-sheet h3{font-size:21px;margin-top:25px;line-height:1.3}.document-sheet .sheet-meta{margin-top:10px;font-size:10px;color:#8e9aac}.document-sheet .sheet-line{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid #edf1f5;font-size:11px;color:#7d8da3}.document-sheet .sheet-line strong{color:#40536e;font-weight:500;text-align:right}.document-sheet .sheet-note{font-size:10px;color:#9aa8bb;margin-top:24px;line-height:1.8}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#1c2b3f;color:white;border:1px solid #3c5069;box-shadow:0 8px 30px #172b4a33;border-radius:9px;padding:12px 20px;font-size:12px;z-index:200;transition:.18s;max-width:calc(100vw - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.history-form-title{font-size:10px;color:#8695aa;margin-bottom:7px}.mobile-only{display:none}
@media(min-width:1600px){.topline,main,.app-footer{max-width:1480px}.nav-wrap{padding:0 max(40px,calc((100vw - 1400px)/2))}}
@media(max-width:1180px){.topline{padding:16px 25px;gap:20px}.nav-wrap{padding:0 25px;gap:10px}nav{gap:19px}.role-chip{display:none}main{padding:28px 25px}.app-footer{padding-left:25px;padding-right:25px}.workspace{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.hero-task{padding:23px}.hero-time{padding-left:20px;min-width:115px}.hero-time strong{font-size:29px}.hero-task h2{font-size:23px}.global-search{width:240px}.profile-chevron{display:none}td{padding:14px}th{padding:12px 14px}.pad{padding:20px}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.day-rail{display:grid;grid-template-columns:1fr 1fr;gap:18px}.day-rail .rail-note{grid-column:1/-1}.global-search{width:220px}.brand>span{display:none}.top-actions{gap:15px}.profile small{display:none}.profile>span:nth-child(2){display:none}nav{gap:25px;overflow-x:auto}.nav-wrap{height:61px;overflow-x:auto}.split{grid-template-columns:1fr}.split>.stack{display:grid;grid-template-columns:1fr 1fr}.split>.stack>.panel:first-child{grid-column:1/-1}.head-actions .date-chip{display:none}.client-layout{grid-template-columns:210px 1fr;gap:20px}}
@media(max-width:600px){body{font-size:13px}.topline{padding:12px 18px;min-height:72px;gap:16px}.brand img{width:79px;height:38px}.global-search{width:auto;flex:1;min-width:0;padding:9px 10px;margin-left:0}.global-search input{font-size:10px}.global-search svg{width:14px;height:14px}.top-actions{gap:0}.help-btn{display:none}.profile .avatar{width:31px;height:31px;font-size:10px}.nav-wrap{padding:0 18px;height:56px}nav{gap:22px;overflow:visible}nav button{font-size:11px;padding-top:3px}nav svg{display:none}.nav-count{font-size:9px}main{padding:24px 18px;min-height:calc(100vh - 200px)}h1{font-size:27px;letter-spacing:-1px}.page-head{align-items:flex-start;gap:15px;margin-bottom:22px;flex-wrap:wrap}.page-head p{font-size:11px;max-width:300px}.eyebrow{font-size:9px;margin-bottom:9px}.head-actions{width:100%;justify-content:flex-start}.head-actions .btn{font-size:11px;min-height:36px;padding:9px 13px}.hero-task{padding:22px;gap:15px;grid-template-columns:1fr}.hero-task h2{font-size:24px}.hero-task p{font-size:11px}.hero-time{border-left:0;border-top:1px solid #ffffff2a;padding:15px 0 0;display:flex;align-items:center;justify-content:space-between;min-width:0}.hero-time strong{font-size:25px}.hero-time small{font-size:10px}.hero-task .btn{margin-top:17px}.mini-metrics{gap:9px}.metric{padding:13px 12px;border-radius:9px}.metric-label{font-size:9px;line-height:1.4;min-height:26px}.metric-label svg{display:none}.metric strong{font-size:25px;margin-top:5px}.metric small{font-size:8px;line-height:1.6;display:block}.panel-head h2{font-size:15px}.panel-head p{font-size:10px}.panel-head .text-btn{font-size:10px;white-space:nowrap}.pad{padding:19px}.day-rail{grid-template-columns:1fr}.day-rail .rail-note{grid-column:auto}.table-wrap{padding-bottom:2px}td{padding:13px 14px;font-size:11px}th{font-size:8px;padding:10px 14px}.person{gap:9px}.person .avatar{display:none}.day-table td:nth-child(3),.day-table th:nth-child(3){display:none}.day-table td:nth-child(2){white-space:nowrap}.toolbar{gap:9px}.search-field{min-width:100%;max-width:none;flex-basis:100%;padding:10px 12px}.toolbar .select.auto{flex:1;min-width:140px}.toolbar .count{font-size:10px}.grid-2{grid-template-columns:1fr;gap:0}.split>.stack{grid-template-columns:1fr}.split>.stack>.panel:first-child{grid-column:auto}.summary-dark h2{font-size:31px}.field{margin-bottom:15px}.board{grid-template-columns:repeat(5,230px);gap:12px}.board-column{min-height:410px}.task-group{padding:18px}.task-group .task-item{gap:10px}.task-group .task-copy strong{font-size:12px}.task-group .task-copy small{font-size:10px}.task-group .task-time{font-size:10px}.task-group .icon-btn{width:28px;height:28px}.tab-filter{width:100%;justify-content:space-between}.tab-filter button{padding:7px 9px;font-size:10px}.order-card{padding:19px}.order-head h2{font-size:16px}.order-head p{font-size:10px}.order-head{flex-wrap:wrap}.timeline-step{font-size:8px}.timeline{margin:23px 0}.order-foot{flex-wrap:wrap;gap:13px}.order-foot .btn{width:100%;font-size:11px}.app-footer{padding:0 18px 20px;display:block;font-size:9px;line-height:1.8}.app-footer span:last-child{display:block;margin-top:3px;padding-left:12px}#overlay{padding:10px}.modal{max-height:calc(100dvh - 20px);border-radius:12px}.modal-head{padding:18px}.modal-head h2{font-size:17px}.modal-body{padding:18px}.modal-foot{padding:15px 18px;flex-wrap:wrap}.client-layout{grid-template-columns:1fr;gap:20px}.client-meta{padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.client-meta .avatar{display:none}.client-meta h3,.client-meta>p{grid-column:1/-1}.client-meta>p{margin-top:-10px}.meta-item{margin-top:4px}.meta-item:last-child{grid-column:1/-1}.inline-form{flex-direction:column}.inline-form .btn{align-self:flex-end}.document-sheet{padding:20px}.document-sheet h3{font-size:18px}.desktop-label{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Working application layers, keeping the original Figma visual language. */
[hidden]{display:none!important}.full{width:100%}.nowrap{white-space:nowrap}.muted{color:#8190a3;font-size:12px}.table-heading{margin-bottom:0;padding-bottom:18px}.rail-tasks{margin-top:18px}.add-task-link{margin-top:21px}.empty-action{margin-top:18px}.order-actions,.portal-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.order-actions .btn{min-width:120px}.order-detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.order-detail-head p{margin-top:4px}.portal-card .portal-buttons{margin-top:15px}.order-detail-head+.timeline{margin-bottom:30px}.order-detail-head~.grid-2{margin-bottom:22px}.contact-card .btn{margin-top:12px}.portal-buttons .btn{margin-top:0}.deal-card>.btn{margin-top:12px}.document-summary{display:flex;align-items:center;gap:15px;margin-bottom:25px}.document-summary p{font-size:12px;color:#8996a7;margin-top:5px}.calc-note{margin-top:15px}.profile-description{font-size:13px;color:#6e7f97;line-height:1.9}.form-error{background:#fff0ee;border:1px solid #f2cec8;color:#a84f42;font-size:12px;padding:12px 14px;border-radius:8px;margin-bottom:17px;white-space:pre-line}.toast.error{background:#9e453b}.form-error:empty{display:none}.loading-view,.boot-status{padding:80px 25px;text-align:center;color:#7e8999;font-size:14px}.boot-status{position:fixed;inset:0;background:#f3f5f8;display:flex;align-items:center;justify-content:center;z-index:90}.is-saving{cursor:progress}.is-saving:before{content:'';height:3px;position:fixed;inset:0 0 auto;z-index:200;background:linear-gradient(90deg,#387cdf 0%,#abcdfb 50%,#387cdf 100%);background-size:200% 100%;animation:saving 1s linear infinite}@keyframes saving{to{background-position:-200% 0}}.client-meta>.btn{margin-top:20px}.client-meta .sub{font-size:10px;color:#8a96a7;overflow-wrap:anywhere}.client-main>.contact-card{margin-bottom:25px}.inline-form textarea{resize:vertical;min-height:70px}.history-item p{white-space:pre-wrap;overflow-wrap:anywhere}.history-item h3{font-size:13px;margin:6px 0 3px}.modal-foot{flex-wrap:wrap}.sheet-line{gap:25px}.sheet-line strong{text-align:right}.login-screen{min-height:100vh;background:linear-gradient(115deg,#111 0%,#151a23 58%,#f3f5f8 58%);padding:37px max(40px,calc((100vw - 1200px)/2)) 65px}.login-brand{display:flex;align-items:center;gap:25px;color:#a9b3c0;font-size:13px}.login-brand img{width:105px;height:52px;object-fit:contain}.login-brand span{border-left:1px solid #424953;padding-left:25px}.login-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:95px;align-items:center;max-width:1160px;margin:70px auto 0;min-height:520px}.login-story{color:white;padding:25px 0}.login-story .eyebrow{color:#88aee4;font-size:10px;letter-spacing:1.5px}.login-story h1{font-size:44px;line-height:1.2;letter-spacing:-1.8px;margin-top:20px}.login-story>p{max-width:400px;color:#a5b1c2;font-size:14px;line-height:1.8;margin-top:25px}.login-points{display:grid;gap:19px;margin-top:35px;color:#d2dbe8;font-size:13px}.login-points span{display:flex;align-items:center;gap:13px}.login-points svg{color:#7ea8e5;width:19px;height:19px}.login-local{display:flex;align-items:center;gap:9px;font-size:11px;color:#8f9eb4;margin-top:50px}.login-local i{width:5px;height:5px;border-radius:50%;background:#73a2e6}.login-card{background:white;border:1px solid #e4e9f1;padding:37px;border-radius:16px;box-shadow:0 18px 65px #0e1a2f14;min-width:0}.login-card h2{font-size:25px;letter-spacing:-.7px}.login-card>p{font-size:12px;color:#8793a4;margin-top:8px;margin-bottom:28px}.login-card .field>span{font-size:11px}.login-card .input{padding:13px 14px;font-size:13px}.login-submit{width:100%;padding:13px 16px;margin-top:8px}.demo-access{margin-top:25px;border-top:1px solid #e8edf4;padding-top:20px;display:grid;gap:5px;font-size:11px;color:#74859c}.demo-access strong{font-size:11px;color:#54677f;font-weight:500;margin-bottom:4px}.demo-access code{font-family:Inter,Arial,sans-serif;color:#496a97}.demo-access small{font-size:10px;line-height:1.6;margin-top:5px;color:#9ba6b6}.board{grid-template-columns:repeat(5,minmax(205px,1fr))}input[type=file]{font-size:11px;padding:10px}input[type=file]::file-selector-button{border:0;border-radius:4px;padding:5px 9px;background:#edf3fd;color:#387cdf;margin-right:10px;font:inherit}.meta-item strong{overflow-wrap:anywhere}
@media(max-width:1180px){nav{gap:18px}.login-layout{gap:50px}.login-story h1{font-size:38px}.login-screen{padding:30px}.role-chip{display:none}.order-actions .btn{min-width:0}}
@media(max-width:900px){.login-screen{background:linear-gradient(180deg,#111 0%,#172233 46%,#f3f5f8 46%);padding:24px}.login-layout{grid-template-columns:1fr;max-width:530px;margin-top:20px;gap:30px}.login-story{padding-bottom:0}.login-story h1{font-size:36px}.login-story>p{margin-top:16px}.login-points{display:none}.login-local{margin-top:20px}.login-card{padding:28px}.order-actions{justify-content:flex-end}.order-actions .btn{font-size:11px}.nav-wrap nav{gap:24px}.board-scroll{margin-right:-10px}.order-foot{align-items:flex-start}.order-foot>div:first-child{max-width:55%}}
@media(max-width:600px){.login-screen{padding:20px 18px 40px}.login-brand img{width:87px;height:43px}.login-story h1{font-size:32px}.login-story>p{font-size:12px}.login-local{font-size:10px}.login-card{padding:24px 21px}.login-story{padding-top:13px}.login-layout{gap:25px}.login-card h2{font-size:23px}.order-foot>div:first-child{max-width:none}.order-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.order-actions .btn{padding:9px 10px;white-space:normal}.order-head .tag{font-size:9px}.order-detail-head{display:block}.order-detail-head>.tag{margin-top:12px}.modal-foot .btn{flex:1;white-space:normal;min-width:100px}.global-search input{font-size:10px}.table-heading .text-btn{font-size:10px}.board{grid-template-columns:repeat(5,230px)}.profile-description{font-size:12px}.portal-buttons{display:grid;grid-template-columns:1fr 1fr}.portal-buttons .btn{padding:9px;white-space:normal}.document-summary p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.is-saving:before{animation:none}}
.profile-account{display:flex;align-items:center;gap:13px;padding:16px 18px;background:#f4f7fb;border:1px solid #e7edf5;border-radius:9px;margin-bottom:16px}.profile-account strong{display:block;font-size:13px;font-weight:500;color:#30435d}.profile-account p{font-size:11px;color:#8592a5;margin-top:3px;overflow-wrap:anywhere}.profile-account .avatar{width:40px;height:40px}.profile-section{margin:24px 0 20px;border-top:1px solid #e8edf4;padding-top:22px}.profile-section h3{font-size:15px;letter-spacing:-.2px}.profile-section p{font-size:11px;color:#8291a5;line-height:1.7;margin-top:7px}.profile-description{font-size:12px}.profile-section+.profile-form .field{margin-bottom:16px}
/* Phone access, Authenticator enrollment, and owner workspace. */
.auth-security-note{display:flex;align-items:flex-start;gap:10px;margin-top:23px;border-top:1px solid #e8edf4;padding-top:20px;font-size:11px;line-height:1.7;color:#8090a6}.auth-security-note svg{width:18px;height:18px;flex:none;margin-top:2px;color:#387cdf}.auth-person{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e4eaf3;background:#f6f8fb;border-radius:9px;margin-bottom:22px}.auth-person strong{display:block;font-size:13px;color:#30435d;font-weight:500}.auth-person small{display:block;font-size:11px;color:#8190a4;margin-top:3px}.auth-footnote{font-size:10px!important;line-height:1.7;color:#8a98ab!important;margin:18px 0 0!important}.auth-instructions{display:grid;gap:11px;margin-bottom:16px;font-size:11px;color:#738399;line-height:1.7}.auth-instructions span{display:flex;align-items:flex-start;gap:10px}.auth-instructions b{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;border-radius:50%;background:#edf3fd;color:#387cdf;font-size:10px}.totp-qr-wrap{text-align:center;margin:10px 0 18px}.totp-qr{display:block;width:190px;height:190px;margin:auto;background:white;border:1px solid #e7edf5;border-radius:9px;padding:8px}.manual-key{border:1px solid #e1e8f2;border-radius:8px;margin-bottom:21px;padding:11px 13px;background:#f9fbfd;font-size:11px;color:#657a94}.manual-key summary{cursor:pointer;color:#387cdf;font-weight:500}.manual-key code{display:block;font-size:12px;letter-spacing:1.2px;padding:12px 0;overflow-wrap:anywhere;color:#334963}.manual-key small{display:block;font-size:10px;line-height:1.6;margin-top:8px}.otp-input{font-size:24px!important;letter-spacing:8px;text-align:center;font-variant-numeric:tabular-nums}.otp-input::placeholder{color:#ccd5e2}.auth-back{width:100%;margin-top:8px;font-size:11px}.auth-lock{width:60px;height:60px;border-radius:16px;background:#edf3fd;color:#387cdf;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}.auth-lock svg{width:29px;height:29px}.auth-alternatives{display:flex;flex-direction:column;margin-top:12px}.auth-alternatives .btn{font-size:11px}.recovery-warning{background:#fff7e9;border:1px solid #f2e4c8;border-radius:8px;padding:12px 14px;color:#99702c;font-size:11px;line-height:1.7;margin-bottom:18px}.recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:20px}.recovery-codes code{background:#f4f7fb;border:1px solid #e4eaf3;border-radius:6px;padding:10px;font-size:12px;text-align:center;color:#345477}.recovery-ack{display:flex;align-items:flex-start;gap:10px;font-size:11px;color:#61758f;line-height:1.7;margin:22px 0 12px}.recovery-ack input{margin-top:3px;accent-color:#387cdf;width:16px;height:16px;flex:none}.team-metrics{margin-bottom:23px}.team-row-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.team-table .person strong{font-size:12px;font-weight:500;white-space:nowrap}.audit-panel{margin-top:25px}.audit-agent{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audit-pagination{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-top:1px solid #e7edf4;font-size:11px;color:#8492a6}.audit-pagination>div{display:flex;gap:8px}.invitation-url{font-size:11px!important}.client-access-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}.client-access-summary p{font-size:11px;color:#8391a5;margin-top:6px}.client-access-portal{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;padding-top:17px;border-top:1px solid #e7edf4;font-size:11px;color:#7d8da4}.access-archive-note{margin-bottom:22px}.access-delete-copy{margin-top:18px}.archive-explainer{margin-top:18px}.btn.danger{background:#b85b50;color:white;border-color:#b85b50}.btn.danger-ghost{color:#b45c50;border-color:#edd5d0;background:#fff9f7}.btn.danger:hover{background:#a74b41}.client-access-summary+.rail-note{font-size:11px}
@media(max-width:900px){.login-layout{margin-top:18px}.login-story h1{font-size:32px}.login-story .login-local{margin-top:15px}.team-metrics .metric-label{font-size:10px}.audit-agent{max-width:180px}}
@media(max-width:600px){.totp-qr{width:174px;height:174px}.auth-instructions{font-size:10px}.recovery-codes{gap:6px}.recovery-codes code{font-size:11px;padding:8px 5px}.team-row-actions{min-width:110px}.team-metrics .metric small{font-size:8px}.client-access-summary{display:block}.client-access-summary>.tag{margin-top:12px}.client-access-portal{align-items:flex-start;flex-wrap:wrap}.audit-pagination{padding:15px}.auth-person strong{font-size:12px}.login-card .otp-input{font-size:24px}}

.recovery-codes code{overflow-wrap:anywhere}

/* Mobile workspace: contained scrolling, readable cards, and touch-sized controls. */
.task-toggle-hit{display:inline-flex;flex:none;align-items:flex-start;cursor:pointer}
.mobile-scroll-hint{display:none}
.workspace>* , .split>* , .stack>* , .grid-2>* , .day-rail>*{min-width:0}
.person>div,.profile-account>div,.auth-person>div,.order-head>div{min-width:0}
@media(max-width:800px){
  main,.topline,.nav-wrap,.app-footer{width:100%;max-width:100%}
  .topline{gap:16px;padding:14px 20px}
  .global-search{min-width:0;flex:1;margin-left:auto}
  .global-search input,.search-field input,.input,.select,.login-card .input,input[type=file]{font-size:16px;min-width:0}
  .input,.select{min-height:46px;max-width:100%}
  .btn,.btn.small,.head-actions .btn,.tab-filter button,.text-btn{min-height:44px;font-size:13px}
  .btn{white-space:normal;max-width:100%;overflow-wrap:anywhere}
  .icon-btn,.task-group .icon-btn,.close-btn{width:44px;height:44px;flex:none}
  .close-btn svg,.icon-btn svg{width:20px;height:20px}
  .field>span,.login-card .field>span{font-size:12px}
  .field small,.note,.auth-footnote{font-size:12px!important;line-height:1.65}
  .field{min-width:0;margin-bottom:20px}
  textarea.input{min-height:104px}
  .search-field{min-height:46px;max-width:100%}
  .search-field svg{width:19px;height:19px;flex:none}
  .nav-wrap{padding:0 20px;overflow-x:auto;height:62px;overscroll-behavior-x:contain;scrollbar-width:thin}
  .nav-wrap nav{gap:24px;overflow:visible;min-width:max-content}
  nav button{font-size:13px;min-height:48px}
  .page-head p{font-size:13px;max-width:none}
  .eyebrow{font-size:10px;line-height:1.6;overflow-wrap:anywhere}
  .head-actions{flex-wrap:wrap}
  .page-head>div{min-width:0}
  .panel-head p,.rail-note,.rail-note strong,.rail-date,.agenda-item .time,.agenda-item p,.day-progress,.day-progress strong{font-size:12px}
  .panel-head h2,.rail-title{font-size:16px}
  .panel-head{flex-wrap:wrap;gap:8px}
  .panel-head .text-btn,.table-heading .text-btn{font-size:12px}
  .agenda-item h3{font-size:14px}
  .table-wrap{max-width:100%;min-width:0;overflow-x:auto;padding-bottom:0}
  .panel.table-wrap{border:0;background:transparent;overflow:visible}
  .mobile-cards,.mobile-cards tbody{display:block;width:100%;min-width:0}
  .mobile-cards{border-collapse:separate}
  .mobile-cards thead{display:none}
  .mobile-cards tbody{display:grid;gap:12px}
  .mobile-cards tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:17px;background:#fff;border:1px solid #e3e8ef;border-radius:12px;min-width:0}
  .mobile-cards td,.mobile-cards .nowrap,.day-table td:nth-child(3),.day-table td:nth-child(2){display:block;min-width:0;max-width:100%;border:0;padding:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}
  .mobile-cards td:before{content:attr(data-label);display:block;font-size:11px;color:#8996a8;margin-bottom:5px;font-weight:400;line-height:1.4}
  .mobile-cards td.card-primary{grid-column:1/-1;order:-1;padding-bottom:12px;border-bottom:1px solid #edf1f6;font-size:15px;font-weight:500}
  .mobile-cards td.card-primary:before,.mobile-cards td.card-actions:before{display:none}
  .mobile-cards td.card-wide,.mobile-cards td.card-actions{grid-column:1/-1}
  .mobile-cards td.card-actions{display:flex;justify-content:flex-end;border-top:1px solid #edf1f6;padding-top:12px}
  .mobile-cards td.card-actions:empty{display:none}
  .mobile-cards .person{align-items:center;gap:12px}
  .mobile-cards .person .avatar{display:inline-flex;width:38px;height:38px;font-size:12px}
  .mobile-cards .person strong,.team-table .person strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
  .mobile-cards td .name{font-size:15px;min-height:32px;line-height:1.5;overflow-wrap:anywhere;max-width:100%}
  .mobile-cards td .sub{font-size:12px;line-height:1.5;margin-top:3px}
  .mobile-cards .tag{font-size:11px;white-space:normal;line-height:1.5}
  .panel>.table-wrap{padding:0 14px 14px}
  .day-table tr,.audit-table tr{background:#fbfcfe}
  .team-row-actions{min-width:0;width:100%;justify-content:flex-start;gap:8px}
  .team-row-actions .btn{flex:1}
  .audit-agent{max-width:none;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
  .audit-pagination{flex-wrap:wrap;gap:12px;font-size:12px}
  .task-item,.task-group .task-item{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0 10px;align-items:start;padding:17px 0}
  .task-toggle-hit{width:44px;height:44px;align-items:center;justify-content:center;grid-row:1/3;grid-column:1}
  .task-check,.task-group .task-check{width:22px;height:22px;margin:0}
  .task-copy{grid-row:1;grid-column:2;align-self:center;overflow-wrap:anywhere}
  .task-copy strong,.task-group .task-copy strong{font-size:14px;line-height:1.5}
  .task-copy small,.task-group .task-copy small{font-size:12px;line-height:1.5}
  .task-time,.task-group .task-time{grid-row:2;grid-column:2;font-size:12px;padding-top:7px;white-space:normal}
  .task-time br{display:none}
  .task-time br:after{content:' '}
  .task-item>.icon-btn{grid-row:1/3;grid-column:3;align-self:center}
  .task-item.compact{grid-template-columns:44px minmax(0,1fr)}
  .task-group h3{font-size:13px}
  .task-group .tag{font-size:11px}
  .split>.stack{grid-template-columns:1fr}
  .split>.stack>.panel:first-child{grid-column:auto}
  .calc-line,.summary-dark p,.form-panel>p{font-size:13px}
  .calc-line{gap:14px;overflow-wrap:anywhere}
  .calc-line strong{flex-shrink:0;max-width:55%}
  .budget-meter{font-size:13px}
  .board-scroll{width:100%;max-width:100%;min-width:0;margin-right:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:16px}
  .board{width:max-content;grid-template-columns:repeat(5,280px);gap:14px}
  .board-column{min-width:0;min-height:330px;scroll-snap-align:start}
  .column-head{font-size:13px;padding-bottom:17px}
  .column-head span{font-size:12px}
  .deal-card .name{font-size:15px;min-height:40px;overflow-wrap:anywhere}
  .deal-card p,.deal-card .deal-next{font-size:12px;overflow-wrap:anywhere}
  .deal-card .select{min-height:46px;font-size:16px;padding:10px}
  .deal-card .price{font-size:18px}
  .empty-column{font-size:12px}
  .mobile-scroll-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#8492a7;margin:-4px 0 12px}
  .mobile-scroll-hint svg{width:18px;height:18px}
  .toolbar .select.auto{max-width:100%;min-width:0}
  .tab-filter{max-width:100%;gap:4px}
  .tab-filter button{padding:9px 11px;white-space:normal;line-height:1.4}
  .toolbar .count{font-size:12px}
  .order-head p,.order-foot p{font-size:12px;overflow-wrap:anywhere}
  .order-foot strong{font-size:13px}
  .order-head .tag{font-size:11px;white-space:normal}
  .order-actions .btn{font-size:13px}
  .client-meta>p,.meta-item small{font-size:12px}
  .meta-item strong{font-size:14px}
  .client-meta .sub{font-size:12px}
  .client-main h3{font-size:15px}
  .history-item small{font-size:11px}
  .history-item p,.contact-card p{font-size:13px}
  .contact-card strong{font-size:14px}
  .profile-account strong,.auth-person strong{font-size:15px}
  .profile-account p,.auth-person small,.profile-description,.profile-section p{font-size:13px}
  .profile-section h3{font-size:16px}
  .client-access-summary p,.client-access-portal,.client-access-summary+.rail-note{font-size:13px}
  .client-access-summary strong,.client-access-summary p{overflow-wrap:anywhere}
  .invitation-url{font-size:16px!important}
  .document-sheet .sheet-line{font-size:13px;gap:12px;overflow-wrap:anywhere}
  .document-sheet .sheet-note,.document-sheet .sheet-meta{font-size:12px}
  .document-summary p{font-size:13px;overflow-wrap:anywhere}
  .form-error{font-size:13px;overflow-wrap:anywhere}
  .empty{font-size:14px;padding:30px 20px}
  .login-card .input{font-size:16px}
  .login-card>p,.auth-instructions,.auth-security-note,.recovery-warning,.recovery-ack{font-size:13px}
  .recovery-ack{min-height:44px;align-items:center}
  .recovery-ack input{width:22px;height:22px;margin:0}
  .manual-key{font-size:13px}
  .manual-key summary{padding:8px 0;min-height:36px}
  .manual-key small{font-size:12px}
  .recovery-codes code{font-size:13px;padding:12px 8px}
  .auth-alternatives .btn,.auth-back{font-size:13px}
}
@media(max-width:600px){
  body{font-size:14px}
  .topline{gap:10px;min-height:76px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}
  .brand img{width:72px;height:36px}
  .global-search{padding:10px;gap:8px;min-height:44px;margin:0}
  .global-search input{font-size:16px}
  .global-search input::placeholder{font-size:13px}
  .global-search svg{width:18px;height:18px}
  .top-actions{flex:none}
  .profile{min-width:44px;min-height:44px;justify-content:center}
  .profile .avatar{width:38px;height:38px;font-size:12px}
  .nav-wrap{padding:0 16px;height:58px}
  .nav-wrap nav{gap:22px}
  nav button{font-size:13px}
  .nav-count{font-size:11px;padding:1px 5px}
  main{padding:24px 16px;min-height:calc(100dvh - 210px)}
  h1{font-size:28px;line-height:1.25}
  .page-head{margin-bottom:22px;gap:16px}
  .page-head p{font-size:13px;line-height:1.65;margin-top:8px}
  .head-actions{gap:8px;width:100%;display:flex}
  .head-actions .btn{flex:1;padding:12px;font-size:13px}
  .hero-task{padding:22px;gap:18px;min-width:0}
  .hero-task h2{font-size:25px;line-height:1.3;overflow-wrap:anywhere}
  .hero-task p{font-size:13px;line-height:1.7}
  .hero-task .eyebrow{font-size:10px}
  .hero-time small{font-size:12px}
  .mini-metrics{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .metric{padding:14px 10px;min-width:0}
  .metric-label,.team-metrics .metric-label{font-size:11px;line-height:1.5;min-height:33px;overflow-wrap:anywhere}
  .metric strong{font-size:29px;letter-spacing:-.8px;line-height:1.35;margin:8px 0 5px;overflow-wrap:anywhere}
  .metric small,.team-metrics .metric small{font-size:10px;line-height:1.6}
  .metric strong.metric-word{font-size:17px;letter-spacing:-.3px;line-height:2.3}
  .pad{padding:19px 17px}
  .stack{gap:18px}
  .day-rail{grid-template-columns:1fr;gap:18px}
  .panel-head .text-btn{font-size:12px}
  .rail-title{font-size:14px}
  .agenda-item{grid-template-columns:40px minmax(0,1fr)}
  .agenda-item h3{overflow-wrap:anywhere}
  .search-field{min-width:0;flex-basis:100%;padding:11px 12px}
  .toolbar{gap:10px}
  .toolbar .select.auto{flex:1;min-width:0}
  .toolbar .count{width:100%;text-align:right;margin:0}
  .tab-filter{width:100%;justify-content:stretch;flex-wrap:wrap;padding:4px}
  .tab-filter button{flex:1;font-size:12px;padding:9px 7px}
  .tab-filter button[data-filter="portal-archive"]{min-width:124px}
  .mobile-cards tr{padding:16px;gap:14px 12px}
  .mobile-cards td.card-actions .icon-btn{width:100%;border-color:#e3eaf5;background:#f8faff;justify-content:flex-end;padding-right:14px}
  .day-table td.card-actions .icon-btn:before,.clients-table td.card-actions .icon-btn:before{content:'Открыть клиента';font-size:13px;color:#4778b7;margin-right:auto;padding-left:14px}
  .documents-table td.card-actions .icon-btn:before{content:'Скачать документ';font-size:13px;color:#4778b7;margin-right:auto;padding-left:14px}
  .mobile-cards td .name{min-height:44px}
  .task-group{padding:20px 14px}
  .task-item,.task-group .task-item{gap:0 8px}
  .task-item:last-child{padding-bottom:2px}
  .task-copy small{margin-top:4px}
  .grid-2{grid-template-columns:minmax(0,1fr);gap:0}
  .split{gap:18px}
  .form-panel>p{font-size:13px;margin-bottom:22px}
  .summary-dark h2{font-size:32px;overflow-wrap:anywhere}
  .board{grid-template-columns:repeat(5,calc(100vw - 64px));gap:12px}
  .board-column{padding:13px;min-height:330px}
  .deal-card{padding:16px}
  .order-card{padding:19px 16px}
  .order-head{gap:13px;flex-wrap:wrap}
  .order-head h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}
  .order-head .eyebrow{font-size:10px;margin-bottom:8px}
  .order-head .text-btn{display:inline;min-height:44px;font-size:13px;line-height:1.7;text-align:left}
  .timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0}
  .timeline-step{padding:12px 8px 12px 24px;min-height:58px;background:#f5f7fa;border-radius:7px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
  .timeline-step:before{display:none}
  .timeline-step:after{left:8px;top:15px;width:6px;height:6px;border-width:1px}
  .timeline-step.current{background:#edf3fd}
  .timeline-step.current:after{box-shadow:0 0 0 3px #dbe9fc}
  .order-foot{display:block;padding-top:17px}
  .order-foot>div:first-child{max-width:none}
  .order-actions{margin-top:16px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .order-actions .btn{font-size:13px;padding:12px 8px;min-height:48px}
  .order-detail-head h2{font-size:21px;overflow-wrap:anywhere}
  .order-detail-head p{font-size:13px}
  .client-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .client-meta{padding:17px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .client-meta h3{font-size:20px;overflow-wrap:anywhere}
  .client-meta>p{margin-top:-11px}
  .client-meta>.btn{grid-column:1/-1;margin:0}
  .meta-item{margin:0}
  .inline-form{gap:10px}
  .inline-form .btn{width:100%}
  .portal-buttons{grid-template-columns:minmax(0,1fr);gap:8px}
  .portal-buttons .btn{font-size:13px;padding:12px}
  .contact-card .portal-buttons .btn{margin-top:0}
  .client-access-portal .btn{width:100%}
  .client-access-summary{margin-bottom:22px}
  .profile-account{padding:15px}
  .profile-section{margin:24px 0}
  .document-summary{align-items:flex-start;gap:12px}
  .document-summary h3{font-size:17px;overflow-wrap:anywhere}
  .document-sheet{padding:18px}
  .document-sheet h3{font-size:20px}
  .document-sheet .sheet-line{flex-wrap:wrap;gap:5px}
  .document-sheet .sheet-line strong{max-width:100%;text-align:left}
  .audit-pagination>div{width:100%}
  .audit-pagination .btn{flex:1}
  .app-footer{padding:0 16px max(22px,env(safe-area-inset-bottom));font-size:11px;line-height:1.7}
  .app-footer span:last-child{padding-left:12px;margin-top:6px}
  #overlay{padding:0;align-items:stretch}
  .modal,.modal.wide{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;display:flex;flex-direction:column;overflow:hidden}
  .modal-head{position:static;flex:none;padding:16px;padding-top:max(16px,env(safe-area-inset-top));gap:12px;align-items:center}
  .modal-head>div{min-width:0}
  .modal-head h2{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
  .modal-head p{font-size:12px;line-height:1.6;margin-top:5px}
  .modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:22px 16px}
  .modal-foot{flex:none;gap:8px;padding:12px 16px max(14px,env(safe-area-inset-bottom));justify-content:stretch;align-items:stretch}
  .modal-foot .btn{flex:1 1 calc(50% - 4px);min-width:0;min-height:46px;padding:12px 8px;font-size:13px}
  .modal-foot .btn:only-child{flex-basis:100%}
  .toast{bottom:max(20px,env(safe-area-inset-bottom));font-size:13px;padding:13px 16px}
  .login-screen{min-height:100dvh;padding:20px 16px max(35px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#111 0,#172233 330px,#f3f5f8 330px)}
  .login-brand{gap:16px;font-size:12px}
  .login-brand img{width:80px;height:40px}
  .login-brand span{padding-left:16px}
  .login-layout{margin-top:24px;gap:24px;min-height:0}
  .login-story{padding:0}
  .login-story .eyebrow,.login-local{display:none}
  .login-story h1{margin-top:0;font-size:28px;line-height:1.3;letter-spacing:-.8px}
  .login-story>p{font-size:13px;line-height:1.7;margin-top:12px;max-width:390px}
  .login-card{padding:25px 20px;border-radius:14px}
  .login-card h2{font-size:25px;line-height:1.3;overflow-wrap:anywhere}
  .login-card>p{font-size:13px;line-height:1.65;margin:10px 0 24px}
  .login-card .input{font-size:16px;padding:13px}
  .login-submit{min-height:48px;font-size:14px;padding:13px}
  .auth-instructions{font-size:13px;gap:14px}
  .auth-instructions b{width:23px;height:23px;font-size:11px}
  .auth-lock{width:52px;height:52px;margin:0 auto 22px}
  .auth-person{padding:13px;gap:11px}
  .auth-person strong{font-size:14px}
  .auth-person small{font-size:12px}
  .auth-security-note{font-size:12px;margin-top:22px}
  .totp-qr{width:190px;height:190px;max-width:100%}
  .manual-key code{font-size:13px;letter-spacing:.5px}
  .recovery-codes{gap:8px}
  .recovery-codes code{font-size:12px;padding:11px 6px}
}
.task-time .task-day{display:block}
@media(max-width:800px){.task-time .task-day{display:inline;margin-right:6px}}
