/* Android/iOS shell: always full-screen, no phone frame, real system safe areas */
@media (max-width:480px){
:root{
  --phone-safe-top:calc(max(env(safe-area-inset-top,0px),var(--safe-area-inset-top,0px)) + 8px) !important;
  --phone-safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--safe-area-inset-bottom,0px)) + 4px) !important;
}
html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body{padding:0 !important;display:block !important}
.phone-frame{width:100% !important;height:100dvh !important;padding:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important;zoom:1 !important}
.phone-frame::before,.phone-frame::after,.hardware-button{display:none !important}
.phone-screen{width:100% !important;height:100% !important;border-radius:0 !important}
.status-bar,.camera-dot,.gesture-indicator{display:none !important}
/* in-app push banner: the mockup lifts it over the fake status bar (safe-top − 40px); in the app it must sit below the real one */
#push{top:var(--phone-safe-top) !important}
/* hidden: slide fully above the screen edge (its top is now lower) and hide after the slide, so no edge peeks out */
#push:not(.on){transform:translateY(calc(-100% - var(--phone-safe-top) - 40px)) !important;visibility:hidden;transition:transform 220ms var(--ease-in),visibility 0s linear 220ms !important}
#push.on{visibility:visible}
}
/* no zoom of any kind: double-tap zoom off (manipulation), system font size doesn't inflate the layout */
html,body,*{touch-action:manipulation}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* data refresh in progress (cached data on screen) — small pulsing dot after the screen title */
body.ma-syncing #hdr h1::after{content:"";display:inline-block;width:8px;height:8px;margin-left:10px;border-radius:50%;background:var(--accent);vertical-align:middle;animation:ma-pulse 1s ease-in-out infinite}
@keyframes ma-pulse{0%,100%{opacity:.25}50%{opacity:1}}
/* «Занять время»: серая кнопка в окне новой записи и штрихованный блок в расписании */
.btn.grey{background:#E4E7ED;color:#4A5266;box-shadow:none;border-color:transparent}
.btn.grey:disabled{opacity:.6}
.rec.res{background:repeating-linear-gradient(135deg,#ECEEF2 0 10px,#E2E5EB 10px 20px);color:#5B6478}
.rec.res .nm{font-weight:700}
/* всплывающие сообщения — сверху, как пуш-уведомления, и поверх открытого окна */
#toast{left:var(--s2);right:var(--s2);top:max(8px, calc(var(--phone-safe-top) - 40px));bottom:auto;transform:translateY(-8px);z-index:45;border-radius:var(--r-card);box-shadow:0 12px 32px rgba(0,12,53,.22)}
#toast.on{transform:none}
/* «Доход»: кнопка вывода доплаты — слева «Вывести», справа сумма */
.po-wrap{margin:0 var(--s4) var(--s3)}
.btn.po{justify-content:space-between;text-align:left;min-height:60px;margin-top:0;padding:0 var(--s5)}
.po-l{display:flex;flex-direction:column;line-height:1.2}
.po-t{display:flex;align-items:center;gap:var(--s2)}
.po-m{font-size:var(--fs-xs);font-weight:700;opacity:.8}
.po-s{font-size:var(--fs-l,20px);font-weight:900}
.po-info{background:var(--surface);border-radius:var(--r-in);padding:var(--s3) var(--s4);font-size:var(--fs-s);font-weight:600;color:#5B6478}
.po-info b{color:var(--ink)}
/* «График»: день без свободных кресел — выйти на смену нельзя */
.cal .cell[disabled]{opacity:.3;cursor:default}
