:root{font-family:Segoe UI,Arial,sans-serif;color:#24352e;background:#f3f5f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex}aside{background:#19392e;color:#e5ece6;width:236px;padding:32px 22px;position:fixed;height:100vh}.brand{font-size:28px;font-weight:800;color:#c9ea8a;display:flex;gap:12px;align-items:center}.brand span{font-size:17px;color:white}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#748578;margin:24px 0 12px}nav button{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;color:#c7d7ce;padding:13px;border-radius:8px}nav button.active{background:#c9ea8a;color:#203f31}button{cursor:pointer;border:0;padding:10px 15px;border-radius:6px;background:#254d3b;color:white;font:inherit;font-size:13px;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.4;cursor:not-allowed}.sidebar-note{position:absolute;bottom:35px;font-size:13px;line-height:1.8}.sidebar-note small{display:block;color:#abc0b2;max-width:175px;line-height:1.5}main{margin-left:236px;padding:24px 38px;width:calc(100% - 236px);max-width:1680px}header{display:flex;justify-content:space-between;align-items:center;gap:24px}h1{font-size:29px;letter-spacing:-.8px;margin:8px 0 24px}h2{font-size:19px;margin:0 0 15px}h3{font-size:16px;margin:0 0 10px}.identity{display:flex;gap:12px;max-width:460px}label{font-size:12px;color:#627569;display:block}input,select,textarea{display:block;width:100%;border:1px solid #ccd6cd;padding:10px;border-radius:6px;background:white;font:inherit;color:#24352e;margin:5px 0 13px}textarea{min-height:78px}input[type=checkbox]{width:auto;display:inline;margin-right:8px}.notice{padding:11px 15px;background:#e8eddf;border:1px solid #dce4ce;border-radius:7px;font-size:12px;margin-bottom:25px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat,.card{background:white;border:1px solid #e0e6dc;border-radius:10px;padding:20px}.stat strong{display:block;font-size:30px;font-weight:600;margin:12px 0}.muted,small{color:#748276;font-size:12px;line-height:1.55}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{margin-bottom:15px}.card-top,.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.toolbar{flex-wrap:wrap}.toolbar select{width:230px;margin:0}.tag{display:inline-block;font-size:11px;border-radius:4px;padding:5px 8px;background:#e9efdf;color:#405b31;margin:3px}.tag.warn{background:#fff0da;color:#955619}.tag.bad{background:#fbe4df;color:#ad4636}.tag.blue{background:#e1edf2;color:#376279}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.secondary{background:#eef2ea;color:#354d3c}.danger{background:#fbe4df;color:#ad4636}p{line-height:1.6;font-size:14px}.line{border-top:1px solid #ecf0e8;padding-top:12px;margin-top:12px}.empty{padding:32px;color:#748276;text-align:center}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11px;color:#788576;background:#f7f9f4}td,th{padding:13px 9px;border-bottom:1px solid #e5eae0;vertical-align:top}.table-wrap{overflow:auto}td button{padding:6px 9px}dialog{border:0;border-radius:12px;width:620px;max-width:94vw;max-height:90vh;padding:28px;box-shadow:0 20px 70px #0003}dialog::backdrop{background:#14241ec0}dialog .actions{position:sticky;bottom:-28px;background:white;padding:16px 0}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.error{padding:15px;background:#fbe4df;color:#912d26;margin:10px 0}footer{margin:30px 0;color:#7a867b;font-size:11px}a{color:#2b674a}ul{padding-left:20px;line-height:1.7;font-size:13px}.checklist label{font-size:14px;margin:14px 0}.meter{height:5px;background:#e9eddf;border-radius:4px;margin:15px 0}.meter span{display:block;background:#81a562;height:100%;border-radius:4px}pre{white-space:pre-wrap;font-size:12px}@media(max-width:1000px){aside{width:185px;padding:24px 15px}main{margin-left:185px;width:calc(100% - 185px);padding:20px}.grid{grid-template-columns:1fr}header{display:block}.identity{max-width:none}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){body{display:block}aside{position:static;width:100%;height:auto;padding:15px}.sidebar-note,aside>.eyebrow{display:none}nav{display:flex;flex-wrap:wrap}nav button{width:auto;padding:8px;font-size:12px}main{margin:0;width:100%;padding:15px}.brand{font-size:20px}.identity{display:block}.two{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:15px}}

.directory-choice{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #ddd}.directory-choice input{width:22px;height:22px;flex-shrink:0}.directory-choice[hidden]{display:none}#directoryRows{max-height:55vh;overflow:auto}

/* Общая рабочая поверхность: читаемые таблицы и управление касанием. */
:root{color:#18283d;background:#f3f6fa;font-size:16px;color-scheme:light}
aside{background:#152438;overflow-y:auto;padding:25px 16px;width:252px}
.brand{color:#69b8ff}.brand span{font-size:18px}.sidebar-note{position:static;margin-top:24px;color:#b7c8dc}
nav button{color:#d5dfeb;font-size:14px;min-height:44px;padding:10px 12px;margin:3px 0}
nav button.active{background:#2366bb;color:white;box-shadow:inset 3px 0 #8ac7ff}
main{margin-left:252px;width:calc(100% - 252px);max-width:1900px;padding:24px 30px}
.eyebrow{font-size:12px;color:#66778d;letter-spacing:1px}aside .eyebrow{color:#9dafc5}
button{font-size:14px;min-height:44px;background:#195aa8;border-radius:8px}button:focus-visible,a:focus-visible{outline:3px solid #3995ef;outline-offset:3px}
label{font-size:14px;color:#435773}input,select,textarea{min-height:44px;color:#18283d;border-color:#bfccdc;font-size:16px}textarea{min-height:100px}
.notice{font-size:14px;background:#eaf2fc;border-color:#c5d8f2;color:#254d7c}.muted,small{font-size:13px;color:#5e7087}
p{font-size:16px}.secondary{background:#e9eff7;color:#254263}.card,.stat{border-color:#d9e2ed;box-shadow:0 2px 4px #18283d04}
.tag{font-size:13px;background:#e8f0fc;color:#254d7c}.tag.bad{background:#ffe8e5;color:#9e2920}
table{font-size:14px}th{font-size:13px;color:#415670;background:#f1f5fa}td,th{border-color:#e1e8f0}td button{min-height:44px;padding:9px 12px}
a{color:#175cad}footer{font-size:13px}.work-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.work-filter{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:18px}.work-filter label:first-child{flex:1;min-width:220px}.work-filter input{margin-bottom:0}
.workspace-table{min-width:650px}.workspace-table td{max-width:300px;overflow-wrap:anywhere}.record-details{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px 20px}.record-details dt{font-size:14px;color:#5e7087}.record-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.checkline{padding:12px 0}.checkline input{min-height:0;width:20px;height:20px;vertical-align:middle}
.button-link{padding:12px;border-radius:8px;background:#e9eff7;text-decoration:none}dialog{width:780px}.stats strong{overflow-wrap:anywhere}.work-tabs button{flex-shrink:0}
@media(max-width:1100px){aside{width:218px}main{margin-left:218px;width:calc(100% - 218px);padding:20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){aside{position:static;width:100%;height:auto;padding:16px}main{margin:0;width:100%;padding:16px}body{display:block}nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:5px}nav button{width:auto;min-width:max-content;font-size:14px}.sidebar-note,aside>.eyebrow{display:none}header{display:block}h1{font-size:26px}.toolbar select{width:100%}.toolbar>label{width:100%}.record-details{grid-template-columns:1fr;gap:6px}.record-details dd{margin-bottom:12px}.stats strong{font-size:23px}.work-filter{gap:12px}.work-tabs{overflow:auto;flex-wrap:nowrap}.card{padding:16px}dialog{padding:20px}dialog .actions{bottom:-20px}.identity{max-width:none}.grid{grid-template-columns:1fr}}
.readiness{display:flex;justify-content:space-between;gap:12px;font-size:14px}progress{width:100%;height:12px;accent-color:#2366bb;margin:12px 0}.timeline{margin-top:20px}.timeline-row{display:grid;grid-template-columns:minmax(150px,30%) 1fr;gap:16px;align-items:center;padding:10px 0;border-top:1px solid #e1e8f0}.timeline-row small{display:block}.timeline-track{background:repeating-linear-gradient(90deg,#e9eff7 0,#e9eff7 1px,transparent 1px,transparent 14.28%);padding:6px 0}.timeline-bar{background:#2366bb;color:#fff;font-size:13px;padding:8px 2px;border-radius:5px;text-align:center;min-width:24px}.record-media{width:100%;max-height:320px;object-fit:contain;background:#eff3f8}
.payroll-mobile{max-width:680px;margin:0 auto}.payroll-mobile h2{margin-top:20px}.payroll-list{background:white;border-radius:12px;overflow:hidden}.payroll-person{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;background:white;color:#203b50;padding:16px;border-radius:0;border-bottom:1px solid #e2e9ef;min-height:72px}.payroll-person[hidden]{display:none}.payroll-person span{min-width:0;overflow-wrap:anywhere}.payroll-person span:last-child{text-align:right;flex-shrink:0;max-width:48%;font-variant-numeric:tabular-nums}.payroll-person small{display:block;margin-top:5px;color:#63778b}.payroll-summary{margin:20px 0;padding:18px;background:#eaf3ee;border-radius:12px}.payroll-summary p{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.payroll-summary b{font-variant-numeric:tabular-nums}.payroll-rates{background:#fff4d5;border-radius:12px;padding:18px;margin:18px 0}.payroll-days{width:100%;min-width:0;background:white}.payroll-days td:last-child,.payroll-days th:last-child{text-align:right}.payroll-mobile input{font-size:16px}.payroll-mobile .actions{flex-wrap:wrap}.payroll-mobile .actions button{max-width:100%;white-space:normal}.payroll-mobile [data-action="workspaceOpen"]{max-width:100%;white-space:normal}

.objects-scroll{max-height:68vh;overflow:auto;padding:0;isolation:isolate}.objects-scroll table{border-collapse:separate;border-spacing:0}.objects-scroll thead th{position:sticky;top:0;z-index:3;background:#e8eef5;box-shadow:0 1px 0 #cbd5e1}.objects-scroll td:first-child{position:sticky;left:0;background:white;z-index:2;min-width:125px}.objects-scroll th:first-child{left:0;z-index:4}.objects-scroll td button{margin:2px}

.dictation-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-5px 0 14px}.dictation-controls button{flex-shrink:0}.dictation-controls span{max-width:620px}
