:root{color-scheme:light;--ink:#172d29;--muted:#657871;--green:#174f40;--line:#dce4de;--paper:#f4f6f1;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper)}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,.story:focus-visible{outline:3px solid #c59d4e;outline-offset:4px}.eyebrow{font-size:10px!important;font-weight:750;letter-spacing:2px;margin:0 0 10px;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-weight:500;line-height:1.15}h2{font-size:24px;letter-spacing:-.6px;margin-bottom:22px}p{line-height:1.6}.button{border:0;border-radius:8px;background:var(--green);color:white;text-decoration:none;padding:15px 23px;font-weight:650;font-size:14px;display:inline-flex;gap:30px;align-items:center;justify-content:center;min-height:48px}.button:hover{background:#23634f}.viewer-page{background:radial-gradient(ellipse at top,#e8eee5,#f5f6f1 70%);min-height:100svh}.viewer-layout{max-width:1000px;margin:auto;padding:28px 32px}.school-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}.school-header h1{font-size:clamp(22px,3vw,34px);margin:0}.school-mark{border:1px solid #a8b9a8;border-radius:50%;width:54px;height:54px;display:grid;place-items:center;flex-shrink:0;font-family:Georgia,serif;font-size:20px;color:var(--green)}.story{position:relative;background:#101c18;border-radius:18px;overflow:hidden;height:min(69svh,760px);min-height:300px;box-shadow:0 18px 55px #173c2220;color:white}.image-stage{height:100%;width:100%;display:grid;place-items:center}.image-stage img{width:100%;height:100%;object-fit:contain;animation:appear .35s ease;min-height:0}.story-top{position:absolute;inset:0 0 auto;z-index:2;padding:16px 20px 32px;background:linear-gradient(#000b,transparent);pointer-events:none}.progress{display:flex;gap:5px}.progress span{height:4px;background:#ffffff50;border-radius:4px;flex:1;overflow:hidden}.progress span:before{content:'';display:block;width:var(--fill,0%);height:100%;background:#fff}.story-meta{display:flex;justify-content:space-between;align-items:center;margin-top:13px;font-size:12px}.story-meta>div{display:flex;gap:15px;align-items:center}.story-meta button{pointer-events:auto;background:#ffffff20;border:1px solid #ffffff50;color:white;border-radius:25px;padding:7px 14px}.story-arrow{position:absolute;top:48%;width:42px;height:48px;border:1px solid #ffffff40;border-radius:50%;background:#0005;color:white;font-size:32px;line-height:1}.previous{left:14px}.next{right:14px}.story-bottom{position:absolute;bottom:0;left:0;right:0;padding:32px 20px 18px;background:linear-gradient(transparent,#000a);display:flex;align-items:center;gap:8px;font-size:12px;pointer-events:none}.live-dot{width:6px;height:6px;background:#d1bc7b;border-radius:50%}.keyboard-hint{margin-left:auto;font-size:11px;color:#ddd}.viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0 0}.viewer-footer p{margin-bottom:0;font-size:14px}.viewer-footer .eyebrow{margin-bottom:5px}.empty{position:absolute;inset:30% 15%;text-align:center;color:#e1e9df}.empty[hidden]{display:none}.empty p{font-size:14px;margin-top:14px}.admin-layout{max-width:1200px;padding:50px 36px;margin:auto}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}.admin-header h1{font-size:42px;margin-bottom:10px}.admin-header p:last-child{color:var(--muted);margin-bottom:0;font-size:14px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:#fff;border:1px solid var(--line);padding:30px;border-radius:14px}label{font-size:13px;font-weight:650;display:block;margin-bottom:20px}input{display:block;width:100%;padding:12px;border:1px solid #cfdad2;border-radius:6px;background:#fcfdfb;color:var(--ink);margin-top:8px;min-width:0}input[type=file]{font-size:12px;padding:12px 6px;border:0;background:transparent}input[type=number]{max-width:160px}.upload-panel>p:not(.eyebrow){font-size:14px;color:var(--muted)}.upload-box{border:1px dashed #a5b9a9;background:#f6f8f3;padding:22px;border-radius:8px}.upload-box small{display:block;color:var(--muted);line-height:1.6;font-weight:400}.muted{font-size:12px;color:var(--muted);margin-top:16px}.gallery-section{margin-top:42px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-heading p:not(.eyebrow){font-size:13px;color:var(--muted)}.badge{display:inline-grid;place-items:center;font:12px Segoe UI,sans-serif;background:#e1e9df;border-radius:25px;min-width:27px;height:27px;vertical-align:middle;margin-left:8px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.image-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-width:0}.thumbnail{height:220px;position:relative;background:#e7ece5}.thumbnail img{height:100%;width:100%;object-fit:contain}.thumbnail>span{position:absolute;top:12px;left:12px;background:#153c30;color:#fff;border-radius:20px;padding:5px 10px;font-size:12px}.card-body{padding:20px}.card-body h3{font-size:14px;overflow-wrap:anywhere;margin-bottom:4px}.card-body .muted{margin:0 0 15px}.card-body form{margin-top:18px}.card-body label{font-size:12px}.secondary{background:#edf2eb;border:1px solid #cedacf;border-radius:6px;padding:10px 16px;color:var(--green)}summary{cursor:pointer;font-size:13px;color:var(--green);padding:8px 0}.delete{background:transparent;color:#a43c37;border:0;padding:8px 0;font-size:12px}.notice{padding:16px 20px;background:#e1eddf;border:1px solid #bad2b4;border-radius:8px}.notice.error{background:#fff0eb;border-color:#e4b9a9}.admin-note{font-size:12px;color:var(--muted);margin-top:35px}button:disabled{opacity:.4;cursor:default}@keyframes appear{from{opacity:.3}to{opacity:1}}@media(min-width:1100px){.viewer-layout{max-width:1040px}.story{height:69svh}}@media(max-width:760px){.admin-layout{padding:28px 18px}.admin-header{align-items:flex-start;flex-direction:column}.admin-header h1{font-size:34px}.setup-grid{grid-template-columns:1fr}.panel{padding:24px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{align-items:flex-start;flex-direction:column;gap:0}.viewer-layout{padding:20px 16px}.school-header{gap:12px;margin-bottom:18px}.school-header h1{font-size:23px}.school-mark{width:44px;height:44px;font-size:17px}.school-header .eyebrow{font-size:8px!important;letter-spacing:1.5px}.story{height:65svh;min-height:300px;border-radius:12px}.viewer-footer{gap:14px;padding-top:20px}.viewer-footer .eyebrow{font-size:8px!important;letter-spacing:1px}.viewer-footer p{font-size:12px}.viewer-footer .button{padding:14px 18px;gap:16px;white-space:nowrap}.keyboard-hint{display:none}.story-top{padding:12px}.story-arrow{width:34px;height:42px}.previous{left:8px}.next{right:8px}}@media(max-width:480px){.gallery-grid{grid-template-columns:1fr}.thumbnail{height:260px}.viewer-footer{align-items:stretch;flex-direction:column}.viewer-footer>div{text-align:center}.viewer-footer .button{width:100%}.story{height:61svh}.school-header h1{font-size:21px}}@media(prefers-reduced-motion:reduce){.image-stage img{animation:none}}

/* Shared school theme */
.color-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.color-control{display:flex;gap:8px;align-items:center}.color-control input[type=color]{width:48px;height:44px;flex-shrink:0;padding:4px}.color-control input:not([type=color]){font-family:monospace;width:100%;min-width:0}.viewer-page{background:radial-gradient(ellipse at top,#e7eef8,#f5f7fb 70%)}.live-dot{background:var(--secondary,#00B8D4)}.school-mark{border-color:var(--green)}.button:hover{background:var(--green);filter:brightness(1.12)}.school-header .eyebrow{color:var(--green)}.thumbnail>span{background:var(--green)}.secondary{color:var(--green)}.progress span:before{background:var(--secondary,#00B8D4)}.viewer-footer .eyebrow{color:var(--green)}.admin-header .eyebrow,.panel>.eyebrow{color:var(--green)}.admin-page h3{font-size:15px}.admin-page label small{display:block;margin-top:7px;font-weight:400;color:var(--muted);line-height:1.5}@media(max-width:480px){.color-grid{grid-template-columns:1fr}}
.school-mark img{display:block;width:100%;height:100%;object-fit:contain}.school-mark:has(img){border:0;border-radius:0}.logo-panel{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:24px}.logo-panel .school-mark{width:96px;height:96px}.logo-panel h2{margin-bottom:16px}.logo-panel small{font-weight:400;line-height:1.6}.remove-logo-form{margin-top:12px}.application-logo{margin-bottom:22px}.application-logo .school-mark{width:80px;height:80px}@media(max-width:600px){.logo-panel{grid-template-columns:1fr;gap:12px}.application-logo .school-mark{width:64px;height:64px}}

/* Consistent setup navigation and action alignment */
.admin-links{display:flex;align-items:center;justify-content:flex-end;gap:12px}.admin-links .secondary,.admin-links .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:14px 20px;border-radius:8px;font-size:14px;font-weight:650;line-height:20px;text-decoration:none;white-space:nowrap;box-sizing:border-box}.admin-links .secondary{border:1px solid #cbd8e8;background:#edf2f8}.admin-back{display:inline-block;margin-bottom:24px;font-size:13px;color:var(--green);text-decoration:none}.setup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px}.setup-actions .secondary{min-height:48px;padding:14px 20px;border-radius:8px}.setup-actions>a{font-size:13px;width:100%;margin-top:4px}@media(max-width:600px){.admin-links{width:100%;justify-content:flex-start}.admin-links>a{flex:1}.setup-actions>button{width:100%}}@media(max-width:360px){.admin-links{flex-direction:column;align-items:stretch}}
.admin-links .secondary,.admin-links .button{height:50px;min-height:50px}
