/* Общая светлая палитра для всех рабочих пространств. */
:root{color-scheme:light;--ink:#f5f5f2;--surface:#fff;--surface-2:#eeefeb;--line:#e3e5df;--text:#272a26;--muted:#72776e;--pink:#347d32;--pink-soft:#286327;--violet:#347d32;--ok:#187657;--warn:#946000;--bad:#b52d49;background:var(--ink);color:var(--text)}
body{background:var(--ink);color:var(--text)}
a,.topbar a,.instructions a{color:var(--violet)}
input,select,textarea{color:var(--text);background:var(--surface);border-color:var(--line);accent-color:var(--pink)}
input::placeholder,textarea::placeholder{color:#7b8178;opacity:1}
input[type=date]::-webkit-calendar-picker-indicator,input[type=time]::-webkit-calendar-picker-indicator{filter:none}
:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
.field,.ai-form textarea,.ai-tools select,.ai-tools input,.ai-import-preview input,.ai-import-preview select{background:var(--surface);color:var(--text);border-color:var(--line)}
.btn{background:var(--surface-2);color:var(--text)}
.btn--primary,.btn.primary,.btn--danger,.ai-launch,.has-layout .ai-launch,.ai-form button,.ai-apply{background:var(--pink);color:#fff}
.btn--danger{background:var(--bad)}
.btn--ghost{background:transparent}
.layout-rail{background:rgba(255,255,255,.96);border-color:var(--line)}
.layout-brand,.team-tabs button,.office-modules a{color:var(--text)}
.layout-brand span,.office-wordmark b,.office-products strong,.eyebrow,.layout-caption,.layout-foot,.date-icon{color:var(--violet)}
.layout-mobile-title,.layout-menu{background:var(--surface);color:var(--text)}
.layout-nav a:hover,.office-modules a:hover{background:#edf3e8;color:var(--violet)}
.layout-nav a[aria-current=page]{background:#90d66b;color:#203b1d;border-color:#85c961;box-shadow:inset 3px 0 var(--pink)}
.office-modules a{border-color:var(--line)}
.employee-card,.office-products a{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 3px 16px #242a2010}
.employee-card:hover,.office-products a:hover,.has-layout .task:hover{background:#fcfdfb;box-shadow:0 6px 20px #242a201a;border-color:#b5c5aa}
.employee-card p,.employee-card small,.office-products p,.employee-filters label,dialog label,.article-list small,.article-meta,.instruction-heading p,.editor-hint,.ai-context,.intro,footer,.badge{color:var(--muted)}
.avatar,.product-icon{background:#edf2e7;color:#426739}
.card-badge{background:#eaf4e3;color:#3f6b31}
.employee-tabs button,.person-tabs button{color:var(--muted)}
.employee-tabs [aria-selected=true],.person-tabs [aria-selected=true]{color:var(--pink)}
dialog,.person-dialog,.ai-dialog,.has-layout .modal__card{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 24px 80px #20291a26}
dialog::backdrop,.ai-dialog::backdrop,.modal,.layout-open .layout-backdrop{background:rgba(38,28,48,.3)}
.dialog-close,dialog .close-dialog,.ai-close,.month-nav button{color:var(--muted)}
#staff-status,#person-status,#new-status,#status,#gen-status,#notice,.ai-status,.roster-caption{color:var(--violet)}
.calendar-day{background:var(--surface);color:var(--text);border-color:var(--line)}
.calendar-day.on{background:var(--violet);color:white;border-color:var(--violet)}
.calendar-day.elsewhere{background:#e9ece6;color:var(--muted)}
.trainer-class--personal{border-color:#279783;background:#edf8f5}
.trainer-class--personal small{color:#176c5f}
.roster-scroll,.scroll{border-color:var(--line);scrollbar-color:#bec5b8 #f4f5f1}
.roster-table,table{background:var(--surface);color:var(--text)}
th,td,.roster-table th,.roster-table td,.pay-table td,.pay-table th{border-color:var(--line);background:var(--surface)}
thead th,.roster-table thead th,.roster-table thead .person{background:#f0f2ed;color:var(--text)}
th.person,.roster-table .person{background:var(--surface)}
.person a,.person span.name{color:var(--text)}
.person small,.roster-table th small,.roster-table .sum small,small{color:var(--muted)}
.weekend,.roster-table .weekend{background:#f7f8f4}
.roster-table thead .weekend{background:#e9ede4}
.roster-table .sum,.total{background:#f0f2ed;color:var(--violet);border-color:var(--line)}
.section-add,.day-button{color:var(--pink)}
.day-button.has-shift,.hours{background:#e6f2dc;color:#38652a}
.day-button:hover:not(:disabled){background:#d6e9c9}
.day-button.other-shift{color:var(--muted)}
.pending,.pay-warning,.warning{color:var(--warn)}
.pending .hours{background:#fff2d6;color:#805500}
.employee-choice,.ai-header,.ai-form,.ai-tools,.ai-change,.ai-import-preview fieldset{border-color:var(--line)}
.add-choice:hover{background:var(--surface-2)}
.ai-message{background:#f0f2ed}.ai-message--user{background:#e8f2e0}
.ai-tools button,.ai-upload{background:var(--surface-2);color:var(--text);border-color:var(--line)}
.ai-import-preview small{color:var(--muted)}
.article-list button,.article-editor,#history button{background:var(--surface);color:var(--text);border-color:var(--line)}
.article-list button[aria-pressed=true]{background:#edf5e7;border-color:#a3c88b}
.instructions details,#binding{border-color:var(--line)}
.has-layout .hour__label,.pay-table th,.pulse-logo{color:var(--violet)}
.pay-controls [aria-selected=true]{background:var(--violet);color:#fff}
#loading:not([hidden]){background:#f0f5ec;border-color:#d6e3cd}
#adjustments p{border-color:var(--line)}
.shift-chip{color:#fff}
body:has(#config-branch) section{background:var(--surface);border-color:var(--line)}
.muted,.note,.roster-help,.empty{color:var(--muted)}
.empty{background:var(--surface)}
@media(prefers-reduced-transparency:reduce){.layout-rail,.person-dialog{background:var(--surface);backdrop-filter:none}}
@media print{body{background:white;color:#222}}

/* Detailed workspace: quiet surfaces, compact navigation and green selection. */
:root{--panel-shadow:0 2px 3px #252c2010,0 7px 18px #252c2006;--radius:12px}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
.layout-rail{background:#f5f5f2;backdrop-filter:none;padding-top:26px}
.layout-brand{display:flex;align-items:center;gap:8px;letter-spacing:-.6px;color:#30362c}
.layout-brand span{color:#72776e;font-weight:500;font-size:13px;letter-spacing:-.2px}
.layout-caption{color:#8a8f85;font-size:10px;letter-spacing:.03em;text-transform:none;margin-top:16px}
.layout-nav{gap:3px}.layout-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:12px;font-weight:500;border-radius:7px;color:#636a5e}
.layout-nav a[aria-current=page]{box-shadow:0 1px 2px #314c1820;color:#23391b}
.nav-icon{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none;opacity:.8}
.office-modules{gap:5px;margin-bottom:4px}.office-modules a{font-size:12px;padding:10px 12px;background:#fff;border-color:#e2e5dd;box-shadow:0 1px 2px #202b1510}
.layout-foot{color:#8b9185;line-height:1.7;font-size:10px;border-top:1px solid var(--line);padding-top:18px}
.has-layout .page-title,.employee-heading h1{font-weight:600;letter-spacing:-.7px}
.has-layout .filters,.employee-filters{background:#fff;border-color:var(--line);border-radius:12px;box-shadow:var(--panel-shadow)}
.field{border-radius:8px;font-size:13px}.btn{border-radius:8px;font-size:12px;font-weight:600;box-shadow:0 1px 2px #1d251114}
.btn--primary,.btn.primary,.has-layout .fab{background:#353b31;color:white;box-shadow:0 2px 3px #1d251124}
.btn--primary:hover,.btn.primary:hover{background:#48523f}
.employee-card,.office-products a,.has-layout .task,.article-editor{border:1px solid #e9ece4;box-shadow:var(--panel-shadow);border-radius:13px}
.employee-card:hover,.office-products a:hover{transform:translateY(-1px)}
.avatar{background:linear-gradient(145deg,#f1f4ed,#e0e9d7);border:1px solid #dfe7d6;border-radius:15px;color:#526846}
.employee-tabs,.person-tabs{gap:6px;border:0;background:#eaece6;padding:4px;border-radius:9px;width:fit-content;max-width:100%}
.employee-tabs button,.person-tabs button{padding:8px 12px;border:0;font-size:12px;border-radius:6px}
.employee-tabs [aria-selected=true],.person-tabs [aria-selected=true]{background:white;color:#30382b;box-shadow:0 1px 3px #27331b24}
.eyebrow{color:#858b7e;letter-spacing:.08em}.employee-card h2{font-weight:600}.card-badge{width:fit-content}
.roster-scroll,.scroll{border-radius:12px;box-shadow:var(--panel-shadow)}
thead th{font-weight:500}td{font-variant-numeric:tabular-nums}
.has-layout .hour__label{color:#7a8271;font-size:12px}.has-layout .ai-launch{background:#e3f0d7;color:#35552a;border:1px solid #c7ddba;box-shadow:var(--panel-shadow)}
.office-home{max-width:1050px;margin:48px auto;padding:32px 40px 48px;background:#f8f9f5;border:1px solid #fff;border-radius:24px;box-shadow:0 3px 5px #252c2012,0 20px 60px #252c2008}
.office-wordmark{font-size:21px;letter-spacing:-.6px}.office-wordmark b{color:#777f6d;font-weight:500;font-size:16px}
.office-home h1{font-size:36px;font-weight:600;line-height:1.2;margin-top:44px}.office-home .muted{font-size:14px}
.office-products{gap:18px;margin-top:30px}.office-products a{padding:26px;background:white}.office-products h2{font-size:20px;font-weight:600;margin:20px 0 8px}
.product-icon{width:44px;height:44px;font-size:19px;background:#393f34;color:white;border:1px solid #69705e;box-shadow:inset 0 1px 2px #ffffff45,0 2px 4px #222d1829}
.office-products a:nth-child(2) .product-icon{background:#e3efd7;color:#4d6a38;border-color:#d0dfc1}
.office-products strong{display:block;border-top:1px solid #eef0e9;padding-top:18px;margin-top:22px;color:#3b632d}
.office-products p{font-size:13px;max-width:310px}.office-home footer{font-size:11px;margin-top:35px;color:#929889}
@media(max-width:759px){.office-home{margin:14px;padding:24px 20px;border-radius:18px}.office-home h1{font-size:28px;margin-top:32px}.office-products{gap:14px}.office-products a{padding:22px}.layout-mobile-title{background:#f5f5f2}.layout-menu{background:#fff;border-color:#dfe4d8}.has-layout .fab{font-size:12px}.employee-tabs,.person-tabs{width:auto}.employee-tabs button,.person-tabs button{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.layout-bottom{display:none}@media(max-width:759px){.has-layout .layout-bottom{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;gap:5px;background:#fff;border-top:1px solid var(--line);padding:10px 8px calc(10px + env(safe-area-inset-bottom));z-index:60}.layout-bottom a,.layout-bottom button{padding:10px 7px;font:600 12px inherit;color:var(--muted);text-decoration:none;background:none;border:0;border-radius:8px}.layout-bottom [aria-current=page]{background:#e4f0dd;color:#35572a}.has-layout>main{padding-bottom:100px}.has-layout .ai-launch{bottom:80px;width:46px;padding:0;font-size:0;border-radius:50%}.has-layout .ai-launch:after{content:'✦';font-size:22px}.has-layout .fab{bottom:80px}}
