@font-face{font-family:Cairo;src:url('/Cairo.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#0d1022;color:#f3f3fd;font-family:Cairo,Arial,sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:16px;padding:12px 22px;background:#5d54fa;color:white;font-weight:800}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#252b49}button.danger{background:#963c59}button.ghost{background:transparent;color:#a5a2ff}a{color:#aba7ff}input,textarea,select{width:100%;border:1px solid #30395c;border-radius:18px;padding:15px 19px;background:#141b32;color:#f4f4ff;outline:none}input:focus,textarea:focus,select:focus{border-color:#7f79ff;box-shadow:0 0 0 3px #635bff25}input::placeholder{color:#a6adcd}label{display:block;color:#aeb8da;margin:12px 0 6px}input[type=checkbox],input[type=radio]{width:auto;margin-left:9px}textarea{min-height:110px}h1,h2,h3,p{margin-top:0}h1{font-size:32px}h2{font-size:25px}h3{font-size:19px}.auth{min-height:100vh;padding:65px 22px 90px;position:relative}.auth:before{content:'';position:absolute;inset:0 0 auto;height:425px;z-index:-1;background:radial-gradient(at 95% 0,#30b6f5,transparent 65%),linear-gradient(110deg,#6526b7,#5e50fc)}.brand{text-align:center;margin-bottom:30px}.brand img{width:108px;display:block;margin:0 auto 16px}.brand h1{font-family:Arial,sans-serif;font-weight:900;margin:0 0 6px;letter-spacing:-1px}.brand p{color:#ded4ff;font-size:19px}.auth-card{max-width:440px;margin:auto;border:1px solid #30395a;border-radius:27px;background:#141b32;padding:24px;box-shadow:0 20px 60px #03041633}.auth-card h2{margin-bottom:16px}.auth-card input{margin-bottom:14px}.auth-card button.primary{width:100%;padding:16px}.auth-foot{text-align:center;margin:20px auto;max-width:440px}.auth-links{text-align:center;margin:12px 0 0}.password-wrap{position:relative}.password-wrap input{padding-left:64px}.eye{position:absolute;left:8px;top:6px;background:transparent;color:#adb5d5;padding:9px}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#13182d;border-left:1px solid #272e4b;padding:25px 17px;position:sticky;top:0;height:100vh;overflow:auto}.mini-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px;font-size:23px;font-weight:900}.mini-brand img{width:44px}.nav{display:grid;gap:5px}.nav button{text-align:right;background:transparent;color:#aab5d4;font-weight:600}.nav button.active{background:#5d54fa22;color:#bfbaff;border:1px solid #5d54fa44}.content{min-width:0;padding:28px 34px 80px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:28px}.topbar h1{font-size:25px;margin:0}.topbar small,.muted{color:#9fa9c9}.hero{background:radial-gradient(at left top,#4340a4,transparent 75%),#1b2141;border:1px solid #353b68;border-radius:24px;padding:26px;margin-bottom:24px}.hero h2{margin:0 0 8px}.hero p{color:#b9c3e7;margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:17px}.card{border:1px solid #2b3454;background:#141b32;border-radius:22px;padding:21px;margin-bottom:18px;overflow:hidden}.card p{overflow-wrap:anywhere}.card .metric{font-size:30px;color:#afa7ff;font-weight:800}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 0}.pill{font-size:12px;border-radius:30px;background:#252c4c;color:#bfc7ef;padding:5px 12px;display:inline-block}.good{color:#65e6bd}.warn{color:#f3c875}.empty{text-align:center;padding:42px 15px;color:#9fa9c9}.empty strong{display:block;color:#e5e5fd;font-size:21px;margin-bottom:10px}.dialog-back{position:fixed;inset:0;background:#030614c9;display:grid;place-items:center;z-index:9;padding:16px}.dialog{max-width:650px;width:100%;max-height:92vh;overflow:auto;background:#151c34;border:1px solid #394264;border-radius:25px;padding:24px}.dialog.wide{max-width:1100px}.dialog h2{margin-bottom:16px}.close{float:left}.error{color:#ffacbf;background:#a8324b22;padding:12px;border-radius:12px;margin:12px 0}.info{background:#6155ff14;border:1px solid #5e56ad55;border-radius:16px;padding:14px;color:#bfc5ec;margin:12px 0;line-height:1.9}.section-buttons{display:flex;gap:7px;overflow:auto;white-space:nowrap;margin-bottom:20px;padding-bottom:10px}.section-buttons button{padding:9px 15px;background:#222b49}.section-buttons button.active{background:#5d54fa}.table-wrap{overflow:auto}table{border-collapse:collapse;min-width:100%;font-size:13px}th,td{padding:14px;border-bottom:1px solid #2a3251;text-align:right;vertical-align:top;max-width:350px;overflow-wrap:anywhere}th{color:#b9b2ff;white-space:nowrap}td button{font-size:12px;padding:7px 10px;margin:3px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;direction:ltr;text-align:left;background:#10152a;padding:14px;border-radius:12px}#screen-image{width:100%;border-radius:10px;cursor:crosshair;display:block}.screen-tools{margin:12px 0}.screen-tools input{flex:1;min-width:180px}.receipt{max-width:100%;max-height:400px;object-fit:contain}.reply{background:#202944;border-radius:14px;padding:14px;margin:10px 0}.reply.admin{border-right:3px solid #8275ff}.loading{padding:80px;text-align:center;color:#aca8e8}#toast{position:fixed;bottom:22px;left:20px;right:20px;max-width:600px;margin:auto;background:#343067;color:#fff;padding:16px 22px;border-radius:17px;z-index:20;display:none;box-shadow:0 5px 35px #0007}.search{max-width:400px;margin-bottom:18px}button.small{padding:7px 12px;font-size:13px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-card .two{gap:8px}.receipt-input{padding:10px}.sep{border:0;border-top:1px solid #303859;margin:20px 0}.discreet{font-size:12px;color:#8793b8}.browser-status{display:flex;gap:7px;align-items:center}.dot{width:8px;height:8px;background:#68d4a9;border-radius:50%}button:focus-visible,a:focus-visible{outline:3px solid #a5b7ff;outline-offset:3px}@media(max-width:850px){.shell{display:block}.sidebar{position:static;height:auto;padding:14px}.mini-brand{margin:0 0 12px;font-size:19px}.mini-brand img{width:35px}.nav{display:flex;overflow:auto;white-space:nowrap}.nav button{padding:8px 13px;font-size:13px}.content{padding:20px 16px 70px}.topbar{margin-bottom:20px}.topbar h1{font-size:21px}.hero{padding:22px}.two{grid-template-columns:1fr}.auth{padding-top:65px}.auth-card{max-width:440px}.grid{grid-template-columns:1fr}.dialog{padding:18px}.brand p{font-size:16px}}
/* Al Mada identity — shared tokens across authentication, workspace and cards. */
:root{color-scheme:dark;--bg:#0b0e1b;--surface:#141a2e;--line:#2b3354;--accent:#7565ff;--cyan:#69d9e5;--muted:#a3aecb}body{background:radial-gradient(ellipse at 90% 0,#25204a44,transparent 40%),var(--bg);line-height:1.8}button{transition:background .18s,box-shadow .18s,transform .18s;border-radius:13px}button:not(.ghost):not(.secondary):not(.danger):not(.eye){background:linear-gradient(110deg,#7160ed,#5b55ee);box-shadow:0 6px 18px #5543cc22}button:hover{transform:translateY(-1px)}button:active{transform:translateY(0)}.auth{padding-top:58px}.auth:before{height:440px;background:radial-gradient(ellipse at 92% 0,#3ebfeccc,transparent 58%),radial-gradient(ellipse at 20% 75%,#6639bd,transparent 68%),linear-gradient(120deg,#262658,#5d55eb)}.brand{margin-bottom:29px}.brand img{width:105px;filter:drop-shadow(0 18px 25px #17153b55)}.brand h1{font-family:Cairo,sans-serif;font-size:32px;letter-spacing:0;margin-bottom:0}.brand-en{display:block;font:800 12px Arial,sans-serif;letter-spacing:4px;color:#d1d4ff;margin-bottom:13px}.brand p{font-size:16px;color:#e0def6}.auth-card{padding:28px;border-color:#4a497277;box-shadow:0 24px 70px #03051155;background:linear-gradient(145deg,#1a2038,#13192d)}.auth-card h2{font-size:27px}.auth-card input{background:#11182c88;border-color:#363e5d;border-radius:17px;padding:16px 20px}.auth-card button.primary{border-radius:17px}.auth-foot button,.auth-links button{color:#b5afff}.sidebar{background:linear-gradient(180deg,#151a30,#0f1426);border-color:#252d49}.mini-brand{gap:11px;line-height:1.5;margin-bottom:33px}.mini-brand img{width:48px}.brand-caption{display:block;color:#8e9ac0;font:700 9px Arial,sans-serif;letter-spacing:2px;margin-top:5px}.eyebrow{letter-spacing:.7px;font-size:11px;color:#8f9fc3}.nav{gap:8px}.nav button{border:1px solid transparent;font-size:14px;padding:12px 16px}.nav button.active{background:linear-gradient(90deg,#6855d82d,#7163ee20);border-color:#7565ff3d;box-shadow:inset -3px 0 #8878ff;color:#d7d1ff}.nav button:hover{background:#222a4444}.content{max-width:1600px;width:100%;margin:auto;padding-top:31px}.topbar{padding-bottom:22px;border-bottom:1px solid #262e48}.topbar h1{margin-top:4px}.hero{position:relative;isolation:isolate;overflow:hidden;padding:33px;background:radial-gradient(ellipse at 0 20%,#4c52a866,transparent 65%),linear-gradient(110deg,#1d2543,#252044);border-color:#514b7a88;border-radius:24px}.hero:after{content:'';position:absolute;z-index:-1;width:260px;height:260px;border:1px solid #9b9ded22;border-radius:50%;left:-75px;top:-100px;box-shadow:0 0 0 35px #9690e80a,0 0 0 70px #9690e807}.hero h2{font-size:27px;font-weight:800}.hero p{max-width:690px;font-size:14px}.card{background:linear-gradient(145deg,#171e33,#131a2d);border-color:#2c3451;border-radius:21px;box-shadow:0 12px 28px #02051418}.card h3{font-weight:800}.card .metric{color:#c0b5ff;line-height:1.5;margin-top:13px;font-size:38px}.grid{gap:18px}.pill{border:1px solid #41496a66;background:#272e4c99;font-size:11px}.info{background:#6155ff0d;color:#afbddd;border-color:#5e56ad44}.section-buttons{padding-top:4px}.section-buttons button{font-size:12px;border:1px solid #303955;background:#19223a;box-shadow:none}.section-buttons button.active{background:linear-gradient(110deg,#7261ed,#5c55dc);border-color:#8b7cf0}.table-wrap{padding:8px 16px}th{background:#1c2440;color:#bfb4ff;font-weight:700}th:first-child{border-radius:0 10px 0 0}th:last-child{border-radius:10px 0 0 0}td{color:#d7dcef}tbody tr:hover{background:#7161ed08}.dialog{background:linear-gradient(145deg,#1a2138,#13192e);box-shadow:0 30px 100px #0008;border-color:#4b5277}.empty{border:1px dashed #39426066;border-radius:18px;margin:15px 0;padding:38px 20px}.empty strong{font-weight:700;font-size:20px}.search{background:#141c31}.reply.admin{border-color:#79d9e0}.good{color:#7be0be}.warn{color:#e6cb92}.receipt{border-radius:15px}.discreet{line-height:1.8}@media(max-width:850px){.sidebar{padding:17px 16px 10px}.mini-brand{margin-bottom:16px}.mini-brand img{width:42px}.nav{gap:7px}.nav button{padding:8px 12px;font-size:12px}.content{padding:22px 16px 60px}.topbar{padding-bottom:18px}.topbar h1{font-size:22px}.hero{padding:25px}.hero h2{font-size:23px}.hero p{font-size:13px}.brand h1{font-size:30px}.auth-card{padding:24px}.brand p{font-size:14px}.auth{padding:48px 22px 65px}.auth:before{height:410px}.card{padding:20px}.table-wrap{padding:8px}.grid{gap:4px}}

/* Keep inactive navigation quiet and distinguish the active section. */
.shell .sidebar .nav button[data-action="nav"]{background:transparent;box-shadow:none;color:#aab5d4}
.shell .sidebar .nav button[data-action="nav"].active{background:linear-gradient(90deg,#6855d82d,#7163ee20);color:#d7d1ff;box-shadow:inset -3px 0 #8878ff}

/* Live browser 1.3 */
.live-header,.live-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.live-header{padding:10px 0;font-size:13px}.live-toolbar select{width:auto;min-width:130px;padding:8px}.live-viewport{background:#080b15;border:1px solid #3b4264;border-radius:14px;overflow:hidden;margin:14px 0}.live-viewport #screen-image{touch-action:none;user-select:none;min-height:180px}.live-dialog{max-height:95dvh;overflow:auto}.live-dialog.live-expanded{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);border-radius:12px}.live-dialog h2{font-size:25px;margin-bottom:8px}.live-dialog .screen-tools{position:sticky;bottom:0;background:#161d33;padding:10px;border:1px solid #353d5f;border-radius:14px;z-index:2}.live-dialog #browser-text{min-width:130px}.live-dialog .actions button{padding:9px 14px;font-size:13px}@media(max-width:600px){.dialog-back:has(.live-dialog){padding:6px}.live-dialog{padding:12px!important;width:100%;max-height:98dvh;border-radius:17px}.live-dialog .screen-tools{gap:5px;flex-wrap:wrap}.live-dialog h2{font-size:22px}.live-toolbar{gap:6px}.live-toolbar button{padding:8px 10px;font-size:12px}}

.desktop-dialog{width:calc(100vw - 20px);max-width:1400px;max-height:98dvh;overflow:auto;padding:18px}.desktop-dialog h2{font-size:24px;margin:8px 0}.desktop-dialog .actions{gap:6px}.desktop-dialog .actions button{font-size:12px;padding:8px 11px}#desktop-canvas{height:64dvh;min-height:340px;background:#070a12;border:1px solid #3b4264;border-radius:12px;overflow:auto;margin:12px 0;direction:ltr}.desktop-dialog .screen-tools input{min-width:120px}.desktop-dialog .discreet{font-size:12px;margin:8px 0}@media(max-width:600px){.dialog-back:has(.desktop-dialog){padding:4px}.desktop-dialog{padding:12px!important;width:100%;border-radius:14px}.desktop-dialog h2{font-size:22px}#desktop-canvas{height:58dvh;min-height:300px}.desktop-dialog .screen-tools{flex-wrap:wrap}}
