@font-face{font-family:Inter;font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/inter-400.woff) format('woff')}
@font-face{font-family:Inter;font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/inter-600.woff) format('woff')}
@font-face{font-family:Inter;font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/inter-700.woff) format('woff')}
@font-face{font-family:Inter;font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/inter-800.woff) format('woff')}
@font-face{font-family:Rubik;font-weight:300 900;font-style:normal;font-display:swap;src:url(/fonts/Rubik.ttf) format('truetype')}
*{box-sizing:border-box}
body{margin:0;background:#F6F5F2;color:#1F1D1A;font:400 16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}
.brand{display:flex;align-items:center;gap:8px;color:var(--accent,#A94A17);font-weight:700;letter-spacing:.16em}
.brand i{font-style:normal;width:28px;height:28px;border-radius:8px;background:var(--accent,#A94A17);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;letter-spacing:0}
.wrap{max-width:420px;margin:0 auto;padding:40px 20px;display:flex;flex-direction:column;gap:16px}
.wide{max-width:1200px;padding:24px 32px}
.card{background:#fff;border:1px solid #E6E3DC;border-radius:12px;padding:18px 20px}
h1,h2,.brand,.tour h2{font-family:Rubik,Inter,system-ui,sans-serif}
h1{margin:0;font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.01em} h2{margin:0 0 6px;font-size:20px;font-weight:700;line-height:1.25}
label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:15px}
input,select{font:inherit;font-size:16px;font-weight:400;min-height:46px;padding:0 12px;border:1px solid #8F8A80;border-radius:10px;background:#fff;color:#1F1D1A}
button{font:inherit;font-size:16px;font-weight:700;min-height:46px;padding:0 16px;border-radius:12px;border:0;cursor:pointer;background:var(--accent,#A94A17);color:#fff;box-shadow:0 3px 0 rgba(0,0,0,.3);transition:transform .1s}
button:active{transform:translateY(3px);box-shadow:none}
button.ghost{background:#fff;color:#1F1D1A;border:2px solid #1F1D1A;font-weight:600;min-height:40px;padding:0 12px;box-shadow:none}
button:disabled{opacity:.6;cursor:wait}
:focus-visible{outline:3px solid #1F5FA8;outline-offset:2px}
.err{color:#B3261E;font-weight:600;min-height:20px} .okm{color:#1F7A47;font-weight:600;min-height:20px}
.muted{color:#5C574F;font-size:14px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.row>label{flex:1 1 200px}
.kpis{display:flex;flex-wrap:wrap;gap:12px}.kpis>div{flex:1 1 170px;background:#fff;border:1px solid #E6E3DC;border-radius:12px;padding:14px 16px}
.kpis b{display:block;font-size:30px;font-weight:800;font-family:Rubik,Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
table{width:100%;border-collapse:collapse;min-width:1000px}
th{text-align:left;font-weight:600;color:#5C574F;font-size:13px;padding:8px 6px;border-bottom:1px solid #E6E3DC}
td{padding:12px 6px;border-bottom:1px solid #EFEDE7;vertical-align:top}
.tag{display:inline-block;font-size:13px;font-weight:700;padding:2px 9px;border-radius:99px;border:1px solid;white-space:nowrap}
.good{color:#1F7A47;background:#E3F3E9}.warn{color:#8A5A00;background:#FBF0D6}.bad{color:#B3261E;background:#FBE4E1}.info{color:#1F5FA8;background:#E1ECF8}.off{color:#4A463F;background:#EFEDE7}
.acts{display:flex;gap:6px;flex-wrap:wrap}
.scroll{overflow-x:auto}
.invite{background:#E3F3E9;border:1px solid #1F7A47;border-radius:10px;padding:12px 14px;color:#1F5A37;word-break:break-all}
.feat{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid #EFEDE7}.feat b{flex:1 1 200px}
@media (prefers-reduced-motion:reduce){button{transition:none}}
.tour-veil{position:fixed;inset:0;background:rgba(31,29,26,.55);display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:0}
.tour{background:#fff;width:100%;max-width:520px;border-radius:20px 20px 0 0;padding:18px 20px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;min-height:46vh}
.tour-top{display:flex;justify-content:space-between;align-items:center}
.tour h2{margin:6px 0 0;font-size:26px;font-weight:800;line-height:1.2}
.tour p{margin:0;font-size:18px;line-height:1.5;flex:1}
.tour-dots{display:flex;gap:8px;justify-content:center}
.tour-dots i{width:10px;height:10px;border-radius:50%;background:#D9D5CC}
.tour-dots i.on{background:var(--accent,#A94A17);width:26px;border-radius:5px}
.tour-btns{display:flex;justify-content:space-between;gap:10px}
.tour-btns button{flex:1 1 0;min-height:52px}
/* ===== Каркас приложения (телефон) ===== */
.appbody{background:#F6F5F2}
.shell{max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:#F6F5F2}
.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #E6E3DC;padding:10px 20px 12px;padding-top:calc(10px + env(safe-area-inset-top))}
.top-row{display:flex;align-items:center;justify-content:space-between;min-height:44px}
.top h1{margin-top:2px}
.sub{color:#5C574F;font-size:14px;margin-bottom:2px}
.back{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 14px 0 6px;margin-left:-8px;font:inherit;font-size:16px;font-weight:700;color:var(--accent,#A94A17);background:none;border:0;box-shadow:none;cursor:pointer}
.back:active{background:#F4E6DC;transform:none}
.screen{flex:1;padding:16px 16px calc(110px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;outline:0}
 background:#fff linear-gradient(180deg,rgba(255,255,255,.3),rgba(0,0,0,.05));border:2px solid #8F8A80;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.sect{margin:10px 4px 0;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5C574F}
.mi{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;background:#fff;border:1px solid #E6E3DC;border-radius:14px;color:#1F1D1A;text-decoration:none;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.mi:active{transform:scale(.98)}
.mi .tx{flex:1;display:flex;flex-direction:column}.mi .tx b{font-size:17px;font-weight:700}.mi .tx span{font-size:14px;color:#5C574F}
.mi .chev{color:#5C574F}
.empty{background:#fff;border:1px dashed #8F8A80;border-radius:14px;padding:22px 18px;text-align:center;display:flex;flex-direction:column;gap:6px}
.empty b{font-family:Rubik,Inter,system-ui,sans-serif;font-size:20px;font-weight:700}
.person{background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.person .nm{font-size:17px;font-weight:700}
.formcard{background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}
.full{width:100%}
.linkbox{background:#E3F3E9;border:1px solid #1F7A47;border-radius:10px;padding:12px 14px;color:#1F5A37;word-break:break-all;font-size:14px}
.toast{position:fixed;left:16px;right:16px;bottom:calc(96px + env(safe-area-inset-bottom));max-width:528px;margin:0 auto;background:#1F1D1A;color:#fff;border-radius:12px;padding:12px 16px;z-index:60;font-weight:600}
/* ===== Рабочие экраны ===== */
textarea{font:inherit;font-size:16px;font-weight:400;line-height:1.5;padding:10px 12px;border:1px solid #8F8A80;border-radius:10px;background:#fff;color:#1F1D1A;resize:vertical;min-height:80px}
.row{display:flex;gap:10px;flex-wrap:wrap}.row>button,.row>.btn{flex:1 1 140px}
.stack{display:flex;flex-direction:column;gap:8px}
.acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:4px}
.btn{display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;min-height:46px;padding:0 16px;border-radius:12px;cursor:pointer;text-align:center}
.btn.ghost{background:#fff;color:#1F1D1A;border:2px solid #1F1D1A}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button.danger{color:#B3261E;border-color:#B3261E}
button.sq{min-width:44px;padding:0}
.badge{position:absolute;top:-6px;right:6px;min-width:20px;height:20px;border-radius:10px;background:#B3261E;color:#fff;font-style:normal;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid #F6F5F2}
.pill{font-style:normal;background:#B3261E;color:#fff;font-size:13px;font-weight:700;border-radius:999px;padding:2px 10px}
.mi.read{opacity:.65}
.task{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:12px 14px}
.task .tx{flex:1;display:flex;flex-direction:column;gap:2px}.task .tx b{font-size:17px;font-weight:700}.task .tx span{font-size:14px;color:#5C574F}
.task.isdone .tx b{text-decoration:line-through;color:#5C574F}
.tick{flex:none;width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;background:#fff;color:#fff;border:3px solid #1F1D1A;font-size:24px;font-weight:800;box-shadow:none}
.tick.on{background:#1F7A47;border-color:#1F7A47}
.itemrow{display:flex;gap:6px}.itemrow input{flex:1;min-width:0}
.chk{flex-direction:row;align-items:center;gap:10px;font-weight:600;min-height:44px}.chk input{min-height:0;width:24px;height:24px;flex:none}
.weeknav{display:flex;align-items:center;gap:8px}.wk{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.day{background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.day.today{border:2px solid var(--accent,#A94A17)}
.day-h{display:flex;align-items:center;gap:8px;justify-content:space-between}.day-h b{font-size:17px;font-weight:700;flex:1}
.shift{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:1px;background:#F6F5F2;color:#1F1D1A;border:0;border-left:6px solid #1F5FA8;border-radius:8px;padding:8px 12px;min-height:0;box-shadow:none;font-weight:400}
.shift b{font-size:16px;font-weight:700}.shift span{font-size:14px;color:#1F1D1A;font-weight:400}.shift .muted{color:#5C574F}
.shift.mine{background:#FBEBDD}
.shiftpick{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;color:#1F1D1A;border:1px solid #8F8A80;border-left:6px solid #1F5FA8;border-radius:10px;padding:10px 14px;min-height:56px;box-shadow:none;font-weight:400}
.shiftpick b{font-size:17px}.shiftpick span{font-size:14px;color:#5C574F}
.warnbox{background:#FFF1D6;border:1px solid #C98A1B;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:#5A3B00}.warnbox b{font-size:16px}
.tot{display:flex;justify-content:space-between;gap:10px;font-size:16px}
.seg{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.time{display:flex;align-items:center;gap:2px}.time select{min-width:60px;padding:0 6px}
.swatches{display:flex;gap:10px;flex-wrap:wrap}.sw{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #8F8A80;color:#fff;font-size:20px}.sw.on{box-shadow:0 0 0 3px #1F1D1A}
.preview{background:#EAF1FA;border-radius:10px;padding:10px 12px;font-weight:600;color:#17375E}
.doc-text{background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:16px;white-space:pre-wrap;word-wrap:break-word;font-size:16px;line-height:1.6}
.shot{max-width:100%;border:1px solid #8F8A80;border-radius:10px}
.sheet-veil{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#F6F5F2;width:100%;max-width:560px;max-height:92vh;max-height:92dvh;overflow-y:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.sheet-top h2{flex:1}
@media print{.top,#side,.acts,.row,.sect,.back{display:none!important}.doc-text{border:0}}
.seg .muted{flex-basis:100%}.seg .time select{min-width:54px;padding:0 4px}.seg>span:not(.muted){flex:none}
/* ===== Тёмная тема (выбирает каждый сотрудник у себя) ===== */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body,html[data-theme="dark"] .appbody,html[data-theme="dark"] .shell{background:#141311;color:#F1EEE8}
html[data-theme="dark"] .top,html[data-theme="dark"] .mi,html[data-theme="dark"] .person,html[data-theme="dark"] .formcard,html[data-theme="dark"] .task,html[data-theme="dark"] .day,html[data-theme="dark"] .empty,html[data-theme="dark"] .doc-text{background:#201E1B;border-color:#3A3732;color:#F1EEE8}
html[data-theme="dark"] .top{border-bottom-color:#3A3732}
html[data-theme="dark"] .sheet{background:#1A1816;color:#F1EEE8}
html[data-theme="dark"] .muted,html[data-theme="dark"] .sub,html[data-theme="dark"] .sect,html[data-theme="dark"] .mi .tx span,html[data-theme="dark"] .task .tx span,html[data-theme="dark"] .mi .chev{color:#B9B3A8}
html[data-theme="dark"] .task.isdone .tx b{color:#9A948A}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#2A2825;color:#F1EEE8;border-color:#6B665D}
html[data-theme="dark"] button.ghost,html[data-theme="dark"] .btn.ghost{background:#201E1B;color:#F1EEE8;border-color:#B9B3A8}
html[data-theme="dark"] button.danger{color:#FF8A80;border-color:#FF8A80}
html[data-theme="dark"] .tick{background:#201E1B;border-color:#F1EEE8}
html[data-theme="dark"] .tick.on{background:#2E9A5B;border-color:#2E9A5B}
html[data-theme="dark"] .shift,html[data-theme="dark"] .shiftpick{background:#2A2825;color:#F1EEE8;border-color:#6B665D}
html[data-theme="dark"] .shift span,html[data-theme="dark"] .shiftpick span{color:#F1EEE8}
html[data-theme="dark"] .shift .muted,html[data-theme="dark"] .shiftpick span{color:#B9B3A8}
html[data-theme="dark"] .shift.mine{background:#4A2C18}
html[data-theme="dark"] .warnbox{background:#3A2C0E;border-color:#C98A1B;color:#FFE2A8}
html[data-theme="dark"] .preview{background:#172B45;color:#CFE2FA}
html[data-theme="dark"] .back{color:#FFB48A}html[data-theme="dark"] .back:active{background:#3A2418}
html[data-theme="dark"] .badge{border-color:#141311}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] .nm{color:#F1EEE8}
html[data-theme="dark"] .linkbox{background:#173D28;color:#BFEBD0;border-color:#2E9A5B}
/* фон приложения: спокойные варианты, не мешают читать */
html[data-bg="warm"] .appbody,html[data-bg="warm"] .shell{background:#F3EBDD}
html[data-bg="cool"] .appbody,html[data-bg="cool"] .shell{background:#E9EFF5}
html[data-bg="green"] .appbody,html[data-bg="green"] .shell{background:#E8F0E6}
html[data-theme="dark"][data-bg] .appbody,html[data-theme="dark"][data-bg] .shell{background:#141311}

.brandrow{display:flex;align-items:center;gap:8px}.brandrow img{width:28px;height:28px;border-radius:6px;object-fit:contain;background:#fff}
.logo-prev{width:96px;height:96px;object-fit:contain;border:1px solid #8F8A80;border-radius:12px;background:#fff}
.thumb{display:block;max-width:100%;max-height:160px;border-radius:10px;border:1px solid #8F8A80;margin-top:4px}.btn.small{min-height:40px;font-size:15px;padding:0 12px;align-self:flex-start}

/* ===== Новый каркас: меню справа, кнопки-картинки с подписью под ними ===== */
.screen{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.top-row{gap:8px}
.ib{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:0;min-width:56px;padding:2px 4px;background:none;color:#1F1D1A;border:0;box-shadow:none;font-weight:600;border-radius:12px}
.ib:active{transform:none;background:rgba(0,0,0,.06)}
.ib .ibi{position:relative;width:48px;height:48px;border-radius:14px;border:2px solid #1F1D1A;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 rgba(0,0,0,.25)}
.ib:active .ibi{transform:translateY(2px);box-shadow:none}
.ib svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ib small{font-size:12px;line-height:1.1;font-weight:700;color:#1F1D1A}
.ib .badge{top:-8px;right:-8px}
.ib.back{margin-left:-4px;color:var(--accent,#A94A17)}
.ib.back .ibi{border-color:var(--accent,#A94A17);color:var(--accent,#A94A17)}.ib.back small{color:var(--accent,#A94A17)}
.ib.menubtn .ibi{background:var(--accent,#A94A17);border-color:var(--accent,#A94A17);color:#fff}
.top-row{align-items:flex-start}.top-row .brand{align-self:center}
.top{padding-bottom:8px}
/* плавающая кнопка в зоне большого пальца */
.fabwrap{position:fixed;right:max(14px,calc(50% - 266px));bottom:calc(14px + env(safe-area-inset-bottom));z-index:15}
.ib.fab .ibi{width:60px;height:60px;border-radius:50%;background:var(--accent,#A94A17);border-color:var(--accent,#A94A17);color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.ib.fab svg{width:30px;height:30px}
.ib.fab small{background:#fff;border-radius:8px;padding:1px 7px;border:1px solid #E6E3DC}
/* боковое меню: тёмная панель справа, контент светлый */
.drawer-veil{position:fixed;inset:0;z-index:70;background:rgba(20,12,8,0);transition:background .2s;display:flex;justify-content:flex-end}
.drawer-veil.on{background:rgba(20,12,8,.55)}
.drawer{width:min(88vw,340px);height:100%;background:#2A1D16;color:#F4EADF;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));transform:translateX(100%);transition:transform .22s ease-out;overflow:hidden;box-shadow:-8px 0 24px rgba(0,0,0,.35)}
.drawer-veil.on .drawer{transform:none}
.drawer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:0 16px 12px;border-bottom:1px solid rgba(255,255,255,.14)}
.drawer .who{display:flex;flex-direction:column;min-width:0}.drawer .who b{font-family:Rubik,Inter,sans-serif;font-size:19px;font-weight:800;overflow:hidden;text-overflow:ellipsis}.drawer .who span{font-size:14px;color:#CDB8A6}
.drawer .ib.dark .ibi{background:transparent;border-color:#F4EADF;color:#F4EADF;box-shadow:none}.drawer .ib.dark small{color:#F4EADF}
.dnav{flex:1;overflow-y:auto;padding:6px 10px;display:flex;flex-direction:column;gap:4px}
.dgroup-h{width:100%;display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:48px;padding:0 10px;background:none;color:#CDB8A6;border:0;box-shadow:none;border-radius:10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;text-align:left}
.dgroup-h span{flex:1}.dgroup-h svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .15s}
.dgroup-h[aria-expanded="true"] svg{transform:rotate(90deg)}
.dgroup-body{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.ditem{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 12px;border-radius:12px;color:#F4EADF;text-decoration:none;font-size:17px;font-weight:600}
.ditem span{flex:1}.ditem svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ditem:active{background:rgba(255,255,255,.1)}
.ditem.on{background:var(--accent,#A94A17);color:#fff}
.dlogout{margin:8px 16px 0;background:transparent;color:#F4EADF;border:2px solid rgba(244,234,223,.5);box-shadow:none;min-height:48px}
body.noscroll{overflow:hidden}
/* главная */
.hello{display:flex;flex-direction:column;gap:0;padding:2px 4px}.hello b{font-family:Rubik,Inter,sans-serif;font-size:24px;font-weight:800;line-height:1.2}
.hcard{background:#fff;border:1px solid #E6E3DC;border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.hhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.hhead h2{margin:0;font-size:18px}.hhead a{font-size:14px;font-weight:700;color:var(--accent,#A94A17);text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.bday{display:flex;gap:12px;align-items:center;background:#FFF1D6;border:1px solid #C98A1B;border-radius:16px;padding:12px 14px;color:#5A3B00}
.bday svg{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bday .tx{display:flex;flex-direction:column}.bday b{font-size:16px}
.duerow{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#F6F5F2;border-radius:12px;padding:10px 12px}.duerow .tx{display:flex;flex-direction:column;flex:1}.duerow .tx b{font-size:17px}.duerow .tx span{font-size:14px;color:#5C574F}
.duerow button{min-height:52px;min-width:110px}
.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0 14px;border-radius:24px;background:#F6F5F2;border:1px solid #8F8A80;color:#1F1D1A;text-decoration:none;font-size:15px}
.chip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.chip b{font-size:18px}
.nextshift{display:flex;flex-direction:column;border-left:6px solid #1F5FA8;background:#F6F5F2;border-radius:8px;padding:8px 12px}.nextshift b{font-size:17px}
.stats{display:flex;gap:10px}.stats>div{flex:1;background:#F6F5F2;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}.stats b{font-family:Rubik,Inter,sans-serif;font-size:22px;font-weight:800}.stats span{font-size:13px;color:#5C574F}
.mini{display:flex;flex-direction:column;gap:1px;min-height:52px;justify-content:center;padding:6px 12px;border-radius:12px;background:#F6F5F2;color:#1F1D1A;text-decoration:none}.mini b{font-size:16px}.mini span{font-size:14px}
.quick{display:flex;justify-content:space-around;gap:6px;padding:6px 0}
.news .nm{font-size:19px}
/* карточка сотрудника и группы по должностям */
.grp{margin:8px 4px 0;display:flex;align-items:baseline;justify-content:space-between;font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#5C574F}
.pcard{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;background:#fff;border:1px solid #E6E3DC;border-radius:14px;color:#1F1D1A;text-align:left;width:100%;font-weight:400;box-shadow:none}
.pcard .tx{flex:1;display:flex;flex-direction:column}.pcard .tx b{font-size:17px}.pcard .tx span{font-size:14px;color:#5C574F}.pcard svg{width:20px;height:20px;fill:none;stroke:#5C574F;stroke-width:2}
details.more{border:1px dashed #8F8A80;border-radius:12px;padding:0 12px}details.more>summary{min-height:48px;display:flex;align-items:center;font-weight:700;cursor:pointer;list-style:none}
details.more>summary::-webkit-details-marker{display:none}details.more[open]{padding-bottom:12px;display:flex;flex-direction:column;gap:10px}details.more[open]>summary{margin:0 -0px}
.rights{background:#EAF1FA;border-radius:12px;padding:10px 14px;color:#17375E;font-size:14px;display:flex;flex-direction:column;gap:2px}.rights b{font-size:15px}
.pick{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow-y:auto;border:1px solid #8F8A80;border-radius:10px;padding:4px 8px;background:#fff}
.days{display:flex;gap:6px;flex-wrap:wrap}.days button{min-width:44px;padding:0 8px}
.cmt{background:#FFF8E5;border-left:4px solid #C98A1B;border-radius:8px;padding:6px 10px;font-size:14px;color:#4A3500}
.hint{font-size:14px;color:#5C574F}
.reqphoto{font-size:13px;font-weight:700;color:#8A5A00}
/* тёмная тема для новых элементов */
html[data-theme="dark"] .ib{color:#F1EEE8}html[data-theme="dark"] .ib small{color:#F1EEE8}
html[data-theme="dark"] .ib .ibi{background:#201E1B;border-color:#B9B3A8}
html[data-theme="dark"] .ib.back .ibi{background:#201E1B;border-color:#FFB48A;color:#FFB48A}html[data-theme="dark"] .ib.back small{color:#FFB48A}
html[data-theme="dark"] .ib.menubtn .ibi,html[data-theme="dark"] .ib.fab .ibi{background:#C4551E;border-color:#C4551E;color:#fff}
html[data-theme="dark"] .ib.fab small{background:#201E1B;border-color:#3A3732}
html[data-theme="dark"] .hcard,html[data-theme="dark"] .pcard,html[data-theme="dark"] .pick{background:#201E1B;border-color:#3A3732;color:#F1EEE8}
html[data-theme="dark"] .duerow,html[data-theme="dark"] .mini,html[data-theme="dark"] .nextshift,html[data-theme="dark"] .stats>div,html[data-theme="dark"] .chip{background:#2A2825;color:#F1EEE8;border-color:#6B665D}
html[data-theme="dark"] .duerow .tx span,html[data-theme="dark"] .stats span,html[data-theme="dark"] .pcard .tx span,html[data-theme="dark"] .hint,html[data-theme="dark"] .grp{color:#B9B3A8}
html[data-theme="dark"] .bday{background:#3A2C0E;border-color:#C98A1B;color:#FFE2A8}
html[data-theme="dark"] .rights{background:#172B45;color:#CFE2FA}
html[data-theme="dark"] .cmt{background:#3A2C0E;color:#FFE2A8}
html[data-theme="dark"] details.more{border-color:#6B665D}
@media (prefers-reduced-motion:reduce){.drawer,.drawer-veil{transition:none}}

.ibrow{display:flex;gap:14px;justify-content:flex-start}.ib.off{opacity:.35;pointer-events:none}
.weeknav .ib{flex:none}

.slogan{margin:-4px 0 8px;font-size:15px;font-weight:500;color:#5C564D}html[data-theme="dark"] .slogan{color:#CFC8BC}

/* ===== Версия для компьютера: меню всегда открыто справа, содержимое шире ===== */
@media (min-width:1024px){
  body.hasside{padding-right:300px}
  .shell{max-width:900px}
  #side{position:fixed;top:0;right:0;bottom:0;width:300px;height:100%;transform:none;z-index:30;box-shadow:-1px 0 0 rgba(0,0,0,.2)}
  .menubtn,.closebtn{display:none!important}
  .screen{padding:20px 28px 60px}.top{padding-left:28px;padding-right:28px}
  .fabwrap{right:calc(300px + max(24px, (100vw - 300px - 900px)/2 + 24px))}
  .toast{max-width:860px}
}
@media print{.ib,.fabwrap,.no-print,.toast,#side{display:none!important}.payslip{border:0!important}.shell{max-width:none}body.hasside{padding:0}}
.kpis .bad b{color:#B3261E}
.msg{background:#fff;border:1px solid #E6E3DC;border-radius:14px;padding:10px 12px;max-width:92%;align-self:flex-start;display:flex;flex-direction:column;gap:4px}
.msg.mine{align-self:flex-end;background:#F3E6DC;border-color:#E7CDB9}
html[data-theme="dark"] .msg{background:#26231F;border-color:#3A3631}html[data-theme="dark"] .msg.mine{background:#3A2A20;border-color:#5A3F2C}
.chatbar{position:fixed;left:0;right:0;bottom:0;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #E6E3DC;max-width:560px;margin:0 auto;z-index:20}
html[data-theme="dark"] .chatbar{background:#1D1B18;border-color:#3A3631}
@media (min-width:1024px){.chatbar{max-width:900px;right:300px;left:0}}

/* Чек-листы «про» */
.warnbox { background: #fff6e0; border: 1px solid #f0c36a; border-radius: 12px; padding: 12px; display: grid; gap: 4px; color: #4a3500; }
.task.bad, .mi.bad { border-color: #d64545; background: #fff0f0; }
.stamp { font-size: 12px; color: var(--muted, #6b7280); }
.jtag { display: inline-block; font-size: 12px; background: #e8f0ff; color: #1f3d8a; border-radius: 8px; padding: 2px 8px; width: fit-content; }
.numrow { align-items: center; gap: 8px; }
.numin { max-width: 140px; font-size: 20px; }
.unit { font-size: 18px; }
button.bad { background: #d64545; color: #fff; }
.logrow { font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(128,128,128,.2); }
@media (prefers-color-scheme: dark) { .warnbox { background: #3a2f12; color: #ffe9b0; border-color: #7a5d16; } .task.bad, .mi.bad { background: #3a1a1a; } .jtag { background: #1d2a4d; color: #bcd0ff; } }

/* Формы */
.person.bad { border-left: 4px solid #d64545; }
.bar { position: relative; padding: 4px 8px; border-radius: 8px; background: rgba(128,128,128,.12); overflow: hidden; margin-top: 4px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(176,74,26,.28); }
.bar span { position: relative; }
.optrow { align-items: center; gap: 6px; flex-wrap: wrap; }
.ptsin { max-width: 90px; }

.dcap{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#CDB8A6;padding:14px 12px 4px}
.mi svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mi .chev,.mi svg:last-child{color:#5C574F}
.mi .pill{margin-left:auto}

/* Чат как в мессенджере */
.chav{width:46px;height:46px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex:none;line-height:1}
.chav.sp{background:transparent!important;width:32px}
.chlist{display:flex;flex-direction:column}
.chrow{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid #EEEAE2;text-decoration:none;color:inherit;background:none;border-radius:0;text-align:left;width:100%;min-height:64px}
.chmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.chmid b{display:flex;align-items:center;gap:6px}
.chlast{color:#6F6A60;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.chend{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px}
.chtag{font-size:11px;background:#EFE9DF;color:#6F6A60;border-radius:8px;padding:1px 6px;font-weight:500}
.chfeed{display:flex;flex-direction:column;gap:2px;padding:6px 0 130px}
.chday{text-align:center;margin:10px 0 6px}.chday span{background:#E8E3D9;color:#5C574D;font-size:12px;border-radius:12px;padding:3px 10px}
.chline{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.chline.mine{justify-content:flex-end}
.bub{background:#fff;border:1px solid #E6E3DC;border-radius:16px 16px 16px 4px;padding:7px 10px 5px;max-width:82%;display:flex;flex-direction:column;gap:3px;cursor:pointer;min-width:60px}
.bub.mine{background:#F3E1D2;border-color:#E7CDB9;border-radius:16px 16px 4px 16px}
.chwho{font-size:13px}
.chtext{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.35}
.chmeta{display:flex;gap:6px;justify-content:flex-end;font-size:11px;color:#8A8478}
.chquote{border-left:3px solid #C0562B;background:rgba(0,0,0,.05);border-radius:6px;padding:3px 8px;display:flex;flex-direction:column;font-size:13px}
.chquote span{color:#6F6A60;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chimg{display:block;max-width:100%;max-height:340px;border-radius:10px;object-fit:cover}
.chreacts{display:flex;flex-wrap:wrap;gap:4px}
.chr{background:#F4F0E8;border:1px solid #E0DACE;color:inherit;border-radius:14px;padding:2px 8px;font-size:14px;min-height:28px}
.chr.on{background:#F3D9C4;border-color:#C0562B}
.chpoll{display:flex;flex-direction:column;gap:6px;min-width:230px}
.popt{position:relative;display:flex;justify-content:space-between;gap:8px;text-align:left;background:#F7F4EE;color:inherit;border:1px solid #E0DACE;border-radius:10px;padding:9px 10px;overflow:hidden;min-height:40px;font-weight:400}
.popt.on{border-color:#C0562B}
.popt .pfill{position:absolute;left:0;top:0;bottom:0;background:rgba(192,86,43,.18);z-index:0}
.popt .ptxt,.popt .pn{position:relative;z-index:1}
.chpin{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:5;background:#FBF8F2;border-bottom:1px solid #E6E3DC;padding:6px 10px;cursor:pointer}
.chpin svg{width:22px;height:22px;stroke:#C0562B;fill:none;stroke-width:2;flex:none}
.chpin .tx{display:flex;flex-direction:column;min-width:0}.chpin .tx span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6F6A60;font-size:14px}
.chatbar2{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #E6E3DC;max-width:560px;margin:0 auto;z-index:20;padding-bottom:env(safe-area-inset-bottom)}
.chbarrow{display:flex;align-items:flex-end;gap:4px;padding:6px 8px}
.chbarrow textarea{flex:1;min-height:44px;max-height:120px;border-radius:22px;padding:10px 14px;resize:none}
.chbarrow .ib{min-width:48px}
.chbarrow .sendb .ibi{background:#C0562B;border-radius:50%;color:#fff}.chbarrow .sendb .ibi svg{stroke:#fff}
.chreply{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border-bottom:1px solid #EEEAE2;background:#FBF8F2}
.chreply>div{display:flex;flex-direction:column;min-width:0;border-left:3px solid #C0562B;padding-left:8px}.chreply span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6F6A60;font-size:14px}
.chemoji{max-height:230px;overflow:auto;padding:6px 10px;border-bottom:1px solid #EEEAE2}
.emcat{font-size:12px;color:#8A8478;margin:6px 0 2px}.emgrid{display:flex;flex-wrap:wrap;gap:2px}
.em{background:none;border:0;font-size:24px;min-width:44px;min-height:44px;padding:0;color:inherit}
.em.big{font-size:28px}
.qrow{display:flex;justify-content:space-around;padding:4px 0}
.ghostrow{background:none;color:inherit;border:0;text-align:left;width:100%}
.dangerrow b{color:#B3261E}
.chro{text-align:center;color:#6F6A60;padding:12px;font-size:14px}
@media (min-width:1024px){.chatbar2{max-width:900px;right:300px;left:0}}
html[data-theme="dark"] .bub{background:#26231F;border-color:#3A3631}
html[data-theme="dark"] .bub.mine{background:#4A3322;border-color:#6A4A32}
html[data-theme="dark"] .chatbar2,html[data-theme="dark"] .chreply,html[data-theme="dark"] .chpin{background:#1D1B18;border-color:#3A3631}
html[data-theme="dark"] .chrow{border-color:#2E2B27}
html[data-theme="dark"] .popt,html[data-theme="dark"] .chr{background:#2A2723;border-color:#3A3631}
html[data-theme="dark"] .chday span,html[data-theme="dark"] .chtag{background:#2E2B27;color:#B8B2A6}
.chpin[hidden],.chreply[hidden],.chemoji[hidden],.chatbar2[hidden]{display:none!important}

/* ===== Чат: вид как в Telegram ===== */
body.tgbg{background:#DCE5EC}
body.tgbg #top{background:#fff;border-bottom:1px solid #DADCE0;padding:0}
body.tgbg #top .top-row,body.tgbg #top .sub,body.tgbg #top h1{display:none}
.tgtop{display:flex;align-items:center;gap:4px;padding:6px 8px;min-height:56px}
.tgback{background:none;border:0;color:#707579;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;padding:0;min-width:44px}
.tgback svg{width:24px;height:24px;stroke:#707579;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tgwho{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;padding:2px 4px;text-align:left;color:inherit;min-height:48px;justify-content:flex-start}
.tgtitle{display:flex;flex-direction:column;min-width:0}.tgtitle b{font-size:16px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#000}.tgtitle span{font-size:13px;color:#707579;line-height:1.2}
body.tgbg #screen{padding-left:8px;padding-right:8px}
.chav{width:54px;height:54px;font-size:20px;font-weight:600}
.tgtop .chav{width:40px;height:40px;font-size:15px}
.chrow{padding:9px 8px;gap:12px;min-height:72px;border-bottom:0;border-radius:12px}.chrow:hover{background:#F1F3F4}
.chmid b{font-size:16px;font-weight:600}.chlast{font-size:15px;color:#707579}
.chend .badge{background:#3390EC;color:#fff;min-width:22px;height:22px;border-radius:11px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.chend .muted{font-size:13px;color:#A0ACB6}
.chfeed{padding:4px 0 96px;gap:2px}
.chday{margin:8px 0 6px}.chday span{background:rgba(0,0,0,.28);color:#fff;font-size:13px;font-weight:500;padding:3px 11px;border-radius:14px}
.bub{background:#fff;border:0;border-radius:12px 12px 12px 4px;padding:6px 9px 6px;max-width:80%;box-shadow:0 1px 1px rgba(16,35,47,.14);position:relative;gap:2px}
.bub.mine{background:#EEFFDE;border:0;border-radius:12px 12px 4px 12px}
.chtext{font-size:16px;line-height:1.3;color:#000}
.chwho{font-size:14px;font-weight:600}
.chmeta{font-size:12px;color:#A0ACB6;align-self:flex-end;margin-top:-2px}
.bub.mine .chmeta{color:#5DC452}.chck{letter-spacing:-3px;font-size:12px}
.chquote{border-left:2px solid #3390EC;background:rgba(51,144,236,.1);border-radius:4px 8px 8px 4px;padding:3px 8px}.chquote b{color:#3390EC;font-size:14px}.chquote span{color:#000;font-size:14px}
.bub.mine .chquote{background:rgba(93,196,82,.18);border-color:#5DC452}.bub.mine .chquote b{color:#3C9A33}
.chimg{border-radius:8px;max-height:360px}
.chr{background:rgba(51,144,236,.12);border:0;color:#2A74C5;min-height:26px;padding:1px 8px;font-size:14px;border-radius:13px}.chr.on{background:#3390EC;color:#fff}
.bub.mine .chr{background:rgba(93,196,82,.2);color:#3C9A33}.bub.mine .chr.on{background:#5DC452;color:#fff}
.popt{border:0;background:rgba(51,144,236,.1)}.popt.on{background:rgba(51,144,236,.18)}.popt .pfill{background:rgba(51,144,236,.28)}
.chpin{background:#fff;border-bottom:1px solid #DADCE0}.chpin svg{stroke:#3390EC}
/* Строка ввода как в Telegram: одна «таблетка» со смайликом и скрепкой внутри, круглая кнопка справа */
.chatbar2.tgbar{background:transparent;border:0;padding:0 8px calc(8px + env(safe-area-inset-bottom))}
.tgrow{display:flex;align-items:flex-end;gap:8px}
.tgfield{flex:1;min-width:0;display:flex;align-items:flex-end;background:#fff;border-radius:24px;box-shadow:0 1px 2px rgba(16,35,47,.15);padding:0 4px}
.tgfield textarea{flex:1;min-width:0;border:0;outline:0;background:transparent;box-shadow:none;font-size:17px;line-height:1.3;padding:13px 2px;min-height:50px;max-height:140px;resize:none;border-radius:0;color:#000}
.tgi{background:none;border:0;padding:0;width:44px;height:50px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;color:#707579}
.tgi svg,.tgsend svg{width:24px;height:24px;stroke:#707579;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tgsend{flex:none;width:50px;height:50px;min-width:50px;border-radius:50%;padding:0;background:#fff;border:0;box-shadow:0 1px 2px rgba(16,35,47,.15);display:inline-flex;align-items:center;justify-content:center}
.tgsend.has{background:#3390EC}.tgsend.has svg{stroke:#fff}
.tgbar .chreply,.tgbar .chemoji{background:#fff;border-radius:14px;margin-bottom:6px;border:0;box-shadow:0 1px 2px rgba(16,35,47,.15)}
.chemoji{max-height:240px}
@media (min-width:1024px){.chatbar2.tgbar{max-width:860px;right:300px}}
html[data-theme="dark"] body.tgbg{background:#0E1621}
html[data-theme="dark"] body.tgbg #top,html[data-theme="dark"] .tgfield,html[data-theme="dark"] .tgsend,html[data-theme="dark"] .bub,html[data-theme="dark"] .chpin,html[data-theme="dark"] .tgbar .chreply,html[data-theme="dark"] .tgbar .chemoji{background:#17212B;border-color:#0E1621}
html[data-theme="dark"] .bub.mine{background:#2B5278}
html[data-theme="dark"] .tgtitle b,html[data-theme="dark"] .chtext,html[data-theme="dark"] .tgfield textarea,html[data-theme="dark"] .chquote span{color:#F5F5F5}
html[data-theme="dark"] .chrow:hover{background:#202B36}
body.tgbg,body.tgbg[data-bg],html body.tgbg{background:#DCE5EC!important}
html[data-theme="dark"] body.tgbg{background:#0E1621!important}
.tgi,.tgback,.tgwho,.chr,.popt,.chrow,.em,.tgtop button{box-shadow:none!important;transform:none}
.tgsend{box-shadow:0 1px 2px rgba(16,35,47,.2)!important;transform:none}
.tgsend:active{transform:scale(.96)}
.tgi:active,.tgback:active{background:rgba(0,0,0,.06)}
.chpin{padding:4px 12px;min-height:44px;border-radius:0}.chpin .tx b{font-size:13px;color:#3390EC;font-weight:600}.chpin .tx span{font-size:14px;color:#000}
.chpin svg{width:20px;height:20px}
.tgwho .chav{box-shadow:none}
body.tgbg .shell{background:#DCE5EC!important}html[data-theme="dark"] body.tgbg .shell{background:#0E1621!important}
.tgsend{background:#fff}.tgsend svg{stroke:#3390EC}
.tgsend:not(.has){opacity:.75}
.tgsend.has{opacity:1;background:#3390EC}.tgsend.has svg{stroke:#fff}

/* Документ в сообщении чата */
.chfile{display:flex;align-items:center;gap:10px;min-width:200px;max-width:100%;padding:8px 10px;margin:2px 0;border-radius:10px;background:rgba(0,0,0,.06);color:inherit;text-decoration:none}
.chfile svg{flex:none;width:28px;height:28px}
.chfile .tx{display:flex;flex-direction:column;min-width:0}
.chfile .tx b{overflow-wrap:anywhere;font-weight:600}
.chfile .tx span{font-size:12px;opacity:.7}

/* ---- Новая главная: «Моя смена», «Сейчас нужно» ---- */
.shiftcard{border-radius:20px;padding:16px;gap:12px}
.shiftrow{display:flex;gap:16px;align-items:center}
.ring{position:relative;width:132px;height:132px;flex:none}
.ring .rt{stroke:#EADFD3}.ring .rf{stroke:var(--accent,#A94A17)}
.ring .rtx{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 14px}
.ring .rtx b{font-size:22px;font-family:Rubik,Inter,sans-serif;line-height:1.1}.ring .rtx span{font-size:12px;color:#5C564D;line-height:1.2}
.shifttx{display:flex;flex-direction:column;gap:3px;align-items:flex-start;min-width:0}
.shifttx .cap{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent,#A94A17)}
.shifthrs{font-size:20px;font-family:Rubik,Inter,sans-serif}
.bigbtn{min-height:60px;border-radius:18px;font-size:18px;font-weight:800;width:100%}
.shiftlink{align-self:center;font-weight:600;padding:6px 10px}
.nowcard .nowrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #EEE9E0}
.nowcard .nowrow>svg{width:26px;height:26px;color:var(--accent,#A94A17);flex:none}
.nowcard .nowrow .tx{display:flex;flex-direction:column;flex:1;min-width:0}.nowcard .nowrow .tx span{font-size:13px}
.nowcard .nowrow button{min-height:48px;min-width:96px}
.allgood{display:flex;align-items:center;gap:10px;color:#1F5E22;font-weight:600}.allgood svg{width:26px;height:26px}
html[data-theme="dark"] .ring .rt{stroke:#3A362F}html[data-theme="dark"] .ring .rf{stroke:#F0A574}
html[data-theme="dark"] .ring .rtx span,html[data-theme="dark"] .nowcard .nowrow .tx span.muted{color:#B9B3A8}
html[data-theme="dark"] .nowcard .nowrow{border-top-color:#3A362F}html[data-theme="dark"] .allgood{color:#8FD694}
/* нижняя панель (только телефон) */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:14;display:flex;justify-content:center;background:#fff;border-top:1px solid #E6E3DC;padding-bottom:env(safe-area-inset-bottom)}
.bnav>div{display:flex;width:100%;max-width:560px}
.bnav a,.bnav button{flex:1;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;font-weight:500;color:#6B655B;background:transparent;border:0;border-radius:0;padding:0;text-decoration:none;position:relative}
.bnav svg{width:26px;height:26px}.bnav .on{color:var(--accent,#A94A17);font-weight:700}
.bnav .pill{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;border-radius:9px;background:#B3261E;color:#fff;font-size:11px;font-style:normal;display:flex;align-items:center;justify-content:center;padding:0 4px}
body.hasbnav .screen{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
body.hasbnav .fabwrap{bottom:calc(80px + env(safe-area-inset-bottom))}
html[data-theme="dark"] .bnav{background:#1E1C19;border-top-color:#3A362F}html[data-theme="dark"] .bnav a,html[data-theme="dark"] .bnav button{color:#A39D92}html[data-theme="dark"] .bnav .on{color:#F0A574}
@media (min-width:1024px){.bnav{display:none}}
.tape{display:flex;flex-direction:column;gap:10px}
.tseg{display:flex;gap:4px}.tseg span{flex:1;height:6px;border-radius:3px;background:#E4DDD2}.tseg .d{background:#2E9A5B}.tseg .c{background:var(--accent,#A94A17)}
.tape.on~.task{border-radius:22px;padding:18px}.tape.on~.task .tx b{font-size:20px;line-height:1.25}
.tbtns button{min-height:56px;border-radius:16px;flex:1}.tbtns .tgo{flex:2;font-size:18px;font-weight:800}
.tapehint{text-align:center;font-size:13px;color:#7A746A}
html[data-theme="dark"] .tseg span{background:#3A362F}html[data-theme="dark"] .tapehint{color:#B9B3A8}
[hidden]{display:none!important}
.qact{display:flex;gap:8px}.qact .btn{flex:1;min-height:52px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:15px;padding:0 8px}
.light{flex-direction:row;align-items:center;gap:12px;text-decoration:none;color:inherit}.light .tx{display:flex;flex-direction:column;flex:1;min-width:0}
.dot{width:18px;height:18px;border-radius:50%;flex:none}.dot.g{background:#2E7D32;box-shadow:0 0 0 5px #DDF2DD}.dot.y{background:#C77A00;box-shadow:0 0 0 5px #FFF0C9}.dot.r{background:#B3261E;box-shadow:0 0 0 5px #FDE7E4}
.nowrow.attn{text-decoration:none;color:inherit}
html[data-theme="dark"] .dot.g{box-shadow:0 0 0 5px #1E3A22}html[data-theme="dark"] .dot.y{box-shadow:0 0 0 5px #3A2C0E}html[data-theme="dark"] .dot.r{box-shadow:0 0 0 5px #3A1A1A}
.nowrow svg,.allgood svg,.light svg,.bnav svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.light>svg:last-child{width:22px;height:22px;color:#5C564D}.nowrow.attn>svg:last-child{width:22px;height:22px;color:#5C564D}
.qact .btn:not(.ghost){background:var(--accent,#A94A17);color:#fff;border:0}
.light .tx b{font-size:16px}
.nowrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #EEE9E0}
.nowrow>svg:first-child{width:26px;height:26px;color:var(--accent,#A94A17)}
.nowrow .tx{display:flex;flex-direction:column;flex:1;min-width:0}.nowrow .tx span{font-size:13px}
.qact .btn,.light,.nowrow.attn{text-decoration:none}
html[data-theme="dark"] .nowrow{border-top-color:#3A362F}
.shiftlink{color:var(--accent,#A94A17);text-decoration:none}html[data-theme="dark"] .shiftlink{color:#F0A574}
.chip.on{background:var(--accent,#A94A17);color:#fff;border-color:var(--accent,#A94A17)}
.chip{min-width:52px;min-height:48px;justify-content:center}
.schedbar{display:flex;align-items:center;gap:8px;width:100%;color:var(--accent,#A94A17);font-weight:600;background:#fff;border:0;border-radius:0;min-height:44px;padding:0 14px;text-align:left}
.schedbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
html[data-theme="dark"] .schedbar{background:#23211E;color:#F0A574}
/* Обучение по программе */
.guide{display:flex;flex-direction:column;gap:10px}.guide .cap{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent,#A94A17)}
.guideh{margin:0;font-size:24px;line-height:1.2}.guideh3{margin:10px 0 0;font-size:18px}.guidep{margin:0;line-height:1.5;font-size:16px}
.guidesteps{margin:0;padding-left:0;list-style:none;counter-reset:st;display:flex;flex-direction:column;gap:10px}
.guidesteps li{counter-increment:st;position:relative;padding-left:44px;line-height:1.5;font-size:16px;min-height:32px}
.guidesteps li::before{content:counter(st);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:var(--accent,#A94A17);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px}
.guidetip{display:flex;gap:10px;align-items:flex-start;background:#FFF6DD;border-radius:14px;padding:12px 14px;line-height:1.45}.guidetip svg{width:24px;height:24px;flex:none;fill:none;stroke:#7A5500;stroke-width:2}
html[data-theme="dark"] .guidetip{background:#3A2C0E}html[data-theme="dark"] .guidetip svg{stroke:#F0C26E}
.guide + a.btn{margin-top:14px}
/* Обучение: красочные карточки и схемы экранов */
.ghero{border-radius:18px;padding:16px 18px;color:#fff;display:flex;flex-direction:column;gap:6px;background:linear-gradient(135deg,#D9722B,#A94A17)}
.ghero.g2{background:linear-gradient(135deg,#2F8F6B,#1B6B4D)}.ghero.g3{background:linear-gradient(135deg,#5B6BD6,#3B3F9E)}
.ghero b{font-size:20px}.ghero p,.ghero span{margin:0;line-height:1.45}.ghero .cap,.ghero .guideh{color:#fff}.ghero .cap{opacity:.9}
.gprog{display:flex;flex-direction:column;gap:6px;margin:12px 0}.gprog .gtxt{font-weight:600;font-size:14px}.gbar{height:10px;border-radius:6px;background:rgba(128,128,128,.25);overflow:hidden}.gbar i{display:block;height:100%;background:#2F8F6B;border-radius:6px}
.gcard .gic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#FBE5D3;flex:none}.gcard .gic svg{width:22px;height:22px;fill:none;stroke:#A94A17;stroke-width:2}
.gcard.g2 .gic{background:#D8F0E5}.gcard.g2 .gic svg{stroke:#1B6B4D}.gcard.g3 .gic{background:#E0E3FA}.gcard.g3 .gic svg{stroke:#3B3F9E}
.gdone{color:#1B6B4D;font-weight:700;font-size:13px;white-space:nowrap}
.guidesteps li>span{display:block;margin-bottom:8px}
.phoneart{margin:8px 0 4px;max-width:320px;border:3px solid #2b2b2b;border-radius:22px;background:#fff;color:#222;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.15)}
.phoneart .f-top{background:#F4EEE8;padding:8px 12px;font-weight:700;font-size:14px;text-align:center}
.phoneart .f-body{padding:10px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.phoneart b{font-weight:700}.phoneart span{color:#666}
.phoneart svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.f-btn{background:#A94A17;color:#fff;border-radius:12px;padding:11px;text-align:center;font-weight:700}.f-btn.ghost{background:#fff;color:#A94A17;border:2px solid #A94A17}
.f-row,.f-chk,.f-light,.f-field,.f-note,.f-comp,.f-back,.f-swipe{background:#F7F3EE;border-radius:12px;padding:10px;display:flex;gap:10px;align-items:center}
.f-row>div,.f-chk>div,.f-light>div{display:flex;flex-direction:column;flex:1}.f-row .ic{width:30px;height:30px;border-radius:9px;background:#FBE5D3;color:#A94A17;display:flex;align-items:center;justify-content:center}
.f-chk .box{width:22px;height:22px;border:2px solid #A94A17;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.f-chk .box.ok{background:#2F8F6B;border-color:#2F8F6B}
.f-field{flex-direction:column;align-items:flex-start;gap:2px}.f-note{white-space:pre-line;align-items:flex-start}
.f-ring{display:flex;justify-content:center;padding:6px}.f-ring .disc{width:120px;height:120px;border-radius:50%;border:10px solid #E7B98F;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.f-ring .disc b{font-size:18px}.f-ring .disc span{font-size:12px}
.f-nav{display:flex;justify-content:space-between;background:#F4EEE8;border-radius:12px;padding:8px 6px;font-size:11px}.f-nav i{font-style:normal;padding:4px 6px;border-radius:8px;color:#666}.f-nav i.cur{background:#A94A17;color:#fff;font-weight:700}
.f-msg{background:#EEE;border-radius:14px;padding:8px 12px;align-self:flex-start;max-width:80%}.f-msg.mine{background:#FBE5D3;align-self:flex-end}
.f-light .dot{width:16px;height:16px;border-radius:50%;flex:none}.dot.g{background:#2F8F6B}.dot.y{background:#E8B02A}.dot.r{background:#D64545}
.f-chips{display:flex;flex-wrap:wrap;gap:6px}.f-chips i{font-style:normal;background:#EFE6DC;border-radius:16px;padding:6px 12px;font-weight:600}.f-chips.big i{background:#A94A17;color:#fff}
.f-comp{background:#fff;border:1px solid #ddd}.f-comp span{flex:1;color:#888}.f-comp em{width:30px;height:30px;border-radius:50%;background:#A94A17;color:#fff;display:flex;align-items:center;justify-content:center}
.f-fabrow{display:flex;justify-content:flex-end}.f-fab{background:#A94A17;color:#fff;border-radius:24px;padding:10px 16px;font-weight:700}
.f-back{background:none;padding:2px 0;color:#A94A17;font-weight:700}.f-swipe{justify-content:center;gap:12px}
.phoneart .ph{color:#A94A17}
.phoneart .hl{display:flex;flex-direction:column;gap:4px}
.phoneart .on{outline:3px solid #E8B02A;outline-offset:2px;animation:gpulse 1.6s ease-in-out infinite}
.phoneart .hint{display:flex;gap:6px;align-items:center;background:#FFF2C7;color:#5E4300;border-radius:10px;padding:6px 10px;font-weight:700;font-size:13px}.phoneart .hint span{color:#5E4300}.phoneart .arr{font-size:18px}
@keyframes gpulse{0%,100%{outline-color:#E8B02A}50%{outline-color:rgba(232,176,42,.25)}}
@media (prefers-reduced-motion:reduce){.phoneart .on{animation:none}}
html[data-theme="dark"] .phoneart{border-color:#555}
