/* Presentation only; existing service handlers and access checks remain unchanged. */
.ap-display-settings{position:relative;flex:none;font:inherit;z-index:8}.ap-display-settings summary{cursor:pointer;list-style:none;border:1px solid var(--line,#b8cdbf);border-radius:8px;padding:9px;min-height:44px;display:flex;align-items:center;gap:5px;font-size:14px}.ap-display-settings summary::-webkit-details-marker{display:none}.ap-display-panel{position:absolute;right:0;top:100%;width:min(240px,85vw);padding:14px;background:var(--ap-surface,#fff);color:var(--ink,#173426);border:1px solid var(--line,#b8cdbf);border-radius:10px;box-shadow:0 8px 30px #0003;display:grid;gap:12px}.ap-display-panel label{display:grid;gap:5px;font-size:14px}.ap-display-panel select{font:inherit;padding:8px;width:100%}.ap-mobile-toggle,.ap-mobile-quick,.ap-mobile-bottom{display:none} :focus-visible{outline:3px solid #45a978;outline-offset:3px}html[data-ap-size=large]{font-size:112.5%}html[data-ap-size=extra]{font-size:125%}html[data-ap-size=large] :is(p,label,button,a,input,select,textarea,small,summary,td,th){font-size:max(1rem,inherit)}html[data-ap-size=large] :is(p,label,button,a,input,select,textarea,small,summary,td,th){font-size:1rem!important}html[data-ap-size=extra] :is(p,label,button,a,input,select,textarea,small,summary,td,th){font-size:1rem!important}html[data-ap-size=large] :is(.ap-cbt-option,.ap-reading-card,.card){font-size:1.125rem!important}html[data-ap-size=extra] :is(.ap-cbt-option,.ap-reading-card,.card){font-size:1.125rem!important}
@media(max-width:900px){body>header{height:auto;min-height:68px;flex-wrap:wrap;gap:8px;padding:10px 4%}body>header .brand{min-width:0;margin-right:auto}body>header .brand small{letter-spacing:.04em}body>header #menu{display:block;min-width:44px;min-height:44px;border:0;background:none;color:var(--g)}body>header #nav{display:none;position:static;flex-basis:100%;padding:8px;gap:4px;order:5;background:var(--ap-surface,#fff)}body>header #nav.open{display:grid}body>header #nav a{padding:10px;font-size:14px}body>header .actions{flex-basis:100%;display:flex;order:6}body>header .actions .btn{display:flex;flex:1;min-height:44px;font-size:14px}body.ap-account-mode>header #menu{display:none}body.ap-account-mode>header .actions{display:none}.hero{min-height:0;grid-template-columns:minmax(0,1fr);padding:28px 5%;gap:12px}.hero h1{font-size:clamp(32px,8vw,48px);margin:12px 0}.hero p{font-size:15px;line-height:1.6}.hero .visual{display:none}.hero .checks{margin-top:12px;font-size:12px}.strip{display:none}.section{padding:28px 5%}.heading{margin-bottom:16px;display:block}.heading h2{font-size:28px}.heading p{font-size:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cards article{padding:12px;min-width:0;overflow-wrap:anywhere}.cards i{margin-bottom:8px}.cards p,.cards .link{font-size:13px}.cards .link{min-height:44px}.ap-news-card{padding:12px}.ap-news-card img{max-height:140px}.ap-news-grid{gap:10px}.cbt{grid-template-columns:minmax(0,1fr);padding:30px 5%;gap:18px}.cta{margin:25px 5%;padding:20px}.ap-dashboard .ap-dash-layout{grid-template-columns:minmax(0,1fr)!important;width:100%;padding:12px 10px 100px;gap:10px}.ap-dash-layout>*{min-width:0;max-width:100%}.ap-dashboard .ap-dash-sidebar{position:static;min-width:0;padding:10px}.ap-dash-brand{display:none}.ap-mobile-toggle{display:block;width:100%;min-height:44px;background:transparent;color:var(--ap-green-dark);border:1px solid var(--ap-border);border-radius:8px;font-weight:800;text-align:left;padding:10px}.ap-dashboard .ap-dash-nav{display:none;overflow:visible;min-width:0}.ap-dashboard .ap-mobile-open .ap-dash-nav{display:grid;grid-template-columns:minmax(0,1fr)}.ap-dashboard .ap-dash-nav a{white-space:normal;min-height:44px;font-size:14px;overflow-wrap:anywhere}.ap-mobile-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}.ap-mobile-quick button{min-height:54px;border:1px solid var(--ap-border);background:var(--ap-green-soft);color:var(--ap-green-dark);border-radius:10px;font-weight:800;padding:8px;overflow-wrap:anywhere}.ap-mobile-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:6;background:#126344;padding:6px 6px calc(6px + env(safe-area-inset-bottom));gap:4px}.ap-mobile-bottom button{background:transparent;color:white;border:0;min-height:44px;font-weight:700;font-size:12px;overflow-wrap:anywhere}.ap-dash-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}.ap-dash-stat{padding:10px 7px}.ap-dash-stat small{font-size:11px;overflow-wrap:anywhere}.ap-dash-stat strong{font-size:22px}.ap-dash-content,.ap-dash-card,.ap-product-card,.ap-service-group,.ap-cbt-runner{min-width:0;max-width:100%;overflow-wrap:anywhere}.ap-dash-scroll{max-width:100%;overflow-x:auto}.ap-dash-heading>div{min-width:0}.ap-dash-title{overflow-wrap:anywhere}.ap-dashboard :is(.ap-nerd-form-grid,.ap-nerd-grid,.ap-cbt-controls,.ap-cbt-practice-layout,.ap-qm-grid,.ap-chat-admin-grid,.ap-reading-columns){grid-template-columns:minmax(0,1fr)!important}.ap-dashboard :is(input,select,textarea){max-width:100%;min-width:0;font-size:16px!important}.ap-dashboard :is(button,.ap-dash-btn,.ap-cbt-option){min-height:44px}.ap-dashboard img{max-width:100%;height:auto}.ap-cbt-option{font-size:16px;line-height:1.55}.ap-dashboard [id]{scroll-margin-top:100px}.ap-account-mode #akp-chat-button{bottom:80px!important}.ap-account-mode #akp-chat-window{bottom:145px!important;max-height:calc(100dvh - 165px)!important}#akp-chat-window{max-width:calc(100vw - 24px)!important;right:12px!important}.ap-display-settings summary span{display:none}}
@media(max-width:380px){.cards{grid-template-columns:minmax(0,1fr)}.ap-dashboard .ap-product-grid{grid-template-columns:minmax(0,1fr)}.ap-dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html[data-ap-theme=dark]{color-scheme:dark;--ap-surface:#1b2c25;--g:#83d5a8;--dark:#a6e5bf;--ink:#e4eee8;--muted:#b9c9bf;--line:#41564a;--silver:#263b30;--ap-page:#101b16;--ap-ink:#e4eee8;--ap-muted:#b9c9bf;--ap-border:#41564a;--ap-green:#287343;--ap-green-dark:#a6e5bf;--ap-green-soft:#263b30}html[data-ap-theme=dark] body{background:#101b16;color:#e4eee8}html[data-ap-theme=dark] :is(body>header,#nav,.modal,.dashboard,.float,.tiles div,.cards article,.exam,.how,.ap-news,.ap-news-card,.pricing .plan,.pricing .plan.featured,.ap-dash-sidebar,.ap-dash-card,.ap-dash-stat,.ap-product-card,.ap-service-group,.ap-admin-section,.ap-qm-form,.ap-cbt-runner,.ap-cbt-question-card,.ap-cbt-option,.ap-reading-card,.ap-reading-poem,.ap-cbt-result,.ap-cbt-calculator,.ap-cbt-paper-heading,.ap-chat-messages,.ap-chat-bubble,.ap-library-admin,.ap-library-item,.card,.notice,#akp-chat-window){background:#1b2c25!important;color:#e4eee8!important;border-color:#41564a!important}html[data-ap-theme=dark] :is(h1,h2,h3,h4,p,small,label,summary,td,th,.ap-dash-nav a,.ap-dash-stat strong,.ap-dash-title,.ap-dash-muted,.ap-product-price,.price,.plan-price,.link,.tag,.ap-library-status){color:#dcece2!important}html[data-ap-theme=dark] :is(input,textarea,select,.ap-dash-btn:not(.primary),.ghost,.outline,.white,.ap-admin-smallbtn){background:#24392e!important;color:#e4eee8!important;border-color:#536b5d!important}html[data-ap-theme=dark] :is(.green,.logo){background:#176b45;color:white}html[data-ap-theme=dark] :is(.ap-test-note,.ap-dash-alert,.ap-admin-note){background:#3b321e!important;color:#f4e3ae!important;border-color:#8b7643!important}html[data-ap-theme=dark] :is(.ap-dash-status,.ap-cbt-timer,.ap-dash-footer-note,.ap-admin-message,.ap-nerd-message,.ap-cbt-course-help,.ap-dash-avatar,.ap-service-icon,.ap-dash-sidebar-note){background:#263b30!important;color:#dcece2!important}html[data-ap-theme=dark] a{color:#a6e5bf}html[data-ap-theme=dark] .ap-dash-stat:after{background:#263b30}html[data-ap-theme=dark] .ap-cbt-select{background:#24392e!important;color:#e4eee8!important}html[data-ap-theme=dark] .ap-cbt-option:has(input:checked){outline:2px solid #83d5a8}html[data-ap-theme=dark] .ap-cbt-option input{accent-color:#83d5a8}html[data-ap-theme=dark] .ring{display:none}
/* Standalone revision page */
@media(max-width:600px){body.ap-revision-page #subject-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}body.ap-revision-page .grid{grid-template-columns:minmax(0,1fr)}body.ap-revision-page .subject-button{overflow-wrap:anywhere;min-height:44px}body.ap-revision-page header{display:block}body.ap-revision-page .ap-display-panel{left:0;right:auto}}
