.cloze-page .wrap{max-width:1600px}.cloze-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:28px;align-items:start;margin:24px 0 48px}.cloze-controls{background:#d2fdff;border:2px solid #303c6c;padding:20px;position:sticky;top:16px}.cloze-controls h2{margin-top:0}.cloze-controls label{display:block;font-weight:750;margin:14px 0 5px}.cloze-controls select{width:100%;padding:10px 6px;min-height:44px;border:1px solid #303c6c;border-radius:0;background:white;color:#303c6c;font:inherit}.cloze-controls button{margin-top:14px;width:100%}.cloze-controls p{font-size:.92rem;line-height:1.55}.cloze-controls hr{border:0;border-top:1px solid #303c6c;margin:22px 0}.cloze-page button{border:2px solid #303c6c;border-radius:0;background:#b4dfe5;color:#303c6c;padding:10px 14px;min-height:44px;font:inherit;font-weight:750;cursor:pointer}.cloze-page button:hover{background:#f4976c}.cloze-page button:disabled{opacity:.5;cursor:default}.cloze-page :is(button,select,input,a):focus-visible{outline:3px solid #303c6c;outline-offset:3px}.cloze-workspace{min-width:0}.cloze-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:2px solid #303c6c;padding-bottom:14px}.cloze-toolbar h2{margin:0}.cloze-toolbar>div{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.cloze-mode{display:flex;align-items:center;gap:8px}.cloze-mode input{width:18px;height:18px}.cloze-document{background:white;border:1px solid #303c6c;padding:28px;min-height:450px;overflow-wrap:anywhere}.cloze-document>h3{font-size:1.3rem;margin:0 0 8px}.cloze-document>p{font-size:.9rem;margin:0 0 20px}#cloze-empty{text-align:center;padding:60px 10px;color:#303c6c}#cloze-empty img{display:block;margin:auto}#cloze-status{min-height:24px}.cloze-topic-heading{font-size:1.05rem;margin:24px 0 12px;padding-bottom:8px;border-bottom:2px solid #b4dfe5}.cloze-section{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;border-bottom:1px solid #d7dbe3;padding:14px 0}.cloze-section-content{min-width:0;font-size:1rem;line-height:1.85}.cloze-section-content :is(p,ul,ol,figure){margin:8px 0}.cloze-section-content li{margin-bottom:8px}.cloze-section-content svg,.cloze-section-content img{max-width:100%;height:auto;max-height:240px}.cloze-section-content table{width:100%;border-collapse:collapse;display:block;overflow:auto}.cloze-section-content :is(td,th){border:1px solid #aaa;padding:6px}.cloze-section-content pre{white-space:pre-wrap}.cloze-word{cursor:pointer;border-radius:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}.cloze-word[aria-pressed=true],.cloze-key{background:#fbe8a6;box-shadow:inset 0 -2px #b85e32;color:#303c6c}.cloze-key{padding:2px 4px}.cloze-word:hover{background:#b4dfe5}.cloze-word:focus-visible{outline:2px solid #303c6c;outline-offset:2px}.cloze-word[aria-pressed=true]:hover{background:#f4976c}.cloze-previewing .cloze-word[aria-pressed=true]{font-family:Arial,sans-serif;letter-spacing:1px}.cloze-section.excluded{background:repeating-linear-gradient(135deg,#f6f7f9,#f6f7f9 8px,#eef0f3 8px,#eef0f3 16px);padding:14px 8px}.cloze-section.excluded .cloze-section-content{opacity:.6}.cloze-excluded-label{display:block;font-size:.85rem;font-weight:bold;color:#303c6c;margin:0 0 8px}.cloze-remove{padding:8px!important;width:44px;align-self:start}.cloze-remove svg{display:block;width:22px;height:22px;pointer-events:none}.cloze-export-note{font-size:.9rem;line-height:1.6}.cloze-section-content [hidden],.cloze-page [hidden]{display:none!important}@media(max-width:950px){.cloze-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.cloze-document{padding:18px}.cloze-controls{padding:14px}}@media(max-width:700px){.cloze-layout{grid-template-columns:minmax(0,1fr)}.cloze-controls{position:static}.cloze-document{padding:14px}.cloze-section{gap:8px}.cloze-toolbar>div{gap:12px}.cloze-section-content{line-height:1.9}.cloze-page .intro .page-title-icon{width:110px;height:110px}}@media print{.cloze-controls,.cloze-toolbar,.cloze-export-note,.cloze-remove,.excluded,.cloze-page header,.cloze-page footer{display:none}.cloze-layout{display:block}.cloze-document{border:0}}
#cloze-reset{margin-top:0;margin-bottom:20px}
.cloze-presenting{overflow:hidden}.cloze-presenting .cloze-workspace{position:fixed;inset:0;z-index:10000;overflow:auto;box-sizing:border-box;padding:24px;background:#fffdf5;color:#303c6c}.cloze-presenting :is(.topbar,body>footer,.skip,.intro,.cloze-controls,.cloze-export-note,.cloze-mode,.cloze-toolbar h2,#cloze-status){display:none!important}.cloze-presenting .cloze-toolbar{position:sticky;top:-24px;z-index:2;justify-content:flex-end;background:#fffdf5;padding:12px 0}.cloze-presenting .cloze-toolbar>div{gap:10px}.cloze-presenting .cloze-document{max-width:1350px;margin:0 auto;border:0;padding:24px;min-height:0}.cloze-presenting .cloze-section{display:block}.cloze-presenting :is(.cloze-remove,.cloze-section.excluded,.cloze-topic-excluded){display:none!important}.cloze-presenting .cloze-section-content{font-size:1.3rem;line-height:2}.cloze-presenting .cloze-word[aria-pressed=true]{font-family:Arial,sans-serif;letter-spacing:1px}.cloze-presenting .cloze-word.cloze-revealed{font-family:inherit;letter-spacing:normal}.cloze-presenting .cloze-word[aria-pressed=false]{cursor:default}.cloze-presenting .cloze-word[aria-pressed=false]:hover{background:transparent}#cloze-play-help{max-width:1350px;margin:16px auto;padding:0 24px;box-sizing:border-box}#cloze-share-dialog{max-width:620px;width:calc(100% - 32px);box-sizing:border-box;border:2px solid #303c6c;border-radius:0;padding:24px;color:#303c6c;background:#d2fdff}#cloze-share-dialog::backdrop{background:#303c6c99}#cloze-share-dialog h2{margin-top:0}#cloze-share-dialog label{display:block;font-weight:bold;margin-bottom:8px}#cloze-share-link{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #303c6c;border-radius:0;padding:10px;font:inherit;color:#303c6c}.cloze-share-actions{display:flex;gap:12px;flex-wrap:wrap}@media(max-width:700px){.cloze-toolbar>div{gap:10px}.cloze-presenting .cloze-workspace{padding:12px}.cloze-presenting .cloze-toolbar{top:-12px}.cloze-presenting .cloze-document{padding:12px 0}.cloze-presenting .cloze-section-content{font-size:1.1rem}#cloze-play-help{padding:0}}@media print{.cloze-toolbar,#cloze-play-help,#cloze-share-dialog{display:none!important}.cloze-presenting{overflow:visible}.cloze-presenting .cloze-workspace{position:static;overflow:visible;padding:0}}
.cloze-toolbar .cloze-workspace-heading{gap:12px}.cloze-presenting .cloze-workspace-heading{display:none!important}
#cloze-size-controls{display:flex;align-items:center;gap:8px;font-weight:bold;flex-wrap:wrap}#cloze-text-size{width:125px;min-height:32px;accent-color:#303c6c}#cloze-text-size-value{min-width:44px;font-weight:normal}.cloze-presenting .cloze-document{font-size:var(--cloze-play-size,22px)}.cloze-presenting .cloze-section-content{font-size:inherit}.cloze-presenting .cloze-document>h3{font-size:1.15em}.cloze-presenting .cloze-topic-heading{font-size:1em}

/* Match Keyword Builder actions while retaining cloze editing and playback. */
.cloze-page button{border-width:1px;background:#D2FDFF;padding:7px 11px;min-height:42px;font-weight:normal;display:inline-flex;align-items:center;justify-content:center;gap:7px}.cloze-page button:disabled{opacity:.55}.cloze-page button svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cloze-page .kb-format-icon{width:27px;height:27px;stroke:none}.cloze-page #cloze-reset,.cloze-page #cloze-clear-content{background:#ae2828;color:white;border-color:#861e1e}.cloze-page #cloze-reset:hover,.cloze-page #cloze-clear-content:hover{background:#861e1e}.cloze-workspace>h2{margin-top:0}.cloze-toolbar{flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:8px;overflow-x:auto;padding:4px 2px 12px;border-bottom:2px solid #B4DFE5;max-width:100%}.cloze-toolbar button{flex:0 0 auto;white-space:nowrap;min-height:44px;font-size:.92rem;padding:8px 10px}.cloze-options{padding:12px 0}.cloze-mode{cursor:pointer}.cloze-mode input{width:18px;height:18px;accent-color:#303C6C;margin:0}.cloze-presenting .cloze-workspace>h2{display:none}.cloze-presenting .cloze-options{display:none}.cloze-presenting .cloze-toolbar{justify-content:flex-start}@media(max-width:700px){.cloze-toolbar button{flex-direction:column;gap:3px;padding:6px 8px;font-size:.8rem;min-width:66px}.cloze-toolbar{gap:6px}}@media(min-width:701px) and (max-width:1100px){.cloze-toolbar button{flex-direction:column;gap:3px;padding:6px 8px;font-size:.8rem;min-width:66px}}@media print{.cloze-options{display:none}}

body:has(.cloze-layout).lesson-cloze-editor .topbar,body.lesson-cloze-editor>footer,.lesson-cloze-editor .intro,.lesson-cloze-editor .cloze-controls,.lesson-cloze-editor .cloze-toolbar,.lesson-cloze-editor .cloze-export-note{display:none!important}.lesson-cloze-editor .cloze-layout{display:block;margin:0}.lesson-cloze-editor main{width:100%;max-width:none;padding:8px;margin:0}.lesson-cloze-editor .cloze-workspace{padding:8px;border:0;min-height:0}
 .cloze-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.cloze-options>label[for="cloze-clues"]{font-weight:bold}.cloze-options #cloze-clues{font:inherit;min-height:44px;padding:8px;border:1px solid #303c6c;background:white;color:#303c6c;max-width:100%;box-sizing:border-box}.cloze-options .cloze-mode{display:flex;align-items:center;gap:8px}
