
:root{--page:#f2f1ee;--surface:#fbfbfa;--surface2:#f5f5f3;--ink:#28343e;--sub:#79838b;--line:#e0e1df;--accent:#536b7a;--accentDark:#3e5361;--shadow:0 15px 38px rgba(35,46,54,.05);--radius:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:var(--ink);background:var(--page)}button,select{font:inherit}button{cursor:pointer}
.shell{min-height:100vh;display:flex;flex-direction:column}
header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,70px);background:var(--surface);border-bottom:1px solid var(--line);gap:20px}
.brand{display:flex;align-items:center;gap:14px;white-space:nowrap}
.brandmark{width:39px;height:39px;background:#e7ecec;color:#536b7a;border:1px solid #d6dfe0;border-radius:12px;display:grid;place-items:center}
.brandname{font-size:19px;letter-spacing:.10em;font-weight:680;line-height:1.15}
.brandcaption{font-size:11px;color:#849096;letter-spacing:.05em;margin-top:3px}
.head-right{display:flex;align-items:center;gap:14px}.branch{display:flex;align-items:center;gap:10px;border-right:1px solid var(--line);padding-right:24px;color:#77828a;font-size:12px}
.branch strong{color:#4b5965;font-size:13px;font-weight:600}
.settings{border:1px solid #d9dddd;background:var(--surface);padding:11px 17px;border-radius:11px;display:flex;gap:9px;align-items:center;color:var(--ink);font-size:14px;font-weight:550;transition:background .2s,transform .2s}
.settings:hover,.settings:focus-visible{background:#eef1f1;transform:translateY(-1px)}
main{width:100%;flex:1;display:flex;align-items:center;justify-content:center;padding:54px 24px 74px}
.content{width:min(930px,100%)}.eyebrow{text-align:center;font-size:12px;color:#88939b;letter-spacing:.15em;font-weight:650;margin:0 0 14px;text-transform:uppercase}
h1{text-align:center;font-size:clamp(26px,3.3vw,38px);letter-spacing:-.035em;margin:0;font-weight:620;color:#2b3943}
.subheading{text-align:center;font-size:15px;color:#78858d;margin:13px 0 40px}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.tile{text-align:left;border:1px solid #dfe2e1;border-radius:20px;background:var(--surface);min-height:265px;padding:38px 38px 28px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,box-shadow .2s,border-color .2s;position:relative;overflow:hidden;color:inherit}
.tile:hover,.tile:focus-visible{transform:translateY(-3px);box-shadow:0 20px 50px rgba(35,46,54,.09);border-color:#bfcdd1;outline:none}
.tileTop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.tileicon{width:64px;height:64px;border-radius:15px;background:#e9efef;display:grid;place-items:center;color:#536e78}
.tile:nth-child(2) .tileicon{background:#eeeee9;color:#68736c}
.tile h2{font-size:28px;font-weight:640;letter-spacing:-.02em;margin:0 0 8px}
.tile p{font-size:14px;line-height:1.55;color:#7c878f;margin:0}
.arrow{align-self:flex-end;color:#8e9ba1;border:1px solid #e1e6e6;background:#f7f8f8;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}
footer{text-align:center;padding:22px 24px 25px;border-top:1px solid #e4e4e0;color:#979f9f;font-size:12px;letter-spacing:.015em}
.overlay{position:fixed;inset:0;background:rgba(25,36,44,.28);opacity:0;pointer-events:none;transition:opacity .2s;z-index:5}
.overlay.open{opacity:1;pointer-events:auto}.drawer{position:fixed;right:0;top:0;bottom:0;z-index:6;width:min(410px,100vw);background:var(--surface);box-shadow:-10px 0 40px rgba(17,29,38,.10);transform:translateX(105%);transition:transform .25s;display:flex;flex-direction:column}
.drawer.open{transform:translateX(0)}.drawerHead{display:flex;align-items:center;justify-content:space-between;padding:26px 27px;border-bottom:1px solid var(--line)}.drawerHead h2{font-size:21px;margin:0;font-weight:620}
.close{border:0;background:#f0f1f1;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;color:#63727d}
.drawerBody{padding:20px;display:grid;align-content:start;gap:8px}
.opt{border:1px solid #e6e8e6;border-radius:12px;padding:17px;background:#fff;text-align:left;display:flex;gap:14px;align-items:center;color:#52606b}
.opt:hover{background:#f3f5f4}.opt span{display:block}.opt b{display:block;font-size:14px;font-weight:610;color:#37444c}.opt small{display:block;margin-top:4px;font-size:12px;color:#939ca0}
.note{font-size:12px;line-height:1.6;color:#949c9f;padding:20px 28px;margin-top:auto;border-top:1px solid var(--line)}
.back{border:1px solid #d9dddd;background:#fff;color:#52626e;padding:10px 14px;border-radius:10px;font-size:14px;display:flex;align-items:center;gap:8px;margin-bottom:25px}
.detail{width:min(780px,100%)}.detail h1{text-align:left}.detail .subheading{text-align:left}.empty{padding:60px 28px;text-align:center;background:#fafaf9;border:1px dashed #d7dcda;border-radius:16px;color:#87939a}.empty b{display:block;font-size:17px;color:#627079;margin-bottom:8px;font-weight:550}
svg{display:block}.hidden{display:none!important}
@media(max-width:650px){header{height:72px;padding:0 18px}.brandname{font-size:16px}.brandmark{width:36px;height:36px}.branch{display:none}.settings{padding:11px}.settings .text{display:none} main{padding:48px 17px}.tiles{grid-template-columns:1fr;gap:15px}.tile{min-height:180px;padding:25px;gap:20px}.tileicon{width:54px;height:54px}.tile h2{font-size:24px}.subheading{margin-bottom:29px}.content{max-width:520px}footer{padding:16px 18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Демо-экран входа */
.loginPage{min-height:100vh;display:grid;place-items:center;padding:28px 18px;background:#f2f1ee}
.loginCard{width:min(438px,100%);background:var(--surface);border:1px solid #dfe2e1;border-radius:21px;box-shadow:0 18px 50px rgba(35,46,54,.075);padding:36px 38px 30px}
.loginBrand{display:flex;align-items:center;gap:13px;margin-bottom:38px}
.loginBrand .brandname{font-size:21px}
.loginCard h1{font-size:26px;text-align:left;letter-spacing:-.025em;font-weight:630;margin:0}
.loginIntro{font-size:14px;color:var(--sub);margin:9px 0 29px;line-height:1.5}
.loginForm{display:grid;gap:16px}
.formField{display:flex;flex-direction:column;gap:8px}
.formField label{font-size:13px;font-weight:590;color:#485966}
.formField input{height:47px;min-width:0;border:1px solid #d6dbda;border-radius:10px;background:#fff;color:#263742;padding:0 14px;font-size:15px;outline:none;transition:border .2s,box-shadow .2s}
.formField input:focus{border-color:#678393;box-shadow:0 0 0 3px rgba(83,107,122,.12)}
.passwordWrap{position:relative}
.passwordWrap input{width:100%;padding-right:53px}
.eyeToggle{position:absolute;right:7px;top:6px;min-width:40px;height:35px;border:0;border-radius:7px;background:transparent;color:#627581;display:grid;place-items:center;font-size:13px}
.eyeToggle:hover{background:#eef1f1}
.loginSubmit{height:48px;border:1px solid #455e6d;border-radius:10px;color:#fff;background:#536b7a;font-size:15px;font-weight:600;margin-top:10px}
.loginSubmit:hover{background:#425b69}
.demoHint{font-size:12px;color:#808d93;line-height:1.55;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.userMenu{display:flex;align-items:center;gap:11px;border-left:1px solid var(--line);padding-left:17px}
.userName{font-size:13px;color:#52616b;font-weight:600;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logout{border:1px solid #d9dddd;background:#fff;border-radius:10px;color:#536472;padding:10px 12px;font-size:13px;white-space:nowrap}
.logout:hover{background:#eef1f1}
@media(max-width:650px){.loginCard{padding:28px 22px 24px}.loginBrand{margin-bottom:30px}.userMenu{gap:5px;padding-left:9px}.userName{max-width:75px;font-size:12px}.logout{padding:10px 8px;font-size:12px}.head-right{gap:9px}}

/* MEZOLA: brand refinement */
header{height:94px}
.brand{gap:15px;min-width:0}
.brandLogo{display:flex;align-items:center;justify-content:center;background:#12181a;border-radius:12px;padding:6px 13px;width:153px;height:68px;flex-shrink:0}
.brandLogo img{display:block;width:125px;height:auto;object-fit:contain}
.brandcaption{font-size:12px;letter-spacing:.015em;margin-top:0;color:#61727d}
.brandname{font-size:13px;letter-spacing:.11em;text-transform:uppercase;color:#344956}
.branch{white-space:nowrap}
.loginBrand{align-items:center;gap:16px;margin-bottom:36px}
.loginBrand .brandLogo{width:169px;height:76px}
.loginBrand .brandLogo img{width:140px}
.loginBrand .brandcaption{font-size:11px}
.loginBrand .brandname{font-size:14px}
.detail .eyebrow{text-align:left}
.loginError{padding:11px 13px;border:1px solid #e8c2c2;border-radius:9px;color:#923d3d;background:#fff6f5;font-size:13px;line-height:1.4;margin:0}
.installNotice{font-size:12px;color:#78858d;line-height:1.55;margin:21px 0 0;padding-top:17px;border-top:1px solid var(--line)}
.loginForm .loginSubmit{cursor:pointer}
.userMenu form{margin:0}
body{min-width:320px}
.settings:focus-visible,.opt:focus-visible,.tile:focus-visible,.logout:focus-visible{outline:3px solid #a7bdc5;outline-offset:3px}
@media(max-width:750px){header{height:auto;min-height:85px;padding:12px 18px;flex-wrap:wrap;gap:10px}.brandLogo{width:135px;height:62px;padding:5px 10px}.brandLogo img{width:115px}.branch{display:none}.settings .text{display:inline}.head-right{margin-left:auto}.userMenu{border-left:0;padding-left:0}.userName{max-width:95px}}
@media(max-width:470px){header{align-items:center}.brand{flex:1}.brandLogo{width:123px;height:56px}.brandLogo img{width:106px}.brand .brandText{display:none}.head-right{gap:7px}.settings{padding:10px}.settings .text{display:none}.userName{max-width:78px}.logout{padding:9px 8px}.loginCard{padding:28px 21px}.loginBrand{gap:12px}}

/* v2 — публичная главная с видимой кнопкой входа и авторской строкой */
.loginBtn{background:#536b7a;color:#fff;border:1px solid #536b7a;border-radius:11px;padding:11px 20px;font-size:14px;font-weight:600;transition:background .18s}
.loginBtn:hover{background:#415a69}
.loginBtn:focus-visible,.loginClose:focus-visible,.loginBack:focus-visible,.siteFooter a:focus-visible{outline:3px solid #9bb8c8;outline-offset:3px}
.siteFooter{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:18px clamp(22px,4vw,70px);font-size:12px;line-height:1.5;flex-wrap:wrap}
.siteFooter .credits{color:#7a878e}
.siteFooter .credits strong{font-weight:620;color:#556872}
.siteFooter a{color:#536b7a;text-decoration:none;font-weight:700;border-bottom:1px solid #bac8ca}
.siteFooter a:hover{color:#304d5b;border-bottom-color:currentColor}
.loginShade{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(29,39,48,.4);z-index:12}
.loginShade.open{display:flex}
.loginModal{background:#fbfbfa;border-radius:18px;box-shadow:0 18px 65px rgba(20,28,32,.2);width:min(440px,100%);padding:25px 28px 27px;color:#28343e}
.loginModalHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}
.loginModal h2{font-size:21px;margin:0;font-weight:650}
.loginModal p{color:#63707a;font-size:14px;line-height:1.6;margin:0 0 12px}
.loginModal .loginInfo{font-size:13px;color:#879197}
.loginClose{border:0;background:#eef0f0;color:#53616b;border-radius:9px;width:34px;height:34px;font-size:17px}
.loginBack{margin-top:15px;border:1px solid #d9dddd;background:#f5f6f5;border-radius:10px;padding:11px 18px;font-size:14px;color:#465a66}
@media(max-width:650px){.siteFooter{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:17px 20px}.loginBtn{padding:10px 14px}}

/* v3 — две колибри рядом с авторской подписью */
.siteFooter .credits{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0}
.siteFooter .creditsBirds{width:36px;height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:center;border:0;padding:0;opacity:.9}
.siteFooter .creditsBirds:hover{opacity:1;border:0}
.siteFooter .creditsBirds img{display:block;width:36px;height:36px;object-fit:contain}
@media(max-width:650px){.siteFooter .credits{gap:7px}.siteFooter .creditsBirds,.siteFooter .creditsBirds img{width:31px;height:31px}.siteFooter .creditsBirds{flex-basis:31px}}


/* v4 — brighter home tiles, without heading */
main{padding-top:38px}
.content{width:min(980px,100%)}
.homeLead{font-size:16px;font-weight:560;color:#61717b;margin:6px 0 34px}
.tile{min-height:255px;border-width:0;box-shadow:0 18px 42px rgba(35,46,54,.08)}
.tile h2{font-size:31px;font-weight:680;margin:0 0 10px}
.tile p{font-size:14px;color:#516069;max-width:22ch}
.tile .arrow{background:rgba(255,255,255,.72);border-color:rgba(255,255,255,.55);color:#445760;font-size:18px;font-weight:700}
.tileicon{box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.tile:nth-child(1){background:linear-gradient(145deg,#f2d994 0%,#ecd3a1 42%,#f7edd0 100%);color:#2f3a42}
.tile:nth-child(1) .tileicon{background:rgba(255,248,230,.62);color:#76571c}
.tile:nth-child(1) p{color:#5b5345}
.tile:nth-child(2){background:linear-gradient(145deg,#b8d6da 0%,#c8e0dd 44%,#eef7f3 100%);color:#2f3a42}
.tile:nth-child(2) .tileicon{background:rgba(243,251,250,.72);color:#335f66}
.tile:nth-child(2) p{color:#4d5f61}
.tile:hover,.tile:focus-visible{transform:translateY(-4px);box-shadow:0 24px 52px rgba(35,46,54,.12)}
@media(max-width:650px){main{padding-top:28px}.homeLead{margin-bottom:24px}.tile{min-height:170px}.tile h2{font-size:27px}}

/* v5: operational home — no duplicate branding, instructions or demo tags */
.brand{min-width:0}
.content{width:min(980px,100%)}
.tiles{gap:26px}
.tile{min-height:290px;padding:38px;justify-content:space-between}
.tile h2{font-size:clamp(30px,3.2vw,42px);margin:0;line-height:1.12}
.tileicon{width:74px;height:74px}
.siteFooter{justify-content:flex-end;min-height:72px}
.siteFooter .credits{margin-left:auto}
@media(max-width:650px){.tiles{gap:16px}.tile{min-height:190px;padding:25px}.tile h2{font-size:30px}.tileicon{width:60px;height:60px}.siteFooter{min-height:65px;justify-content:center}.siteFooter .credits{margin-left:0}}

/* v6: authenticated users navigation and staff list */
.brand{text-decoration:none;color:inherit}.head-right form{margin:0}
.signedUser{font-size:13px;color:#52616b;font-weight:600;white-space:nowrap}
.drawerBody a.opt{text-decoration:none}
.loginModal .loginForm{gap:14px}.loginModal .loginSubmit{margin-top:4px}
.loginModal .formField input{width:100%}
.formMessage{padding:11px 13px;background:#fff5f1;border:1px solid #f0d5ca;border-radius:10px;color:#8a4535;font-size:13px;line-height:1.5}
.adminMain{align-items:flex-start;justify-content:center;padding:44px 24px 70px}
.adminPanel{width:min(1120px,100%);background:var(--surface);padding:clamp(19px,3vw,40px);border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}
.adminPanel h1{text-align:left;margin:0 0 28px;font-size:27px}
.tableScroll{overflow-x:auto}.usersTable{border-collapse:collapse;width:100%;font-size:14px;text-align:left;min-width:650px}
.usersTable th{background:#eff2f1;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#65737c;padding:13px 12px}
.usersTable td{padding:17px 12px;border-bottom:1px solid #e7e9e7;color:#394752}
.userBadge{display:inline-block;margin-left:6px;border:1px solid #d6c39c;border-radius:7px;padding:3px 6px;font-size:11px;color:#7a6231;background:#fcf6e8}
.tableHint{font-size:12px;color:#88939b;margin:18px 0 0}
.passwordLink{margin-top:20px}.passwordLink a,.accessNotice a{color:#426476}
.accessNotice{padding:23px 24px;border:1px solid #d6dcdd;background:#f3f5f4;border-radius:12px;color:#596873}
.emptyState{text-align:center;padding:30px!important;color:#86949b}
@media(max-width:650px){.signedUser{max-width:90px;overflow:hidden;text-overflow:ellipsis}.adminMain{padding:20px 13px 35px}.adminPanel h1{font-size:23px}}

/* Setup page form fields */
.formField select{height:46px;border:1px solid #d6dbda;border-radius:10px;background:#fff;color:#263742;padding:0 14px;font-size:15px}

/* v7: password change window in Users */
.usersTable td:last-child{white-space:nowrap}
.changePasswordBtn{border:1px solid #b9cacf;border-radius:9px;background:#e7f0f1;color:#355460;padding:8px 12px;font-size:13px;font-weight:600}
.changePasswordBtn:hover,.changePasswordBtn:focus-visible{background:#d8e9e9;outline-offset:3px}
.passwordModalShade{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(27,40,48,.46);z-index:30}
.passwordModalShade.open{display:flex}
.passwordModal{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px 28px 28px;width:min(440px,100%);max-height:94vh;overflow-y:auto;box-shadow:0 20px 60px rgba(24,35,44,.22)}
.passwordModal .loginModalHeader{margin-bottom:14px}
.passwordTarget{margin:0 0 24px;font-size:14px;color:#687681}
.passwordTarget strong{color:#2c414d}
.passwordFeedback{padding:10px 14px;margin:15px 0;background:#fff3f0;border:1px solid #e7bbb1;color:#8c3f32;border-radius:9px;font-size:14px}
.passwordFeedbackOk{background:#eef8f1;border-color:#bbdfc7;color:#345d44}
@media(max-width:650px){.passwordModal{padding:22px}.changePasswordBtn{font-size:12px}}

.adminPasswordsLink{margin:16px 0 24px}.adminPasswordsLink .settings{display:inline-flex;text-decoration:none}

/* v12. Deliberately minimal, work-first layout */
:root{--page:#f4f3f0;--surface:#fdfdfa;--ink:#28353d}
body{background:var(--page)}
.shell header{box-shadow:0 2px 15px rgba(27,39,43,.025)}
.tile{min-height:285px;box-shadow:0 13px 30px rgba(41,55,59,.06);transition:transform .18s,box-shadow .18s}
.tile h2{font-size:clamp(30px,3.3vw,38px);font-weight:700;letter-spacing:-.035em}
.tile .arrow{width:43px;height:43px;font-size:22px}
.tile:nth-child(1){background:linear-gradient(145deg,#eed59d 0%,#f5e4bb 65%,#f9f1da 100%)}
.tile:nth-child(2){background:linear-gradient(145deg,#b7d4d9 0%,#d3e7e6 64%,#e9f3f0 100%)}
.tile:focus-visible{outline:3px solid #668a95;outline-offset:3px}
.siteFooter{background:rgba(255,255,255,.38)}
@media(max-width:650px){.tile{min-height:190px}}


/* MEZOLA · login errors: clear red instead of muted gray.
   More specific than the generic .loginModal p styling. */
.loginModal p.formMessage,
.loginModal .formMessage {
    color: #b42318;
    background: #fff0ee;
    border: 1px solid #e58b83;
    border-left: 4px solid #d92d20;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
}
