/* Keep the spelling generator in the same visual family as the other generators. */
.spelling-app.app{max-width:1440px;margin:0 auto;padding:24px 22px 64px}
.spelling-breadcrumbs{margin:0 0 15px}
.spelling-hero.app-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:none;margin:0 0 18px;padding:0;text-align:left}
.spelling-brand h1{margin:0;font:700 30px/1.12 Georgia,serif;color:var(--sp-ink)}
.spelling-brand p{max-width:690px;margin:7px 0 0!important;color:var(--sp-muted);font-size:13px;line-height:1.5}
.header-badge{flex:0 0 auto;border:1px solid #c8ddd5;border-radius:999px;background:var(--sp-green-soft);padding:8px 13px;color:var(--sp-green);font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap}

.setup-card.selection-shell{margin-bottom:16px;padding:15px 17px;border-radius:15px;box-shadow:0 1px 2px rgba(31,47,42,.04),0 8px 22px rgba(31,47,42,.055)}
.setup-head{align-items:center;margin-bottom:11px}
.step-number{width:25px;height:25px;background:#edf4f1;color:var(--sp-green);border:1px solid #c9ddd6}
.setup-head h2{font-size:15px;line-height:1.25}
.setup-head p{font-size:10px;line-height:1.4}
.group-options{gap:9px}
.group-button{min-height:41px;padding:9px 8px;border-radius:9px;font-size:12px}
.group-button.active,.category-card.active,.form-card.active{background:var(--sp-green);border-color:var(--sp-green);color:#fff;box-shadow:none}
.group-button.active small,.category-card.active small,.form-card.active small{color:rgba(255,255,255,.78)}
.category-tools{justify-content:flex-end;min-width:340px}
.category-tools input{height:37px;width:240px;padding:8px 10px;font-size:11px}
.category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-height:236px;max-height:236px;padding:2px 4px 4px 2px}
.category-card{min-height:68px;padding:9px 10px;border-radius:9px}
.category-card b{font-size:11px}
.category-card small{font-size:9px;line-height:1.28}
.form-grid{gap:9px}
.form-grid.single-form{grid-template-columns:1fr}
.form-card{min-height:69px;padding:10px 11px;border-radius:9px}
.form-card b{font-size:11px}
.form-card small{font-size:9px;line-height:1.35}
.practice-card{min-height:58px;cursor:default;transform:none!important}
.practice-card b{font-size:12px}
.practice-card small{font-size:10px}

.spelling-workspace{grid-template-columns:286px minmax(0,1fr);gap:20px}
.settings-panel{top:18px;border-radius:15px;box-shadow:0 1px 2px rgba(31,47,42,.04),0 10px 26px rgba(31,47,42,.06)}
.settings-head{padding:16px 16px 14px}
.settings-kicker{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:var(--sp-green);font-size:9px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.settings-kicker span{width:17px;height:2px;border-radius:2px;background:var(--sp-green)}
.settings-head h2{font-size:19px;margin:0 0 4px}
.settings-body{padding:14px 15px 7px}
.field{margin-bottom:12px}
.field-label{font-size:9px;letter-spacing:.07em}
.field input[type=text],.field select{height:37px;padding:8px 9px;border-radius:8px;font-size:11px}
.package-summary{padding:9px 10px;border-radius:8px;background:#f8f7f3}
.package-summary b{font-size:11px}
.package-summary small{font-size:9px}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px 0;border-top:1px solid #eee9df}
.field:first-child .toggle-row{border-top:0}
.toggle-copy{min-width:0}
.toggle-copy strong{display:block;font-size:10px;line-height:1.3}
.toggle-copy small{display:block;margin-top:2px;color:var(--sp-muted);font-size:9px;line-height:1.35}
.switch{position:relative;display:block;flex:0 0 auto;width:35px;height:20px;cursor:pointer}
.switch input{position:absolute;width:1px;height:1px;opacity:0}
.switch-track{position:absolute;inset:0;border-radius:999px;background:#cbc7bd;transition:.18s ease}
.switch-track::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:.18s ease}
.switch input:checked+.switch-track{background:var(--sp-green)}
.switch input:checked+.switch-track::after{transform:translateX(15px)}
.switch input:focus-visible+.switch-track{outline:2px solid #72a997;outline-offset:2px}
.advanced-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;border-top:1px solid #ece6db;background:#faf9f6;padding:11px 15px;color:var(--sp-ink);font-size:10px;font-weight:800;cursor:pointer}
.advanced-toggle .chevron{font-size:16px;line-height:1;transition:transform .2s ease}
.advanced-toggle[aria-expanded=true] .chevron{transform:rotate(180deg)}
.advanced{display:grid;grid-template-rows:0fr;background:#faf9f6;transition:grid-template-rows .22s ease}
.advanced.open{grid-template-rows:1fr}
.advanced-inner{overflow:hidden}
.advanced-content{padding:1px 15px 8px}
.advanced-title{padding:9px 0 3px;color:var(--sp-green);font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.advanced .field{margin:0}
.settings-actions{padding:12px 15px 15px;gap:8px}
.action-button{min-height:39px;padding:9px 10px;border-radius:8px;font-size:10px}
.action-primary:hover{background:var(--sp-green-dark)}

.preview-column{min-width:0;border:1px solid #e2ddd2;border-radius:15px;background:#efebe3;padding:12px 14px 20px}
.preview-toolbar{min-height:30px;margin:0 2px 9px}
.preview-toolbar b{font-size:10px}
.preview-toolbar span{font-size:10px}
.pages{gap:19px;min-height:1050px}
.sheet{border-radius:9px;box-shadow:0 5px 20px rgba(31,47,42,.085)}
.study-exercise{min-height:103px;padding:10px 12px}
.study-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.study-top .prompt-word{margin-bottom:4px}
.word-focus{border:0;border-bottom:2px solid var(--sp-green);background:#dff0e9;color:var(--sp-green-dark);padding:0 1px}
.cover-hint{color:var(--sp-muted);font-size:8px;font-weight:700;white-space:nowrap}
.study-check{display:flex;align-items:center;gap:5px;margin-top:8px;color:var(--sp-muted);font-size:9px}
.correction-prompt{display:flex;flex:1;align-items:center;gap:5px;margin-left:8px}
.correction-line{display:block;flex:1;min-width:42px;height:13px;border-bottom:1px solid #aaa}

@media(max-width:1240px){.category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1120px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.spelling-workspace{grid-template-columns:275px minmax(0,1fr)}}
@media(max-width:820px){.spelling-app.app{padding:17px 12px 42px}.spelling-hero.app-header{align-items:flex-start}.header-badge{white-space:normal;text-align:center}.category-tools{min-width:0}.preview-column{padding:10px 8px 14px}.settings-panel{top:auto}}
@media(max-width:620px){.spelling-hero.app-header{display:block}.header-badge{display:inline-block;margin-top:12px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-height:380px;max-height:380px}.category-tools{width:100%;align-items:stretch}.category-tools input{width:100%}.pages{min-height:820px}}
@media(max-width:520px){.spelling-brand h1{font-size:27px}.preview-column{margin:0 -4px;border-radius:10px}.category-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}}
