/* Zeitkonto — стиль «тёмное стекло» (по макетам design/) */
:root {
  --text: #fff;
  --muted: rgba(255,255,255,.58);
  --glass: rgba(255,255,255,.065);
  --glass-line: rgba(255,255,255,.11);
  --chip: rgba(255,255,255,.08);
  --plus: #6EE7A0;
  --dot-plus: #4ADE80;
  --dot-minus: #F87171;
  --dot-pending: #FACC15;
  --danger: #FCA5A5;
  --ink: #111214;
  --radius: 28px;
  --font: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.4,.5,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--text); font-size: 15px;
  background: #131416 radial-gradient(130% 55% at 50% 0%, #4a4c53 0%, #232428 48%, #131416 100%) fixed;
  min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }

.g { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.ic { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; flex: none; border: 0; background: none; padding: 0; }
.ic-btn { width: 42px; height: 42px; color: #fff; position: relative; }
.ic svg { display: block; }
.ic.g { background: var(--glass); border: 1px solid var(--glass-line); }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; border: 0; }
.btn-w { background: #fff; color: var(--ink); }
.btn-w.has-plus { padding-left: 6px; }
.btn-d { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.13); }
.btn-danger { color: var(--danger); }
.btn-w .plus { width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.btn-lg { height: 54px; font-size: 16px; width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.label { cursor: default; padding: 0 16px; }
@media (max-width: 399px) { .btn.label { font-size: 14px; padding: 0 13px; } .btn-w.has-plus { padding-right: 18px; } }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns.fill > * { flex: 1; }

/* нажатие и наведение: только transform и opacity */
.btn, .ic-btn, .chips button, .week button, .cal .d, .tabbar a, a.card, a.tile, .row[data-act], a.row, .seg button, .mini, .link-btn {
  transition: transform .18s var(--ease), color .3s var(--ease), opacity .2s var(--ease);
}
.btn:not(:disabled):active, .ic-btn:active, .chips button:active, .week button:active, .cal .d:not(:disabled):active,
.tabbar a:active, a.card:active, a.tile:active, .mini:active, .seg button:active, .link-btn:active { transform: scale(.97); }
.row[data-act]:active, a.row:active { transform: scale(.99); }
.btn::after, .ic-btn::after, a.card::after, a.tile::after, .link-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.btn-w::after { background: #000; }
@media (hover: hover) {
  .btn:not(:disabled):hover::after, .ic-btn:hover::after, a.card:hover::after, a.tile:hover::after, .link-btn:hover::after { opacity: .06; }
  .row[data-act]:hover, a.row:hover { opacity: .85; }
}

/* ---------- Каркас ---------- */
.app { min-height: 100vh; }
.main { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.page { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mv { display: flex; flex-direction: column; flex: 1; }
.hero { padding: max(60px, env(safe-area-inset-top)) 22px 24px; display: flex; flex-direction: column; gap: 22px; }
.hero.no-top { padding-top: max(72px, env(safe-area-inset-top)); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar.left { justify-content: flex-start; }
.title-sm { font-weight: 600; font-size: 16px; }
.bigv { display: flex; flex-direction: column; gap: 4px; }
.big-label { font-size: 15px; color: var(--muted); }
.big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big .num { font-size: 72px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big .unit { font-size: 24px; font-weight: 500; color: var(--muted); }
.sub { font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar > i { display: block; height: 100%; background: #fff; border-radius: 6px; transform-origin: left center; }

.card { position: relative; border-radius: 24px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .k { font-size: 14px; color: var(--muted); }
.card .v { font-size: 19px; font-weight: 600; padding-top: 2px; }
.card .side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.stack { display: flex; }
.stack .ic { width: 42px; height: 42px; background: #3a3b40; border: 2px solid #2a2b2f; font-weight: 600; position: relative; }
.stack .ic + .ic { margin-left: -10px; }
.stack .ic.light { background: #fff; color: var(--ink); }
.stack .ic .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 999px; border: 2.5px solid #2a2b2f; }

.sheet { flex: 1; margin: 0 10px; border-radius: 30px 30px 0 0; border-bottom: 0; padding: 14px 18px 120px; }
.sheet-head { display: flex; justify-content: center; align-items: center; height: 36px; margin-bottom: 6px; font-weight: 600; font-size: 16px; position: relative; }
.sheet-head .end { position: absolute; right: 0; top: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 0; font-size: 14px; }

/* ---------- Строки ---------- */
.row { display: flex; align-items: center; gap: 14px; padding: 9px 0; width: 100%; text-align: left; background: none; border: 0; color: #fff; }
.av { width: 46px; height: 46px; border-radius: 999px; position: relative; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.av.light { background: #fff; color: var(--ink); }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 999px; border: 2.5px solid #26272b; }
.row .mid { flex: 1; min-width: 0; }
.row .t1 { display: block; font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t1.wrap { white-space: normal; font-size: 15px; }
.row .t2 { font-size: 13px; color: var(--muted); }
.row .val { font-weight: 600; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plus-c { color: var(--plus); }
.minus-c { color: var(--dot-minus); }
.dot-plus { background: var(--dot-plus); } .dot-minus { background: var(--dot-minus); } .dot-pending { background: var(--dot-pending); }
.st { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 500; white-space: nowrap; }
.st.plain { background: none; padding: 0; gap: 6px; }
.st i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; position: relative; flex: none; }
.link-danger { background: none; border: 0; padding: 0; color: var(--dot-minus); font-weight: 500; font-size: 13px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--dot-pending); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.section-label { font-size: 13px; font-weight: 500; color: var(--muted); padding: 14px 0 4px; }
.req { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.req .who { display: flex; align-items: center; gap: 14px; }
.req .who b { display: block; font-weight: 500; font-size: 16px; }
.req .range { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.req .btns button { height: 44px; font-size: 14px; }
/* «Точно?»: вторая кнопка плавно схлопывается, нажатая растягивается на всю ширину */
.req .btns.fill { gap: 0; }
.req .btns.fill .btn { flex: 1 1 0; min-width: 0; overflow: hidden; margin: 0 4px;
  transition: flex-grow .42s var(--ease), margin .42s var(--ease), padding .42s var(--ease), opacity .25s var(--ease), border-color .3s var(--ease), transform .18s var(--ease); }
.req .btns.fill .btn:first-child { margin-left: 0; } .req .btns.fill .btn:last-child { margin-right: 0; }
.req .btns.fill .btn.gone { flex-grow: .0001; margin: 0; padding: 0; opacity: 0; border-color: transparent; pointer-events: none; }
.req .btn .lbl { display: inline-block; }
.req .btn-d.ask { color: var(--danger); border-color: rgba(252,165,165,.35); }
/* окно печати заявления */
.pr-card { display: flex; flex-direction: column; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 6px 16px; }
.pr-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; font-size: 14px; }
.pr-row + .pr-row { border-top: 1px solid rgba(255,255,255,.07); }
.pr-row span { color: var(--muted); }
.pr-row b { font-weight: 600; text-align: right; }
.pr-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: -6px; }
.modal.print .btn svg { flex: none; }
.modal.print .btn.done { border-color: rgba(110,231,160,.45); }
.modal.print .btn-w.done { background: #fff; }
/* кнопка «распечатать» у подтверждённых в недавних решениях: появляется при наведении */
.has-print { position: relative; }
.print-btn { width: 32px; height: 32px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); margin-left: auto; flex: none;
  opacity: 0; transform: translateX(6px) scale(.9); transition: opacity .25s var(--ease), transform .3s var(--ease), background-color .25s var(--ease); }
.has-print:hover .print-btn, .print-btn:focus-visible { opacity: 1; transform: none; }
.print-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.dec .print-btn { margin-right: 4px; }
.row.has-print .print-btn { margin-right: 4px; }
@media (hover: none) { .print-btn { opacity: 1; transform: none; } }

/* Жёлтая точка «Ожидание» мягко пульсирует */
.dot-pending::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--dot-pending); animation: pulse 2s var(--ease) infinite; pointer-events: none; }
.av .dot.dot-pending::after, .stack .dot.dot-pending::after { inset: -2.5px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Нижнее меню (телефон) ---------- */
.tabbar { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(28,29,33,.72); z-index: 20; }
.tabbar a { width: 66px; height: 50px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.tabbar a.on { color: var(--ink); }
.tabbar a .badge { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; font-size: 11px; }
.pill { position: absolute; top: 6px; left: 6px; width: 66px; height: 50px; border-radius: 999px; background: #fff; z-index: 0; transition: transform .5s var(--ease); will-change: transform; }
.pill.no-anim { transition: none; }
.sidebar { display: none; }

/* ---------- Календарь ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; gap: 8px; }
.cal-head .ic-btn { width: 36px; height: 36px; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-nav .ic-btn { width: 34px; height: 34px; }
.cal-nav span { font-weight: 500; font-size: 14px; padding: 0 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal .wd { font-size: 12px; color: var(--muted); padding-bottom: 2px; }
/* Выделение: одна белая капсула на каждую неделю. Её края плавно перетекают к нужным дням
   (clip-path со скруглением — радиус не искажается). Цифры поверх капсулы в режиме difference:
   на белом они сами становятся тёмными ровно там, где под ними капсула, без рывков цвета. */
.cal { position: relative; isolation: isolate; }
.cal .band { position: absolute; left: 0; right: 0; height: 40px; background: #fff; pointer-events: none; z-index: 0;
  clip-path: inset(20px 100% 20px 0 round 20px); opacity: 0;
  transition: clip-path .46s cubic-bezier(.22,.9,.24,1), opacity .3s var(--ease); will-change: clip-path; }
.cal .band.on { opacity: 1; }
.cal .band:not(.on) { transition: clip-path .46s cubic-bezier(.22,.9,.24,1), opacity .18s var(--ease) .3s; } /* сначала стягивается, потом гаснет */
.cal .d { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 999px; font-size: 15px; font-weight: 500; border: 0; background: none; color: #fff; padding: 0; mix-blend-mode: difference; }
.cal .d.off { color: rgba(255,255,255,.4); }
/* Календарь шефа: цветные капсулы отпусков. Подтверждённые — сплошные,
   ожидающие ответа — полосатые полупрозрачные, чтобы сразу отличались. */
.cal.tc .d { mix-blend-mode: normal; cursor: default; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.cal .seg { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; background: var(--c);
  clip-path: inset(20px 100% 20px 0 round 20px);
  transition: clip-path .5s cubic-bezier(.22,.9,.24,1), top .38s var(--ease), height .38s var(--ease), opacity .3s var(--ease); }
/* капсулы отпусков — SVG-фигуры: во всю высоту, а в дни пересечений делятся на дорожки с плавными переходами */
.cal .tsvg { position: absolute; left: 0; z-index: 0; pointer-events: none; overflow: visible; display: block;
  transition: clip-path .5s cubic-bezier(.22,.9,.24,1), opacity .3s var(--ease); }
.cal .tsvg path { transition: d .48s cubic-bezier(.22,.9,.24,1); }
.cal .tsvg.out { opacity: 0; transition: clip-path .46s cubic-bezier(.22,.9,.24,1), opacity .18s var(--ease) .3s; }
/* несколько месяцев сразу */
.tc-months.one { width: 100%; max-width: 760px; margin: 0 auto; }
/* месяцы ровной сеткой по центру блока: лишние колонки схлопываются (auto-fit), ширина месяца до 300px */
.tc-months.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: center; gap: 22px 34px; }
.tcm-title { font-weight: 600; font-size: 14px; padding: 0 4px 8px; }
.cal.tc.sm { gap: 4px 2px; }
.cal.tc.sm .wd { font-size: 10px; padding-bottom: 0; }
.cal.tc.sm .d { width: 30px; height: 30px; font-size: 12px; }
.tc-head { flex-wrap: wrap; gap: 10px; }
.tc-mode { display: inline-flex; }
.seg.tc-mode .thumb { left: 0; width: var(--w, 25%); transform: translateX(var(--x, 0)); transition: transform .45s var(--ease), width .45s var(--ease); }
.tc-mode button { flex: 1 0 auto; padding: 0 12px; }
@media (max-width: 899px) { .tc-head { flex-direction: column; align-items: stretch; } .tc-head .tc-mode { width: 100%; } .tc-head .cal-nav { justify-content: space-between; } }
.cal .seg.h { z-index: 1; background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.cal .seg.out { opacity: 0; transition: clip-path .46s cubic-bezier(.22,.9,.24,1), opacity .18s var(--ease) .3s; }
.tcal { display: flex; flex-direction: column; gap: 12px; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
/* телефон: кнопки сотрудников — стеклянная панель над нижним меню, две строки, лишнее прокручивается вбок */
.tc-dock { position: fixed; left: 10px; right: 10px; bottom: calc(max(26px, env(safe-area-inset-bottom)) + 72px); z-index: 19;
  border-radius: 24px; padding: 8px 0; background: rgba(28,29,33,.78); }
.tc-rows { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); }
.tc-rows::-webkit-scrollbar { display: none; }
.tc-rows .r { display: flex; gap: 6px; width: max-content; }
.tc-rows .r:empty { display: none; }
.tc-dock .tchip { height: 36px; flex: none; }
.nav-in .tc-dock { animation: dockIn .5s var(--ease) both; animation-delay: .1s; }
@keyframes dockIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet.tc-sheet { padding-bottom: 230px; }
.tchip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.72); font-weight: 600; font-size: 13px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .3s var(--ease), transform .18s var(--ease); }
.tchip i { width: 10px; height: 10px; border-radius: 999px; background: var(--c); flex: none; transition: transform .4s var(--spring); }
.tchip.p i { background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px #fff; }
.tchip.on { background: color-mix(in srgb, var(--c) 24%, transparent); border-color: color-mix(in srgb, var(--c) 75%, transparent); color: #fff; }
.tchip.on i { transform: scale(1.3); }
.tchip:active { transform: scale(.95); }
@media (hover: hover) { .tchip:not(.on):hover { color: #fff; border-color: rgba(255,255,255,.22); } }
.tc-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.tc-info:empty { display: none; }
.tc-info span { display: flex; align-items: center; gap: 8px; animation: rowIn .35s var(--ease) both; }
.tc-info i { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.tc-info b { color: #fff; font-weight: 600; }
.sheet .tcal { padding-top: 4px; }
@media (min-width: 900px) { .tc-panel { padding: 22px 24px; } }
.cal .d.today { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.cal .d:disabled { opacity: .3; cursor: default; }
.legend { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.legend i { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.14); flex: none; }
.ft { display: flex; gap: 10px; padding-top: 8px; }
.ft > div { flex: 1; border-radius: 18px; background: rgba(255,255,255,.06); padding: 10px 14px; }
.ft small { display: block; font-size: 12px; color: var(--muted); }
.ft b { font-weight: 600; font-size: 15px; }
/* Ручной ввод дат заявки («С» / «По») */
.ft.rin { padding-top: 2px; }
.ft.rin > label { flex: 1; min-width: 0; display: block; border-radius: 18px; background: rgba(255,255,255,.06); padding: 10px 14px; border: 1px solid transparent; cursor: text; transition: border-color .2s, background .2s; }
.ft.rin > label:focus-within { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }
.ft.rin > label.bad { border-color: rgba(252,165,165,.7); }
.ft.rin small { display: block; font-size: 12px; color: var(--muted); }
.ft.rin input { display: block; width: 100%; padding: 0; margin: 2px 0 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.ft.rin input::placeholder { color: rgba(255,255,255,.3); font-weight: 500; }
.rin-err { font-size: 12px; color: #FCA5A5; padding: 0 4px; margin-top: -4px; }
.rin-err:empty { display: none; }
.will { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 2px; }
.calbox { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.calbox .grow { flex: 1; }

/* ---------- Окна ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8,8,10,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 30px 30px 0 0; padding: 22px 18px calc(26px + env(safe-area-inset-bottom)); background: rgba(38,39,43,.92); border: 1px solid var(--glass-line); border-bottom: 0; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); display: flex; flex-direction: column; gap: 18px; }
.modal h2 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal .x { width: 40px; height: 40px; background: rgba(255,255,255,.08); border: 0; }
.modal .btns.fill .btn { height: 52px; }

/* Окно «Добавить часы»: на телефоне — шторка во весь экран, как m05 */
.modal.entry { gap: 0; padding: 0; }
.em-top { display: flex; flex-direction: column; gap: 30px; padding: 22px 22px 30px; }
.em-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.em-head .sp { width: 42px; flex: none; }
.em-title { text-align: center; font-size: 13px; color: var(--muted); margin-top: -18px; }
.em-sheet { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px calc(30px + env(safe-area-inset-bottom)); }
.seg { position: relative; display: flex; padding: 4px; border-radius: 999px; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform .45s var(--ease); }
.seg.minus .thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; flex: 1; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.62); font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg button.on { color: var(--ink); }
.seg.locked button { cursor: default; }
.seg.locked button:not(.on) { opacity: .4; }
.seg.locked button:active { transform: none; }
/* выбор дней протягиванием: без прокрутки и выделения текста во время жеста */
.calbox .cal { touch-action: none; user-select: none; -webkit-user-select: none; }
.calbox .cal .d { cursor: pointer; }
.calbox.dragging .cal .d { cursor: grabbing; }
.cal-grid { overflow: hidden; }
.stepper { display: flex; justify-content: space-between; align-items: center; }
.stepper .ic-btn { width: 54px; height: 54px; }
.stepper .val { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper .big { gap: 6px; justify-content: center; }
.stepper .roll { display: inline-block; overflow: hidden; padding: 4px 0; margin: -4px 0; }
.stepper .num { display: inline-block; font-size: 68px; }
.stepper .unit { font-size: 22px; }
.date-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.other-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; position: relative; cursor: pointer; color: rgba(255,255,255,.62); white-space: nowrap; }
.other-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.week-row { display: flex; align-items: center; gap: 4px; }
.week-row > .ic { width: 18px; height: 42px; color: var(--muted); }
.week .dn { --s: clamp(34px, calc((100vw - 108px) / 7), 42px); }
.week { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 2px; }
.week button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 0; }
.week .wdn { font-size: 12px; color: var(--muted); }
.week .dn { position: relative; z-index: 0; width: var(--s, 42px); height: var(--s, 42px); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); transition: color .3s var(--ease); }
.week .dn::before, .chips button::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: #fff; opacity: 0; z-index: -1; transform: scale(.85); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.week button.on .dn { color: var(--ink); }
.week button.on .dn::before, .chips button.on::before { opacity: 1; transform: none; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chips button { position: relative; z-index: 0; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: #fff; font-weight: 600; font-size: 15px; }
.chips button.on { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 20px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); }
.input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 16px; font-weight: 500; height: 100%; }
.input input[type=date] { color-scheme: dark; }
/* числовое поле: прячем стандартные стрелки браузера, вместо них — свои круглые кнопки */
.input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.input input[type=number]::-webkit-inner-spin-button, .input input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num-step { display: flex; gap: 6px; flex: none; }
.num-step button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; touch-action: manipulation;
  transition: transform .18s var(--ease), background-color .25s var(--ease); }
.num-step button:hover { background: rgba(255,255,255,.16); }
.num-step button:active { transform: scale(.9); }
.input .mini { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); padding-left: 4px; }
.err { color: var(--danger); font-size: 13px; padding-left: 4px; }

/* ---------- Вход ---------- */
.login { min-height: 100vh; position: relative; overflow: hidden; padding: 230px 20px 40px; }
.login .ghost { top: 150px; font-size: 132px; }
.login .ghost .long { display: none; }
.ghost { position: absolute; left: 0; right: 0; text-align: center; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: #fff; white-space: nowrap; pointer-events: none; user-select: none; }
.login-wrap { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 420px; margin: 0 auto; }
.login-box { position: relative; border-radius: 30px; padding: 30px 24px 26px; display: flex; flex-direction: column; gap: 22px; }
.login-box .head { display: flex; flex-direction: column; gap: 6px; }
.login-box .tag { display: none; }
.login-box h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.login-box label { margin-bottom: -12px; }
.login-box .input { padding: 0 14px 0 22px; }
.login-box .input input { font-size: 18px; font-weight: 600; letter-spacing: .2em; }
.login-box .input .ic { width: 32px; height: 32px; color: var(--muted); }
.divider { height: 1px; background: rgba(255,255,255,.1); }
.login .note { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Меню профиля, уведомления ---------- */
.menu { position: absolute; top: 108px; left: 22px; z-index: 30; border-radius: 22px; padding: 6px; min-width: 230px; background: rgba(38,39,43,.95); transform-origin: top left; animation: menuIn .28s var(--ease) both; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border-radius: 16px; border: 0; background: none; color: #fff; font-weight: 500; text-align: left; }
.menu button:hover { background: var(--chip); }
@keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; top: 20px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 90vw; text-align: center;
  transform: translate(-50%, calc(-100% - 30px)); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .35s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: #FCA5A5; }
.toast { border-radius: 22px; line-height: 1.35; }

/* ---------- Скелетон ---------- */
.sk { position: relative; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.07); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); transform: translateX(-100%); animation: shimmer 1.5s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-page { display: flex; flex-direction: column; gap: 18px; padding: max(60px, env(safe-area-inset-top)) 22px 24px; flex: 1; }
.sk-l { height: 14px; width: 40%; }
.sk-big { height: 64px; width: 62%; border-radius: 18px; }
.sk-btn { height: 48px; width: 46%; border-radius: 999px; }
.sk-row { display: flex; align-items: center; gap: 14px; }
.sk-av { width: 46px; height: 46px; border-radius: 999px; flex: none; }
.sk-row .sk-l { flex: 1; }
.sk-rows { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.sk-full { min-height: 100vh; max-width: 560px; margin: 0 auto; display: flex; }

/* ---------- Таблица шефа ---------- */
.minibar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; min-width: 80px; }
.minibar i { display: block; height: 100%; border-radius: 6px; background: #fff; transform-origin: left center; }
.btn.label::after { display: none; }

/* ---------- Анимации появления (только transform и opacity) ---------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Фоновое слово: без transform/opacity, иначе Chrome выносит его в отдельный слой и стекло перестаёт его размывать */
@keyframes ghostIn { from { color: rgba(255,255,255,0); letter-spacing: -0.02em; } to { color: #fff; letter-spacing: -0.05em; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.nav-in .page { animation: pageIn .45s var(--ease) both; }
.nav-in .card, .nav-in .tile, .nav-in .panel { animation: cardIn .5s var(--ease) both; animation-delay: .06s; }
/* Стекло над фоновым словом. Если у карточки или у её родителя анимируется opacity,
   Chrome перестаёт размывать слово под ней, и оно видно резким поверх карточек.
   Поэтому здесь: у карточки и страницы — только transform, а проявляется содержимое внутри карточки. */
@keyframes scaleIn { from { transform: scale(.98); } to { transform: none; } }
@keyframes pageUp { from { transform: translateY(8px); } to { transform: none; } }
@keyframes sheetUp { from { transform: translateY(26px); } to { transform: none; } }
.nav-in .stage .tile, .nav-in .stage .panel, .nav-in .stage .req.boxed, .nav-in .login-box { animation: scaleIn .55s var(--ease) both; animation-delay: .06s; }
.nav-in .stage .tile > *, .nav-in .stage .panel > *, .nav-in .stage .req.boxed > *, .nav-in .login-box > * { animation: fadeIn .45s var(--ease) both; animation-delay: .1s; }
.nav-in .list > * { animation: rowIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 140ms); }
.nav-in .ghost { animation: ghostIn .9s var(--ease) both; }
.nav-in .bar > i, .nav-in .minibar i { animation: grow .7s var(--ease) both; animation-delay: .28s; }

/* ---------- ПК ---------- */
@media (min-width: 900px) {
  .mobile-only, .tabbar { display: none !important; }
  /* на ПК под страницей есть фоновое слово — страница только сдвигается, шапка проявляется */
  .nav-in .page { animation-name: pageUp; }
  /* Пока стеклянные блоки въезжают (transform), Chrome рисует их отдельным слоем без размытия,
     и фоновое слово было видно резким поверх них. Поэтому слово проявляется, когда блоки уже на месте. */
  .nav-in .stage > .ghost { animation: ghostIn .6s var(--ease) both; animation-delay: .1s; }
  .nav-in .ph { animation: fadeIn .45s var(--ease) both; }
  .app { display: flex; gap: 16px; padding: 16px; align-items: stretch; min-height: 100vh; }
  body { background-image: radial-gradient(90% 65% at 50% 0%, #4a4c53 0%, #232428 50%, #131416 100%); }
  .sidebar { display: flex; flex-direction: column; gap: 4px; width: 250px; flex: none; border-radius: var(--radius); padding: 22px 14px; position: sticky; top: 16px; height: calc(100vh - 32px); z-index: 2; }
  .sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 26px; font-weight: 600; font-size: 18px; }
  .sidebar .brand .ic { width: 40px; height: 40px; background: #fff; color: var(--ink); }
  .sidebar .navs { position: relative; display: flex; flex-direction: column; gap: 4px; }
  .sidebar .pill { top: 0; left: 0; right: 0; width: auto; height: 48px; }
  .sidebar a.nv { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 999px; color: rgba(255,255,255,.62); font-weight: 500; transition: color .3s var(--ease); }
  .sidebar a.nv span { flex: 1; }
  .sidebar a.nv.on { color: var(--ink); font-weight: 600; }
  @media (hover: hover) { .sidebar a.nv:not(.on):hover { color: #fff; } }
  .sidebar .spacer { flex: 1; min-height: 24px; }
  .sidebar .me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
  .sidebar .me .av { width: 40px; height: 40px; font-size: 15px; background: rgba(255,255,255,.12); }
  .sidebar .me .av.light { background: #fff; }
  .sidebar .me .who { flex: 1; min-width: 0; }
  .sidebar .me b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar .me small { display: block; color: var(--muted); font-size: 12px; }
  .sidebar .me .ic-btn { width: 36px; height: 36px; color: rgba(255,255,255,.6); }
  .sidebar .side-actions { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
  .sidebar .side-actions button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: rgba(255,255,255,.62); font-size: 13px; font-weight: 500; text-align: left; transition: color .25s var(--ease); }
  .sidebar .side-actions button:hover { color: #fff; }

  .main { max-width: none; flex: 1; min-width: 0; margin: 0; overflow-x: clip; }
  .page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 10px 18px 8px; gap: 20px; }
  .page.with-aside { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 16px; align-items: start; padding-right: 0; }
  .page.with-aside > .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

  /* шапка страницы */
  .ph { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
  .ph .h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
  .ph .h1.sm { font-size: 1.75rem; }
  .ph .ph-sub { font-size: 15px; color: var(--muted); padding-top: 4px; }
  .ph .who { display: flex; align-items: center; gap: 14px; }
  .ph .who .ic-btn { width: 46px; height: 46px; }
  .ph .who .av { width: 52px; height: 52px; font-size: 20px; }
  .ph .who .ph-sub { font-size: 14px; padding-top: 0; }

  /* фоновое слово позади стеклянных карточек */
  .stage { --gh: clamp(120px, 11.5vw, 192px); position: relative; padding-top: calc(var(--gh) * .5); }
  .stage > .ghost { top: 0; font-size: var(--gh); z-index: 0; }
  .stage > :not(.ghost) { position: relative; z-index: 1; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .tiles.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
  .tile { position: relative; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); padding: 26px; min-width: 0; }
  .tile.main-tile { gap: 6px; padding: 26px 26px 24px; }
  .tile .k { font-size: 15px; color: var(--muted); }
  .tile .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .tile .big .num { font-size: 5rem; }
  .tile .big.md .num { font-size: 3rem; }
  .tile .big.md .unit { font-size: 18px; font-weight: 400; }
  .tile .big .unit { font-size: 24px; }
  .tile .sub { padding-top: 2px; }
  .tile.main-tile .sub { padding-top: 8px; }
  .tile.stat { border-radius: 24px; padding: 20px; gap: 0; }
  .tile.stat .k { font-size: 14px; }
  .tile.stat .v { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tiles.emp .tile.stat .v { font-size: 2.6rem; }
  .tile.stat .v small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .tile.stat .v .pd { width: 10px; height: 10px; border-radius: 999px; position: relative; align-self: center; }
  .tile.stat .head .ic { width: 30px; height: 30px; background: rgba(255,255,255,.1); color: #fff; }
  .tile.stat .head + .v { padding-top: 2px; }
  /* обзор шефа: плитка «Переработка» шире — в ней две строки пояснений */
  .tiles.four.adm { grid-template-columns: minmax(270px, 2.1fr) minmax(110px, .9fr) minmax(150px, 1.25fr) minmax(110px, .9fr); }
  .tile.ot .head .k { white-space: nowrap; }
  .tile.stat .head { align-items: flex-start; }
  .tile.ot .tday { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; text-align: right; }
  .tile.ot .tday b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .tile.ot .tday small { font-size: 11px; color: var(--muted); }
  .tile.stat .sub .tr-up, .tile.stat .sub .tr-down { color: #fff; font-weight: 600; }
  .tile.stat .sub + .sub { padding-top: 2px; }
  .tile.stat .sub { padding-top: 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* панели со списками */
  .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; position: relative; z-index: 1; }
  .cols.vac { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .cols > .stackc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .panel { position: relative; border-radius: var(--radius); padding: 18px 22px 10px; min-width: 0; }
  .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 4px; font-weight: 600; font-size: 17px; min-height: 30px; }
  .panel-head .ic-btn { width: 34px; height: 34px; }
  .panel .row { padding: 8px 0; }
  .panel .av { width: 44px; height: 44px; font-size: 15px; }
  .panel .row .t1 { font-size: 15px; }
  .panel .row .val { font-size: 16px; }
  .panel .empty { padding: 22px 0 28px; }
  .panel.calp { padding: 22px; display: flex; flex-direction: column; }
  .panel.calp .panel-head { padding-bottom: 6px; }
  .panel.calp .cal { padding-top: 6px; }
  .panel.calp .cal .d { font-size: 14px; }
  .panel.calp .btn-lg { height: 52px; font-size: 15px; }

  /* таблица сотрудников */
  .panel.tbl { padding: 10px 12px; overflow-x: auto; }
  .tbl table { width: 100%; border-collapse: collapse; }
  .tbl th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 10px 12px; }
  .tbl td { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; white-space: nowrap; }
  .tbl .nm { display: flex; align-items: center; gap: 12px; font-weight: 600; }
  .tbl .nm .av { width: 38px; height: 38px; font-size: 14px; }
  .tbl .nm .av .dot { width: 10px; height: 10px; border-width: 2px; }
  .tbl .cellbar { display: flex; align-items: center; gap: 10px; }
  .tbl .cellbar .m { font-size: 12px; color: var(--muted); width: 96px; }
  .tbl .cellbar b { font-size: 13px; font-weight: 600; width: 44px; }
  .tbl .open { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255,255,255,.62); transition: color .25s var(--ease); }
  .tbl tr:hover .open { color: #fff; }
  .tbl td.bal { font-weight: 600; font-variant-numeric: tabular-nums; }

  /* панель заявок справа (d04) */
  .aside { border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
  .aside .panel-head { justify-content: flex-start; padding-bottom: 6px; }
  .req.boxed { padding: 14px; border-radius: 22px; background: rgba(255,255,255,.05); border: 0; gap: 10px; margin-bottom: 8px; }
  .req.boxed .who { gap: 12px; }
  .req.boxed .av { width: 40px; height: 40px; font-size: 15px; }
  .req.boxed .who b { font-weight: 600; font-size: 15px; }
  .req.boxed .t2 { font-size: 12px; }
  .req.boxed .range { font-size: 17px; }
  .req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .req-grid .req.boxed { margin: 0; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: 24px; padding: 18px; }
  .dec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; }
  .dec b { display: block; font-weight: 600; font-size: 14px; }
  .dec small { font-size: 12px; color: var(--muted); }
  .aside .section-label { font-size: 12px; padding: 8px 2px 4px; }

  /* окна */
  .modal-bg { align-items: center; background: rgba(10,10,12,.45); }
  .modal { border-radius: 32px; max-width: 480px; padding: 30px 30px 28px; border-bottom: 1px solid var(--glass-line); }
  .modal.entry { max-width: 500px; padding: 0; }
  .em-top { padding: 26px 26px 18px; gap: 26px; }
  .em-title { margin-top: -12px; }
  .em-sheet { padding: 8px 26px 26px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
  .menu { top: auto; bottom: 90px; left: 30px; }

  /* вход */
  .login { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
  .login .ghost { top: 22%; font-size: clamp(120px, 14vw, 13rem); }
  .login .ghost .short { display: none; }
  .login .ghost .long { display: inline; }
  .login-wrap { width: 100%; }
  .login-box { border-radius: 32px; padding: 36px 32px 30px; }
  .login-box .tag { display: inline; }
  .login-box h1 { font-size: 34px; }
  .login-box .input { height: 56px; }

  .sk-full { max-width: none; padding: 16px; }
  .sk-page { padding: 34px 26px; max-width: 1200px; }
}
@media (max-width: 899px) {
  /* Телефон (особенно Safari на iPhone): прозрачность на стеклянных блоках и их родителях
     ломает размытие и даёт мерцание. Поэтому стекло только въезжает (transform),
     а проявляется его содержимое; шапка раздела проявляется целиком. */
  /* Верхняя панель (со стеклянными кнопками) и стеклянный лист не анимируются вообще:
     они одинаковые во всех разделах и стоят на месте, меняется только содержимое. */
  /* Вход: шапка поднимается и проявляется лесенкой, лист поднимается с того места, куда ушёл старый,
     его содержимое проявляется. У стекла — только transform. */
  .nav-in .page { animation: none; }
  .nav-in .mv > .hero > *:not(.card):not(.topbar) { animation: heroIn .5s var(--ease) both; }
  .nav-in .mv > .hero > *:nth-child(2) { animation-delay: .04s; }
  .nav-in .mv > .hero > *:nth-child(3) { animation-delay: .08s; }
  .nav-in .mv > .hero > *:nth-child(n+4) { animation-delay: .12s; }
  .nav-in .mv > .hero > .card { animation: cardUp .55s var(--ease) both; animation-delay: .1s; }
  .nav-in .mv > .hero > .card > * { animation: fadeIn .45s var(--ease) both; animation-delay: .16s; }
  .nav-in .mv > .sheet { animation: sheetIn .6s var(--ease) both; animation-delay: .04s; }
  .nav-in .mv > .sheet > * { animation: heroIn .5s var(--ease) both; animation-delay: .14s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes cardUp { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
  @keyframes sheetIn { from { transform: translateY(34px); } to { transform: none; } }
  /* Фон: background-attachment: fixed в Safari на iPhone не работает и перерисовывается при смене раздела.
     Вместо него — неподвижный слой под страницей. */
  body { background: #131416; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(130% 55% at 50% 0%, #4a4c53 0%, #232428 48%, #131416 100%); transform: translateZ(0); }
  .desktop-only { display: none !important; }
  .main .ghost { display: none; }
  .modal.entry { max-height: 100vh; height: 100%; border-radius: 0; background: rgba(24,25,28,.9); border: 0; }
  .modal.entry .em-top { padding-top: max(60px, env(safe-area-inset-top)); }
  .modal.entry .em-sheet { flex: 1; margin: 0 10px; border-radius: 30px 30px 0 0; background: var(--glass); border: 1px solid var(--glass-line); border-bottom: 0; }
  .modal.entry .em-sheet .grow { flex: 1; }
  .modal-bg.entry-bg { background: rgba(8,8,10,.6); }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .dot-pending::after, .sk::after { display: none; }
}

/* ---------- Azubi: Kommen / Gehen, неделя, вкладки Mitarbeiter / Azubi ---------- */
.wk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wk-nav { display: inline-flex; align-items: center; gap: 4px; }
.wk-nav .ic { width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wk-nav .ic:disabled { opacity: .3; cursor: default; }
.wk-nav .wk-t { padding: 0 8px; font-weight: 600; white-space: nowrap; }
.wk-sum { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.row .val.muted, .row.future { color: var(--muted); }
.row.future .t1 { color: var(--muted); }
.kind-seg { display: inline-flex; width: 280px; max-width: 100%; }
.kind-bar { margin: 18px 0 12px; }
.form-seg { width: 100%; }
.btn.clock { gap: 8px; min-width: 150px; }
.btn.clock.out { border: 1px solid rgba(255,255,255,.28); }.sheet-head.wk-head { height: auto; min-height: 36px; justify-content: space-between; font-size: 15px; }

/* Большая 3D-кнопка Kommen / Gehen: корпус (кольцо) + нажимаемая шляпка */
.clock-big { position: relative; display: block; width: 264px; height: 264px; margin: 18px auto 0; padding: 15px; border-radius: 50%; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 28%, #3b3c41 0%, #232427 55%, #141517 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.14), inset 0 -10px 18px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.06), 0 34px 70px rgba(0,0,0,.5);
  animation: cbIn .7s cubic-bezier(.34,1.4,.64,1) both; }
.cb-cap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; border-radius: 50%;
  color: #111; background: radial-gradient(circle at 50% 18%, #ffffff 0%, #f4f4f2 40%, #dcdcd8 100%);
  box-shadow: 0 10px 0 #9e9e9a, 0 12px 3px rgba(0,0,0,.35), 0 26px 34px rgba(0,0,0,.4), inset 0 2px 2px #fff, inset 0 -10px 18px rgba(0,0,0,.07);
  transform: translateY(-7px);
  transition: transform .55s cubic-bezier(.34,1.7,.5,1), box-shadow .55s cubic-bezier(.34,1.7,.5,1), background .6s ease, color .6s ease; }
.clock-big.down .cb-cap { transform: translateY(3px) scale(.985); transition-duration: .08s; transition-timing-function: ease-out;
  box-shadow: 0 0 0 #9e9e9a, 0 1px 2px rgba(0,0,0,.4), 0 4px 8px rgba(0,0,0,.25), inset 0 2px 2px #fff, inset 0 -5px 12px rgba(0,0,0,.12); }
/* Учёт идёт: тёмная шляпка с зелёным свечением */
.clock-big.on .cb-cap { color: #fff; background: radial-gradient(circle at 50% 18%, #55575d 0%, #303136 45%, #1f2023 100%);
  box-shadow: 0 10px 0 #0b0c0d, 0 12px 3px rgba(0,0,0,.5), 0 26px 34px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.22), inset 0 0 0 1.5px rgba(61,220,132,.5), inset 0 -10px 18px rgba(0,0,0,.35);
  animation: cbGlow 2.8s ease-in-out infinite; }
.clock-big.on.down .cb-cap { box-shadow: 0 0 0 #0b0c0d, 0 1px 2px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.22), inset 0 0 0 1.5px rgba(61,220,132,.6), inset 0 -5px 12px rgba(0,0,0,.4); }
/* Волны вокруг кнопки (только transform и opacity — плавно и на iPhone) */
.clock-big .ring { position: absolute; inset: 4px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(61,220,132,.75), 0 0 24px 4px rgba(61,220,132,.35), inset 0 0 24px rgba(61,220,132,.25); }
.clock-big.on .ring { animation: cbWave 3s cubic-bezier(.2,.65,.3,1) infinite; }
.clock-big.on .r2 { animation-delay: 1.5s; }
.cb-time { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cb-time small { font-size: .42em; font-weight: 500; letter-spacing: 0; opacity: .55; margin-left: 2px; }
.cb-label { font-size: 21px; font-weight: 700; }
.cb-sub { font-size: 11.5px; opacity: .6; max-width: 76%; text-align: center; line-height: 1.3; }
.cb-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
.cb-tile { align-items: center; justify-content: center; }
.cb-tile .clock-big { width: 236px; height: 236px; margin-top: 4px; padding: 13px; }
.cb-tile .cb-time { font-size: 48px; }
@keyframes cbIn { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cbWave { 0% { opacity: 0; transform: scale(.96); } 15% { opacity: .9; } 100% { opacity: 0; transform: scale(1.32); } }
@keyframes cbGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
/* Пульсация нужна и при «Уменьшить движение» на телефоне — она мягкая, поэтому оставляем её */
@media (prefers-reduced-motion: reduce) {
  .clock-big.on .ring { animation-duration: 3s !important; animation-iteration-count: infinite !important; }
  .clock-big.on .r2 { animation-delay: 1.5s !important; }
  .clock-big.on .cb-cap { animation-duration: 2.8s !important; animation-iteration-count: infinite !important; }
  .cb-cap { transition-duration: .4s !important; }
  .clock-big.down .cb-cap { transition-duration: .08s !important; }
}
/* Свой календарь в формах шефа + отступ у значков времени */
.dp-wrap { position: relative; }
.dp-btn { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 52px; padding: 0 18px 0 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.dp-btn svg { opacity: .7; }
.dp { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 14px; border-radius: 20px; background: rgba(32,33,36,.97); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-head b { font-size: 15px; }
.dp-head .ic { width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-grid span { font-size: 11px; color: var(--muted); padding: 4px 0; }
.dp-grid button { height: 38px; border-radius: 999px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.dp-grid button:hover { background: rgba(255,255,255,.1); }
.dp-grid button:active { transform: scale(.92); }
.dp-grid button.tdy { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.dp-grid button.on { background: #fff; color: var(--ink); font-weight: 700; }
.input input[type=time] { color-scheme: dark; padding-right: 18px; }
.input input[type=time]::-webkit-calendar-picker-indicator { margin-right: 4px; opacity: .7; cursor: pointer; }
/* PDF-Export: выбор периода и карточки «Monatsbericht» */
.rp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.rp-nav .ic { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.rp-nav .ic:active { transform: scale(.92); }
.rp-nav .ic:disabled { opacity: .25; cursor: default; }
.rp-label { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.btn [data-rgo], .btns [data-rgo] { gap: 8px; }
.req.rep .rep-ic { background: #fff; color: var(--ink); }
.rep-list + .list { margin-top: 10px; }