@font-face{font-family:Local;src:local('Avenir Next')}*{box-sizing:border-box}html{color-scheme:light only}body{margin:0;background:#f6f3ee;color:#242b28;font:14px Local,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #a7c49c;outline-offset:3px}a{color:#244e42}input,select,textarea{font-size:16px;width:100%;border:1px solid #d9ded5;border-radius:10px;padding:12px;background:#fff;color:#26372e;min-height:46px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:19px;min-height:19px;accent-color:#244e42}h1,h2,h3,p{margin-top:0}h1{font-weight:550;font-size:36px;letter-spacing:-1.3px;line-height:1.15;margin-bottom:8px}h2{font-size:19px;font-weight:600;letter-spacing:-.4px}h3{font-size:15px;font-weight:600}small,.muted{color:#767d73;font-size:12px}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{padding:34px 21px 22px;border-right:1px solid #deded3;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:650;letter-spacing:-1px}.brand img{width:33px;height:33px;border-radius:10px}.family-label{margin:43px 13px 15px;text-transform:uppercase;letter-spacing:2px;font-size:10px;color:#7c8277}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:13px;text-align:left;padding:13px;border-radius:9px;font-weight:550;color:#767d73}.nav button.active{background:#e3e9de;color:#264d3e}.nav svg{width:18px;height:18px}.sidebar-bottom{margin-top:auto;border-top:1px solid #deded3;padding:20px 9px 0;line-height:1.7}.profile{display:flex;gap:10px;align-items:center;margin-bottom:13px}.avatar{border-radius:50%;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#e9decf;color:#594e3c;font-size:12px;font-weight:700}.avatar.green{background:#e4edda;color:#3f573e}.workspace{padding:0 40px 38px;max-width:1540px;width:100%;margin:auto}.topbar{height:87px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #deded3;margin-bottom:32px}.breadcrumb{font-size:12px;color:#767d73}.breadcrumb span{color:#28362f;margin-left:10px}.sync{font-size:11px;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#65815f}.dot.offline{background:#ba813d}.demo{background:#e9eddc;color:#4d613c;border:1px solid #dbe2cb;padding:9px 14px;border-radius:8px;font-size:12px;margin-bottom:20px;display:flex;justify-content:space-between;gap:15px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#7d8577;margin-bottom:12px}.heading p{margin:0;color:#7b8178}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8ded3;padding:11px 16px;border-radius:8px;background:#fdfcf8;font-size:12px;white-space:nowrap;min-height:40px}.button.primary{background:#244e42;border-color:#244e42;color:#fff}.button.danger{color:#a34039;border-color:#e7cbc5}.button.ghost{background:transparent}.button svg{width:16px;height:16px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-tools{display:flex;align-items:center;justify-content:space-between;margin:26px 0 17px}.segmented{background:#e9e9e0;border-radius:7px;padding:4px;display:flex}.segmented button{padding:6px 15px;border-radius:5px;font-size:11px}.segmented button.active{background:#fffdf9;box-shadow:0 1px 3px #0001}.period{display:flex;align-items:center;gap:7px;font-size:13px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border:1px solid #dddfd5;border-radius:7px}.icon-button svg{width:15px;height:15px}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:26px}.day-button{padding:12px 6px 9px;border:1px solid transparent;border-radius:9px;text-align:center;color:#7c8279;min-height:79px}.day-button .num{display:block;color:#293b32;font-size:22px;margin:6px 0 2px;letter-spacing:-.7px}.day-button .dots{display:block;height:5px;font-size:12px;letter-spacing:2px;line-height:5px;color:#8b9879}.day-button.selected{background:#244e42;color:#d0ddd3}.day-button.selected .num,.day-button.selected .dots{color:#fff}.day-button:not(.selected):hover{background:#e9ebdf}.day-button.today:not(.selected){border-color:#b9c7ad}.schedule-grid{display:grid;grid-template-columns:minmax(350px,1fr) 280px;gap:25px}.panel{background:#fffdf9;border:1px solid #e2e3d9;border-radius:12px;padding:21px;margin-bottom:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-head h2,.panel-head h3{margin:0}.tag{font-size:10px;padding:4px 7px;border-radius:5px;background:#f0f0e8;color:#71786b;display:inline-block;line-height:1.3}.tag.trip{background:#e6eedf;color:#4d6b43}.tag.taxi{background:#f5e7cc;color:#8f6f31}.next-card{background:#e8eddc;border:1px solid #dce4ce;border-radius:12px;padding:21px;position:relative;overflow:hidden;margin-bottom:22px}.next-card .eyebrow{color:#677b57;margin-bottom:14px}.next-card h2{font-size:24px;font-weight:500;margin:0 0 9px;letter-spacing:-.6px;max-width:85%}.next-card p{color:#69735f;margin:0;font-size:12px}.next-card .next-time{position:absolute;right:21px;bottom:22px;font-size:24px;font-weight:500;color:#324d38}.timeline{padding:2px 0}.section-title{display:flex;gap:9px;align-items:center;margin:4px 0 7px 69px}.section-title h3{font-weight:500;font-size:12px;margin:0}.timeline-row{display:grid;grid-template-columns:58px 1fr;gap:11px;position:relative}.time{font-size:13px;letter-spacing:-.3px;padding-top:22px;text-align:right}.time small{display:block;font-size:10px;margin-top:4px}.event{border-bottom:1px solid #e9e9df;padding:17px 5px 16px 15px;position:relative;min-height:80px}.event:before{content:'';position:absolute;left:0;top:22px;height:7px;width:7px;border-radius:50%;background:#b4c3a5}.event.trip:before{background:#688361}.event.common:before{background:#bcb193}.event-title{font-weight:550;font-size:14px;padding:0;line-height:1.5;text-align:left}.event-title:hover{text-decoration:underline}.event-meta{font-size:11px;color:#818779;margin-top:7px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.event-line{display:flex;justify-content:space-between;gap:10px}.event-line .tag{flex-shrink:0}.event.done .event-title{text-decoration:line-through;color:#92988d}.event-note{font-size:12px;color:#777e71;line-height:1.5;margin-top:8px}.status-btn{padding:4px 8px;border:1px solid #dee3d5;border-radius:5px;background:#fafbf6;font-size:10px}.status-btn.confirmed{color:#3e6744;background:#eaf1e4;border-color:#d5e2ce}.duty-info{display:flex;align-items:center;gap:11px;margin:17px 0}.duty-info b{display:block;font-weight:550}.duty-info small{font-size:11px;display:block;margin-top:4px}.duty-caption{line-height:1.7;font-size:12px;color:#7a8173}.rule{border:0;border-top:1px solid #e6e7dc;margin:18px 0}.small-link{color:#4b6751;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:0}.check-row{display:flex;gap:10px;align-items:flex-start;font-size:12px;padding:9px 0;line-height:1.5}.check-row input{margin:0;flex-shrink:0}.check-row.completed span{text-decoration:line-through;color:#8c9286}.inline-form{display:flex;gap:7px;margin-top:9px}.inline-form input{font-size:16px;padding:8px 10px;min-width:0;min-height:38px}.inline-form button{padding:7px 10px}.alert{background:#faf0de;border:1px solid #e9d8b6;border-radius:9px;padding:13px 15px;line-height:1.6;font-size:12px;margin-bottom:14px}.alert .actions{margin-top:8px}.empty{text-align:center;color:#7d8678;padding:38px 20px;line-height:1.8}.empty strong{font-weight:500;color:#394b3f;display:block}.footer-note{font-size:10px;color:#92988a;line-height:1.8;margin:26px 0 0}.place-card{padding:20px;border:1px solid #e0e3d7;border-radius:10px;background:#fffdf9}.place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.place-card p{font-size:12px;color:#788170;line-height:1.6;margin:12px 0}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(115px,1fr));gap:10px;overflow-x:auto;padding-bottom:10px}.week-col{border:1px solid #e0e3d7;border-radius:9px;background:#fffdf9;padding:12px;min-height:260px}.week-col h3{font-size:12px;margin:0 0 6px}.week-event{text-align:left;display:block;width:100%;border-left:2px solid #afc39e;background:#f0f2e8;padding:9px 7px;margin:8px 0;border-radius:4px;font-size:10px;line-height:1.6}.week-event strong{display:block}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#7d8677;font-weight:500}th,td{padding:14px 10px;border-bottom:1px solid #e8e9df}dialog{border:1px solid #dce1d5;border-radius:17px;padding:0;width:580px;max-width:calc(100% - 24px);max-height:90dvh;box-shadow:0 24px 100px #24332933;color:#263b30;background:#fffdf9}dialog::backdrop{background:#24322855;backdrop-filter:blur(3px)}.modal-head{padding:23px 25px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e8dc}.modal-head h2{margin:0}.modal-body{padding:23px 25px}.field{display:block;font-size:12px;color:#616d5e;margin-bottom:16px}.field input,.field select,.field textarea{margin-top:7px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-hint{font-size:11px;color:#7e8777;line-height:1.6;margin:7px 0}.modal-footer{padding-top:17px;border-top:1px solid #e5e7db;margin-top:19px;display:flex;justify-content:space-between;gap:10px}.form-error{font-size:12px;color:#9f4b3a;line-height:1.6;white-space:pre-wrap}.login{max-width:400px;margin:11vh auto;padding:28px}.login .brand{margin-bottom:48px}.login h1{font-size:31px;margin-bottom:18px}.login p{line-height:1.8;color:#7d8577;font-size:13px}.login .button{width:100%;margin-top:8px}.boot{padding:15vh 20px;text-align:center;font-size:34px;color:#244e42}.boot span{display:block;font-size:13px;margin-top:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244e42;color:white;padding:12px 21px;border-radius:9px;font-size:12px;box-shadow:0 5px 20px #0002;z-index:10;max-width:90%;display:none}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.metric{border:1px solid #e0e3d7;background:#fffdf9;border-radius:10px;padding:20px}.metric b{font-size:28px;font-weight:500;display:block;margin-bottom:8px}.metric small{font-size:11px}.mobile-brand{display:none}.note-text{white-space:pre-wrap;line-height:1.7;font-size:12px;color:#76816b}.privacy{font-size:11px!important;line-height:1.7!important}.initial-badge{width:23px;height:23px;display:inline-flex;border-radius:50%;align-items:center;justify-content:center;background:#e9decd;font-size:9px;color:#7b6b50}.error-page{margin:12vh auto;max-width:480px;padding:25px}.import-result{max-height:200px;overflow:auto;font-size:12px;line-height:1.7;background:#f2f3eb;padding:13px;border-radius:8px}.row-actions{display:flex;gap:8px}.access-role{font-size:12px;min-height:35px;padding:6px 10px;max-width:160px}
@media(min-width:1450px){.schedule-grid{grid-template-columns:minmax(350px,1fr) 320px}.workspace{padding-left:60px;padding-right:60px}.event{padding-bottom:21px;padding-top:21px}.time{padding-top:26px}.event:before{top:26px}}
@media(max-width:1100px){.shell{grid-template-columns:180px 1fr}.sidebar{padding:28px 13px}.workspace{padding:0 24px 30px}.schedule-grid{grid-template-columns:minmax(300px,1fr) 240px;gap:17px}.panel{padding:17px}.brand{font-size:23px}}
@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:auto;background:#f6f3eef5;border-top:1px solid #deded3;border-right:0;z-index:4;padding:8px 12px max(8px,env(safe-area-inset-bottom))}.sidebar>.brand,.family-label,.sidebar-bottom{display:none}.nav{flex-direction:row;justify-content:space-around}.nav button{display:flex;flex-direction:column;gap:5px;font-size:9px;padding:7px 12px;border-radius:7px}.nav svg{width:18px;height:18px}.workspace{padding:0 22px 100px}.topbar{height:75px;margin-bottom:25px}.mobile-brand{display:flex}.breadcrumb{display:none}.mobile-brand .brand{font-size:22px}.mobile-brand img{width:29px;height:29px}h1{font-size:32px}.schedule-grid{grid-template-columns:1fr 250px}.week-grid{grid-template-columns:repeat(7,135px)}}
@media(max-width:650px){.workspace{padding:0 16px 105px}.topbar{height:70px;margin-bottom:20px}.sync{font-size:9px}.heading{align-items:flex-end;margin-bottom:20px;gap:10px}.heading p{font-size:11px;line-height:1.6}.heading .button{font-size:11px;padding:10px}.heading h1{font-size:29px}.eyebrow{font-size:9px;letter-spacing:1.5px}.demo{font-size:10px;line-height:1.5}.schedule-grid{display:flex;flex-direction:column;gap:0}.schedule-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.schedule-side .panel{padding:15px;margin:0}.schedule-side .panel:last-child{grid-column:1/-1}.schedule-side .duty-caption{font-size:11px}.calendar-tools{margin-top:22px}.period{font-size:11px;gap:5px}.segmented button{font-size:10px;padding:6px 10px}.week-strip{gap:2px;margin-bottom:19px}.day-button{min-height:71px;padding:10px 2px;font-size:10px}.day-button .num{font-size:20px}.next-card{padding:18px}.next-card h2{font-size:23px}.next-card .next-time{font-size:21px;right:18px}.panel{padding:17px}.event-meta{font-size:10px;gap:6px}.event-line{gap:5px}.event-title{font-size:13px}.event-line>.tag{font-size:9px}.timeline-row{grid-template-columns:47px 1fr;gap:10px}.section-title{margin-left:57px}.time{font-size:12px}.place-grid{grid-template-columns:1fr}.modal-body{padding:20px}.modal-head{padding:19px 20px}.metric-grid{gap:8px}.metric{padding:15px 10px}.metric b{font-size:24px}.metric small{font-size:10px}.footer-note{font-size:9px}.button{min-height:40px}.nav button{min-width:54px}.access-role{max-width:120px}}

/* Узкие экраны: календарь и таблицы прокручиваются внутри, не растягивая страницу. */
.workspace,.table-wrap{min-width:0}.access-role{min-width:120px;width:120px;font-size:16px}
@media(max-width:900px){.shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:360px){.calendar-tools{flex-wrap:wrap;gap:10px}.schedule-side{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr;gap:0}.heading:has(#report-month){flex-direction:column;align-items:flex-start}.schedule-side .panel:last-child{grid-column:auto}}

#notification-settings form{margin:18px 0}#notification-settings p{line-height:1.6}#notification-settings .actions{margin-top:16px}#notification-settings .check-row{font-size:13px}#driver-admin summary{cursor:pointer;padding:12px 0}
