:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1c3044;background:#f4f6f8;font-synthesis:none;font-size:16px;--navy:#122b42;--green:#168b70;--muted:#758493;--line:#e3e9ee;--shadow:0 8px 30px #16304808}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #73c9bb;outline-offset:3px}button{border:0}svg.ico{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-.7px;margin-bottom:8px;font-weight:650}h2{font-size:20px;letter-spacing:-.3px}h3{font-size:16px;line-height:1.4}small,.muted{color:var(--muted)}small{font-size:13px}p{line-height:1.6}label{display:grid;gap:8px;font-size:14px;font-weight:600}input,select,textarea{background:white;border:1px solid #dce3e9;border-radius:9px;padding:11px 12px;color:#1c3044;min-width:0;width:100%}textarea{resize:vertical;min-height:110px;line-height:1.5}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.check{display:flex;align-items:center;font-weight:400}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border-radius:9px;padding:10px 16px;font-weight:600;font-size:14px;white-space:nowrap;background:#edf2f5;color:#294055}.btn.primary{background:var(--green);color:white;box-shadow:0 3px 8px #168b7020}.btn.dark{background:var(--navy);color:white}.btn.light{background:white;border:1px solid var(--line)}.btn.danger{color:#b54137;background:#fff0ed}.btn.ghost{background:transparent;padding:8px}.btn:hover{filter:brightness(.96)}.iconbtn{background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:9px}.iconbtn:hover{background:#eaf0f4}.avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;font-size:12px;font-weight:700;color:#426486;background:#e6edf6}.avatar.large{width:44px;height:44px;font-size:15px}.avatar.a1{background:#deeee8;color:#327e65}.avatar.a2{background:#f5e9dd;color:#9b744f}.avatar.a3{background:#e9e4f4;color:#786597}.badge{font-size:12px;padding:5px 8px;border-radius:5px;background:#edf1f5;color:#5d7184;font-weight:600;display:inline-flex;align-items:center;gap:5px}.badge.red{background:#fff0ed;color:#c85e48}.badge.green{background:#e4f5ee;color:#25866a}.badge.blue{background:#e4f0ff;color:#477db0}.badge.gold{background:#fcf2df;color:#ae8738}.badge.purple{background:#ede8f7;color:#8165a8}.empty{padding:48px 20px;text-align:center;color:var(--muted);border:1px dashed #d8e1e8;border-radius:12px}.empty h3{color:#334d62;margin-bottom:8px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;box-shadow:var(--shadow)}.note{padding:13px 16px;background:#f0f6f9;border:1px solid #dce8ef;border-radius:9px;font-size:14px;line-height:1.6;color:#516b7d}.note.warning{background:#fff9ec;border-color:#f1e7c9;color:#8d7248}.error{color:#b14f3f;font-size:14px;line-height:1.5}.boot{padding:80px;text-align:center}.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:var(--navy);color:#c1cdda;display:flex;flex-direction:column;padding:30px 16px 20px;z-index:30}.brand{display:flex;align-items:center;gap:11px;color:white;padding:0 11px;margin-bottom:45px;font-size:19px;font-weight:650;letter-spacing:-.5px}.brand img{width:34px;height:34px}.side-label{text-transform:uppercase;letter-spacing:1.5px;font-size:10px;font-weight:650;color:#728a9e;padding:0 15px;margin:10px 0 14px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:13px;padding:13px 14px;font-size:14px;font-weight:500;border-radius:8px}.nav a.active{background:#254359;color:white}.nav a.active svg{color:#58d3b5}.nav a:hover{background:#203c53}.nav .count{margin-left:auto;background:#3d566b;color:#d8e8f3;padding:2px 7px;border-radius:5px;font-size:11px}.side-footer{margin-top:auto;padding:20px 11px 0}.side-help{padding:15px;background:#203b50;border:1px solid #2c465a;border-radius:10px;font-size:13px;line-height:1.6;margin-bottom:23px}.side-help strong{display:block;color:#dce9ee;margin-bottom:6px}.side-user{display:flex;gap:10px;align-items:center;font-size:13px}.side-user small{display:block;margin-top:4px;color:#8ea1b3}.main{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);background:#ffffffdd;display:flex;align-items:center;justify-content:space-between;padding:0 34px}.crumb{font-size:14px;color:#8b97a2;display:flex;align-items:center;gap:14px}.crumb strong{color:#46596a;font-weight:500}.top-actions{display:flex;align-items:center;gap:14px}.top-actions .date{font-size:13px;color:#7c8a97}.bell{position:relative}.bell .unread{position:absolute;right:5px;top:4px;width:8px;height:8px;background:#db785c;border-radius:50%;border:2px solid white}.workspace{padding:32px 34px;max-width:1800px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.heading p{color:var(--muted);margin:0;font-size:14px}.eyebrow{color:var(--green);font-size:11px;letter-spacing:1.7px;font-weight:700;text-transform:uppercase;margin-bottom:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 22px;display:grid;grid-template-columns:1fr auto;gap:8px}.stat-title{font-size:13px;color:#748595}.stat-value{font-size:30px;letter-spacing:-1px;font-weight:650}.stat-foot{font-size:12px;color:#85929e}.stat-icon{grid-row:span 3;background:#eef4f7;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#658496}.stat-icon.green{color:#19886b;background:#e9f5ef}.stat-icon.orange{color:#c58052;background:#fff3e9}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.filters select{max-width:200px;padding:9px 30px 9px 11px;font-size:13px;background:white;height:39px}.search{position:relative;min-width:225px}.search input{padding:10px 12px 10px 37px;font-size:13px;height:39px}.search svg{position:absolute;left:11px;top:10px;width:17px;height:17px;color:#8c9aa5}.segmented{display:flex;padding:3px;background:#e9eef2;border-radius:8px;gap:3px}.segmented button{font-size:13px;color:#6c7d8d;padding:7px 11px;border-radius:6px;background:none;display:flex;align-items:center;gap:6px}.segmented button.active{background:white;color:#294458;box-shadow:0 1px 4px #1b324415}.board{display:grid;grid-template-columns:repeat(6,minmax(205px,1fr));gap:14px;overflow-x:auto;padding-bottom:14px;align-items:start}.column{background:#edf1f4;border-radius:11px;padding:12px;min-height:440px}.column-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;padding:4px 2px 15px;color:#50677a;white-space:nowrap}.column-head .number{font-size:11px;font-weight:500;color:#718698;margin-left:1px}.column-head .iconbtn{margin-left:auto;width:20px;height:20px}.dot{width:7px;height:7px;border-radius:50%;background:#9caeba}.dot.active{background:#618fc5}.dot.clarify{background:#c59c4d}.dot.waiting{background:#a592c4}.dot.external{background:#dc9c66}.dot.resolved,.dot.closed{background:#59a98d}.ticket-card{display:block;width:100%;text-align:left;background:white;border:1px solid #e1e7ed;border-radius:10px;padding:15px;margin-bottom:12px;box-shadow:0 2px 4px #243e5010;transition:transform .12s,box-shadow .12s;cursor:pointer}.ticket-card:hover{transform:translateY(-2px);box-shadow:0 6px 15px #243e5015}.ticket-card .meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:11px;color:#91a0ad}.ticket-card h3{font-size:14px;line-height:1.5;letter-spacing:-.1px;font-weight:650;margin:0 0 10px;overflow-wrap:anywhere}.ticket-card .org{font-size:12px;color:#7d8e9b;margin-bottom:17px;display:flex;align-items:center;gap:5px}.ticket-card .org svg{width:13px;height:13px}.ticket-card .tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:17px}.ticket-card .tags .badge{font-size:10px;padding:4px 6px}.card-footer{border-top:1px solid #f0f3f5;padding-top:12px;display:flex;align-items:center;justify-content:space-between}.card-footer .avatar{width:25px;height:25px;font-size:9px}.card-footer .time{font-size:11px;color:#8b9aa6;display:flex;align-items:center;gap:5px}.card-footer .time svg{width:13px;height:13px}.column-empty{font-size:12px;text-align:center;color:#9aa9b5;border:1px dashed #d9e0e6;border-radius:8px;padding:24px 8px}.board-footer{display:flex;justify-content:space-between;margin-top:9px;color:#95a1ad;font-size:12px}.mobile-menu{display:none}.ticket-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.ticket-title{font-size:24px;line-height:1.35}.ticket-intro{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:22px}.prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:15px}.messages{display:grid;gap:19px;margin-bottom:24px}.message{display:flex;gap:12px}.message-content{min-width:0;flex:1}.message-head{font-size:13px;display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}.message-head small{font-size:11px}.message.internal .bubble{background:#fff8e9;border-color:#f0e3c2}.bubble{background:#f6f8fa;border:1px solid #edf0f3;padding:13px 15px;border-radius:0 12px 12px;font-size:14px;white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}.event{font-size:12px;color:#8093a1;text-align:center;padding:10px 0;white-space:pre-wrap;line-height:1.6}.composer{border-top:1px solid var(--line);padding-top:20px}.composer textarea{margin:13px 0}.detail-side{display:grid;gap:18px;align-content:start}.detail-side .panel{padding:20px}.field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-size:13px}.field-row>span:first-child{color:var(--muted)}.field-row>span:last-child{text-align:right}.mini-title{font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:#7d8e9b;margin-bottom:15px}.full{width:100%}.attachment{display:flex;align-items:center;gap:10px;background:#f3f6f8;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;margin-bottom:8px;overflow-wrap:anywhere}.time-entry{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.time-entry:last-child{border-bottom:0}.time-entry .btn{padding:5px 8px;min-height:30px;font-size:12px}.time-entry small{font-size:11px}.timer{background:#e6f5ef;color:#267d66;border:1px solid #c7e6da;padding:10px;border-radius:8px;font-size:13px}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.knowledge-card h3{font-size:17px;margin:14px 0 10px}.knowledge-card p{font-size:14px;color:#6c7d8c;white-space:pre-wrap}.knowledge-card .article-body{max-height:150px;overflow:auto}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#80909d;background:#f7f9fb;font-weight:600;padding:14px 16px;white-space:nowrap}td{border-bottom:1px solid #edf1f4;padding:16px;vertical-align:middle}td small{display:block;margin-top:5px}tr:last-child td{border-bottom:0}.table-link:hover{color:var(--green)}.person-card{display:flex;gap:15px;align-items:center}.person-card h3{margin:0 0 5px}.person-card p{margin:0;font-size:13px;color:var(--muted)}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.load-row{margin-top:20px}.load-row .row{font-size:14px;margin-bottom:8px}progress{width:100%;height:8px;border:0;border-radius:10px;background:#edf2f5;overflow:hidden}progress::-webkit-progress-bar{background:#edf2f5}progress::-webkit-progress-value{background:#51af97;border-radius:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid h2{margin-bottom:22px}.integration{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.integration:last-child{border:0}.integration small{display:block;margin-top:7px}.section-gap{margin-top:24px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--navy);color:white;padding:55px 11%;display:flex;flex-direction:column;justify-content:center}.login-story .brand{padding:0;margin:0 0 70px;font-size:24px}.login-story h1{font-size:46px;line-height:1.15;letter-spacing:-1.6px;max-width:540px;margin-bottom:22px}.login-story>p{color:#a5bbcc;font-size:17px;max-width:400px}.login-points{display:grid;gap:22px;margin:35px 0 70px}.login-points .row{font-size:14px;color:#d0dfe9}.login-points svg{color:#65c6aa}.login-small{font-size:12px;color:#809bab}.login-form{display:flex;align-items:center;justify-content:center;padding:45px}.login-inner{width:100%;max-width:410px}.login-inner h2{font-size:27px;margin-bottom:10px}.login-inner>p{color:var(--muted);font-size:14px;margin-bottom:30px}.login-inner form{display:grid;gap:18px}.demo-roles{display:grid;gap:9px;margin-top:20px}.demo-role{display:flex;align-items:center;gap:12px;padding:13px 15px;background:white;border:1px solid var(--line);border-radius:10px;text-align:left;color:#294559}.demo-role:hover{border-color:#94cdbd;background:#f4faf7}.demo-role small{display:block;margin-top:4px}.demo-role .arrow{margin-left:auto;color:#9aacb8}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(620px,calc(100% - 28px));max-height:90vh;color:#1c3044;box-shadow:0 30px 100px #10294040}dialog::backdrop{background:#112c4660;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-head h2{margin:0;font-size:20px}.modal-body{padding:24px;display:grid;gap:18px}.modal-body pre{white-space:pre-wrap;font-family:inherit;font-size:13px;background:#f5f7f9;padding:15px;border-radius:8px;max-height:250px;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:10px}.modal-body .check{font-size:14px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#18374b;color:white;border-radius:10px;box-shadow:0 8px 30px #17364930;padding:13px 20px;font-size:14px;z-index:100;max-width:90vw;display:none}#toast.visible{display:block}.notification{padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}.notification small{display:block}.login-return{margin-top:16px}.form-error{margin:0}.hidden{display:none!important}.recording{color:#bd493a!important}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-head h2{margin:0}.client-list{display:grid;gap:14px}.client-ticket{display:flex;align-items:center;justify-content:space-between;gap:15px}.client-ticket h3{margin:9px 0}.client-ticket p{font-size:14px;color:var(--muted);margin:0}.search-note{font-size:13px;color:#8594a2}.report-total{font-size:30px;font-weight:650;margin:10px 0 8px}.audit{font-size:12px;color:#7c8f9e;line-height:1.7}.pill-button{font-size:13px;background:white;padding:7px 12px;border:1px solid var(--line);border-radius:20px;color:#667d8e}.pill-button.active{background:#e1f3ed;border-color:#b8e1d2;color:#258367}
@media(min-width:1700px){.board{grid-template-columns:repeat(6,minmax(210px,1fr))}.ticket-card h3{font-size:15px}}
@media(max-width:1200px){.sidebar{width:200px}.app{grid-template-columns:200px minmax(0,1fr)}.workspace{padding:26px 24px}.topbar{padding:0 24px}.brand{font-size:16px;gap:7px;padding:0 6px}.brand img{width:30px;height:30px}.stats{gap:10px}.stat{padding:16px}.stat-title{font-size:12px}.stat-icon{display:none}.ticket-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .18s;width:232px}.sidebar.open{transform:translateX(0);box-shadow:30px 0 80px #132d4540}.app{display:block}.main{width:100%}.mobile-menu{display:inline-flex}.topbar{height:62px;padding:0 18px}.top-actions .date{display:none}.crumb{gap:8px}.workspace{padding:24px 18px}.ticket-layout{grid-template-columns:1fr}.detail-side{grid-template-columns:1fr 1fr}.login-story{padding:40px}.login-story h1{font-size:35px}.login-story .brand{margin-bottom:45px}.settings-grid,.report-grid{grid-template-columns:1fr}}
@media(max-width:580px){h1{font-size:25px}.heading{align-items:flex-start;gap:12px}.heading p{font-size:13px;max-width:220px}.heading .btn{padding:10px;font-size:13px}.heading .btn svg{width:17px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.stat{padding:14px}.stat-value{font-size:27px}.stat-foot{font-size:11px}.toolbar{gap:12px}.filters{width:100%}.search{min-width:0;flex:1;width:100%}.filters select{max-width:48%;flex:1}.board{display:flex;flex-direction:column;gap:18px;overflow:visible}.column{width:100%;min-height:0;padding:10px}.column-head{font-size:14px}.ticket-card{padding:16px;margin-bottom:9px}.ticket-card h3{font-size:16px}.ticket-card .tags .badge{font-size:12px}.ticket-card .meta,.ticket-card .org{font-size:13px}.column-empty{padding:16px}.card-footer .time{font-size:12px}.board-footer{font-size:11px;gap:20px;line-height:1.6}.panel{padding:18px}.grid2,.detail-side{grid-template-columns:1fr}.ticket-title{font-size:22px}.ticket-layout{gap:16px}.login-page{display:block}.login-story{padding:28px 24px}.login-story .brand{margin:0 0 25px;font-size:21px}.login-story h1{font-size:30px;max-width:350px;margin-bottom:10px}.login-story>p{font-size:14px;margin-bottom:0}.login-points,.login-small{display:none}.login-form{padding:30px 24px}.login-inner h2{font-size:23px}.topbar .crumb>span{display:none}.modal-body{padding:20px}.client-ticket{align-items:flex-start}.knowledge-grid{grid-template-columns:1fr}.client-ticket .btn{font-size:12px}.table-wrap{margin:0 -5px}.section-head{gap:12px}.section-head h2{font-size:18px}.row.wrap .btn{flex:1}.message{gap:8px}.message>.avatar{width:28px;height:28px;font-size:10px}.bubble{padding:12px}.composer .row{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.column.dragover{outline:2px dashed #329c81;background:#e6f1ec}.ticket-card:active{cursor:grabbing}
/* Inline attachments and message visibility control. */
.attachment-preview{margin:12px 0;max-width:100%}.photo-button{padding:0;border:0;background:none;cursor:zoom-in}.photo-button img{max-width:100%;max-height:240px;border-radius:10px;object-fit:contain}.attachment-preview audio{width:100%;max-width:420px}.full-photo{width:100%;max-height:75vh;object-fit:contain}.composer .check{font-size:13px;margin:0}.composer>.row{flex-wrap:wrap;gap:12px}[hidden]{display:none!important}

.badge.urgent{background:#dc2626;color:#fff;font-weight:800;border:1px solid #b91c1c;box-shadow:0 0 0 2px #fee2e2}
.contact-maintenance{border:1px solid #99d8c2;background:#e4f5ee;color:#176f58}
.contact-access-off{border:1px solid #ccd5dc;background:#f2f4f6;color:#71808c}

.ticket-card.priority-client,.ticket-card.priority-client:hover,tr.priority-client>td{background-color:#dcfce7}

.payroll-total{display:block;margin:6px 0 8px 20px;color:var(--muted)}.payroll-tasks{padding-left:16px;border-left:2px solid #e2e8f0;margin-top:12px}.payroll-task>.table-link{display:inline-block;margin:8px 0}.payroll-client summary,.payroll-task summary{cursor:pointer}

/* Compact task counters and a single desktop filter row. */
.stats .stat{padding:10px 14px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-items:center;min-height:68px}
.stats .stat-value{grid-column:1;grid-row:1 / 3;font-size:28px}
.stats .stat-title{grid-column:2;grid-row:1;align-self:end}
.stats .stat-foot{grid-column:2;grid-row:2;align-self:start;font-size:11px}
.stats .stat-icon{grid-column:3;grid-row:1 / 3;width:28px;height:28px}
.filters .pill-button{white-space:nowrap;flex-shrink:0;height:39px}
@media(min-width:1000px){.toolbar .filters{flex-wrap:nowrap;flex:1;min-width:0}.toolbar .search{min-width:180px;max-width:225px;flex:1}.toolbar .filters select{width:180px;min-width:110px}.toolbar .segmented{flex-shrink:0}}
@media(max-width:580px){.stats .stat{padding:9px;column-gap:8px}.stats .stat-value{font-size:24px}}

.duty-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.duty-day{padding:10px;border:1px solid #e3e9ee;border-radius:8px;min-height:90px;font-weight:400}.duty-off{background:#e4f5ee}.duty-day small{overflow-wrap:anywhere}@media(max-width:600px){.duty-grid{gap:3px}.duty-day{padding:4px}.duty-day small{font-size:10px}}
.confirmation-panel{margin:16px 0;padding:22px;border:2px solid #129579;border-radius:14px;background:#e7f8f1;box-shadow:0 3px 12px #12957920}.confirmation-panel h3{margin:0 0 12px}.confirmation-panel p{white-space:pre-wrap}

.settings-group{border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:14px;min-width:0;background:#fafcfd}.settings-group h3{margin:0;font-size:17px}.settings-help{margin:0;color:#667d8e;font-size:13px;line-height:1.6}.settings-group small{line-height:1.5}.settings-save{display:grid;gap:12px;padding-top:4px}@media(max-width:600px){.settings-group{padding:14px}}

.mobile-bottom{display:none}.chat-panel{max-width:1000px;margin:auto}.chat-history{display:grid;gap:20px;max-height:60vh;overflow:auto;padding:8px}.chat-message{min-width:0}.chat-image{max-width:100%;max-height:280px;border-radius:10px}.chat-task{display:block;padding:12px;border:1px solid var(--line);border-radius:10px;margin-top:8px;background:#edf7f3}.chat-panel audio{max-width:100%}.chat-panel input[type=file]{max-width:100%;width:240px}.chat-panel textarea{min-height:85px}@media(max-width:850px){.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:white;border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:10}.mobile-bottom a,.mobile-bottom button{display:flex;align-items:center;flex-direction:column;gap:4px;font-size:11px;background:none;border:0;color:var(--navy)}.workspace{padding-bottom:95px}.chat-panel{padding:12px}.chat-history{max-height:52vh}}

.contact-row{display:grid;gap:5px;padding:16px 0;border-bottom:1px solid var(--line)}.table-wrap{overflow-x:auto}.table-wrap td{vertical-align:top;min-width:105px}
.contacts-filters{display:grid;grid-template-columns:minmax(230px,2fr) repeat(3,minmax(150px,1fr));gap:10px;margin-bottom:18px}.contacts-table-wrap{border:1px solid var(--line);border-radius:10px}.contacts-table th{position:sticky;top:0;z-index:1}.contacts-table tbody tr{cursor:pointer;transition:background .12s}.contacts-table tbody tr:hover,.contacts-table tbody tr:focus{background:#f4faf7;outline:none}.contacts-table td:first-child{min-width:190px}.contacts-table td:nth-child(2){min-width:150px}.contacts-table td:nth-child(4){min-width:185px}.contacts-table td:last-child{min-width:190px}.contact-flag{margin-top:8px}.contact-linked{color:var(--green)}.contact-unlinked,.contact-missing{color:#b47743}.contact-actions{display:flex;gap:7px}.contact-actions .btn{min-height:34px;padding:7px 10px;font-size:12px}.contact-empty{text-align:center;color:var(--muted);padding:35px!important}
@media(max-width:1100px){.contacts-filters{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.contacts-filters{grid-template-columns:1fr}.contacts-table-wrap{border:0;overflow:visible}.contacts-table,.contacts-table tbody{display:block}.contacts-table thead{display:none}.contacts-table tbody{display:grid;gap:12px}.contacts-table tbody tr{display:grid;background:white;border:1px solid var(--line);border-radius:11px;padding:13px;box-shadow:var(--shadow)}.contacts-table tbody td{display:grid;grid-template-columns:115px minmax(0,1fr);gap:10px;min-width:0!important;padding:9px 2px;border-bottom:1px solid #edf1f4;overflow-wrap:anywhere}.contacts-table tbody td::before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#80909d;font-weight:600}.contacts-table tbody td:first-child{padding-top:2px}.contacts-table tbody td:last-child{border-bottom:0;padding-bottom:2px}.contacts-table tbody td.contact-empty{display:block}.contact-actions{flex-wrap:wrap}.contact-actions .btn{flex:1}}

.planned-date{display:block;margin:6px 0;color:#456780}.programming-load{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding:9px 12px;background:#e8effc;border-left:4px solid #6e91d4;border-radius:6px;color:#183b60;text-decoration:none}.programming-load span{overflow-wrap:anywhere;min-width:0}.programming-load strong{white-space:nowrap;font-size:12px}.programming-load.overdue{background:#fff0ee;border-color:#dc453f}.planned-date.overdue,.programming-load.overdue{color:#b52323}
#technical-table table{table-layout:fixed;min-width:860px;width:100%}#technical-table th,#technical-table td{min-width:0;padding:12px 8px;overflow-wrap:anywhere;white-space:normal}#technical-table th:nth-child(1){width:17%}#technical-table th:nth-child(2){width:15%}#technical-table th:nth-child(3){width:17%}#technical-table th:nth-child(4){width:9%}#technical-table th:nth-child(5){width:15%}#technical-table th:nth-child(6){width:16%}#technical-table th:nth-child(7){width:11%}#technical-table .btn{padding:6px;font-size:12px;min-height:34px}#technical-table summary{cursor:pointer}
.automatic-periods{display:grid;gap:7px;padding:9px 0}.automatic-period{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;padding:8px 10px;background:#f6f8fa;border-radius:7px;font-size:11px}.automatic-period>span{grid-column:1/-1;color:var(--muted)}.automatic-period>strong{font-weight:600;line-height:1.45}.automatic-period>small{text-align:right;white-space:nowrap}

.report-tabs{width:max-content;margin:22px 0 14px;background:#e9eef2;padding:4px;border-radius:10px}.report-tabs button{padding:10px 18px;border-radius:8px;background:transparent;color:#607486;font-weight:600}.report-tabs button.active{background:white;color:#17364d;box-shadow:0 2px 8px #18374b18}
.task-contact{display:grid;gap:.45rem;padding-bottom:.4rem}.task-contact small{display:block;color:var(--muted)}.contact-phone{display:flex;align-items:center;gap:.4rem;font-weight:700;font-size:1.05rem;color:var(--primary);width:max-content}.task-contact+hr{border:0;border-top:1px solid var(--border);margin:1rem 0}

.register-links{display:grid;gap:.65rem;margin:1rem 0}
.task-kind-choice{border:0;padding:0;margin:0}.task-kind-choice legend{font-size:14px;font-weight:600;margin-bottom:8px}.task-kind-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#edf2f5;border-radius:10px}.task-kind-options label{display:block;cursor:pointer}.task-kind-options input{position:absolute;opacity:0;pointer-events:none}.task-kind-options span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border-radius:8px;color:#617687;font-size:14px;font-weight:600;text-align:center}.task-kind-options input:checked+span{background:#fff;color:#1c3044;box-shadow:0 1px 5px #1b324420}.task-kind-options input:focus-visible+span{outline:3px solid #73c9bb;outline-offset:2px}[data-task-kind]{display:grid;gap:18px}
.table-sort{display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.table-sort:hover,.table-sort.active{color:var(--green)}.table-sort:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}.table-sort span{font-size:10px}
