@font-face{font-family:Sora;src:url(fonts/sora.woff2) format("woff2");font-weight:100 800;font-display:swap}
@font-face{font-family:"Plex Arabic";src:url(fonts/plex-ar-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Plex Arabic";src:url(fonts/plex-ar-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Plex Arabic";src:url(fonts/plex-ar-600.woff2) format("woff2");font-weight:600 700;font-display:swap}
:root{
  --navy:#12142E;--navy2:#1C1F42;--navy-line:#2A2E5C;--ink:#23263B;--mute:#5A5F78;
  --violet:#854DFF;--violet-d:#6D3BEA;--violet-dd:#4B2BB0;--lav:#C9B8FF;--tint:#F5F1FF;--tint2:#F1ECFF;
  --yellow:#EFBE19;--yellow-bg:#FFF4CC;--yellow-ink:#6B5200;--red:#A3261B;--red-bg:#FDECEA;
  --ground:#F6F4FB;--line:#E4DFF2;--line2:#D9D2EC;--card:#fff;
  --r-lg:20px;--r-md:14px;--r-sm:10px;--shadow:0 18px 40px -24px rgba(18,20,46,.35);
}
*{box-sizing:border-box}
html{font-family:Sora,"Plex Arabic",system-ui,sans-serif;color:var(--ink);background:var(--ground);-webkit-text-size-adjust:100%}
html[lang=ar]{font-family:"Plex Arabic",Sora,system-ui,sans-serif}
body{margin:0;min-height:100vh;font-size:15px;line-height:1.55}
h1,h2,h3,p{margin:0}
a{color:var(--violet-d)}a:hover{color:var(--violet-dd)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--lav);outline-offset:2px}
.skip{position:absolute;inset-inline-start:-999px}.skip:focus{inset-inline-start:12px;top:12px;background:#fff;padding:10px 14px;border-radius:8px;z-index:9}
.wrap{max-width:1180px;margin:0 auto;padding-inline:24px}
.mute{color:var(--mute)}.small{font-size:13px}

/* header */
.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding-block:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:600}
.logo{height:36px;width:auto;display:block}
.brand-name{border-inline-start:1.5px solid var(--line2);padding-inline-start:12px;line-height:1.2}
.top.it .brand-name{border-color:var(--navy-line)}
.nav{display:flex;gap:4px;margin-inline-start:auto;flex-wrap:wrap}
.nav a{padding:11px 15px;border-radius:10px;color:var(--mute);font-size:14px;font-weight:500;text-decoration:none}
.nav a:hover{background:var(--ground);color:var(--ink)}
.nav a[aria-current=page]{background:var(--tint2);color:var(--violet-dd);font-weight:600}
.lang{background:none;border:1.5px solid var(--line2);border-radius:10px;padding:9px 13px;font-size:13.5px;font-weight:600;min-height:44px}
.who{display:flex;align-items:center;gap:10px}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--navy2);color:#fff;font-size:13.5px;font-weight:600;display:grid;place-items:center;flex:none}
.avatar.it{background:var(--violet)}
.who b{display:block;font-size:14px;font-weight:600;line-height:1.3}

/* hero */
.hero{background:var(--navy);color:#fff;position:relative;overflow:hidden}
.hero .wrap{padding-block:56px 128px;position:relative}
.hero h1{font-size:clamp(34px,5vw,52px);line-height:1.1;font-weight:600;letter-spacing:-.03em;max-width:640px}
html[lang=ar] .hero h1,html[lang=ar] h1{letter-spacing:0}
.hero p{margin-top:16px;font-size:17px;line-height:1.6;color:#C9C6E4;max-width:520px}
.cubes{position:absolute;inset-inline-end:0;bottom:0;width:min(460px,60vw);height:auto;pointer-events:none}
[dir=rtl] .cubes{transform:scaleX(-1)}
@media (max-width:720px){.hero .wrap{padding-block:36px 110px}.cubes{opacity:.55}}

/* layout */
.cols{display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px}
.lift{margin-top:-80px;position:relative;padding-bottom:80px}
.main{flex:999 1 560px;min-width:0}
.side{flex:1 1 290px;min-width:0;display:flex;flex-direction:column;gap:18px;position:sticky;top:88px}
@media (max-width:940px){.side{position:static}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg)}
.card.pad{padding:clamp(20px,3.5vw,36px)}
.page{padding-block:36px 80px}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:24px}
.page-head h1{font-size:34px;font-weight:600;letter-spacing:-.02em;flex:1 1 240px;line-height:1.2}

/* form */
form.ticket{display:flex;flex-direction:column;gap:40px;box-shadow:var(--shadow)}
fieldset{border:0;padding:0;margin:0;min-width:0}
legend{padding:0;font-size:20px;font-weight:600;margin-bottom:16px;display:flex;gap:12px;align-items:center}
.num{width:30px;height:30px;border-radius:9px;background:var(--tint2);color:var(--violet-dd);font-size:15px;display:grid;place-items:center;font-family:Sora,sans-serif}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:12px}
.tile{text-align:start;padding:16px;min-height:122px;border-radius:var(--r-md);border:2px solid var(--line);background:#fff;display:flex;flex-direction:column;gap:8px;transition:border-color .12s,background .12s,transform .12s}
.tile:hover{border-color:var(--lav)}
.tile:active{transform:scale(.98)}
.tile[aria-pressed=true]{border-color:var(--violet-d);background:var(--tint)}
.tile svg{width:26px;height:26px;stroke:var(--violet-d);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tile b{font-size:15px;font-weight:600;line-height:1.3}
.tile span{font-size:12.5px;line-height:1.45;color:var(--mute)}
.impacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.impact{flex-direction:row;align-items:center;gap:14px;min-height:0;padding:15px 18px}
.impact>span:last-child{display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.bars{display:flex;gap:3px;align-items:flex-end;flex:none}
.bars i{width:5px;border-radius:2px;background:#DDD5F3}.bars i.on{background:var(--violet-d)}
.bars i:nth-child(1){height:8px}.bars i:nth-child(2){height:13px}.bars i:nth-child(3){height:18px}.bars i:nth-child(4){height:23px}
.bars.sm i{width:4px}.bars.sm i:nth-child(1){height:7px}.bars.sm i:nth-child(2){height:11px}.bars.sm i:nth-child(3){height:15px}.bars.sm i:nth-child(4){height:19px}
.field{display:flex;flex-direction:column;gap:8px}
.field label,.label{font-size:14px;font-weight:600}
.opt{font-weight:400;color:var(--mute)}
.stack{display:flex;flex-direction:column;gap:20px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
input[type=text],input[type=search],textarea,select{width:100%;border:1.5px solid var(--line2);border-radius:12px;padding:13px 14px;background:#fff;min-height:48px}
textarea{resize:vertical;line-height:1.6}
input:focus,textarea:focus,select:focus{border-color:var(--violet-d)}
.invalid{border-color:var(--red)!important}
.err{color:var(--red);font-size:13px;font-weight:600}
.drop{border:1.5px dashed #B9A8EE;border-radius:var(--r-md);background:#FAF8FF;padding:20px;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.drop.over{background:var(--tint2);border-color:var(--violet-d)}
.drop p{flex:1 1 220px;font-size:14px;color:var(--mute)}
.drop svg,.ico{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.drop>svg{color:var(--violet-d);width:28px;height:28px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;background:var(--tint2);color:var(--violet-dd);border-radius:999px;padding:6px 8px 6px 12px;font-size:13px;font-weight:500;max-width:100%}
.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.chip button{border:0;background:#fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;color:var(--violet-dd);font-size:15px;line-height:1}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.form-foot{border-top:1px solid var(--line);padding-top:26px}
.btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 26px;border-radius:12px;border:2px solid transparent;background:var(--violet-d);color:#fff;font-size:15px;font-weight:600;text-decoration:none;transition:background .12s}
.btn:hover{background:var(--violet-dd);color:#fff}
.btn[disabled]{opacity:.6;cursor:progress}
.btn.ghost{background:#fff;color:var(--violet-dd);border-color:var(--line2)}
.btn.ghost:hover{background:var(--tint);border-color:var(--lav)}
.btn.yellow{background:var(--yellow);color:var(--navy)}.btn.yellow:hover{background:#F6D04D;color:var(--navy)}
.btn.sm{min-height:44px;padding:0 16px;font-size:13.5px;border-radius:10px}
.attach{position:relative;overflow:hidden}
.attach input{position:absolute;inset:0;opacity:0;cursor:pointer}

/* summary side */
.sum{background:var(--navy2);color:#fff;border-radius:var(--r-lg);padding:26px;box-shadow:var(--shadow)}
.sum h2,.note h2{font-size:16px;font-weight:600;margin-bottom:16px}
.sum dl{margin:0;display:flex;flex-direction:column;gap:14px}
.sum dt{font-size:12.5px;color:var(--lav)}
.sum dd{margin:3px 0 0;font-size:15px;font-weight:500}
.sum .target{border-top:1px solid var(--navy-line);padding-top:14px}
.sum .target dd{font-size:24px;font-weight:600;color:var(--yellow);line-height:1.25}
.sum dd.empty,.sum .target dd.empty{color:#A9ABCB;font-weight:400;font-size:15px}
.note{padding:24px;display:flex;flex-direction:column;gap:8px}.note h2{margin:0}

/* confirmation */
.done{padding:clamp(28px,5vw,56px);display:flex;flex-direction:column;align-items:flex-start;gap:16px;box-shadow:var(--shadow)}
.done .tick{width:56px;height:56px;border-radius:16px;background:var(--tint2);display:grid;place-items:center;color:var(--violet-d);animation:pop .35s cubic-bezier(.3,1.5,.5,1)}
.done h2{font-size:34px;font-weight:600;letter-spacing:-.02em;line-height:1.2}
.done .ref{font-family:Sora,sans-serif;font-size:15px;font-weight:600;background:var(--navy);color:#fff;padding:8px 14px;border-radius:10px}
@keyframes pop{from{transform:scale(.5);opacity:0}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* status pills */
.pill{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;white-space:nowrap}
.pill svg{width:12px;height:12px;flex:none}
.pill.new{background:var(--yellow-bg);color:var(--yellow-ink)}
.pill.in_progress{background:var(--tint2);color:var(--violet-dd)}
.pill.waiting{background:#E3F0FF;color:#0B4A8F}
.pill.fixed{background:#EEF0F4;color:#3D4259}
.late{color:var(--red);font-size:12.5px;font-weight:600}

/* my tickets */
.list{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:10px}
.item{text-decoration:none;color:var(--ink);background:#fff;border:2px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.item:hover{border-color:var(--lav);color:var(--ink)}
.item[aria-current=true]{border-color:var(--violet-d)}
.item .meta{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--mute);align-self:stretch}
.item b{font-size:15px;font-weight:600;line-height:1.4}
.empty-state{padding:56px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.empty-state svg{width:120px;height:auto}
.empty-state h2{font-size:22px;font-weight:600}

/* ticket detail */
.detail{flex:999 1 520px;min-width:0;overflow:hidden}
.d-head{background:var(--navy);color:#fff;padding:28px clamp(20px,3.5vw,32px)}
.d-head .crumbs{font-size:13px;color:var(--lav);display:flex;flex-wrap:wrap;gap:4px 14px}
.d-head h2{margin-top:10px;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-.01em;overflow-wrap:anywhere}
.steps{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.steps li{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#C9C6E4}
.steps li::before{content:"";height:6px;border-radius:3px;background:var(--navy-line)}
.steps li.is-done{color:#fff;font-weight:600}.steps li.is-done::before{background:var(--yellow)}
.steps li.is-now::before{background:linear-gradient(90deg,var(--yellow) 55%,var(--navy-line) 55%)}
[dir=rtl] .steps li.is-now::before{background:linear-gradient(270deg,var(--yellow) 55%,var(--navy-line) 55%)}
.steps small{font-size:12px;font-weight:400;color:#C9C6E4}
.d-body{padding:26px clamp(20px,3.5vw,32px);display:flex;flex-direction:column;gap:20px}
.handler{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.handler b{font-size:14px;font-weight:600;display:block}
.banner{background:#E3F0FF;color:#0B4A8F;border-radius:var(--r-md);padding:14px 16px;font-size:14px;font-weight:500;display:flex;gap:10px;align-items:center}
.msg{display:flex;flex-direction:column;gap:6px;max-width:min(540px,92%);align-self:flex-start}
.msg .by{font-size:12.5px;color:var(--mute)}
.msg .bubble{background:var(--ground);border-radius:16px;border-start-start-radius:4px;padding:13px 16px;font-size:14.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.msg.it{align-self:flex-end}.msg.it .by{text-align:end}
.msg.it .bubble{background:var(--tint2);border-start-start-radius:16px;border-start-end-radius:4px}
.event{align-self:center;font-size:12.5px;color:var(--mute);background:var(--ground);padding:5px 14px;border-radius:999px;text-align:center}
.files{display:flex;flex-wrap:wrap;gap:8px}
.files a.img{display:block;width:96px;height:72px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.files img{width:100%;height:100%;object-fit:cover;display:block}
.files a.doc{display:inline-flex;align-items:center;gap:7px;font-size:13px;text-decoration:none;border:1px solid var(--line);border-radius:10px;padding:8px 12px;min-height:44px}
.reply{border-top:1px solid var(--line);padding-top:20px;display:flex;flex-direction:column;gap:12px}
.facts{padding:24px;display:flex;flex-direction:column;gap:14px}
.facts h2{font-size:16px;font-weight:600}
.facts dl{margin:0;display:flex;flex-direction:column;gap:12px}
.facts dt{font-size:12.5px;color:var(--mute)}.facts dd{margin:2px 0 0;font-size:14.5px;font-weight:500;overflow-wrap:anywhere}
.back{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;text-decoration:none;margin-bottom:18px;min-height:44px}
[dir=rtl] .back svg{transform:scaleX(-1)}

/* IT queue */
.top.it{background:var(--navy);border-bottom:0}
.top.it .brand,.top.it .who b{color:#fff}.top.it .who .mute{color:#C9C6E4}
.top.it .nav a{color:#C9C6E4}.top.it .nav a:hover{background:var(--navy2);color:#fff}
.top.it .nav a[aria-current=page]{background:var(--navy-line);color:#fff}
.top.it .lang{color:#fff;border-color:var(--navy-line)}
.counts{display:flex;flex-wrap:wrap;gap:10px 30px}
.counts b{display:block;font-size:30px;font-weight:600;line-height:1.1;font-family:Sora,sans-serif}
.counts span{font-size:13px;color:var(--mute)}.counts .bad b{color:var(--red)}
.alert{background:var(--navy2);color:#fff;border-radius:var(--r-lg);padding:22px 26px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-bottom:14px}
.alert .badge{width:52px;height:52px;border-radius:14px;background:var(--yellow);display:grid;place-items:center;color:var(--navy);flex:none}
.alert .txt{flex:1 1 320px;min-width:0}
.alert .k{font-size:13px;color:var(--yellow);font-weight:600}
.alert a.t{display:block;color:#fff;font-size:18px;font-weight:600;margin-top:4px;line-height:1.35;text-decoration:none}
.alert a.t:hover{text-decoration:underline}
.alert .s{font-size:13.5px;color:#C9C6E4;margin-top:4px}
.toolbar{padding:16px 18px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid var(--line)}
.fpill{min-height:44px;padding:0 17px;border-radius:999px;border:2px solid var(--line);background:#fff;color:#3D4259;font-size:14px;font-weight:600}
.fpill[aria-pressed=true]{background:var(--violet-d);border-color:var(--violet-d);color:#fff}
.fpill em{font-style:normal;opacity:.75;margin-inline-start:6px;font-weight:500}
.toolbar .search{margin-inline-start:auto;flex:1 1 220px;max-width:300px}
.scroll{overflow-x:auto}
table{width:100%;min-width:900px;border-collapse:collapse}
th{font-size:12.5px;font-weight:600;color:var(--mute);text-align:start;padding:13px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:15px 16px;border-bottom:1px solid #EFEBF8;font-size:14px;vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#FBFAFE}
td .sub{font-weight:600;line-height:1.4;color:var(--ink);text-decoration:none;display:block;margin-top:3px}
td .sub:hover{color:var(--violet-d)}
td.nw{white-space:nowrap}
.imp{display:flex;align-items:center;gap:10px;white-space:nowrap}
.sr{position:absolute;inset-inline-start:-9999px}
.loading{padding:60px;text-align:center;color:var(--mute)}
#toast{position:fixed;bottom:22px;inset-inline:0;margin:auto;width:max-content;max-width:calc(100vw - 32px);background:var(--navy);color:#fff;padding:13px 20px;border-radius:12px;font-size:14px;font-weight:500;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;z-index:20}
#toast.show{opacity:1;transform:none}
#toast.bad{background:var(--red)}
.demo-bar{background:var(--yellow);color:var(--navy);font-size:13.5px;font-weight:600;padding:8px 16px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:center}
.demo-bar button{border:2px solid var(--navy);background:transparent;border-radius:999px;padding:5px 14px;font-weight:600;font-size:13px;min-height:36px}
.demo-bar button[aria-pressed=true]{background:var(--navy);color:#fff}

@media (max-width:720px){
  .wrap{padding-inline:16px}
  .top .wrap{gap:8px 10px}
  .who>span:last-child{display:none}
  .nav{order:5;width:100%;margin:0}
  .nav a{flex:1;text-align:center;padding-inline:8px}
  .brand{margin-inline-end:auto}
  .cubes{width:42vw;opacity:.5}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tile{min-height:104px;padding:13px}.tile b{font-size:14px}.tile>span{display:none}
  .impacts{grid-template-columns:1fr}.tile.impact{min-height:0}.impact>span{display:flex!important}
  .page-head h1{font-size:28px}
  .toolbar .search{max-width:none;margin:0;flex-basis:100%}
  .steps li{font-size:12px}
}

/* equipment and custody */
.pill.e-assigned{background:var(--tint2);color:var(--violet-dd)}
.pill.e-in_stock{background:#E3F0FF;color:#0B4A8F}
.pill.e-repair{background:var(--yellow-bg);color:var(--yellow-ink)}
.pill.e-retired{background:#EEF0F4;color:#3D4259}
.toolbar .btn{flex:none}
.eq-ico{width:48px;height:48px;border-radius:14px;background:var(--tint2);color:var(--violet-d);display:grid;place-items:center;flex:none}
.eq-ico.sm{width:38px;height:38px;border-radius:11px}.eq-ico.sm .ico{width:20px;height:20px}
.eq-cell{display:flex;align-items:center;gap:12px}
.eq-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.eq-card{padding:22px;display:flex;flex-direction:column;gap:14px}
.eq-card b{font-size:16px;font-weight:600;display:block}
.h3{font-size:16px;font-weight:600}
.hist-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.hist{border:1.5px solid var(--line);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:10px}
.hist.open{border-color:var(--violet-d);background:#FCFBFF}
.hist-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hist-top b{display:block;font-size:15px;font-weight:600}
.bubble-note{background:var(--ground);border-radius:10px;padding:10px 12px;font-size:13.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.doc-link{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:500;min-height:44px;overflow-wrap:anywhere}
dialog{border:0;border-radius:var(--r-lg);padding:clamp(20px,4vw,32px);width:min(600px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;color:var(--ink);box-shadow:0 30px 80px -20px rgba(18,20,46,.55)}
dialog::backdrop{background:rgba(18,20,46,.55)}
dialog h2{font-size:22px;font-weight:600;line-height:1.3}
dialog input[type=date],dialog input[type=file]{width:100%;border:1.5px solid var(--line2);border-radius:12px;padding:11px 14px;background:#fff;min-height:48px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.dlg-foot{border-top:1px solid var(--line);padding-top:20px}
.problems{margin:0;padding-inline-start:20px;font-size:13.5px;color:var(--mute);display:flex;flex-direction:column;gap:4px}
.toolbar .search{flex:1 1 140px}
@media (max-width:720px){.logo{height:26px}.brand-name{font-size:13.5px;padding-inline-start:9px}.brand{gap:9px}.lang{padding:9px 10px}}

/* management screens */
.tabs{display:flex;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px;flex-wrap:wrap}
.tabs a{padding:9px 16px;border-radius:9px;font-size:14px;font-weight:600;color:var(--mute);text-decoration:none;min-height:40px;display:flex;align-items:center}
.tabs a[aria-selected=true]{background:var(--navy);color:#fff}
.sec{font-size:18px;font-weight:600;margin:30px 0 14px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:4px}
.kpi b{font-family:Sora,sans-serif;font-size:26px;font-weight:600;line-height:1.15;overflow-wrap:anywhere}
.kpi span{font-size:13px;color:var(--mute);line-height:1.35}
.kpi.bad b{color:var(--red)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:16px;margin-bottom:16px}
.pad-s{padding:22px;display:flex;flex-direction:column;gap:14px;margin-bottom:0}
.page>.card{margin-bottom:16px}
.bars-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.bars-list li{display:grid;grid-template-columns:minmax(90px,38%) 1fr auto;gap:10px;align-items:center;font-size:13.5px}
.bl-k{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bl-track{height:10px;background:var(--ground);border-radius:5px;overflow:hidden;display:block}
.bl-track i{display:block;height:100%;background:var(--violet-d);border-radius:5px}
.bars-list b{font-weight:600;white-space:nowrap}
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.rows li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #EFEBF8;font-size:14px}
.rows li:last-child{border-bottom:0}
.rows li>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.rows.big li{padding:14px 0}.rows .eq-cell{flex-direction:row!important;align-items:center}
.trend{display:flex;align-items:flex-end;gap:8px;overflow-x:auto;padding-top:6px}
.trend div{flex:1 0 34px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11.5px;color:var(--mute)}
.trend i{width:100%;max-width:44px;background:var(--violet-d);border-radius:6px 6px 2px 2px;display:block}
.trend b{font-size:12.5px;color:var(--ink);font-weight:600}
.trend span{white-space:nowrap}
.toolbar.bare{padding:0 0 16px;border:0}
.hint-bar{background:var(--yellow-bg);color:var(--yellow-ink);font-size:13.5px;font-weight:500;padding:12px 18px;display:flex;gap:10px;align-items:center}
.hint-bar.lock{background:var(--navy2);color:#fff;border-radius:var(--r-md);margin-bottom:16px}
.pill.due-bad{background:var(--red-bg);color:var(--red)}
.progress{margin-top:22px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#C9C6E4}
.progress>div{height:8px;border-radius:4px;background:var(--navy-line);overflow:hidden}
.progress i{display:block;height:100%;background:var(--yellow)}
.check{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;min-height:44px;cursor:pointer}
.check input{width:20px;height:20px;accent-color:var(--violet-d)}
.msg.note .bubble{background:var(--yellow-bg);color:#3D3000;border:1px dashed #D9B63A}
.msg.note .by{display:flex;gap:6px;align-items:center;justify-content:flex-end;color:var(--yellow-ink);font-weight:600}
.msg.note .by .ico{width:14px;height:14px}
.qr-box{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);padding-top:16px}
.qr{width:92px;height:92px;flex:none}.qr svg{width:100%;height:100%;display:block}
.btn.danger{color:var(--red);border-color:#F1C9C5}.btn.danger:hover{background:var(--red-bg);color:var(--red)}
.btn.danger-solid{background:var(--red)}.btn.danger-solid:hover{background:#7F1D15}
.with-btn{display:flex;gap:8px}.with-btn input{flex:1;font-family:ui-monospace,Menlo,Consolas,monospace}
.vault{list-style:none;margin:0;padding:0}
.vault li{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #EFEBF8}
.vault li:last-child{border-bottom:0}
.v-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 260px}
.v-main b{font-size:15px;font-weight:600}
.secret{display:block;margin-top:8px;background:var(--navy);color:#fff;border-radius:10px;padding:12px 14px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;overflow-wrap:anywhere;user-select:all;direction:ltr;text-align:left}

/* QR stickers */
.labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.sticker{background:#fff;border:1px dashed #B9B4CC;border-radius:10px;padding:12px;display:flex;gap:12px;align-items:center;break-inside:avoid;direction:ltr}
.label-qr{width:86px;height:86px;flex:none}.label-qr svg{width:100%;height:100%;display:block}
.label-txt{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:11px;color:var(--mute)}
.label-txt img{height:16px;width:auto;align-self:flex-start;margin-bottom:3px}
.label-txt b{font-family:Sora,sans-serif;font-size:17px;color:var(--ink);font-weight:700;letter-spacing:.2px}
.label-txt>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.label-cta{white-space:normal!important;color:var(--ink);font-weight:500;margin-top:3px;line-height:1.35}

/* custody form: an A4 sheet on screen, the whole page in print */
.sheet{background:#fff;width:min(100%,210mm);min-height:297mm;margin:0 auto;box-shadow:var(--shadow);display:flex;flex-direction:column;font-family:Sora,"Plex Arabic",sans-serif;color:#23263B;font-size:13px;position:relative}
.sheet [lang=ar]{font-family:"Plex Arabic",sans-serif}
.sheet-top{background:#854DFF;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:9mm 14mm;font-size:16px;font-weight:600;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet-logo{height:11mm;width:auto;filter:brightness(0) invert(1)}
.sheet-body{padding:10mm 14mm;flex:1;display:flex;flex-direction:column;gap:7mm}
.sheet-title{font-size:22px;font-weight:600;display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:2px solid #854DFF;padding-bottom:3mm}
.sheet-title span{font-size:21px}
.sheet table{min-width:0;width:100%;border-collapse:collapse}
.sheet th,.sheet td{border:1px solid #CFC8E6;padding:2.6mm 3mm;font-size:12.5px;text-align:left;vertical-align:middle;white-space:normal;color:#23263B}
.sheet th{background:#F5F1FF;font-weight:600;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet th span,.sheet td span[lang=ar]{display:block;font-weight:500;font-size:11.5px;color:#5A5F78}
.sheet-facts th{width:19%}.sheet-facts td{width:31%}
.sheet-terms{display:flex;flex-direction:column;gap:3mm;line-height:1.7;font-size:12.5px}
.sheet-terms p{margin:0}
.signs{display:grid;grid-template-columns:repeat(3,1fr);gap:8mm;margin-top:auto;padding-top:14mm}
.sign{display:flex;flex-direction:column;gap:1.5mm;font-size:11.5px}
.sign-line{border-bottom:1px solid #23263B;height:14mm}
.sign b{font-weight:600}
.sheet-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10mm;padding:0 14mm 8mm 0;font-size:10.5px;color:#5A5F78}
.sheet-cubes svg{width:30mm;height:auto;display:block;transform:scaleX(-1)}

@media (max-width:720px){.nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.nav a{flex:none;white-space:nowrap}.signs{grid-template-columns:1fr}}
@media print{
  .top,.demo-bar,.no-print,#toast,.skip{display:none!important}
  html,body{background:#fff!important}
  .wrap,.page{max-width:none!important;padding:0!important;margin:0!important}
  .sheet{box-shadow:none;width:210mm;min-height:296mm}
  .labels{grid-template-columns:repeat(3,1fr);gap:4mm;padding:8mm}
  .sticker{border:1px dashed #999}
  @page{size:A4;margin:0}
}
.nav a{padding:10px 11px}.top .wrap{max-width:1280px}
.rows .eq-cell>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.side .actions .btn{white-space:normal;text-align:center;padding:10px 16px}
