:root{--navy:#1b2842;--navy-2:#26365a;--ink:#1b2842;--ink-2:#4a5168;--ink-3:#7a7466;--muted:#a9a190;--line:#efe6d2;--line-soft:#f4eee1;--ground:#fffbf3;--ground-deep:#f6eedc;--surface:#fff;--gold:#d9a441;--gold-light:#e8b95a;--gold-deep:#b57a2e;--gold-ink:#8a5a1c;--cream:#fbf1da;--terracotta:#b8673a;--terracotta-tint:#f6e2d6;--olive:#7e8f3a;--olive-dark:#4f5e1f;--olive-tint:#e8ecd6;--alert:#c8372d;--alert-ink:#a42c24;--alert-tint:#fbe7e5;--official:#22508f;--official-tint:#e6eefa;--on-dark-muted:#c9cfdb;--r-chip:10px;--r-control:12px;--r-card:16px;--shadow:0 10px 30px #1b28421f;--font:"Cairo", "Poppins", system-ui, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[lang=en]{--font:"Poppins", "Cairo", system-ui, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);color:var(--ink);background:var(--ground);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.55}a{color:var(--gold-deep);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0;line-height:1.25}h1{font-size:24px;font-weight:800}h2{font-size:17px;font-weight:700}h3{font-size:15px;font-weight:700}p{margin:0}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}.ltr{direction:ltr;unicode-bidi:isolate}html[dir=rtl] .flip-rtl{transform:scaleX(-1)}.muted{color:var(--ink-3)}.small{font-size:13px}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.spread{justify-content:space-between}.grow{flex:1;min-width:0}.shell{grid-template-columns:264px 1fr;min-height:100%;display:grid}.sidebar{background:var(--navy);color:#fff;flex-direction:column;gap:18px;height:100vh;padding:20px 14px;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:10px;padding:4px 8px 8px;display:flex}.brand img{width:34px;height:43px}.brand b{font-size:17px;font-weight:800;line-height:1.2;display:block}.brand small{color:var(--gold-light);letter-spacing:1.5px;font-size:11px;font-weight:700}.nav-group{flex-direction:column;gap:2px;display:flex}.nav-group>span{color:var(--gold-light);letter-spacing:1px;text-transform:uppercase;padding:6px 10px;font-size:11.5px;font-weight:700}.nav-link{color:var(--on-dark-muted);border-radius:10px;align-items:center;gap:10px;padding:9px 10px;font-weight:500;display:flex}.nav-link:hover{color:#fff;background:#ffffff12;text-decoration:none}.nav-link.active{background:var(--gold);color:var(--navy);font-weight:700}.nav-link .count{background:var(--alert);color:#fff;text-align:center;border-radius:999px;min-width:22px;margin-inline-start:auto;padding:0 7px;font-size:11.5px;font-weight:700}.nav-link.active .count{background:var(--navy)}.sidebar-foot{border-top:1px solid #ffffff1a;flex-direction:column;gap:6px;margin-top:auto;padding-top:12px;display:flex}.sidebar-foot .who{color:var(--on-dark-muted);padding:4px 10px;font-size:13px}.sidebar-foot button{cursor:pointer;text-align:start;background:0 0;border:0}.main{min-width:0;padding:28px 32px 48px}.content{flex-direction:column;gap:20px;max-width:1180px;margin:0 auto;display:flex}.topbar{display:none}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-head p{color:var(--ink-3);max-width:640px;margin-top:4px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:18px}.card.flush{padding:0;overflow:hidden}.card-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.grid{gap:14px;display:grid}.grid.stats{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.grid.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.stat{flex-direction:column;gap:4px;display:flex}.stat b{font-size:30px;font-weight:800;line-height:1.1}.stat.attention{border-color:var(--gold);background:var(--cream)}.stat.danger b{color:var(--alert-ink)}.split{grid-template-columns:minmax(300px,380px) 1fr;align-items:start;gap:16px;display:grid}.btn{border-radius:var(--r-control);background:var(--gold);height:40px;color:var(--navy);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:700;transition:filter .15s;display:inline-flex}.btn:hover{filter:brightness(.96);text-decoration:none}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:var(--surface);border-color:var(--ink)}.btn.ghost{color:var(--ink-2);background:0 0}.btn.ghost:hover{background:var(--ground-deep)}.btn.dark{background:var(--navy);color:#fff}.btn.danger{background:var(--alert-tint);color:var(--alert-ink)}.btn.sm{border-radius:10px;height:32px;padding:0 12px;font-size:13.5px}.btn.icon{width:36px;height:36px;padding:0}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>span{color:var(--ink-2);font-size:13px;font-weight:600}.input,select.input,textarea.input{border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);outline:none;width:100%;min-height:40px;padding:8px 12px}.input:focus{border-color:var(--gold-deep);box-shadow:0 0 0 3px #d9a44140}textarea.input{resize:vertical;min-height:96px}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.check{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;display:inline-flex}.check input{width:18px;height:18px;accent-color:var(--navy)}.tabs{background:var(--ground-deep);border-radius:12px;flex-wrap:wrap;gap:2px;padding:4px;display:inline-flex}.tabs button{cursor:pointer;color:var(--ink-2);background:0 0;border:0;border-radius:9px;padding:6px 14px;font-weight:500}.tabs button.on{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:0 1px 2px #1b28421f}.badge{background:var(--ground-deep);color:var(--ink-2);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:2px 9px;font-size:12px;font-weight:700;display:inline-flex}.badge.gold{background:var(--cream);color:var(--gold-ink)}.badge.green{background:var(--olive-tint);color:var(--olive-dark)}.badge.red{background:var(--alert-tint);color:var(--alert-ink)}.badge.blue{background:var(--official-tint);color:var(--official)}.badge.terra{background:var(--terracotta-tint);color:var(--terracotta)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th{text-align:start;color:var(--ink-3);border-bottom:1px solid var(--line);background:var(--ground);white-space:nowrap;padding:10px 14px;font-size:12.5px;font-weight:700}td{border-bottom:1px solid var(--line-soft);vertical-align:middle;padding:12px 14px}tr:last-child td{border-bottom:0}tr.clickable{cursor:pointer}tr.clickable:hover td,tr.selected td{background:var(--cream)}.list-item{border-bottom:1px solid var(--line-soft);cursor:pointer;border-inline:0;text-align:start;background:0 0;border-top:0;flex-direction:column;gap:4px;width:100%;padding:12px 14px;display:flex}.list-item:hover,.list-item.selected{background:var(--cream)}.kv{grid-template-columns:max-content 1fr;gap:6px 14px;font-size:14px;display:grid}.kv dt{color:var(--ink-3)}.kv dd{overflow-wrap:anywhere;margin:0}.thumbs{flex-wrap:wrap;gap:8px;display:flex}.thumbs img{object-fit:cover;border:1px solid var(--line);background:var(--ground-deep);border-radius:10px;width:96px;height:96px}.state{text-align:center;color:var(--ink-3);padding:32px 16px}.notice{border-radius:var(--r-control);background:var(--cream);color:var(--gold-ink);padding:10px 14px;font-size:14px}.notice.error{background:var(--alert-tint);color:var(--alert-ink)}.notice.ok{background:var(--olive-tint);color:var(--olive-dark)}.pager{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;display:flex}.skeleton{background:linear-gradient(90deg, var(--ground-deep), var(--line-soft), var(--ground-deep));background-size:200% 100%;border-radius:6px;height:14px;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.modal-backdrop{z-index:50;background:#1b28428c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:560px;max-height:calc(100vh - 32px);box-shadow:var(--shadow);border-radius:18px;flex-direction:column;gap:14px;padding:20px;display:flex;overflow-y:auto}.login{grid-template-columns:1fr 1fr;min-height:100%;display:grid}.login-hero{background:var(--navy);color:#fff;flex-direction:column;justify-content:center;gap:18px;padding:48px;display:flex}.login-hero img{width:72px}.login-hero h1{font-size:34px}.login-hero p{color:var(--on-dark-muted);max-width:420px}.login-form{justify-content:center;align-items:center;padding:32px 20px;display:flex}.login-form .card{flex-direction:column;gap:14px;width:100%;max-width:420px;padding:24px;display:flex}.phone-row{direction:ltr;grid-template-columns:96px 1fr;gap:8px;display:grid}.code-input{letter-spacing:8px;text-align:center;direction:ltr;font-size:22px}@media (width<=1000px){.split{grid-template-columns:1fr}}@media (width<=860px){.shell{grid-template-columns:1fr}.sidebar{z-index:40;width:280px;transition:transform .2s;position:fixed;inset-block:0;inset-inline-start:0;transform:translate(-100%)}html[dir=rtl] .sidebar{transform:translate(100%)}.sidebar.open,html[dir=rtl] .sidebar.open{box-shadow:var(--shadow);transform:none}.scrim{z-index:30;background:#1b284266;position:fixed;inset:0}.topbar{z-index:20;background:var(--navy);color:#fff;align-items:center;gap:10px;padding:10px 14px;display:flex;position:sticky;top:0}.topbar img{width:24px}.topbar .btn{color:#fff;background:#ffffff1a}.main{padding:18px 16px 40px}.login{grid-template-columns:1fr}.login-hero{padding:28px 20px}.login-hero h1{font-size:26px}}.dot{background:var(--muted);vertical-align:middle;border-radius:50%;width:9px;height:9px;display:inline-block}.dot.danger{background:var(--alert)}.dot.normal{background:var(--gold)}.dot.good{background:var(--olive)}.queue-row{border-inline-start:3px solid #0000}.queue-row.selected{border-inline-start-color:var(--gold)}.queue-thumb{object-fit:cover;border:1px solid var(--line);background:var(--ground-deep);border-radius:10px;flex:none;width:56px;height:56px}.queue-thumb.empty{background:repeating-linear-gradient(45deg, var(--ground-deep), var(--ground-deep) 6px, var(--line-soft) 6px, var(--line-soft) 12px)}.clamp{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.gallery{gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.gallery img{object-fit:cover;border:1px solid var(--line);background:var(--ground-deep);border-radius:12px;flex:none;max-width:300px;height:200px}.card.soft{background:var(--ground);box-shadow:none}.reasons,.history{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.reasons li{border-radius:var(--r-chip);background:var(--surface);border:1px solid var(--line-soft);justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.reasons li.bad{background:var(--alert-tint);color:var(--alert-ink);border-color:#0000}.reasons li.good{background:var(--olive-tint);color:var(--olive-dark);border-color:#0000}.reasons .points{flex:none;font-weight:700}.history li{border-inline-start:2px solid var(--line);padding-inline-start:12px}.avatar{object-fit:cover;background:var(--cream);width:48px;height:48px;color:var(--gold-ink);border-radius:50%;flex:none;place-items:center;font-size:20px;font-weight:700;display:grid}.warn{color:var(--alert-ink);font-weight:700}.decision{border-top:1px solid var(--line);gap:10px;padding-top:12px}.decision textarea{min-height:72px}.chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;border-radius:999px;padding:4px 10px;font-size:13px}.chip:hover{border-color:var(--gold);background:var(--cream)}.setting-row{border-top:1px solid var(--line-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;padding:14px 16px;display:flex}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}.nowrap{white-space:nowrap}.switch{cursor:pointer;align-items:center;gap:8px;font-weight:600;display:inline-flex}.switch input{width:18px;height:18px;accent-color:var(--gold-deep)}.filters{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.filters .field{flex:1;min-width:150px}.change{overflow-wrap:anywhere;max-width:420px;display:block}.change .before{color:var(--alert-ink)}.change .after{color:var(--olive-dark)}
