:root{--ink:#13234a;--ink-2:#3b4b70;--muted:#66728c;--line:#dce1eb;--bg:#f2f4f8;--surface:#fff;--surface-2:#e9edf4;--action:#ff8a1f;--action-ink:#3a1a00;--in:#0e7c57;--in-soft:#ddf2e9;--warn:#9a5b00;--warn-soft:#fcefd9;--bad:#b42335;--bad-soft:#fbe3e6;--focus:#2f6bff;--radius-s:8px;--radius-m:14px;--shadow:0 1px 2px #13234a0f, 0 4px 14px #13234a0f;--font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;--tabbar-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--ink:#e6ebf5;--ink-2:#b7c2d9;--muted:#8e9ab3;--line:#2a3552;--bg:#0e1528;--surface:#16203a;--surface-2:#1e2a48;--action:#ff9a3c;--action-ink:#2a1300;--in:#3ccb93;--in-soft:#11372b;--warn:#f2b65a;--warn-soft:#3a2a10;--bad:#ff7c8c;--bad-soft:#3d1820;--shadow:0 1px 2px #0000004d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0;font-size:16px;line-height:1.5}h1,h2,h3{margin:0;font-weight:600;line-height:1.25}h1{font-size:1.5rem}h2{font-size:1.15rem}h3{font-size:1rem}p{margin:0}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.num{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:.875rem}.stack{flex-direction:column;gap:12px;display:flex}.stack-lg{flex-direction:column;gap:20px;display:flex}.row{align-items:center;gap:10px;display:flex}.row-between{justify-content:space-between;align-items:center;gap:10px;display:flex}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.center{text-align:center}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.app{min-height:100dvh;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px)}.topbar{padding:calc(env(safe-area-inset-top) + 14px) 16px 14px;justify-content:space-between;align-items:center;gap:12px;max-width:1100px;margin:0 auto;display:flex}.brand{align-items:center;gap:10px;font-weight:600;display:flex}.brand img{border-radius:8px;width:30px;height:30px}.page{max-width:1100px;margin:0 auto;padding:4px 16px 24px}.page-narrow{max-width:560px}.tabbar{inset-inline:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);justify-content:center;display:flex;position:fixed;bottom:0}.tabbar-inner{width:100%;max-width:560px;display:flex}.tab{height:var(--tabbar-h);color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:500;text-decoration:none;display:flex}.tab svg{width:24px;height:24px}.tab.active{color:var(--ink)}.tab.active svg{color:var(--action)}.subnav{scrollbar-width:none;gap:6px;margin:0 -16px 16px;padding:2px 16px;display:flex;overflow-x:auto}.subnav::-webkit-scrollbar{display:none}.subnav a{color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:999px;flex:none;padding:7px 14px;font-size:.9rem;font-weight:500;text-decoration:none}.subnav a.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}.panel{background:var(--surface);border-radius:var(--radius-m);box-shadow:var(--shadow);padding:16px}.panel-flat{background:var(--surface);border-radius:var(--radius-m);border:1px solid var(--line)}.list{margin:0;padding:0;list-style:none}.list>li{border-top:1px solid var(--line);padding:12px 16px}.list>li:first-child{border-top:0}.list a.rowlink{margin:-12px -16px;padding:12px 16px;text-decoration:none;display:block}.section-title{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.section-title h2{font-size:1rem}.btn{border-radius:var(--radius-s);border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--ink);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--action);border-color:var(--action);color:var(--action-ink)}.btn-ink{background:var(--ink);border-color:var(--ink);color:var(--bg)}.btn-danger{color:var(--bad)}.btn-ghost{background:0 0;border-color:#0000}.btn-block{width:100%}.btn-lg{border-radius:var(--radius-m);min-height:54px;font-size:1.05rem}.btn-sm{min-height:34px;padding:0 10px;font-size:.875rem}.iconbtn{cursor:pointer;width:40px;height:40px;color:var(--ink-2);background:0 0;border:0;border-radius:50%;place-items:center;display:inline-grid}.langbtn{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:999px;padding:6px 10px;font-size:.9rem;font-weight:600}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--ink-2);font-size:.875rem;font-weight:500}.field small{color:var(--muted);font-size:.8rem}.input,select.input,textarea.input{border-radius:var(--radius-s);border:1px solid var(--line);background:var(--surface);width:100%;min-height:46px;padding:10px 12px;font-size:16px}textarea.input{resize:vertical;min-height:80px}.input:focus{outline:2px solid var(--focus);outline-offset:-1px;border-color:#0000}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.check{cursor:pointer;align-items:flex-start;gap:10px;display:flex}.check input{width:20px;height:20px;accent-color:var(--ink);margin-top:2px}.code-input{letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums;direction:ltr;font-size:1.75rem}.badge{background:var(--surface-2);color:var(--ink-2);white-space:nowrap;border-radius:6px;align-items:center;gap:4px;padding:2px 8px;font-size:.78rem;font-weight:600;display:inline-flex}.badge-in{background:var(--in-soft);color:var(--in)}.badge-warn{background:var(--warn-soft);color:var(--warn)}.badge-bad{background:var(--bad-soft);color:var(--bad)}.dot{background:currentColor;border-radius:50%;flex:none;width:8px;height:8px}.notice{border-radius:var(--radius-s);background:var(--surface-2);padding:12px 14px;font-size:.925rem}.notice-error{background:var(--bad-soft);color:var(--bad)}.notice-ok{background:var(--in-soft);color:var(--in)}.notice-warn{background:var(--warn-soft);color:var(--warn)}.spinner{border:3px solid var(--line);border-top-color:var(--ink);border-radius:50%;flex:none;width:22px;height:22px;animation:.8s linear infinite spin}.loading-screen{place-items:center;min-height:60dvh;display:grid}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;color:var(--muted);padding:28px 16px}.clock-face{flex-direction:column;align-items:center;gap:18px;padding:8px 0 4px;display:flex}.clock-now{letter-spacing:-.02em;font-size:3rem;font-weight:600;line-height:1}.punch{--ring:var(--action);aspect-ratio:1;text-align:center;background:var(--surface);width:min(64vw,240px);color:var(--ink);box-shadow:inset 0 0 0 10px var(--ring), 0 10px 30px #13234a24;border-radius:50%;place-items:center;text-decoration:none;transition:transform .12s;display:grid;position:relative}.punch:active{transform:scale(.97)}.punch[data-state=in]{--ring:var(--in)}.punch-label{font-size:1.35rem;font-weight:700}.punch-sub{color:var(--muted);margin-top:4px;font-size:.85rem}.status-line{align-items:center;gap:8px;font-weight:600;display:flex}.status-line[data-state=in]{color:var(--in)}.status-line[data-state=out]{color:var(--muted)}.stats{background:var(--line);border-radius:var(--radius-m);grid-template-columns:repeat(3,1fr);gap:1px;display:grid;overflow:hidden}.stats>div{background:var(--surface);padding:12px}.stats b{font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:600;display:block}.stats span{color:var(--muted);font-size:.78rem}.steps{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.step{background:var(--surface);border-radius:var(--radius-m);box-shadow:var(--shadow);align-items:flex-start;gap:12px;padding:14px;display:flex}.step-mark{background:var(--surface-2);width:28px;height:28px;color:var(--ink-2);border-radius:50%;flex:none;place-items:center;font-size:.85rem;font-weight:700;display:grid}.step[data-s=ok] .step-mark{background:var(--in);color:#fff}.step[data-s=bad] .step-mark{background:var(--bad);color:#fff}.step[data-s=active] .step-mark{background:var(--ink);color:var(--bg)}.step-body{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.scanner{border-radius:var(--radius-s);aspect-ratio:1;background:#000;max-height:52dvh;position:relative;overflow:hidden}.scanner video{object-fit:cover;width:100%;height:100%;display:block}.result-mark{border-radius:50%;place-items:center;width:84px;height:84px;margin:0 auto;display:grid}.result-mark svg{width:44px;height:44px}.sheet-backdrop{z-index:50;background:#080e1e73;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;animation:.18s ease-out rise;overflow-y:auto}@media (width>=700px){.sheet-backdrop{align-items:center}.sheet{border-radius:18px}}@keyframes rise{0%{opacity:.6;transform:translateY(24px)}}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:.9rem}.table th{text-align:start;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 12px;font-weight:500}.table td{border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 12px}.table tr:last-child td{border-bottom:0}.table tbody tr{cursor:pointer}.table tbody tr:hover td{background:var(--surface-2)}.filters{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end;gap:10px;display:grid}.avatar{background:var(--surface-2);width:36px;height:36px;color:var(--ink-2);border-radius:50%;flex:none;place-items:center;font-size:.9rem;font-weight:600;display:grid}.big-code{letter-spacing:.25em;text-align:center;font-variant-numeric:tabular-nums;direction:ltr;font-size:2.75rem;font-weight:700}.sched-row{grid-template-columns:92px auto 1fr 1fr;align-items:center;gap:8px;display:grid}.sched-row .input{min-height:40px;padding:6px 8px}.sched-row .input:disabled{opacity:.35}.board{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;display:grid}.kiosk{background:var(--ink);color:#fff;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100dvh;padding:24px;display:flex}.kiosk-qr{background:#fff;border-radius:22px;padding:18px}.kiosk-qr canvas{display:block;width:min(70vmin,520px)!important;height:auto!important}.kiosk-bar{background:#ffffff2e;border-radius:3px;width:min(70vmin,520px);height:6px;overflow:hidden}.kiosk-bar>div{background:var(--action);transform-origin:0;height:100%}[dir=rtl] .kiosk-bar>div{transform-origin:100%}.kiosk-time{font-variant-numeric:tabular-nums;font-size:clamp(2rem,7vmin,4.5rem);font-weight:600;line-height:1}.kiosk-title{font-size:clamp(1.2rem,3.5vmin,2rem);font-weight:600}.kiosk .muted{color:#ffffffa6}.auth{flex-direction:column;justify-content:center;gap:28px;max-width:420px;min-height:100dvh;margin:0 auto;padding:24px 20px;display:flex}.auth-mark{border-radius:14px;width:56px;height:56px}@media (width>=900px){.app{padding-bottom:32px}.tabbar{background:0 0;border:0;padding:0;position:static}.tabbar-inner{justify-content:flex-start;gap:4px;max-width:1100px;padding:0 16px}.tab{border-radius:999px;flex-direction:row;flex:none;gap:8px;height:40px;padding:0 14px;font-size:.95rem}.tab svg{width:20px;height:20px}.tab.active{background:var(--surface);box-shadow:var(--shadow)}.desktop-nav-slot{order:-1}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.flip,.flip-back{display:inline-flex}[dir=rtl] .flip svg,[dir=ltr] .flip-back svg{transform:scaleX(-1)}
