/* Q8 Elite — glass theme: deep green night, gold light, frosted panels. */
:root{--field:rgba(0,0,0,.22);--pop:#06281b;--glass1:rgba(255,255,255,.13);--glass2:rgba(255,255,255,.04);--bg:#021b12;--g:#0b6b45;--g2:#00311e;--gold:#c9b458;--gold2:#e6d98a;--ink:#f3efe2;--mut:#a5bdb0;--line:rgba(255,255,255,.14);--panel:rgba(255,255,255,.07);--panel2:rgba(255,255,255,.12);--red:#e2685e;--ok:#4ade80}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html{background:#021b12;color-scheme:dark}
body{font-family:Tajawal,system-ui,sans-serif;color:var(--ink);font-size:15px;line-height:1.5;
  background:radial-gradient(70vmax 70vmax at 100% -10%,rgba(20,140,90,.55),transparent 60%),radial-gradient(60vmax 60vmax at -10% 110%,rgba(201,180,88,.28),transparent 60%),radial-gradient(40vmax 40vmax at 40% 45%,rgba(0,87,52,.5),transparent 70%),#021b12;background-attachment:fixed}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
#root{height:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;position:relative}
.hide{display:none!important}
.glass,.card,.hero,.box,.kp>*,.top,.nav,.cmd,.q{background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.04));border:1px solid var(--line);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{0%{transform:scale(.9);opacity:.7}70%{transform:scale(1.6);opacity:0}100%{opacity:0}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes sheen{from{background-position:200% 0}to{background-position:-200% 0}}
.body>*,.login>*{animation:rise .45s ease both}
.body>*:nth-child(2){animation-delay:.05s}.body>*:nth-child(3){animation-delay:.1s}.body>*:nth-child(4){animation-delay:.15s}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* sign-in */
.login{flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:40px 22px 22px;text-align:center}
.halo{position:relative;width:128px;height:128px;display:grid;place-items:center;animation:float 5s ease-in-out infinite}
.halo:before,.halo:after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid var(--gold2);animation:pulse 3s ease-out infinite}
.halo:after{animation-delay:1.5s}
.halo img{width:108px;height:108px;border-radius:50%;background:#fff;padding:9px;object-fit:contain;box-shadow:0 0 40px rgba(230,217,138,.45);position:relative}
.login h1{font-size:30px;font-weight:800;margin-top:12px;letter-spacing:1px}
.login h5{font-size:15px;color:var(--gold2);font-weight:700;margin-top:2px}
.login .lead{font-size:13px;color:var(--mut);margin-top:8px;line-height:1.7;max-width:360px}
.steps{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:12.5px;color:var(--mut);font-weight:700}
.steps span{display:flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid var(--line);transition:.3s}
.steps span b{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--panel2);font-size:11px}
.steps span.on{color:#12240f;background:var(--gold2);border-color:var(--gold2);box-shadow:0 0 18px rgba(230,217,138,.45)}
.steps span.on b{background:#12240f;color:var(--gold2)}
.steps span.done{color:var(--ok);border-color:rgba(74,222,128,.5)}
.steps i{width:22px;height:1px;background:var(--line)}
.box{border-radius:22px;padding:18px;width:100%;max-width:380px;margin-top:16px;text-align:right;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.box label{font-size:12.5px;color:var(--gold2);display:block;margin-top:11px}
.box label:first-child{margin-top:0}
.box input[type=text],.box input[type=email],.box input[type=password]{width:100%;background:rgba(0,0,0,.22);border:1px solid var(--line);border-radius:13px;padding:12px;margin-top:5px;outline:0;transition:.2s}
.box input:focus,.in:focus,.cmd textarea:focus{border-color:var(--gold2);box-shadow:0 0 0 3px rgba(230,217,138,.18)}
.box input.ltr{direction:ltr;text-align:left}
.box input.code{letter-spacing:10px;font-size:22px;font-weight:800;text-align:center}
.box .chk{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--ink);margin-top:12px}
.box .btn{margin-top:14px;width:100%}
.link{color:var(--gold2);font-weight:700;text-decoration:underline;font-size:13.5px;margin-top:14px;display:block;width:100%;text-align:center}
.msg{font-size:13px;margin-top:12px;min-height:20px}
.msg.err{color:#ffb4ab}.msg.good{color:#a7f3c4}
.foot{margin-top:auto;padding-top:16px;font-size:11.5px;color:var(--mut)}

/* frame */
.top{margin:10px 10px 0;border-radius:20px;padding:10px 14px;display:flex;align-items:center;gap:10px;flex:none}
.top img{width:36px;height:36px;border-radius:50%;background:#fff;padding:3px;object-fit:contain}
.top b{font-size:16px;display:block;line-height:1.15}
.top small{font-size:11.5px;color:var(--gold2)}
.live{margin-inline-start:auto;font-size:12px;background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:20px;padding:5px 11px;display:flex;align-items:center;gap:7px}
.dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(74,222,128,.2),0 0 12px var(--ok);display:inline-block;flex:none}
.dot.off{background:var(--red);box-shadow:0 0 0 4px rgba(226,104,94,.2)}
.body{flex:1;overflow:auto;padding:12px 10px;display:flex;flex-direction:column;gap:11px}
.nav{display:flex;margin:0 10px calc(10px + env(safe-area-inset-bottom));border-radius:22px;padding:7px 4px;flex:none}
.nav button{flex:1;text-align:center;font-size:11.5px;color:var(--mut);font-weight:500;position:relative;border-radius:16px;padding:4px 0;transition:.25s}
.nav button i{display:block;font-style:normal;font-size:18px;line-height:1.25}
.nav .on{color:#12240f;font-weight:800;background:var(--gold2);box-shadow:0 0 18px rgba(230,217,138,.4)}
.nav .badge{position:absolute;top:-4px;inset-inline-start:calc(50% + 8px);background:var(--red);color:#fff;border-radius:10px;font-size:10px;padding:0 5px;font-weight:800}

.hero{border-radius:22px;padding:15px;position:relative;overflow:hidden;cursor:pointer;box-shadow:0 18px 40px rgba(0,0,0,.3)}
.hero:before{content:"";position:absolute;inset:-40% -20% auto auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(230,217,138,.35),transparent 65%);pointer-events:none}
.hero.busy:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.09) 50%,transparent 70%);background-size:200% 100%;animation:sheen 2.6s linear infinite;pointer-events:none}
.hero h3{font-size:12.5px;color:var(--gold2);font-weight:700;display:flex;gap:8px;align-items:center;position:relative}
.hero h2{font-size:17.5px;font-weight:800;margin:7px 0 9px;line-height:1.4;position:relative}
.hero p{font-size:13px;color:var(--mut);position:relative}
.bar{height:7px;background:rgba(255,255,255,.12);border-radius:7px;overflow:hidden;position:relative}
.bar i{display:block;height:100%;width:0;border-radius:7px;background:linear-gradient(90deg,var(--gold),var(--gold2));box-shadow:0 0 12px var(--gold2);transition:width .8s ease}
.tr{font-size:13px;margin-top:11px;display:grid;gap:7px;position:relative}
.tr div{display:flex;gap:8px;align-items:center}
.tr em{font-style:normal;margin-inline-start:auto;font-size:11px;background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:10px;padding:1px 8px;color:var(--gold2);white-space:nowrap}
.tr .w{opacity:.5}
.st{width:17px;height:17px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:10px;font-weight:800}
.st.d{background:var(--ok);color:#032}.st.r{border:2px solid var(--gold2);border-top-color:transparent;animation:spin 1s linear infinite}.st.w{border:2px solid rgba(255,255,255,.35)}
.kp{display:flex;gap:9px}
.kp>*{flex:1;border-radius:18px;padding:11px 6px;text-align:center;transition:transform .15s,background .2s;color:var(--ink)}
.kp button:active{transform:scale(.95)}
.kp button:hover{background:var(--panel2)}
.kp b{display:block;font-size:24px;color:var(--gold2);font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums}
.kp span{font-size:11.5px;color:var(--mut)}
.kp .g b{color:#fff}
.card{border-radius:20px;padding:13px;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.card.tap{cursor:pointer;transition:transform .15s}
.card.tap:active{transform:scale(.98)}
.card.gold{border-color:rgba(230,217,138,.7);box-shadow:0 0 26px rgba(230,217,138,.18)}
.card h4{font-size:13.5px;font-weight:800;color:var(--gold2);margin-bottom:7px;display:flex;align-items:center;gap:6px}
.card h4 em{font-style:normal;margin-inline-start:auto;font-size:11px;font-weight:500;color:var(--mut)}
.li{font-size:13px;display:flex;gap:8px;padding:6px 0;border-top:1px dashed var(--line)}
.li:first-of-type{border-top:0}
.li time{color:var(--gold2);font-size:11.5px;flex:none;min-width:40px}
.empty{font-size:13px;color:var(--mut);padding:4px 0}
.pre{white-space:pre-wrap;word-break:break-word;font-size:13.5px;line-height:1.7}
.chip{display:inline-block;font-size:11px;border-radius:10px;padding:2px 9px;background:rgba(74,222,128,.16);border:1px solid rgba(74,222,128,.4);color:#a7f3c4;font-weight:700;white-space:nowrap}
.chip.gd{background:rgba(230,217,138,.16);border-color:rgba(230,217,138,.45);color:var(--gold2)}
.chip.rd{background:rgba(226,104,94,.16);border-color:rgba(226,104,94,.45);color:#ffb4ab}
.chip.gy{background:rgba(255,255,255,.08);border-color:var(--line);color:var(--mut)}
.step{display:flex;gap:9px;font-size:13px;padding:8px 0;border-top:1px solid var(--line)}
.step:first-of-type{border-top:0}
.step .n{width:24px;height:24px;border-radius:50%;background:var(--ok);color:#032;display:grid;place-items:center;font-size:11px;font-weight:800;flex:none}
.step .n.r{background:var(--gold2);color:#12240f;box-shadow:0 0 14px var(--gold2)}.step .n.w{background:rgba(255,255,255,.14);color:var(--mut)}
.step p{color:var(--mut);font-size:11.5px}
.btns{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}
.btn{flex:1;text-align:center;font-size:13.5px;font-weight:800;border-radius:999px;padding:11px 10px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#12240f;min-width:90px;transition:transform .15s,box-shadow .2s;box-shadow:0 6px 18px rgba(201,180,88,.3)}
.btn:active{transform:scale(.96)}
.btn.o{background:transparent;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.btn.x{background:transparent;color:#ffb4ab;border:1px solid rgba(226,104,94,.5);box-shadow:none}
.btn.sm{padding:6px 10px;font-size:12.5px}
.btn:disabled{opacity:.5}
.ag{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.ag:first-of-type{border-top:0}
.ag .ic{width:38px;height:38px;border-radius:13px;background:rgba(0,0,0,.28);border:1px solid var(--line);color:var(--gold2);display:grid;place-items:center;font-weight:800;font-size:14px;flex:none}
.ag p{font-size:11.5px;color:var(--mut);word-break:break-word}
.ag .end{margin-inline-start:auto;display:flex;gap:6px;align-items:center;flex:none}
.ag>div{min-width:0}
.in{width:100%;border:1px solid var(--line);border-radius:13px;padding:11px 12px;font-size:13.5px;background:rgba(0,0,0,.22);margin-top:6px;outline:0;transition:.2s}
.in.ltr{direction:ltr;text-align:left}
.in::placeholder,.box input::placeholder,.cmd textarea::placeholder{color:var(--mut)}
.q{border-radius:13px;padding:9px 11px;font-size:13px;margin-top:7px}
.q small{display:block;color:var(--mut);font-size:11px}
.note{font-size:11.5px;color:var(--mut)}
.lvl{display:flex;gap:9px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.lvl:first-of-type{border-top:0}
.lvl b{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;color:#032;font-size:12px;flex:none}
.lvl b.a{background:var(--ok)}.lvl b.b{background:var(--gold2)}.lvl b.c{background:var(--red);color:#fff}
.stop{background:linear-gradient(135deg,#e2685e,#a5281f);color:#fff;text-align:center;font-weight:800;border-radius:999px;padding:15px;font-size:15px;width:100%;box-shadow:0 8px 26px rgba(226,104,94,.4)}
.stop.go{background:linear-gradient(135deg,#4ade80,#1f9d57);color:#032;box-shadow:0 8px 26px rgba(74,222,128,.35)}
.menu button{display:flex;width:100%;align-items:center;gap:10px;padding:14px 4px;border-top:1px solid var(--line);font-size:14px;font-weight:700;text-align:right}
.menu button:first-child{border-top:0}
.menu button span{margin-inline-start:auto;color:var(--gold2)}
.ring{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;margin:4px auto 0;position:relative}
.ring:after{content:"";position:absolute;inset:9px;border-radius:50%;background:#062a1c}
.ring b{position:relative;z-index:1;font-size:15px;color:var(--gold2)}

/* conversation */
.talk{display:flex;flex-direction:column;gap:9px}
.bub{max-width:88%;border-radius:18px;padding:9px 13px;font-size:14px;white-space:pre-wrap;word-break:break-word;animation:rise .3s ease both}
.bub.me{align-self:flex-start;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#12240f;border-bottom-right-radius:5px;font-weight:500}
.bub.it{align-self:flex-end;background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid var(--line);border-bottom-left-radius:5px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.bub.wait{color:var(--gold2);background-image:linear-gradient(110deg,rgba(255,255,255,.05) 30%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.05) 70%);background-size:200% 100%;animation:sheen 1.6s linear infinite}
.cmd{margin:0 10px 8px;border-radius:26px;padding:6px 6px 6px 8px;display:flex;gap:8px;align-items:flex-end;flex:none}
.cmd textarea{flex:1;border:1px solid transparent;border-radius:20px;padding:9px 12px;resize:none;outline:0;max-height:120px;background:transparent;font-size:14px}
.cmd button{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#12240f;border-radius:50%;width:42px;height:42px;font-size:19px;font-weight:800;flex:none;box-shadow:0 0 18px rgba(230,217,138,.45);transition:transform .15s}
.cmd button:active{transform:scale(.9)}
.cmd button:disabled{opacity:.5}

/* the box closes and a gold coin turns in 3D with a check mark */
.box.shut{animation:shut .38s ease forwards;transform-origin:top center}
@keyframes shut{to{transform:perspective(700px) rotateX(-80deg) scale(.6);opacity:0;max-height:0;padding:0;margin:0}}
.ok3d{margin-top:34px;perspective:700px;display:flex;flex-direction:column;align-items:center;gap:16px;animation:none}
.ok3d .coin{width:124px;height:124px;border-radius:50%;display:grid;place-items:center;transform-style:preserve-3d;
  background:radial-gradient(circle at 30% 25%,#fff7c2,var(--gold2) 40%,var(--gold) 75%,#7d6f2a);
  box-shadow:0 0 0 6px rgba(230,217,138,.18),0 0 60px rgba(230,217,138,.6),inset 0 -8px 16px rgba(0,0,0,.25);
  animation:coin 1.1s cubic-bezier(.2,.8,.2,1) both}
.ok3d .coin span{font-size:66px;font-weight:800;color:#12240f;line-height:1;animation:tick .5s .75s ease both}
.ok3d b{font-size:18px;color:var(--gold2);animation:rise .4s .8s ease both}
@keyframes coin{from{transform:rotateY(-720deg) rotateX(35deg) scale(.2);opacity:0}60%{opacity:1}to{transform:none;opacity:1}}
@keyframes tick{from{transform:scale(0) rotate(-40deg);opacity:0}70%{transform:scale(1.25)}to{transform:none;opacity:1}}

/* ideas from the ideas-box model: two lights that drift slowly behind the glass */
body:before,body:after{content:"";position:fixed;border-radius:50%;filter:blur(70px);opacity:.45;pointer-events:none;z-index:0}
body:before{width:300px;height:300px;background:#19a36a;top:-80px;right:-90px;animation:drift 10s ease-in-out infinite}
body:after{width:260px;height:260px;background:var(--gold);bottom:-90px;left:-70px;animation:drift 12s ease-in-out infinite reverse}
@keyframes drift{50%{transform:translate(28px,-22px) scale(1.08)}}
#root{z-index:1}
/* wrong password or wrong code */
@keyframes shake{20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}
.box.bad,.boxes.bad{animation:shake .45s}
.box.bad input,.box .boxes.bad input[type=text]{border-color:var(--red);box-shadow:0 0 0 3px rgba(226,104,94,.2)}
/* the verification step */
.box.center{text-align:center}
.phone{width:60px;height:60px;margin:0 auto 8px;border-radius:50%;display:grid;place-items:center;background:rgba(20,140,90,.35);border:1px solid rgba(255,255,255,.3)}
.phone i{width:18px;height:28px;border:2px solid #fff;border-radius:5px;position:relative;display:block}
.phone i:after{content:"";position:absolute;bottom:3px;left:50%;width:6px;height:2px;margin-left:-3px;background:#fff;border-radius:2px}
.phone.buzz{animation:ring 1.4s ease-in-out 2}
@keyframes ring{10%,30%{transform:rotate(-12deg)}20%,40%{transform:rotate(12deg)}50%{transform:none}}
.sent-title{display:block;font-size:18px}
.sent{font-size:13px;color:var(--mut);margin-top:2px}
.boxes{position:relative;display:flex;justify-content:center;gap:7px;direction:ltr;margin:16px 0 4px}
.box .boxes input[type=text]{width:42px;height:54px;padding:0;margin:0;border-radius:13px;text-align:center;font-size:23px;font-weight:800;
  background:rgba(255,255,255,.07);border:1.5px solid rgba(255,255,255,.3);transition:border-color .2s,box-shadow .2s,transform .45s,opacity .35s .15s}
.box .boxes input[type=text].filled{border-color:var(--gold2);background:rgba(230,217,138,.14)}
.boxes.checking:after{content:"";position:absolute;inset:-4px;border-radius:16px;pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);background-size:220% 100%;animation:sweep .9s linear infinite}
@keyframes sweep{from{background-position:120% 0}to{background-position:-120% 0}}
.box .boxes.merge input[type=text]{transform:translateX(var(--tx)) scale(.6);opacity:0}
.box.center .chk{justify-content:center}
.resend{font-size:13px;color:var(--mut);margin-top:12px}
.resend button{color:var(--gold2);font-weight:700;text-decoration:underline}
.timer{font-variant-numeric:tabular-nums}

/* wide screens (a computer): the menu moves to the side, the content uses the width in two columns */
@media (min-width:900px){
  body{font-size:16px}
  #root{max-width:860px}
  #root:has(.nav){max-width:1280px;display:grid;grid-template-columns:240px 1fr;grid-template-rows:auto 1fr auto;
    grid-template-areas:"nav top" "nav body" "nav cmd";padding:8px 0}
  #root:has(.nav) .top{grid-area:top;margin:10px 10px 0}
  #root:has(.nav) .body{grid-area:body;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:14px;padding:14px 10px}
  #root:has(.nav) .cmd{grid-area:cmd}
  #root:has(.nav) .nav{grid-area:nav;flex-direction:column;justify-content:flex-start;gap:6px;margin:10px;padding:14px 10px;border-radius:24px}
  #root:has(.nav) .nav button{flex:none;display:flex;align-items:center;gap:12px;padding:13px 14px;font-size:15px;text-align:right}
  #root:has(.nav) .nav button i{display:inline;font-size:19px;line-height:1}
  #root:has(.nav) .nav .badge{position:static;margin-inline-start:auto;font-size:11px;padding:1px 7px}
  .body>.btns,.body>.stop,.body>.note,.body>.kp,.body>.in,.body>.empty{grid-column:1/-1}
  #root:has(.nav) .body>.talk:nth-child(2):empty::before{content:"محادثتك مع الوكيل تظهر هنا. كلّفه بمهمة أو اسأله من الخانة تحت.";display:block;
    border:1px dashed var(--line);border-radius:20px;padding:26px 18px;text-align:center;color:var(--mut);font-size:14.5px}
  .login .box{max-width:440px}
  .login{justify-content:center;padding-top:24px}
  .login .foot{margin-top:18px}
  .bub{max-width:82%;font-size:15px}
  .hero h2{font-size:20px}
  .card h4{font-size:15px}
  .li,.step,.ag,.q,.pre{font-size:14.5px}
}

/* the small tools in the command bar: attach, speak, hear */
.cmd .tool{background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--ink);box-shadow:none;width:38px;height:38px;font-size:16px;font-weight:400}
.cmd .tool.on{background:var(--gold2);border-color:var(--gold2);box-shadow:0 0 16px rgba(230,217,138,.5)}

/* the picture of the platform's browser that the owner taps on */
.shot{display:block;width:100%;max-width:480px;margin:0 auto 8px;border-radius:14px;border:1px solid var(--line);background:#fff;cursor:crosshair;min-height:200px}
@media (min-width:900px){#root:has(.nav) .body:has(.shot){grid-template-columns:1fr}}

/* a message about what went wrong sits above the form, where it is seen */
.login .msg{width:100%;max-width:440px;margin:14px auto 0;padding:10px 14px;border-radius:14px;font-size:14px;font-weight:700;min-height:0;line-height:1.6}
.login .msg:empty{display:none}
.login .msg.err{background:rgba(226,104,94,.18);border:1px solid rgba(226,104,94,.6);color:#ffd2cc}
.login .msg.good{background:rgba(74,222,128,.14);border:1px solid rgba(74,222,128,.5);color:#c6f7d7}

/* small round buttons in the top bar (theme, menu) */
.icon-btn{width:38px;height:38px;border-radius:50%;background:var(--field);border:1px solid var(--line);font-size:16px;display:grid;place-items:center;transition:transform .15s,background .2s;color:var(--ink);flex:none}
.icon-btn:active{transform:scale(.9)}
.corner{position:absolute;top:14px;inset-inline-end:14px;z-index:2}
.login{position:relative}

/* ---- day theme: the same glass on a light ivory ground ------------------------------------------------ */
html[data-theme="light"]{background:#f3f1e8;color-scheme:light;
  --ink:#14261d;--mut:#5d6b62;--line:rgba(0,60,35,.16);--panel:rgba(255,255,255,.6);--panel2:rgba(0,87,52,.08);
  --field:rgba(255,255,255,.8);--pop:#fbfaf4;--glass1:rgba(255,255,255,.9);--glass2:rgba(255,255,255,.62);--ok:#1f9d57;--red:#b8342a}
html[data-theme="light"] body{background:radial-gradient(70vmax 70vmax at 100% -10%,rgba(20,140,90,.22),transparent 60%),radial-gradient(60vmax 60vmax at -10% 110%,rgba(201,180,88,.32),transparent 60%),#f3f1e8}
html[data-theme="light"] body:before,html[data-theme="light"] body:after{opacity:.22}
html[data-theme="light"] :is(.glass,.card,.box,.kp>*,.top,.nav,.cmd,.q,.tile){background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(255,255,255,.64));box-shadow:0 10px 30px rgba(0,60,35,.10)}
html[data-theme="light"] .hero{background:linear-gradient(160deg,#00311e,#0a4a30);color:#f3efe2;border-color:transparent}
html[data-theme="light"] .hero p{color:#c9d6cd}
html[data-theme="light"] .hero :is(h3,.tr em){color:#e6d98a}
html[data-theme="light"] :is(.top small,.card h4,.li time,.login h5,.link,.box label,.kp b,.usage,.inline,.meter b,.resend button,.page .card h3,.ring b,.menu button span,.card h3){color:#7a6b12}
html[data-theme="light"] .kp .g b{color:#14261d}
html[data-theme="light"] :is(.box input[type=text],.box input[type=email],.box input[type=password],.box select,.in){background:#fff;border-color:rgba(0,60,35,.22);color:#14261d}
html[data-theme="light"] .box .boxes input[type=text]{background:#fff;border-color:rgba(0,60,35,.28)}
html[data-theme="light"] .box .boxes input[type=text].filled{background:#fbf7dc;border-color:#b5a244}
html[data-theme="light"] :is(.live,.ag .ic,.tr em){background:rgba(0,87,52,.08)}
html[data-theme="light"] .hero .tr em{background:rgba(0,0,0,.25)}
html[data-theme="light"] .ag .ic{color:#005734}
html[data-theme="light"] .bub.it{background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.75))}
html[data-theme="light"] .chip{color:#17693f}
html[data-theme="light"] .chip.gd{color:#6d6718}
html[data-theme="light"] .chip.rd{color:#a5281f}
html[data-theme="light"] .chip.gy{color:#555;background:rgba(0,0,0,.05)}
html[data-theme="light"] .btn.x{color:#a5281f}
html[data-theme="light"] .login .msg.err{color:#8f231b;background:rgba(184,52,42,.10)}
html[data-theme="light"] .login .msg.good{color:#17693f;background:rgba(31,157,87,.10)}
html[data-theme="light"] .msg.err{color:#a5281f}
html[data-theme="light"] .msg.good{color:#17693f}
html[data-theme="light"] .ring:after{background:#fbfaf4}
html[data-theme="light"] .step .n.w{background:rgba(0,0,0,.08)}
html[data-theme="light"] .bar{background:rgba(0,60,35,.12)}
html[data-theme="light"] .hero .bar{background:rgba(255,255,255,.2)}
html[data-theme="light"] .phone i{border-color:#005734}
html[data-theme="light"] .phone i:after{background:#005734}
html[data-theme="light"] .phone{background:rgba(20,140,90,.14);border-color:rgba(0,60,35,.2)}
html[data-theme="light"] .menu-pop .danger{color:#a5281f}
html[data-theme="light"] .shot{border-color:rgba(0,60,35,.25)}

/* the page as an app: the hint shown when the browser has no install prompt of its own, and the notch on a phone */
.tip{position:fixed;inset-inline:14px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:60;margin:0 auto;max-width:420px;display:block;text-align:start;
  padding:14px 16px;border-radius:18px;background:var(--pop);border:1px solid var(--gold2);box-shadow:0 20px 50px rgba(0,0,0,.4);color:var(--ink);animation:rise .25s ease both}
.tip b{display:block;color:var(--gold2);font-size:14px;margin-bottom:4px}
.tip span{font-size:13px;line-height:1.8}
.links .get{color:var(--gold2);font-weight:700}
@media (display-mode:standalone){
  #root{padding-top:env(safe-area-inset-top)}
}

/* the sign-in page one step larger, on a phone and on a computer */
.login h1{font-size:33px}
.login h5{font-size:17px}
.login .box{max-width:420px}
.login .box label{font-size:14px}
.login .box label.terms{font-size:14px}
.login .box input[type=text],.login .box input[type=email],.login .box input[type=password],.login .box select{font-size:16px}
.login .box .boxes input[type=text]{font-size:24px}
.login .btn{font-size:15.5px;padding:13px 10px}
.login .link{font-size:15px}
.login .tabs button{font-size:15px}
.login .links button{font-size:14.5px}
.login .msg{font-size:15px}
.login .foot{font-size:13px}
.login .sent{font-size:14.5px}

/* answers with headings and points, and the row under an answer: copy, Word, PowerPoint, PDF */
.acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.act{font-size:11.5px;font-weight:700;color:var(--mut);padding:4px 10px;border-radius:999px;border:1px solid var(--line);background:var(--field);transition:.2s}
.act:hover{color:var(--gold2);border-color:var(--gold2)}
.act:disabled{opacity:.6}
.bub.rich{white-space:normal;text-align:start}
.rh{font-weight:800;color:var(--gold2);margin:10px 0 4px;line-height:1.5}
.rh:first-child{margin-top:0}
.rh1{font-size:17px}.rh2{font-size:15.5px}.rh3,.rh4{font-size:14.5px}
.rp{margin:4px 0}
.rli{position:relative;padding-inline-start:16px;margin:3px 0}
.rli:before{content:"";position:absolute;inset-inline-start:2px;top:.75em;width:6px;height:6px;border-radius:50%;background:var(--gold2)}
html[data-theme="light"] .rh{color:#7a6b12}
#print{display:none}
@media print{
  html,body{background:#fff !important;color:#111 !important;height:auto !important;overflow:visible !important}
  body:before,body:after,#root{display:none !important}
  #print{display:block;font-family:Tajawal,Arial,sans-serif;font-size:13pt;line-height:1.9;color:#111;padding:0 6mm}
  #print .print-head{display:flex;align-items:center;gap:10px;border-bottom:2px solid #c9b458;padding-bottom:8px;margin-bottom:14px}
  #print .print-head img{width:38px;height:38px;border-radius:50%}
  #print .print-head b{font-size:16pt;color:#005734}
  #print .rh{color:#005734;margin:14px 0 4px}
  #print .rh1{font-size:18pt}#print .rh2{font-size:15pt}#print .rh3,#print .rh4{font-size:13.5pt}
  #print .rli:before{background:#c9b458}
  #print .print-foot{margin-top:22px;border-top:1px solid #ccc;padding-top:6px;font-size:9pt;color:#666;text-align:center}
}
.btn.wide{display:block;width:calc(100% - 20px);margin:10px;flex:none}
.rich.result{font-size:14.5px;line-height:1.8;text-align:start}

/* the ideas box */
.idea-title{display:block;font-size:15px;margin:6px 0 2px}
.card .in{margin-top:8px}
.in.area{resize:vertical;min-height:84px;font-family:inherit}
.card .sub{display:block;font-size:12px;color:var(--mut);margin-top:6px}
a.btn{text-decoration:none;display:inline-block}

/* the rights line under the pages */
.rights{flex:none;width:100%;text-align:center;font-size:11px;line-height:1.7;color:var(--mut);margin:6px 0 2px;opacity:.85}
.links .rights{flex:0 0 100%}          /* in the links row it takes a line of its own; in a column it must not take the height */
.login .rights{font-size:12px;margin-top:14px}
.body>.rights{grid-column:1/-1}

/* the sign-in page on a computer: centred when there is room, and from the top (never cut) when the window is short */
@media (min-width:900px){
  .login{justify-content:flex-start;padding-top:24px}
  .login:before,.login:after{content:"";flex:1 1 0;min-height:8px}
}
@media (max-height:820px){
  .login{padding-top:18px}
  .login .halo{width:94px;height:94px}
  .login .halo img{width:80px;height:80px;padding:7px}
  .login h1{font-size:27px;margin-top:4px}
  .login h5{font-size:15px}
  .login .box{margin-top:12px;padding:16px}
  .login .box label{margin-top:8px}
  .login .box input[type=text],.login .box input[type=email],.login .box input[type=password],.login .box select{padding:10px 12px}
  .login .btn{padding:11px 10px}
  .login .link{margin-top:10px}
  .login .rights{margin-top:8px}
}
.login,.body{scrollbar-width:thin;scrollbar-color:var(--line) transparent}

/* computer and tablet windows: full-width buttons stay on their own row; a middle-sized window uses its width */
.body>.btn.wide,.body>.rights{grid-column:1/-1}
@media (min-width:900px){
  #root:has(.nav) .body>.btn.wide{width:auto;justify-self:start;min-width:240px;margin:0}
}
@media (min-width:600px) and (max-width:899px){
  #root{max-width:720px}
  body{font-size:15.5px}
}
.top small:empty{display:none}
.bub.pic{padding:8px;max-width:min(88%,420px)}
.bub.pic img{display:block;width:100%;height:auto;border-radius:12px}
a.act{text-decoration:none;display:inline-block}

/* the glass menu (⋮): frosted, springs from its button, items come down one after another */
.top{position:relative;z-index:30}
.icon-btn.dots{font-size:20px;font-weight:800;line-height:1}
.icon-btn.dots[aria-expanded=true]{background:var(--panel2);border-color:var(--gold2)}
.gmenu{position:absolute;top:74px;inset-inline-end:18px;min-width:230px;padding:8px;border-radius:22px;z-index:50;
  background:rgba(6,40,27,.55);border:1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.18);
  transform-origin:top left;transform:scale(.6) translateY(-8px);opacity:0;visibility:hidden;
  transition:transform .28s cubic-bezier(.2,1.3,.4,1),opacity .18s,visibility 0s .28s}
html[dir="ltr"] .gmenu{transform-origin:top right}
.gmenu.open{transform:none;opacity:1;visibility:visible;transition:transform .32s cubic-bezier(.2,1.3,.4,1),opacity .2s}
.gmenu button{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;border-radius:14px;color:var(--ink);font-size:15px;font-weight:500;
  text-align:start;opacity:0;transform:translateY(-6px);transition:background .15s,opacity .2s,transform .25s}
.gmenu.open button{opacity:1;transform:none}
.gmenu.open button:nth-child(1){transition-delay:.04s}.gmenu.open button:nth-child(2){transition-delay:.08s}
.gmenu.open button:nth-child(3){transition-delay:.12s}.gmenu.open button:nth-child(4){transition-delay:.16s}
.gmenu.open button:nth-child(5){transition-delay:.20s}.gmenu.open button:nth-child(6){transition-delay:.24s}
.gmenu button:hover,.gmenu button:focus-visible{background:rgba(255,255,255,.14);outline:none}
.gmenu button i{font-style:normal;font-size:17px;width:22px;text-align:center;flex:none}
html[data-theme="light"] .gmenu{background:rgba(255,255,255,.6);border-color:rgba(255,255,255,.8);box-shadow:0 18px 40px rgba(0,60,35,.16),inset 0 1px 0 rgba(255,255,255,.9)}
html[data-theme="light"] .gmenu button:hover,html[data-theme="light"] .gmenu button:focus-visible{background:rgba(255,255,255,.75)}
@media (prefers-reduced-motion:reduce){.gmenu,.gmenu button{transition:none!important}}

/* ---- screen size, once and for all -----------------------------------------------------------------------
   The page is exactly as tall as what the device shows (dvh follows a phone's moving bars), nothing inside may be
   wider than the page, and text grows a little with the window instead of jumping between fixed sizes. */
html,body{height:100%;overflow:hidden}
#root{height:100%;height:100dvh;min-height:0}
#root>*{min-width:0}
.body,.login{min-height:0;overscroll-behavior:contain}
img,video,canvas{max-width:100%}
.login{padding-inline:max(22px,env(safe-area-inset-left))}
.login>.box,.login>.msg,.login>.tabs,.login>.links{flex:none}
@media (min-width:900px){
  body{font-size:clamp(15px,.55vw + 9px,17px)}
  #root:has(.nav){max-width:min(1280px,96vw)}
}
@media (min-width:1500px){
  #root:has(.nav){grid-template-columns:260px 1fr}
}
@media (max-height:560px){                 /* a very short window: the logo steps aside so the form is reachable */
  .login .halo{width:64px;height:64px}
  .login .halo img{width:56px;height:56px;padding:5px}
  .login h1{font-size:22px;margin-top:2px}
  .login h5{display:none}
}
.gmenu hr{border:0;border-top:1px solid var(--line);margin:6px 10px}
.gmenu.open button:nth-child(n+7){transition-delay:.28s}
@media (min-width:900px){#root:has(.nav) .gmenu{top:86px}}
@media (max-width:599px){                  /* a phone: the tools take less room, the words more */
  .cmd{gap:5px;padding-inline:6px}
  .cmd .tool{width:32px;height:32px;font-size:14px}
  .cmd button.go,.cmd>button:last-child{width:40px;height:40px}
  .top{gap:8px}
  .top>div{min-width:0}
  .top small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
}
/* the glass menu, by the owner's word: glass first — nearly clear, a lighter touch of green, strong frost behind */
.gmenu{background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.07));border-color:rgba(255,255,255,.32);
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  box-shadow:0 18px 40px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.35)}
.gmenu button{text-shadow:0 1px 2px rgba(0,0,0,.35)}
.gmenu button:hover,.gmenu button:focus-visible{background:rgba(255,255,255,.20)}
html[data-theme="light"] .gmenu{background:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,.28))}
html[data-theme="light"] .gmenu button{text-shadow:none}

/* the logo, larger (owner's word): on the sign-in page and in the top bar */
.login .halo{width:168px;height:168px}
.login .halo img{width:144px;height:144px;padding:11px}
.top img{width:50px;height:50px}
@media (max-height:820px){
  .login .halo{width:128px;height:128px}
  .login .halo img{width:110px;height:110px;padding:9px}
}
@media (max-height:560px){
  .login .halo{width:84px;height:84px}
  .login .halo img{width:72px;height:72px;padding:6px}
}

/* the sign-in logo: the whole logo (emblem and name) on a white card, large, no circle (owner's word) */
.login .halo{width:auto;height:auto}
.login .halo:before,.login .halo:after{display:none}
.login .halo img{width:min(300px,72vw);height:auto;border-radius:24px;padding:0;background:#fff;box-shadow:0 0 44px rgba(230,217,138,.38),0 18px 40px rgba(0,0,0,.3)}
.login h1{display:none}                    /* the name is in the logo itself */
.login h5{margin-top:14px}
@media (max-height:820px){.login .halo{width:auto;height:auto}.login .halo img{width:min(226px,60vw);height:auto;padding:0}}
@media (max-height:560px){.login .halo{width:auto;height:auto}.login .halo img{width:150px;height:auto;padding:0}}
/* the sign-in logo card: glass, see-through (owner's word «شفاف») — light enough for the green emblem to read */
.login .halo img{background:linear-gradient(135deg,rgba(255,255,255,.74),rgba(255,255,255,.46));border:1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);
  box-shadow:0 18px 40px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.7)}
/* the sign-in logo with no background at all (owner's word «بدون خلفية»): the artwork alone on the page.
   A thin light edge and a soft gold glow keep the dark green of the emblem readable on the dark page. */
.login .halo img{background:none;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.75)) drop-shadow(0 0 18px rgba(230,217,138,.38))}
html[data-theme="light"] .login .halo img{filter:none}

/* the logo as points of light */
.login .halo canvas.dots{display:block;filter:drop-shadow(0 0 10px rgba(230,217,138,.28))}

/* the sign-in logo, final (owner's word «خلفية لون أبيض»): the whole logo on a plain white card, large, no circle */
.login .halo img{background:#fff;border:0;border-radius:24px;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 0 44px rgba(230,217,138,.34),0 18px 40px rgba(0,0,0,.3)}
html[data-theme="light"] .login .halo img{box-shadow:0 12px 34px rgba(0,60,35,.16)}

/* no zoom when typing on a phone: iPhones enlarge the whole page when a field's text is smaller than 16px */
@media (max-width:899px){
  .cmd textarea,.in,.box input[type=text],.box input[type=email],.box input[type=password],.box select,textarea,input[type=text],input[type=email],input[type=password],select{font-size:16px}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.cmd textarea{max-height:120px;overflow-y:auto}
/* what is attached, shown above the command bar until it is sent or removed */
.cmd{position:relative}
.cmd .att{position:absolute;bottom:calc(100% + 6px);inset-inline-start:8px;max-width:calc(100% - 16px);width:auto;height:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:12.5px;font-weight:500;padding:7px 13px;border-radius:999px;background:var(--pop);border:1px solid var(--gold2);color:var(--ink);box-shadow:0 8px 22px rgba(0,0,0,.3)}
.cmd .att.bad{border-color:var(--red);white-space:normal;border-radius:14px;line-height:1.6}

/* ---- the command bar: ＋ opens a glass sheet; one button listens or sends (14/11) ---- */
.ic{display:inline-flex;width:22px;height:22px;flex:none}
.ic svg{width:100%;height:100%;display:block}
.cmd{align-items:center;gap:6px;padding:6px}
.cmd .plus{background:rgba(255,255,255,.10);border:1px solid var(--line);color:var(--ink);box-shadow:none;width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;transition:transform .25s cubic-bezier(.2,1.3,.4,1),background .2s}
.cmd .plus.on{transform:rotate(45deg);background:rgba(255,255,255,.22)}
.cmd .go{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;transition:background .2s,box-shadow .2s,transform .15s}
.cmd .go.quiet{background:rgba(255,255,255,.10);border:1px solid var(--line);color:var(--ink);box-shadow:none}
.cmd .go.live{background:#e5484d;color:#fff;box-shadow:0 0 0 0 rgba(229,72,77,.55);animation:pulse 1.4s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 12px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}
.cmd .att{display:inline-flex;align-items:center;gap:8px}
.cmd .att .ic{width:14px;height:14px;opacity:.7}
.psheet{position:fixed;z-index:60;padding:8px;border-radius:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  box-shadow:0 18px 40px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.35);
  transform-origin:bottom right;transform:scale(.7) translateY(12px);opacity:0;visibility:hidden;
  transition:transform .28s cubic-bezier(.2,1.3,.4,1),opacity .18s,visibility 0s .28s}
html[dir="ltr"] .psheet{transform-origin:bottom left}
.psheet.open{transform:none;opacity:1;visibility:visible;transition:transform .32s cubic-bezier(.2,1.3,.4,1),opacity .2s}
.psheet .grip{display:block;width:38px;height:4px;border-radius:4px;background:rgba(255,255,255,.35);margin:4px auto 8px}
.psheet button{display:flex;align-items:center;gap:13px;width:100%;padding:10px 12px;border-radius:16px;color:var(--ink);text-align:start;background:none}
.psheet button:hover,.psheet button:focus-visible{background:rgba(255,255,255,.18);outline:none}
.psheet button>.ic{width:40px;height:40px;padding:9px;border-radius:13px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:var(--gold2)}
.psheet .tx{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.psheet .tx b{font-size:15px;font-weight:700}
.psheet .tx small{font-size:12px;color:var(--mut)}
.psheet .sw{flex:none;width:42px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);position:relative;transition:background .2s}
.psheet .sw::after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s}
.psheet .sw.on{background:var(--gold2);border-color:var(--gold2)}
.psheet .sw.on::after{transform:translateX(-18px)}
html[dir="ltr"] .psheet .sw.on::after{transform:translateX(18px)}
html[data-theme="light"] .psheet{background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.52));border-color:rgba(255,255,255,.9);box-shadow:0 18px 40px rgba(0,60,35,.18),inset 0 1px 0 rgba(255,255,255,.9)}
html[data-theme="light"] .psheet .grip{background:rgba(0,60,35,.2)}
html[data-theme="light"] .psheet button:hover,html[data-theme="light"] .psheet button:focus-visible{background:rgba(0,90,50,.07)}
html[data-theme="light"] .psheet button>.ic{background:rgba(0,90,50,.07);border-color:rgba(0,90,50,.12);color:#0b6b43}
html[data-theme="light"] .psheet .sw{background:rgba(0,60,35,.16);border-color:rgba(0,60,35,.18)}
html[data-theme="light"] .psheet .sw.on{background:#0b6b43;border-color:#0b6b43}
html[data-theme="light"] :is(.cmd .plus,.cmd .go.quiet){background:rgba(0,90,50,.06)}
@media (max-width:520px){.cmd .plus{width:38px;height:38px}}
@media (prefers-reduced-motion:reduce){.psheet,.cmd .plus,.cmd .go{transition:none!important;animation:none!important}}
.cmd .plus.on .ic,.cmd .plus .ic{pointer-events:none}
/* ---- earlier conversations ---- */
.trow{display:flex;flex-direction:column;gap:3px;width:100%;text-align:start;padding:12px 4px;background:none;color:var(--ink);border-bottom:1px dashed var(--line);border-radius:0}
.trow:last-child{border-bottom:0}
.trow b{font-size:14.5px;font-weight:700;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trow small{font-size:12px;color:var(--mut)}
.trow:hover b,.trow:focus-visible b{color:var(--gold2)}
html[data-theme="light"] .trow:hover b{color:#0b6b43}
.tnote{text-align:center;font-size:12px;color:var(--mut);margin:4px 0 10px}
.talk.old{display:flex;flex-direction:column;gap:10px;padding-bottom:12px}
/* ---- the cashier ---- */
.segs{display:flex;gap:7px;flex-wrap:wrap}
.seg{flex:1 1 auto;min-height:44px;padding:9px 12px;border-radius:14px;border:1px solid var(--line);background:var(--field);color:var(--ink);font-size:13.5px;font-weight:700;transition:background .2s,border-color .2s,color .2s}
.seg.on{background:linear-gradient(135deg,var(--gold2),var(--gold));border-color:transparent;color:#12240f}
.seg:disabled{opacity:.45}
.seg:focus-visible,.stp button:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
.plist{padding:4px 13px}
.prow{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px dashed var(--line)}
.prow:first-child{border-top:0}
.prow .pn{flex:1;min-width:0}
.prow .pn b{display:block;font-size:14px;font-weight:700;line-height:1.5}
.prow .pn small{font-size:12px;color:var(--mut)}
.prow .pn i{font-style:normal}
.prow .pn i.no{color:#ffb4ab}
.prow.on .pn b{color:var(--gold2)}
.prow.out .pn b{color:var(--mut)}
.stp{display:flex;align-items:center;gap:4px;flex:none;direction:ltr}
.stp button{width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:var(--field);font-size:20px;font-weight:700;line-height:1;color:var(--ink)}
.stp button:disabled{opacity:.35}
.stp button:active{transform:scale(.94)}
.stp b{min-width:26px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
.cbar{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border-radius:20px;border:1px solid rgba(230,217,138,.5);background:var(--pop);box-shadow:0 -8px 26px rgba(0,0,0,.28)}
.cbar>div{flex:1;min-width:0;display:flex;flex-direction:column}
.cbar b{font-size:14px}
.cbar span{font-size:12.5px;color:var(--gold2);font-variant-numeric:tabular-nums}
.cbar .btn{flex:none;min-width:110px}
.crow{justify-content:space-between;align-items:baseline}
.crow b{flex:none;font-variant-numeric:tabular-nums}
.ctot{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:14px}
.ctot b{font-size:20px;color:var(--gold2);font-variant-numeric:tabular-nums}
.cerr{margin-top:9px;padding:10px 12px;border-radius:13px;border:1px solid rgba(226,104,94,.5);background:rgba(226,104,94,.14);color:#ffb4ab;font-size:13px}
.cdone{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:20px 13px}
.cdone .tick{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:26px;font-weight:800;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#12240f;margin-bottom:6px}
.cdone small{font-size:12.5px;color:var(--mut)}
.cdone b{font-size:26px;font-weight:800;direction:ltr;font-variant-numeric:tabular-nums}
.cdone em{font-style:normal;font-size:15px;color:var(--gold2)}
a.btn{text-decoration:none;display:inline-block}
.btn.wa{background:linear-gradient(135deg,#4ade80,#1f9d57);color:#032}
html[data-theme="light"] .prow.on .pn b,html[data-theme="light"] .cbar span,html[data-theme="light"] .ctot b,html[data-theme="light"] .cdone em{color:#0b6b43}
html[data-theme="light"] .prow .pn i.no,html[data-theme="light"] .cerr{color:#a5281f}
html[data-theme="light"] .cbar{background:#fff}
.cinfo{display:flex;align-items:center;gap:10px;margin-top:4px}
.cinfo .ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#12240f}
.cinfo>div{flex:1;min-width:0}
.cinfo b{display:block;font-size:15px}
.cinfo small{display:block;font-size:12.5px;color:var(--mut);text-align:start}
.cinfo .btn{flex:none;min-width:0;min-height:40px;padding:6px 16px}
.chist{margin-top:10px}
.chist .kp>*{padding:8px 6px;border-radius:14px}
.chist .kp b{font-size:20px}
.chist .crow span{min-width:0}
.cnew{display:flex;align-items:center;gap:10px;margin:14px 0 2px;font-size:12px;color:var(--mut)}
.cnew:before,.cnew:after{content:"";flex:1;border-top:1px dashed var(--line)}
.trow small[dir="ltr"],.cinfo small[dir="ltr"]{text-align:right}
.cok{margin-top:9px;padding:10px 12px;border-radius:13px;border:1px solid rgba(74,222,128,.45);background:rgba(74,222,128,.14);color:#a7f3c4;font-size:13px}
html[data-theme="light"] .cok{color:#0b6b43}
.csug .psug{padding:10px 4px}
.csug .psug:disabled{opacity:.5}
.csug .psug i{font-style:normal}
.csug .psug i.no{color:#ffb4ab}
.clines{margin-top:10px}
.cline{padding:11px 0;border-top:1px dashed var(--line)}
.cline .cl1{display:flex;align-items:center;gap:8px}
.cline .cl1 b{flex:1;min-width:0;font-size:14.5px;color:var(--gold2);line-height:1.5}
.cline .cx{flex:none;width:44px;height:44px;border-radius:14px;border:1px solid var(--line);color:#ffb4ab;font-size:15px}
.cline .cl2{display:flex;align-items:flex-end;gap:8px;margin-top:4px}
.cline .cl2 label{flex:1;min-width:0;display:block}
.cline .cl2 label span{display:block;font-size:11.5px;color:var(--mut)}
.cline .cl2 .in{margin-top:3px;font-size:16px;padding:10px;text-align:center;font-variant-numeric:tabular-nums}
.cline .ct{flex:none;min-width:92px;text-align:end;padding-bottom:11px;font-size:14.5px;font-variant-numeric:tabular-nums}
.cline small{display:block;margin-top:5px;font-size:11.5px;color:var(--mut)}
.btn.cgo{padding:15px 10px;font-size:15px}
html[data-theme="light"] .cline .cl1 b{color:#0b6b43}
html[data-theme="light"] .cline .cx,html[data-theme="light"] .csug .psug i.no{color:#a5281f}
.cscan{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:18px;background:rgba(1,12,8,.94)}
.cscan .cam{position:relative;width:100%;max-width:520px;aspect-ratio:4/3;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#000}
.cscan video{width:100%;height:100%;object-fit:cover;display:block}
.cscan .aim{position:absolute;left:10%;right:10%;top:36%;bottom:36%;border:2px solid var(--gold2);border-radius:12px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
.cscan p{color:#f3efe2;font-size:14px;text-align:center;max-width:420px;line-height:1.7}
.cscan .btn{flex:none;min-width:160px;color:#f3efe2}
