:root{--blue:#96cee7;--light:#c3e8f7;--orange:#f4a34f;--navy:#173a49;font-family:Montserrat,Arial,sans-serif;color:var(--navy);background:var(--blue)}*{box-sizing:border-box}body{margin:0}button,select,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #265a74;outline-offset:2px}[hidden]{display:none!important}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:clamp(42px,7vw,82px);line-height:1.06;margin:12px 0 22px}h2{font-size:clamp(27px,4vw,40px);margin:0 0 16px}h3{font-size:25px;margin:0 0 13px}p{line-height:1.65}button{background:var(--orange);border:1px solid var(--navy);color:var(--navy);border-radius:7px;padding:11px 16px;font-weight:700}button:hover{filter:brightness(.97)}.studio-header{display:flex;align-items:center;gap:20px;padding:17px clamp(16px,4vw,55px);background:var(--blue);border-bottom:1px solid #173a4935}.studio-header a{display:block}.studio-header img{width:clamp(140px,23vw,225px);display:block}.studio-header span{font-weight:800;letter-spacing:.16em;font-size:13px;border-left:1px solid #173a4955;padding-left:18px}.studio-header #signout{margin-left:auto;background:transparent}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em}.studio-login{min-height:70vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:35px;align-items:center;padding:clamp(25px,5vw,70px);background:var(--orange)}.login-intro p{max-width:560px}.login-panel{background:var(--light);padding:clamp(24px,4vw,44px);border:1px solid var(--navy);border-radius:14px;display:grid;gap:18px;box-shadow:8px 8px 0 #173a4920}.login-panel h2{margin:0}.login-panel label,#studio-editor label,.upload-form label,.admin-form label{display:grid;gap:8px;font-weight:700;font-size:13px}input,textarea,select{width:100%;min-width:0;padding:12px 14px;border:1px solid #81aebf;border-radius:7px;color:var(--navy);background:#f3fbff;font-weight:400;font-size:15px}#login-error,#editor-error{color:#9f3030;font-size:13px;margin:0}#studio-app{padding:25px clamp(15px,4vw,62px) 70px;max-width:1550px;margin:auto}.studio-hero{background:var(--orange);border-radius:17px;padding:clamp(24px,5vw,55px);display:flex;align-items:end;gap:20px;justify-content:space-between}.studio-hero p{margin:0}.studio-chapter-select{min-width:min(280px,100%)}.studio-chapter-select label{display:block;font-size:12px;font-weight:800;margin-bottom:8px}.studio-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 25px}.studio-tabs button{background:var(--light);padding:12px 16px}.studio-tabs button[aria-pressed="true"]{background:var(--orange);box-shadow:inset 0 -3px 0 var(--navy)}.studio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:15px}.studio-panel{padding:clamp(20px,3vw,33px);background:var(--light);border:1px solid #81afc2;border-radius:13px;margin-bottom:18px}.studio-panel h2{margin:0 0 10px}.studio-card{background:#e8f7fd;padding:20px;border:1px solid #9bc8da;border-radius:12px}.studio-card .number{font:normal 49px Georgia,serif}.studio-actions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.studio-table-wrap{overflow-x:auto}.studio-table{border-collapse:collapse;width:100%;font-size:13px}.studio-table th{text-align:left;font-weight:800;background:#96cee7;padding:12px;white-space:nowrap}.studio-table td{padding:11px 12px;border-bottom:1px solid #8bbccd;vertical-align:top;min-width:80px}.studio-table select{min-width:140px;font-size:12px;padding:8px}.studio-table button{font-size:12px;padding:8px}.studio-muted{font-size:13px;color:#496778}.studio-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:15px 0}.studio-filters input{flex:2 1 200px}.studio-filters select{flex:1 1 145px}.upload-form,.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px;align-items:end;margin:20px 0}.upload-form input[type=file]{background:#e8f7fd}.studio-tag{background:var(--orange);padding:4px 8px;border-radius:5px;font-size:12px;font-weight:700}.studio-note{padding:15px;background:#f6e0b9;border-left:3px solid var(--orange);border-radius:6px;font-size:13px;margin-top:16px}#studio-editor{border:1px solid var(--navy);border-radius:14px;background:var(--light);color:var(--navy);padding:0;width:min(820px,calc(100% - 20px));max-height:90vh;overflow-y:auto}#studio-editor::backdrop{background:#173a49b9}#publication-form{padding:clamp(20px,4vw,35px);display:grid;gap:17px}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-head button{font-size:25px;padding:5px 14px}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px}.template-head{background:var(--orange);padding:18px;font-family:Georgia,serif;font-size:23px;margin-bottom:15px}#newsletter-template{padding:20px;border:1px solid #9ac1d1;border-radius:9px;display:grid;gap:16px}footer{padding:20px;text-align:center;font-size:12px;background:var(--navy);color:white}#studio-message:not(:empty){position:fixed;bottom:25px;right:20px;max-width:380px;background:var(--navy);color:#fff;padding:14px 18px;border-radius:8px;z-index:30}@media(max-width:750px){.studio-login{grid-template-columns:1fr}.studio-hero{display:block}.studio-chapter-select{margin-top:23px}.studio-tabs button{flex:1 1 43%;font-size:12px}.studio-table{font-size:12px}.studio-header img{max-width:165px}}
/* Exit installed-app view into a regular browser tab. */
.studio-browser-link{margin-left:auto;display:inline-flex!important;align-items:center;justify-content:center;padding:10px 13px;color:#173a49;border:1px solid #173a49;border-radius:7px;font-size:12px;font-weight:800;text-decoration:none;text-align:center;white-space:nowrap}
.studio-header #signout{margin-left:0}
@media(max-width:650px){.studio-header{gap:10px;flex-wrap:wrap}.studio-header span{font-size:11px;padding-left:9px}.studio-browser-link{margin-left:auto;padding:9px 10px;font-size:11px}.studio-header #signout{padding:9px 10px;font-size:11px}}
