/* v6 product layer: RTL, mobile safe areas, shared feedback and controls. */
html,body{font-family:Vazirmatn,sans-serif;overscroll-behavior-y:none}*{box-sizing:border-box}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a,button{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid var(--aqua-400,#00d4c1);outline-offset:3px}.hidden,[hidden]{display:none!important}.ic{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.iconbtn,.cbtn,.eyebtn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.fieldwrap{position:relative}.fieldwrap .eyebtn{position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--text-2)}.fieldwrap:has(.eyebtn) input{padding-inline-end:52px}.fieldwrap>.ic{pointer-events:none}.eyebtn .ic{position:static!important;transform:none!important}.welcome-theme{display:flex;gap:6px;justify-content:center;padding:14px 16px}.welcome-theme button{display:flex;gap:6px;align-items:center;min-height:40px;border:1px solid var(--stroke);border-radius:12px;padding:6px 14px;color:var(--text-2);background:var(--surface-2,transparent)}.welcome-theme button[aria-pressed=true]{color:var(--aqua-400);border-color:currentColor}.phone{width:100%;max-width:480px;height:100dvh;min-height:0}.viewport{min-height:0}.screen{overflow-x:hidden;scroll-padding-bottom:120px}.pad,.card,.rl{min-width:0}.row .rl{overflow-wrap:anywhere}input,textarea{max-width:100%;font-size:16px!important}.btn{white-space:normal;min-height:46px}.tab.fab .fabmark{background:none!important;border:none!important;box-shadow:none!important;width:44px!important;height:48px!important;transform:translateY(-8px)!important}.tab.fab .fabmark .logomark{width:34px!important;height:46px!important}.tab.fab .lb{margin-top:0!important}.bub-av.zbot{background:transparent!important;border:none!important}.bub-msg{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;min-width:0}.sheet{max-height:85dvh;overflow-y:auto;padding-top:42px!important}.sheet-close{position:absolute;top:4px;inset-inline-end:8px}.sheetmask.show{touch-action:none}#ob-close{position:relative!important;display:flex;margin-inline-start:auto;top:auto!important;inset-inline-end:auto!important;margin-bottom:8px}.brand-loading{padding:42px 20px;display:flex;align-items:center;flex-direction:column;gap:18px;text-align:center;min-height:240px}.loader-orbit{width:100px;height:100px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,rgba(0,212,193,.19),transparent);position:relative;cursor:pointer}.loader-orbit:before{content:'';position:absolute;inset:-5px;border:2px solid transparent;border-top-color:#00d4c1;border-inline-end-color:#2979ff;border-radius:50%;animation:orbit 1.8s linear infinite}.loader-orbit img{width:51px;height:70px;object-fit:contain;animation:float 2s ease-in-out infinite}.loading-dots{display:flex;gap:8px}.loading-dots i{width:7px;height:7px;background:#00d4c1;border-radius:50%;animation:float 1s infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}.bounce{animation:bounce .55s ease}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes float{50%{transform:translateY(-6px);opacity:.55}}@keyframes bounce{50%{transform:scale(1.16) rotate(-9deg)}}.reduce-motion *, .reduce-motion *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#pf-avatar{width:78px;height:78px;aspect-ratio:1;border-radius:50%!important;inset:9px!important}#pf-ring{width:96px;height:96px;line-height:0}#pf-ring svg{display:block}.skill-row{display:grid;grid-template-columns:76px 1fr 40px;gap:8px;align-items:center;margin:14px 0}.skill-track,.result-track{height:10px;border-radius:10px;overflow:hidden;background:rgba(120,140,170,.18);display:flex}.skill-track i{background:linear-gradient(90deg,#2979ff,#00d4c1);display:block}.result-track .correct{background:#00c99c}.result-track .incorrect{background:#f57490}.result-row{margin:16px 0}.result-label{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px}.badges-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.badge-tile{text-align:center;border:1px solid var(--stroke);border-radius:18px;padding:14px 6px}.badge-tile.locked{opacity:.45}.badge-tile .ic{width:32px;height:32px;color:#efb849}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid a{text-decoration:none;color:inherit}.goalcard{overflow:hidden}.goal-art{width:100%;height:86px;object-fit:contain;display:block;margin-bottom:8px}.scenario-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scenario-card{padding:16px 10px;border:1px solid var(--stroke);background:var(--surface-2,transparent);border-radius:18px;color:var(--text-1);text-align:center}.scenario-card img{display:block;width:100%;height:70px;object-fit:contain;margin-bottom:10px}.scenario-card b{display:block}.chat-page .viewport{display:flex;flex-direction:column}.chat-page .screen{position:relative;flex:1;min-height:0;padding-bottom:24px!important;height:auto!important}.chat-page .dockzone{position:relative!important;inset:auto!important;flex:none;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;background:var(--bg,#0d1326);width:100%!important;transform:none!important}.chat-page .composer{position:relative!important;bottom:auto!important;max-width:100%;align-items:flex-end}.chat-page .tabbar{display:none!important}.chat-page #chat-messages{padding-bottom:24px}.chat-page .tailpad{height:8px!important}.chat-page #chat-input{max-height:132px;min-height:44px;line-height:1.65;overflow-y:auto}.chat-page .bub-row{align-items:flex-start}.chat-card{margin:10px 0 20px;padding:16px;border:1px solid rgba(0,212,193,.35);border-radius:20px;background:linear-gradient(135deg,rgba(0,212,193,.07),rgba(41,121,255,.07))}.chat-card .optbtn{width:100%;margin-top:8px}.chat-card h4{margin:0 0 12px}.chat-card .feedback{margin-top:12px;white-space:pre-wrap}.audio-player{position:fixed;z-index:80;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:450px;padding:12px 14px;border:1px solid var(--stroke);border-radius:20px;background:var(--surface-1,#172139);box-shadow:0 10px 35px #0005}.audio-player .audio-head{display:flex;align-items:center;gap:8px}.audio-player .audio-status{flex:1;font-size:12px}.audio-player audio{width:100%;height:38px;margin-top:8px}.audio-player progress{width:100%;height:5px}.audio-player .audio-actions{display:flex;gap:8px;align-items:center}.audio-player .audio-actions button{border:0;background:transparent;color:inherit;min-height:40px}.settings-group{margin-bottom:18px}.settings-group h3{font-size:14px;margin:0 0 12px}.setrow{gap:12px;min-height:56px}.setrow input[type=checkbox]{width:22px;height:22px;accent-color:#00bda9}.setrow select{max-width:150px;color:inherit;background:var(--surface-2,#172139);border:1px solid var(--stroke);padding:8px;border-radius:10px}.setrow small{display:block;color:var(--text-3);margin-top:4px}.form-error:empty{display:none}body[data-theme=light] .audio-player,body[data-theme=light] .chat-page .dockzone{background:#fff}body[data-theme=light] .setrow select{background:#f2f5fc}body[data-theme=light] .ic{color:inherit}@media(max-width:360px){.pad{padding-inline:12px}.appbar{padding-inline:12px}.tab .lb{font-size:10px}.badges-grid{gap:6px}.scenario-grid{gap:8px}.chat-page .iconbtn{min-width:40px;width:40px}.chat-page .bub-av{width:26px;flex-shrink:0}}@media(min-width:600px){body{background:radial-gradient(ellipse at top,#1b3654,#080e1d)}.phone{box-shadow:0 0 60px #0004}.screen{scrollbar-width:thin}}
.screen{padding-top:calc(6px + env(safe-area-inset-top))!important}.screen:has(#ob-close) .pad[style*="padding-top:44px"]{padding-top:8px!important}.chat-page .screen>div:first-child{gap:6px!important;padding:10px 12px!important}.chat-page .screen>div:first-child .bub-av{width:29px!important;height:40px!important}.chat-page .screen>div:first-child .iconbtn{width:40px;min-width:40px}.chat-page .screen>div:first-child>div[style*="flex:1"]>div:first-child{font-size:12px!important}.chat-page .bub-msg{unicode-bidi:plaintext}.audio-player{bottom:calc(100px + env(safe-area-inset-bottom))}.settings-group .card{padding:16px}.screen:not(.withdock){padding-bottom:110px}.screen:has(#ob-close){padding-bottom:24px!important}
/* Remove prototype status-bar overlay; keep password controls anchored in both states. */
.viewport::before{display:none!important}.fieldgroup .fieldwrap .eyebtn,.fieldgroup .fieldwrap .eyebtn.off{position:absolute!important;inset-inline-start:auto!important;inset-inline-end:5px!important;top:50%!important;transform:translateY(-50%)!important;padding:0!important;width:44px;height:44px}.fieldgroup .fieldwrap .eyebtn.off::after{display:none!important}.fieldgroup .fieldwrap .eyebtn .ic{position:static!important;transform:none!important;width:22px;height:22px}.fieldgroup .fieldwrap>.ic{position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:14px}.fieldgroup .fieldwrap .field{padding-inline-end:54px}
