/* SISU EXAMLAB (Figma "02 SISU EXAMLAB · Premium minimal"). Scoped to .ex so the shop, book, reader and admin pages are untouched.
   Desktop frame 1440 (64px gutters, 1312 content), mobile frame 390 (24px gutters). */
@font-face{font-family:"Abhaya Libre";src:url('/assets/sisu_library/media/abhaya-libre-sinhala-700.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0964-0965,U+0D81-0DF4,U+1CF2,U+200C-200D,U+25CC,U+111E1-111F4}

.ex{--ex-ink:#0a0a0a;--ex-muted:#5c5c5c;--ex-line:#e6e6e6;--ex-paper:#fafafa;--ex-white:#fff;--ex-accent:#6935bd;--ex-gutter:max(64px,calc((100% - 1312px) / 2));
	background:var(--ex-white);color:var(--ex-ink);font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased}
body.ex-page{background:#fff}
/* Interface language is separate from the purchased paper medium. */
.sisu-language{display:flex;align-items:center;justify-content:flex-end;gap:8px;height:48px;padding:2px max(16px,calc((100% - 1312px)/2));background:#fff;border-bottom:1px solid #e6e6e6;font:500 13px/1.5 Manrope,Yaldevi,sans-serif;box-sizing:border-box}
.sisu-language a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;color:#5c5c5c;text-decoration:none;border-radius:8px;box-sizing:border-box}
.sisu-language a[aria-current]{background:#f0e9fa;color:#512493;font-weight:700}
.sisu-language a:focus-visible{outline:2px solid #6935bd;outline-offset:2px}
html[lang="si"] .ex,html[lang="si"] .ex-btn,html[lang="si"] input,html[lang="si"] select,html[lang="si"] .store-reader{font-family:Manrope,Yaldevi,"Nirmala UI",sans-serif;line-height:1.65}
html[lang="si"] .ex-btn{height:auto;white-space:normal;text-align:center;min-height:54px}
html[lang="si"] .ex-nav,html[lang="si"] .ex-nav-actions{flex-wrap:wrap}
html[lang="si"] .ex-hero h1{line-height:1.35}
html[lang="si"] .ex-set-meta,html[lang="si"] .ex-set-desc{height:auto;min-height:0}
html[lang="si"] .ex-about-msg{font-family:inherit}
.ex h1,.ex h2,.ex h3,.ex p{margin:0;letter-spacing:0}
.ex a{color:inherit;text-decoration:none}
.ex .st-ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.ex :focus-visible{outline:2px solid var(--ex-accent);outline-offset:3px}

/* Buttons: 54px pill, Manrope SemiBold 15, arrow 16 */
.ex-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:54px;min-height:48px;padding:16px 22px;border:0;border-radius:100px;font:600 15px/1.2 Manrope,system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s}
.ex .ex-btn-dark{background:var(--ex-ink);color:var(--ex-white)}
.ex-btn-dark:hover{background:#2a2a2a}
.ex-btn-ghost{background:var(--ex-white);color:var(--ex-ink);border:1.5px solid var(--ex-line)}
.ex-btn-ghost:hover{border-color:var(--ex-ink)}
.ex-btn[aria-disabled="true"]{opacity:.45;cursor:default;pointer-events:none}
.ex-btn:disabled{cursor:not-allowed}
.ex-review-notices{padding:16px max(24px,calc((100% - 1040px)/2));background:#faf7ff}
.ex-review-notice{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 56px 16px 0}
.ex-review-notice[hidden],.ex-review-notices[hidden]{display:none}
.ex-notice-close{position:absolute;right:0;top:12px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #dfd3ed;border-radius:50%;background:transparent;color:#512493;cursor:pointer}
.ex-notice-close:hover{background:#eee5f8}
.ex-notice-close:focus-visible{outline:2px solid #6735c1;outline-offset:3px}
.ex-review-notice + .ex-review-notice{border-top:1px solid var(--ex-line)}
.ex-review-notice strong{display:block;font-size:17px;color:#512493}
.ex-review-notice p{margin-top:6px;overflow-wrap:anywhere;font-size:14px}
.ex-review-notice .ex-btn{flex-shrink:0}
@media(max-width:640px){.ex-review-notice{align-items:flex-start;flex-direction:column;gap:16px}.ex-review-notice .ex-btn{width:100%}}

/* Brand: the light logo crops to the "sisu." wordmark exactly as in the frame */
.ex-brand{display:inline-flex;align-items:center;gap:14px}
.ex-logo{position:relative;display:block;width:88px;height:27.302px;overflow:hidden;flex:none}
.ex-logo img{position:absolute;left:-17.25px;top:-48.94px;width:121.884px;height:121.884px;max-width:none;object-fit:contain}
.ex-brand-name{font-size:14px;font-weight:800;line-height:1.45;color:var(--ex-ink)}

/* Navigation */
.ex-nav{display:flex;align-items:center;gap:30px;padding:24px var(--ex-gutter)}
.ex-nav .ex-brand{flex:1 1 auto;min-width:0}
.ex-nav-link{width:148px;padding-inline:18px;font-size:12px;font-weight:600}
.ex-nav-btn{width:180px;padding-inline:12px;font-size:12px}
.ex-account{position:relative;flex:none;align-self:center}
.ex-account-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box;border:1px solid var(--ex-line);border-radius:50%;background:var(--ex-white);cursor:pointer;list-style:none}
.ex-account-toggle::-webkit-details-marker{display:none}
.ex-account-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.ex-account-toggle:hover,.ex-account[open] .ex-account-toggle{color:var(--ex-accent);background:#f0e9fa;border-color:var(--ex-accent)}
.ex-account-panel{position:absolute;right:0;top:calc(100% + 12px);z-index:100;width:240px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:8px;background:var(--ex-white);border:1px solid var(--ex-line);border-radius:16px}
.ex-account-panel .ex-account-name{padding:12px 12px 16px;margin-bottom:4px;border-bottom:1px solid var(--ex-line);font-size:14px;font-weight:700;overflow-wrap:anywhere}
.ex-account-panel a,.ex-account-panel button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:12px;box-sizing:border-box;border:0;border-radius:8px;background:transparent;color:var(--ex-ink);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.ex-account-panel a:hover,.ex-account-panel button:hover{background:#f0e9fa;color:var(--ex-accent)}
.ex-account-panel button:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){.ex-nav:has(.ex-account){gap:10px;padding-inline:16px}.ex-nav:has(.ex-account) .ex-brand{gap:8px}.ex-nav:has(.ex-account) .ex-brand-name{font-size:11px}}

/* Hero */
.ex-hero{display:flex;flex-direction:column;align-items:center;gap:24px;padding:66px var(--ex-gutter) 0;text-align:center}
.ex-hero h1{font-size:82px;font-weight:800;line-height:1.12;letter-spacing:0}
.ex-hero-sub{font-size:18px;font-weight:500;color:var(--ex-muted)}
.ex-actions{display:flex;gap:12px}
.ex-hero-actions .ex-btn:first-child{width:240px}
.ex-hero-actions .ex-btn:last-child{width:238px}

/* Book compositions: coordinates are the centres from the Figma frames, in frame pixels, scaled with the container */
.ex-comp{position:relative;display:block;width:100%;max-width:calc(var(--W) * 1px);aspect-ratio:var(--W) / var(--H);container-type:inline-size}
.ex-book{--u:calc(100cqw / var(--W));--cw:calc(var(--bw) - 7);--ch:calc(var(--cw) * 1.4);
	position:absolute;width:calc(var(--bw) * var(--u));height:calc((var(--ch) + 6) * var(--u));
	left:calc((var(--x) - var(--bw) / 2) * var(--u));top:calc((var(--y) - (var(--ch) + 6) / 2) * var(--u));
	transform:rotate(calc(var(--r) * 1deg));filter:drop-shadow(0 14px 13px rgba(31,13,51,.16));transition:translate .18s ease-out}
.ex-book-back,.ex-book-cover,.ex-book-spine{position:absolute;left:0;top:0;height:calc(var(--ch) * var(--u))}
.ex-book-back{left:calc(5 * var(--u));top:calc(5 * var(--u));width:calc(var(--cw) * var(--u));background:var(--ex-line);border-radius:3px}
.ex-book-cover{width:calc(var(--cw) * var(--u));object-fit:contain;border-radius:3px;transition:rotate .18s ease-out}
.ex-book-spine{width:calc(5 * var(--u));background:var(--ex-ink);opacity:.16}
/* Hover (handoff): 180 ms, 5 px lift and 2° rotation */
.ex-book:hover{translate:0 -5px}
.ex-book:hover .ex-book-cover{rotate:2deg}

.ex-hero-fan{--W:1312;--H:440}
.ex-hero-fan .ex-book{--bw:195}
.ex-h1{--x:226.70;--y:225.57;--r:-13.75}
.ex-h2{--x:381.81;--y:199.01;--r:-8.25}
.ex-h3{--x:535.85;--y:185.95;--r:-2.75}
.ex-h4{--x:688.85;--y:185.12;--r:2.75}
.ex-h5{--x:833.81;--y:205.20;--r:8.25}
.ex-h6{--x:997.70;--y:230.92;--r:13.75}
/* Hero entrance (handoff): 420 ms fade + 18 px rise, 55 ms stagger, once */
@keyframes ex-rise{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
.ex-hero-fan .ex-book{animation:ex-rise .42s ease-out backwards}
.ex-h2{animation-delay:55ms}.ex-h3{animation-delay:110ms}.ex-h4{animation-delay:165ms}.ex-h5{animation-delay:220ms}.ex-h6{animation-delay:275ms}

/* Paper sets */
.ex-sets{display:flex;flex-direction:column;gap:36px;padding:64px var(--ex-gutter) 72px;scroll-margin-top:0}
.ex-sets-head{display:flex;flex-direction:column;gap:8px}
.ex-sets-head h2{font-size:42px;font-weight:800;line-height:1.45}
.ex-si{font-family:"Abhaya Libre",Manrope,serif;font-size:25px;font-weight:700;line-height:1.12;color:var(--ex-muted)}
.ex-sets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
.ex-set{display:flex;flex-direction:column;gap:20px;padding:28px;border-radius:24px;background:var(--ex-paper)}
.ex-set-art{--W:586;--H:300}
.ex-set-art .ex-book{--bw:163}
.ex-c1{--x:159.57;--y:137.44;--r:-7}
.ex-c2{--x:291.5;--y:124.2;--r:0}
.ex-c3{--x:422.22;--y:157.30;--r:7}
.ex-set h3{font-size:30px;font-weight:800;line-height:1.45}
.ex-set-desc{font-size:15px;font-weight:500;color:var(--ex-muted)}
.ex-set-meta{font-size:14px;font-weight:400;color:var(--ex-muted)}
.ex-set-price{font-size:34px;font-weight:800;line-height:1.45}
.ex-set-actions{gap:10px}
.ex-set-actions .ex-btn{min-width:0}
.ex-set-actions .ex-btn:first-child{flex:322.56 1 0}
.ex-set-actions .ex-btn:last-child{flex:253.44 1 0}

/* Footer */
.ex-foot{display:flex;flex-direction:column;align-items:flex-start;gap:28px;padding:64px var(--ex-gutter)}
.ex-foot-rule{display:block;align-self:stretch;height:1px;background:var(--ex-line)}
.ex-foot-links{display:flex;flex-wrap:wrap;gap:26px;font-size:12px;font-weight:500;line-height:1.45;color:var(--ex-muted)}
.ex-foot-links a{min-width:150px}
.ex-foot-links a:nth-child(odd){min-width:190px}
.ex-foot-links a:hover{color:var(--ex-ink)}
.ex-foot-copy{font-size:11px;color:var(--ex-muted)}

/* Between the frames: keep the desktop layout, stack the collections when two no longer fit */
@media (max-width:1100px){.ex-hero h1{font-size:clamp(34px,7.4vw,82px)}}
@media (max-width:960px){.ex-sets-grid{grid-template-columns:minmax(0,642px)}}

/* Mobile frame (390) */
@media (max-width:640px){
	.ex{--ex-gutter:24px}
	.ex-nav{gap:14px;padding:24px}
	.ex-nav-link{display:none}
	.ex-nav-btn{width:118px}
	.ex-hero{gap:20px;padding-top:32px}
	.ex-hero h1{font-size:34px}
	.ex-hero-sub{font-size:14px}
	.ex-hero-actions{width:100%;max-width:342px}
	.ex-hero-actions .ex-btn{padding-inline:12px;font-size:12px}
	.ex-hero-actions .ex-btn:first-child{width:auto;flex:175 1 0}
	.ex-hero-actions .ex-btn:last-child{width:auto;flex:155 1 0}
	.ex-hero-fan{--W:342;--H:246}
	.ex-hero-fan .ex-book{--bw:90}
	.ex-h1{--x:65.16;--y:122.91;--r:-12.5}
	.ex-h2{--x:104.59;--y:104.19;--r:-7.5}
	.ex-h3{--x:143.62;--y:94.03;--r:-2.5}
	.ex-h4{--x:182.29;--y:97.96;--r:2.5}
	.ex-h5{--x:220.64;--y:115.94;--r:7.5}
	.ex-h6{--x:258.71;--y:142.39;--r:12.5}
	.ex-sets{gap:24px;padding:36px 24px 40px}
	.ex-sets-head h2{font-size:29px;line-height:1.2}
	.ex-si{font-size:21px}
	.ex-sets-grid{grid-template-columns:minmax(0,1fr);gap:24px}
	.ex-set{padding:20px}
	.ex-set-art{--W:302;--H:220}
	.ex-set-art .ex-book{--bw:113}
	.ex-c1{--x:70.49;--y:105.74;--r:-7}
	.ex-c2{--x:139.5;--y:89.2;--r:0}
	.ex-c3{--x:207.67;--y:119.51;--r:7}
	.ex-set h3{font-size:25px}
	.ex-set-desc,.ex-set-meta{font-size:13px}
	.ex-set-price{font-size:28px}
	.ex-set-actions .ex-btn{padding-inline:12px;font-size:12px}
	.ex-set-actions .ex-btn:first-child{flex:157 1 0}
	.ex-set-actions .ex-btn:last-child{flex:135 1 0}
	.ex-foot{padding:24px}
	.ex-foot-links{flex-direction:column;gap:16px}
	.ex-foot-links a,.ex-foot-links a:nth-child(odd){min-width:0}
}

/* ===== Flow screens (sign-in, checkout, status, library, profile, admin) ===== */
@font-face{font-family:Yaldevi;src:url('/assets/sisu_library/media/yaldevi-sinhala-wght.woff2') format('woff2');font-weight:200 700;font-display:swap;unicode-range:U+0964-0965,U+0D81-0DF4,U+1CF2,U+200C-200D,U+25CC,U+111E1-111F4}
.ex-paper{background:var(--ex-paper)}
.ex-paper .ex-nav{background:var(--ex-white)}
.ex-eyebrow{font-size:12px;font-weight:800;line-height:1.45;color:var(--ex-accent);text-transform:uppercase}
.ex-title{font-size:38px;font-weight:800;line-height:1.45;color:var(--ex-ink)}
.ex-lead{font-size:16px;color:var(--ex-muted)}
.ex-muted{font-size:15px;color:var(--ex-muted)}
.ex-small{font-size:14px}
.ex-fine{font-size:12px;color:var(--ex-muted)}
.ex-fine a,.ex-col-pending a{text-decoration:underline}
.ex-error{font-size:14px;font-weight:600;color:#b42318}
.ex-error:empty{display:none}
.ex-status-line{font-size:14px;font-weight:600;color:var(--ex-accent)}
.ex-status-line:empty{display:none}
.ex-rule{display:block;align-self:stretch;height:1px;background:var(--ex-line)}

/* Buttons beyond the homepage pair (unscoped so the reader header can use them too) */
.ex-btn .st-ic,.ex-reader-switch .st-ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.ex .ex-btn-accent,.ex-btn-accent{background:#6935bd;color:#fff;border:0}
.ex .ex-btn-accent:hover,.ex-btn-accent:hover{background:#542697}
.ex .ex-btn-outline,.ex-btn-outline{background:#fff;color:#0a0a0a;border:1.5px solid #0a0a0a}
.ex .ex-btn-outline:hover,.ex-btn-outline:hover{background:#0a0a0a;color:#fff}
.ex-btn-block{width:100%}
.ex-btn:disabled{opacity:.4;cursor:default}
.ex-btn[hidden]{display:none}
.ex-btn:focus-visible{outline:2px solid #6935bd;outline-offset:3px}

/* Form fields */
.ex-form{display:flex;flex-direction:column;gap:22px;align-items:stretch}
.ex-field{display:flex;flex-direction:column;gap:8px}
.ex-label{font-size:16px;line-height:1.4;color:#1e1e1e}
.ex-label-sm,.ex-profile .ex-label,.ex-narrow .ex-label{font-size:13px;font-weight:700;line-height:1.45;color:var(--ex-ink)}
.ex-input{box-sizing:border-box;width:100%;min-height:48px;padding:12px 16px;border:1px solid #d9d9d9;border-radius:8px;background:#fff;font:400 16px/1.4 Manrope,system-ui,sans-serif;color:var(--ex-ink)}
.ex-input::placeholder{color:var(--ex-muted);opacity:1}
.ex-input:focus{outline:2px solid var(--ex-accent);outline-offset:0;border-color:var(--ex-accent)}
.ex-input[readonly]{background:#f2f2f1;color:var(--ex-muted)}
.ex-password-control{display:flex;align-items:center;border:1px solid var(--ex-line);border-radius:10px;background:#fff;min-width:0}
.ex-narrow .ex-password-control .ex-input{min-width:0;flex:1;border:0;background:transparent}
.ex-password-toggle{flex:none;min-height:44px;min-width:58px;margin:0 6px;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--ex-accent);font:600 13px/1.4 Manrope,system-ui,sans-serif;cursor:pointer}
.ex-password-toggle:hover{background:#f1eafa}
.ex-password-toggle:focus-visible{outline:2px solid var(--ex-accent);outline-offset:1px}
.ex-password-reset-area{box-sizing:border-box;width:calc(100% - 48px);max-width:600px;margin-inline:auto;padding:48px 0 72px;min-height:calc(100dvh - 150px)}
.ex-password-reset{display:flex;flex-direction:column;gap:22px;padding:40px;background:#fff;border-radius:16px}
.ex-password-reset .ex-title{font-size:34px;line-height:1.3}
.ex-password-reset .ex-lead{font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.ex-password-reset .ex-form{gap:20px}
.ex-password-reset .ex-password-control .ex-input{min-width:0;flex:1;border:0;background:transparent}
.ex-password-reset .ex-hint{font-size:12px;line-height:1.6}
.ex-password-reset [hidden]{display:none}
.ex-password-reset .st-pw-bar{background:var(--ex-line)}
.ex-password-reset .st-pw-meter p{color:var(--ex-muted)}
.ex-password-done{display:flex;flex-direction:column;align-items:center;gap:14px;padding-block:16px;text-align:center}
.ex-password-done .ex-symbol{width:56px;height:56px}
.ex-password-done .ex-symbol svg{width:28px;height:28px}
@media(max-width:600px){.ex-password-reset-area{padding:32px 0 48px}.ex-password-reset{padding:24px;gap:20px}.ex-password-reset .ex-title{font-size:28px}}
.ex-password-strength{display:grid;gap:7px;margin-top:3px;color:var(--ex-muted)}
.ex-strength-track{height:8px;border-radius:4px;overflow:hidden;background:#e7e5eb}
.ex-strength-track span{display:block;height:100%;width:0;border-radius:inherit;background:currentColor;transition:width .2s ease-out,background-color .2s ease-out}
.ex-strength-label{font-size:12px;line-height:1.5}
.ex-password-strength[data-level="1"]{color:#b42318}
.ex-password-strength[data-level="2"]{color:#ad4300}
.ex-password-strength[data-level="3"]{color:#876000}
.ex-password-strength[data-level="4"]{color:#286439}
.ex-password-strength[data-level="5"]{color:#147344}
.ex-password-strength[data-level="1"] .ex-strength-track span{width:20%}
.ex-password-strength[data-level="2"] .ex-strength-track span{width:40%}
.ex-password-strength[data-level="3"] .ex-strength-track span{width:60%}
.ex-password-strength[data-level="4"] .ex-strength-track span{width:80%}
.ex-password-strength[data-level="5"] .ex-strength-track span{width:100%}
@media(prefers-reduced-motion:reduce){.ex-strength-track span{transition:none}}
.ex-hint{font-size:12px;color:var(--ex-muted)}
.ex-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ex-muted)}
.ex-check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--ex-accent)}
.ex-check a{text-decoration:underline;color:var(--ex-ink)}

/* Sign in: motivation beside the form */
.ex-auth{display:flex;gap:100px;align-items:flex-start;padding:100px var(--ex-gutter)}
.ex-auth-aside{box-sizing:border-box;display:flex;flex-direction:column;gap:28px;width:580px;max-width:100%;padding:42px;border-radius:28px;flex:none}
.ex-auth-big{font-size:48px;font-weight:800;line-height:1.45}
.ex-auth-copy{font-size:18px;color:var(--ex-muted)}
.ex-auth-tag{font-size:36px;font-weight:700;line-height:1.45}
.ex-si-tag{font-family:"Abhaya Libre",Manrope,serif}
.ex-auth-form{display:flex;flex-direction:column;gap:22px;width:540px;max-width:100%}
.ex-btn-forgot{align-self:flex-start;width:220px}

/* Narrow pages: create account, reset password (640 frame) */
.ex-narrow{box-sizing:border-box;display:flex;flex-direction:column;gap:24px;width:100%;max-width:640px;margin:0 auto;padding:48px 48px 72px}
.ex-narrow .ex-title{font-size:40px;line-height:1.2}
.ex-narrow .ex-input{border-radius:10px;padding:16px;border-color:var(--ex-line)}
.ex-narrow .ex-form{gap:20px}

/* Checkout */
.ex-checkout{display:flex;flex-direction:column;gap:28px;padding:60px var(--ex-gutter)}
.ex-steps{white-space:pre-wrap}
.ex-checkout-grid{display:grid;grid-template-columns:minmax(0,816px) minmax(0,440px);gap:64px;align-items:start}
.ex-checkout-main{display:flex;flex-direction:column;gap:24px}
.ex-methods{display:flex;gap:16px}
.ex-method{flex:1 1 0;background:#fff;color:var(--ex-ink);border:1.5px solid var(--ex-ink)}
.ex-method[aria-selected="true"]{background:var(--ex-accent);color:#fff;border-color:var(--ex-accent)}
.ex-card{box-sizing:border-box;display:flex;flex-direction:column;gap:16px;padding:28px;border-radius:20px;background:#fff}
.ex-card[hidden],.ex-bank[hidden]{display:none}
.ex-card-title{font-size:24px;font-weight:700;line-height:1.45}
.ex-card-title-sm{font-size:20px}
.ex-bank{display:flex;flex-direction:column;gap:24px}
.ex-bank-name{font-size:18px;font-weight:700}
.ex-bank-lines strong{color:var(--ex-ink)}
.ex-bank-amount{font-size:22px;font-weight:800}
.ex-drop{position:relative;display:flex;flex-direction:column;gap:12px;padding:32px;border:1px dashed var(--ex-accent);border-radius:12px;background:#f1ebfa;cursor:pointer}
.ex-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.ex-drop:focus-within{outline:2px solid var(--ex-accent);outline-offset:2px}
.ex-drop.is-over,.ex-drop.has-file{border-style:solid;background:#e9defa}
.ex-drop-title{font-size:18px;font-weight:700;color:var(--ex-ink);word-break:break-word}
.ex-drop-hint{font-size:14px;color:var(--ex-muted)}
.ex-checkout .ex-input{border-radius:10px;padding:16px;border-color:var(--ex-line);font-size:15px}
.ex-summary{display:flex;flex-direction:column;gap:22px;padding:32px;border-radius:24px;background:var(--ex-paper)}
.ex-summary h2{font-size:25px;font-weight:800;line-height:1.45}
.ex-summary-cover{width:120px;height:168px;object-fit:contain;border-radius:10px}
.ex-summary-set{font-size:20px;font-weight:700}
.ex-summary-total{font-size:29px;font-weight:800;white-space:pre-wrap}
.ex-summary .ex-fine{font-size:13px}

/* Payment status card */
.ex-status-area{display:flex;flex-direction:column;padding:140px var(--ex-gutter)}
.ex-status{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:24px;width:100%;max-width:1160px;margin:0 auto;padding:56px;border-radius:28px;background:#fff}
.ex-status[hidden],#st-payment [hidden]{display:none}
.ex-symbol{display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:100px;background:#f1ebfa;color:var(--ex-accent);font-size:42px;font-weight:800;line-height:1}
.ex-symbol.is-alert{background:#f2f2f1;color:var(--ex-ink)}
.ex-symbol svg{width:44px;height:44px;flex:none}
.ex-payment-more{padding:60px var(--ex-gutter);background:#fff}
.ex-payment-more .ex-btn{width:360px;max-width:100%}
.ex-status-title,.ex-status-lead,.ex-review-decide,.ex-review-receipt{overflow-wrap:anywhere;min-width:0}
.ex-status-title{font-size:42px;font-weight:800;line-height:1.45}
.ex-status-lead{font-size:19px;color:var(--ex-muted);max-width:980px}
.ex-status-note{font-size:13px;font-weight:700}
.ex-status-btn{width:340px;max-width:100%}
.ex-confetti{position:fixed;inset:0;width:100vw;height:100vh;z-index:90;pointer-events:none}
.ex-celebration-sound{align-self:center;margin:16px auto 0;min-height:44px;padding:8px 16px;border:1px solid #ddd1ee;border-radius:100px;background:#fff;color:var(--ex-accent);font:inherit;font-size:13px;cursor:pointer}
.ex-celebration-sound:hover{background:#f1ebfa}
.ex-celebration-sound:focus-visible{outline:2px solid var(--ex-accent);outline-offset:3px}
#payment-sound-status{align-self:center;max-width:44ch;margin:8px auto 0;text-align:center}
.ex-sound-status[hidden]{display:none}
.ex-confetti[hidden],.ex-celebration-sound[hidden]{display:none}
.ex-payment-result-area{padding:72px 24px 96px}
.ex-payment-result-area .ex-status{max-width:840px;padding:40px;gap:20px;border-radius:16px}
.ex-payment-result-area .ex-symbol{width:64px;height:64px}
.ex-payment-result-area .ex-symbol svg{width:32px;height:32px}
.ex-payment-result-area .ex-status-title{font-size:34px;line-height:1.25;letter-spacing:-.02em}
.ex-payment-result-area .ex-status-lead{font-size:16px;line-height:1.7;max-width:65ch}
.ex-payment-result-area .ex-status-btn{width:auto;min-width:220px}
.ex-payment-result-area .ex-rule{margin:0}
.ex-wait-spinner{display:inline-block;box-sizing:border-box;width:28px;height:28px;border:3px solid #ddd1ee;border-top-color:var(--ex-accent);border-radius:50%;animation:ex-payment-wait 1s linear infinite;flex:none}
.ex-wait-label{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ex-accent)}
.ex-wait-label .ex-wait-spinner{width:20px;height:20px;border-width:2px}
.ex-library-payment{padding:24px 0;border-bottom:1px solid var(--ex-line,#e6e6e6)}
@keyframes ex-payment-wait{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ex-wait-spinner{animation:none}}
@media(max-width:600px){.ex-payment-result-area{padding:32px 16px 56px}.ex-payment-result-area .ex-status{padding:24px;gap:18px}.ex-payment-result-area .ex-status-title{font-size:27px}.ex-payment-result-area .ex-status-btn{width:100%;min-width:0}}
.ex-progress{display:grid;grid-template-columns:repeat(3,minmax(0,320px));gap:24px;margin:0;padding:0;list-style:none;align-self:stretch}
.ex-progress li{display:flex;flex-direction:column;gap:8px}
.ex-progress strong{font-size:26px;font-weight:800}
.ex-progress span{font-size:15px;font-weight:700}
.ex-progress .is-now{background:#f1ebfa;color:var(--ex-accent)}
.ex-status-area.ex-receipt-area{box-sizing:border-box;width:calc(100% - 48px);max-width:1040px;margin-inline:auto;padding:60px 0 96px}
.ex-receipt-submitted.ex-status{padding:40px;border-radius:16px;gap:22px}
.ex-receipt-submitted .ex-symbol{width:56px;height:56px}
.ex-receipt-submitted .ex-symbol svg{width:28px;height:28px}
.ex-receipt-submitted .ex-status-title{font-size:34px;line-height:1.3}
.ex-receipt-submitted .ex-status-lead{font-size:16px;line-height:1.65;max-width:760px}
.ex-receipt-submitted .ex-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ex-receipt-submitted .ex-progress li{padding:16px;border-radius:10px;gap:8px;border-bottom:2px solid var(--ex-line)}
.ex-receipt-submitted .ex-progress li.is-now{border-bottom-color:var(--ex-accent)}
.ex-receipt-submitted .ex-progress strong{font-size:20px;line-height:1.3}
.ex-receipt-submitted .ex-progress span{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.ex-receipt-submitted > .ex-muted{font-size:14px;line-height:1.7;max-width:760px}
.ex-receipt-actions{display:flex;flex-wrap:wrap;gap:12px;width:100%}
.ex-receipt-actions .ex-btn{width:auto;min-width:220px;max-width:100%;min-height:52px;height:auto;padding:15px 24px;font-size:14px}
.ex-receipt-actions .ex-btn-outline{border-color:#d9d2e3}
@media(max-width:600px){
 .ex-status-area.ex-receipt-area{padding:32px 0 56px}
 .ex-receipt-submitted.ex-status{padding:24px;gap:20px}
 .ex-receipt-submitted .ex-status-title{font-size:27px}
 .ex-receipt-submitted .ex-progress{grid-template-columns:minmax(0,1fr);gap:8px}
 .ex-receipt-submitted .ex-progress li{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:10px;padding:14px 12px}
 .ex-receipt-actions{flex-direction:column}
 .ex-receipt-actions .ex-btn{width:100%;min-width:0;padding-inline:12px}
}
#cybersource-buttons:empty{display:none}
/* UC owns the secure frame contents. Size its outer frame without clipping
   network logos or overriding the gateway's dynamic height for more methods. */
.ex-gateway-area{padding-top:64px;padding-bottom:64px}
#cybersource-checkout{max-width:800px;gap:20px}
#cybersource-checkout .ex-status-title{font-size:34px;line-height:1.25}
#cybersource-checkout .ex-status-lead{font-size:17px}
#cybersource-checkout .ex-muted{font-size:14px;line-height:1.65;max-width:65ch}
#cybersource-checkout #checkout-start{width:100%}
#cybersource-buttons{width:100%;min-width:0;margin:4px 0}
#cybersource-buttons iframe{display:block;width:100%;max-width:100%;border:0;box-sizing:border-box}
.ex-payment-open{overflow:hidden}
.ex-payment-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(10,10,10,.48);box-sizing:border-box}
.ex-payment-overlay[hidden]{display:none}
.ex-payment-dialog{position:relative;display:flex;flex-direction:column;width:100%;max-width:640px;max-height:calc(100dvh - 48px);overflow:hidden;border-radius:16px;background:var(--ex-white);box-shadow:0 24px 72px rgba(10,10,10,.22)}
.ex-payment-dialog-head{flex:none;display:flex;align-items:center;gap:20px;padding:24px 28px;background:var(--ex-white);border-bottom:1px solid var(--ex-line)}
.ex-payment-order{flex:1;min-width:0}
.ex-payment-dialog-head h2{font-size:20px;font-weight:800;line-height:1.3}
.ex-payment-dialog-head p{margin-top:6px;font-size:13px;line-height:1.5;color:var(--ex-muted);overflow-wrap:anywhere}
.ex-payment-total{flex:none;font-size:18px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.ex-payment-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid var(--ex-line);border-radius:50%;background:var(--ex-white);color:var(--ex-ink);cursor:pointer}
.ex-payment-close:hover{background:#f0e9fa;border-color:var(--ex-accent)}
.ex-payment-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 24px 24px;scrollbar-width:thin;scrollbar-color:#c4b0e2 var(--ex-white);scroll-padding-block:16px}
.ex-payment-dialog-body::-webkit-scrollbar{width:6px}
.ex-payment-dialog-body::-webkit-scrollbar-thumb{background:#c4b0e2;border-radius:6px}
.ex-payment-dialog-body::-webkit-scrollbar-track{background:var(--ex-white)}
#cybersource-form iframe{display:block;width:100%;max-width:100%;border:0}
.ex-payment-focus-guard{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden}
@media(max-width:600px){.ex-payment-overlay{padding:12px}.ex-payment-dialog{max-height:calc(100dvh - 24px)}.ex-payment-dialog-head{padding:16px;gap:12px;flex-wrap:wrap}.ex-payment-dialog-head h2{font-size:18px}.ex-payment-order{flex-basis:calc(100% - 56px)}.ex-payment-close{order:1}.ex-payment-order{order:0}.ex-payment-total{order:2;flex-basis:100%;font-size:20px}.ex-payment-dialog-body{padding:8px 12px 16px}}
#cybersource-checkout .ex-fine{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;padding-top:20px;border-top:1px solid var(--ex-line);font-size:13px;line-height:1.6}
#cybersource-checkout .ex-fine a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
@media(max-width:600px){#cybersource-checkout .ex-status-title{font-size:28px}#cybersource-checkout .ex-fine{gap:8px 16px}}

/* Pages with a heading block */
.ex-page-pad{display:flex;flex-direction:column;gap:24px;padding:60px var(--ex-gutter) 96px}
.ex-page-pad > .ex-title:first-child{font-size:46px}
.ex-lib-tabs{display:flex;align-items:center;gap:48px;flex-wrap:wrap}
.ex-tabs{display:flex;gap:16px}
.ex-tabs a{display:inline-flex;align-items:center;min-height:38px;min-width:170px;padding:0 10px;border-radius:100px;font-size:12px;font-weight:700}
.ex .ex-tabs a[aria-current="page"]{background:#6935bd;color:#fff}
.ex-tabs a:not([aria-current]):hover{text-decoration:underline}
.ex-lib-profile{width:220px}
.ex-banner{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:24px 28px}
.ex-banner h2{font-size:22px;font-weight:700;line-height:1.45}
.ex-banner .ex-muted{font-size:14px}
.ex-banner .ex-btn{width:200px}
.ex-shelf{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}
.ex-shelf-item{display:flex;gap:32px;align-items:center;padding:32px;border-radius:24px;background:#fff}
.ex-shelf-cover{width:132px;height:184px;object-fit:cover;border-radius:6px;flex:none}
.ex-shelf-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.ex-shelf-copy h2{font-size:32px;font-weight:800;line-height:1.3}
.ex-shelf-copy .ex-btn{width:300px;max-width:100%}
.ex-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 16px;border-radius:100px;background:#f1ebfa;color:var(--ex-accent);font-size:11px;font-weight:800}
.ex-library.ex-page-pad{min-height:calc(100dvh - 150px);box-sizing:border-box;width:calc(100% - 48px);max-width:1040px;margin-inline:auto;padding:60px 0 96px;gap:28px}
.ex-library-heading{display:grid;gap:12px}
.ex-library-heading .ex-title{font-size:38px;line-height:1.25}
.ex-library-heading .ex-lead{margin:0;line-height:1.6}
.ex-library .ex-lib-tabs{gap:16px;padding-bottom:24px;border-bottom:1px solid var(--ex-line)}
.ex-library .ex-tabs{gap:10px;flex-wrap:wrap}
.ex-library .ex-tabs a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:50px;min-width:170px;padding:12px 22px;border:1px solid #d9d2e3;background:#fff;border-radius:100px;font-size:14px;font-weight:700;text-align:center;line-height:1.4;text-decoration:none;transition:background-color .18s,border-color .18s}
.ex-library .ex-tabs a[aria-current="page"]{border-color:var(--ex-accent)}
.ex-library .ex-tabs a:not([aria-current]):hover{background:#f1ebfa;border-color:var(--ex-accent);text-decoration:none}
.ex-library .ex-tabs a:focus-visible{outline:2px solid var(--ex-accent);outline-offset:3px}
.ex-library .ex-shelf-copy{min-width:0;flex:1}
.ex-library .ex-shelf-copy h2{overflow-wrap:anywhere}
.ex-library-ready{box-sizing:border-box;min-width:180px;max-width:100%}
.ex-library .ex-shelf-cover{object-fit:contain}
.ex-library .ex-empty{padding:40px;border-radius:16px;gap:14px}
.ex-library .ex-empty h2{font-size:26px;line-height:1.4;max-width:640px}
.ex-library .ex-empty p{max-width:620px;line-height:1.65}
.ex-library .ex-empty .ex-btn{margin-top:10px;width:auto;min-width:220px;max-width:100%}
.ex-library .ex-shelf-item{border-radius:16px}
@media(max-width:600px){
 .ex-library.ex-page-pad{padding:32px 0 56px;gap:24px}
 .ex-library-heading .ex-title{font-size:30px}
 .ex-library .ex-lib-tabs{align-items:stretch;gap:12px;padding-bottom:20px}
 .ex-library .ex-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px}
 .ex-library .ex-tabs a{min-width:0;padding:12px 10px;font-size:13px}
 .ex-library .ex-empty{padding:24px;gap:12px}
 .ex-library .ex-empty h2{font-size:22px}
 .ex-library .ex-empty .ex-btn{width:100%;min-width:0;padding-inline:14px}
}
.ex-empty{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:32px;border-radius:24px;background:#fff}
.ex-empty h2{font-size:24px;font-weight:800}
.ex-empty .ex-btn{width:260px}

/* Payment history and the review queue */
.ex-history{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}
.ex-history-row{display:grid;grid-template-columns:minmax(0,1fr) 200px minmax(0,1fr) 154px;gap:24px;align-items:center;padding:20px 24px;border-radius:16px;background:var(--ex-paper)}
.ex-paper .ex-history-row{background:#fff}
.ex-history-row h2,.ex-history-amount{font-size:20px;font-weight:700}
.ex-history-status{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--ex-muted)}
.ex-history-status small{font-size:12px}
.ex-history-view{font-size:12px}
.ex-payment-history .ex-history-row{grid-template-columns:minmax(0,1.2fr) auto minmax(0,1fr) 120px;padding:28px;gap:24px}
.ex-payment-history .ex-history-row h2{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.ex-payment-history .ex-history-amount{font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ex-payment-history .ex-history-status{line-height:1.6;overflow-wrap:anywhere}
.ex-payment-history .ex-history-view{font-size:14px;min-height:50px;height:auto;padding:13px 20px;border-color:#d9d2e3}
@media(max-width:900px){
 .ex-payment-history .ex-history-row{grid-template-columns:minmax(0,1fr) auto;gap:16px}
 .ex-payment-history .ex-history-view{width:auto;grid-column:2;grid-row:2}
}
@media(max-width:600px){
 .ex-payment-history .ex-history-row{grid-template-columns:minmax(0,1fr);padding:24px;gap:14px}
 .ex-payment-history .ex-history-view{width:100%;grid-column:1;grid-row:auto;margin-top:6px}
}

/* Profile */
.ex-page .ex-profile > *{width:100%;max-width:640px;margin-inline:auto}
.ex-profile-form{max-width:640px;gap:20px}
.ex-profile .ex-input{border-radius:10px;padding:16px;border-color:var(--ex-line);font-size:15px}
.ex-profile-btn{width:300px;max-width:100%}
.ex-profile-more{display:flex;flex-direction:column;gap:16px;padding:60px var(--ex-gutter);background:#fff}
.ex-profile-more .ex-btn{width:320px}

/* Admin receipt review */
#ex-review{display:flex;flex-direction:column;gap:24px}
.ex-review-grid{display:grid;grid-template-columns:minmax(0,600px) minmax(0,680px);gap:32px;align-items:start}
.ex-review-receipt,.ex-review-decide{gap:20px;padding:32px;border-radius:24px}
.ex-receipt-frame{display:flex;flex-direction:column;gap:12px;align-items:flex-start;justify-content:center;min-height:220px;padding:24px;border-radius:12px;background:#f2f2f1;overflow:hidden}
.ex-receipt-frame img{display:block;max-width:100%;max-height:520px;margin:auto;object-fit:contain}
.ex-receipt-frame.is-empty{padding:40px}
.ex-receipt-big{font-size:28px;font-weight:600;color:var(--ex-muted)}
.ex-review-set{font-size:26px;font-weight:700;line-height:1.45}
.ex-review-amount{font-size:24px;font-weight:800}
.ex-review-decide .ex-input{border-radius:10px;padding:16px;border-color:var(--ex-line);font-size:15px}
.ex-narrow-done{display:flex;flex-direction:column;align-items:flex-start;gap:24px;max-width:640px}
.ex-narrow-done[hidden],#ex-review[hidden]{display:none}
.ex-review-page:has(.ex-narrow-done:not([hidden])){background:#fff}
.ex-narrow-done .ex-title .st-ic{width:36px;height:36px;vertical-align:middle}
.ex-done-sub{font-size:24px;font-weight:700}

/* Collection page (1440 frame, 48px gutters) */
.ex-collection{--ex-gutter:max(48px,calc((100% - 1344px) / 2))}
.ex-col-head{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:48px var(--ex-gutter)}
.ex .ex-back{font-size:13px;font-weight:500;color:#6935bd}
.ex-back:hover{text-decoration:underline}
.ex-col-title{font-size:60px;font-weight:600;line-height:1.12}
.ex-si-title{font-family:"Abhaya Libre",Manrope,serif;font-weight:700}
.ex-col-sub{font-size:27px;font-weight:800}
.ex-col-count{font-size:17px;font-weight:500;color:var(--ex-accent)}
.ex-col-owned{font-size:15px;font-weight:700}
.ex-col-price{display:flex;align-items:center;gap:24px;scroll-margin-top:24px}
.ex-col-price p{width:300px;font-size:34px;font-weight:800}
.ex-col-buy{width:240px}
.ex-col-pending{font-size:14px;color:var(--ex-muted)}
.ex-col-books{display:flex;flex-direction:column;gap:24px;padding:48px var(--ex-gutter)}
.ex-col-books h2{font-size:30px;font-weight:800;line-height:1.45}
.ex-col-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}
.ex-col-item{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.ex-col-item h3{font-size:20px;font-weight:700;line-height:1.45}
.ex-col-display{display:flex;justify-content:center;padding:28px;border-radius:16px;background:var(--ex-paper)}
.ex-col-cover{position:relative;display:block;width:212px;height:293px;padding:0;border:0;background:none;cursor:pointer;filter:drop-shadow(0 14px 13px rgba(31,13,51,.16));transition:translate .18s ease-out}
.ex-col-cover .ex-book-back{position:absolute;left:5px;top:5px;width:205px;height:287px;border-radius:3px;background:var(--ex-line)}
.ex-col-cover img{position:absolute;left:0;top:0;width:205px;height:287px;object-fit:contain;border-radius:3px;transition:rotate .18s ease-out}
.ex-col-cover .ex-book-spine{position:absolute;left:0;top:0;width:5px;height:287px;background:var(--ex-ink);opacity:.16}
.ex-col-cover.is-static{cursor:default}
.ex-col-cover.is-blank{background:var(--ex-line);border-radius:3px}
.ex-col-cover:hover{translate:0 -5px}
.ex-col-cover:hover img{rotate:2deg}
.ex-col-note{display:flex;justify-content:center;padding:48px var(--ex-gutter)}
.ex-note{display:flex;flex-direction:column;gap:24px;width:1080px;max-width:100%}
.ex-note p{font-size:18px;line-height:1.7;color:var(--ex-muted)}
.ex-note .ex-note-hi{font-weight:600;line-height:1.45;color:var(--ex-ink)}
.ex-note .ex-note-lead{font-size:30px;font-weight:700;line-height:1.3;color:var(--ex-accent)}
.ex-note-si p{font-family:Yaldevi,Manrope,sans-serif;line-height:1.85}
.ex-note-si .ex-note-hi{font-size:20px;line-height:1.55}
.ex-note-si .ex-note-lead{line-height:1.55}
.ex-col-buyband{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:48px var(--ex-gutter);background:var(--ex-paper)}
.ex-col-buyband h2{font-size:34px;font-weight:800;line-height:1.45}
.ex-col-buyband p{font-size:17px;font-weight:500;color:var(--ex-muted)}
.ex-buyband-btn{width:370px;max-width:100%}
.ex-sticky{display:none}

/* Free preview dialog (handoff: 180 ms fade, scale 97.5% to 100%) */
.ex-preview{box-sizing:border-box;width:min(960px,calc(100% - 32px));max-height:calc(100% - 32px);padding:32px;border:0;border-radius:24px;background:#fff;color:#0a0a0a;font-family:Manrope,system-ui,sans-serif}
.ex-preview::backdrop{background:rgba(10,10,10,.45)}
.ex-preview[open]{display:flex;flex-direction:column;gap:20px;animation:ex-pop .18s ease-out}
@keyframes ex-pop{from{opacity:0;scale:.975}to{opacity:1;scale:1}}
.ex-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ex-preview-head h2{font-size:26px;font-weight:700;margin:0}
.ex-preview-x{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:100px;background:none;cursor:pointer;color:#0a0a0a}
.ex-preview-x .st-ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.ex-preview-x:hover{background:#f2f2f1}
.ex-preview-sub{margin:0;font-size:13px;color:#5c5c5c}
.ex-preview-stage{display:flex;align-items:center;justify-content:center;height:min(520px,55vh);padding:24px;border-radius:16px;background:#fafafa}
.ex-preview-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 14px 26px rgba(31,13,51,.16);transition:opacity .18s}
.ex-preview.is-turning .ex-preview-stage img{opacity:.35}
.ex-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ex-preview-nav p{margin:0;font-size:15px;color:#5c5c5c}
.ex-preview-step{width:100px}
.ex-preview .ex-btn-dark{background:#0a0a0a;color:#fff}
.ex-preview-note{margin:0;text-align:center;font-size:12px;color:#5c5c5c}

/* Reader header */
.ex-reader-heading h1{font-family:Manrope,system-ui,sans-serif;font-size:30px;font-weight:800;letter-spacing:0}
.ex-reader-heading .reader-eyebrow{font-size:13px;letter-spacing:0;text-transform:none;color:#5c5c5c}
.ex-reader-switch{display:flex;gap:12px}
.ex-reader-switch .ex-btn{height:48px;min-width:150px;padding:12px 22px}

/* Tablet */
@media (max-width:1100px){
	.ex-auth{flex-direction:column;gap:32px;padding:56px var(--ex-gutter)}
	.ex-auth-aside{width:100%;padding:0}
	.ex-auth-big{font-size:40px}
	.ex-auth-tag{font-size:28px}
	.ex-checkout-grid,.ex-review-grid{grid-template-columns:minmax(0,1fr)}
	.ex-status-area{padding:64px var(--ex-gutter)}
	.ex-history-row{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
	.ex-history-view{grid-column:2;grid-row:1 / span 2}
	.ex-col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Phone */
@media (max-width:640px){
	.ex-title,.ex-page-pad > .ex-title:first-child{font-size:30px;line-height:1.25}
	.ex-auth{padding:32px 24px 48px}
	.ex-auth-big{font-size:32px}
	.ex-auth-tag{font-size:24px}
	.ex-auth-form,.ex-btn-forgot{width:100%}
	.ex-narrow{padding:32px 24px 56px}
	.ex-narrow .ex-title{font-size:30px}
	.ex-checkout{padding:32px 24px 48px;gap:20px}
	.ex-methods{flex-direction:column;gap:12px}
	.ex-card,.ex-summary{padding:20px}
	.ex-drop{padding:24px}
	.ex-status-area{padding:24px 16px 48px}
	.ex-status{padding:28px 20px;gap:18px;border-radius:24px}
	.ex-symbol{width:72px;height:72px;font-size:32px}
	.ex-symbol svg{width:32px;height:32px}
	.ex-payment-more{padding:32px 24px}
	.ex-status-title{font-size:28px;line-height:1.25}
	.ex-status-lead{font-size:16px}
	.ex-progress{grid-template-columns:minmax(0,1fr);gap:12px}
	.ex-page-pad{padding:32px 24px 56px}
	.ex-lib-tabs{gap:16px}
	.ex-tabs a{min-width:0;padding:0 14px}
	.ex-shelf-item{flex-direction:column;align-items:flex-start;padding:20px;gap:20px}
	.ex-shelf-copy h2{font-size:24px}
	.ex-history-row{grid-template-columns:minmax(0,1fr);padding:20px}
	.ex-history-view{grid-column:1;grid-row:auto;width:100%}
	.ex-profile-more{padding:32px 24px}
	.ex-profile-more .ex-btn,.ex-profile-btn,.ex-status-btn,.ex-lib-profile,.ex-banner .ex-btn,.ex-shelf-copy .ex-btn,.ex-empty .ex-btn{width:100%}
	.ex-collection{--ex-gutter:24px}
	.ex-col-head{gap:14px;padding:24px}
	.ex-col-title{font-size:40px}
	.ex-col-sub{font-size:20px;line-height:1.3}
	.ex-col-count{font-size:15px}
	.ex-col-price{flex-direction:column;align-items:flex-start;gap:12px}
	.ex-col-price p{width:auto;font-size:28px}
	.ex-col-books{padding:32px 24px}
	.ex-col-books h2{font-size:24px}
	.ex-col-grid{grid-template-columns:minmax(0,1fr);gap:28px}
	.ex-col-note{padding:32px 24px}
	.ex-note .ex-note-lead{font-size:24px}
	.ex-note p{font-size:16px}
	.ex-col-buyband{padding:32px 24px}
	.ex-col-buyband h2{font-size:26px}
	.ex-collection.has-sticky{padding-bottom:88px}
	.ex-collection.has-sticky .ex-col-price .ex-col-buy{display:none}
	.ex-sticky{position:fixed;inset:auto 0 0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px calc(12px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -8px 24px rgba(10,10,10,.08)}
	.ex-sticky p{font-size:22px;font-weight:800}
	.ex-sticky .ex-btn{width:170px;font-size:14px}
	.ex-preview{padding:20px;border-radius:20px}
	.ex-preview-stage{height:56vh;padding:12px}
	.ex-preview-step{width:72px}
	.ex-reader-switch{display:none}
}

/* ===== Homepage update (Figma revision: upright books, About Sisu Academy, publication footer) ===== */
@font-face{font-family:Yaldevi;src:url('/assets/sisu_library/media/yaldevi-latin-wght.woff2') format('woff2');font-weight:200 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.ex-phone{display:none}

/* Homepage navigation: brand · Home / Exam papers / About us · Sign in + Get started */
.ex-nav-home{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px}
.ex-mainnav{display:flex;gap:24px;align-items:center;justify-content:center}
.ex-mainnav a{padding:8px 4px;font-size:15px;font-weight:600;line-height:1.5}
.ex-mainnav a:hover{color:#6935bd}
.ex-mainnav a[aria-current="page"]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.ex-nav-actions{display:flex;gap:12px;justify-content:flex-end}
.ex-nav-admin{flex-shrink:0}
@media(max-width:800px){
	.ex-nav-staff{display:flex;flex-wrap:wrap}
	.ex-nav.ex-nav-staff .ex-brand{flex-basis:100%}
	.ex-nav-staff .ex-nav-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
}
.ex-nav-actions .ex-btn{height:56px;padding:12px 24px}
.ex-nav-signin{width:154px}
.ex-nav-start{width:178px}

/* Hero: soft flowing background, two-line lead, purple primary action, upright subject books */
.ex-home .ex-hero{position:relative;overflow:clip;gap:28px;padding:64px var(--ex-gutter) 36px}
.ex-hero-bg{position:absolute;left:0;top:0;width:100%;height:838px;max-width:none;pointer-events:none;z-index:0}
.ex-home .ex-hero > :not(.ex-hero-bg){position:relative;z-index:1}
.ex-home .ex-hero-sub{font-size:20px;line-height:1.5;max-width:880px}
.ex-home .ex-hero-actions{gap:16px}
.ex-home .ex-hero-actions .ex-btn{height:56px;padding:12px 24px}
.ex-home .ex-hero-actions .ex-btn:first-child{width:292px}
.ex-home .ex-hero-actions .ex-btn:last-child{width:260px}
.ex-shelfrow{display:flex;gap:24px;align-items:center;justify-content:center;width:100%;max-width:1312px;height:354px}
.ex-shelfrow-item{flex:none;animation:ex-rise .42s ease-out backwards}
.ex-shelfrow-item:nth-child(2){animation-delay:55ms}.ex-shelfrow-item:nth-child(3){animation-delay:110ms}.ex-shelfrow-item:nth-child(4){animation-delay:165ms}.ex-shelfrow-item:nth-child(5){animation-delay:220ms}.ex-shelfrow-item:nth-child(6){animation-delay:275ms}

/* One upright hardcover, 188 × 322 (layer positions from the Figma frame) */
.ex-upright{position:relative;display:block;width:188px;height:322px;transition:translate .18s ease-out}
.ex-upright > *{position:absolute;display:block;max-width:none}
.ex-up-shadow{left:-7px;top:251.05px;width:204px;height:40px}
.ex-up-reflect{left:13.76px;top:58.58px;width:174px;height:253px;object-fit:cover;opacity:.07;filter:blur(.4px);rotate:4.29deg;scale:1 -1;transform:skewX(4.29deg)}
.ex-up-spine{left:-.5px;top:3.33px;width:15px;height:259.372px}
.ex-up-cover,.ex-up-light{left:13.76px;top:10.51px;width:174px;height:253px;border-radius:1.5px;rotate:4.29deg;transform:skewX(4.29deg)}
.ex-up-cover{object-fit:cover;box-shadow:5px 7px 9px rgba(20,10,33,.14)}
.ex-up-light{background:linear-gradient(90deg,rgba(0,0,0,.13) 0%,rgba(255,255,255,.15) 5%,rgba(255,255,255,0) 10%,rgba(0,0,0,.035) 100%)}
.ex-up-highlight{left:15px;top:4px;width:1.1px;height:253px;background:rgba(255,255,255,.38)}
.ex-up-crease{left:18px;top:4px;width:1.4px;height:253px;background:rgba(0,0,0,.21)}
.ex-up-board{left:13.5px;top:256.46px;width:175px;height:16.128px}
/* Hover (handoff): 180 ms, 5 px lift */
.ex-upright:hover,.ex-upright:focus-visible{translate:0 -5px}
.ex-upright:focus-visible{outline:2px solid #6935bd;outline-offset:6px;border-radius:4px}

/* About Sisu Academy */
.ex-about{display:flex;gap:64px;align-items:flex-start;padding:80px var(--ex-gutter);background:var(--ex-paper)}
.ex-about-intro{display:flex;flex-direction:column;gap:18px;width:310px;flex:none}
.ex-about-eyebrow{font-size:12px;font-weight:700;line-height:1.5;color:var(--ex-accent)}
.ex-about-intro h2{font-size:44px;font-weight:800;line-height:1.2}
.ex-about-motto{font-family:Yaldevi,Manrope,sans-serif;font-size:28px;font-weight:700;line-height:1.55;color:var(--ex-accent)}
.ex-about-body{flex:1 1 auto;min-width:0;max-width:938px}
.ex-about-msg{display:flex;flex-direction:column;gap:28px;font-family:Yaldevi,Manrope,sans-serif}
.ex-about-msg p{font-size:19px;line-height:1.8;color:var(--ex-muted)}
.ex-about-msg .ex-about-hi{font-size:22px;font-weight:600;color:var(--ex-ink)}
.ex-about-msg .ex-about-lead{font-size:30px;font-weight:700;line-height:1.55;color:var(--ex-ink)}
.ex-about-mission{display:flex;flex-direction:column;gap:20px;padding:28px;border-radius:20px;background:#f1ebfa}
.ex-about-msg .ex-about-mission-title{font-size:27px;font-weight:700;line-height:1.55;color:var(--ex-accent)}
.ex-about-mission p:not(.ex-about-mission-title){color:var(--ex-ink)}
.ex-about-msg .ex-about-sign{font-size:20px;font-weight:600;color:var(--ex-ink)}

/* Footer: publication and copyright */
.ex-foot-links a:first-child{min-width:190px}
.ex-pub{display:flex;flex-direction:column;gap:14px;align-self:stretch}
.ex-pub p,.ex-pub a{margin:0}
.ex-pub-publisher{font-family:Yaldevi,Manrope,sans-serif;font-size:14px;font-weight:600;line-height:1.8;color:var(--ex-ink)}
.ex .ex-pub-link{font-size:14px;font-weight:600;line-height:1.5;color:#6935bd}
.ex-pub-link:hover{text-decoration:underline}
.ex-pub-year{font-family:Yaldevi,Manrope,sans-serif;font-size:14px;line-height:1.8;color:var(--ex-muted)}
.ex-pub-copy{font-size:13px;font-weight:600;line-height:1.5;color:var(--ex-ink)}
.ex-pub-notice{font-size:12px;line-height:1.5;color:var(--ex-muted)}
.ex-pub-si{font-family:Yaldevi,Manrope,sans-serif;line-height:1.8}
.ex-pub-notice.ex-pub-si{font-size:13px}
.ex-foot-pubbtn,.ex-foot .ex-foot-copy{display:none}
.ex-foot-pub{align-self:stretch}

/* About and Publication pages */
.ex-doc{box-sizing:border-box;display:flex;flex-direction:column;gap:20px;width:100%;max-width:1034px;margin:0 auto;padding:48px 48px 72px}
.ex-doc-back{max-width:260px}
.ex-doc-title{font-size:44px;font-weight:800;line-height:1.2}
.ex-doc .ex-about-motto{margin-bottom:12px}
.ex-doc-pub .ex-pub{gap:18px}
.ex-doc-pub .ex-pub-publisher{font-size:16px}
.ex-doc-pub .ex-pub-link,.ex-doc-pub .ex-pub-year{font-size:16px}
.ex-doc-pub .ex-pub-copy{font-size:15px}
.ex-doc-pub .ex-pub-notice{font-size:15px;line-height:1.6}

@media (max-width:1100px){
	.ex-nav-home{grid-template-columns:auto 1fr auto}
	.ex-mainnav{gap:12px}
	.ex-nav-signin{width:auto}
	.ex-nav-start{width:auto}
	.ex-shelfrow{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;padding-inline:4px;scrollbar-width:none}
	.ex-shelfrow::-webkit-scrollbar{display:none}
	.ex-shelfrow-item{scroll-snap-align:center}
	.ex-about{flex-direction:column;gap:32px}
	.ex-about-intro{width:auto}
}

/* Mobile frame (390, 24 px margins): stacked actions, swipeable books, short About, publication link */
@media (max-width:640px){
	.ex-desk{display:none}
	.ex-phone{display:revert}
	.ex-btn.ex-phone{display:flex}
	.ex-nav-home{display:flex;padding:16px 24px}
	.ex-nav-home .ex-brand{flex:1 1 auto}
	.ex-mainnav,.ex-nav-start{display:none}
	.ex-nav-home .ex-nav-signin{width:auto;min-width:108px;padding:12px 18px}
	.ex-home .ex-hero{gap:20px;padding:24px 24px 32px}
	.ex-home .ex-hero-sub{font-size:14px;max-width:342px}
	.ex-home .ex-hero-actions{flex-direction:column;gap:12px;max-width:342px}
	.ex-home .ex-hero-actions .ex-btn:first-child,.ex-home .ex-hero-actions .ex-btn:last-child{width:100%;flex:none;font-size:15px}
	.ex-shelfrow{width:calc(100% + 48px);margin-inline:-24px;padding-inline:24px;gap:16px;height:auto}
	.ex-upright{zoom:.72}
	.ex-swipe{margin:0;font-size:13px;color:var(--ex-muted)}
	.ex-set-desc,.ex-set-meta{font-size:15px}
	.ex-set-meta{color:var(--ex-accent)}
	.ex-set-actions{flex-direction:column-reverse}
	.ex-set-actions .ex-btn:first-child,.ex-set-actions .ex-btn:last-child{flex:none;width:100%;font-size:15px}
	.ex-about{padding:40px 24px;gap:0}
	.ex-about-intro{gap:18px;width:100%}
	.ex-home .ex-about-motto{font-size:28px;line-height:1.5;color:var(--ex-ink)}
	.ex-about-summary{font-family:Yaldevi,Manrope,sans-serif;font-size:17px;line-height:1.8;color:var(--ex-muted)}
	.ex-foot-pub{display:none}
	.ex-foot-pubbtn{display:flex}
	.ex-foot .ex-foot-copy{display:block}
	.ex-doc{padding:24px 24px 48px;gap:18px}
	.ex-doc-back{max-width:none}
	.ex-doc-title{font-size:34px}
	.ex-doc-pub .ex-doc-title{font-size:28px}
	.ex-docpage > .ex-nav{display:none}
	.ex-about-msg{gap:22px}
	.ex-about-msg p{font-size:17px}
	.ex-about-msg .ex-about-hi{font-size:20px}
	.ex-about-msg .ex-about-lead{font-size:24px}
	.ex-about-msg .ex-about-mission-title{font-size:22px}
	.ex-about-mission{padding:20px}
	.ex-doc-pub .ex-pub-publisher,.ex-doc-pub .ex-pub-link,.ex-doc-pub .ex-pub-year{font-size:15px}
	.ex-doc-pub .ex-pub-notice{font-size:14px}
}

/* Google sign-in, divider, medium select and Complete your profile (Figma 104:4427) */
.ex-g{font-weight:800;margin-right:6px}
.ex-divider{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ex-muted)}
.ex-divider::before,.ex-divider::after{content:"";flex:1 1 0;height:1px;background:var(--ex-line)}
.ex-select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;padding-right:44px;cursor:pointer}
.ex-complete-area{display:flex;justify-content:center;padding:64px 24px 96px}
.ex-complete{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:20px;width:100%;max-width:560px;padding:40px;border-radius:28px;background:#fff}
.ex-complete .ex-title{font-size:38px;line-height:1.3}
.ex-complete .ex-form{gap:20px}
.ex-complete .ex-label{font-size:13px;font-weight:700}
.ex-complete .ex-input{border-radius:10px;padding:16px;border-color:var(--ex-line);font-size:15px}
.ex-chip-ok{align-self:flex-start;font-size:12px}
@media (max-width:640px){
	.ex-complete-area{padding:24px 16px 48px}
	.ex-complete{padding:24px 20px;border-radius:24px}
	.ex-complete .ex-title{font-size:30px}
}

/* Reduced motion (handoff): no movement, scaling or loops; instant changes */
@media (prefers-reduced-motion:reduce){
	.ex *,.ex *::before,.ex *::after{animation:none!important;transition:none!important}
	.ex-book:hover,.ex-col-cover:hover,.ex-upright:hover,.ex-upright:focus-visible{translate:none}
	.ex-book:hover .ex-book-cover,.ex-col-cover:hover img{rotate:none}
	.ex-preview[open]{animation:none}
}

/* Required first-Google setup: a focused modal with no dismissal action. */
.ex-setup-dialog { box-sizing: border-box; width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 16px; color: #080808; background: #fff; overflow-y: auto; }
.ex-setup-dialog::backdrop { background: rgb(16 9 29 / 55%); }
.ex-setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ex-setup-dialog .ex-title { font-size: clamp(26px, 4vw, 34px); line-height: 1.25; margin-bottom: 12px; }
.ex-setup-dialog .ex-lead { font-size: 15px; line-height: 1.6; }
.ex-setup-identity { background: #f3edf9; padding: 14px 16px; border-radius: 8px; overflow-wrap: anywhere; margin: 20px 0 24px; }
.ex-setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ex-setup-grid > * { min-width: 0; }
.ex-setup-verification { border-top: 1px solid #e5dfea; margin-top: 20px; padding-top: 20px; }
.ex-setup-verification h2 { font-size: 19px; margin: 0 0 8px; }
.ex-setup-dialog .ex-hint { line-height: 1.6; }
.ex-setup-dialog input[name="code"] { font-size: 23px; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.ex-setup-dialog .ex-btn:disabled { opacity: .65; cursor: wait; }
@media (max-width: 540px) { .ex-setup-grid { grid-template-columns: 1fr; gap: 0; } .ex-setup-heading { flex-wrap: wrap; } }
.ex-setup-languages { display: flex; gap: 12px; margin-bottom: 18px; }
.ex-setup-languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #6331b7; text-underline-offset: 4px; }
.ex-setup-dialog .ex-password-control .ex-input { min-width: 0; flex: 1; border: 0; background: transparent; }

.ex-subject-count { margin: 0 0 12px; color: #61566d; font-size: 13px; }
.ex-subject-placeholder { display: grid; place-items: center; min-height: 170px; padding: 20px; background: #eee6fa; color: #48277c; font-weight: 700; }
