:root{--blue-50:#eff6ff;--blue-100:#dbeafe;--blue-500:#3b82f6;--blue-600:#2563eb;--blue-700:#1d4ed8;--blue-900:#1e3a8a;--ink:#0f172a;--ink-2:#475569;--ink-3:#94a3b8;--line:#e2e8f0;--bg:#f4f7fd;--white:#fff;--green:#15803d;--green-bg:#dcfce7;--amber:#b45309;--amber-bg:#fef3c7;--red:#b91c1c;--red-bg:#fee2e2;--radius:16px;--shadow:0 1px 2px #0f172a0d, 0 6px 20px #0f172a0d;--grad:linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);--tab-h:64px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%;font-family:Inter,Segoe UI,system-ui,-apple-system,Noto Sans Arabic,Segoe UI Arabic,Tahoma,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%}body{background:var(--bg);-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;margin:0}h1{margin:0;font-size:1.35rem}h2{margin:0;font-size:1.05rem}p{margin:0}a{color:var(--blue-600)}.muted{color:var(--ink-2)}.small{font-size:.85rem}.center{text-align:center}.center-block{margin-inline:auto;display:block}.error-text{color:var(--red)}.empty{padding:32px 0}.shell{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:10;padding:calc(10px + var(--safe-t)) 16px 10px;background:var(--white);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.brand{color:var(--blue-900);align-items:center;gap:10px;font-weight:700;text-decoration:none;display:flex}.logo{border-radius:22%}.bell{width:44px;height:44px;color:var(--ink-2);border-radius:50%;place-items:center;display:grid;position:relative}.bell .dot{background:var(--red);color:#fff;border-radius:9px;place-items:center;min-width:18px;height:18px;padding-inline:4px;font-size:11px;font-weight:700;display:grid;position:absolute;inset-block-start:2px;inset-inline-end:0}.content{width:100%;max-width:640px;padding:16px 16px calc(var(--tab-h) + var(--safe-b) + 24px);flex:1;margin-inline:auto}.tabbar{z-index:10;height:calc(var(--tab-h) + var(--safe-b));padding-bottom:var(--safe-b);background:var(--white);border-top:1px solid var(--line);justify-content:space-around;display:flex;position:fixed;inset-block-end:0;inset-inline:0}.tab{min-width:44px;color:var(--ink-3);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.7rem;text-decoration:none;display:flex}.tab.active{color:var(--blue-600);font-weight:600}.offline-bar{background:var(--amber-bg);color:var(--amber);text-align:center;padding:8px 16px;font-size:.85rem}.offline-bar.sending{background:var(--blue-50);color:var(--blue-700)}.stack{flex-direction:column;gap:14px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.row{justify-content:space-between;align-items:center;gap:10px;display:flex}.grid-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.list,.plain{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.plain{gap:8px}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px}.greeting{font-size:1.2rem}.hero{text-align:center;flex-direction:column;align-items:center;gap:8px;padding-block:22px;display:flex}.hero.is-in{background:linear-gradient(#f0fdf4,#fff);border-color:#86efac}.big-time{font-variant-numeric:tabular-nums;font-size:2.4rem;font-weight:700}.btn{min-height:48px;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;padding:0 18px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-block{width:100%}.btn-primary{background:var(--grad);color:#fff}.btn-ghost{background:var(--white);color:var(--blue-700);border-color:var(--line)}.btn-danger{background:var(--white);color:var(--red);border-color:#fecaca}.btn-clock{color:#fff;border-radius:18px;min-height:72px;font-size:1.25rem}.btn-in{background:linear-gradient(135deg,#22c55e,#15803d)}.btn-out{background:linear-gradient(135deg,#f97316,#c2410c)}.link{color:var(--blue-600);font:inherit;cursor:pointer;background:0 0;border:0;min-height:32px;padding:6px 0;text-decoration:underline}.link.danger{color:var(--red)}.badge{border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:600;display:inline-block}.badge-ok{background:var(--green-bg);color:var(--green)}.badge-warn{background:var(--amber-bg);color:var(--amber)}.badge-bad{background:var(--red-bg);color:var(--red)}.badge-info{background:var(--blue-100);color:var(--blue-700)}.badge-muted{color:var(--ink-2);background:#f1f5f9}.badges{flex-wrap:wrap;gap:6px;display:flex}.note{border-radius:12px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:.92rem;display:flex}.note-info{background:var(--blue-50);color:var(--blue-700)}.note-ok{background:var(--green-bg);color:var(--green)}.note-warn{background:var(--amber-bg);color:var(--amber)}.note-error{background:var(--red-bg);color:var(--red)}.form{flex-direction:column;gap:14px;display:flex}.field{flex-direction:column;gap:6px;font-size:.92rem;font-weight:600;display:flex}.field small{font-weight:400}input,select,textarea{width:100%;min-height:46px;font:inherit;color:var(--ink);background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font-size:16px;font-weight:400}input:focus,select:focus,textarea:focus,.btn:focus-visible,.tab:focus-visible,.link:focus-visible,.segmented button:focus-visible{outline:3px solid var(--blue-200,#bfdbfe);outline-offset:1px;border-color:var(--blue-500)}.check{align-items:center;gap:8px;font-size:.92rem;display:flex}.check input{width:20px;min-height:20px}.segmented{background:#e8eef9;border-radius:12px;gap:4px;padding:4px;display:flex}.segmented button{min-height:40px;font:inherit;color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;font-weight:600}.segmented button[aria-pressed=true],.segmented button[aria-selected=true]{color:var(--blue-700);box-shadow:var(--shadow);background:#fff}.auth{background:linear-gradient(180deg, var(--blue-50), var(--bg));place-items:center;min-height:100dvh;padding:20px 16px;display:grid}.auth-card{width:100%;max-width:400px;box-shadow:var(--shadow);background:#fff;border-radius:22px;flex-direction:column;gap:16px;padding:24px;display:flex}.auth-head{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex}.times{font-variant-numeric:tabular-nums;grid-template-columns:repeat(3,1fr);gap:8px;margin-block:8px;display:grid}.session .row strong{font-size:1rem}.day{justify-content:space-between;align-items:center;gap:10px;display:flex}.day.today{border-color:var(--blue-500)}.day.off{background:#f8fafc}.day-info{text-align:end}.notif{text-align:start;width:100%;font:inherit;color:inherit;cursor:pointer;gap:10px;display:flex}.notif.unread{background:var(--blue-50);border-color:var(--blue-100)}.unread-dot{background:var(--blue-600);border-radius:50%;flex:none;width:10px;height:10px;margin-top:6px}.facts{gap:10px;margin:0;display:grid}.facts dd{margin:0;font-weight:600}@media (prefers-reduced-motion:no-preference){.btn,.tab{transition:transform 80ms,opacity .15s}.btn:active:not(:disabled){transform:scale(.98)}}@media (width>=700px){.content{padding-top:28px}}.last-shift{font-variant-numeric:tabular-nums;margin:0;font-size:1.6rem;font-weight:700}
