/* Моя смена 2.0 — экраны сотрудника (телефон, одна колонка). Основа — /start.css. */
.staff{max-width:560px;margin:0 auto;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
body[data-screen=login] .staff,body[data-screen=pending] .staff{padding-bottom:0}
.pad{padding:0 20px}
.center{text-align:center}
.grow{flex:1;min-width:0}

/* Вход: красный «знак СТАРТ» со скруглённым низом */
.hero{background:var(--red);color:var(--paper);min-height:300px;position:relative;padding:22px 24px 70px;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:6px}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:48px;background:var(--cream);border-radius:48px 48px 0 0}
.hero .alfa{margin:-6px 0 0 -10px}
.hero-text{display:flex;flex-direction:column;gap:12px}
.hero .cap{color:var(--paper)}
.hero h1{font-weight:800;font-size:clamp(34px,11vw,46px);line-height:1;letter-spacing:-1px}
.hero.small{min-height:220px}.hero.small h1{font-size:32px}
.lead{font-size:17px;line-height:1.45;margin:4px 0 6px}
.tip{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;color:var(--blue)}
.tip p{margin:0;font-size:13px;color:var(--soft)}
.staff .foot{align-items:flex-end}
.wait{display:flex;gap:6px;justify-content:center;margin-bottom:14px}
.wait span{width:12px;height:12px;border-radius:50%;background:var(--red);animation:pulse 1.2s infinite}
.wait span:nth-child(2){animation-delay:.2s}.wait span:nth-child(3){animation-delay:.4s}
@keyframes pulse{0%,100%{opacity:.25}50%{opacity:1}}
.result{text-align:center;padding:28px 20px}
.result h2{font-size:22px;margin-bottom:8px}

/* Шапка экрана */
.top{display:flex;align-items:center;gap:12px;padding:20px 20px 0;padding-top:calc(20px + env(safe-area-inset-top))}
.top .grow strong{display:block;font-size:16px}
.top .grow span{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-me{border:0;background:none;padding:0;border-radius:50%;min-height:0}
.today-head{display:flex;flex-direction:column;gap:6px;padding:22px 0 4px}
.today-head h1{font-size:24px}

/* Главная кнопка и табло */
.stadium-wrap{padding:6px 30px}
.tablo{margin-top:16px;gap:14px}
.tablo-row{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.tablo-row > div:first-child{display:flex;flex-direction:column;gap:4px}
.tablo .big-n{font-size:50px}
.tablo-side{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:13px;color:#cfcabf}
.track{position:relative;height:22px;display:flex;flex-direction:column;justify-content:space-between}
.track i{display:block;height:3px;background:#4a4740;border-radius:2px}
.track i.fill{background:var(--red)}
.track b{position:absolute;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px var(--ink)}
.tablo-scale{display:flex;justify-content:space-between;font-family:var(--display);font-size:10.5px;letter-spacing:1.5px;color:#cfcabf}
.lane-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:14px 16px;display:flex;align-items:center;gap:14px}
.lane-card strong{display:block;font-size:15px}
.lane-card .grow > span{display:block;font-size:13px;color:var(--soft)}
.lane-card.warn{border-color:var(--yellow);background:#fbf3d9}
.lane-card.bday{border-color:var(--red);color:var(--red)}
.lane-card.bday strong{color:var(--ink)}
.ava-row{display:flex}.ava-row .ava{margin-left:-8px;box-shadow:0 0 0 2px var(--paper)}

/* Отметка */
.flow-head{display:flex;justify-content:space-between;align-items:center;padding:14px 12px 8px;padding-top:calc(14px + env(safe-area-inset-top))}
.icon-btn{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--ink);background:none;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}
.icon-btn.light{border-color:var(--line)}
.flow h1{font-size:24px;margin:0 0 10px}
.step{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line2)}
.step strong{font-size:15px;margin-right:4px}
.step p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.step.done .lane-n{color:var(--green)}
.step.warn .lane-n{color:#b28b1d}
.cam{position:relative;overflow:hidden;aspect-ratio:1;background:#1b1a17;margin:12px 0;border-radius:14px}
.cam video{display:block;width:100%;height:100%;object-fit:cover}
.cam .frame{position:absolute;inset:16% 17% 20%}
.cam .frame i{position:absolute;width:30px;height:30px;border:4px solid var(--yellow)}
.cam .frame i:nth-child(1){left:0;top:0;border-right:0;border-bottom:0;border-radius:10px 0 0 0}
.cam .frame i:nth-child(2){right:0;top:0;border-left:0;border-bottom:0;border-radius:0 10px 0 0}
.cam .frame i:nth-child(3){left:0;bottom:0;border-right:0;border-top:0;border-radius:0 0 0 10px}
.cam .frame i:nth-child(4){right:0;bottom:0;border-left:0;border-top:0;border-radius:0 0 10px 0}
.cam > span{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#fff;font-size:13px}
.done-screen{min-height:100vh;background:var(--red);color:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 24px;text-align:center}
.done-screen.review{background:var(--solid-bg)}
.done-mark{width:96px;height:96px;border-radius:50%;border:4px solid var(--paper);display:grid;place-items:center;font-size:50px;font-weight:700;box-shadow:0 0 0 8px var(--red),0 0 0 11px #fffefa88,0 0 0 18px var(--red),0 0 0 21px #fffefa44;margin-bottom:14px}
.done-screen.review .done-mark{box-shadow:0 0 0 8px var(--solid),0 0 0 11px #edcf7688;border-color:var(--yellow);color:var(--yellow)}
.done-screen .cap{color:var(--paper)}
.done-time{font-family:var(--display);font-weight:600;font-size:64px;letter-spacing:2px;line-height:1;color:var(--yellow)}
.done-screen h2{font-size:22px}
.done-screen p{max-width:340px;opacity:.95}
.done-screen .lanes{width:100%;max-width:340px;margin:8px 0}
.done-slogan{font-size:13px;opacity:.85;margin-bottom:12px}
.btn.light{border-color:var(--paper);color:var(--paper);max-width:340px}
.btn.light:hover{background:#fff2}
body[data-screen=flow] .staff{padding-bottom:0}

/* График */
.month-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 0 12px}
.month-bar h1{font-size:22px;text-transform:capitalize}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--line2);border-radius:999px;padding:4px;margin-bottom:14px}
.seg button{border:0;background:none;border-radius:999px;font-weight:600;font-size:14px;color:var(--soft);min-height:40px}
.seg button[aria-selected=true]{background:var(--solid);color:var(--paper)}
.tablo-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.tablo-mini > div{background:var(--dk-bg);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;color:var(--dk-cap);font-size:12px}
.tablo-mini .big-n{font-family:var(--display);font-weight:600;font-size:30px;color:var(--dk-num);line-height:1.1}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-w{font-family:var(--display);font-size:9.5px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);text-align:center;padding:4px 0}
.cal-d{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0 8px;min-height:62px;border:1px solid var(--line2);background:var(--paper);border-radius:8px;color:var(--ink)}
.cal-d:disabled{cursor:default;opacity:1}
.cal-d .n{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cal-d.past{background:transparent}
.cal-d.past .code{opacity:.55}
.cal-d.today{border:2px solid var(--red)}
.cal-d.today .n{color:var(--red);font-weight:700}
.cal-d.late .n::after,.cal-d.absent .n::after,.cal-d.done .n::after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;margin-left:3px;vertical-align:middle;background:var(--green)}
.cal-d.late .n::after{background:#d0a92c}.cal-d.absent .n::after{background:var(--red)}
.cal-d.done .code{opacity:1}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0 4px;font-size:12px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend .code{width:20px;height:20px;font-size:10px}
.sheet{margin-top:14px}
.swaps{margin-bottom:14px;border-color:var(--yellow);background:#fdf8e9}
.swap{padding:12px 0;border-bottom:1px solid var(--line2);display:flex;flex-direction:column;gap:4px}
.swap:last-of-type{border-bottom:0}
.swap > span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:var(--soft)}
.swap .code{width:22px;height:22px;font-size:11px}
.swap .row{margin-top:6px}
.tgrid-wrap{overflow-x:auto;margin:0 -20px;padding:0 20px;-webkit-overflow-scrolling:touch}
.tgrid{border-collapse:separate;border-spacing:0;font-size:12px}
.tgrid th,.tgrid td{padding:3px 2px;text-align:center;border-bottom:1px solid var(--line2)}
.tgrid thead th{font-weight:600;font-size:11px;color:var(--soft);min-width:30px;padding-bottom:6px;font-variant-numeric:tabular-nums}
.tgrid thead th span{display:block;font-size:9px;font-weight:400;color:var(--muted);text-transform:uppercase}
.tgrid .we{background:#ece6d9}
.tgrid .today{background:#fde2df}
.tgrid thead th.today{color:var(--red)}
.tgrid .who{position:sticky;left:0;z-index:1;background:var(--cream);text-align:left;min-width:112px;max-width:112px;padding-right:8px}
.tgrid tbody .who{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13px;border-bottom:1px solid var(--line2);height:38px}
.tgrid tbody .who small{display:block;font-weight:400;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:66px}
.tgrid tr.me .who{color:var(--red-d)}
.tgrid tr.unit .who{font-family:var(--display);font-size:9.5px;letter-spacing:1.5px;text-transform:uppercase;color:var(--red-d);font-weight:400;height:auto;padding:12px 0 4px;border:0}
.tgrid tr.unit td{border:0;background:none}
.tgrid .code{width:24px;height:24px;font-size:11px}
.tgrid .ava.sm{width:26px;height:26px;font-size:11px}

/* Кто сегодня работает */
.dept{margin-top:22px}
.dept-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.dept-head h2{flex:1}
.unit-cap{display:block;margin:14px 0 8px}
.faces{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:16px 8px}
.face{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;font-size:12px;color:var(--soft);position:relative}
.face .ava{margin-bottom:6px;box-shadow:0 0 0 3px var(--cream),0 0 0 5px var(--line)}
.face.on .ava{box-shadow:0 0 0 3px var(--cream),0 0 0 5px var(--green)}
.face strong{font-size:14px;color:var(--ink)}
.face .role{font-size:11px;color:var(--muted)}
.face .here{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--green)}

/* Обучение */
.progress-line{height:6px;background:var(--line2);border-radius:3px;overflow:hidden;margin:10px 0 6px}
.progress-line span{display:block;height:100%;background:var(--red)}
.lessons li{padding:0}
.lessons button{display:flex;align-items:center;gap:14px;width:100%;border:0;background:none;text-align:left;padding:14px 0;min-height:64px}
.lessons strong{display:block;font-size:15px}
.learn-back{margin:14px 0 8px}
.lesson h1{font-size:24px;margin:8px 0 14px}
.lesson .lanes{margin-bottom:16px}
.rich h3{font-size:16px;margin:20px 0 8px}
.rich p{font-size:15.5px;line-height:1.6}
.rich ul{padding-left:20px;margin:0 0 12px}.rich li{margin:4px 0;line-height:1.5}
.empty-learn{margin-top:14px;border-style:dashed}
.empty-learn h2{font-size:22px;margin:8px 0}
.empty-learn .lanes{margin-top:8px}

/* Профиль */
.profile-card{text-align:center;padding:26px 0 16px;display:flex;flex-direction:column;align-items:center;gap:6px}
.profile-card h1{font-size:22px;margin-top:10px}
.photo-wrap{position:relative}
.photo-wrap .ava{box-shadow:0 0 0 5px var(--cream),0 0 0 9px var(--red),0 0 0 14px var(--cream),0 0 0 17px var(--red)}
.photo-btn{position:absolute;right:-6px;bottom:-6px;width:44px;height:44px;border-radius:50%;background:var(--solid);color:var(--paper);display:grid;place-items:center;margin:0;cursor:pointer;border:3px solid var(--cream)}
.profile-card .tiny{max-width:300px;margin-top:8px}
.birth{display:grid;grid-template-columns:72px 1fr 104px;gap:10px}

/* Нижнее меню */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--paper);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 4px calc(8px + env(safe-area-inset-bottom))}
.tabbar button{position:relative;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;min-height:54px;color:var(--soft);font:500 11.5px var(--body)}
.tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tabbar button[aria-current=page]{color:var(--red-d);font-weight:700}
.tabbar button[aria-current=page]::before{content:"";position:absolute;top:-7px;left:28%;right:28%;height:3px;background:var(--red);border-radius:0 0 3px 3px}
.tabbar .dot{position:absolute;top:6px;right:calc(50% - 18px);width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px var(--paper)}
@media(min-width:600px){.tabbar{max-width:560px;margin:0 auto;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0}}
@media(max-width:360px){.pad{padding:0 14px}.top{padding-left:14px;padding-right:14px}.birth{grid-template-columns:64px 1fr 90px}.stadium-wrap{padding:6px 12px}}

/* Задачи смены (столы, торшеры, бармену): плашка над главной кнопкой, карточка, отметка QR и фото */
.task-alert{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--yellow);color:var(--ink);text-decoration:none}
.task-alert .lane-n{color:var(--red-d)}
.task-alert strong{display:block;font-size:15px}
.task-alert .grow > span{display:block;font-size:12.5px}
.task-alert.lvl1{background:#f6c9a8}
.task-alert.lvl2{background:var(--red);color:var(--paper);animation:pulse 1.6s infinite}.task-alert.lvl2 .lane-n{color:var(--paper)}
.tasks.has-open{border:2px solid var(--red)}
.task-list{margin:8px 0 12px}
.task-list > li.task{display:block}
.task strong{font-size:16px;margin-right:6px}
.task small{display:block;color:var(--muted);font-size:12.5px;margin-top:4px}
.task p{margin:6px 0 0;font-size:13px}
.task.lvl2 strong{color:var(--red-d)}
.task .who{color:var(--ink);font-weight:700}
.task .who.mine{color:var(--red-d)}
.task.mine{border-left:4px solid var(--red);padding-left:12px}
.sky{font-size:13px;margin:12px 0 4px;padding:10px 12px;background:var(--line2);border-radius:8px}
.sky span{font-size:16px;margin-right:4px}
.bad-text{color:var(--red-d)}
.push-on{margin-top:10px}
.tasks .btn.block{margin-top:10px}
.cam.photo{aspect-ratio:3/4}
.shot{display:block;width:100%;border-radius:10px;margin:10px 0}
.result .mark{width:72px;height:72px;margin:0 auto 12px;border-radius:50%;border:3px solid var(--red);color:var(--red);display:grid;place-items:center;font-size:36px;font-weight:700}

.ava-pick{width:100%;margin-top:4px}.ava-pick summary{list-style:none;margin:0 auto;width:max-content}.ava-pick summary::-webkit-details-marker{display:none}
.ava-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;margin-top:12px}
.ava-grid button{border:0;padding:0;background:none;border-radius:50%;min-height:0;aspect-ratio:1;overflow:hidden;box-shadow:0 0 0 2px transparent}
.ava-grid button[aria-pressed=true]{box-shadow:0 0 0 3px var(--red)}
.ava-grid img{width:100%;height:100%;object-fit:cover;display:block}
