:root{font-family:Arial,Helvetica,sans-serif;color:#17222d;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #e3e8ed;padding:18px max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}a{color:inherit;text-decoration:none}.brand{font-size:24px;font-weight:900;letter-spacing:-1px;color:#17222d}.brand img{display:block;width:min(260px,65vw);height:auto}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#687782;margin-top:3px}nav{display:flex;gap:24px;font-size:15px;font-weight:700}nav a:hover,.back:hover{color:#d82736}main{max-width:1120px;margin:38px auto;padding:0 24px 70px}h1{font-size:clamp(28px,4vw,42px);margin:0 0 8px}h2{margin:0 0 18px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.heading p{color:#697986;margin:0}.back{display:inline-block;margin-bottom:25px;color:#657586}.panel,.card,.slot{background:white;border:1px solid #e2e7eb;border-radius:16px;box-shadow:0 8px 24px #192b4008}.panel{padding:28px;margin-bottom:20px}.narrow{max-width:460px;margin:60px auto}.narrow p{line-height:1.5;color:#62707c}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.card{overflow:hidden;padding-bottom:24px;transition:transform .2s}.card:hover{transform:translateY(-3px)}.card img,.avatar{width:100%;height:235px;object-fit:cover;background:#e8edf1}.avatar{display:grid;place-items:center;font-size:80px}.card h2{padding:20px 20px 0;margin:0}.card span{display:block;margin:8px 20px;color:#d92f3b;font-weight:700}.slots{display:grid;gap:14px}.slot{display:grid;grid-template-columns:160px 1fr;gap:24px;padding:22px;align-items:start}.time{font-weight:800;font-size:20px;padding-top:27px}.slot form,.add-form{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}label{display:grid;gap:7px;font-weight:700;font-size:14px}input{min-width:0;width:100%;padding:12px 13px;border:1px solid #cbd5db;border-radius:9px;font:inherit;font-weight:400}input:focus{outline:2px solid #e3343f;border-color:transparent}button{border:0;border-radius:9px;background:#e3343f;color:white;padding:13px 17px;font-weight:700;font-size:14px;cursor:pointer}button:hover{background:#c92130}.quiet{background:#e9edf1;color:#182635}.danger{background:#fff2f3;color:#ba2533}.manage{padding:12px 0;border-top:1px solid #e7edf1;display:flex;justify-content:space-between;align-items:center;gap:20px;overflow-wrap:anywhere}.notice{background:#fff3d7;padding:14px;border-radius:8px}.comment{color:#657586;white-space:pre-wrap}@media(max-width:700px){header{padding:16px 20px;align-items:flex-start;flex-direction:column}main{margin-top:28px}.heading{align-items:flex-start;flex-direction:column}.slot{display:block}.time{padding:0 0 16px}.slot form,.add-form{grid-template-columns:1fr}.manage{align-items:flex-start;flex-direction:column}.manage form{align-self:flex-end}}
select{min-width:0;width:100%;padding:12px 13px;border:1px solid #cbd5db;border-radius:9px;background:#fff;font:inherit}select:focus{outline:2px solid #e3343f}.manage-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.manage-actions form:first-child{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.manage-actions input{max-width:230px}.decision{display:flex;gap:8px;flex-wrap:wrap}.warning{color:#bb3541;font-weight:700}.status{color:#bb3541}.booking-by{align-self:center;font-size:14px}.slot p{margin:7px 0}.narrow form{display:grid;gap:16px}@media(max-width:700px){.manage-actions{width:100%}.manage-actions form:first-child{width:100%}.manage-actions input{max-width:none}}
.chat-layout{display:grid;grid-template-columns:270px 1fr;gap:18px}.chat-contacts,.chat-thread{margin:0}.contact{display:block;padding:12px;border-radius:9px;margin-top:5px}.contact:hover,.contact.active{background:#f5e9eb;color:#b82130}.contact small{display:block;font-weight:400;color:#697986}.messages{min-height:180px;max-height:520px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:10px 0 20px}.bubble{align-self:flex-start;max-width:min(80%,550px);background:#f1f4f6;border-radius:13px;padding:12px 15px;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#fff0f1}.bubble p{margin:8px 0;line-height:1.45}.bubble small{color:#687782}.chat-form{display:flex;gap:12px;align-items:end}.chat-form label{flex:1}textarea{width:100%;resize:vertical;min-height:76px;padding:12px 13px;border:1px solid #cbd5db;border-radius:9px;font:inherit}.chat-form button{margin-bottom:0}@media(max-width:700px){.chat-layout{grid-template-columns:1fr}.chat-form{display:block}.chat-form button{margin-top:10px}.chat-contacts{max-height:210px;overflow-y:auto}}
.sound-toggle{background:#fff2f3;color:#b82130;padding:9px 12px}.sound-toggle:disabled{opacity:1;cursor:default;background:#eff7f1;color:#15733c}.notice-popups{position:fixed;right:18px;top:20px;z-index:1000;max-width:min(390px,calc(100vw - 36px))}.notice-popup{position:relative;background:white;border:2px solid #e3343f;border-radius:14px;padding:18px 45px 18px 20px;box-shadow:0 12px 45px #16253630;max-height:75vh;overflow:auto}.notice-popup strong{display:block;font-size:18px}.notice-popup p{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.4}.notice-popup a{color:#bb2532;font-weight:700}.notice-popup button{position:absolute;top:6px;right:8px;background:none;color:#222;padding:4px 8px;font-size:24px}@media(max-width:700px){.notice-popups{top:auto;bottom:16px}nav{flex-wrap:wrap;gap:12px}}
.profile-heading{display:flex;align-items:center;gap:22px}.profile-photo{width:100px;height:100px;border-radius:18px;object-fit:cover;flex:none;background:#e8edf1}.profile-placeholder{display:grid;place-items:center;font-size:42px}.presence{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:7px;font-size:14px;font-weight:700;margin-top:12px}.presence:before{content:"";width:9px;height:9px;border-radius:50%;background:currentColor}.presence.free{color:#147a4b;background:#e6f7ee}.presence.busy{color:#bd2936;background:#fff0f1}.presence.soon{color:#a56700;background:#fff4d8}.card .presence{margin:10px 20px 0}.status-form,.photo-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.status-form label{min-width:min(100%,300px)}.photo-form label{min-width:min(100%,260px)}@media(max-width:700px){.profile-heading{align-items:flex-start;gap:14px}.profile-photo{width:76px;height:76px}.profile-heading h1{font-size:27px}}
.calendar-today{padding:12px 17px;border-radius:9px;font-weight:700}.calendar-toolbar{display:flex;justify-content:center;align-items:center;gap:30px;margin:12px 0 20px}.calendar-toolbar h2{margin:0;min-width:210px;text-align:center}.calendar-toolbar a{font-size:25px;color:#cb2c39;padding:4px 14px}.calendar-scroll{overflow-x:auto;border:1px solid #e2e7eb;border-radius:15px;background:#fff}.calendar-grid{min-width:750px}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays div{text-align:center;padding:12px;border-bottom:1px solid #e2e7eb;font-weight:700;color:#526476}.calendar-day{min-height:142px;padding:8px;border-right:1px solid #e2e7eb;border-bottom:1px solid #e2e7eb}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#f8fafb;color:#95a1ac}.calendar-day.today .day-number{background:#e3343f;color:#fff}.calendar-day.selected{box-shadow:inset 0 0 0 2px #e3343f}.day-number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;font-weight:700}.day-events{display:grid;gap:4px;margin-top:5px;max-height:120px;overflow-y:auto}.event-chip{display:block;border-radius:5px;background:#edf3fb;color:#264a75;padding:4px 5px;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.event-chip.meeting{background:#fff0f1;color:#9e2532}.event-chip.done{text-decoration:line-through;opacity:.65}.calendar-bottom{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:20px;margin-top:22px}.calendar-event{padding:15px 0;border-top:1px solid #e2e7eb;display:flex;justify-content:space-between;gap:15px}.event-details{min-width:0}.event-details strong{display:block}.event-details p{margin:6px 0}.event-kind{font-size:12px;color:#6d7b87;font-weight:700;text-transform:uppercase}.event-actions{display:flex;align-items:start;gap:7px;flex-wrap:wrap}.task-form{display:grid;gap:14px}.task-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:850px){.calendar-bottom{grid-template-columns:1fr}}@media(max-width:520px){.task-fields{grid-template-columns:1fr}.calendar-event{display:block}.event-actions{margin-top:10px}}
.person-avatar{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;vertical-align:middle}.avatar-initial{color:#fff;background:#d53240;font-size:12px;font-weight:700}.event-chip{display:flex;align-items:center;gap:3px}.event-chip .person-avatar{width:20px;height:20px}.event-owner{display:flex;align-items:center;gap:7px}.car-card .card{display:block}.car-card>form{margin-top:8px}.car-availability{margin:8px 20px 0;color:#637483;font-size:14px}
/* Compact employee cards, readable contacts and responsive navigation. */
body{font-size:16px}header{box-shadow:0 4px 18px #17222d08}nav{flex-wrap:wrap;align-items:center;gap:12px 18px}nav a{font-size:14px;white-space:nowrap}.brand img{max-width:225px}h1{font-size:clamp(26px,3vw,36px);line-height:1.16}h2{font-size:clamp(18px,2vw,23px);line-height:1.25}.card,.panel,.slot{box-shadow:0 8px 26px #17222d0e}.card{min-width:0;overflow:hidden}.card-main{display:block;min-width:0}.card h2,.card .person-role{overflow-wrap:anywhere}.card .person-role{padding:0 20px;margin:8px 0;color:#647483;font-size:14px}.person-role{font-weight:600;color:#5c6b77}.card .presence{max-width:calc(100% - 40px);overflow-wrap:anywhere;line-height:1.3}.card span{font-size:14px}.person-contacts{display:flex;gap:8px;flex-wrap:wrap;max-width:100%;margin:12px 20px 20px}.profile-heading .person-contacts{margin:12px 0 0}.contact-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:8px;font-size:14px;font-weight:700;min-height:40px}.contact-button.call{background:#edf3fa;color:#234c70}.contact-button.whatsapp{background:#e8f8ed;color:#137344}.contact-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end;gap:12px;max-width:100%}.contact-form input{width:100%}.manage{min-width:0;flex-wrap:wrap}.manage>div,.manage>form{max-width:100%}.manage-actions{min-width:0}.manage-actions form{max-width:100%}.slot,.calendar-event{min-width:0}.slot form{min-width:0}.slot form>*{min-width:0}.slot .time{font-size:18px}.booking-by,.calendar-event,.event-chip{overflow-wrap:anywhere}.event-chip{font-size:12px}.event-chip span:not(.person-avatar){white-space:nowrap}@media(max-width:700px){header{gap:14px}nav{width:100%;gap:10px 16px}.card .person-contacts{margin-top:12px}.contact-button{min-height:44px}.profile-heading{flex-wrap:wrap}.slot{padding:18px}}
/* Employee administration cards */
.employee-section{padding:28px}.employee-section-title{margin-bottom:18px}.employee-section-title h2{margin-bottom:4px}.employee-section-title p{margin:0;color:#697986;font-size:14px}.employee-admin-list{display:grid;gap:16px}.employee-admin-card{min-width:0;border:1px solid #e1e7ed;border-radius:14px;padding:20px;background:#fff;box-shadow:0 6px 18px #17222d0a}.employee-admin-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:17px;margin-bottom:18px;border-bottom:1px solid #e6ebef}.employee-admin-identity{display:flex;align-items:center;gap:13px;min-width:0}.employee-admin-identity>div:last-child{min-width:0}.employee-admin-identity h3{font-size:20px;line-height:1.2;margin:0;overflow-wrap:anywhere}.employee-admin-identity p{font-size:14px;color:#657584;margin:5px 0 0;overflow-wrap:anywhere}.employee-admin-role{display:inline-block;font-size:13px;color:#53677c;margin-top:5px}.employee-admin-avatar .person-avatar{width:54px;height:54px;font-size:22px}.employee-delete{font-size:13px;white-space:nowrap}.employee-admin-warning{font-size:14px;color:#a53635;background:#fff4ef;padding:10px 12px;border-radius:8px}.employee-contact-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px;padding-bottom:17px;border-bottom:1px solid #e6ebef}.employee-contact-form label,.employee-admin-settings label{min-width:0;font-size:14px}.employee-contact-form input,.employee-admin-settings input{width:100%;min-width:0;font-size:14px;height:43px}.employee-contact-form button,.employee-admin-settings button{font-size:14px;min-height:43px;padding:10px 14px;white-space:nowrap}.employee-admin-settings{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.5fr);gap:20px;padding-top:17px}.employee-photo-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-content:start}.employee-photo-form button{justify-self:start}.employee-photo-form input[type=file]{height:auto;min-height:43px;padding:6px;font-size:13px}.employee-photo-form input[type=file]::file-selector-button{border:0;background:#eef1f5;color:#293b4c;border-radius:6px;padding:7px;margin-right:8px;cursor:pointer}.employee-login-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:10px;align-items:end}.employee-admin-card button:hover{filter:brightness(.97)}@media(max-width:1100px){.employee-contact-form{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-contact-form button{justify-self:start}.employee-login-form{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-login-form button{justify-self:start}}@media(max-width:760px){.employee-section{padding:20px}.employee-admin-card{padding:16px}.employee-contact-form,.employee-admin-settings,.employee-login-form{grid-template-columns:1fr}.employee-contact-form button,.employee-login-form button,.employee-photo-form button{width:100%}.employee-admin-head{align-items:flex-start}.employee-delete{white-space:normal;max-width:120px;line-height:1.2}}@media(max-width:420px){.employee-admin-head{flex-wrap:wrap}.employee-admin-head>form{margin-left:auto}.employee-admin-avatar .person-avatar{width:46px;height:46px}}
/* Расписание с произвольными интервалами */
.schedule-panel{overflow:hidden}.schedule-agenda{display:grid;gap:10px}.schedule-entry{display:grid;grid-template-columns:minmax(120px,165px) minmax(0,1fr);gap:18px;align-items:start;padding:17px 18px;background:#f8fafc;border:1px solid #e5ebf0;border-radius:12px;overflow-wrap:anywhere}.schedule-time{font-size:16px;white-space:nowrap}.schedule-entry h3{font-size:16px;line-height:1.35;margin:5px 0}.schedule-entry p{margin:6px 0 0}.schedule-type{font-size:12px;font-weight:800;color:#b92938;text-transform:uppercase;letter-spacing:.04em}.schedule-empty{color:#647483}.manual-booking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end;max-width:760px}.manual-booking .booking-comment{grid-column:1/-1}.manual-booking button{justify-self:start}.booking-by{margin-top:16px;color:#657586}@media(max-width:600px){.schedule-entry{grid-template-columns:1fr;gap:7px;padding:14px}.manual-booking{grid-template-columns:1fr}.manual-booking .booking-comment{grid-column:auto}.manual-booking button{width:100%}}
.telegram-config-form,.employee-telegram-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;max-width:700px}.employee-telegram-form{margin:14px 0 20px;max-width:520px}.telegram-config-form button,.employee-telegram-form button{white-space:nowrap}@media(max-width:600px){.telegram-config-form,.employee-telegram-form{grid-template-columns:1fr}.telegram-config-form button,.employee-telegram-form button{width:100%}}
/* Контакты чата и ссылки на расписание */
.chat-layout{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.chat-contacts{min-width:0}.chat-contact-row{display:flex;align-items:center;gap:4px;border-radius:12px;margin-top:6px;min-width:0}.chat-contact-row:hover,.chat-contact-row.active{background:#fff0f1}.chat-contact-row .contact{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin:0;padding:10px 4px 10px 10px;color:#1c2a35}.chat-contact-row .contact:hover{background:transparent}.chat-contact-row .person-avatar,.chat-thread-identity .person-avatar{width:42px;height:42px;font-size:18px}.chat-contact-name{min-width:0;overflow-wrap:anywhere;line-height:1.25}.chat-contact-name strong{font-size:14px}.chat-contact-name small{font-size:12px;margin-top:3px}.chat-profile-link{flex:none;color:#b92838;font-size:12px;font-weight:700;padding:10px 8px;border-radius:8px;line-height:1.2}.chat-profile-link:hover{background:#fbe3e7}.chat-contact-row .chat-profile-link{max-width:90px;text-align:right}.chat-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7edf1;padding-bottom:14px;margin-bottom:10px}.chat-thread-identity{display:flex;align-items:center;gap:10px;min-width:0}.chat-thread-identity h2{margin:0;overflow-wrap:anywhere;font-size:20px}.chat-thread-head .chat-profile-link{font-size:13px;text-align:right}@media(max-width:700px){.chat-layout{grid-template-columns:1fr}.chat-contacts{max-height:330px}.chat-thread-head{flex-wrap:wrap}.chat-contact-row .chat-profile-link{max-width:none}}
/* Показываем фотографии сотрудников целиком без обрезки */
.card-main > img{display:block;width:100%;height:235px;object-fit:contain;object-position:center;background:transparent}
img.profile-photo{object-fit:contain;object-position:center;background:transparent}
img.person-avatar{object-fit:contain;object-position:center;background:transparent}
.calendar-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;margin:0 0 18px}.calendar-filters label{min-width:min(100%,210px);flex:1}.calendar-filters button{min-height:44px}.urgent-choice{display:flex;align-items:center;gap:9px;color:#b82936}.urgent-choice input{width:18px;height:18px;min-width:18px;accent-color:#dd303f}.event-chip.urgent{background:#ffe2df;color:#a7232e;border-left:3px solid #d83240;font-weight:700}@media(max-width:600px){.calendar-filters{display:grid;grid-template-columns:1fr}.calendar-filters button{width:100%}}

.calendar-filters{margin:18px 0 0}.calendar-bottom{margin-top:20px}
.employee-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;max-width:520px;margin:0 0 18px}.employee-name-form button{min-height:43px;white-space:nowrap}@media(max-width:600px){.employee-name-form{grid-template-columns:1fr}.employee-name-form button{width:100%}}
/* Портрет выходит за верхнюю границу карточки сотрудника */
.employee-cards{padding-top:14px;row-gap:26px}
.employee-cards>.employee-card{position:relative;overflow:visible;margin-top:44px;border-radius:18px;isolation:isolate}
.employee-cards>.employee-card .card-main>img{position:relative;z-index:2;display:block;width:100%;height:255px;margin-top:-48px;object-fit:contain;object-position:center bottom;background:transparent;filter:drop-shadow(0 10px 10px #142b3926)}
.employee-cards>.employee-card .card-main>h2{position:relative;padding-top:10px}
@media(max-width:700px){.employee-cards{row-gap:20px}.employee-cards>.employee-card{margin-top:38px}.employee-cards>.employee-card .card-main>img{height:230px;margin-top:-42px}}
/* Карточка-портрет: силуэт выходит из-за панели с именем */
.employee-cards{padding-top:34px;row-gap:18px;align-items:stretch}
.employee-cards>.employee-card{position:relative;overflow:visible;margin-top:64px;isolation:isolate;border-radius:18px;background:#fff;box-shadow:0 15px 34px #243a4c1a}
.employee-card .card-main{display:block;position:relative}
.employee-card .employee-photo-stage{height:220px;position:relative;border-radius:18px 18px 0 0;background:linear-gradient(155deg,#e9f2f0,#f6f8f7 74%,#fff);isolation:isolate}
.employee-card .employee-photo-stage:before{content:"";position:absolute;width:182px;height:182px;left:50%;top:26px;transform:translateX(-50%);background:#dcece8;border-radius:50%;opacity:.8}
.employee-card .employee-photo-stage>img.cutout-photo{position:absolute;left:0;bottom:-34px;z-index:2;width:100%;height:300px;margin:0;object-fit:contain;object-position:center bottom;background:transparent;filter:drop-shadow(0 10px 12px #1b354529)}
.employee-card .employee-photo-stage>img.opaque-photo{position:relative;z-index:1;width:100%;height:220px;margin:0;object-fit:cover;object-position:center;border-radius:18px 18px 0 0;filter:none}
.employee-card .employee-photo-stage>.avatar{position:relative;z-index:1;height:220px;background:transparent}
.employee-card .employee-card-details{position:relative;z-index:3;min-height:150px;padding:17px 0 4px;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -7px 20px #192f4010}
.employee-card .employee-card-details h2{padding-top:0}
.employee-card .person-contacts{position:relative;z-index:3}
@media(max-width:700px){.employee-cards{padding-top:22px}.employee-cards>.employee-card{margin-top:55px}.employee-card .employee-photo-stage,.employee-card .employee-photo-stage>.avatar,.employee-card .employee-photo-stage>img.opaque-photo{height:205px}.employee-card .employee-photo-stage>img.cutout-photo{height:275px;bottom:-30px}}
/* Dashboard */
body:has(.dashboard){background:#f5f6f8;color:#202731}body:has(.dashboard) header{padding:15px max(24px,calc((100vw - 1320px)/2));box-shadow:none}body:has(.dashboard) main{max-width:1368px;margin:0 auto;padding:34px 24px 80px}.dashboard{font-family:Arial,Helvetica,sans-serif}.dashboard svg{width:20px;height:20px;flex:none}.dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:8px 0 29px}.dash-eyebrow,.dash-label{font-size:11px;letter-spacing:.16em;font-weight:800;color:#db3c47}.dashboard-intro h1{font-size:clamp(29px,3.3vw,43px);letter-spacing:-.045em;margin:10px 0 8px}.dashboard-intro p{margin:0;color:#7c8794;font-size:16px}.dash-date{display:flex;gap:10px;align-items:center;background:white;border:1px solid #e9edf0;border-radius:12px;padding:13px 17px;font-weight:700;color:#52606e;white-space:nowrap}.dash-date svg{color:#d93846}.dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.dash-metric,.dash-block{background:white;border:1px solid #ebedf0;border-radius:18px;box-shadow:0 10px 30px #26354807}.dash-metric{min-height:180px;padding:21px 23px;display:flex;flex-direction:column;align-items:flex-start;transition:transform .2s,box-shadow .2s}.dash-metric:hover,.dash-shortcuts a:hover,.dash-person:hover{transform:translateY(-3px);box-shadow:0 15px 32px #26354812}.dash-metric-icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}.dash-metric-icon.red{background:#fff0f0;color:#e0444b}.dash-metric-icon.amber{background:#fff5df;color:#d89619}.dash-metric-icon.green{background:#eaf8f0;color:#319c69}.dash-metric-icon.blue{background:#ecf3ff;color:#5287d2}.dash-metric>span:nth-child(2){color:#798592;font-size:13px;font-weight:700;margin:13px 0 3px}.dash-metric strong{font-size:35px;letter-spacing:-.045em;line-height:1.15}.dash-metric strong em{font-style:normal;font-size:17px;color:#a5afb9}.dash-metric small{display:flex;gap:6px;align-items:center;color:#d63847;font-weight:700;margin-top:auto;padding-top:10px}.dash-metric small svg{width:15px;height:15px}.dash-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.85fr);gap:21px}.dash-primary,.dash-aside{display:flex;flex-direction:column;gap:21px;min-width:0}.dash-block{padding:25px}.dash-block-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dash-block-head h2{font-size:23px;letter-spacing:-.035em;margin:6px 0 0}.dash-soft-pill{background:#f4f6f7;color:#798592;border-radius:30px;padding:8px 11px;font-size:12px;font-weight:700;white-space:nowrap}.dash-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dash-person{border:1px solid #edf0f2;border-radius:14px;min-width:0;transition:transform .2s,box-shadow .2s}.dash-person-link{display:flex;align-items:center;gap:13px;padding:11px;min-width:0}.dash-person-image{height:82px;width:76px;flex:none;border-radius:11px;background:linear-gradient(140deg,#e8f1ee,#f3f5f4);display:grid;place-items:center;overflow:hidden}.dash-person-image img{height:100%;width:100%;object-fit:contain;object-position:center bottom}.dash-person-image span{font-size:35px;color:#719a91;font-weight:800}.dash-person-info{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px}.dash-person-info strong{font-size:15px;overflow-wrap:anywhere}.dash-person-info small{color:#8b96a1;font-size:12px;overflow-wrap:anywhere}.dash-status{font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:5px;line-height:1.2}.dash-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.dash-status.free{color:#2b9d69}.dash-status.busy{color:#df4955}.dash-status.soon{color:#cb951f}.dash-person-arrow{margin-left:auto;color:#a4adb7}.dash-person-arrow svg{width:16px;height:16px}.dash-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.dash-shortcuts a{border:1px solid #edf0f2;border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;transition:transform .2s,box-shadow .2s;min-width:0}.dash-shortcuts strong{font-size:13px;overflow-wrap:anywhere}.dash-shortcuts a>svg{width:15px;height:15px;margin-left:auto;color:#a5afb9}.dash-shortcuts .dash-metric-icon{width:36px;height:36px;flex:none}.dash-shortcuts .dash-metric-icon svg{width:18px;height:18px}.dash-event-list{display:grid;gap:0}.dash-event{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid #edf0f2;min-width:0}.dash-event time{font-weight:800;font-size:14px;color:#d63847;min-width:43px}.dash-event div{display:flex;flex-direction:column;gap:5px;min-width:0}.dash-event div span{font-size:11px;font-weight:800;color:#e04c55;text-transform:uppercase;letter-spacing:.04em}.dash-event strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}.dash-event small{color:#929ca5}.dash-text-link{display:flex;align-items:center;gap:7px;font-weight:800;color:#d63847;font-size:13px;margin-top:20px}.dash-text-link svg{width:16px;height:16px}.dash-empty{text-align:center;padding:42px 10px;color:#8995a0}.dash-empty svg{width:30px;height:30px;color:#d8aab0;margin-bottom:10px}.dash-empty strong{display:block;color:#39434d}.dash-empty p{font-size:13px}.dash-attention{background:#fff0ec;border:1px solid #ffd8cd;padding:19px 21px;border-radius:15px;color:#a8442e;display:flex;flex-direction:column;gap:8px}.dash-attention span{font-size:13px;display:flex;align-items:center;gap:5px}.dash-attention svg{width:15px;height:15px}.dash-welcome{background:#253d3b;color:white;padding:28px;border-radius:18px;min-height:235px;position:relative;overflow:hidden}.dash-welcome:after{content:"";position:absolute;width:220px;height:220px;border:1px solid #ffffff25;border-radius:50%;right:-55px;top:-85px;box-shadow:0 0 0 45px #ffffff08,0 0 0 95px #ffffff06}.dash-welcome-icon{width:37px;height:37px;display:grid;place-items:center;background:#ffffff24;border-radius:10px}.dash-welcome h2{font-size:24px;letter-spacing:-.04em;margin:18px 0 8px}.dash-welcome p{font-size:13px;color:#cad8d3;line-height:1.55;max-width:240px}.dash-welcome a{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:#fff;margin-top:18px}.dash-welcome a svg{width:15px;height:15px}@media(max-width:1050px){.dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-layout{grid-template-columns:1fr}.dash-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.dash-attention{grid-column:1/-1}.dash-agenda{min-height:100%}}@media(max-width:680px){body:has(.dashboard) main{padding:25px 16px 60px}.dashboard-intro{align-items:flex-start;flex-direction:column;gap:15px}.dash-date{padding:9px 12px}.dash-metrics{gap:10px}.dash-metric{padding:16px;min-height:165px}.dash-metric strong{font-size:30px}.dash-metric small{font-size:11px}.dash-block{padding:18px}.dash-team-grid,.dash-aside{grid-template-columns:1fr}.dash-person-image{width:68px;height:72px}.dash-shortcuts{grid-template-columns:1fr 1fr}.dash-shortcuts a{flex-wrap:wrap}.dash-shortcuts a>svg{display:none}}@media(max-width:390px){.dash-metrics{grid-template-columns:1fr 1fr}.dash-metric{padding:12px}.dash-metric>span:nth-child(2){font-size:12px}.dash-metric-icon{width:36px;height:36px}}
.task-participants{border:1px solid #e3e9ee;border-radius:12px;padding:16px;margin:0;min-width:0}.task-participants legend{font-size:14px;font-weight:800;padding:0 5px}.task-participants p{color:#697986;font-size:13px;margin:3px 0 12px}.task-participants>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.task-participants label{display:flex;align-items:center;gap:9px;background:#f7f9fa;border-radius:9px;padding:10px;font-weight:600;cursor:pointer}.task-participants input{width:17px;height:17px;min-width:17px;accent-color:#d83240}@media(max-width:520px){.task-participants>div{grid-template-columns:1fr}}
.dash-task-form{display:grid;gap:14px}.dash-task-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dash-task-form label{font-size:13px}.dash-task-form button{justify-self:start}.dash-task-form .task-participants{padding:13px}.dash-task-form .task-participants p{font-weight:400}.dash-task-form .urgent-choice{display:flex;align-items:center;gap:9px}.dash-task-form .urgent-choice input{width:17px;height:17px;min-width:17px}@media(max-width:520px){.dash-task-row{grid-template-columns:1fr}.dash-task-form button{width:100%}}
.live-update{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:1002;background:#263d3c;color:#fff;box-shadow:0 10px 30px #15252a50;border-radius:12px;padding:10px 12px 10px 18px;display:flex;align-items:center;gap:18px;max-width:calc(100vw - 24px);font-size:14px;font-weight:700}.live-update button{background:#fff;color:#263d3c;padding:9px 13px;white-space:nowrap}.live-update button:hover{background:#ebf0ee}@media(max-width:500px){.live-update{width:calc(100vw - 24px);justify-content:space-between}}
/* Фотография реагирует на текущий статус */
.dash-person-image,.employee-photo-stage,.profile-photo-wrap{position:relative}.profile-photo-wrap{display:inline-flex;flex:none}.photo-mood{position:absolute;z-index:6;right:4px;bottom:4px;display:grid;place-items:center;width:34px;height:34px;border:2px solid white;border-radius:50%;background:#e9f8ef;box-shadow:0 4px 12px #17222d25;font-size:20px;line-height:1}.photo-mood.busy{background:#fff0f1}.photo-mood.soon{background:#fff4df}.dash-person-image{overflow:visible}.dash-person-image img,.dash-person-image>span:not(.photo-mood){border-radius:11px}.dash-person-image .photo-mood{right:-5px;bottom:-5px;width:27px;height:27px;font-size:16px}.employee-photo-stage .photo-mood{right:12px;bottom:11px;width:42px;height:42px;font-size:26px}.profile-photo-wrap .photo-mood{right:-8px;bottom:-8px}.status-photo-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 0}.status-photo-form{border:1px solid #e5ebef;border-radius:10px;padding:12px;display:grid;gap:8px;min-width:0}.status-photo-form label{min-width:0}.status-photo-form input{font-size:12px}.status-photo-form button{justify-self:start}.employee-photo-form .status-photo-forms{grid-template-columns:1fr}@media(max-width:700px){.status-photo-forms{grid-template-columns:1fr}}
.dash-person:has(.dash-status.busy) .dash-person-image img,.employee-card:has(.presence.busy) .employee-photo-stage img{filter:grayscale(.38) saturate(.72)}.dash-person:has(.dash-status.free) .dash-person-image img,.employee-card:has(.presence.free) .employee-photo-stage img{filter:drop-shadow(0 8px 10px #263b3928) saturate(1.08)}.profile-heading:has(.presence.busy) .profile-photo{filter:grayscale(.38) saturate(.72)}
.photo-alert{position:absolute;z-index:8;top:5px;right:5px;width:30px;height:30px;border-radius:50%;background:#e43643;color:#fff;border:2px solid #fff;box-shadow:0 4px 13px #ab233a55;display:grid;place-items:center}.photo-alert svg{width:17px;height:17px}.photo-alert b{position:absolute;right:-7px;top:-7px;background:#263d3c;color:#fff;min-width:16px;height:16px;border-radius:9px;font-size:10px;line-height:16px;text-align:center;padding:0 3px}.dash-person-image .photo-alert{top:-5px;right:-6px;width:27px;height:27px}.dash-person-image .photo-alert svg{width:15px;height:15px}.employee-photo-stage .photo-alert{top:12px;right:12px;width:38px;height:38px}.employee-photo-stage .photo-alert svg{width:22px;height:22px}.profile-photo-wrap .photo-alert{right:-9px;top:-9px}
/* Уведомление поверх фотографии: контрастная плашка и отдельный счётчик */
.photo-alert,.dash-person-image .photo-alert,.employee-photo-stage .photo-alert,.profile-photo-wrap .photo-alert{top:-9px;left:-9px;right:auto;bottom:auto;width:37px;height:37px;border:3px solid #fff;border-radius:12px;background:#243a43;color:#fff;box-shadow:0 8px 18px #162b3860;display:flex;align-items:center;justify-content:center;transform:rotate(-5deg);z-index:10}.photo-alert svg,.dash-person-image .photo-alert svg,.employee-photo-stage .photo-alert svg{display:block;width:21px;height:21px;fill:#fff;stroke:none;color:#fff;transform:rotate(5deg)}.photo-alert b{position:absolute;right:-9px;top:-8px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#ec3e4b;color:#fff;font-size:10px;line-height:14px;box-shadow:0 2px 5px #162b3833}.dash-person-image .photo-alert{top:-9px;left:-8px}.employee-photo-stage .photo-alert{top:10px;left:10px;width:43px;height:43px}.employee-photo-stage .photo-alert svg{width:25px;height:25px}.profile-photo-wrap .photo-alert{top:-8px;left:-8px}.photo-alert:hover{background:#344f5a}.dash-person-image>span.photo-alert{border-radius:12px}
/* Присутствие и увеличенные фотографии команды */
.dash-person-link{padding:12px;gap:17px}.dash-person-image{width:112px;height:128px;flex:none}.dash-person-image img{object-fit:contain;object-position:center bottom}.dash-person-image>span:not(.photo-mood):not(.photo-alert):not(.online-indicator){height:100%;width:100%;display:grid;place-items:center;font-size:45px}.dash-person-info strong{font-size:16px}.dash-person-info small{font-size:13px}.online-indicator{position:absolute;z-index:11;top:-7px;right:-7px;width:20px;height:20px;border:3px solid #fff;border-radius:50%;background:#e34956;box-shadow:0 3px 9px #26354838}.online-indicator.online{background:#28bc73;box-shadow:0 0 0 4px #28bc7328,0 3px 9px #26354838}.dash-person-image .online-indicator{top:-7px;right:-7px}.employee-photo-stage .online-indicator{top:14px;right:14px;width:23px;height:23px}.profile-photo-wrap .online-indicator{top:-7px;right:-7px}.dash-person-image>span.online-indicator{border-radius:50%}@media(max-width:680px){.dash-person-image{width:94px;height:108px}.dash-person-link{gap:13px}.dash-person-image>span:not(.photo-mood):not(.photo-alert):not(.online-indicator){font-size:36px}}
/* Фотография и бейджи занимают один слой, не растягивая сетку карточки */
.dash-person-image{display:block;position:relative;isolation:isolate;min-width:0;min-height:0}.dash-person-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain;object-position:center bottom}.dash-person-image>span:not(.photo-mood):not(.photo-alert):not(.online-indicator){position:absolute;inset:0;width:100%;height:100%;margin:0}.dash-person-image .photo-alert{top:5px;left:5px}.dash-person-image .online-indicator{top:6px;right:6px}.dash-person-image .photo-mood{right:5px;bottom:5px}.dash-person-link{min-height:154px}.dash-person-image{align-self:center}.dash-person{overflow:visible}@media(max-width:680px){.dash-person-link{min-height:132px}}
.status-form .status-note-field{flex:1;min-width:min(100%,280px)}.public-status-note{margin:11px 0 0;padding:10px 13px;background:#f3f6f7;color:#384a57;border-radius:10px;font-size:14px;max-width:430px;overflow-wrap:anywhere}.dash-status-note{font-size:12px;line-height:1.35;color:#52636f;background:#f3f6f7;border-radius:7px;padding:5px 8px;max-width:100%;overflow-wrap:anywhere}.audit-download{padding:11px 15px;border-radius:10px;font-weight:700}.audit-list{display:grid;gap:12px}.audit-item{background:#fff;border:1px solid #e6ebef;border-radius:14px;padding:16px 18px}.audit-item-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.audit-item-head time{font-size:13px;color:#7e8993}.audit-item-head span{color:#c93a46;font-weight:700}.audit-item details{margin-top:11px}.audit-item summary{cursor:pointer;color:#526572;font-size:13px;font-weight:700}.audit-change{border-top:1px solid #edf0f2;margin-top:10px;padding-top:10px;font-size:13px;overflow-wrap:anywhere}.audit-change p{margin:6px 0;white-space:pre-wrap;color:#53616d}
.archive-totals{display:flex;gap:10px;flex-wrap:wrap}.archive-totals span{background:#fff;border:1px solid #e7ebee;padding:11px 14px;border-radius:10px;color:#5f6d78}.archive-totals strong{color:#25343e}.archive-filter{display:flex;align-items:end;gap:12px;max-width:540px}.archive-filter label{flex:1}.archive-days{display:grid;gap:15px}.archive-day{margin:0}.archive-day-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.archive-day-head h2{margin:0}.archive-day-head span{font-size:13px;color:#82909a}.archive-tasks{display:grid;gap:12px}.archive-task{padding:17px;border:1px solid #e6ebef;border-radius:12px;background:#fafbfc}.archive-task-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.archive-result,.archive-urgent{padding:5px 9px;border-radius:30px;font-size:12px;font-weight:800}.archive-result.complete{color:#1a8052;background:#e8f7ee}.archive-result.incomplete{color:#bb3d47;background:#fff0f0}.archive-urgent{color:#a95b00;background:#fff2dc}.archive-task time{margin-left:auto;color:#82909a;font-size:13px}.archive-task h3{margin:11px 0;font-size:17px}.archive-description{white-space:normal;color:#586a76;line-height:1.5}.archive-task dl{display:flex;gap:12px 24px;flex-wrap:wrap;margin:12px 0 0;font-size:13px}.archive-task dl div{display:flex;gap:5px}.archive-task dt{color:#8b97a1}.archive-task dd{margin:0;font-weight:700;color:#344753}@media(max-width:600px){.archive-filter{display:grid}.archive-filter button{width:100%}}
.archive-profile-link{margin-left:16px;color:#c73847;font-weight:700}
.notes-create{max-width:800px}.notes-form{display:grid;gap:14px}.notes-form button{justify-self:start}.notes-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.note-card{margin:0;min-width:0}.note-head{display:flex;justify-content:space-between;gap:14px;align-items:start}.note-head h2{margin:0 0 4px;overflow-wrap:anywhere}.note-head small{font-size:12px;color:#82909a}.note-body{line-height:1.55;color:#3c4b56;overflow-wrap:anywhere}.note-card details{border-top:1px solid #e8edf0;padding-top:12px;margin-top:16px}.note-card summary{cursor:pointer;color:#c73847;font-weight:700}.note-card .notes-form{margin-top:14px}@media(max-width:500px){.notes-list{grid-template-columns:1fr}.note-head{flex-wrap:wrap}.notes-form button{width:100%}}
/* Два баннера в правой колонке dashboard */
.dash-banner-stack{display:grid;gap:16px}.dash-promo{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;min-height:205px;padding:24px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#4b6375,#203f56);box-shadow:0 10px 26px #26354810;transition:transform .2s,box-shadow .2s}.dash-promo-2{background:linear-gradient(135deg,#667258,#314e42)}.dash-promo:before{content:"";position:absolute;z-index:-1;width:200px;height:200px;right:-75px;top:-80px;border:1px solid #ffffff24;border-radius:50%;box-shadow:0 0 0 45px #ffffff0a,0 0 0 95px #ffffff06}.dash-promo img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}.dash-promo.has-image:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#101e2ce8,#101e2c20 85%)}.dash-promo-content{display:grid;gap:7px;max-width:85%}.dash-promo-icon{width:34px;height:34px;display:grid;place-items:center;background:#ffffff2c;border-radius:9px;margin-bottom:9px}.dash-promo strong{font-size:21px;letter-spacing:-.025em;line-height:1.2}.dash-promo-content>span:last-child:not(.dash-promo-icon){font-size:13px;line-height:1.45;color:#f3f6f7}.dash-promo-arrow{position:absolute;right:23px;bottom:25px}.dash-promo:hover{transform:translateY(-3px);box-shadow:0 16px 30px #26354820}.banner-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.banner-admin-form{border:1px solid #e5ebef;border-radius:13px;padding:18px;display:grid;gap:13px;align-content:start}.banner-admin-form h3{margin:0}.banner-admin-form button{justify-self:start}.banner-admin-preview{display:block;width:100%;height:135px;object-fit:cover;border-radius:10px}.banner-remove{display:flex;align-items:center;gap:8px}.banner-remove input{width:17px;height:17px;min-width:17px}@media(max-width:750px){.banner-admin-grid{grid-template-columns:1fr}}@media(max-width:1050px){.dash-banner-stack{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.dash-banner-stack{grid-template-columns:1fr}.dash-promo{min-height:185px}}
.dash-promo img{z-index:0}.dash-promo.has-image:after{z-index:1}.dash-promo:before{z-index:1}.dash-promo-content,.dash-promo-arrow{position:relative;z-index:2}.dash-promo-arrow{position:absolute}

/* Подпись внизу сайта */
body{min-height:100vh;display:flex;flex-direction:column}body>main{width:100%;flex:1}.site-footer{width:100%;padding:22px 24px;text-align:center;color:#89939e;font-size:13px;line-height:1.5;border-top:1px solid #e4e9ed;background:#f5f6f8}

/* Карта сотрудников */
.location-panel{margin-bottom:20px}.location-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.location-controls h2{margin:0 0 6px}.location-controls p{margin:0;color:#6f7d89}.location-buttons{display:flex;flex-wrap:wrap;gap:10px}.location-buttons [hidden]{display:none}.team-map{height:440px;width:100%;margin:20px 0 16px;border-radius:14px;background:#e8edf0;overflow:hidden}.location-list{display:flex;flex-wrap:wrap;gap:10px}.location-person{border:1px solid #e1e7ed;background:#f8fafb;border-radius:10px;padding:10px 13px;font:inherit;cursor:pointer}.location-person strong{display:block}.location-person small{color:#72808c}.location-pin{background:#d43b4a;border:3px solid #fff;box-shadow:0 2px 8px #0005;border-radius:50%;width:20px;height:20px}@media(max-width:600px){.team-map{height:360px}.location-buttons{width:100%}.location-buttons button{flex:1}}

.location-person-inactive{cursor:default;background:#f2f4f6;color:#74808b;border-style:dashed}.location-person-inactive small{color:#98a2aa}.location-person a{display:block;color:#b92d3c;font-size:12px;margin-top:4px}

/* Имя сотрудника на карте в цвете логотипа */
.location-person strong,.location-person-inactive strong{color:#479e99}

/* Фотографии сотрудников на карте и в списке */
.location-person{display:flex;align-items:center;gap:10px;text-align:left;min-height:70px}.location-person-face,.location-popup-face{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#e2f3f1;color:#479e99;font-weight:800;font-size:21px}.location-person-face img,.location-popup-face img,.location-marker-face img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.location-person-caption{min-width:0}.location-person strong,.location-person small{overflow-wrap:anywhere}.location-marker{background:transparent;border:0}.location-marker-face{display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border:3px solid #fff;border-radius:50%;background:#d9eeeb;color:#479e99;font-size:22px;font-weight:800;box-shadow:0 3px 14px #1b354466;position:relative}.location-marker:after{content:"";position:absolute;left:20px;bottom:1px;width:12px;height:12px;background:#479e99;transform:rotate(45deg);border-radius:2px;z-index:-1}.location-popup{display:flex;align-items:center;gap:10px;min-width:130px}.location-popup strong{font-size:14px;color:#293842}

/* Страница входа для гостей */
body.auth-screen{min-height:100vh;display:grid;place-items:center;background:#f4f6f8}.auth-screen .auth-main{width:min(100%,480px);margin:0;padding:24px}.auth-card{padding:32px}.auth-card h1{margin:0 0 24px;font-size:27px}.auth-card form{display:grid;gap:16px}.auth-card button{width:100%;margin-top:5px}@media(max-width:480px){.auth-card{padding:24px}}

/* Логотип и подпись на странице входа */
body.auth-screen{display:flex;flex-direction:column;align-items:center;justify-content:initial}.auth-screen .auth-main{display:flex;flex-direction:column;justify-content:center;flex:1;width:min(100%,480px);padding:32px 24px}.auth-brand{display:flex;justify-content:center;margin-bottom:24px}.auth-brand img{width:min(100%,270px);height:auto;display:block}.auth-footer{width:100%;padding:18px 24px 24px;text-align:center;color:#89939e;font-size:13px;line-height:1.5}@media(max-width:480px){.auth-screen .auth-main{padding:24px 16px}.auth-brand img{width:min(100%,235px)}}

.chat-attachment { padding: 10px; margin: 8px 0; border: 1px solid currentColor; border-radius: 8px; overflow-wrap: anywhere; }
.chat-attachment a { display: block; font-weight: 600; }
.chat-attachment small, .chat-form label small { display: block; margin-top: 5px; }
.chat-form input[type=file] { max-width: 100%; }

/* Chat composer */
.chat-thread{min-width:0}
.chat-form{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:18px;background:#f8fafb;border:1px solid #e6ebef;border-radius:18px;margin-top:12px}
.chat-form>label{display:block;font-size:13px;font-weight:600;color:#63717e;margin:0}
.chat-form textarea{display:block;box-sizing:border-box;margin-top:8px;min-height:96px;padding:14px 16px;border:1px solid #dfe5eb;border-radius:12px;background:#fff;font-size:15px;font-weight:400;line-height:1.5;color:#202c38;resize:vertical;transition:border-color .15s,box-shadow .15s}
.chat-form textarea:focus{outline:none;border-color:#eb3342;box-shadow:0 0 0 3px #eb334212}
.chat-form textarea::placeholder{color:#8c98a4;font-weight:400}
.chat-compose-tools{display:flex;justify-content:space-between;align-items:center;gap:16px}
.chat-file-control{min-width:0;flex:1}
.chat-form .chat-file-button{position:relative;display:inline-flex;flex:none;align-items:center;gap:8px;max-width:100%;padding:8px 0;margin:0;font-size:14px;font-weight:600;color:#566576;cursor:pointer}
.chat-file-button:hover{color:#da293c}
.chat-file-button svg,.chat-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chat-form .chat-file-button input[type=file]{position:absolute;width:1px;height:1px;opacity:0;padding:0;overflow:hidden}
.chat-file-button:focus-within{outline:2px solid #e93242;outline-offset:4px;border-radius:5px}
.chat-form .chat-upload-hint{display:block;color:#929da8;font-size:12px;font-weight:400;margin:2px 0 0}
.chat-file-selected{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e1e7ed;border-radius:9px;padding:6px 9px;margin:5px 0;max-width:380px}
.chat-file-selected[hidden]{display:none}
.chat-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#425365}
.chat-form .chat-file-remove{display:flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;min-height:0;padding:0;margin:0;margin-left:auto;background:#f0f3f6;color:#617180;border:0;border-radius:7px;font-size:20px;cursor:pointer}
.chat-form .chat-send{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;padding:12px 19px;min-height:46px;border-radius:11px;font-size:14px;font-weight:600;margin:0;background:#e93242;color:#fff;box-shadow:0 4px 10px #e932421a;cursor:pointer}
.chat-form .chat-send:hover{background:#d52335}
.chat-form .chat-send:disabled{opacity:.65;cursor:wait}
.messages{padding:16px 0 20px;gap:14px}
.bubble{border-radius:16px 16px 16px 5px;padding:13px 16px;background:#f3f5f8}
.bubble.mine{border-radius:16px 16px 5px 16px;background:#fff0f2}
.bubble>strong{font-size:13px}.bubble p{font-size:15px}.bubble>small{display:block;text-align:right;font-size:11px;color:#8a96a2;margin-top:8px}
.chat-attachment{padding:12px 14px;background:#ffffffb8;border:1px solid #e4e8ee;border-radius:11px}
.chat-attachment a{color:#33495e;font-size:14px;text-decoration:none}.chat-attachment a:hover{color:#d52335}
.chat-attachment small{font-size:11px;color:#86929e;line-height:1.5}
@media(max-width:700px){.chat-form{display:flex;padding:14px}.chat-compose-tools{gap:10px;align-items:flex-end}.chat-form .chat-send{padding:12px 14px;font-size:13px}.chat-form .chat-file-button{font-size:13px}.chat-form .chat-upload-hint{font-size:11px}.bubble{max-width:90%}}
@media(max-width:380px){.chat-compose-tools{flex-wrap:wrap}.chat-form .chat-send{width:100%}.chat-file-control{flex-basis:100%}}

/* Collapsible employee access settings */
.employee-spoiler>summary.employee-spoiler-summary{list-style:none;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.employee-spoiler>summary::-webkit-details-marker{display:none}
.employee-spoiler>summary::marker{content:""}
.employee-spoiler-summary:focus-visible{outline:2px solid #bf3945;outline-offset:6px;border-radius:8px}
.employee-spoiler-toggle{display:flex;align-items:center;gap:8px;color:#bf3945;font-size:13px;font-weight:700;flex-shrink:0}
.employee-spoiler-chevron{font-size:24px;line-height:1;transition:transform .15s}
.employee-spoiler-hide{display:none}
.employee-spoiler[open] .employee-spoiler-hide{display:inline}
.employee-spoiler[open] .employee-spoiler-show{display:none}
.employee-spoiler[open] .employee-spoiler-chevron{transform:rotate(180deg)}
.employee-spoiler-body{margin-top:20px;padding-top:20px;border-top:1px solid #e5e9ef}
.employee-spoiler-delete{display:flex;justify-content:flex-end;margin-top:18px}
@media(max-width:600px){.employee-spoiler-toggle{font-size:12px}.employee-spoiler-summary .employee-admin-identity{min-width:0}.employee-spoiler-summary h3,.employee-spoiler-summary p{overflow-wrap:anywhere}.employee-spoiler-delete form,.employee-spoiler-delete button{width:100%}}
