/*! Copyright (c) 2026 Dominic Tope. Classroom use permitted. See COPYRIGHT.txt and THIRD-PARTY-NOTICES.txt. */
:root{--brand:#1146a1;--brand-bright:#2563eb;--brand-dark:#0d3780;--ink:#0f172a;--text:#1f2937;--muted:#64748b;--page:#f5f7fb;--white:#ffffff;--pale:#eff6ff;--pale-strong:#dbeafe;--line:#dbe3ef;--line-blue:#bfdbfe;--success:#047857;--success-pale:#ecfdf5;--warning:#b45309;--warning-pale:#fffbeb;--danger:#b42318;--danger-pale:#fff1f0;--shadow:0 8px 24px rgba(15, 23, 42, 0.06);--shadow-large:0 18px 48px rgba(15, 23, 42, 0.1);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}body>main{flex:1 0 auto}body>footer{flex-shrink:0}button,input,select,textarea{font:inherit}button,input[type=checkbox],input[type=file],select{cursor:pointer}a{color:var(--brand-bright)}code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}img,svg{max-width:100%}[hidden]{display:none!important}:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{position:fixed;top:10px;left:10px;z-index:9999;transform:translateY(-150%);border-radius:10px;background:var(--ink);color:#fff;padding:10px 14px;font-weight:700}.skip-link:focus{transform:translateY(0)}.noscript{background:#7f1d1d;color:#fff;padding:12px;text-align:center;font-weight:700}.container{width:min(1180px,92%);margin-inline:auto}.site-header{position:sticky;top:0;z-index:100;overflow-anchor:none;border-bottom:1px solid #e5e7eb;background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}.navbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-size:1.12rem;font-weight:800;line-height:1.1;white-space:nowrap;text-decoration:none}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--brand);color:#fff;font-size:1.35rem}.brand-words{color:var(--ink);letter-spacing:-.025em}.brand-words strong{color:var(--brand-bright)}.brand-button{border:0;background:0 0;padding:6px 0}.nav-links{display:flex;align-items:center;gap:6px}.nav-link{display:inline-flex;align-items:center;border:0;border-radius:10px;background:0 0;color:#374151;padding:10px 14px;font-weight:700;text-decoration:none}.nav-link.active,.nav-link:hover{background:var(--pale);color:var(--brand-bright)}.nav-link-create,.nav-link-create.active{border:0;background:var(--brand-bright);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.2)}.nav-link-create.active:hover,.nav-link-create:hover{background:#1d4ed8;color:#fff}.menu-toggle{display:none;border:0;background:0 0;padding:8px}.menu-toggle>span:not(.sr-only){display:block;width:27px;height:3px;margin:5px;border-radius:2px;background:var(--ink)}.hero{padding:42px 0 28px}.hero-card{min-height:510px;display:grid;grid-template-columns:55% 45%;overflow:hidden;border:1px solid var(--pale-strong);border-radius:30px;background:linear-gradient(135deg,#fff 5%,#eff6ff 100%);box-shadow:0 12px 38px rgba(15,23,42,.07)}.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:58px 52px 56px}.eyebrow{margin:0 0 8px;color:var(--brand-bright);font-size:.74rem;font-weight:900;letter-spacing:.14em}.hero h1{max-width:700px;margin:6px 0 18px;color:var(--ink);font-size:clamp(2.5rem, 5vw, 4.55rem);line-height:1.02;letter-spacing:-.052em}.hero-lead{max-width:690px;margin:0;color:#4b5563;font-size:1.1rem}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 22px}.hero-showcase{min-width:0;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:0 0;padding:36px 34px 28px 8px}.hero-slides{position:relative;min-height:430px}.hero-slide{position:absolute;inset:0;z-index:0;display:flex;flex-direction:column;justify-content:center;opacity:0;visibility:hidden;transform:translate3d(0,0,0);pointer-events:none;will-change:transform}.hero-slide.active{z-index:1;opacity:1;visibility:visible;pointer-events:auto}.hero-slide.deck-leaving{z-index:2;opacity:1;visibility:visible;pointer-events:none;animation:deck-card-away .74s cubic-bezier(.45,0,.22,1) both}.subject-pill{align-self:flex-start;border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:6px 10px;margin:0 0 27px 12px;font-size:.67rem;font-weight:900;letter-spacing:.1em}.subject-pill.science{background:#dcfce7;color:#047857}.subject-pill.esl{background:#fef3c7;color:#92400e}.subject-pill.french{background:#fce7f3;color:#9d174d}.hero-card-stack{position:relative;width:100%;min-height:330px}.hero-loop-card{position:absolute;width:87%;height:292px;display:grid;grid-template-rows:39% 61%;overflow:hidden;border:1px dashed #94a3b8;border-radius:18px;background:#fff;padding:0;box-shadow:0 24px 54px rgba(17,70,161,.2)}.hero-loop-card-back{top:4px;right:1%;z-index:1;height:275px;background:#f8fbff;opacity:.78;transform:rotate(7deg);transform-origin:50% 80%;box-shadow:0 18px 36px rgba(17,70,161,.13)}.hero-loop-card-front{top:28px;left:1%;z-index:2}.hero-loop-card-answer,.hero-loop-card-question{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.hero-loop-card-answer{border-bottom:1px solid var(--pale-strong);background:linear-gradient(135deg,#eff6ff,#fff);padding:15px 22px 11px}.hero-loop-card-question{padding:15px 56px 18px 22px}.hero-loop-card small{display:block;color:var(--brand-bright);font-size:.61rem;font-weight:900;line-height:1.35;letter-spacing:.13em}.hero-loop-card strong{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--ink);font-size:2.25rem;font-weight:400;line-height:1.05;text-align:center;overflow-wrap:anywhere}.hero-loop-card p{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.2em;overflow:hidden;margin:3px 0 0;color:var(--ink);font-size:1.08rem;font-weight:400;line-height:1.32;text-align:center;overflow-wrap:anywhere}.hero-loop-card b{position:absolute;right:18px;bottom:16px;min-width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:var(--brand);color:#fff;padding:0 7px;font-weight:900}.slide-caption{margin:12px 0 0;color:#475569;font-size:.76rem;font-weight:800;text-align:center}.carousel-dots{display:flex;justify-content:center;gap:9px;margin-top:10px}.carousel-dots button{width:10px;height:10px;border:0;border-radius:50%;background:#94a3b8;padding:0;box-shadow:0 0 0 4px transparent;transition:width .2s ease,background .2s ease}.carousel-dots button.active{width:28px;border-radius:999px;background:var(--brand-bright)}.carousel-dots button:focus-visible{outline:3px solid #f59e0b;outline-offset:4px}@keyframes deck-card-away{0%{opacity:1;transform:translate3d(0,0,0) rotate(0)}18%{opacity:1;transform:translate3d(12px,-3px,0) rotate(.8deg)}100%{opacity:1;transform:translate3d(-118%,-18px,0) rotate(-9deg)}}.landing-shell{min-height:720px}.loop-demo-heading{max-width:900px;margin-top:38px}.loop-demo-carousel{--loop-demo-gutter:20px;--loop-demo-bottom:16px;overflow:hidden;border:1px solid #dbeafe;border-radius:28px;background:linear-gradient(145deg,#fff,#f4f8ff);padding:18px var(--loop-demo-gutter) var(--loop-demo-bottom);box-shadow:var(--shadow-large)}.loop-demo-frame{position:relative;width:100%;aspect-ratio:1000/620;overflow:hidden;border:1px solid #c9d7eb;border-radius:22px;background:radial-gradient(circle at 50% 50%,rgba(219,234,254,.8) 0 14%,transparent 30%),linear-gradient(135deg,#f8fbff,#eef5ff)}.loop-demo-arrows,.loop-demo-slides{position:absolute;inset:0;width:100%;height:100%}.loop-demo-arrows{z-index:1;overflow:visible;pointer-events:none}.loop-demo-arrows .route-arrow{fill:var(--brand-bright);opacity:.9}.loop-demo-slide{position:absolute;inset:0;z-index:0;opacity:0;visibility:hidden;transform:translate3d(0,0,0);pointer-events:none;will-change:transform}.loop-demo-slide.active{z-index:1;opacity:1;visibility:visible;pointer-events:auto}.loop-demo-slide.loop-demo-leaving{z-index:2;opacity:1;visibility:visible;pointer-events:none;animation:deck-card-away .74s cubic-bezier(.45,0,.22,1) both}.loop-demo-canvas{position:absolute;inset:0;z-index:2}.loop-demo-card{position:absolute;width:22%;height:30%;min-width:0;overflow:hidden;border:1px dashed #7891b4;border-radius:13px;background:#fff;box-shadow:0 9px 20px rgba(23,54,98,.12)}.loop-demo-card-a{left:1.5%;top:1.5%}.loop-demo-card-b{left:26.5%;top:1.5%}.loop-demo-card-c{left:51.5%;top:1.5%}.loop-demo-card-d{left:76.5%;top:1.5%}.loop-demo-card-e{left:76.5%;top:35%}.loop-demo-card-f{left:76.5%;top:68.5%}.loop-demo-card-g{left:51.5%;top:68.5%}.loop-demo-card-h{left:26.5%;top:68.5%}.loop-demo-card-i{left:1.5%;top:68.5%}.loop-demo-card-j{left:1.5%;top:35%}.loop-demo-answer{height:40%;display:grid;grid-template-rows:auto 1fr;border-bottom:1px solid #bfdbfe;background:linear-gradient(135deg,#dbeafe,#eff6ff);padding:7px 22px 5px 9px}.loop-demo-card small{color:var(--brand);font-size:clamp(.44rem, .78vw, .62rem);font-weight:900;letter-spacing:.1em}.loop-demo-answer strong{min-width:0;display:flex;align-items:center;justify-content:center;color:var(--ink);font-size:clamp(.73rem, 1.48vw, 1.12rem);line-height:1.04;text-align:center;overflow-wrap:anywhere}.loop-demo-question{height:60%;padding:7px 28px 10px 9px}.loop-demo-question p{height:calc(100% - 16px);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:.2em;margin:1px 0 0;color:#1e293b;font-size:clamp(.59rem, 1.12vw, .84rem);font-weight:750;line-height:1.14;text-align:center;overflow-wrap:anywhere}.loop-demo-letter{position:absolute;right:7px;bottom:7px;width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:var(--brand);color:#fff;font-size:.7rem}.loop-demo-card mjx-container{margin:0!important;max-width:100%}.loop-demo-centre{position:absolute;left:29%;top:36%;width:42%;height:27%;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #c4d5ef;border-radius:20px;background:rgba(255,255,255,.94);padding:13px 24px;text-align:center;box-shadow:0 12px 28px rgba(17,70,161,.1)}.loop-demo-subject{border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:4px 8px;font-size:.58rem;font-weight:900;letter-spacing:.1em}.loop-demo-subject.english{background:#fef3c7;color:#92400e}.loop-demo-subject.economics{background:#ede9fe;color:#6d28d9}.loop-demo-subject.science{background:#dcfce7;color:#047857}.loop-demo-centre h3{margin:5px 0 2px;color:var(--ink);font-size:clamp(.86rem, 1.8vw, 1.3rem);line-height:1.1}.loop-demo-centre p{margin:0;color:#64748b;font-size:clamp(.55rem, 1.03vw, .76rem);line-height:1.25}.loop-demo-centre>strong{margin-top:7px;color:var(--brand);font-size:clamp(.5rem, .9vw, .68rem);letter-spacing:.09em}.loop-demo-dots{margin-top:15px}.library-submit-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #dbeafe;border-radius:20px;background:#fff;padding:20px 22px;margin-top:18px;box-shadow:var(--shadow)}.library-submit-cta p{margin:0;color:#536177}.loop-demo-cta{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:14px;border-top:1px solid #dbeafe;background:rgba(255,255,255,.82);margin:18px calc(0px - var(--loop-demo-gutter)) calc(0px - var(--loop-demo-bottom));padding:24px 20px 26px;text-align:center}.loop-demo-cta h3{margin:0;color:var(--ink);font-size:clamp(1.45rem, 2.6vw, 2rem);line-height:1.08;letter-spacing:-.025em}.loop-demo-cta .btn{min-width:148px;justify-content:center;font-size:1.05rem}.library-submit-cta h2,.library-submit-cta h3{margin:2px 0 4px;color:var(--ink);font-size:1.17rem}.help-creator-cta{display:flex;justify-content:center;margin-top:30px}.creator-main{background:linear-gradient(180deg,#f5f8ff 0,var(--page) 260px)}.creator-shell{padding-top:34px}.information-main{background:linear-gradient(180deg,#f5f8ff 0,var(--page) 300px)}.information-shell{padding-top:18px}.information-heading{max-width:900px}.information-heading h1{margin:0 0 9px;color:var(--ink);font-size:clamp(2.15rem, 4.6vw, 3.45rem);line-height:1.05;letter-spacing:-.045em}.templates-page-heading{max-width:1120px}.templates-page-heading h1{font-size:clamp(2.05rem, 3.2vw, 2.65rem)}.templates-open-creator{min-width:178px;margin:15px auto 14px}.creator-page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border:1px solid #dbeafe;border-radius:24px;background:linear-gradient(135deg,#fff,#eff6ff);margin-bottom:22px;padding:28px 31px;box-shadow:var(--shadow)}.creator-page-intro h1{margin:1px 0 5px;color:var(--ink);font-size:clamp(2rem, 4vw, 3rem);line-height:1.04;letter-spacing:-.04em}.creator-page-intro p:last-child{margin:0;color:var(--muted)}.creator-breadcrumb{flex:none;display:flex;align-items:center;gap:7px;margin-top:4px;color:#64748b;font-size:.78rem;font-weight:750;white-space:nowrap}.creator-breadcrumb a{color:var(--brand-bright);text-underline-offset:3px}.creator-breadcrumb a:hover{color:var(--brand-dark)}.creator-submission-section{padding-top:22px}.creator-submission-section .submission-layout{margin-top:0}.page-shell{padding-bottom:82px}.app-section{scroll-margin-top:98px}.section-heading{margin:26px 0 22px}.section-heading h2{margin:0 0 7px;color:var(--ink);font-size:clamp(1.85rem, 3.4vw, 2.55rem);line-height:1.12}.section-heading p:last-child{margin:0;color:var(--muted)}.split-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.intro-heading{max-width:840px;margin:46px auto 30px;text-align:center}.creator-grid{display:grid;grid-template-columns:360px minmax(0,1fr);overflow:hidden;border:1px solid #e2e8f0;border-radius:26px;background:#fff;box-shadow:var(--shadow-large)}.import-panel{padding:27px;border-right:1px solid #e2e8f0;background:#fbfdff}.work-panel{min-width:0;padding:30px}.preview-panel{grid-column:1/-1;min-width:0;border-top:1px solid #e2e8f0;background:#fff;padding:30px}.preview-panel>.preview-header{border-top:0;margin-top:0;padding-top:0}.panel-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.panel-heading-wide{align-items:center}.panel-heading-wide .btn{margin-left:auto}.panel-heading h3,.preview-header h3{margin:1px 0 2px;color:var(--ink);font-size:1.14rem}.panel-heading p{margin:0;color:var(--muted);font-size:.82rem}.step-number{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--brand);color:#fff;font-weight:900}.input-tabs{display:flex;gap:4px;border-radius:12px;background:#e8eef8;padding:4px}.input-tabs{margin:12px 0 16px}.input-tabs button{flex:1;border:0;border-radius:9px;background:0 0;color:#64748b;padding:8px 10px;font-size:.78rem;font-weight:800}.input-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 3px 10px rgba(15,23,42,.09)}.upload-box{min-height:158px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px dashed #93c5fd;border-radius:16px;background:var(--pale);color:var(--brand);padding:20px;text-align:center;transition:border-color .2s ease,background .2s ease}.upload-box.dragging,.upload-box:hover{border-color:var(--brand);background:#dbeafe}.upload-box span{color:var(--muted);font-size:.78rem}.upload-box .upload-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff;color:var(--brand-bright);font-size:1.35rem;font-weight:900;box-shadow:0 4px 10px rgba(17,70,161,.12)}.upload-box input{position:absolute;width:1px;height:1px;opacity:0}label{color:#334155;font-size:.82rem;font-weight:800}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--text);padding:10px 11px}textarea{resize:vertical}#latex-source{min-height:272px;background:var(--ink);color:#dbeafe;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.field-help{margin:8px 0 14px;color:var(--muted);font-size:.74rem}.faq-wrap code,.field-help code,.guide-card code{border-radius:4px;background:#f1f5f9;color:var(--brand-dark);padding:1px 4px}.template-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.template-links .btn{padding:9px 7px;font-size:.75rem}.copy-template-status{margin:-6px 0 12px;color:var(--danger);font-size:.75rem;font-weight:800;line-height:1.4}.copy-template-status:empty{display:none}.button-stack{display:grid;gap:7px}#picture-mode-button[aria-pressed=true]{border-color:#86efac;background:#ecfdf3;color:#047857}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border-radius:14px;padding:10px 17px;text-decoration:none;font-weight:800;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled{cursor:not-allowed;opacity:.46}.btn.phrase-blocked{cursor:pointer;opacity:.68}.btn-primary{border:0;background:var(--brand-bright);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.21)}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-secondary{border:1px solid #cbd5e1;background:#fff;color:var(--brand-bright)}.btn-secondary:hover:not(:disabled){background:var(--pale)}.btn-soft{border:1px solid #dbeafe;background:#f8fbff;color:var(--brand)}.btn-danger-ghost{border:1px solid #fecaca;background:#fff;color:var(--danger)}.btn-dark{border:0;background:var(--ink);color:#fff}.btn-full{width:100%}.btn-small{min-height:36px;border-radius:10px;padding:7px 11px;font-size:.76rem}.review-editor-shell{overflow:hidden;border:1px solid #cbd5e1;border-radius:16px;background:#fff}.review-panel-heading{margin:0;border-bottom:1px solid #cbd5e1;background:#f8fbff;padding:16px 18px}.review-panel-heading>div{min-width:0}.validation-summary{margin:16px 0 14px}.picture-mode-note{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 10px;border:1px solid #bfdbfe;border-radius:13px;background:#f5f9ff;padding:11px 13px;margin:0 0 14px;color:#526176;font-size:.75rem;line-height:1.45}.picture-mode-note[hidden]{display:none}.picture-mode-note strong{color:var(--brand)}.validation-card{display:grid;grid-template-columns:42px 1fr;gap:13px;border:1px solid #a7f3d0;border-radius:15px;background:var(--success-pale);padding:15px}.validation-card.error{border-color:#fecdca;background:linear-gradient(145deg,#fff,#fff4f2)}.validation-symbol{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--success);color:#fff;font-size:1.1rem;font-weight:900}.validation-card.error .validation-symbol{background:var(--danger)}.validation-card h4{margin:0 0 4px;color:#065f46}.validation-card.error h4{color:#912018}.validation-card p{margin:0;color:#475569;font-size:.83rem}.error-list{margin:9px 0 0;padding-left:20px;color:#7a271a;font-size:.8rem}.error-list li+li{margin-top:5px}.duplicate-group{margin-top:10px;border:1px solid #fecaca;border-radius:10px;background:#fff;padding:10px 12px}.duplicate-group strong{color:var(--danger)}.editor-wrap{overflow:hidden;background:#fff}.editor-header-scroll{overflow:hidden;background:#eff6ff}.editor-body-scroll{max-height:286px;overflow:auto;scrollbar-gutter:stable}.editor-body-scroll:focus-visible{outline-offset:-3px}table{width:100%;border-collapse:collapse}.editor-table{min-width:720px;table-layout:fixed}.editor-header-table th{height:62px;vertical-align:middle}.editor-body-table tr:last-child td{border-bottom:0}th{background:#eff6ff;color:var(--brand);text-align:left;font-size:.72rem;letter-spacing:.02em}td,th{border-bottom:1px solid #e2e8f0;padding:10px;vertical-align:top}.editor-col-number{width:126px}.editor-col-letter{width:102px}.editor-col-question{width:39%}.editor-col-answer{width:39%}.editor-col-actions{width:52px}.editor-table input,.editor-table textarea{min-width:0;border-radius:8px;padding:8px;font-size:.79rem}.editor-table .editor-compact-input{min-height:65px;text-align:center}.editor-table .generated-letter{border-color:#bfdbfe;background:#eff6ff;color:var(--brand);font-weight:900;text-align:center;cursor:default}.editor-table textarea{height:65px;min-height:65px;overflow-y:hidden;resize:none;line-height:1.4}.editor-actions-cell,.editor-letter-cell,.editor-number-cell{vertical-align:middle}.editor-answer-cell,.editor-question-cell{vertical-align:top}.picture-mode-enabled .editor-table{min-width:900px}.picture-mode-enabled .add-row-strip{min-width:884px}.picture-mode-enabled .editor-body-scroll{max-height:390px}.editor-field-stack{min-width:0;display:grid;gap:7px}.editor-picture-empty{min-height:32px;display:flex;align-items:center}.editor-picture-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:30px;overflow:hidden;border:1px solid #bfdbfe;border-radius:9px;background:#f8fbff;color:var(--brand);padding:5px 9px;font-size:.7rem;font-weight:850;cursor:pointer}.editor-picture-picker:hover{background:#eaf2ff}.editor-picture-picker:focus-within{outline:3px solid rgba(37,99,235,.18);outline-offset:1px}.editor-picture-picker input{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0}.editor-picture-preview{min-width:0;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:9px;border:1px solid #c7d9f2;border-radius:10px;background:#f8fbff;padding:7px}.editor-picture-preview>img{width:68px;height:56px;border-radius:7px;background:#fff;object-fit:contain}.editor-picture-details{min-width:0;display:grid;gap:6px}.editor-picture-name{overflow:hidden;color:#475569;font-size:.67rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.editor-picture-actions{display:flex;flex-wrap:wrap;gap:5px}.editor-picture-actions .editor-picture-picker{min-height:26px;padding:3px 7px}.editor-picture-remove{min-height:26px;border:1px solid #fecaca;border-radius:8px;background:#fff;color:#b42318;padding:3px 7px;font-size:.67rem;font-weight:800}.editor-picture-only{display:flex;align-items:center;gap:6px;color:#334155;font-size:.67rem;line-height:1.25}.editor-picture-only input{width:15px;height:15px;flex:none;margin:0;padding:0}.editor-table tr.has-error{background:#fff1f0;box-shadow:inset 5px 0 0 var(--danger)}.editor-table tr.has-error td{background:#fff1f0}.editor-table tr.has-error input,.editor-table tr.has-error textarea{border-color:#f97066;background:snow;box-shadow:0 0 0 3px rgba(240,68,56,.08)}.editor-table tr.has-error .generated-letter{border-color:#f97066;background:#fff1f0;color:#b42318}.editor-table tr.is-current-mistake td{background:#ffe4e1}.editor-table tr.is-current-mistake input,.editor-table tr.is-current-mistake textarea{border-color:#d92d20;box-shadow:0 0 0 4px rgba(217,45,32,.12)}.row-issues{display:block;margin-top:4px;color:var(--danger);font-size:.66rem;font-weight:700}.row-number-wrap{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:6px}.row-number-wrap .row-issues{grid-column:1/-1}.row-drag-handle{width:34px;height:66px;display:grid;place-items:center;border:1px solid transparent;border-radius:9px;background:0 0;color:#7c91ad;padding:0;cursor:grab;touch-action:none;transition:border-color 150ms ease,background 150ms ease,color 150ms ease}.row-drag-handle:hover{border-color:#bfdbfe;background:#eff6ff;color:var(--brand-bright)}.row-drag-handle:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.row-drag-handle:active{cursor:grabbing}.row-drag-handle:disabled{color:#cbd5e1;cursor:default}.row-drag-handle svg{width:18px;height:24px;display:block;fill:currentColor}.delete-row{width:36px;height:36px;display:grid;place-items:center;border:1px solid #fecaca;border-radius:9px;background:#fff;color:var(--danger);font-size:1.05rem;font-weight:900;cursor:pointer}.add-row-strip:focus-visible,.delete-row:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.row-drop-placeholder td{height:var(--drop-height,66px);border-bottom:0;background:#eff6ff;padding:8px}.row-drop-marker{height:100%;min-height:50px;display:grid;place-items:center;border:2px dashed #60a5fa;border-radius:11px;background:rgba(255,255,255,.82);color:var(--brand-bright);font-size:.72rem;font-weight:900}.row-drop-placeholder:not(.is-valid) .row-drop-marker{border-color:#cbd5e1;background:#f8fafc;color:#64748b}.row-drag-ghost{position:fixed;z-index:1400;display:grid;gap:3px;border:1px solid #93c5fd;border-radius:12px;background:rgba(255,255,255,.97);color:var(--ink);padding:11px 14px;box-shadow:0 18px 42px rgba(15,23,42,.2);pointer-events:none;transform:rotate(.6deg)}.row-drag-ghost strong{color:var(--brand-bright);font-size:.72rem}.row-drag-ghost span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.row-drag-ghost.is-invalid{border-color:#cbd5e1;opacity:.78}body.row-reordering{cursor:grabbing;user-select:none}.add-row-strip{width:calc(100% - 16px);min-width:704px;min-height:52px;display:grid;place-items:center;box-sizing:border-box;border:2px dashed #93b9e8;border-radius:12px;background:0 0;color:#2f66ad;padding:10px;margin:8px 8px 0;font-size:.8rem;font-weight:900;cursor:pointer;transition:border-color 150ms ease,background 150ms ease,color 150ms ease}.add-row-strip:hover:not(:disabled){border-color:var(--brand-bright);background:#eff6ff;color:var(--brand-bright)}.add-row-strip:disabled{cursor:not-allowed;opacity:.5}.mistake-navigation{display:grid;grid-template-columns:max-content minmax(130px,1fr) max-content;align-items:center;gap:10px;margin-top:12px}.mistake-navigation p{margin:0;color:#64748b;font-size:.75rem;font-weight:800;text-align:center}.mistake-navigation .btn:not(:disabled){border-color:#fda29b;color:#b42318}.mistake-navigation .btn:not(:disabled):hover{background:#fff1f0}.preview-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-top:1px solid #e2e8f0;margin-top:20px;padding-top:22px}.preview-header .eyebrow{margin-bottom:1px}.route-strip{display:flex;align-items:center;gap:6px;overflow-x:auto;border-radius:13px;background:#f8fafc;padding:12px;margin-bottom:15px}.preview-panel>.preview-header{margin-bottom:17px}.route-node{flex:none;display:flex;align-items:center;gap:6px}.route-node b{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-size:.78rem}.route-node span{color:#94a3b8;font-weight:900}.route-return{flex:none;border-radius:999px;background:#dcfce7;color:#047857;padding:6px 9px;font-size:.7rem;font-weight:900;white-space:nowrap}.empty-state{grid-column:1/-1;border:2px dashed #cbd5e1;border-radius:16px;background:#f8fafc;color:var(--muted);padding:30px;text-align:center}.card-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:625px;overflow:auto;padding-right:3px}.loop-card{position:relative;min-height:235px;overflow:hidden;border:1px dashed #94a3b8;border-radius:14px;background:#fff}.loop-card-answer{height:104px;min-height:104px;display:grid;grid-template-rows:auto minmax(0,1fr);border-bottom:1px solid var(--pale-strong);background:linear-gradient(135deg,#eff6ff,#fff);padding:12px 19px}.loop-card-label{display:block;color:var(--brand-bright);font-size:.61rem;font-weight:900;letter-spacing:.13em}.loop-card-answer strong{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-top:3px;color:var(--ink);font-size:2.25rem;font-weight:400;line-height:1.05;text-align:center;overflow-wrap:anywhere}.loop-card-question{padding:17px 52px 26px 19px}.loop-card-question p{margin:8px 0 0;color:var(--ink);font-size:1.08rem;font-weight:400;overflow-wrap:anywhere}.loop-card-letter{position:absolute;right:14px;bottom:14px;min-width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:var(--brand);color:#fff;padding:0 7px;font-weight:900}.loop-card-number{position:absolute;top:13px;right:14px;color:#64748b;font-size:.67rem;font-weight:800}.loop-card.has-picture{min-height:265px}.loop-card-media-content{min-width:0;min-height:0}.loop-card-media{display:block;max-width:100%;border-radius:8px;background:#fff;object-fit:contain}.loop-card-answer.has-picture .loop-card-media-content{min-height:0;display:grid;align-items:center;justify-content:center;gap:8px;margin-top:3px;overflow:hidden}.loop-card-answer.picture-only .loop-card-media{width:100%;height:72px}.loop-card-answer.picture-with-text .loop-card-media-content{grid-template-columns:minmax(58px,0.8fr) minmax(0,1.2fr)}.loop-card-answer.picture-with-text .loop-card-media{width:100%;height:66px}.loop-card-answer.picture-with-text strong{margin-top:0;font-size:1.35rem}.loop-card-question.has-picture .loop-card-media-content{display:grid;align-items:center;justify-content:center;gap:9px;margin-top:8px}.loop-card-question.picture-only .loop-card-media{width:100%;height:118px}.loop-card-question.picture-with-text .loop-card-media-content{grid-template-columns:minmax(74px,0.9fr) minmax(0,1.1fr)}.loop-card-question.picture-with-text .loop-card-media{width:100%;height:96px}.loop-card-question.picture-with-text p{margin:0}.loop-card mjx-container{max-width:100%;overflow:visible!important;scrollbar-width:none}.loop-card mjx-container::-webkit-scrollbar{display:none;width:0;height:0}.loop-check{overflow:hidden;border:1px solid #c7d9f2;border-radius:15px;background:#fbfdff;margin-top:18px}.loop-check summary{position:relative;min-height:58px;display:flex;align-items:center;border-radius:14px;background:#3d73bd;color:#fff;padding:11px 52px 11px 17px;font-weight:900;line-height:1.25;list-style:none;cursor:pointer;transition:background 160ms ease,border-radius 160ms ease}.loop-check summary::-webkit-details-marker{display:none}.loop-check summary::marker{content:""}.loop-check summary:hover{background:#3268b3}.loop-check summary::after{position:absolute;top:50%;right:20px;width:10px;height:10px;border-right:3px solid #fff;border-bottom:3px solid #fff;content:"";transform:translateY(-70%) rotate(45deg);transition:transform 180ms ease}.loop-check summary small{display:block;margin-top:2px;color:#eaf2ff;font-size:.69rem;font-weight:700}.loop-check[open] summary{border-radius:14px 14px 0 0}.loop-check[open] summary::after{transform:translateY(-30%) rotate(225deg)}.table-scroll{overflow-x:auto;border-top:1px solid #dbeafe}.loop-check table{min-width:780px}.loop-check caption{color:var(--muted);padding:10px 12px;text-align:left;font-size:.73rem}.loop-check td{color:#334155;font-size:.76rem}.loop-check td:last-child{color:var(--brand);font-weight:900}.loop-check td:first-child,.loop-check td:nth-child(2),.loop-check td:nth-child(3),.loop-check td:nth-child(5),.loop-check td:nth-child(6),.loop-check th:first-child,.loop-check th:nth-child(2),.loop-check th:nth-child(3),.loop-check th:nth-child(5),.loop-check th:nth-child(6){text-align:center}.action-bar{display:grid;grid-template-columns:minmax(300px,0.92fr) minmax(0,1.45fr);align-items:start;gap:16px;border-top:1px solid #e2e8f0;margin-top:16px;padding-top:15px}.label-mode-card{min-width:0;height:100%;display:grid;align-content:start;gap:14px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(145deg,#f8fbff,#fff);padding:15px 17px}.label-mode-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.custom-phrase-toggle{position:relative;display:flex;align-items:center;gap:11px;min-width:0;color:var(--ink);cursor:pointer}.custom-phrase-toggle input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.custom-phrase-switch{position:relative;flex:0 0 auto;width:42px;height:24px;border:1px solid #94a3b8;border-radius:999px;background:#e2e8f0;transition:background 160ms ease,border-color 160ms ease}.custom-phrase-switch::after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.24);content:"";transition:transform 160ms ease}.custom-phrase-toggle input:checked+.custom-phrase-switch{border-color:var(--brand-bright);background:var(--brand-bright)}.custom-phrase-toggle input:checked+.custom-phrase-switch::after{transform:translateX(18px)}.custom-phrase-toggle input:focus-visible+.custom-phrase-switch{outline:3px solid rgba(37,99,235,.24);outline-offset:3px}.custom-phrase-toggle>span:last-child{display:grid;gap:2px}.custom-phrase-toggle strong{font-size:.86rem}.custom-phrase-toggle small{color:var(--muted);font-size:.72rem;font-weight:600}.label-mode-badge{flex:0 0 auto;border-radius:999px;background:#ede9fe;color:#6d28d9;padding:5px 9px;font-size:.67rem;font-weight:900}.custom-phrase-panel{display:grid;gap:7px;border-top:1px solid #dbeafe;padding-top:13px}.custom-phrase-panel[hidden]{display:none}.custom-phrase-panel>label{color:var(--navy);font-size:.8rem;font-weight:900}.custom-phrase-input-row{position:relative}.custom-phrase-input-row input{min-height:48px;padding:11px 92px 11px 13px;border-width:2px;font-size:1rem;font-weight:800;letter-spacing:.04em;transition:border-color 150ms ease,background 150ms ease,box-shadow 150ms ease}.custom-phrase-input-row input.is-invalid{border-color:#f04438;background:#fff6f5;box-shadow:0 0 0 4px rgba(240,68,56,.08)}.custom-phrase-input-row input.is-valid{border-color:#12b76a;background:#f3fff8;box-shadow:0 0 0 4px rgba(18,183,106,.08)}.custom-phrase-count{position:absolute;top:50%;right:13px;transform:translateY(-50%);border-radius:999px;background:#e2e8f0;color:#475569;padding:4px 8px;font-size:.7rem;font-weight:900}.custom-phrase-input-row input.is-valid+.custom-phrase-count{background:#d1fadf;color:#067647}.custom-phrase-input-row input.is-invalid+.custom-phrase-count{background:#fee4e2;color:#b42318}.custom-phrase-panel .field-help{margin:0}.phrase-symbols-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}.phrase-symbols-wrap>span{color:#475569;font-size:.72rem;font-weight:800}.phrase-symbols{display:flex;flex-wrap:wrap;gap:6px}.phrase-symbols button{min-width:32px;min-height:32px;border:1px solid #bfdbfe;border-radius:9px;background:#fff;color:var(--navy);padding:3px 8px;font-family:"DejaVu Serif",Georgia,serif;font-size:1rem;font-style:italic;font-weight:700;cursor:pointer}.phrase-symbols button:hover{border-color:var(--brand-bright);background:#eff6ff}.phrase-symbols button:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}.custom-phrase-status{min-height:20px;margin:0;color:var(--muted);font-size:.75rem;font-weight:750}.custom-phrase-status.error{color:var(--danger)}.custom-phrase-status.success{color:#067647}.phrase-suggestions-wrap{display:grid;gap:7px;margin-top:3px}.phrase-suggestions-wrap>span{color:#475569;font-size:.72rem;font-weight:800}.phrase-suggestions{display:flex;flex-wrap:wrap;gap:7px;min-height:32px}.phrase-suggestion{min-height:32px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:var(--brand);padding:6px 10px;font-size:.72rem;font-weight:900;cursor:pointer}.phrase-suggestion:hover{border-color:var(--brand-bright);background:#eff6ff}.phrase-suggestion:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}.phrase-suggestions-empty{color:var(--muted);font-size:.72rem}@keyframes phraseShake{0%,100%{transform:translateX(0)}18%{transform:translateX(-8px)}36%{transform:translateX(7px)}54%{transform:translateX(-5px)}72%{transform:translateX(3px)}}.label-mode-card.phrase-shake{animation:phraseShake 420ms ease both}.action-controls-group{min-width:0;display:grid;align-content:start;gap:7px}.action-controls-row{display:grid;grid-template-columns:minmax(190px,1.35fr) repeat(3,minmax(112px,max-content));align-items:end;justify-content:end;gap:8px}.action-controls-row>.btn{min-height:44px;font-size:.78rem;white-space:nowrap}.pdf-options{display:grid;gap:5px;width:100%;max-width:none}.pdf-options-label{color:var(--navy);font-size:.82rem;font-weight:900}#pdf-layout-help{color:var(--muted);font-size:.75rem;line-height:1.45}.lc-select-shell{position:relative;width:100%}select.lc-select-native{position:absolute;width:1px;min-height:1px;height:1px;margin:0;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);opacity:0;pointer-events:none;white-space:nowrap}.lc-select-trigger{position:relative;width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cbd5e1;border-radius:12px;outline:0;background:#fff;color:var(--ink);padding:10px 38px 10px 12px;font-size:.82rem;text-align:left;cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease,background 150ms ease}.lc-select-trigger::after{position:absolute;top:50%;right:14px;width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;content:"";transform:translateY(-68%) rotate(45deg);transition:transform 160ms ease}.lc-select-trigger:hover{border-color:#93afd9;background:#f8fbff}.lc-select-trigger:focus-visible,.lc-select-trigger[aria-expanded=true]{border-color:#7b9bd2;box-shadow:0 0 0 4px rgba(37,99,235,.1)}.lc-select-trigger[aria-expanded=true]::after{transform:translateY(-28%) rotate(225deg)}.lc-select-trigger-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lc-select-menu{position:fixed;z-index:500;max-height:280px;overflow-x:hidden;overflow-y:auto;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:6px;box-shadow:0 18px 46px rgba(32,43,64,.22);overscroll-behavior:contain;scrollbar-width:thin;transform-origin:top center;animation:lcSelectDown 150ms cubic-bezier(.22,1,.36,1) both}.lc-select-menu.opens-above{transform-origin:bottom center;animation-name:lcSelectUp}.lc-select-menu[hidden]{display:none}@keyframes lcSelectDown{from{opacity:0;transform:translateY(-5px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes lcSelectUp{from{opacity:0;transform:translateY(5px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.lc-select-option{width:100%;min-height:40px;display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:10px;border:0;border-radius:9px;background:0 0;color:#334155;padding:8px 10px;font:inherit;font-size:.82rem;text-align:left;cursor:pointer}.lc-select-option.is-active,.lc-select-option:hover{background:#eff6ff;color:var(--ink)}.lc-select-option[aria-selected=true]{background:#e8f0ff;color:var(--brand);font-weight:800}.lc-select-option-mark{color:var(--brand-bright);text-align:center}.guide-grid{display:grid;gap:20px;margin-top:20px}.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.three-column{grid-template-columns:repeat(3,minmax(0,1fr))}.about-grid article,.guide-card,.mini-guide,.school-stage-card{border:1px solid #e2e8f0;border-radius:var(--radius);background:#fff;padding:27px;box-shadow:var(--shadow)}.guide-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:var(--brand);color:#fff;font-weight:900}.tex-icon{width:60px}.guide-card h2,.guide-card h3,.mini-guide h2,.mini-guide h3{margin:16px 0 7px;color:var(--ink)}.guide-card h2{font-size:1.35rem}.mini-guide h2{font-size:1.08rem}.guide-card h4{margin:25px 0 8px;color:var(--ink)}.guide-card p,.mini-guide p{color:var(--muted)}.guide-card pre{overflow-x:auto;border-radius:13px;background:var(--ink);color:#dbeafe;padding:16px;font-size:.76rem}.tick-list{list-style:none;padding:0}.tick-list li{position:relative;padding:5px 0 5px 25px;color:#475569}.tick-list li::before{content:"✓";position:absolute;left:0;color:var(--success);font-weight:900}.mini-guide b{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--pale-strong);color:var(--brand)}.school-stage-section{overflow:hidden;border:1px solid #c7d9f2;border-radius:20px;background:linear-gradient(145deg,#f8fbff,#fff);padding:34px;margin-top:18px;box-shadow:var(--shadow)}.school-stage-section .section-heading{margin:0 auto 30px}.school-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:22px}.school-stage-card{box-shadow:0 10px 26px rgba(15,23,42,.06)}.school-stage-card span{display:inline-block;border-radius:999px;background:#e8f0ff;color:var(--brand);padding:6px 9px;font-size:.68rem;font-weight:900}.school-stage-card h3{margin:17px 0 7px;color:var(--ink);font-size:1.12rem}.school-stage-card p,.school-stage-note{color:var(--muted)}.school-stage-note{margin:18px 0 0;font-size:.83rem;text-align:center}.featured-guide-card{border-color:#bfdbfe;box-shadow:0 16px 34px rgba(17,70,161,.1)}.template-guide-card{display:flex;flex-direction:column}.template-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:auto;padding-top:18px}.template-actions .btn{width:100%;min-height:48px;padding-inline:12px;text-align:center}.copy-prompt-status{min-height:22px;margin:8px 0 0;color:var(--success);font-size:.75rem;font-weight:800}.ai-prompt-example{overflow:hidden;border:1px solid #c9d8ee;border-radius:16px;background:#f8fbff;margin-top:8px}.ai-prompt-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #dbeafe;padding:14px 16px}.ai-prompt-heading h3{margin:1px 0 0;font-size:1rem}.ai-prompt-heading>span{max-width:210px;color:#536177;font-size:.69rem;font-weight:750;line-height:1.35;text-align:right}.prompt-kicker{margin:0!important;color:var(--brand-bright)!important;font-size:.61rem;font-weight:900;letter-spacing:.12em}.guide-card pre.ai-prompt-code{max-height:360px;overflow:auto;border-radius:0;background:var(--ink);margin:0;padding:17px;color:#e8f1ff;font-size:.69rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.guide-card pre.ai-prompt-code:focus-visible{outline-offset:-4px}.template-column-preview{display:grid;grid-template-columns:0.7fr 1.7fr 1.2fr;overflow:hidden;border:1px solid #bfdbfe;border-radius:12px;background:#fff;margin:18px 0 14px}.template-column-preview span{padding:10px 9px;color:var(--brand);font-size:.72rem;font-weight:900;text-align:center}.template-column-preview span+span{border-left:1px solid #bfdbfe}.filter-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border:1px solid #dbeafe;border-radius:18px;background:#fff;padding:17px;box-shadow:var(--shadow)}.filter-bar label{display:grid;gap:5px}.result-count{margin:17px 0 10px;color:var(--muted);font-size:.82rem}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.library-card{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:22px;box-shadow:var(--shadow)}.library-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.category-pill,.year-pill{display:inline-flex;border-radius:999px;background:var(--pale);color:var(--brand);padding:5px 9px;font-size:.68rem;font-weight:900}.approved-mark{color:var(--success);font-size:.7rem;font-weight:900}.library-card h3{margin:14px 0 5px;color:var(--ink);font-size:1.08rem}.library-card .skill{margin:0 0 10px;color:var(--brand-bright);font-size:.75rem;font-weight:800}.library-card .description{flex:1;margin:0 0 14px;color:var(--muted);font-size:.84rem}.library-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.library-card .btn{width:100%}.submission-layout{display:grid;grid-template-columns:0.8fr 1.2fr;gap:28px;border:1px solid #dbeafe;border-radius:24px;background:linear-gradient(135deg,#f8fbff,#fff);padding:30px;margin-top:42px;box-shadow:var(--shadow)}.submission-copy h3{margin:4px 0 8px;color:var(--ink);font-size:1.55rem}.submission-copy>p:not(.eyebrow){color:var(--muted)}.moderation-steps{list-style:none;padding:0}.moderation-steps li{position:relative;display:grid;border-left:2px solid #bfdbfe;padding:0 0 19px 17px}.moderation-steps li::before{content:"";position:absolute;top:4px;left:-5px;width:8px;height:8px;border-radius:50%;background:var(--brand-bright)}.moderation-steps span{color:var(--muted);font-size:.78rem}.privacy-note{display:grid;border-left:4px solid var(--success);border-radius:10px;background:var(--success-pale);padding:12px 14px}.privacy-note span{color:#475569;font-size:.76rem}.submission-form{border:1px solid #dbeafe;border-radius:18px;background:#fff;padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label{display:grid;gap:5px}.form-grid label span{color:var(--muted);font-weight:500}.classification-field{min-width:0;display:grid;align-content:start;gap:5px}.classification-label{color:#334155;font-size:.82rem;font-weight:800}.classification-label span{color:var(--muted);font-weight:500}.classification-select-shell{position:relative;min-width:0;width:100%}select.classification-select-native{position:absolute;width:1px;min-height:1px;height:1px;margin:0;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);opacity:0;pointer-events:none;white-space:nowrap}.classification-select-trigger{position:relative;width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #cbd5e1;border-radius:12px;outline:0;background:#fff;color:var(--ink);padding:10px 40px 10px 12px;font:inherit;font-size:.82rem;text-align:left;cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease,background 150ms ease}.classification-select-trigger::after{position:absolute;top:50%;right:15px;width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;content:"";transform:translateY(-68%) rotate(45deg);transition:transform 160ms ease}.classification-select-trigger:hover:not(:disabled){border-color:#93afd9;background:#f8fbff}.classification-select-trigger:focus-visible,.classification-select-trigger[aria-expanded=true]{border-color:#7b9bd2;box-shadow:0 0 0 4px rgba(37,99,235,.1)}.classification-select-trigger[aria-expanded=true]::after{transform:translateY(-28%) rotate(225deg)}.classification-select-trigger:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.classification-select-trigger:disabled::after{border-color:#a8b3c3}.classification-select-trigger.is-invalid{border-color:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.1)}.classification-select-trigger-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-select-count{flex:0 0 auto;border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:3px 8px;margin-right:2px;font-size:.68rem;font-weight:900}.classification-select-menu{position:fixed;z-index:620;max-height:min(300px,calc(100dvh - 24px));overflow-x:hidden;overflow-y:auto;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:6px;box-shadow:0 18px 46px rgba(32,43,64,.22);overscroll-behavior:contain;scrollbar-color:#9aabc2 transparent;scrollbar-width:thin;touch-action:pan-y;transform-origin:top center;animation:classificationSelectDown 150ms cubic-bezier(.22,1,.36,1) both}.classification-select-menu.opens-above{transform-origin:bottom center;animation-name:classificationSelectUp}.classification-select-menu[hidden]{display:none}@keyframes classificationSelectDown{from{opacity:0;transform:translateY(-5px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes classificationSelectUp{from{opacity:0;transform:translateY(5px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.classification-select-option{width:100%;min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:10px;border:0;border-radius:9px;background:0 0;color:#334155;padding:8px 10px;font:inherit;font-size:.82rem;text-align:left;cursor:pointer}.classification-select-option.is-active,.classification-select-option:hover{background:#eff6ff;color:#12386f}.classification-select-option[aria-selected=true]{color:#1d4ed8;font-weight:800}.classification-select-option-mark{width:20px;height:20px;display:grid;place-items:center;border:1px solid #cbd5e1;border-radius:6px;color:#fff;font-size:.72rem;font-weight:900}.classification-select-option[aria-selected=true] .classification-select-option-mark{border-color:#2563eb;background:#2563eb}.classification-chips{min-height:28px;display:flex;flex-wrap:wrap;gap:6px;padding-top:2px}.classification-empty{align-self:center;color:#64748b;font-size:.72rem}.classification-chip{min-height:28px;display:inline-flex;align-items:center;gap:6px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1e4e91;padding:4px 9px;font:inherit;font-size:.7rem;font-weight:800;cursor:pointer}.classification-chip:hover{border-color:#7aa2dd;background:#dbeafe}.classification-chip span:last-child{color:#52627a;font-size:.9rem;line-height:1}.span-two{grid-column:1/-1}.year-fieldset{border:1px solid #cbd5e1;border-radius:11px;padding:10px 12px 12px}.year-fieldset legend{padding:0 5px;color:#334155;font-size:.82rem;font-weight:800}.year-checkboxes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.year-checkboxes label{display:flex;align-items:center;gap:6px;font-size:.74rem;font-weight:600}.year-checkboxes input{width:auto}.consent-label{display:flex;align-items:flex-start;gap:9px;margin:15px 0;color:#475569;font-weight:600}.consent-label input{width:auto;margin-top:4px}.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.about-grid article>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--pale-strong);color:var(--brand);font:900 1.3rem Georgia,serif}.about-grid h2,.about-grid h3{margin:15px 0 6px;color:var(--ink);font-size:1.13rem}.about-grid p{margin:0;color:var(--muted)}.faq-wrap{max-width:890px;margin:38px auto 0}.faq-wrap>h3{margin-bottom:14px;color:var(--ink);font-size:1.55rem}.faq-wrap details{border:1px solid #e2e8f0;border-radius:14px;background:#fff;margin-bottom:9px;padding:0 16px;box-shadow:0 4px 12px rgba(15,23,42,.03)}.faq-wrap summary{cursor:pointer;color:var(--ink);padding:14px 0;font-weight:800}.faq-wrap details p{margin:0 0 15px;color:var(--muted)}.toast{position:fixed;right:20px;bottom:20px;z-index:1300;max-width:420px;border:1px solid rgba(219,234,254,.98);border-radius:14px;background:rgba(255,255,255,.98);color:var(--ink);padding:12px 15px;font-size:.8rem;font-weight:800;box-shadow:0 18px 48px rgba(15,23,42,.16)}footer{border-top:1px solid #1e293b;background:var(--ink);color:#cbd5e1;padding:38px 0}.footer-grid{display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-brand{color:#fff}.footer-brand .brand-words{color:#fff}.footer-brand .brand-words strong{color:#93c5fd}footer p{margin:6px 0 0;color:#cbd5e1;font-size:.82rem}footer strong{color:#fff}.submission-dialog{width:min(560px,92%);border:0;border-radius:22px;padding:30px;color:var(--text);box-shadow:0 28px 80px rgba(15,23,42,.35);text-align:center}.submission-dialog::backdrop{background:rgba(15,23,42,.65)}.dialog-close{position:absolute;top:12px;right:14px;border:0;background:0 0;color:#64748b;font-size:1.7rem}.dialog-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#dcfce7;color:var(--success);margin:4px auto 14px;font-size:1.45rem;font-weight:900}.submission-dialog h2{margin:0;color:var(--ink)}.submission-dialog p{color:var(--muted)}.dialog-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:20px}.submission-dialog .dialog-note{margin-bottom:0;color:var(--danger);font-size:.76rem;font-weight:700}.phrase-error-dialog{border:1px solid #fecaca}.phrase-error-dialog .phrase-error-icon{background:#fee4e2;color:var(--danger)}.template-download-dialog{width:min(540px,calc(100% - 32px));border:1px solid #fed7aa;border-radius:22px;background:#fff;color:var(--text);padding:30px;box-shadow:0 28px 80px rgba(15,23,42,.38)}.template-download-dialog::backdrop{background:rgba(15,23,42,.58)}.template-dialog-close{position:absolute;top:12px;right:14px;width:38px;height:38px;border:0;border-radius:10px;background:#f8fafc;color:#475569;font-size:1.55rem;line-height:1}.template-dialog-close:hover{background:#e2e8f0;color:var(--ink)}.template-dialog-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#f59e0b;color:#fff;font-size:1.35rem;font-weight:900}.template-download-dialog h2{margin:16px 45px 8px 0;color:var(--ink);font-size:1.45rem;line-height:1.2}.template-download-dialog p{margin:0;color:#596579}.template-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:24px}body.copy-confirmation-open{overflow:hidden}.copy-confirmation-layer{position:fixed;z-index:1100;inset:0;display:grid;place-items:center;padding:24px;background:rgba(30,39,56,.34);-webkit-backdrop-filter:blur(12px) saturate(85%);backdrop-filter:blur(12px) saturate(85%);animation:copy-layer-in 170ms ease both}.copy-confirmation-layer[hidden]{display:none}.copy-confirmation-card{position:relative;width:min(520px,100%);overflow:hidden;border:1px solid rgba(219,234,254,.98);border-radius:25px;background:rgba(255,255,255,.98);box-shadow:0 32px 90px rgba(21,29,45,.26);padding:38px 34px 34px;text-align:center;animation:copy-card-in 220ms cubic-bezier(.2,.8,.2,1) both}.copy-confirmation-card::before{position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--brand-bright),#14b8a6);content:""}.copy-confirmation-close{position:absolute;top:14px;right:14px;width:38px;height:38px;display:grid;place-items:center;padding:0 0 2px;border:1px solid #dfe6f0;border-radius:12px;background:#f8fafc;color:#677286;cursor:pointer;font:inherit;font-size:1.55rem;line-height:1}.copy-confirmation-close:hover{background:#eef2f7;color:var(--ink)}.copy-confirmation-close:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}.copy-confirmation-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:19px;background:linear-gradient(145deg,#2563eb,#14b8a6);box-shadow:0 12px 25px rgba(37,99,235,.22);margin:0 auto 18px;color:#fff;font-size:1.65rem;font-weight:900}.copy-confirmation-eyebrow{margin:0 0 6px;color:var(--brand-bright);font-size:.7rem;font-weight:900;letter-spacing:.12em}.copy-confirmation-card h2{margin:0;color:var(--ink);font-size:clamp(1.6rem, 4vw, 1.95rem);letter-spacing:-.035em}.copy-confirmation-message{max-width:410px;margin:12px auto 0;color:#596579;font-size:1rem;line-height:1.6}@keyframes copy-layer-in{from{opacity:0}to{opacity:1}}@keyframes copy-card-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}body.import-processing-open{overflow:hidden}.import-processing-layer{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;overflow-y:auto;background:rgba(15,23,42,.44);padding:24px;backdrop-filter:blur(11px) saturate(88%);animation:import-layer-in 170ms ease both}.import-processing-layer[hidden]{display:none}.import-processing-card{position:relative;width:min(510px,100%);height:470px;max-height:calc(100dvh - 48px);overflow-x:hidden;overflow-y:auto;box-sizing:border-box;border:1px solid rgba(191,219,254,.95);border-radius:25px;background:rgba(255,255,255,.97);padding:34px 38px 32px;box-shadow:0 30px 90px rgba(15,23,42,.35);text-align:center;animation:import-card-in 210ms cubic-bezier(.22,1,.36,1) both}.import-processing-close{position:absolute;top:14px;right:15px;z-index:2;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:11px;background:#eef4fb;color:#52627a;font-size:1.55rem;line-height:1}.import-processing-close:hover{background:#dfeafb;color:var(--ink)}.import-processing-visual{position:relative;width:136px;height:136px;margin:1px auto 16px}.import-processing-dots{position:absolute;inset:0}.import-processing-dot{position:absolute;top:50%;left:50%;width:11px;height:11px;border:2px solid #cbd9eb;border-radius:50%;background:#f2f6fb;margin:-5.5px;transform:rotate(calc(var(--dot-index) * 22.5deg)) translateY(-59px) scale(.88);transition:background 120ms ease,border-color 120ms ease,box-shadow 120ms ease,transform 120ms ease}.import-processing-dot.is-filled{border-color:#4c87d9;background:#4c87d9;box-shadow:0 0 0 4px rgba(76,135,217,.13);transform:rotate(calc(var(--dot-index) * 22.5deg)) translateY(-59px) scale(1)}.import-processing-centre{position:absolute;top:50%;left:50%;width:66px;height:66px;display:grid;place-items:center;border:1px solid #c7d9f2;border-radius:22px;background:linear-gradient(145deg,#f7fbff,#dceafe);color:var(--brand-bright);font-size:2rem;line-height:1;box-shadow:0 10px 26px rgba(17,70,161,.14);transform:translate(-50%,-50%)}.import-processing-layer.is-working .import-processing-centre{animation:import-worker-turn 1.55s linear infinite}.import-processing-layer.is-ready .import-processing-centre{border-color:#a7f3d0;background:#dcfce7;color:var(--success)}.import-processing-layer.is-error .import-processing-centre,.import-processing-layer.is-invalid .import-processing-centre{border-color:#fecaca;background:#fee4e2;color:var(--danger)}.import-processing-layer.is-ready .import-processing-dot.is-filled{border-color:#12b76a;background:#12b76a;box-shadow:0 0 0 4px rgba(18,183,106,.13)}.import-processing-layer.is-error .import-processing-dot.is-filled,.import-processing-layer.is-invalid .import-processing-dot.is-filled{border-color:#f04438;background:#f04438;box-shadow:0 0 0 4px rgba(240,68,56,.12)}.import-processing-eyebrow{min-height:1em;margin:0 0 5px;color:#3572c8;font-size:.7rem;font-weight:900;letter-spacing:.14em}.import-processing-eyebrow:empty{display:block;visibility:hidden}.import-processing-card h2{min-height:2.35em;display:flex;align-items:center;justify-content:center;margin:0;color:var(--ink);font-size:clamp(1.65rem, 4vw, 2rem);letter-spacing:-.035em}#import-processing-message{min-height:3.2em;display:flex;align-items:flex-start;justify-content:center;max-width:405px;margin:10px auto 0;color:#596579;line-height:1.6}.import-processing-review{margin-top:19px}.import-processing-review.is-placeholder{visibility:hidden;pointer-events:none}@keyframes import-layer-in{from{opacity:0}to{opacity:1}}@keyframes import-card-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes import-worker-turn{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}@media (max-width:1040px){.hero-card{grid-template-columns:55% 45%}.hero-copy{padding:46px 40px}.hero-showcase{padding-right:24px}.creator-grid{grid-template-columns:315px minmax(0,1fr)}.preview-panel,.work-panel{padding:24px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.action-controls-row{grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch}.pdf-options{grid-column:1/-1;max-width:260px}.action-controls-row>.btn{white-space:normal}}@media (max-width:760px){.action-bar{grid-template-columns:1fr;gap:11px}.action-controls-group,.label-mode-card{grid-column:1}}@media (max-width:880px){.navbar{position:relative;flex-wrap:nowrap;min-height:70px}.menu-toggle{display:block;margin-left:auto}.nav-links{position:absolute;z-index:30;top:calc(100% + 1px);right:0;left:0;display:none;width:auto;flex-direction:column;align-items:stretch;border:1px solid #dbe3ef;border-radius:0 0 16px 16px;background:rgba(255,255,255,.99);padding:9px;box-shadow:0 18px 34px rgba(15,23,42,.14)}.nav-links.open{display:flex}.nav-link{text-align:left}.hero-card{grid-template-columns:1fr;min-height:auto}.hero-showcase{border-top:1px solid #dbeafe;padding:28px 9%}.hero-slides{min-height:430px}.creator-grid{grid-template-columns:1fr}.card-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.import-panel{border-right:0;border-bottom:1px solid #e2e8f0}.about-grid,.submission-layout,.two-column{grid-template-columns:1fr}.three-column{grid-template-columns:repeat(2,1fr)}.school-stage-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:repeat(2,1fr)}.creator-page-intro{align-items:flex-start;flex-direction:column}.loop-demo-carousel{--loop-demo-gutter:12px;padding-inline:var(--loop-demo-gutter)}.loop-demo-card{border-radius:10px}.loop-demo-answer{padding:5px 18px 4px 6px}.loop-demo-question{padding:5px 23px 7px 6px}.loop-demo-letter{right:5px;bottom:5px;width:20px;height:20px;font-size:.62rem}.loop-demo-centre{padding-inline:14px}}@media (max-width:620px){body{font-size:15px}.container{width:min(94%,1180px)}.brand{font-size:1rem}.brand-mark{width:34px;height:34px}.hero{padding-top:22px}.hero-copy{padding:32px 23px}.hero h1{font-size:clamp(2.35rem, 12vw, 3.3rem)}.hero-showcase{padding-inline:7%}.hero-loop-card{width:89%}.hero-loop-card-back{right:0}.hero-actions{flex-direction:column;align-items:stretch}.split-heading{align-items:flex-start;flex-direction:column}.import-panel,.preview-panel,.work-panel{padding:20px 16px}.panel-heading-wide{flex-wrap:wrap}.panel-heading-wide .btn{margin-left:44px}.card-preview,.filter-bar,.form-grid,.library-grid,.template-links,.three-column{grid-template-columns:1fr}.mistake-navigation{grid-template-columns:1fr 1fr}.mistake-navigation p{grid-column:1/-1;grid-row:1}.mistake-navigation .btn{width:100%}.span-two{grid-column:auto}.preview-header{align-items:flex-start;flex-direction:column}.action-controls-row{grid-template-columns:1fr}.pdf-options{grid-column:auto;max-width:none}.action-controls-row>.btn{width:100%}.label-mode-heading{align-items:flex-start}.label-mode-badge{display:none}.custom-phrase-input-row input{padding-right:78px;font-size:.9rem}.template-actions{grid-template-columns:1fr}.ai-prompt-heading{display:grid;gap:6px}.ai-prompt-heading>span{max-width:none;text-align:left}.year-checkboxes{grid-template-columns:repeat(2,1fr)}.submission-layout{padding:20px 15px}.footer-grid{align-items:flex-start;flex-direction:column}.loop-demo-heading{margin-top:30px}.loop-demo-carousel{--loop-demo-gutter:8px;--loop-demo-bottom:12px;overflow:hidden;padding:12px var(--loop-demo-gutter) var(--loop-demo-bottom)}.school-stage-section{padding:28px 18px}.school-stage-section .section-heading{margin-bottom:24px}.school-stage-card{padding:23px 20px}.loop-demo-frame{height:458px;aspect-ratio:auto;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain}.loop-demo-arrows,.loop-demo-slides{width:740px;max-width:none}.library-submit-cta{align-items:stretch;flex-direction:column}.library-submit-cta .btn{width:100%}.creator-shell{padding-top:20px}.creator-page-intro{padding:23px 20px}.creator-page-intro .btn{width:100%}.copy-confirmation-layer{padding:16px}.copy-confirmation-card{padding:34px 24px 28px}.import-processing-layer{padding:16px}.import-processing-card{height:470px;max-height:calc(100dvh - 32px);padding:30px 22px 27px}.import-processing-visual{width:126px;height:126px}.import-processing-dot{transform:rotate(calc(var(--dot-index) * 22.5deg)) translateY(-54px) scale(.88)}.import-processing-dot.is-filled{transform:rotate(calc(var(--dot-index) * 22.5deg)) translateY(-54px) scale(1)}}@media (min-width:900px){.templates-page-heading h1{white-space:nowrap}}@media (prefers-reduced-motion:reduce){.carousel-dots button,.hero-slide,.loop-demo-slide{transition:none}.hero-slide.deck-leaving,.loop-demo-slide.loop-demo-leaving{animation:none}*,::after,::before{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important;animation-iteration-count:1!important}}