@font-face{font-family:Vazirmatn;src:url("/assets/vazirmatn-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("/assets/vazirmatn-500.ttf") format("truetype");font-weight:500 800;font-display:swap}
:root{--primary:#14576b;--accent:#3eaeb4;--bg:#edf4f1;--surface:#fff;--surface-soft:#e0efed;--ink:#123e4e;--muted:#65818a;--line:#dce9e5;--shadow:0 12px 30px #244b4f09;--notice:#f8f4e8;--notice-ink:#756543;--radius:25px;color-scheme:light}
:root[data-theme=dark]{--bg:#10282f;--surface:#1a363e;--surface-soft:#234850;--ink:#e4f2f0;--muted:#9cb8bc;--line:#29474e;--notice:#373c30;--notice-ink:#dbd3b2;--shadow:0 12px 30px #00000017;color-scheme:dark}
*{box-sizing:border-box}
#main[hidden],#session-check-status[hidden],#notifications-link[hidden]{display:none!important}
html{min-height:100%;background:var(--bg);scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px;line-height:1.8;-webkit-tap-highlight-color:transparent}
button,input,a{font:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button,a,input{touch-action:manipulation}
:focus-visible{outline:3px solid var(--accent);outline-offset:5px;border-radius:10px}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:500}
.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
.app-frame{position:relative;min-height:100svh;max-width:510px;margin:0 auto;background:radial-gradient(ellipse at 90% 0%,#bde4e438,transparent 50%),var(--bg);padding:0 24px calc(110px + env(safe-area-inset-bottom))}
.app-header{display:flex;align-items:center;justify-content:space-between;padding:calc(25px + env(safe-area-inset-top)) 0 25px;gap:15px}
.brand{display:flex;align-items:center;gap:8px}
.brand-mark{width:67px;height:38px;overflow:hidden;position:relative}
.brand-mark img{position:absolute;width:158px;height:158px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}
.brand-mark .brand-dark{display:none;width:128px;height:128px;top:calc(50% + 8px)}
[data-theme=dark] .brand-mark .brand-light{display:none}
[data-theme=dark] .brand-mark .brand-dark{display:block}
.brand-copy{font-size:9px;letter-spacing:1.6px;line-height:1.6;color:var(--muted)}
.brand-copy span{letter-spacing:1px;color:var(--primary);font-size:8px;border-radius:4px;background:var(--surface-soft);padding:1px 3px}
[data-theme=dark] .brand-copy span{color:var(--ink)}
.header-actions{display:flex;gap:8px}
.icon-button{border:1px solid var(--line);color:var(--ink);background:transparent;border-radius:50%;width:40px;height:40px;display:grid;place-items:center}
.icon-button .icon{width:19px;height:19px}
main{outline:none}
.hero{position:relative;isolation:isolate;background:var(--surface);border-radius:30px;padding:25px 25px 28px;margin:3px 0 31px;box-shadow:var(--shadow)}
.hero:before{content:"";position:absolute;z-index:-1;inset:11px 8px -8px;background:var(--surface);opacity:.6;border-radius:30px;transform:rotate(-2deg)}
.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.1px}
.hero .eyebrow{display:flex;align-items:center;gap:7px}
.eyebrow i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.hero h1{font-size:27px;letter-spacing:-.8px;margin:11px 0 7px;position:relative;z-index:1}
.hero p{font-size:12px;color:var(--muted);position:relative;z-index:1}
.hero-orbit{position:absolute;width:98px;height:98px;border:1px solid var(--surface-soft);border-radius:50%;left:-14px;top:23px;opacity:.7}
.hero-orbit:after{content:"";position:absolute;inset:13px;border:1px solid var(--surface-soft);border-radius:50%}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 0 13px;gap:8px}
.section-heading h2{font-size:13px}
.tiny-label{color:var(--muted);font-size:10px;letter-spacing:.4px}
.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.service-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:17px;background:var(--surface);border:1px solid transparent;box-shadow:var(--shadow);border-radius:var(--radius);padding:20px;min-height:147px;transition:transform .18s,box-shadow .18s,border-color .18s}
.service-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft);color:var(--primary)}
[data-theme=dark] .service-icon{color:var(--ink)}
.service-card h3{font-size:15px;margin-bottom:4px}
.service-card p{color:var(--muted);font-size:10px}
.service-card.featured{grid-column:1/-1;flex-direction:row;align-items:center;min-height:113px;border:1px solid #ffffffb3;background:#cfe8e5;padding:22px;gap:15px}
[data-theme=dark] .service-card.featured{background:#214b53;border-color:#497079}
.featured h3{font-size:19px;margin:2px 0}
.service-kicker{font-size:9px;color:var(--muted)}
.featured .service-icon{width:46px;height:46px;background:#ffffff66}
.card-arrow{margin-inline-start:auto;width:18px}
.book-banner{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:14px;padding:23px 21px;background:var(--surface-soft);border:1px solid #ffffffa3;border-radius:var(--radius);margin-top:15px;min-height:165px;box-shadow:var(--shadow)}
[data-theme=dark] .book-banner{border-color:var(--line)}
.book-banner h2{font-size:18px;margin:3px 0}
.book-banner p{font-size:11px;color:var(--muted)}
.text-link{display:flex;align-items:center;gap:7px;color:var(--primary);font-size:11px;margin-top:11px}
[data-theme=dark] .text-link{color:var(--ink)}
.text-link .icon{width:15px;height:15px}
.book-art{height:83px;width:72px;position:relative;flex-shrink:0}
.book-art span{position:absolute;inset:0;border-radius:10px;background:var(--surface);transform:rotate(-7deg);box-shadow:0 8px 18px #14576b12}
.book-art span+span{display:grid;place-items:center;inset:5px -6px -5px 8px;transform:rotate(5deg);background:var(--bg);color:var(--primary)}
.book-art .icon{width:34px;height:34px}
[data-theme=dark] .book-art span+span{color:var(--ink)}
.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.quick-links a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:91px;background:var(--surface);box-shadow:var(--shadow);border-radius:19px;font-size:10px;text-align:center;padding:14px 4px}
.quick-links .icon{color:var(--primary)}
[data-theme=dark] .quick-links .icon{color:var(--ink)}
.notice{display:flex;gap:10px;align-items:flex-start;background:var(--notice);color:var(--notice-ink);border:1px solid #b0a27616;border-radius:18px;padding:16px;margin:25px 0 14px;font-size:11px}
.notice-title{font-size:11px;font-weight:500;margin-bottom:4px}
.notice-symbol{padding-top:1px}
.notice .icon{width:19px;height:19px}
.bot-actions{display:grid;gap:10px;margin-top:20px}
.button{border:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:47px;border-radius:14px;font-size:12px;font-weight:500;padding:11px 15px}
.button.primary{background:var(--primary);color:white}
.button.secondary{background:var(--surface-soft);color:var(--ink)}
.bot-actions.compact{grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.bot-actions.compact .button{font-size:10px;min-height:43px;padding:10px 7px}
.bot-actions.compact .icon{width:16px;height:16px}
.build-note{text-align:center;font-size:9px;color:var(--muted);padding-top:17px}
.bottom-nav{position:fixed;z-index:20;bottom:calc(19px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:6px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 30px #163f4c13;border-radius:40px;width:246px;max-width:calc(100% - 40px)}
.bottom-nav a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px;flex:1;border-radius:30px;font-size:12px;color:var(--muted)}
.bottom-nav .active{background:var(--primary);color:white}
.bottom-nav .icon{width:19px;height:19px}
.social-links{position:fixed;left:16px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:30}
.social-links summary,.support-launcher{display:grid;place-items:center;list-style:none;width:52px;height:52px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--primary);box-shadow:0 5px 20px #163f4c20;cursor:pointer}
.social-links summary::-webkit-details-marker{display:none}
.social-links summary .icon{width:24px;height:24px}
.social-links nav{position:absolute;left:0;bottom:66px;width:210px;max-width:calc(100vw - 32px);padding:7px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.social-links nav a{display:flex;flex-direction:row-reverse;align-items:center;gap:10px;padding:12px 10px;border-radius:14px;font-size:13px;color:var(--ink)}
.social-copy{display:flex;flex:1;flex-direction:column;gap:3px}
.social-copy>span{font-size:11px;color:var(--muted);align-self:flex-start}
.social-logo{width:32px;height:32px;flex-shrink:0}
.instagram-logo{color:#D63D83}
.social-links nav a:hover,.social-links nav a:focus-visible{background:var(--surface-soft)}
.support-launcher{position:fixed;right:16px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:30;padding:0}
.support-launcher .goftino-mark{display:block;width:52px;height:52px}
.support-host .dq-support-mark{display:block;width:36px;height:26px;background:currentColor;-webkit-mask:url('/assets/dq-mark.png') center/80px 80px no-repeat;mask:url('/assets/dq-mark.png') center/80px 80px no-repeat}
.support-launcher[aria-busy=true]{opacity:.7}
.support-launcher[hidden],.support-status[hidden]{display:none!important}
.support-status{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:90;width:250px;max-width:calc(100vw - 32px);margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);font-size:12px;line-height:1.9;box-shadow:var(--shadow)}
@media(max-width:389px){.bottom-nav{width:calc(100% - 144px)}}
@media(min-width:1024px){.social-links{left:24px;bottom:24px}.support-launcher,.support-status{right:24px}.support-launcher{bottom:24px}}
.back-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;margin:3px 0 15px;color:var(--muted);min-height:34px}
.back-link .icon{width:19px;height:19px}
.page-title{font-size:26px;letter-spacing:-.5px;margin:0 0 24px}
.profile-intro{display:flex;align-items:center;gap:12px;padding:20px 15px;background:var(--surface);border-radius:var(--radius);margin-bottom:20px;box-shadow:var(--shadow)}
.avatar{width:51px;height:57px;display:grid;place-items:center;background:var(--surface-soft);border-radius:18px;color:var(--muted);flex-shrink:0}
.profile-intro h2{font-size:15px}
.profile-intro p{font-size:10px;color:var(--muted)}
.button.small{margin-inline-start:auto;min-height:37px;font-size:11px;padding:7px 10px;border-radius:12px}
.button.small .icon{width:15px;height:15px}
.credential-preview{display:block;max-width:100%;max-height:320px;object-fit:contain;border:1px solid var(--line);border-radius:14px;justify-self:start}.workspace-form input[type=file]{white-space:normal;overflow-wrap:anywhere}
.profile-orders-card{display:flex;align-items:center;gap:16px;min-height:110px;padding:22px;margin-bottom:16px;border:1px solid var(--accent);border-radius:var(--radius);background:var(--surface-soft);box-shadow:var(--shadow)}
.profile-orders-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:16px;background:var(--primary);color:#fff}.profile-orders-icon .icon{width:26px;height:26px}
.profile-orders-copy{display:grid;gap:4px;min-width:0;flex:1}.profile-orders-copy strong{font-size:20px;font-weight:500}.profile-orders-copy>span{font-size:12px;color:var(--ink);opacity:.78;line-height:1.9}.profile-orders-card>.chevron{color:var(--ink)}
.profile-orders-card:hover,.profile-orders-card[aria-current=page]{box-shadow:0 0 0 1px var(--accent),var(--shadow)}
@media(min-width:1024px){.personal-aside .profile-orders-card,.workspace-aside .profile-orders-card{padding:17px;gap:11px}.personal-aside .profile-orders-icon,.workspace-aside .profile-orders-icon{flex-basis:40px;height:44px;border-radius:13px}.personal-aside .profile-orders-copy strong,.workspace-aside .profile-orders-copy strong{font-size:16px}.personal-aside .profile-orders-copy>span,.workspace-aside .profile-orders-copy>span{font-size:11px}}
.menu-list{background:var(--surface);border-radius:var(--radius);padding:5px 17px;box-shadow:var(--shadow)}
.menu-list a{display:flex;align-items:center;gap:12px;min-height:65px;font-size:12px}
.menu-list a+a{border-top:1px solid var(--line)}
.menu-icon{width:33px;height:33px;display:grid;place-items:center;color:var(--muted)}
.menu-icon .icon{width:20px;height:20px}
.chevron{margin-inline-start:auto;width:16px;height:16px;color:var(--muted)}
.placeholder{text-align:center;display:flex;align-items:center;flex-direction:column;padding:24px 20px 30px;background:var(--surface);border-radius:29px;box-shadow:var(--shadow);margin-top:12px}
.placeholder-icon{display:grid;place-items:center;width:85px;height:85px;background:var(--surface-soft);color:var(--primary);border-radius:27px;margin:10px 0 23px}
[data-theme=dark] .placeholder-icon{color:var(--ink)}
.placeholder-icon .icon{width:35px;height:35px}
.placeholder h2{font-size:22px;margin:12px 0 15px}
.placeholder>p{font-size:13px;max-width:285px;line-height:2.1}
.quiet-line{display:block;width:34px;height:2px;background:var(--accent);opacity:.55;margin:24px 0 19px}
.subtle{font-size:11px!important;color:var(--muted);line-height:2}
.placeholder .bot-actions{align-self:stretch}
.login-card{background:var(--surface);padding:25px 21px;border-radius:var(--radius);box-shadow:var(--shadow)}
.login-symbol{display:grid;place-items:center;width:45px;height:45px;background:var(--surface-soft);border-radius:14px;color:var(--primary);margin-bottom:19px}
[data-theme=dark] .login-symbol{color:var(--ink)}
.login-card h2{font-size:18px;margin-bottom:8px}
.login-card>p{font-size:12px;color:var(--muted)}
.login-card label{display:block;margin:23px 0 8px;font-size:12px}
.login-card input{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:13px;min-height:52px;width:100%;padding:10px 14px;direction:ltr;text-align:right;font-size:16px;letter-spacing:1px}
.full-width{width:100%;margin:13px 0}
.login-status{background:var(--notice);color:var(--notice-ink)!important;border-radius:14px;padding:13px;margin-top:20px}
.profile-intro>div{min-width:0;overflow-wrap:anywhere}
.account-details{margin:0;overflow-wrap:anywhere}
.account-details dt{font-size:11px;color:var(--muted);margin-top:19px}
.account-details dd{margin:6px 0 0;font-size:15px}
.skip-link{position:fixed;z-index:100;top:-100px;right:12px;padding:12px;background:var(--primary);color:white}
.skip-link:focus{top:12px}
noscript{display:block;text-align:center;padding:30px;max-width:460px;margin:auto}
@media(hover:hover){.service-card:hover,.quick-links a:hover{transform:translateY(-3px);box-shadow:0 17px 34px #14576b12}.service-card:hover{border-color:var(--accent)}.icon-button:hover{background:var(--surface)}.menu-list a:hover{color:var(--accent)}}
@media(min-width:600px){body{background:radial-gradient(ellipse at 50% 0,#cae0db44,transparent 70%),var(--bg)}.app-frame{margin:28px auto;border:1px solid var(--line);border-radius:36px;box-shadow:0 20px 80px #183b4010;min-height:calc(100svh - 56px)}}
@media(max-width:360px){.app-frame{padding-inline:17px}.hero{padding:23px 20px}.hero h1{font-size:24px}.service-card{padding:16px}.book-banner{padding:19px 16px}.profile-intro{gap:9px;padding:16px 11px}.profile-intro h2{font-size:13px}.profile-intro p{font-size:9px}.avatar{width:42px}.bot-actions.compact .button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared content stays in the approved mobile order; desktop assigns spatial areas. */
.desktop-only,.quick-arrow{display:none}.home-dashboard,.service-slot,.home-store,.home-tools,.home-footer{display:contents}.exam-slot{display:block;grid-column:1/-1}.exam-slot>.service-card{height:100%}
/* One responsive app: approved phone appearance, fluid tablets/short landscape, desktop workspace. */
.desktop-help,.account-avatar{display:none}.avatar img,.account-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.personal-aside{display:none}.personal-content{display:grid;gap:20px;min-width:0}.personal-content input[type=text]{direction:rtl;text-align:right;letter-spacing:0}.personal-content .login-card>p{margin-top:5px}.read-only-fields{display:grid;gap:10px;margin-bottom:18px}.read-only-fields dl{background:var(--bg);border-radius:14px;padding:0 16px 14px}.read-only-fields dd{font-size:13px}.photo-layout{display:flex;gap:23px;flex-direction:column;margin:23px 0}.photo-preview{align-self:center;width:120px;height:140px;flex-shrink:0;border-radius:23px;background:var(--surface-soft);display:grid;place-items:center;color:var(--muted);overflow:hidden}.photo-preview>a{display:block;width:100%;height:100%}.photo-preview img{display:block;width:100%;height:100%;object-fit:contain}.photo-preview>.icon{width:35px;height:35px}.photo-controls{min-width:0;flex:1}.photo-controls label{font-size:12px;display:block;margin:10px 0}.photo-controls input[type=file]{max-width:100%;font-size:12px}.photo-controls select{font:inherit;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:100%;min-height:47px;padding:8px}.photo-confirm{display:flex;gap:10px;flex-wrap:wrap}.account-message{background:var(--surface-soft);padding:15px;border-radius:14px;font-size:12px}.personal-content .login-status{margin:0}.account-avatar[hidden]{display:none!important}
@media(min-width:600px){.app-frame{max-width:1280px;margin:0 auto;min-height:100svh;border:0;border-radius:0;box-shadow:none;padding-inline:32px}.read-only-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-layout{flex-direction:row}.photo-preview{align-self:flex-start}.hero h1{font-size:30px}.service-card h3{font-size:17px}.service-card p{font-size:12px}.book-banner{padding:28px}.book-banner h2{font-size:24px}.book-banner p{font-size:13px}.quick-links a{font-size:12px}}
@media(min-width:1024px){.app-frame{padding:0 42px 40px}.app-header{padding-top:32px;padding-bottom:30px;min-height:106px}.desktop-help{display:flex;align-items:center;font-size:13px;padding:0 12px;min-height:40px}.account-avatar:not([hidden]){display:grid;place-items:center;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--surface-soft);border:1px solid var(--line)}.header-actions{align-items:center;gap:12px}.bottom-nav{position:absolute;top:32px;bottom:auto;left:auto;right:230px;transform:none;width:230px;box-shadow:none;background:transparent;border:0;padding:0}.bottom-nav a{color:var(--muted);font-size:13px}.bottom-nav a.active{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.hero{padding:34px 36px;min-height:166px;margin-top:12px}.hero h1{font-size:35px}.hero p{font-size:14px}.hero-orbit{left:60px;top:28px;width:110px;height:110px}.section-heading{margin:27px 0 15px}.section-heading h2{font-size:15px}.tiny-label{font-size:11px}.service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.service-card{padding:24px;min-height:164px}.service-card.featured{min-height:132px;padding:28px 32px}.service-card.featured h3{font-size:24px}.service-card.featured .service-icon{width:52px;height:52px}.service-card p{font-size:11px}.service-kicker{font-size:11px}.book-banner{min-height:184px;padding:30px 38px;margin-top:26px;flex-direction:row-reverse}.book-banner h2{font-size:26px}.book-banner .book-art{margin-inline-end:55px;width:86px;height:103px}.quick-links{gap:17px}.quick-links a{min-height:85px;flex-direction:row;gap:14px;font-size:13px;justify-content:flex-start;padding:20px 25px}.notice{font-size:12px;margin-top:28px}.bot-actions.compact{max-width:430px}.bot-actions.compact .button{font-size:12px}.build-note{text-align:start}.page-title{font-size:30px}.personal-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:28px;align-items:start}.personal-aside{display:block;min-width:0}.personal-aside .profile-intro{flex-direction:column;text-align:center;gap:14px;padding:27px 18px}.personal-aside .avatar{width:68px;height:77px}.personal-aside .menu-list{padding-inline:15px}.personal-aside .menu-list a{font-size:12px;gap:8px}.personal-aside [aria-current=page]{color:var(--primary)}[data-theme=dark] .personal-aside [aria-current=page]{color:var(--accent)}.personal-content .login-card{padding:29px}.personal-content .login-card h2{font-size:20px}.personal-content .photo-preview{width:132px;height:151px}main[data-page=sign-in]{max-width:540px;margin-inline:auto}main[data-page=profile]{max-width:850px;margin-inline:auto}main:not([data-page=home]):not([data-page=personal])>.placeholder{max-width:700px;margin-inline:auto}.read-only-fields{gap:16px}.personal-content .login-card input[type=text]{max-width:100%}}
@media(max-height:500px) and (max-width:1023px){.app-frame{max-width:none;min-height:100svh;padding-bottom:25px;padding-inline:clamp(18px,4vw,36px)}.app-header{padding-block:17px}.bottom-nav{position:static;transform:none;margin:25px 0 0 auto;box-shadow:none;width:230px}.hero{padding:22px 27px;min-height:0}.hero h1{font-size:27px}.service-card{min-height:125px}.service-card.featured{min-height:100px}.personal-content .photo-layout{flex-direction:row}.personal-content .login-card{padding:22px}}

@media(min-width:1024px){
  .app-frame{max-width:1400px}
  main[data-page=home] .hero{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;background:none;box-shadow:none;border-radius:0;padding:6px 0 25px;min-height:0;margin:0}
  main[data-page=home] .hero:before,main[data-page=home] .hero-orbit{display:none}
  main[data-page=home] .hero .eyebrow{grid-column:1;grid-row:1}
  main[data-page=home] .hero h1{grid-column:1;grid-row:2;font-size:29px;margin:5px 0 0}
  main[data-page=home] .hero p{grid-column:2;grid-row:2;align-self:center;font-size:12px}
  .home-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 282px;grid-template-rows:repeat(4,minmax(61px,auto)) auto;gap:12px 24px;align-items:stretch;min-width:0}
  .mobile-services-heading{display:none}
  .home-dashboard>.service-grid{display:contents}
  .home-dashboard .service-slot{display:block;min-width:0}
  .home-dashboard .service-slot:nth-child(2){grid-area:1/3}
  .home-dashboard .service-slot:nth-child(3){grid-area:2/3}
  .home-dashboard .service-slot:nth-child(4){grid-area:3/3}
  .home-dashboard .service-slot:nth-child(5){grid-area:4/3}
  .home-dashboard .service-card{flex-direction:row;align-items:center;gap:13px;min-height:0;padding:13px 17px;border-radius:18px;box-shadow:none;border:1px solid var(--line)}
  .home-dashboard .service-card h3{font-size:14px;margin:0 0 1px}
  .home-dashboard .service-card p{font-size:10px}
  .home-dashboard .service-icon{width:34px;height:34px;border-radius:11px}
  .home-dashboard .exam-slot{display:grid;grid-area:1/1/5/3;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);background:var(--surface);border:1px solid var(--line);border-radius:25px;overflow:hidden}
  .home-dashboard .exam-slot .featured{display:flex;grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:center;gap:24px;background:var(--primary);color:#fff;border:0;border-radius:0;padding:29px;box-shadow:none;transform:none}
  .exam-slot .featured .service-icon{background:#ffffff1c;color:#d8f1ef;width:48px;height:48px;border:1px solid #ffffff25;border-radius:16px}
  .exam-slot .featured .service-kicker{font-size:10px;color:#c1dfdf}
  .exam-slot .featured h3{font-size:29px;margin:6px 0}
  .exam-slot .featured p{color:#c1dfdf;font-size:11px}
  .exam-slot .featured>.card-arrow{display:none}
  .desktop-only{display:block}
  .exam-link{font-size:11px;display:flex;align-items:center;gap:9px;margin-top:23px}
  .exam-link .icon{width:16px;height:16px}
  .exam-program{display:flex;flex-direction:column;justify-content:space-between;padding:22px 24px;min-width:0}
  .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
  .panel-heading>span:first-child{display:flex;align-items:center;gap:9px}
  .panel-heading .icon{width:17px;height:17px;color:var(--muted)}
  .quiet-badge{font-size:9px;background:var(--surface-soft);padding:2px 9px;border-radius:20px;color:var(--muted);white-space:nowrap}
  .program-empty{text-align:center;padding:18px 0 10px}
  .program-empty>.icon{width:36px;height:36px;color:var(--accent);margin-bottom:10px}
  .program-empty h2{font-size:16px;margin-bottom:8px}
  .program-empty p{font-size:11px;color:var(--muted);line-height:2}
  .program-footnote{font-size:9px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;text-align:center}
  .home-store{display:block;grid-area:5/1/6/3;background:var(--surface);border:1px solid var(--line);border-radius:25px;margin-top:12px;padding:23px 27px;min-width:0}
  .home-store .book-banner{min-height:0;box-shadow:none;background:none;border:0;border-radius:0;padding:0;margin:0;display:block}
  .home-store .book-banner>.book-art{display:none}
  .home-store .book-banner>div{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px}
  .home-store .book-banner .eyebrow{grid-column:1;grid-row:1;font-size:10px}
  .home-store .book-banner h2{grid-column:1;grid-row:2;font-size:20px;margin:1px 0}
  .home-store .book-banner p{display:none}
  .home-store .book-banner .text-link{grid-column:2;grid-row:1/3;align-self:center;margin:0;font-size:11px;padding:7px 11px;border:1px solid var(--line);border-radius:10px}
  .catalog-empty{display:flex;align-items:center;gap:24px;background:var(--bg);border-radius:17px;padding:23px 26px;margin-top:18px;min-height:128px}
  .catalog-symbol{width:64px;height:76px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px 14px 14px 7px;background:var(--surface);box-shadow:-5px 4px 0 var(--surface-soft);color:var(--accent);flex-shrink:0}
  .catalog-symbol .icon{width:28px;height:28px}
  .catalog-empty h3{font-size:15px;margin:0 0 4px}
  .catalog-empty p{font-size:11px;color:var(--muted)}
  .catalog-empty .subtle{font-size:9px!important;display:block;margin-top:6px}
  .home-tools{display:block;grid-area:5/3;background:var(--surface);border:1px solid var(--line);border-radius:25px;padding:20px;margin-top:12px}
  .home-tools .section-heading{margin:0 0 10px}
  .home-tools .section-heading h2{font-size:13px}
  .home-tools .tiny-label{display:none}
  .home-tools .quick-links{display:flex;flex-direction:column;gap:0}
  .home-tools .quick-links a{border-radius:0;box-shadow:none;min-height:52px;padding:12px 0;gap:12px;font-size:11px;transform:none}
  .home-tools .quick-links a+a{border-top:1px solid var(--line)}
  .home-tools .quick-links .icon{width:18px;height:18px}
  .home-tools .quick-arrow{display:block;margin-inline-start:auto;width:14px!important;color:var(--muted)}
  .home-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
  .home-footer .notice{margin:0;background:none;border:0;padding:0;max-width:620px;font-size:10px}
  .home-footer .notice-title{font-size:11px}
  .home-footer .bot-actions{margin:0;flex:0 0 290px;max-width:none}
  .home-footer .bot-actions .button{font-size:10px;min-height:39px}
  main[data-page=home]>.build-note{font-size:8px;padding-top:12px}
}
@media(min-width:1024px) and (max-width:1150px){.home-dashboard{grid-template-columns:repeat(2,minmax(0,1fr)) 246px;column-gap:18px}.home-dashboard .exam-slot .featured{padding:23px}.exam-program{padding:20px 16px}.program-empty h2{font-size:14px}.home-store{padding-inline:22px}.home-store .book-banner h2{font-size:18px}}

/* Approved review-04a, installed without design fixtures or a service-data fallback. */
.header-actions{direction:ltr}.header-actions .desktop-help{direction:rtl}
[data-gallery] [hidden]{display:none!important}
.content-source-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:27px 20px;min-height:165px;min-width:0}
.content-source-state>.icon{width:29px;height:29px;color:var(--muted)}
.content-source-state h2{font-size:16px}.content-source-state p{font-size:11px;color:var(--muted);max-width:340px;line-height:2}
.home-ad{gap:14px}.home-ad .content-source-state{flex:1;padding-inline:8px}
.program-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px;font-size:11px;color:var(--primary)}
.program-cta .icon{width:16px;height:16px}[data-theme=dark] .program-cta{color:var(--ink)}
.exam-ad-image{display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:15px;min-height:210px;overflow:hidden}
.exam-ad-image img{display:block;width:100%;max-height:260px;object-fit:contain}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;position:relative;direction:rtl}
.gallery-controls button{display:grid;place-items:center;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:10px;width:34px;height:34px;padding:0}
.gallery-controls .icon{width:16px;height:16px}.gallery-controls [data-gallery-counter]{font-size:11px;min-width:50px;text-align:center;color:var(--muted)}
.gallery-feedback{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.book-showcase .content-source-state{margin-top:18px;background:var(--bg);border-radius:17px;min-height:140px}
.book-showcase-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.book-showcase-track.items-1{grid-template-columns:1fr}.book-showcase-track.items-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.book-showcase-card{display:block;min-width:0;overflow-wrap:anywhere}.book-showcase-cover{display:flex;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--line);border-radius:13px;height:140px;color:var(--muted);overflow:hidden}
.book-showcase-cover img{width:100%;height:100%;object-fit:contain}.book-showcase-cover>.icon{width:32px;height:32px}
.book-showcase-kind{font-size:9px;color:var(--muted);display:block;margin-top:9px}.book-showcase-card h3{font-size:13px;line-height:1.9}.book-showcase-card p{font-size:10px;color:var(--muted)}
.book-showcase>.gallery-controls{border-top:1px solid var(--line);padding-top:12px;justify-content:flex-end}
.program-choice-title{font-size:21px;margin-bottom:10px}.program-intro{color:var(--muted);font-size:12px}
.period-choices{display:grid;gap:18px;margin-top:25px}.period-choice{display:block;background:var(--surface);border:1px solid var(--line);border-radius:25px;padding:25px;min-width:0;overflow-wrap:anywhere}
.period-symbol{display:grid;place-items:center;width:47px;height:47px;background:var(--surface-soft);border-radius:15px;color:var(--primary);margin-bottom:22px}
[data-theme=dark] .period-symbol{color:var(--ink)}.period-choice h2{font-size:21px}.period-choice p{font-size:12px;color:var(--muted);margin:8px 0 25px}.period-open{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;border-top:1px solid var(--line);padding-top:16px}.period-open .icon{width:17px;height:17px}
.program-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;overflow-wrap:anywhere}.program-page-heading h2{font-size:21px}
.program-page-heading .quiet-badge{background:var(--surface-soft);color:var(--muted);font-size:10px;padding:4px 10px;border-radius:20px;white-space:nowrap}
.program-viewer,.program-source-state{background:var(--surface);border:1px solid var(--line);border-radius:25px;padding:18px;min-width:0}
.viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin-bottom:15px}
.viewer-zoom{display:flex;align-items:center;gap:8px;min-height:38px;background:var(--bg);color:var(--ink);border:0;border-radius:11px;font-size:11px;padding:7px 12px}.viewer-zoom .icon{width:17px;height:17px}
.program-images{display:flex;justify-content:center;align-items:flex-start;background:var(--bg);border-radius:16px;overflow:hidden;padding:12px}.program-images>img{display:block;max-width:100%;max-height:650px;object-fit:contain}
.single-program-page{font-size:11px;color:var(--muted);text-align:center;margin-top:12px}
.pdf-original{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:center}
.program-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;width:min(1000px,calc(100% - 24px));max-height:92svh;padding:18px}.program-dialog::backdrop{background:#0e303ab3}.program-dialog>img{display:block;max-width:100%;height:auto;margin:0 auto}.zoom-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.zoom-top h2{font-size:15px}.zoom-top .button{min-height:38px;font-size:11px}
@media(min-width:600px){.period-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.program-viewer{padding:24px}}
@media(min-width:1024px){.home-dashboard{grid-template-rows:repeat(4,minmax(70px,auto)) auto}.home-dashboard .exam-slot{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr)}.home-dashboard .exam-slot .featured{padding:29px 25px;gap:25px}.exam-slot .featured h3{font-size:30px}.home-ad{padding:20px 22px;min-height:305px}.home-store{padding:22px 26px}.home-tools{align-self:start}.home-tools .quick-links a{min-height:58px}main[data-page=exam-programs]{max-width:1000px;margin:10px auto 0}main[data-page=exam-programs]>.content-source-state{background:var(--surface);border:1px solid var(--line);border-radius:25px;min-height:290px}.program-viewer,.program-page-heading{max-width:850px;margin-inline:auto}.period-choice{padding:32px;min-height:260px}}
@media(min-width:1024px) and (max-width:1150px){.home-dashboard .exam-slot{grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr)}.home-dashboard .exam-slot .featured{padding:24px 20px}.home-ad{padding:18px 16px}.book-showcase-track{gap:11px}.home-store{padding:20px}}
@media(max-width:599px){.program-viewer{padding:12px}.program-images{padding:8px}.program-page-heading h2{font-size:18px}.content-source-state{padding-inline:17px}}

.workspace-layout{display:grid;gap:24px}.workspace-aside{display:none}.workspace-content{min-width:0}.workspace-content .login-card{margin:0 0 18px}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.workspace-top h2{margin:0}.workspace-menu{margin-top:20px;box-shadow:none}.workspace-menu a{gap:10px}.workspace-menu a>span:nth-child(2){flex:1}.workspace-badge{display:inline-block;font-size:11px;padding:3px 9px;border-radius:16px;background:var(--surface-soft);color:var(--ink);overflow-wrap:anywhere}.workspace-record{display:block;border:1px solid var(--line);border-radius:17px;padding:18px;margin-top:14px;overflow-wrap:anywhere}.workspace-record strong{font-size:14px;font-weight:500;display:block;margin-bottom:6px}.workspace-record p{font-size:12px;margin:8px 0;color:var(--muted)}.workspace-actions,.workspace-pages{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.workspace-pages{justify-content:center;font-size:12px}.workspace-empty{padding:35px 0;text-align:center}.workspace-form{display:grid;grid-template-columns:1fr;gap:16px;margin-top:20px}.workspace-form label{display:grid;gap:7px;font-size:12px}.workspace-form input,.workspace-form textarea{width:100%;min-width:0;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:12px}.workspace-form textarea{min-height:100px;resize:vertical}.workspace-form .workspace-actions{grid-column:1/-1}.workspace-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:22px 0}.workspace-facts dt{font-size:11px;color:var(--muted)}.workspace-facts dd{margin:5px 0 0;overflow-wrap:anywhere;font-size:14px}.workspace-confirm{margin-top:20px;padding:17px;border-radius:15px;background:var(--surface-soft)}.workspace-confirm p{margin-bottom:12px}.workspace-text{white-space:pre-line;overflow-wrap:anywhere;line-height:2.1;margin:18px 0}.workspace-image{display:block;max-width:100%;height:auto;margin:18px auto}.workspace-content button:focus-visible,.workspace-content textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(min-width:600px){.workspace-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-form{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-form label:has(textarea){grid-column:1/-1}}
@media(min-width:1024px){.workspace-layout{grid-template-columns:260px minmax(0,1fr);max-width:1180px;margin:0 auto;gap:30px}.workspace-aside{display:block}.workspace-content .login-card{max-width:none}.workspace-content .workspace-menu a{min-height:64px}}
.rank-consents{border:1px solid var(--line);border-radius:18px;padding:16px;margin:20px 0;min-width:0}
.login-card .rank-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;margin:14px 0;line-height:1.9}
.login-card .rank-check input{flex:0 0 20px;width:20px;min-width:20px;height:20px;min-height:20px;padding:0;margin:5px 0 0;accent-color:var(--primary)}
.library-content{max-width:1280px;margin-inline:auto;padding-block:8px 30px}.library-options{display:grid;gap:16px;margin-block:24px}.library-link{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface);text-decoration:none;color:var(--ink);min-width:0}.library-link>span:nth-child(2){flex:1;min-width:0}.library-link strong,.library-link small{display:block;overflow-wrap:anywhere}.library-link small{font-size:13px;color:var(--muted);margin-top:5px}.library-link .icon{flex-shrink:0}.library-link:hover{border-color:var(--accent);box-shadow:0 6px 24px #427b9a12}.library-list{display:grid;gap:12px}.library-carousel{background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:22px}.library-slides,.library-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.library-poster{display:flex;flex-direction:column;min-width:0;border-radius:17px;background:var(--bg);overflow:hidden;text-decoration:none;border:1px solid var(--line);color:var(--ink)}.library-poster img{display:block;width:100%;height:380px;object-fit:contain;background:var(--bg)}.library-poster>span:last-child{padding:12px 14px;font-size:13px;text-align:center}.library-image-status{display:grid;place-items:center;min-height:320px;padding:18px;color:var(--muted)}.library-slide-controls,.library-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:22px}.library-slide-controls>span,.library-pagination>span{font-size:13px;color:var(--muted)}.library-empty,.library-status{padding:24px 10px;color:var(--muted);text-align:center}.library-location{font-weight:700;margin-block:12px}.library-location+.library-link{margin-bottom:16px}.library-period-title{font-size:18px;margin-block:8px 24px}.library-viewer{padding:16px;border-radius:22px;background:var(--surface);border:1px solid var(--line)}.library-zoom{overflow:auto;max-height:80vh;margin-top:16px;direction:ltr}.library-zoom img{display:block;max-width:100%;height:auto;margin-inline:auto}.library-viewer.is-zoomed img{max-width:none;width:180%;min-width:1000px}.library-help{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.2;background:var(--surface);border:1px solid var(--line);padding:24px;border-radius:24px}.library-content .service-icon{width:44px;height:44px;flex-shrink:0}.library-content .back-link{margin-bottom:18px}@media(min-width:760px){.library-options{grid-template-columns:1fr 1fr}.library-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.library-link{padding:25px}}@media(min-width:1024px){.library-slides,.library-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.library-poster img{height:310px}.library-carousel{padding:28px}.library-content{padding-top:14px}}@media(min-width:1360px){.library-slides,.library-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.library-poster img{height:330px}}@media(max-width:420px){.library-carousel{padding:14px}.library-poster img{height:350px}.library-link{padding:18px}.library-slide-controls{gap:7px}.library-slide-controls .button{padding:9px 12px}}
/* A consistent, touch-sized return action across the app and file views. */
.back-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:112px;min-height:46px;padding:10px 17px;margin-bottom:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;line-height:1.5;box-shadow:0 2px 8px #14576b0a;text-decoration:none}.back-link:hover{background:var(--surface-soft);border-color:var(--accent)}.back-link:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.back-link .icon{width:19px;height:19px;flex:none}

.profile-open-original{border:0;padding:0;background:transparent;cursor:zoom-in;display:block;width:100%;height:100%}.profile-open-original:focus-visible{outline:3px solid var(--primary,#14576b);outline-offset:3px}.profile-original img{display:block;max-width:100%;height:auto;margin:1rem auto}.profile-original{overflow:hidden}
.home-ranks{display:block;min-width:0;margin-block:20px}.home-ranks .library-carousel{margin:0}.rank-hub{display:grid;gap:20px;margin-block:24px}.rank-hub-card{display:flex;flex-direction:column;align-items:flex-start;min-height:285px;padding:30px 26px;border:1px solid var(--line);border-radius:26px;background:var(--surface)}.rank-hub-symbol{display:grid;place-items:center;width:68px;height:68px;border-radius:21px;background:var(--bg);color:var(--accent);margin-bottom:22px}.rank-hub-symbol .icon{width:34px;height:34px}.rank-hub-card h2{font-size:22px;margin:0 0 12px}.rank-hub-card p{color:var(--muted);font-size:14px;line-height:2;margin:0 0 28px;max-width:38ch}.rank-hub-card .button{margin-top:auto;min-height:44px}.rank-hub-card .button .icon{width:17px;height:17px}@media(min-width:760px){.rank-hub{grid-template-columns:1fr 1fr}.rank-hub-card{min-height:350px;padding:36px}}@media(min-width:1024px){.home-ranks{grid-area:6/1/7/4;margin-block:8px 0}.home-ranks .library-carousel{padding:26px}}
.file-transfer-shade{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#0d293b88;backdrop-filter:blur(5px)}.file-transfer-dialog{width:min(100%,440px);padding:30px 25px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:25px;box-shadow:0 22px 80px #102b4544}.file-transfer-dialog h2{font-size:20px;margin-block:20px 12px}.file-transfer-dialog p{font-size:14px;line-height:2;color:var(--muted)}.file-transfer-dialog .bot-actions{margin-top:24px}
