/* css/loading-red.css */
/* Eén duidelijke laadkleur voor de bewegende indicatoren en hun meldingen. */
:root{--cs-loading-red:#e6002d}
.app-loading strong,.app-loading p,.app-loading small{color:var(--cs-loading-red)!important}
.app-loading-track{border-color:#f3a6b4!important;background:#fff0f3!important}
.app-loading-track>span{background:var(--cs-loading-red)!important;box-shadow:0 0 14px #e6002d66!important}
.deferred-content-progress.deferred-content-progress{color:var(--cs-loading-red)!important;background:#fff0f3!important}
.deferred-content-progress b{color:var(--cs-loading-red)!important}
.deferred-content-progress>span{background:var(--cs-loading-red)!important}
.full-backup-progress{background:#fff0f3!important}
.full-backup-progress div{background:var(--cs-loading-red)!important}
.full-backup-message.busy{color:var(--cs-loading-red)!important}
.book-loading-card h1,.book-loading-card p{color:var(--cs-loading-red)!important}
.book-loading-spinner{border-color:#ffd2da!important;border-top-color:var(--cs-loading-red)!important}
.book-loading-track{background:#fff0f3!important}
.book-loading-track span{background:var(--cs-loading-red)!important}

/* css/relation-overview.css */
.relation-overview-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:20px 23px;border:1px solid #cfe1eb;border-radius:18px;background:linear-gradient(110deg,#f1f8fc,#fff);color:#26465b}
.relation-overview-intro b{display:block;font-size:19px;line-height:1.25}
.relation-overview-intro p{margin:6px 0 0;line-height:1.45}
.relation-overview-intro button{flex:none;border:1px solid #9ec4d9;border-radius:11px;background:#fff;color:#235b7e;padding:11px 15px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.relation-overview-intro button:hover{border-color:#397aa1;background:#eef7fc}
.relation-category-picker{min-width:0;border:1px solid #d4e3eb;border-radius:16px;background:#fff;overflow:hidden}
.relation-category-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;color:#244e68;font-weight:800;cursor:pointer;list-style:none}
.relation-category-picker>summary::-webkit-details-marker{display:none}
.relation-category-picker>summary:after{content:'⌄';font-size:23px;line-height:1;transition:transform .15s}
.relation-category-picker[open]>summary:after{transform:rotate(180deg)}
.relation-category-picker>summary small{margin-left:auto;color:#67808e;font-size:13px}
.relation-category-picker .relation-categorybar{padding:8px 14px 15px}
.relation-category-picker .relation-categorybar button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
.relation-category-picker .relation-categorybar button small{flex:none;padding:2px 7px;border-radius:999px;background:#e9f2f7;color:#305d75;font-weight:800}
.relation-category-picker .relation-categorybar button.active small{background:#fff;color:#24577d}
.relation-overview-hint{padding:28px;border:1px dashed #c5d7e2;border-radius:15px;text-align:center;color:#587386}
@media(max-width:700px){.relation-overview-intro{align-items:stretch;flex-direction:column;padding:18px}.relation-overview-intro button{width:100%}.relation-category-picker>summary{padding:15px}.relation-category-picker .relation-categorybar{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){.relation-category-picker .relation-categorybar{grid-template-columns:1fr!important}}

/* css/anatomy-and-relation-status.css */
.body-anatomy-header{margin:22px 0 18px;padding:24px 28px;border:1px solid #cfe1eb;border-radius:20px;background:linear-gradient(115deg,#eef7fc,#fff8f4)}
.body-anatomy-header h2{margin:6px 0 9px;font-size:clamp(30px,3vw,48px);line-height:1.1}
.body-anatomy-header p{margin:0;max-width:850px;color:#60717d;line-height:1.5}
.body-anatomy-count{margin-top:14px;color:#2a6484;font-weight:800}
.body-anatomy-layout{display:grid;grid-template-columns:minmax(390px,1fr) minmax(370px,1fr);gap:20px;align-items:start;margin:18px 0 36px}
.body-anatomy-left,.body-anatomy-details{border:1px solid #d6e4eb;border-radius:20px;background:#fff;box-shadow:0 10px 32px rgba(34,72,92,.06)}
.body-anatomy-left{padding:18px}
.body-anatomy-figure{display:flex;justify-content:center;align-items:center;min-height:530px;border-radius:16px;background:radial-gradient(circle at 50% 32%,#f5fbfe,#edf5f9 64%,#f9fbfc);overflow:hidden}
.body-anatomy-svg{display:block;width:min(100%,440px);max-height:680px;overflow:visible}
.body-anatomy-outline{fill:none;stroke:#a5bdcb;stroke-width:7;opacity:.5}
.body-anatomy-part{fill:#c9e4f1;stroke:#5c98b6;stroke-width:3;cursor:pointer;transition:fill .15s,stroke .15s,filter .15s}
.body-anatomy-part:hover,.body-anatomy-part:focus{fill:#a5d3e9;stroke:#287aa4;outline:none;filter:drop-shadow(0 0 5px rgba(42,119,159,.35))}
.body-anatomy-part.selected{fill:#f2a97f;stroke:#b94d32;filter:drop-shadow(0 2px 7px rgba(185,77,50,.25))}
.body-anatomy-part:focus-visible{stroke-width:6}
.body-anatomy-face{fill:none;stroke:#6c91a5;stroke-width:3;stroke-linecap:round;pointer-events:none}
.body-anatomy-regions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.body-anatomy-regions button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 11px;border:1px solid #d2e1e9;border-radius:10px;background:#f7fbfd;color:#305d76;text-align:left;font:inherit;font-weight:700;cursor:pointer}
.body-anatomy-regions button.selected{border-color:#bc694e;background:#fff0e8;color:#963e28}
.body-anatomy-regions button b{flex:none;border-radius:20px;background:#e8f1f6;padding:2px 7px;font-size:12px}
.body-anatomy-details{padding:22px;position:sticky;top:15px}
.body-anatomy-details-head h3{margin:6px 0 3px;font-size:28px}
.body-anatomy-details-head p{margin:0 0 16px;color:#5e7381}
.body-anatomy-search{display:block;color:#345b70;font-weight:700}
.body-anatomy-search input{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #b9d0dc;border-radius:10px;background:#fff;font:inherit}
.body-anatomy-selected{margin:16px 0;padding:16px;border:1px solid #e6c8b8;border-radius:13px;background:#fff8f3}
.body-anatomy-selected-word>span{color:#9c553c;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.body-anatomy-selected-word h4{margin:4px 0 2px;font-size:23px;color:#245f83}
.body-anatomy-selected-word p{margin:0;color:#546b78}
.body-anatomy-selected-word button{margin-top:10px;padding:7px 10px;border:1px solid #aac7d7;border-radius:8px;background:#fff;color:#235e81;font:inherit;font-weight:700;cursor:pointer}
.body-anatomy-words{display:grid;gap:9px;max-height:640px;overflow:auto;padding-right:3px}
.body-anatomy-word{border:1px solid #d8e5eb;border-radius:12px;background:#fff;padding:10px}
.body-anatomy-word[hidden]{display:none}
.body-anatomy-word.is-known{border-color:#80b998;background:#f4fbf6}
.body-anatomy-word.is-unknown{border-color:#dfa09a;background:#fff8f7}
.body-anatomy-word-main{display:grid;grid-template-columns:1fr auto;gap:2px 12px;width:100%;border:0;background:transparent;color:#223844;text-align:left;font:inherit;cursor:pointer}
.body-anatomy-word-main strong{grid-column:1;font-size:18px;color:#286f95}
.body-anatomy-word-main span{grid-column:1;color:#617380}
.body-anatomy-word-main small{grid-column:2;grid-row:1/3;align-self:center;border-radius:18px;padding:2px 7px;background:#e7f1f6;color:#2d6c8c;font-weight:800}
.body-anatomy-word-main.selected strong{text-decoration:underline;text-decoration-color:#e28c60;text-underline-offset:4px}
.body-anatomy-word-actions,.relation-word-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:9px}
.body-anatomy-word-actions button,.relation-word-actions button{min-height:34px;border:1px solid #afcbd9;border-radius:8px;background:#fff;color:#2e6581;padding:5px 9px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.body-anatomy-word-actions button[aria-pressed=true][data-relation-word-status=known],.relation-word-actions button[aria-pressed=true][data-relation-word-status=known]{border-color:#3d9661;background:#e3f4e9;color:#1c6a3e}
.body-anatomy-word-actions button[aria-pressed=true][data-relation-word-status=unknown],.relation-word-actions button[aria-pressed=true][data-relation-word-status=unknown]{border-color:#c9685e;background:#fcebe8;color:#a2332b}
.relation-all-item-wrap{display:flex;flex-direction:column;gap:4px;padding:7px;border:1px solid #d9e5eb;border-radius:12px;background:#fff}
.relation-all-item-wrap .relation-all-item{width:100%}
.relation-all-item-wrap.is-known{border-color:#80b998;background:#f4fbf6}
.relation-all-item-wrap.is-unknown{border-color:#dfa09a;background:#fff8f7}
.relation-all-item-wrap .relation-word-actions{justify-content:center;margin-top:0}
.generic-info-panel>.relation-word-actions{margin-top:16px;padding-top:14px;border-top:1px solid #e3ebef}
@media(max-width:1000px){.body-anatomy-layout{grid-template-columns:1fr}.body-anatomy-details{position:static}.body-anatomy-figure{min-height:0}}
@media(max-width:520px){.body-anatomy-header{padding:18px}.body-anatomy-left,.body-anatomy-details{padding:12px}.body-anatomy-regions{grid-template-columns:1fr 1fr}.body-anatomy-regions button{font-size:12px}.body-anatomy-word-actions button{font-size:12px}}
.theme-explanation-back{margin:12px 0 18px;border:1px solid #9ec4d9;border-radius:10px;background:#eef7fc;color:#245e80;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer}
.a12-word-comparison{margin:14px 0;padding:14px;border:1px solid #cfe1eb;border-radius:12px;background:#f4fafd}
.a12-word-comparison>b{display:block;margin-bottom:9px;color:#275c78}
.a12-word-comparison>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}
.a12-word-comparison button{display:flex;flex-direction:column;gap:3px;align-items:flex-start;border:1px solid #a9c9d9;border-radius:9px;background:#fff;padding:10px 12px;color:#275e7b;text-align:left;font:inherit;cursor:pointer}
.a12-word-comparison button:hover{border-color:#4b91b4;background:#f6fbfe}
.a12-word-comparison button span{font-weight:400;color:#526c7a}

.health-body-header{margin:20px 0;padding:24px 28px;border:1px solid #d4e4ec;border-radius:20px;background:linear-gradient(110deg,#eaf6fc,#fff8f4)}
.health-body-header h2{margin:5px 0;font-size:clamp(30px,3vw,46px)}
.health-body-header p{margin:0;color:#5d6e7b}
.health-body-layout{display:grid;grid-template-columns:minmax(440px,1fr) minmax(360px,1fr);gap:22px;align-items:start;margin:18px 0 40px}
.health-body-figure,.health-body-details{border:1px solid #d3e2ea;border-radius:20px;background:#fff;padding:22px}
.health-body-figure{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(8,minmax(68px,auto));grid-template-areas:'. . head . .' '. . neck . .' 'left-arm . chest . right-arm' 'left-forearm . abdomen . right-forearm' 'left-hand . waist . right-hand' '. . pelvis . .' '. left-leg . right-leg .' '. left-foot . right-foot .';gap:7px;position:relative;background:radial-gradient(circle at 50% 35%,#f4fafd,#fff 70%)}
.health-body-part{min-width:0;border:2px solid #a9cddf;border-radius:16px;background:#e8f5fb;color:#236587;padding:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;font:inherit;cursor:pointer;box-shadow:0 4px 12px #245f8312}
.health-body-part strong{font-size:clamp(11px,1vw,15px);line-height:1.15}
.health-body-part small{font-size:11px;line-height:1.15;color:#536d7c}
.health-body-part span{font-size:10px;font-weight:800;color:#357592}
.health-body-part:hover,.health-body-part:focus-visible,.health-body-part.selected{border-color:#c4543b;background:#fff0e8;color:#9c3d29;outline:none}
.health-body-part.selected small,.health-body-part.selected span{color:#9c3d29}
.health-body-systems{grid-column:1/-1;justify-self:center;margin-top:8px;border:1px solid #a9cddf;border-radius:10px;background:#f5fbfd;color:#246785;padding:9px 14px;font:inherit;font-weight:750;cursor:pointer}
.health-body-systems.selected{border-color:#c4543b;background:#fff0e8;color:#9c3d29}
.health-body-details{position:sticky;top:15px}
.health-body-details h3{margin:4px 0;font-size:28px}
.health-body-details p{margin:0 0 15px;color:#637683}
.health-body-details label{display:block;color:#345b70;font-weight:700}
.health-body-details input{box-sizing:border-box;display:block;width:100%;margin:6px 0 15px;padding:10px 12px;border:1px solid #bed4df;border-radius:10px;font:inherit}
.health-body-word-list{display:grid;gap:9px;max-height:660px;overflow:auto}
.health-body-word{border:1px solid #d8e5eb;border-radius:11px;padding:10px;background:#fff}
.health-body-word[hidden]{display:none}
.health-body-word.is-known{border-color:#80b998;background:#f4fbf6}
.health-body-word.is-unknown{border-color:#dfa09a;background:#fff8f7}
.health-body-word>div:first-child{display:grid;grid-template-columns:1fr auto;gap:2px 8px}
.health-body-word b{color:#246c91;font-size:17px}
.health-body-word span{grid-column:1;color:#5b6e7b}
.health-body-word small{grid-column:2;grid-row:1/3;align-self:center;border-radius:20px;background:#e8f3f8;padding:2px 7px;color:#2d6e8e}
.health-body-word-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.health-body-word-actions button{border:1px solid #afcbd9;border-radius:8px;background:#fff;color:#2e6581;padding:5px 9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.health-body-word-actions button[aria-pressed=true][data-relation-word-status=known]{border-color:#3d9661;background:#e3f4e9;color:#1c6a3e}
.health-body-word-actions button[aria-pressed=true][data-relation-word-status=unknown]{border-color:#c9685e;background:#fcebe8;color:#a2332b}
@media(max-width:1050px){.health-body-layout{grid-template-columns:1fr}.health-body-details{position:static}}
@media(max-width:600px){.health-body-header,.health-body-figure,.health-body-details{padding:12px}.health-body-figure{grid-template-columns:repeat(5,minmax(72px,1fr));grid-template-rows:repeat(8,minmax(61px,auto));gap:4px;overflow-x:auto}.health-body-part{border-radius:10px;padding:3px}.health-body-part strong{font-size:10px}.health-body-part small{font-size:9px}.health-body-part span{font-size:9px}}
/* Relatiekaart-rubrieken: geen samengedrukte teksteditor-spans. */
.relation-category-picker .relation-categorybar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;contain:none!important;overflow:visible!important}
.relation-category-picker .relation-categorybar button{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:52px!important;padding:10px 13px!important;text-align:left!important;white-space:normal!important;overflow:visible!important}
.relation-category-picker .relation-categorybar button>:first-child{box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;inline-size:auto!important;width:auto!important;min-inline-size:0!important;max-inline-size:none!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.25!important}
.relation-category-picker .relation-categorybar button>:last-child:not(:first-child){flex:0 0 auto!important;inline-size:auto!important;width:auto!important;max-inline-size:none!important;white-space:nowrap!important}
.relation-map-gallery.list-view{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.relation-map-gallery.list-view .relation-map-card{width:100%!important;min-width:0!important}
@media(max-width:1000px){.relation-category-picker .relation-categorybar{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.relation-category-picker .relation-categorybar{grid-template-columns:1fr!important}}

.health-body-levels{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:14px 0 18px;padding:15px 18px;border:1px solid #bdd9e7;border-radius:16px;background:#eaf6fc;color:#254e65}
.health-body-level-intro{display:flex;flex:1 1 300px;flex-direction:column;gap:3px;align-self:center}
.health-body-level-intro strong{font-size:17px}
.health-body-level-intro span{font-size:13px;color:#587181}
.health-body-levels label{display:flex;flex-direction:column;gap:4px;font-weight:750;font-size:13px}
.health-body-levels select{min-width:155px;min-height:42px;padding:8px 12px;border:1px solid #91b9ce;border-radius:9px;background:#fff;color:#205a78;font:inherit;font-size:15px;cursor:pointer}
.health-body-levels select:disabled{opacity:.55;cursor:default}
.health-body-systems{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.health-body-systems small{font-size:11px;line-height:1.25;font-weight:500;color:#526f7d}
.health-body-systems.selected small{color:#9c3d29}

/* css/b1-les4-editorial.css */
/* B1 Les 4 only — a reversible, matte editorial design trial.
   The application outside this chapter keeps its existing design. */
body.b1-public-page{
  background:#f5f3ee;
  color:#24363e;
}
body.b1-public-page .b1-public-toolbar{
  min-height:72px;
  border-bottom:1px solid #dad8cf;
  background:#fffefa;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
body.b1-public-page .b1-public-brand{
  color:#263b41;
  font-weight:750;
  letter-spacing:-.035em;
}
body.b1-public-page .b1-public-separator{border-color:#d5d5cc}
body.b1-public-page .b1-public-identity strong{
  padding:5px 9px;
  border:1px solid #e1d7c9;
  border-radius:6px;
  background:#f8f2e9;
  color:#80513d;
  font-size:.79rem;
  font-weight:750;
  letter-spacing:.03em;
}
body.b1-public-page .b1-public-languages>span{color:#596970;font-weight:550}
body.b1-public-page .b1-public-languages button{
  min-height:40px;
  border-color:#d3d9d5;
  border-radius:7px;
  background:#fffefa;
  color:#36565b;
  font-weight:650;
  box-shadow:none;
}
body.b1-public-page .b1-public-languages button:hover{background:#f1f4f1}
body.b1-public-page .b1-public-languages button[aria-pressed="true"]{
  border-color:#245e61;
  background:#245e61;
  color:#fff;
}
body.b1-public-page .b1-public-languages button:focus-visible{
  outline:3px solid #aa5a3e;
  outline-offset:3px;
}
body.b1-public-page #content{width:min(1540px,100%);padding-top:28px}

#content .b1-lesson4{
  --b1-paper:#f5f3ee;
  --b1-surface:#fffefa;
  --b1-ink:#24363e;
  --b1-muted:#586b73;
  --b1-line:#deddd4;
  --b1-accent:#a65439;
  --b1-action:#245e61;
  --b1-spanish:#2b7195;
  gap:20px;
  color:var(--b1-ink);
}
#content .b1-lesson4 ::selection{background:#e9d6c5;color:#24363e}
#content .b1-lesson4 :is(button,input,summary):focus-visible{
  outline:3px solid #a65439;
  outline-offset:3px;
}

/* A calm chapter cover, not a translucent app card. */
#content .b1-lesson4 .b1-lesson4-hero{
  position:relative;
  overflow:hidden;
  min-height:190px;
  padding:35px clamp(26px,4vw,54px);
  border:1px solid #d9d2c6;
  border-top:5px solid #aa6045;
  border-radius:14px;
  background:#eee9df;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
#content .b1-lesson4 .b1-lesson4-hero>div{position:relative;z-index:1}
#content .b1-lesson4 .b1-lesson4-hero>div>span{
  color:#91513b;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.15em;
}
#content .b1-lesson4 .b1-lesson4-hero h1{
  max-width:18ch;
  margin:9px 0 12px;
  color:#23383e;
  font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;
  font-size:clamp(2.25rem,3.9vw,3.8rem);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.06;
}
#content .b1-lesson4 .b1-lesson4-hero p{
  max-width:66ch;
  color:#52666b;
  font-size:1rem;
  line-height:1.62;
}
#content .b1-lesson4 .b1-lesson4-hero [data-b1-back]{
  position:relative;
  z-index:1;
  border-color:#bdc8c6;
  border-radius:8px;
  background:#fffefa;
  color:#315a5d;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-hero [data-b1-back]:hover{background:#f3f7f4}
#content .b1-lesson4:has(.b1-lesson4-question) .b1-lesson4-hero{
  min-height:0;
  padding-top:22px;
  padding-bottom:22px;
}
#content .b1-lesson4:has(.b1-lesson4-question) .b1-lesson4-hero h1{
  margin:5px 0;
  font-size:clamp(1.8rem,2.7vw,2.5rem);
}
#content .b1-lesson4:has(.b1-lesson4-question) .b1-lesson4-hero p{font-size:.91rem}

/* The contents list is a quiet rail; one active destination at a time. */
#content .b1-lesson4 .b1-lesson4-guide-layout{
  grid-template-columns:256px minmax(0,1fr);
  gap:22px;
}
#content .b1-lesson4 .b1-lesson4-guide-menu{
  padding:19px 14px;
  border:1px solid var(--b1-line);
  border-radius:13px;
  background:var(--b1-surface);
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
#content .b1-lesson4 .b1-lesson4-guide-menu>strong{
  margin:3px 12px 13px;
  color:#785541;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links{gap:2px}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button{
  grid-template-columns:23px minmax(0,1fr);
  gap:10px;
  min-height:45px!important;
  padding:10px 11px!important;
  border:1px solid transparent!important;
  border-left:3px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#445a63!important;
  font-size:.91rem!important;
  font-weight:500!important;
  line-height:1.35!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button:hover{
  border-color:#e7e4dc!important;
  background:#f7f5f0!important;
  color:#253f47!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]{
  border-color:#e7d9cb!important;
  border-left-color:#a65439!important;
  background:#f7eee5!important;
  color:#263b41!important;
  font-weight:700!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button>.b1-lesson4-guide-menu-number{
  color:#8b928f!important;
  font-size:.78rem!important;
  font-weight:650!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]>.b1-lesson4-guide-menu-number{
  color:#9d4d35!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-divider{
  margin:18px 10px 7px;
  padding-top:13px;
  border-top:1px solid #e6e2da;
  color:#795742;
  font-size:.7rem;
  letter-spacing:.13em;
}

/* Paper reading surface with a strong title and light supporting text. */
#content .b1-lesson4 .b1-lesson4-guide-panel{
  border:1px solid var(--b1-line);
  border-radius:13px;
  background:var(--b1-surface);
  box-shadow:none;
  scrollbar-color:#b8c5c4 #f8f7f3;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
#content .b1-lesson4 .b1-lesson4-guide-page-section{
  background:var(--b1-surface);
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading,
#content .b1-lesson4 .b1-lesson4-exercises-heading{
  padding:30px clamp(22px,3vw,42px) 25px;
  border-color:#e3e0d8;
  background:#fbfaf7;
}
#content .b1-lesson4 .b1-lesson4-guide-kicker{
  color:#95553e;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading h2,
#content .b1-lesson4 .b1-lesson4-exercises-heading h2{
  color:#24373e;
  font-size:clamp(1.8rem,2.5vw,2.55rem);
  font-weight:720;
  letter-spacing:-.035em;
  line-height:1.15;
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading p,
#content .b1-lesson4 .b1-lesson4-exercises-heading p{
  max-width:74ch;
  color:#586b72;
  line-height:1.6;
}
#content .b1-lesson4 .b1-lesson4-guide-page-section>.b1-lesson4-guide-body{
  gap:19px;
  padding:30px clamp(22px,3vw,42px) 42px;
}
#content .b1-lesson4 .b1-lesson4-guide-paragraph,
#content .b1-lesson4 .b1-lesson4-guide-list{
  max-width:82ch;
  color:#394c54;
  line-height:1.68;
}
#content .b1-lesson4 .b1-lesson4-guide-note{
  border-left:4px solid #b36b4f;
  border-radius:5px 9px 9px 5px;
  background:#fbf3e8;
  color:#674738;
}
#content .b1-lesson4 .b1-lesson4-guide-example{
  gap:9px 24px;
  padding:18px 20px;
  border-color:#dddcd3;
  border-radius:10px;
  background:#f8f7f3;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-guide-example blockquote{
  color:#2b7195;
  font-weight:650;
}
#content .b1-lesson4 .b1-lesson4-guide-example figcaption{color:#4c6068}
#content .b1-lesson4 .b1-lesson4-guide-panel.b1-lesson4-guide-sections [lang="es"]{
  color:#2b7195!important;
  font-weight:600!important;
}

/* Comparison and conjugation tables share one neutral, readable language. */
#content .b1-lesson4 .b1-lesson4-comparison,
#content .b1-lesson4 .b1-lesson4-guide-table-wrap,
#content .b1-lesson4 .b1-lesson4-paradigm-table-wrap{
  border-color:#deddd4;
  border-radius:10px;
  background:#fffefa;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-comparison-table caption{
  background:#eeeae2;
  color:#334a51;
  font-weight:750;
}
#content .b1-lesson4 .b1-lesson4-comparison-table thead th,
#content .b1-lesson4 .b1-lesson4-guide-table-wrap thead th{
  background:#f6f4ef;
  color:#52656c;
  font-weight:700;
}
#content .b1-lesson4 .b1-lesson4-comparison-table th,
#content .b1-lesson4 .b1-lesson4-comparison-table td,
#content .b1-lesson4 .b1-lesson4-guide-table-wrap th,
#content .b1-lesson4 .b1-lesson4-guide-table-wrap td{
  border-color:#e5e4dc;
}
#content .b1-lesson4 .b1-lesson4-comparison-table tbody th{
  color:#2f4952;
  font-weight:700;
}
#content .b1-lesson4 .b1-lesson4-comparison-table tbody tr:nth-child(even){background:#fbfaf7}
#content .b1-lesson4 .b1-lesson4-usage-table caption{
  background:#eeeae2;
  color:#334a51;
}
#content .b1-lesson4 .b1-lesson4-usage-table thead th{
  background:#f6f4ef;
  color:#52656c;
}
#content .b1-lesson4 .b1-lesson4-usage-table tbody th{
  background:#f7f4ed;
  border-left-color:#c5a480;
  color:#2d414b;
}
#content .b1-lesson4 .b1-lesson4-paradigm-group{
  border-color:#deddd4;
  border-radius:10px;
  background:#fbfaf7;
}
#content .b1-lesson4 .b1-lesson4-paradigm-heading h4{color:#314a52}
#content .b1-lesson4 .b1-lesson4-paradigm-table thead th{
  border-color:#e4e0d8;
  background:#f3f1eb;
  color:#4e626b;
}
#content .b1-lesson4 .b1-lesson4-paradigm-table tbody th{background:#f7f5f0;color:#4b626b}
#content .b1-lesson4 .b1-lesson4-paradigm-table tbody td{font-weight:650}
#content .b1-lesson4 .b1-lesson4-paradigm-card caption{
  border-color:#e4e0d8;
  background:#eeeae2;
  color:#314a52;
}

/* Practice: flat cards, quiet choices and exactly one primary next action. */
#content .b1-lesson4 .b1-lesson4-exercises .b1-lesson4-grid{gap:12px;padding:24px}
#content .b1-lesson4 .b1-lesson4-set{
  min-height:178px;
  border-color:#dcded7;
  border-radius:11px;
  background:#fffefa;
  color:#283c43;
  box-shadow:none;
  transform:none;
  transition:border-color .15s ease,background-color .15s ease;
}
#content .b1-lesson4 .b1-lesson4-set:hover,
#content .b1-lesson4 .b1-lesson4-set:focus-visible{
  border-color:#7c9b97;
  background:#f6f8f5;
  box-shadow:none;
  transform:none;
}
#content .b1-lesson4 .b1-lesson4-set>span{color:#94583f;font-weight:750}
#content .b1-lesson4 .b1-lesson4-set h3{color:#293b42;font-weight:700;letter-spacing:-.025em}
#content .b1-lesson4 .b1-lesson4-set p{color:#586a71}
#content .b1-lesson4 .b1-lesson4-set b{color:#245e61;font-weight:750}
#content .b1-lesson4 .b1-lesson4-nav{gap:12px}
#content .b1-lesson4 .b1-lesson4-nav strong{color:#293d44;font-weight:700}
#content .b1-lesson4 .b1-lesson4-nav span{color:#607079;font-weight:600}
#content .b1-lesson4 .b1-lesson4-nav button,
#content .b1-lesson4 .b1-lesson4-note [data-b1-reference],
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-reference]{
  border:1px solid #b9c9c5;
  border-radius:8px;
  background:#fffefa;
  color:#315d60;
  font-weight:700;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-nav button:hover,
#content .b1-lesson4 .b1-lesson4-note [data-b1-reference]:hover,
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-reference]:hover{
  border-color:#65908d;
  background:#f0f5f2;
  color:#244f52;
}
#content .b1-lesson4 .b1-lesson4-note{
  border-color:#deddd4;
  border-radius:10px;
  background:#fbfaf7;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-note b{color:#52646a;font-weight:750}
#content .b1-lesson4 .b1-lesson4-question{
  border-color:#deddd4;
  border-radius:13px;
  background:#fffefa;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-counter{color:#8f553e;font-weight:800}
#content .b1-lesson4 .b1-lesson4-question h2{
  max-width:37ch;
  color:#24363e;
  font-weight:700;
  letter-spacing:-.03em;
}
#content .b1-lesson4 .b1-lesson4-choices button{
  border-color:#ccd8d5;
  border-radius:9px;
  background:#fffefa;
  color:#2c454c;
  font-weight:650;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-choices button:not(:disabled):hover{
  border-color:#638e8b;
  background:#f2f7f4;
}
#content .b1-lesson4 .b1-lesson4-choices button:disabled{
  opacity:1;
  cursor:default;
}
#content .b1-lesson4 .b1-lesson4-choices button.correct{
  border-color:#61947a;
  background:#edf6ee;
  color:#23543a!important;
}
#content .b1-lesson4 .b1-lesson4-choices button.wrong{
  border-color:#b9766b;
  background:#fff1ec;
  color:#873f34!important;
}
#content .b1-lesson4 .b1-lesson4-question input{
  border-color:#b9c9c5;
  border-radius:8px;
  background:#fff;
  color:#293c43;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-question input.correct{
  border-color:#61947a;
  background:#edf6ee;
  color:#23543a!important;
}
#content .b1-lesson4 .b1-lesson4-question input.wrong{
  border-color:#b9766b;
  background:#fff1ec;
  color:#873f34!important;
}
#content .b1-lesson4 .b1-lesson4-question form button,
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-next]{
  border:1px solid #245e61;
  border-radius:8px;
  background:#245e61;
  color:#fff;
  font-weight:750;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-question form button:hover:not(:disabled),
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-next]:hover{
  border-color:#1c4c4f;
  background:#1c4c4f;
}
#content .b1-lesson4 .b1-lesson4-feedback{
  border-radius:9px;
  box-shadow:none;
}
#content .b1-lesson4 .b1-lesson4-feedback.correct{background:#edf6ee;border-color:#9dc6aa}
#content .b1-lesson4 .b1-lesson4-feedback.wrong{background:#fff2ed;border-color:#dcb0a4}

/* Exercise reference: an opaque paper dialog, without a glass header. */
#content .b1-lesson4 .b1-lesson4-reference-modal{
  background:#34454c;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window{
  border-color:#ded5c9;
  background:#fffdfa;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header{
  border-color:#ded5c9;
  background:#f2ece3;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>footer{background:#fffdfa}

@media(max-width:1050px){
  #content .b1-lesson4 .b1-lesson4-guide-layout{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  #content .b1-lesson4 .b1-lesson4-guide-menu{
    position:static;
    max-height:none;
    overflow:visible;
    padding:12px;
  }
  #content .b1-lesson4 .b1-lesson4-guide-menu>strong{margin:2px 7px 10px}
  #content .b1-lesson4 .b1-lesson4-guide-menu-links{
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding:0 2px 5px;
    scrollbar-color:#bbc6c2 transparent;
  }
  #content .b1-lesson4 .b1-lesson4-guide-menu-links>button{
    flex:0 0 196px;
    width:196px!important;
    min-height:58px!important;
    border:1px solid #e2e3dc!important;
    border-left:3px solid transparent!important;
    background:#fffefa!important;
  }
  #content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]{
    border-left-color:#a65439!important;
    background:#f7eee5!important;
  }
  #content .b1-lesson4 .b1-lesson4-guide-menu-divider{
    display:flex;
    align-items:center;
    flex:0 0 auto;
    margin:0 3px;
    padding:0 5px;
    border:0;
  }
}
@media(max-width:700px){
  body.b1-public-page .b1-public-toolbar{min-height:62px}
  body.b1-public-page #content{padding-top:16px}
  #content .b1-lesson4 .b1-lesson4-hero{min-height:0;padding:26px 22px}
  #content .b1-lesson4 .b1-lesson4-hero h1{font-size:clamp(2rem,8vw,2.8rem)}
  #content .b1-lesson4 .b1-lesson4-guide-menu-links>button{
    flex-basis:176px;
    width:176px!important;
  }
  #content .b1-lesson4 .b1-lesson4-guide-page-heading,
  #content .b1-lesson4 .b1-lesson4-exercises-heading{padding:22px 20px}
  #content .b1-lesson4 .b1-lesson4-guide-page-section>.b1-lesson4-guide-body{padding:22px 20px 30px}
  #content .b1-lesson4 .b1-lesson4-question{padding:22px}
}
@media(max-width:900px){
  #content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table tbody tr{
    border-color:#deddd4;
    background:#fffefa!important;
  }
  #content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table tbody :is(th,td)::before{
    color:#53676f;
    font-weight:650;
  }
}
@media(prefers-reduced-motion:reduce){
  #content .b1-lesson4 .b1-lesson4-set{transition:none}
}

/* css/b1-les4-warme-uitleg.css */
/* B1 Les 4 only: let the calm editorial layout and warm teaching cues coexist.
   Dense conjugations and complete example sentences keep their existing blue. */
#content .b1-lesson4{
  --b1-explain-ink:#914730;
  --b1-explain-edge:#bb7355;
  --b1-explain-paper:#fbf3e9;
}

/* Terracotta marks a point being explained, not every Spanish cell on the page. */
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-note{
  border-left-color:var(--b1-explain-edge);
  background:var(--b1-explain-paper);
  color:#55483f;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-example{
  border-left:3px solid #d4a58d;
  background:#fcf9f4;
}
#content .b1-lesson4 .b1-lesson4-guide-panel.b1-lesson4-guide-sections
  :is(.b1-lesson4-guide-page-heading p,
      .b1-lesson4-guide-paragraph,
      .b1-lesson4-guide-list,
      .b1-lesson4-guide-note,
      .b1-lesson4-guide-example figcaption small)
  :is([lang="es"],.page-text-spanish){
  color:var(--b1-explain-ink)!important;
  font-weight:700!important;
  text-decoration-color:#c7957e;
}

/* A warm secondary action leads to the warm reference; Next remains teal. */
#content .b1-lesson4 .b1-lesson4-note [data-b1-reference],
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-reference]{
  border-color:#cfa38e;
  background:#fffaf5;
  color:var(--b1-explain-ink);
}
#content .b1-lesson4 .b1-lesson4-note [data-b1-reference]:hover,
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-reference]:hover{
  border-color:var(--b1-explain-edge);
  background:var(--b1-explain-paper);
  color:#763925;
}

/* The exercise explanation retains its terracotta content in a matte shell. */
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window{
  border-radius:14px;
  box-shadow:0 18px 45px rgba(25,38,41,.18);
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header{
  border-top:4px solid var(--b1-explain-edge);
  background:#f6f0e8;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>footer button{
  border-radius:8px;
  background:#a65339;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>footer button:hover{
  background:#89432e;
}

/* css/b1-les4-evenwichtige-kleuren.css */
/* B1 Les 4 only: three quiet roles, without gradients or glass.
   Sand introduces the lesson, sage/petrol structures it, terracotta explains it. */
#content .b1-lesson4{
  --b1-color-sand:#f1e3d5;
  --b1-color-sage:#eaf2ee;
  --b1-color-petrol:#28595a;
}

/* More color in bounded surfaces, not in every line of reading text. */
#content .b1-lesson4 .b1-lesson4-hero{
  border-color:#dccbbb;
  border-top-color:#a65439;
  background:var(--b1-color-sand);
}
#content .b1-lesson4 .b1-lesson4-guide-menu{
  border-color:#d7e2db;
  background:#fcfdfa;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]{
  border-color:#e5cbb9!important;
  border-left-color:#a65439!important;
  background:#f6e5d8!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel{
  border-color:#d3dfd8;
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading,
#content .b1-lesson4 .b1-lesson4-exercises-heading{
  border-bottom-color:#d1e0d7;
  background:var(--b1-color-sage);
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading h2,
#content .b1-lesson4 .b1-lesson4-exercises-heading h2{
  color:#24494c;
}
#content .b1-lesson4 .b1-lesson4-guide-page-section>.b1-lesson4-guide-body{
  background:#fffefa;
}
#content .b1-lesson4 .b1-lesson4-guide-list li::marker{
  color:#a65439;
}

/* Table headings carry the structure; dense cells and Spanish forms stay quiet. */
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table caption,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-card caption{
  background:#e5efe9;
  color:var(--b1-color-petrol);
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table thead th{
  background:#f2f7f3;
  color:#3f6263;
}

/* The exercise reference follows the same palette, with one warm active rule. */
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header{
  border-bottom-color:#ceded5;
  background:var(--b1-color-sage);
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header .eyebrow{
  color:#914730;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header h3{
  color:#24494c;
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-row:not(.is-relevant)>span{
  background:#e4eee7;
  color:var(--b1-color-petrol);
}

/* css/b1-les4-naslagpalet.css */
/* B1 Les 4 only. Match the exercise reference: cream, paper, blue-grey ink,
   light sage and restrained terracotta. No dark green or bright blue UI. */
#content .b1-lesson4{
  --b1-cream:#f7f0e7;
  --b1-paper:#fffefa;
  --b1-slate:#334b58;
  --b1-body:#5b6d75;
  --b1-terra:#a65339;
  --b1-sage:#e4eee7;
  --b1-line:#e8e0d5;
  --b1-color-petrol:var(--b1-slate);
  --b1-ink:var(--b1-slate);
  --b1-muted:var(--b1-body);
  --b1-action:var(--b1-terra);
  color:var(--b1-slate);
}

/* The public language switch belongs to this lesson, too. */
body.b1-public-page .b1-public-brand{color:#334b58}
body.b1-public-page .b1-public-languages button{color:#334b58}
body.b1-public-page .b1-public-languages button[aria-pressed="true"]{
  border-color:#a65339;
  background:#a65339;
  color:#fff;
}

/* Chapter cover: exactly the reference's light header, with slate type. */
#content .b1-lesson4 .b1-lesson4-hero{
  border-color:#e2d7ca;
  border-top-color:#b97856;
  background:var(--b1-cream);
}
#content .b1-lesson4 .b1-lesson4-hero>div>span{color:#914730}
#content .b1-lesson4 .b1-lesson4-hero h1{color:var(--b1-slate)}
#content .b1-lesson4 .b1-lesson4-hero p{color:var(--b1-body)}
#content .b1-lesson4 .b1-lesson4-hero [data-b1-back]{
  border-color:#d8d1c7;
  background:var(--b1-paper);
  color:var(--b1-slate);
}
#content .b1-lesson4 .b1-lesson4-hero [data-b1-back]:hover{background:#fbf5ed}

/* Contents and reading pane: white with cream section headers. */
#content .b1-lesson4 .b1-lesson4-guide-menu,
#content .b1-lesson4 .b1-lesson4-guide-panel{
  border-color:var(--b1-line);
  background:var(--b1-paper);
}
#content .b1-lesson4 .b1-lesson4-guide-menu>strong,
#content .b1-lesson4 .b1-lesson4-guide-menu-divider{color:#914730}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button{color:var(--b1-slate)!important}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button:hover{
  border-color:#e7ddd1!important;
  background:#fbf5ed!important;
  color:var(--b1-slate)!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]{
  border-color:#e6d0bf!important;
  border-left-color:var(--b1-terra)!important;
  background:#fff1e6!important;
  color:var(--b1-slate)!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button>.b1-lesson4-guide-menu-number{
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:var(--b1-sage);
  color:var(--b1-slate)!important;
  font-size:.72rem!important;
}
#content .b1-lesson4 .b1-lesson4-guide-menu-links>button[aria-current="true"]>.b1-lesson4-guide-menu-number{
  background:var(--b1-terra);
  color:#fff!important;
}
#content .b1-lesson4 .b1-lesson4-guide-page-heading,
#content .b1-lesson4 .b1-lesson4-exercises-heading{
  border-bottom-color:var(--b1-line);
  background:var(--b1-cream);
}
#content .b1-lesson4 .b1-lesson4-guide-kicker{color:#914730}
#content .b1-lesson4 .b1-lesson4-guide-page-heading h2,
#content .b1-lesson4 .b1-lesson4-exercises-heading h2{color:var(--b1-slate)}
#content .b1-lesson4 .b1-lesson4-guide-page-heading p,
#content .b1-lesson4 .b1-lesson4-exercises-heading p{color:var(--b1-body)}
#content .b1-lesson4 .b1-lesson4-guide-page-section>.b1-lesson4-guide-body{
  background:var(--b1-paper);
}
#content .b1-lesson4 .b1-lesson4-guide-paragraph,
#content .b1-lesson4 .b1-lesson4-guide-list{color:#4f626c}

/* Full Spanish examples read in slate; short explanatory fragments stay warm. */
#content .b1-lesson4 .b1-lesson4-guide-panel.b1-lesson4-guide-sections
  :is([lang="es"],.page-text-spanish){
  color:var(--b1-slate)!important;
  font-weight:650!important;
  text-decoration-color:#d5b3a3!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel.b1-lesson4-guide-sections
  :is(.b1-lesson4-guide-page-heading p,
      .b1-lesson4-guide-paragraph,
      .b1-lesson4-guide-list,
      .b1-lesson4-guide-note,
      .b1-lesson4-guide-example figcaption small)
  :is([lang="es"],.page-text-spanish){
  color:#985039!important;
  font-weight:700!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-example blockquote{
  color:var(--b1-slate);
  font-weight:700;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-example{
  border-color:#e8ddd1;
  border-left:3px solid #d4a58d;
  background:#fcf9f4;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-note{
  border-left-color:#bb7355;
  background:#fbf3e9;
  color:#55483f;
}

/* Comparison and conjugation tables: cream hierarchy, not blue or green bands. */
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table caption,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-card caption{
  border-color:var(--b1-line);
  background:var(--b1-cream);
  color:var(--b1-slate);
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table thead th,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-guide-table-wrap thead th,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table thead th,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-card thead th{
  border-color:var(--b1-line);
  background:#fbf7f2;
  color:#4d626c;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table thead th:first-child{
  background:#fbf7f2;
  color:#4d626c;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table th,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table td,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table th,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table td{
  border-color:var(--b1-line);
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table tbody th[lang="es"]{
  background:#fbf8f4;
  color:var(--b1-body)!important;
  font-weight:650!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table tbody td,
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-card tbody td{
  color:var(--b1-slate);
  font-weight:700;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-comparison-table tbody tr:nth-child(even),
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-table tbody tr:nth-child(even) td{
  background:#fbf8f4;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-group{
  border-color:var(--b1-line);
  background:#fbf8f4;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-paradigm-heading h4{color:var(--b1-slate)}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-usage-table tbody th .b1-lesson4-usage-label-es{
  color:#985039!important;
  font-weight:600!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-usage-table tbody td:nth-child(2)[lang="es"]{
  background:#fbf8f4;
  color:var(--b1-slate)!important;
  font-weight:600!important;
}
#content .b1-lesson4 .b1-lesson4-guide-panel .b1-lesson4-usage-table tbody td:nth-child(3)>span[lang="es"]{
  color:#985039!important;
  font-weight:650!important;
}

/* Exercise buttons: terracotta is the action, pale sage only confirms success. */
#content .b1-lesson4 .b1-lesson4-set b{color:#985039}
#content .b1-lesson4 .b1-lesson4-set:hover,
#content .b1-lesson4 .b1-lesson4-set:focus-visible{
  border-color:#bf896f;
  background:#fffaf5;
}
#content .b1-lesson4 .b1-lesson4-nav button{
  border-color:#cfa38e;
  background:var(--b1-paper);
  color:#914730;
}
#content .b1-lesson4 .b1-lesson4-nav button:hover{
  border-color:#b97856;
  background:#fbf3e9;
  color:#713824;
}
#content .b1-lesson4 .b1-lesson4-question h2{color:var(--b1-slate)}
#content .b1-lesson4 .b1-lesson4-choices button:not(:disabled):hover{
  border-color:#bf896f;
  background:#fbf3e9;
}
#content .b1-lesson4 .b1-lesson4-question form button,
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-next]{
  border-color:var(--b1-terra);
  background:var(--b1-terra);
  color:#fff;
}
#content .b1-lesson4 .b1-lesson4-question form button:hover:not(:disabled),
#content .b1-lesson4 .b1-lesson4-feedback [data-b1-next]:hover{
  border-color:#87412d;
  background:#87412d;
}
#content .b1-lesson4 .b1-lesson4-choices button.correct,
#content .b1-lesson4 .b1-lesson4-question input.correct,
#content .b1-lesson4 .b1-lesson4-feedback.correct{
  border-color:#b8cbbf;
  background:#eef4ee;
  color:var(--b1-slate)!important;
}

/* The compact reference remains the visual source of truth. */
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header{
  border-bottom-color:#e5dacf;
  background:var(--b1-cream);
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-window>header h3,
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-close{
  color:var(--b1-slate);
}
#content .b1-lesson4 .b1-lesson4-reference-modal .focused-list-row:not(.is-relevant)>span{
  background:var(--b1-sage);
  color:var(--b1-slate);
}

/* css/b1-unidad1.css */
#content .b1-unidad1 {
  display: grid;
  gap: 16px;
  min-width: 0;
  color: #263942;
}

#content .b1-unidad1-header {
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9dfd5;
  border-top: 5px solid #a34e38;
  border-radius: 15px;
  background: #f5f2ec;
}

#content .b1-unidad1-header > span {
  color: #a34e38;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
}

#content .b1-unidad1-header h1 {
  margin: 8px 0 10px;
  color: #263942;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.14;
}

#content .b1-unidad1-header p {
  max-width: 76ch;
  margin: 0;
  color: #455960;
  line-height: 1.55;
}

#content .b1-unidad1-header small {
  display: block;
  margin-top: 10px;
  color: #53676a;
  font-weight: 700;
}

#content .b1-unidad1-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#content .b1-unidad1-tabs button {
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid #9db6a0;
  border-radius: 10px;
  background: #f4f6f1;
  color: #315841;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

#content .b1-unidad1-tabs button[aria-selected="true"] {
  border-color: #35664b;
  background: #dcebdd;
  box-shadow: inset 4px 0 #35664b;
}

#content .b1-unidad1-tabs button:focus-visible {
  outline: 3px solid #2e6b93;
  outline-offset: 2px;
}

#content .b1-unidad1-lesson[hidden] {
  display: none !important;
}

#content .b1-unidad1-lesson > .b1-lesson4 > .b1-lesson4-hero {
  display: none !important;
}

#content .b1-unidad1-lesson > .b1-lesson4 {
  min-width: 0;
}

@media (max-width: 700px) {
  #content .b1-unidad1-header { padding: 18px; }
  #content .b1-unidad1-tabs { display: grid; grid-template-columns: 1fr; }
  #content .b1-unidad1-tabs button { width: 100%; text-align: left; }
}

/* css/uniform-selection-overrides.css */
.words-alpha button.active,.book-filterbar button.active,.topic-level-selector button.active,.relation-level-buttons button.active,.relation-categorybar button.active,.generic-filterbar button.active,.verb-family.active{background:#356b97!important;color:#fff!important;border-color:#356b97!important;box-shadow:0 5px 14px rgba(53,107,151,.2)!important}
.relation-level-buttons button,.relation-categorybar button,.generic-filterbar button,.verb-family{background:rgba(255,255,255,.76)!important;color:#4e5d67!important;border-color:rgba(73,111,130,.12)!important}
.words-alpha button[data-letter=""],.book-filterbar button:first-child,.topic-level-selector button:first-child{background:rgba(255,255,255,.76)!important;color:#4e5d67!important;border-color:rgba(73,111,130,.12)!important}
.words-alpha button[data-letter=""].active,.book-filterbar button:first-child.active,.topic-level-selector button:first-child.active{background:#356b97!important;color:#fff!important;border-color:#356b97!important}
.words-toolbar select,.words-toolbar input,.verb-search select,.verb-search input,.example-sentences-toolbar select,.example-sentences-toolbar input{background:#fff!important;color:#354752!important}
.relation-level-controls{background:rgba(255,255,255,.76)!important;border-color:rgba(255,255,255,.82)!important;color:#354752!important;box-shadow:0 9px 30px rgba(37,45,65,.055)!important;backdrop-filter:blur(18px) saturate(135%)}

/* css/spanish-preview.css */
#csSpanishPreviewNotice{margin:8px 0 16px;padding:9px 13px;border:1px solid #c9dce8;border-radius:12px;background:#edf6fb;color:#426375;font-size:13px;line-height:1.5}
.cs-es-preview-active #content .reference-spanish-title{display:none}
.cs-es-preview-active #content .theme-word-table th:nth-child(2),.cs-es-preview-active #content .theme-word-table td:nth-child(2){display:none}
[data-cs-spanish-choice][aria-pressed=true]{background:#356b97!important;border-color:#356b97!important;color:white!important;box-shadow:0 4px 10px #356b9726}
@media(max-width:600px){#csSpanishPreviewNotice{font-size:12px}}
.cs-es-preview-active .site-footer-proverb > span:last-child:not([lang]){display:none}

/* css/mobile-language-controls.css */
/* Phones: language is a visible row, level settings keep their own disclosure. */
@media(max-width:1000px){
 #pageControls.cs-mobile-languages>.steer-language{display:flex!important;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;width:100%;margin-top:7px;padding:6px 0 0;border-left:0;border-top:1px solid #e0e9ef}
 #pageControls.cs-mobile-languages>.steer-language .cs-language-label{margin-right:auto;font-size:12px;font-weight:700;color:#526d7e}
 #pageControls.cs-mobile-languages>.steer-language button{min-width:44px;min-height:44px;padding:6px 10px;font-size:20px;line-height:1;border-radius:10px;touch-action:manipulation}
 #pageControls.cs-mobile-languages .steer-primary{flex-wrap:wrap;gap:4px}
 #pageControls.cs-mobile-languages [data-steer-options]{font-size:0!important;min-width:36px;max-width:36px;padding:6px}
 #pageControls.cs-mobile-languages [data-steer-options]::after{content:'⚙';font-size:19px}
 #pageControls.cs-mobile-languages [data-steer-back]{min-width:30px;max-width:75px;flex:1 1 30px;font-size:11px;padding-inline:5px}
 #pageControls.cs-mobile-languages .steer-options{width:max-content;max-width:calc(100vw - 40px)}
}
@media(max-width:380px){
 #pageControls.cs-mobile-languages [data-steer-back]{font-size:18px;max-width:32px;flex:0 0 32px;text-align:center}
 #pageControls.cs-mobile-languages [data-steer-back] span{display:none}
 #pageControls.cs-mobile-languages .steer-sequence{gap:2px}
 #pageControls.cs-mobile-languages .steer-sequence button{min-width:27px;padding-inline:4px}
}

/* css/develop-editorial.css */
/* Develop-only editorial skin, inspired by the B1 lesson 4/5 reading pages.
   This file deliberately changes presentation, not page structure or behaviour. */
body.editorial-develop {
  --navy: #24363e;
  --gold: #a65439;
  --red: #a65439;
  --paper: #f5f3ee;
  --white: #fffefa;
  --line: #deddd4;
  --muted: #696560;
  --soft: #f7f5f0;
  --blue: #a65439;
  background: #f5f3ee;
  color: #24363e;
}
body.editorial-develop :is(button, input, select, textarea, summary, a):focus-visible {
  outline: 3px solid #a65439;
  outline-offset: 3px;
}

/* Page frame: a quiet reading surface and a compact contents rail. */
body.editorial-develop .app { grid-template-columns: 248px minmax(0, 1fr); }
body.editorial-develop .side {
  border-right: 1px solid #deddd4;
  background: #fffefa;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.editorial-develop .brand { border-color: #deddd4; }
body.editorial-develop .brand-title { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.035em; }
body.editorial-develop .brand .by { color: #785541; }
body.editorial-develop .brand .rule { background: #a65439; height: 2px; }
body.editorial-develop .nav-group-label { color: #91513b; letter-spacing: .14em; }
body.editorial-develop .nav button {
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #514e4a;
  box-shadow: none;
  font-weight: 550;
  font-size: 15px;
  line-height: 1.4;
}
body.editorial-develop .nav button:hover { border-color: #e7e4dc; background: #f7f5f0; color: #24363e; }
body.editorial-develop .nav button.active,
body.editorial-develop .nav button[aria-current="page"] {
  border-color: #e7d9cb;
  border-left-color: #a65439;
  background: #f7eee5;
  color: #24363e;
  font-weight: 750;
}
body.editorial-develop .side .nav button:not(.nav-group-label) { font-size: 15px !important; line-height: 1.4; }
body.editorial-develop .side .nav button.nav-group-label { font-size: 14px !important; line-height: 1.35; }
body.editorial-develop .main { background: #f5f3ee; }
body.editorial-develop .shell { max-width: 1540px; }
body.editorial-develop .mast { display: none; }
body.editorial-develop .mast-logo { display: none; }
body.editorial-develop .mast-title { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(1.6rem, 2.2vw, 2.2rem); letter-spacing: -.04em; }
body.editorial-develop .mast .by { color: #785541; font-size: .76rem; }
body.editorial-develop .searchbar {
  border: 1px solid #d7d5cb;
  border-radius: 10px;
  background: #fffefa;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.editorial-develop .searchbar :is(input, select) { background: #fffefa; color: #24363e; }
body.editorial-develop .searchbar button { background: #a65439; color: #fff; }
body.editorial-develop .searchbar button:hover { background: #87432e; }
body.editorial-develop .navigation-context { color: #696560; }

/* Shared typography and cards across search, dictionary, themes and practice. */
body.editorial-develop #content .eyebrow { color: #91513b; letter-spacing: .14em; }
body.editorial-develop #content .title,
body.editorial-develop #content .section-title {
  color: #24363e;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -.035em;
}
body.editorial-develop #content .lead { color: #696560; }
body.editorial-develop #content .section-title { border-bottom-color: #deddd4; }
body.editorial-develop #content :is(.panel, .home-section, .stats-card, .toc, .list, .accordion, .empty, .tense-card, .topic-category-card, .dictionary-card) {
  border-color: #deddd4;
  background: #fffefa;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.editorial-develop #content :is(.panel, .home-section, .stats-card, .tense-card, .topic-category-card, .dictionary-card) { border-radius: 12px; }
body.editorial-develop #content :is(.panel, .home-section, .stats-card, .tense-card, .topic-category-card) h3 { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.025em; }
body.editorial-develop #content :is(.toc-row, .row, .recent-entry, .example, .stat-row) { border-bottom-color: #e8e6de; }
body.editorial-develop #content :is(.toc-row, .row, .quick-item, .topic-pill, .tense-card, .topic-category-card):hover { background: #f7f5f0; border-color: #cbbbad; }
body.editorial-develop #content .toc-no { color: #a65439; }
body.editorial-develop #content :is(.toc-name, .es, .quick-item b, .recent-entry b) { color: #24363e; }
body.editorial-develop #content .link { color: #a65439; }
body.editorial-develop #content :is(.chip, .alpha button, .topic-pill, .tag) { border-color: #d7d5cb; background: #fffefa; color: #60453b; }
body.editorial-develop #content :is(.chip, .alpha button, .topic-pill):hover { border-color: #a65439; background: #f7eee5; }
body.editorial-develop #content :is(.chip.active, .alpha button.active, .topic-pill.active) { border-color: #a65439; background: #a65439; color: #fff; }
body.editorial-develop #content :is(.quick, .why) { border-radius: 8px; box-shadow: none; }
body.editorial-develop #content .quick { border-left-color: #a65439; background: #f7eee5; }
body.editorial-develop #content .why { border-left-color: #a65439; background: #f8eee7; }
body.editorial-develop #content :is(.conj, .compare > div) { background: #fffefa; }
body.editorial-develop #content .conj :is(th, td) { border-bottom-color: #e8e6de; }

/* Dashboard: the same quiet chapter-cover treatment as lessons 4 and 5. */
body.editorial-develop #content .welcome-card {
  border: 1px solid #d9d2c6;
  border-top: 5px solid #a65439;
  border-radius: 14px;
  background: #eee9df;
  color: #24363e;
  box-shadow: none;
}
body.editorial-develop #content .welcome-card::after { color: rgba(166, 84, 57, .06); }
body.editorial-develop #content .welcome-card .eyebrow { color: #91513b; }
body.editorial-develop #content .welcome-card h2 { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.04em; }
body.editorial-develop #content .welcome-card p { color: #696560; }
body.editorial-develop #content .hero-btn { border-color: #a65439; border-radius: 8px; background: #a65439; color: #fff; box-shadow: none; }
body.editorial-develop #content .hero-btn.secondary { border-color: #d5c9bc; background: #fffefa; color: #87432e; }
body.editorial-develop #content .hero-btn:hover { transform: none; background: #87432e; color: #fff; }

/* Existing glass-theme rules use !important; the develop-only layer must
   explicitly win while retaining the page's established layout and content. */
body.editorial-develop #content :is(.page-intro-hero, .landing-hero, .practice-hero, .learning-hero, .focused-practice-head, .topic-hero, .topic-detail-heading, .books-hero, .translate-hero, .verb-detail-hero, .verb-center-banner, .dev-intro) {
  border: 1px solid #d9d2c6 !important;
  border-top: 5px solid #a65439 !important;
  border-radius: 14px !important;
  background: #eee9df !important;
  color: #24363e !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.editorial-develop #content :is(.page-intro-hero, .landing-hero, .practice-hero, .learning-hero, .focused-practice-head, .topic-hero, .topic-detail-heading, .books-hero, .translate-hero, .verb-detail-hero, .verb-center-banner, .dev-intro) :is(h1, h2, .title) {
  color: #24363e !important;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important;
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
}
body.editorial-develop #content :is(.page-intro-hero, .landing-hero, .practice-hero, .learning-hero, .focused-practice-head, .topic-hero, .topic-detail-heading, .books-hero, .translate-hero, .verb-detail-hero, .verb-center-banner, .dev-intro) :is(p, .lead) { color: #696560 !important; }
body.editorial-develop #content :is(.page-intro-hero, .landing-hero, .practice-hero, .learning-hero, .topic-hero, .books-hero, .translate-hero, .verb-detail-hero, .dev-intro) .eyebrow { color: #91513b !important; }
body.editorial-develop #content .landing-hero-editorial .landing-hero-photo {
  border: 1px solid #d9d2c6 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
body.editorial-develop #content .landing-hero-editorial .landing-module-summary {
  border: 1px solid #dfd8cc !important;
  border-left: 4px solid #a65439 !important;
  border-radius: 8px !important;
  background: #fffefa !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.editorial-develop #content .landing-primary > button,
body.editorial-develop #content .landing-continue,
body.editorial-develop #content .landing-more {
  border: 1px solid #deddd4 !important;
  border-top: 4px solid #a65439 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop #content .landing-primary > button:hover,
body.editorial-develop #content .landing-continue:hover { background: #f7f5f0 !important; box-shadow: none !important; transform: none !important; }
body.editorial-develop #content .landing-primary > button i { border-radius: 7px !important; background: #f1e7dc !important; color: #91513b !important; }
body.editorial-develop #content .landing-primary > button b,
body.editorial-develop #content .landing-continue b { color: #24363e !important; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important; }
body.editorial-develop #content .grammar-curriculum-note,
body.editorial-develop #content .grammar-sort-controls,
body.editorial-develop #content .grammar-source-note {
  border: 1px solid #deddd4 !important;
  border-radius: 9px !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row {
  border: 1px solid #deddd4 !important;
  border-left: 4px solid #a65439 !important;
  border-radius: 8px !important;
  background: #fffefa !important;
  box-shadow: none !important;
  transform: none !important;
}
body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row::before { display: none !important; }
body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row:hover { background: #f7f5f0 !important; border-color: #cbbbad !important; }
body.editorial-develop #content .grammar-topic-toc.grammar-overview :is(.toc-spanish, .toc-desc-es) { color: #a65439 !important; }
body.editorial-develop #content .grammar-sort-controls button.active { background: #a65439 !important; border-color: #a65439 !important; color: #fff !important; box-shadow: none !important; }
body.editorial-develop .searchbar button[type="submit"] { background: #a65439 !important; border-color: #a65439 !important; color: #fff !important; }
body.editorial-develop .searchbar button[type="submit"]:hover { background: #87432e !important; }

/* The grammatical reading view renders its own shell inside #content. */
body.editorial-develop #content .gr-preview { color: #24363e; }
body.editorial-develop #content .gr-toolbar,
body.editorial-develop #content .gr-index,
body.editorial-develop #content .gr-section {
  border-color: #deddd4 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .gr-hero {
  border: 1px solid #d9d2c6 !important;
  border-top: 5px solid #a65439 !important;
  border-radius: 14px !important;
  background: #eee9df !important;
  box-shadow: none !important;
}
body.editorial-develop #content .gr-hero h1,
body.editorial-develop #content .gr-part-heading,
body.editorial-develop #content .gr-index-heading { color: #24363e !important; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important; }
body.editorial-develop #content .gr-kicker { color: #91513b !important; }
body.editorial-develop #content .gr-scene { border-left-color: #a65439 !important; border-radius: 0 8px 8px 0 !important; background: #f7f5f0 !important; }
body.editorial-develop #content .gr-notice { border-left-color: #a65439 !important; background: #f7eee5 !important; color: #696560 !important; }
body.editorial-develop #content .gr-index-links a:hover { background: #f7eee5 !important; color: #91513b !important; }

/* Theme catalogue and reading cards keep the same restrained chapter palette. */
body.editorial-develop #content :is(.topic-level-selector, .rich-theme-principles, .topic-category-grid .topic-category-card, .theme-reader-layout .topic-section) {
  border-color: #deddd4 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .topic-level-selector button.active { border-color: #a65439 !important; background: #a65439 !important; color: #fff !important; box-shadow: none !important; }
body.editorial-develop #content .rich-theme-principles h2,
body.editorial-develop #content .topic-category-grid .topic-category-card h3 { color: #24363e !important; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important; }
body.editorial-develop #content .topic-category-grid .topic-category-card:hover { border-color: #cbbbad !important; background: #f7f5f0 !important; transform: none !important; }
body.editorial-develop #content .topic-level-selector small { color: #696560 !important; opacity: 1 !important; }
body.editorial-develop #content .spain-culture-hero.rich-theme-hero,
body.editorial-develop #content .practical-hub-hero,
body.editorial-develop #content .verb-intro {
  border: 1px solid #d9d2c6 !important;
  border-top: 5px solid #a65439 !important;
  border-radius: 14px !important;
  background: #eee9df !important;
  color: #24363e !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.spain-culture-hero.rich-theme-hero, .practical-hub-hero, .verb-intro) :is(h1, h2) {
  color: #24363e !important;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important;
  letter-spacing: -.035em !important;
}
body.editorial-develop #content :is(.spain-culture-hero.rich-theme-hero, .practical-hub-hero, .verb-intro) p { color: #696560 !important; }
body.editorial-develop #content .spain-culture-hero.rich-theme-hero .reference-spanish-title { color: #a65439 !important; }
body.editorial-develop #content .rich-theme-hero { grid-template-columns: minmax(0, 1fr) 92px minmax(205px, auto) !important; align-items: center; }
body.editorial-develop #content .rich-theme-illustration { width: 82px; height: 82px; justify-self: center; color: #a65439; }
body.editorial-develop #content .rich-theme-illustration svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.editorial-develop #content .rich-theme-illustration .illustration-disc { fill: #f4e6d5; }
body.editorial-develop #content .rich-theme-illustration .illustration-halo { fill: #fffefa; stroke: #e1cbbb; stroke-width: 1; }
body.editorial-develop #content .rich-theme-illustration svg > :not(.illustration-disc):not(.illustration-halo):not(.illustration-spark) { fill: none; stroke: #65765b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.editorial-develop #content .rich-theme-illustration .illustration-spark { fill: #c98f4b; }
body.editorial-develop #content .heritage-daily-verb h2 { display: flex; align-items: center; gap: 12px; }
body.editorial-develop #content .daily-verb-meaning-icon { width: 64px; height: 64px; flex: none; padding: 8px; border-radius: 16px; background: #f8ece2; color: #a65439; vertical-align: middle; }
body.editorial-develop #content .daily-verb-meaning-icon circle,
body.editorial-develop #content .daily-verb-meaning-icon rect,
body.editorial-develop #content .daily-verb-meaning-icon path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
 body.editorial-develop #content .rich-theme-hero { grid-template-columns: minmax(0, 1fr) 68px !important; align-items: start; }
 body.editorial-develop #content .rich-theme-hero > div { grid-column: 1; grid-row: 1; }
 body.editorial-develop #content .rich-theme-illustration { grid-column: 2; grid-row: 1; width: 62px; height: 62px; }
 body.editorial-develop #content .rich-theme-hero > aside { grid-column: 1 / -1; grid-row: 2; }
}
body.editorial-develop #content .theme-reader-layout :is(.topic-section, .theme-reader-index),
body.editorial-develop #content :is(.theme-practice-picker, .practical-hub-group) {
  border: 1px solid #deddd4 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .theme-practice-picker > h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .practical-hub-card { border-color: #deddd4 !important; background: #fffefa !important; box-shadow: none !important; }
body.editorial-develop #content .practical-hub-card:hover { background: #f7f5f0 !important; transform: none !important; box-shadow: none !important; }

/* Word and verb reference pages use the same paper-and-ink treatment. */
body.editorial-develop #content :is(.words-toolbar, .word-form-help, .verb-stats, .verb-tools, .verb-list, .verb-folder, .verb-irregularity-reference) {
  border: 1px solid #deddd4 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  color: #24363e !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.words-quick-filters, .verb-filter-groups, .verb-filter-groups section) {
  border: 1px solid #deddd4 !important;
  border-radius: 8px !important;
  background: #f7f5f0 !important;
  color: #24363e !important;
  box-shadow: none !important;
}
body.editorial-develop #content .words-quick-filters :is(legend, p),
body.editorial-develop #content .words-toolbar label { color: #60453b !important; }
body.editorial-develop #content :is(.words-toolbar, .verb-tools) :is(input, select) {
  border-color: #d7d5cb !important;
  background: #fffefa !important;
  color: #24363e !important;
}
body.editorial-develop #content :is(.word-search-submit, .verb-search button[type="submit"]) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fff !important;
}
body.editorial-develop #content .verb-filter-groups .verb-family { border-color: #d7d5cb !important; background: #fffefa !important; color: #60453b !important; }
body.editorial-develop #content .verb-filter-groups .verb-family:hover { border-color: #a65439 !important; background: #f7eee5 !important; }
body.editorial-develop #content .verb-filter-groups .verb-family.active { border-color: #a65439 !important; background: #a65439 !important; color: #fff !important; }
body.editorial-develop #content .verb-intro .eyebrow { color: #91513b !important; }
body.editorial-develop #content .verb-intro::after { color: rgba(166, 84, 57, .08) !important; }
body.editorial-develop #content :is(.verb-row-head, .word-line-head) { background: #eee9df !important; color: #696560 !important; }
body.editorial-develop #content :is(.verb-row, .word-line):hover { background: #f7f5f0 !important; }
body.editorial-develop #content .search-result-filters {
  border: 1px solid #deddd4 !important;
  border-radius: 10px !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .search-result-filters button {
  border-color: #deddd4 !important;
  border-radius: 7px !important;
  background: #f7f5f0 !important;
  color: #60453b !important;
  box-shadow: none !important;
}
body.editorial-develop #content .search-result-filters button:hover { border-color: #a65439 !important; background: #f7eee5 !important; }
body.editorial-develop #content .search-result-filters button.active { border-color: #a65439 !important; background: #a65439 !important; color: #fff !important; }
body.editorial-develop #content .search-result-filters button.active b { background: #fffefa !important; color: #a65439 !important; }
body.editorial-develop #content .search-result-group { border-color: #deddd4 !important; border-radius: 9px !important; background: #fffefa !important; box-shadow: none !important; }
body.editorial-develop #content .search-result-group > header { border-color: #deddd4 !important; background: #eee9df !important; }
body.editorial-develop #content > .title { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important; letter-spacing: -.035em !important; }

/* The administrator workspace keeps its dense layout, but shares the editorial palette. */
body.editorial-develop #content .dev-intro {
  border: 1px solid #d9d2c6 !important;
  border-top: 5px solid #a65439 !important;
  background: #eee9df !important;
  color: #24363e !important;
  box-shadow: none !important;
}
body.editorial-develop #content .dev-intro :is(h2, p) { color: #24363e !important; }
body.editorial-develop #content .dev-intro h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important; }
body.editorial-develop #content .dev-intro .eyebrow { color: #91513b !important; }
body.editorial-develop #content :is(.dev-score, .dev-workspace-nav, .dev-workspace-content, .dev-kpi) {
  border-color: #deddd4 !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .admin-chapter-nav button {
  border-color: #deddd4 !important;
  background: #fffefa !important;
  color: #60453b !important;
  box-shadow: none !important;
}
body.editorial-develop #content .admin-chapter-nav button.active {
  border-color: #a65439 !important;
  border-left-color: #a65439 !important;
  background: #a65439 !important;
  color: #fff !important;
}
body.editorial-develop #content .admin-chapter-nav button.active :is(span, small, strong) { color: #fff !important; }

/* Sitecontrole: primaire actie en gekozen beheersectie volgen het lichtgroene actiepalet. */
body.editorial-develop #content .site-audit-actions > button,
body.editorial-develop #content .dev-workspace-nav .admin-chapter-nav > button.active {
  border: 2px solid #7fa482 !important;
  background: #e4efe1 !important;
  color: #315b40 !important;
  box-shadow: none !important;
}
body.editorial-develop #content .site-audit-actions > button:hover:not(:disabled),
body.editorial-develop #content .dev-workspace-nav .admin-chapter-nav > button.active:hover {
  border-color: #416e4b !important;
  background: #d2e6cd !important;
  color: #254b32 !important;
}
body.editorial-develop #content .dev-workspace-nav .admin-chapter-nav > button.active :is(span, small, strong) {
  color: #315b40 !important;
}
body.editorial-develop.heritage-dark #content .site-audit-actions > button,
body.editorial-develop.heritage-dark #content .dev-workspace-nav .admin-chapter-nav > button.active {
  border-color: #8aae89 !important;
  background: #324b36 !important;
  color: #edf6ea !important;
}
body.editorial-develop.heritage-dark #content .site-audit-actions > button:hover:not(:disabled),
body.editorial-develop.heritage-dark #content .dev-workspace-nav .admin-chapter-nav > button.active:hover {
  background: #3d5940 !important;
}
body.editorial-develop.heritage-dark #content .dev-workspace-nav .admin-chapter-nav > button.active :is(span, small, strong) {
  color: #edf6ea !important;
}

/* Login belongs to the same family, without the translucent blue/purple layer. */
body.editorial-develop .login-screen { background: #f5f3ee; }
body.editorial-develop .login-shell { border: 1px solid #d9d2c6; border-radius: 18px; background: #fffefa; box-shadow: none; }
body.editorial-develop .login-welcome { background: #eee9df !important; color: #24363e !important; }
body.editorial-develop .login-welcome-copy h2 { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.045em; }
body.editorial-develop .login-preface { border-left-color: #a65439; background: #fffefa; box-shadow: none; }
body.editorial-develop .login-preface-heading strong { color: #24363e; }
body.editorial-develop .login-card { background: #fffefa; border-color: #deddd4; box-shadow: none; }
body.editorial-develop .login-card h1 { color: #24363e; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.035em; }
body.editorial-develop .login-card :is(input) { border-color: #d7d5cb; background: #fffefa; color: #24363e; }
body.editorial-develop .login-card button[type="submit"] { border-radius: 8px; background: #a65439; box-shadow: none; }
body.editorial-develop .login-card button[type="submit"]:hover { background: #87432e; }
body.editorial-develop .preface-language-switch { background: #f5f3ee; box-shadow: none; }

@media (max-width: 760px) {
  body.editorial-develop .login-shell { width: min(520px, 100%); min-height: 0; grid-template-columns: 1fr; }
  body.editorial-develop .login-welcome { display: none; }
  body.editorial-develop .login-form-brand > img,
  body.editorial-develop .login-form-brand .login-author { display: block !important; }
  body.editorial-develop .login-card { padding: 30px 25px; }
}

/* Keep controls usable at the existing mobile breakpoints. */
@media (max-width: 900px) {
  body.editorial-develop .app { grid-template-columns: 1fr; }
  body.editorial-develop .main { padding-inline: clamp(14px, 3vw, 25px); }
  body.editorial-develop .side { border-right: 0; }
}
@media (max-width: 700px) {
  body.editorial-develop .mast { display: none; }
  body.editorial-develop .mobile-header { background: #fffefa; border-bottom: 1px solid #deddd4; box-shadow: none; }
  body.editorial-develop .searchbar { border-radius: 8px; }
  body.editorial-develop #content .welcome-card { padding: 24px 20px; }
  body.editorial-develop #content .welcome-card h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* Uniform lesson palette: remove the remaining blue navigation and action states. */
body.editorial-develop {
  --cs-heading: #24363e;
  --cs-secondary: #696560;
  --cs-spanish-blue: #785541;
  --cs-spanish-red: #a65439;
}
body.editorial-develop :is(.searchbar button, .cs-language-flag.active, .cs-language-flag[aria-pressed="true"], .page-text-edit-button.primary, .page-controls .primary),
body.editorial-develop #content :is(.hero-btn:not(.secondary), .primary, .btn-primary, button.active, .chip.active, .alpha button.active, .topic-pill.active) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  background-image: none !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop :is(.searchbar button, .page-text-edit-button.primary):hover,
body.editorial-develop #content :is(.hero-btn:not(.secondary), .primary, .btn-primary):hover {
  border-color: #87432e !important;
  background: #87432e !important;
}
body.editorial-develop :is(.cs-language-flag, .standalone-home-link, .page-controls button),
body.editorial-develop #content :is(.link, .landing-module-summary span, .landing-module-summary a, .example-pagination button, .learning-workspace-continue strong, .sheet-pattern-summary h4) {
  color: #87432e !important;
}
body.editorial-develop #content :is(.quick, .learning-workspace-actions button, .search-result-filters button, .page-table-column-controls button) {
  border-color: #d9d2c6 !important;
  background: #f7eee5 !important;
  color: #60453b !important;
}
body.editorial-develop #content :is(.words-alpha button.active, .book-filterbar button.active, .topic-level-selector button.active, .relation-level-buttons button.active, .relation-categorybar button.active, .generic-filterbar button.active, .verb-family.active, .learning-workspace-actions button:hover) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.page-intro-hero, .practice-hero, .learning-hero, .landing-hero) :is(a, button):not(.primary):not(.active) {
  border-color: #d9c2b4 !important;
  color: #87432e !important;
}

/* The embedded tense cheat sheet is a reference spread in the same warm family. */
body.editorial-develop #content :is(.cheatsheet-visual-head, .cheatsheet-poster, .cheatsheet-poster-intro) {
  background: #eee9df !important;
  background-image: none !important;
  border-color: #d9d2c6 !important;
  box-shadow: none !important;
}
body.editorial-develop #content .cheatsheet-poster {
  border-top: 5px solid #a65439 !important;
  color: #24363e !important;
}
body.editorial-develop #content .cheatsheet-poster-intro {
  background: #fffefa !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.cheatsheet-poster-form, .tense-cheat-card, .sheet-notes, .sheet-pattern-summary, .sheet-reading-lines, .tense-cheat-command-card, .tense-cheat-command-note, .tense-cheat-irregular-section) {
  border-color: #d9d2c6 !important;
  background: #fffefa !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.tense-cheat-card h4, .tense-cheat-command-card h4, .sheet-notes h4) {
  background: #f7eee5 !important;
  background-image: none !important;
  color: #24363e !important;
}
body.editorial-develop #content .cheatsheet-poster .tense-cheat-card h4 i {
  background: #ead6c6 !important;
  color: #87432e !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.poster-ending-table thead th, .tense-cheat-command-card thead th, .sheet-notes-table thead th) {
  border-color: #d9d2c6 !important;
  background: #eee9df !important;
  color: #24363e !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.tense-cheat-card th, .tense-cheat-card td, .sheet-notes-table th, .sheet-notes-table td) {
  border-color: #e8e2d7 !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.spanish-ending, .spanish-inline, .spanish-example, .spanish-table-text, .spanish-table-text b, .sheet-reading-lines b, .sheet-irregular-example-list b, .tense-formula, .verb-form-es),
body.editorial-develop #content .cheatsheet-poster .tense-cheat-card-grid.sheet-grid.poster-sheet-grid .tense-cheat-card table tbody td :is(b.spanish-ending, .spanish-ending),
body.editorial-develop #content .cheatsheet-poster .sheet-notes-table.sheet-notes-table-compact tbody th strong {
  color: var(--language-es) !important;
}
body.editorial-develop #content .cheatsheet-poster .verb-form-nl {
  color: #696560 !important;
}
body.editorial-develop #content .cheatsheet-poster :is(.sheet-card-deviation b, .sheet-pattern-summary h4) {
  color: #87432e !important;
}

/* Final contrast pass for navigation and the poster's striped tables. */
body.editorial-develop .page-controls button[data-steer-menu] {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fffefa !important;
}
body.editorial-develop .page-controls button[data-steer-menu] :is(span, b) {
  color: #fffefa !important;
}
body.editorial-develop .side .nav button.nav-group-label,
body.editorial-develop .side .nav .nav-group-label {
  color: #87432e !important;
}
body.editorial-develop .side .nav button.nav-group-label.active,
body.editorial-develop .side .nav button.active {
  color: #24363e !important;
  background: #f7eee5 !important;
}
body.editorial-develop #content .landing-primary > button :is(span, small),
body.editorial-develop #content .landing-continue :is(span, small) {
  color: #87432e !important;
}
body.editorial-develop #content .cheatsheet-mobile-zoom-hint button {
  border-color: #d9c2b4 !important;
  background: #fffefa !important;
  color: #87432e !important;
}
body.editorial-develop #content .cheatsheet-poster .spanish-ending {
  border-color: #d7aa97 !important;
  background: #fffefa !important;
}
body.editorial-develop #content .cheatsheet-poster .tense-cheat-card tbody tr:nth-child(even) :is(th, td) {
  background: #f7f5f0 !important;
}

/* Secondary controls and small labels should not reintroduce blue or violet. */
body.editorial-develop #content .grammar-sort-controls button:not(.active),
body.editorial-develop .page-text-toolbar button[data-page-block-edit],
body.editorial-develop .page-text-toolbar button[data-page-text-translate] {
  border-color: #d9d2c6 !important;
  background: #fffefa !important;
  color: #87432e !important;
}
body.editorial-develop #content .topic-level-selector > div > span,
body.editorial-develop #content .rich-theme-principles > div > span {
  color: #91513b !important;
}
body.editorial-develop .page-controls button[data-steer-level][aria-pressed="true"],
body.editorial-develop #content .theme-word-actions button[aria-pressed="true"],
body.editorial-develop #content .theme-word-actions button[data-theme-word-view="practice"]:not([aria-pressed]) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .theme-word-actions button[aria-pressed="false"],
body.editorial-develop #content .theme-word-actions button[data-theme-word-view="list"]:not([aria-pressed]),
body.editorial-develop #content .theme-word-edit {
  border-color: #d9c2b4 !important;
  background: #fffefa !important;
  color: #87432e !important;
}
body.editorial-develop #content .local-level-controls :is(strong, label) {
  color: #24363e !important;
}
body.editorial-develop #content .local-level-controls {
  border-color: #d9d2c6 !important;
  background: #fffefa !important;
  color: #24363e !important;
}
body.editorial-develop #content .local-level-controls small {
  color: #696560 !important;
}

/* Spanish Heritage home: sunny image banner and four evenly sized quick-launch cards. */
body.editorial-develop #content .heritage-home-hero {
  position: relative;
  min-height: 0 !important;
  height: clamp(205px, 18vw, 250px);
  overflow: hidden;
  border: 1px solid #ded4c4 !important;
  border-top: 0 !important;
  border-radius: 13px !important;
  background: #eee5d8 !important;
  box-shadow: none !important;
}
body.editorial-develop #content .heritage-home-hero .landing-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
body.editorial-develop #content .heritage-home-hero .landing-hero-photo img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}
body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
  position: absolute;
  left: 22px;
  bottom: 18px;
  max-width: min(520px, calc(100% - 44px));
  padding: 13px 20px 14px;
  border-left: 4px solid #b85f43;
  border-radius: 8px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 5px 22px rgba(51, 44, 40, .12);
}
body.editorial-develop #content .heritage-home-hero .eyebrow { margin: 0; color: #94442f !important; }
body.editorial-develop #content .heritage-home-hero h1 { margin: 5px 0 0; color: #332c28 !important; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; }
body.editorial-develop #content .heritage-home-hero .landing-hero-copy > p { margin: 2px 0 0; color: #51443d !important; font: 600 18px/1.25 Georgia, serif; }
body.editorial-develop #content .heritage-home-hero .landing-hero-meta { margin-top: 9px; }
body.editorial-develop #content .heritage-home-hero .landing-level { padding: 5px 9px; border-color: #ded4c4; border-radius: 999px; background: #fffdf9; color: #51443d; font-size: 12px; }

body.editorial-develop #content .heritage-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 15px 0 24px;
}
body.editorial-develop #content .heritage-quick-tile {
  display: flex;
  min-width: 0;
  min-height: 195px;
  flex-direction: column;
  padding: 20px 21px 18px;
  border: 1px solid #e4dbcc;
  border-radius: 12px;
  color: #332c28;
  box-shadow: 0 5px 16px rgba(51, 44, 40, .045);
}
body.editorial-develop #content .heritage-quick-tile.tile-vocabulary { background: #f6f0de; }
body.editorial-develop #content .heritage-quick-tile.tile-grammar { background: #f8e9e5; }
body.editorial-develop #content .heritage-quick-tile.tile-practice { background: #fbf1dc; }
body.editorial-develop #content .heritage-quick-tile.tile-verbs { background: #e8f0ed; }
body.editorial-develop #content .heritage-quick-tile > i { color: #667452; font: 600 29px/1 Georgia, serif; font-style: normal; }
body.editorial-develop #content .heritage-quick-tile.tile-grammar > i { color: #b93d37; }
body.editorial-develop #content .heritage-quick-tile.tile-practice > i { color: #db7b35; }
body.editorial-develop #content .heritage-quick-tile.tile-verbs > i { color: #577b78; }
body.editorial-develop #content .heritage-quick-tile h2 { margin: 11px 0 0; color: #332c28; font: 600 22px/1.15 "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .heritage-quick-tile p { margin: 6px 0 0; color: #746a62; font-size: 14px; line-height: 1.4; }
body.editorial-develop #content .heritage-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 15px; }
body.editorial-develop #content .heritage-quick-actions button { min-height: 34px; padding: 6px 10px; border: 1px solid rgba(71, 51, 53, .2); border-radius: 999px; background: rgba(255, 253, 249, .68); color: #51443d; font-size: 12px; font-weight: 700; cursor: pointer; }
body.editorial-develop #content .heritage-quick-actions button:hover { background: #fffdf9; }
body.editorial-develop #content .heritage-quick-actions button span { margin-left: 3px; color: #b85f43; }
/* Dashboard panels mirror the approved Spanish Heritage preview while using
   live account progress and recently viewed words from the existing app. */
body.editorial-develop #content .heritage-overview-grid,
body.editorial-develop #content .heritage-daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
body.editorial-develop #content .heritage-overview-card,
body.editorial-develop #content .heritage-daily-card { min-width: 0; padding: 22px 24px; border: 1px solid #e4dbcc; border-radius: 12px; background: #fffefa; color: #332c28; box-shadow: 0 5px 16px rgba(51, 44, 40, .045); }
body.editorial-develop #content .heritage-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body.editorial-develop #content .heritage-panel-heading h2 { margin: 0; color: #332c28; font: 600 23px/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .heritage-panel-heading button { flex: 0 0 auto; border: 0; background: transparent; color: #a65439; font-size: 14px; font-weight: 700; cursor: pointer; }
body.editorial-develop #content .heritage-progress-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; }
body.editorial-develop #content .heritage-progress-ring { display: grid; width: 142px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#667452 var(--progress), #eee5d8 0); }
body.editorial-develop #content .heritage-progress-ring span { display: grid; width: 72%; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #fffefa; color: #332c28; font: 700 30px/1 "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .heritage-progress-details { min-width: 0; }
body.editorial-develop #content .heritage-progress-details > b { display: block; margin-bottom: 9px; color: #51443d; font-size: 15px; }
body.editorial-develop #content .heritage-progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #eee5d8; }
body.editorial-develop #content .heritage-progress-track i { display: block; height: 100%; border-radius: inherit; background: #667452; }
body.editorial-develop #content .heritage-progress-details > small { display: block; margin-top: 8px; color: #746a62; font-size: 13px; }
body.editorial-develop #content .heritage-progress-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 17px; color: #746a62; font-size: 14px; }
body.editorial-develop #content .heritage-progress-facts b { color: #a65439; font-size: 17px; }
body.editorial-develop #content .heritage-recent-list { display: grid; }
body.editorial-develop #content .heritage-recent-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 58px; padding: 7px 0; border: 0; border-bottom: 1px solid #eee8de; background: transparent; color: #332c28; text-align: left; cursor: pointer; }
body.editorial-develop #content .heritage-recent-item:last-child { border-bottom: 0; }
body.editorial-develop #content .heritage-recent-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #758b74; color: #fffefa; font-size: 17px; font-weight: 750; }
body.editorial-develop #content .heritage-recent-item:nth-child(2n) .heritage-recent-icon { background: #c17a4b; }
body.editorial-develop #content .heritage-recent-item > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
body.editorial-develop #content .heritage-recent-item b { overflow-wrap: anywhere; color: #332c28; font-size: 15px; }
body.editorial-develop #content .heritage-recent-item small { overflow-wrap: anywhere; color: #746a62; font-size: 13px; }
body.editorial-develop #content .heritage-recent-arrow { color: #a65439; font-size: 18px; }
body.editorial-develop #content .heritage-recent-item:hover b { color: #a65439; }
body.editorial-develop #content .heritage-empty-state { margin: 2px 0; padding: 15px 0; color: #746a62; font-size: 15px; }
body.editorial-develop #content .heritage-daily-grid { margin-bottom: 24px; }
body.editorial-develop #content .heritage-daily-card { display: flex; min-height: 330px; flex-direction: column; padding: 24px 26px; }
body.editorial-develop #content .heritage-daily-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #a65439; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.editorial-develop #content .heritage-daily-kicker span { padding: 5px 9px; border-radius: 999px; background: #f7eee5; color: #a65439; font-size: 11px; letter-spacing: .05em; }
body.editorial-develop #content .heritage-daily-card h2 { margin: 17px 0 4px; color: #a65439; font: 650 clamp(25px, 2.1vw, 32px)/1.12 "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .heritage-daily-card > p { margin: 4px 0 17px; color: #696560; font-size: 16px; line-height: 1.5; }
body.editorial-develop #content .heritage-daily-grammar blockquote { display: grid; gap: 5px; margin: 0 0 18px; padding: 17px 19px; border: 1px solid #eee5d8; border-radius: 10px; background: #fbf7ef; }
body.editorial-develop #content .heritage-daily-grammar blockquote b { color: #a65439; font: 600 18px/1.3 "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body.editorial-develop #content .heritage-daily-grammar blockquote small { color: #746a62; font-size: 14px; }
body.editorial-develop #content .heritage-daily-card > button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 12px; margin-top: auto; padding: 10px 15px; border: 0; border-radius: 8px; background: #a65439; color: #fffefa; font-size: 15px; font-weight: 750; cursor: pointer; }
body.editorial-develop #content .heritage-daily-card > button:hover { background: #87432e; }
body.editorial-develop #content .heritage-daily-verb h2 { margin-bottom: 15px; text-transform: lowercase; }
body.editorial-develop #content .heritage-daily-verb table { width: 100%; margin-bottom: 14px; border-collapse: collapse; font-size: 15px; }
body.editorial-develop #content .heritage-daily-verb th,
body.editorial-develop #content .heritage-daily-verb td { padding: 7px 9px; border: 1px solid #eee8de; text-align: left; }
body.editorial-develop #content .heritage-daily-verb th { color: #696560; font-weight: 500; }
body.editorial-develop #content .heritage-daily-verb td { color: #455849; font-weight: 750; }
@media (max-width: 980px) {
  body.editorial-develop #content .heritage-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  body.editorial-develop #content .heritage-home-hero { height: 205px; }
  body.editorial-develop #content .heritage-home-hero .landing-hero-copy { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 11px 14px; }
  body.editorial-develop #content .heritage-home-hero h1 { font-size: 30px; }
  body.editorial-develop #content .heritage-quick-grid { grid-template-columns: 1fr; gap: 10px; }
  body.editorial-develop #content .heritage-quick-tile { min-height: 165px; }
}

/* On phones, keep the welcome text below the image instead of over it. */
@media (max-width: 700px) {
  body.editorial-develop #content .heritage-home-hero {
    height: auto !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-photo {
    position: relative !important;
    inset: auto !important;
    height: 170px !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    text-align: center !important;
    text-shadow: none !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-meta {
    align-items: center !important;
    justify-content: center !important;
  }
}

body.editorial-develop .searchbar .heritage-theme-toggle {
  flex: 0 0 40px;
  width: 40px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #ded4c4;
  border-radius: 9px;
  background: #f7f0e6;
  color: #745b4d;
  font-size: 19px;
  line-height: 1;
}
body.editorial-develop.heritage-dark { --paper: #24231f; --white: #2c2a26; --soft: #34312c; --line: #4b463e; --muted: #c4baad; }
body.editorial-develop.heritage-dark .main { background: #24231f; color: #eee6da; }
body.editorial-develop.heritage-dark .searchbar { border-color: #4b463e; background: #302d28; }
body.editorial-develop.heritage-dark .searchbar :is(input, select) { background: #302d28; color: #f0e8dc; }
body.editorial-develop.heritage-dark .searchbar .heritage-theme-toggle { border-color: #655649; background: #40372f; color: #f1c77f; }
body.editorial-develop.heritage-dark #content { color: #eee6da; }
body.editorial-develop.heritage-dark #content :is(h1, h2, h3, h4, .title, .section-title, .section-title h2) { color: #f3ecdf !important; }
body.editorial-develop.heritage-dark #content :is(p, small, .lead, .muted, label, .note, .navigation-context) { color: #c4baad !important; }
body.editorial-develop.heritage-dark #content :is(.panel, .card, .toc, .list, .word-card, .accordion, .dictionary-card, .practice-mode-card, .landing-primary > button, .landing-continue, .landing-more, .reference-search-landing, .grammar-topic-toc, .progress-fold, .progress-fold-body, .page-intro-hero, .practice-hero, .learning-hero, .topic-hero, .books-hero, .translate-hero, .verb-detail-hero, .verb-center-banner, .dev-intro) {
  border-color: #4b463e !important;
  background: #302d28 !important;
  color: #eee6da !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content :is(input, select, textarea) { border-color: #5a5147 !important; background: #24231f !important; color: #f0e8dc !important; }
body.editorial-develop.heritage-dark #content :is(th, td) { border-color: #4b463e !important; color: #e8dfd2 !important; }
body.editorial-develop.heritage-dark #content a { color: #e09a78; }
body.editorial-develop.heritage-dark #content .heritage-home-hero { background: #302d28 !important; }
body.editorial-develop.heritage-dark #content .heritage-home-hero .landing-hero-copy { background: rgba(43, 39, 34, .94); }
body.editorial-develop.heritage-dark #content .heritage-home-hero h1 { color: #f3ecdf !important; }
body.editorial-develop.heritage-dark #content .heritage-home-hero .landing-hero-copy > p { color: #e4d7c5 !important; }
body.editorial-develop.heritage-dark #content .heritage-quick-tile { border-color: #4b463e; color: #eee6da; }
body.editorial-develop.heritage-dark #content .heritage-quick-tile:is(.tile-vocabulary, .tile-grammar, .tile-practice, .tile-verbs) { background: #302d28; }
body.editorial-develop.heritage-dark #content .heritage-quick-tile h2 { color: #f3ecdf !important; }
body.editorial-develop.heritage-dark #content .heritage-quick-actions button { border-color: #5a5147; background: #3b3731; color: #f0e8dc; }
body.editorial-develop.heritage-dark #content .heritage-quick-actions button:hover { background: #4a4037; }
body.editorial-develop.heritage-dark #content :is(.heritage-overview-card, .heritage-daily-card) { border-color: #4b463e; background: #302d28; color: #eee6da; }
body.editorial-develop.heritage-dark #content .heritage-panel-heading h2,
body.editorial-develop.heritage-dark #content .heritage-recent-item b,
body.editorial-develop.heritage-dark #content .heritage-progress-ring span { color: #f3ecdf !important; }
body.editorial-develop.heritage-dark #content .heritage-progress-ring span { background: #302d28; }
body.editorial-develop.heritage-dark #content .heritage-progress-track { background: #4b463e; }
body.editorial-develop.heritage-dark #content .heritage-progress-details > b { color: #e8dfd2; }
body.editorial-develop.heritage-dark #content .heritage-recent-item { border-bottom-color: #4b463e; color: #eee6da; }
body.editorial-develop.heritage-dark #content :is(.heritage-recent-item small, .heritage-empty-state) { color: #c4baad !important; }
body.editorial-develop.heritage-dark #content .heritage-daily-kicker span { background: #40372f; }
body.editorial-develop.heritage-dark #content .heritage-daily-grammar blockquote { border-color: #4b463e; background: #39342e; }
body.editorial-develop.heritage-dark #content .heritage-daily-grammar blockquote small { color: #c4baad; }
body.editorial-develop.heritage-dark #content .heritage-daily-verb :is(th, td) { border-color: #4b463e; color: #e8dfd2; }
@media (max-width: 980px) {
  body.editorial-develop #content :is(.heritage-overview-grid, .heritage-daily-grid) { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  body.editorial-develop #content :is(.heritage-overview-card, .heritage-daily-card) { padding: 18px 16px; }
  body.editorial-develop #content .heritage-progress-layout { grid-template-columns: 100px minmax(0, 1fr); gap: 15px; }
  body.editorial-develop #content .heritage-progress-ring { width: 96px; }
  body.editorial-develop #content .heritage-progress-ring span { font-size: 22px; }
  body.editorial-develop #content .heritage-daily-card { min-height: 0; }
}
body.editorial-develop.heritage-dark #content .back { color: #e09a78 !important; }

/* Bring the navigation closer to the roomy Heritage menu shown in the preview. */
body.editorial-develop .side .nav button:not(.nav-group-label) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 10px 13px !important;
  border-radius: 12px !important;
  font-size: clamp(17px, 1.12vw, 20px) !important;
  line-height: 1.35 !important;
  font-weight: 570 !important;
}
body.editorial-develop .side .nav button[data-page]:not(.nav-disclosure-item)::before {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  margin: 0 !important;
  border: 1px solid #ded5c7 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #605d55 !important;
  font: 500 19px/1 Inter, system-ui, sans-serif !important;
}
body.editorial-develop .side .nav button[data-page="home"]::before { content: "⌂" !important; }
body.editorial-develop .side .nav button[data-page="books"]::before { content: "▤" !important; }
body.editorial-develop .side .nav button[data-page="grammar"]::before { content: "Aa" !important; font-size: 16px !important; }
body.editorial-develop .side .nav button[data-page="topics"]::before { content: "◫" !important; }
body.editorial-develop .side .nav button[data-page="verbs"]::before,
body.editorial-develop .side .nav button[data-page="verbquick"]::before,
body.editorial-develop .side .nav button[data-page="tenses"]::before { content: "↻" !important; }
body.editorial-develop .side .nav button[data-page="cheatsheet"]::before { content: "▱" !important; }
body.editorial-develop .side .nav button[data-page="flashcards"]::before { content: "▱" !important; }
body.editorial-develop .side .nav button[data-page="trainer"]::before,
body.editorial-develop .side .nav button[data-page="practiceverbs"]::before,
body.editorial-develop .side .nav button[data-page="practicevocabulary"]::before { content: "✦" !important; }
body.editorial-develop .side .nav button[data-page="search"]::before,
body.editorial-develop .side .nav button[data-page="words"]::before { content: "⌕" !important; }
body.editorial-develop .side .nav button[data-page="recent"]::before { content: "▥" !important; }
body.editorial-develop .side .nav button[data-page="messages"]::before { content: "✉" !important; }
body.editorial-develop .side .nav button[data-page="translate"]::before { content: "文" !important; }
body.editorial-develop .side .nav button[data-page="handbooks"]::before { content: "i" !important; }
body.editorial-develop .side .nav button[data-page="sources"]::before { content: "◉" !important; }
body.editorial-develop .side .nav button[data-page]:not(.nav-disclosure-item).active::before,
body.editorial-develop .side .nav button[data-page]:not(.nav-disclosure-item)[aria-current="page"]::before { background: #e8e1d2 !important; color: #24332d !important; }
body.editorial-develop .side .nav button.nav-group-label {
  min-height: 42px !important;
  margin: 16px 10px 7px !important;
  padding: 7px 10px !important;
  color: #a65439 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .15em !important;
}
body.editorial-develop .side .nav .nav-disclosure-heading-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-heading {
  flex: 1;
  width: auto !important;
  justify-content: flex-start !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #514e4a !important;
  font-size: clamp(17px, 1.12vw, 20px) !important;
  font-weight: 570 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: capitalize !important;
  cursor: pointer;
}
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-heading::after { display: none !important; content: none !important; }
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-heading:hover { border-color: #e7e4dc !important; background: #f7f5f0 !important; color: #24363e !important; }
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-heading.active,
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-heading[aria-current="page"] { border-color: #e7d9cb !important; border-left: 3px solid #a65439 !important; background: #f7eee5 !important; color: #24363e !important; }
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-toggle {
  width: 40px !important;
  min-height: 40px !important;
  margin: 12px 6px 4px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #6b6259 !important;
  font-size: 22px !important;
}
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-toggle:hover { background: #f2eadf !important; }
body.editorial-develop .side .nav .nav-disclosure.is-open .nav-disclosure-toggle { transform: rotate(180deg); }
body.editorial-develop .side .nav .nav-disclosure-heading-row .nav-disclosure-toggle::after { display: none !important; content: none !important; }
body.editorial-develop .side .nav .nav-disclosure-panel { padding: 4px 0 9px 22px !important; }
body.editorial-develop .side .nav .nav-disclosure-item,
body.editorial-develop .side .nav .nav-homework-link {
  min-height: 44px !important;
  padding: 10px 12px !important;
  color: #5e5a54 !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 450 !important;
}
body.editorial-develop .side .nav .nav-homework-subheading { font-size: 13px !important; letter-spacing: .13em !important; }
body.editorial-develop .side .nav .nav-disclosure-item::before { content: none !important; display: none !important; }
body.editorial-develop .side .nav .nav-disclosure-item.active,
body.editorial-develop .side .nav .nav-disclosure-item[aria-current="page"] { background: #eee7da !important; color: #24332d !important; }
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-heading-row .nav-disclosure-toggle { color: #e8dfd2 !important; }
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-item,
body.editorial-develop.heritage-dark .side .nav .nav-homework-link { color: #ddd2c4 !important; }

/* Keep the develop menu aligned with the approved ivory preview. The shared
   legacy stylesheet marks these headings red and uppercase with !important. */
body.editorial-develop .side .nav .nav-group-label:not(.nav-group-direct) {
  min-height: 28px !important;
  margin: 17px 10px 6px !important;
  padding: 4px 10px !important;
  color: #91513b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}
body.editorial-develop .side .nav button.nav-group-direct {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 0 8px !important;
  padding: 3px 13px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #514e4a !important;
  font-size: 18px !important;
  font-weight: 570 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

/* Make Spanish and Dutch visibly distinct without changing the underlying copy. */
body.editorial-develop #content :is(.spanish-inline, .spanish-sentence, .word-line .es, .word-row .es, .word-table .es, .word-card-spanish, .dictionary-meaning h3[lang="es"], [lang="es"].page-text-spanish) {
  color: var(--language-es) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: normal !important;
}
body.editorial-develop #content :is(.word-line .nl, .word-row .nl, .word-table .nl, .page-text-dutch, .verb-form-nl, .dictionary-meaning p, .translation) {
  color: #696560 !important;
  font-family: Inter, "Avenir Next", system-ui, sans-serif !important;
  font-weight: 450 !important;
  letter-spacing: 0 !important;
}
body.editorial-develop #content .dictionary-conjugations .dictionary-person-translation {
  display: block;
  margin: -2px 0 4px;
  color: #a65439;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}
body.editorial-develop.heritage-dark #content .dictionary-conjugations .dictionary-person-translation { color: #d08a6d; }
/* The learner dictionary was one of the remaining legacy-blue surfaces. Keep
   its controls and conjugation cards within the approved warm Heritage palette. */
body.editorial-develop #content .dictionary-page {
  --dict-blue: #a65439 !important;
  --dict-ink: #29352d !important;
  --dict-border: #e4d9ca !important;
  --dict-soft: #f6efe4 !important;
  color: #514e4a !important;
}
body.editorial-develop #content .dictionary-page :is(h1, h2, h3, h4) { color: #29352d !important; }
body.editorial-develop #content .dictionary-page .dictionary-hero {
  border-color: #e4d9ca !important;
  background: linear-gradient(120deg, #fbf7ef, #f6efe4) !important;
}
body.editorial-develop #content .dictionary-page .dictionary-number { background: #f5e8d9 !important; color: #a65439 !important; }
body.editorial-develop #content .dictionary-page :is(.dictionary-example, .dictionary-related) { border-color: #e7dfd3 !important; }
body.editorial-develop #content .dictionary-page :is(.dictionary-small, .dictionary-missing, .dictionary-example p, .dictionary-example small, .dictionary-related small) { color: #777269 !important; }
body.editorial-develop #content .dictionary-page :is(button, a, input, select):focus-visible,
body.editorial-develop #content .dictionary-practice button:focus-visible { outline-color: #a65439 !important; }
body.editorial-develop #content .dictionary-practice {
  --dict-blue: #a65439 !important;
  --dict-ink: #29352d !important;
  --dict-border: #e4d9ca !important;
  --dict-soft: #f6efe4 !important;
}
body.editorial-develop.heritage-dark #content .dictionary-page {
  --dict-blue: #d08a6d !important;
  --dict-ink: #eee7dc !important;
  --dict-border: #51483e !important;
  --dict-soft: #39352e !important;
  color: #ddd2c4 !important;
}
body.editorial-develop.heritage-dark #content .dictionary-page .dictionary-hero { background: linear-gradient(120deg, #302d28, #39352e) !important; }

/* Remove legacy blue panels and translucent/glass treatments throughout develop. */
body.editorial-develop #content *,
body.editorial-develop .searchbar,
body.editorial-develop .side,
body.editorial-develop .mobile-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop #content :is([class*="glass" i], .glass, .glass-panel, .glass-card, .glassmorphism) {
  border-color: #deddd4 !important;
  background: #fffefa !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop #content :is(.rich-level-progression, .rich-relation-reference, .tense-choice, .tense-form-card, .tense-memory-card, .tense-contrast, .tense-context-example, .tense-dutch-example) {
  border-color: #deddd4 !important;
  border-left-color: #a65439 !important;
  background: #f7eee5 !important;
  background-image: none !important;
  color: #60453b !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.rich-level-progression, .rich-relation-reference, .tense-choice, .tense-form-card, .tense-memory-card, .tense-contrast, .tense-context-example, .tense-dutch-example) :is(h1, h2, h3, h4, p, span, b, strong, dt, dd) { color: #60453b !important; }
body.editorial-develop #content :is(.rich-level-progression > span, .rich-relation-reference a, .rich-relation-reference button, .rich-level-progression dt) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fffefa !important;
}
body.editorial-develop.heritage-dark #content :is([class*="glass" i], .glass, .glass-panel, .glass-card, .glassmorphism,
  .rich-level-progression, .rich-relation-reference, .tense-choice, .tense-form-card, .tense-memory-card, .tense-contrast, .tense-context-example, .tense-dutch-example) {
  border-color: #4b463e !important;
  background: #302d28 !important;
  background-image: none !important;
  color: #e8dfd2 !important;
}
body.editorial-develop.heritage-dark #content :is(.rich-level-progression, .rich-relation-reference, .tense-choice, .tense-form-card, .tense-memory-card, .tense-contrast, .tense-context-example, .tense-dutch-example) :is(h1, h2, h3, h4, p, span, b, strong, dt, dd) { color: #e8dfd2 !important; }
body.editorial-develop.heritage-dark #content :is(.rich-level-progression > span, .rich-relation-reference a, .rich-relation-reference button, .rich-level-progression dt) { background: #a65439 !important; color: #fffefa !important; }

/* Keep the distinct language color contrast readable in dark mode too. */
body.editorial-develop.heritage-dark #content :is(.spanish-inline, .spanish-sentence, .word-line .es, .word-row .es, .word-table .es, .word-card-spanish, .dictionary-meaning h3[lang="es"], [lang="es"].page-text-spanish) { color: #e09a78 !important; }
body.editorial-develop.heritage-dark #content :is(.word-line .nl, .word-row .nl, .word-table .nl, .page-text-dutch, .verb-form-nl, .dictionary-meaning p, .translation) { color: #c4baad !important; }

/* Non-grammar disclosure headings were still inheriting the legacy red menu. */
body.editorial-develop .side .nav .nav-disclosure > button.nav-disclosure-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 0 4px !important;
  padding: 5px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #514e4a !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: capitalize !important;
}
body.editorial-develop .side .nav .nav-disclosure > button.nav-disclosure-heading::before {
  display: grid !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  margin: 0 !important;
  border: 1px solid #ded5c7 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #605d55 !important;
  font: 500 19px/1 Inter, system-ui, sans-serif !important;
}
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="verbs"] > button.nav-disclosure-heading::before { content: "↻" !important; }
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="trainer"] > button.nav-disclosure-heading::before { content: "✦" !important; }
body.editorial-develop .side .nav .nav-disclosure:is([data-nav-disclosure="words"], [data-nav-disclosure="dictionary"]) > button.nav-disclosure-heading::before { content: "⌕" !important; }
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="gentehoy1"] > button.nav-disclosure-heading::before { content: "▤" !important; }
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="homework"] > button.nav-disclosure-heading::before { content: "✓" !important; }
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="handbooks"] > button.nav-disclosure-heading::before,
body.editorial-develop .side .nav .nav-disclosure[data-nav-disclosure="information"] > button.nav-disclosure-heading::before { content: none !important; display: none !important; }
body.editorial-develop .side .nav button[data-page="admin"]::before { content: "⚙" !important; }
body.editorial-develop .side .nav button[data-page="recent"]::before { content: "↗" !important; }
body.editorial-develop .side .nav .nav-disclosure-panel {
  border: 1px solid #e4d9ca !important;
  border-left: 3px solid #d4b89f !important;
  border-radius: 14px !important;
  background: #fbf7ef !important;
  background-color: #fbf7ef !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.editorial-develop .side .nav .nav-disclosure.is-open .nav-disclosure-panel {
  border: 1px solid #e4d9ca !important;
  border-left: 3px solid #d4b89f !important;
  border-radius: 14px !important;
  background: #fbf7ef !important;
  background-color: #fbf7ef !important;
  background-image: none !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel :is(button, a) {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: #5e5a54 !important;
  box-shadow: none !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel :is(button, a):hover,
body.editorial-develop .side .nav .nav-disclosure-panel :is(button, a):focus-visible {
  border-color: #e7d9cb !important;
  background: #f7eee5 !important;
  color: #24363e !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel :is(button, a).active,
body.editorial-develop .side .nav .nav-disclosure-panel :is(button, a)[aria-current="page"] {
  border-left: 3px solid #a65439 !important;
  background: #eee7da !important;
  color: #24363e !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel .nav-homework-subheading {
  color: #91513b !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel .nav-homework-level + .nav-homework-level {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #e7dfd3 !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel .nav-homework-subheading {
  margin: 8px 10px 3px !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: .1em !important;
  line-height: 1.3 !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel .nav-homework-link,
body.editorial-develop .side .nav .nav-disclosure-panel .nav-practice {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  text-align: left !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel {
  border-color: #51483e !important;
  border-left-color: #8c6852 !important;
  background: #302d28 !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel .nav-homework-level + .nav-homework-level { border-top-color: #51483e !important; }
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button, a) { color: #ddd2c4 !important; }
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button, a):hover,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button, a):focus-visible,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button, a).active,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button, a)[aria-current="page"] {
  border-color: #625546 !important;
  background: #39352e !important;
  color: #f0e8dc !important;
}
body.editorial-develop #content :is(.action-btn, .primary, .btn-primary, .translate-submit) {
  border-color: #a65439 !important;
  background: #a65439 !important;
  background-image: none !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.action-btn, .primary, .btn-primary, .translate-submit):hover,
body.editorial-develop #content :is(.action-btn, .primary, .btn-primary, .translate-submit):focus-visible {
  border-color: #87432e !important;
  background: #87432e !important;
  color: #fffefa !important;
}
body.editorial-develop #content .grammar-chapter-toolbar .back { color: #87432e !important; }
body.editorial-develop.heritage-dark #content .grammar-chapter-toolbar .back { color: #e09a78 !important; }
/* Theme vocabulary tables: warm Heritage neutrals, with Spanish and translation
   visually distinct but typographically consistent and easy to scan. */
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table caption,
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table th {
  border-color: #ded5c7 !important;
  background: #eee9df !important;
  color: #514e4a !important;
  font-family: Inter, "Avenir Next", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody {
  border-color: #ded5c7 !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr,
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr:nth-child(odd),
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr:nth-child(even) {
  border-color: #e8e1d6 !important;
  background: #fffefa !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr:nth-child(even) { background: #f7f5f0 !important; }
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table :is(td, th) {
  border-color: #e1d9ce !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table td[lang="es"] {
  color: #a65439 !important;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table [data-theme-word-meaning],
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table td:not([lang="es"]) {
  color: #5e5a54 !important;
  font-family: Inter, "Avenir Next", system-ui, sans-serif !important;
  font-weight: 450 !important;
  letter-spacing: 0 !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table .theme-word-edit { display: none !important; }
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table caption,
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table th { border-color: #51483e !important; background: #39352e !important; color: #e8dfd2 !important; }
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table tbody tr,
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table tbody tr:nth-child(even) { border-color: #51483e !important; background: #302d28 !important; }
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table :is(td, th) { border-color: #51483e !important; }
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table td[lang="es"] { color: #e09a78 !important; }
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table [data-theme-word-meaning],
body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table td:not([lang="es"]) { color: #c4baad !important; }
body.editorial-develop .side .nav .nav-disclosure > button.nav-disclosure-heading::after {
  margin-left: auto !important;
  color: #6b6259 !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
}
body.editorial-develop .side .nav .nav-disclosure > button.nav-disclosure-heading:hover {
  border-color: #e7e4dc !important;
  background: #f7f5f0 !important;
  color: #24363e !important;
}
body.editorial-develop .side .nav .nav-disclosure.is-open > button.nav-disclosure-heading {
  border-color: #e7d9cb !important;
  border-left: 3px solid #a65439 !important;
  background: #f7eee5 !important;
  color: #24363e !important;
}

/* One calm interaction language across every top-level navigation item. */
body.editorial-develop .side #nav :is(button, a):is(:hover, :focus-visible) {
  border-color: #e7d9cb !important;
  background: #f7eee5 !important;
  background-image: none !important;
  color: #24363e !important;
  box-shadow: none !important;
  transform: none !important;
}
body.editorial-develop .side #nav :is(button, a).active,
body.editorial-develop .side #nav :is(button, a)[aria-current="page"] {
  border-color: #e7d9cb !important;
  border-left: 3px solid #a65439 !important;
  background: #eee7da !important;
  background-image: none !important;
  color: #24363e !important;
  box-shadow: none !important;
  transform: none !important;
}
body.editorial-develop .side #nav :is(button, a):is(:hover, :focus-visible)::before,
body.editorial-develop .side #nav :is(button, a).active::before,
body.editorial-develop .side #nav :is(button, a)[aria-current="page"]::before {
  background: #e8e1d2 !important;
  color: #24363e !important;
}
body.editorial-develop .side #nav .nav-disclosure > button.nav-disclosure-heading:is(:hover, :focus-visible)::after {
  color: #24363e !important;
}

/* Replace the legacy blue vocabulary-practice surfaces with the Heritage palette. */
body.editorial-develop #content .flashcard-practice-screen header aside {
  border-color: #e7d9cb !important;
  background: #f7eee5 !important;
  color: #87432e !important;
}
body.editorial-develop #content .chapter-quick-toolbar .segmented,
body.editorial-develop #content .theme-vocabulary-filters {
  border-color: #e2d8ca !important;
  background: #fffefa !important;
}
body.editorial-develop #content .theme-vocabulary-filters button,
body.editorial-develop #content .chapter-quick-toolbar .segmented button {
  border-color: #e2d8ca !important;
  background: #fffefa !important;
  color: #60453b !important;
}
body.editorial-develop #content .theme-vocabulary-filters button[aria-pressed="true"],
body.editorial-develop #content .chapter-quick-toolbar .segmented button.active {
  border-color: #a65439 !important;
  background: #a65439 !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop #content .chapter-quick-card:not(.is-known):not(.is-unknown) {
  border-color: #e2d8ca !important;
  background: #f5eee2 !important;
}
body.editorial-develop #content .chapter-quick-card:not(.is-known):not(.is-unknown) :is(.flashcard-preview-front, .flashcard-preview-back) {
  border-color: #e7ded1 !important;
  background: #fffefa !important;
}
body.editorial-develop #content .flashcard-practice-screen :is(.flashcard-preview-toolbar button, .chapter-quick-all) {
  border-color: #d9c2b4 !important;
  background: #fffefa !important;
  color: #87432e !important;
}
body.editorial-develop #content :is(.flashcard-language-translation, .flashcard-language-es, .theme-vocabulary-filters button) {
  --cs-spanish-blue: #a65439;
}

/* Keep the generated information icon visible in the disclosure heading. */
body.editorial-develop .side .nav button.nav-disclosure-heading[data-nav-disclosure-toggle="information"]::before {
  content: none !important;
  display: none !important;
}
body.editorial-develop .side .nav button.nav-disclosure-heading[data-nav-disclosure-toggle="information"] .nav-disclosure-icon {
  display: grid !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #605d55 !important;
}

/* The live menu groups disclosures by their first route (verbs/handbooks),
   not by the configured group name (verbtools/information). Cover both keys. */
body.editorial-develop .side .nav .nav-disclosure:is([data-nav-disclosure="verbs"], [data-nav-disclosure="verbtools"], [data-nav-disclosure="verbquick"]) > button.nav-disclosure-heading::before {
  content: "↻" !important;
  display: grid !important;
}
body.editorial-develop .side .nav .nav-disclosure:is([data-nav-disclosure="handbooks"], [data-nav-disclosure="information"], [data-nav-disclosure="sources"]) > button.nav-disclosure-heading::before {
  content: "ⓘ" !important;
  display: grid !important;
}
body.editorial-develop .side .nav .nav-disclosure:is([data-nav-disclosure="handbooks"], [data-nav-disclosure="information"], [data-nav-disclosure="sources"]) > button.nav-disclosure-heading .nav-disclosure-icon {
  display: none !important;
}

/* Keep the personalized name present, but let the sunny image and slogan lead. */
body.editorial-develop #content .heritage-home-hero h1 {
  font-size: clamp(28px, 2.2vw, 36px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em !important;
}
body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(255, 253, 248, .55);
}
body.editorial-develop.heritage-dark #content .heritage-home-hero :is(.landing-hero-copy, h1, .eyebrow, .landing-hero-copy > p) {
  background: transparent !important;
  color: #332c28 !important;
}
body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
  top: 60% !important;
  right: auto !important;
  bottom: auto !important;
  left: 20% !important;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(90%, 760px) !important;
  text-align: center;
}
@media (max-width: 580px) {
  body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
    top: 58% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: max-content;
    max-width: calc(100% - 24px) !important;
  }
}

/* On small screens, do not offer an otherwise-empty language popover on pages
   without level controls; it obscures the page underneath. */
@media (max-width: 1000px) {
  body.editorial-develop #pageControls:not(:has(.steer-levels)) [data-steer-options],
  body.editorial-develop #pageControls:not(:has(.steer-levels)) .steer-options {
    display: none !important;
  }
}

/* Dark-mode overrides for the final editorial layer. */
body.editorial-develop.heritage-dark .side .nav button:not(.active):not(.nav-group-label){color:#e5ddce!important;opacity:1!important}
body.editorial-develop.heritage-dark .side .nav button.nav-group-label,body.editorial-develop.heritage-dark .side .nav button.nav-disclosure-heading{color:#e2a083!important}
body.editorial-develop.heritage-dark .side .nav button.nav-group-direct:not(.active){color:#e5ddce!important}
body.editorial-develop.heritage-dark #content :is(.grammar-curriculum-note,.grammar-sort-controls,.grammar-topic-toc.grammar-overview .toc-row,.panel,.dictionary-card,.dictionary-hero,.dictionary-jumps,.verb-sticky-head,.verb-word-family,.verb-explain,.verb-center-fact,.dictionary-verb-quick,.dictionary-verb-morphology>div,.words-toolbar,.flashcards-hero,.flashcard-builder-step){background:#263b31!important;background-image:none!important;border-color:#4a5a4f!important;color:#f1eadc!important;box-shadow:none!important}
body.editorial-develop.heritage-dark #content :is(.grammar-curriculum-note,.grammar-sort-controls,.grammar-topic-toc.grammar-overview .toc-row,.panel,.dictionary-card,.dictionary-hero,.dictionary-jumps,.verb-sticky-head,.verb-word-family,.verb-explain,.verb-center-fact,.dictionary-verb-quick,.dictionary-verb-morphology>div,.words-toolbar,.flashcards-hero,.flashcard-builder-step) :is(h1,h2,h3,h4,strong,b,.toc-name){color:#f1eadc!important}
body.editorial-develop.heritage-dark #content :is(.grammar-curriculum-note,.grammar-sort-controls,.grammar-topic-toc.grammar-overview .toc-row,.panel,.dictionary-card,.dictionary-hero,.dictionary-jumps,.verb-sticky-head,.verb-word-family,.verb-explain,.verb-center-fact,.dictionary-verb-quick,.dictionary-verb-morphology>div,.words-toolbar,.flashcards-hero,.flashcard-builder-step) :is(p,span,small,.toc-desc):not(:is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip)){color:#d1c8b9!important}
body.editorial-develop.heritage-dark #content .grammar-topic-toc.grammar-overview .toc-row{border-left-color:#b66b4d!important}
body.editorial-develop.heritage-dark #content .grammar-topic-toc.grammar-overview .toc-row .toc-spanish,body.editorial-develop.heritage-dark #content .grammar-topic-toc.grammar-overview .toc-row .toc-desc-es,body.editorial-develop.heritage-dark #content .grammar-topic-toc.grammar-overview .toc-row .toc-no{color:#e2a083!important}
body.editorial-develop.heritage-dark #content .grammar-sort-controls button{background:#20362c!important;border-color:#536558!important;color:#e8dfd0!important}
body.editorial-develop.heritage-dark #content .grammar-sort-controls button.active{background:#a9573a!important;border-color:#a9573a!important;color:#fff!important}
body.editorial-develop.heritage-dark #content .verb-word-family-tile{background:#20362c!important;border-color:#4a5a4f!important}
body.editorial-develop.heritage-dark #content .verb-word-family-tile>small,body.editorial-develop.heritage-dark #content .verb-word-family-tile>span,body.editorial-develop.heritage-dark #content .verb-word-family-tile .verb-family-usage-note{color:#d7cdbd!important}
body.editorial-develop.heritage-dark #content .verb-word-family-tile>b,body.editorial-develop.heritage-dark #content .verb-word-family-tile .verb-word-family-link{color:#e6a182!important}
body.editorial-develop.heritage-dark .account-box .admin-build-number{display:inline-flex;gap:6px;align-items:center;margin:4px 0 8px;padding:5px 8px;border:1px solid #526558;border-radius:8px;background:#263b31;color:#f1eadc!important;font-size:12px!important}
body.editorial-develop.heritage-dark .account-box .admin-build-number b{color:#f1eadc!important;font-variant-numeric:tabular-nums}
.account-box .admin-build-number{display:inline-flex;gap:6px;align-items:center;margin:4px 0 8px;padding:5px 8px;border:1px solid #e6d8c6;border-radius:8px;background:#f6efe5;color:#6f5846;font-size:12px;font-variant-numeric:tabular-nums}
body.editorial-develop #content .verb-sticky-head{grid-template-columns:minmax(0,1fr)!important}
body.editorial-develop #content .verb-quick-conjugations{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:14px 8px;border:1px solid var(--cs-border);border-radius:14px;background:rgba(255,255,255,.42)}
body.editorial-develop #content .verb-quick-conjugations>section{padding:4px 14px;background:transparent!important;border:0!important;border-right:1px solid var(--cs-border)!important;border-radius:0!important}
body.editorial-develop #content .verb-quick-conjugations>section:last-child{border-right:0!important}
body.editorial-develop #content .verb-word-family-head,body.editorial-develop #content .verb-word-family-row{grid-template-columns:minmax(210px,.9fr) minmax(220px,1fr) minmax(250px,1.2fr)!important}
body.editorial-develop #content .verb-family-spanish{display:grid;gap:4px;min-width:0}
@media(max-width:900px){body.editorial-develop #content .verb-quick-conjugations{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.editorial-develop #content .verb-quick-conjugations>section:nth-child(2){border-right:0!important}}
@media(max-width:600px){body.editorial-develop #content .verb-quick-conjugations{grid-template-columns:1fr!important;padding:8px 12px}body.editorial-develop #content .verb-quick-conjugations>section{padding:12px 4px;border-right:0!important;border-bottom:1px solid var(--cs-border)!important}body.editorial-develop #content .verb-quick-conjugations>section:last-child{border-bottom:0!important}body.editorial-develop #content .verb-word-family-head{display:none!important}body.editorial-develop #content .verb-word-family-row{grid-template-columns:1fr!important;gap:4px!important;padding:12px 14px}}

/* 2026-10-16: one editorial palette for the remaining reference surfaces. */
body.editorial-develop {
  --cs-reference-ink: #283730;
  --cs-reference-muted: #625f59;
  --cs-reference-accent: #a65439;
  --cs-reference-accent-dark: #87432e;
  --cs-reference-paper: #fffdf9;
  --cs-reference-cream: #f6efe6;
  --cs-reference-border: #e1d5c6;
}
body.editorial-develop #content > .back {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  color: var(--cs-reference-accent-dark) !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody td {
  text-align: left !important;
  vertical-align: top !important;
}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table :is([data-theme-word-meaning],td:not([lang="es"])) {
  font-size: 18px !important;
  line-height: 1.48 !important;
}
body.editorial-develop #content .dictionary-verb-morphology small {
  color: var(--cs-reference-muted) !important;
}
body.editorial-develop #content .dictionary-verb-morphology b,
body.editorial-develop #content .dictionary-verb-family-tile b {
  color: var(--cs-reference-accent) !important;
}
body.editorial-develop #content .dictionary-verb-morphology :is(span,p),
body.editorial-develop #content .dictionary-verb-family-tile :is(span,p,small) {
  color: var(--cs-reference-muted) !important;
}
body.editorial-develop #content .handbook-hero,
body.editorial-develop #content .handbook-toc,
body.editorial-develop #content .handbook-content,
body.editorial-develop #content .handbook-loading {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  background-image: none !important;
  color: var(--cs-reference-ink) !important;
  box-shadow: none !important;
}
body.editorial-develop #content .handbook-hero {
  border-top: 5px solid var(--cs-reference-accent) !important;
  background: var(--cs-reference-cream) !important;
}
body.editorial-develop #content .handbook-hero :is(h1,p),
body.editorial-develop #content .handbook-content :is(h1,h2,h3,p,li),
body.editorial-develop #content .handbook-toc :is(b,a) {
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content .handbook-language-choices button {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  color: var(--cs-reference-accent-dark) !important;
}
body.editorial-develop #content .handbook-language-choices button.active {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-accent) !important;
  color: white !important;
}
body.editorial-develop #content .handbook-language-choices button > span,
body.editorial-develop #content .handbook-toc a span { color: var(--cs-reference-accent) !important; }
body.editorial-develop #content .handbook-language-choices button.active > span { color: white !important; }
body.editorial-develop #content .handbook-toc a:hover,
body.editorial-develop #content .handbook-toc a:focus-visible { background: var(--cs-reference-cream) !important; }
body.editorial-develop #content .handbook-content blockquote,
body.editorial-develop #content .handbook-table-wrap th {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-cream) !important;
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content :is(.relation-overview-intro,.relation-category-picker,.relation-toolbar,.relation-theme-overview,.relation-map-gallery,.generic-map-header,.generic-filterbar,.relation-level-controls,.generic-info-panel) {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  background-image: none !important;
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content :is(.relation-overview-intro,.relation-category-picker,.generic-map-header,.generic-info-panel) :is(h2,h3,b,strong,summary) {
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content :is(.relation-overview-intro,.generic-map-header,.generic-info-panel) :is(p,span,small) {
  color: var(--cs-reference-muted) !important;
}
body.editorial-develop #content :is(.relation-categorybar,.generic-filterbar,.relation-view-toggle) {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-cream) !important;
}
body.editorial-develop #content :is(.relation-categorybar,.generic-filterbar,.relation-view-toggle) button:not(.active),
body.editorial-develop #content .relation-map-quizlet-slot button,
body.editorial-develop #content .relation-map-arrow-navigation button {
  border: 1px solid #cba78f !important;
  background: var(--cs-reference-cream) !important;
  color: var(--cs-reference-accent-dark) !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.relation-categorybar,.generic-filterbar,.relation-view-toggle) button.active,
body.editorial-develop #content .relation-map-quizlet-slot button.active {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-accent) !important;
  color: white !important;
}
body.editorial-develop #content .relation-filter-count,
body.editorial-develop #content .relation-card-level {
  border-color: var(--cs-reference-border) !important;
  background: #ede4d8 !important;
  color: var(--cs-reference-accent-dark) !important;
}
body.editorial-develop #content .generic-map-stage {
  border-color: var(--cs-reference-border) !important;
  background: #f8f4ed !important;
  background-image: none !important;
}
body.editorial-develop #content .generic-map-node:not(.root) {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
}
body.editorial-develop #content .generic-map-node.group { background: var(--cs-reference-cream) !important; }
body.editorial-develop #content .generic-map-node.root {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-accent) !important;
}
body.editorial-develop #content .generic-map-node:not(.root) :is(span,small) { color: var(--cs-reference-ink) !important; }
body.editorial-develop #content .generic-map-node.root :is(span,small) { color: white !important; }
body.editorial-develop #content .generic-edge { stroke: #aa927f !important; }
body.editorial-develop #content .generic-info-panel .generic-example,
body.editorial-develop #content .generic-crosslinks span {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-cream) !important;
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content :is(.theme-reader-main,.theme-reader-layout,.rich-theme-section-reading) {
  background: transparent !important;
}
body.editorial-develop #content :is(.culture-reading-page,.culture-reference-body,.theme-reader-index,.rich-theme-principles,.rich-theme-guide,.rich-theme-overview-reading,.rich-theme-section-reading) {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  background-image: none !important;
  color: var(--cs-reference-ink) !important;
  box-shadow: none !important;
}
body.editorial-develop #content :is(.culture-reading-page,.culture-reference-body) :is(p,li),
body.editorial-develop #content .theme-reader-index :is(a,button,summary,strong) { color: var(--cs-reference-ink) !important; }
body.editorial-develop #content :is(.culture-reading-page,.rich-theme-section-reading) :is(section > span,.culture-word-flow),
body.editorial-develop #content .theme-reader-index .gr-index-heading > span,
body.editorial-develop #content .rich-theme-principles span { color: var(--cs-reference-accent) !important; }
body.editorial-develop #content :is(.culture-reading-page,.rich-theme-section-reading) .culture-context-example {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-cream) !important;
}
body.editorial-develop #content :is(.culture-reading-page,.rich-theme-section-reading) .culture-context-example :is(p,small) { color: var(--cs-reference-muted) !important; }
body.editorial-develop #content :is(.theme-reader-main,.rich-theme-section-reading) :is(.topic-word-card,.rich-curated-word) {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
}
body.editorial-develop #content .words-title-row :is(.editor-save,.action-btn) {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-accent) !important;
  color: white !important;
}
body.editorial-develop #content .words-title-row :is(.editor-save,.action-btn):hover { background: var(--cs-reference-accent-dark) !important; }
body.editorial-develop #content .words-title-row [data-go="dictionary"] {
  border-color: #cba78f !important;
  background: var(--cs-reference-paper) !important;
  color: var(--cs-reference-accent-dark) !important;
}
/* The topic picker and the sidebar must not retain white-on-white dark-mode text. */
body.editorial-develop.heritage-dark #content :is(.theme-practice-picker,.theme-word-list,.theme-vocabulary-panel,.culture-reading-page,.culture-reference-body,.theme-reader-index,.rich-theme-principles,.rich-theme-guide,.rich-theme-overview-reading,.rich-theme-section-reading,.handbook-hero,.handbook-toc,.handbook-content,.relation-overview-intro,.relation-category-picker,.relation-toolbar,.relation-theme-overview,.relation-map-gallery,.generic-map-header,.generic-filterbar,.relation-level-controls,.generic-info-panel) {
  border-color: #526056 !important;
  background: #263b31 !important;
  background-image: none !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content :is(.theme-practice-picker,.theme-word-list,.theme-vocabulary-panel,.culture-reading-page,.culture-reference-body,.theme-reader-index,.rich-theme-principles,.rich-theme-guide,.rich-theme-overview-reading,.rich-theme-section-reading,.handbook-hero,.handbook-toc,.handbook-content,.relation-overview-intro,.relation-category-picker,.relation-toolbar,.relation-theme-overview,.relation-map-gallery,.generic-map-header,.generic-filterbar,.relation-level-controls,.generic-info-panel) :is(h1,h2,h3,h4,b,strong,label,summary,p,li,a) {
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content :is(.theme-practice-picker,.theme-word-list,.theme-vocabulary-panel,.culture-reading-page,.culture-reference-body,.theme-reader-index,.handbook-content,.generic-info-panel) :is(small,span) { color: #d1c8b9 !important; }
body.editorial-develop.heritage-dark #content :is(.theme-practice-picker,.theme-word-list,.handbook-content) :is(input,select,textarea) {
  border-color: #607064 !important;
  background: #1d2f27 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure.is-open,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure.is-open > :not(button) {
  border-color: #526056 !important;
  background: #263b31 !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel button.nav-disclosure-item:not(.active) { color: #e9dfcf !important; }
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel button.nav-disclosure-item.active {
  background: #3c503f !important;
  color: #fff9ef !important;
}
body.editorial-develop.heritage-dark #content .generic-map-stage,
body.editorial-develop.heritage-dark #content .generic-map-node:not(.root),
body.editorial-develop.heritage-dark #content :is(.relation-categorybar,.generic-filterbar,.relation-view-toggle) {
  border-color: #526056 !important;
  background: #20362c !important;
}
body.editorial-develop.heritage-dark #content .generic-map-node:not(.root) :is(span,small) { color: #f1eadc !important; }
body.editorial-develop.heritage-dark #content .dictionary-verb-morphology small { color: #d1c8b9 !important; }
body.editorial-develop.heritage-dark #content .dictionary-verb-morphology b,
body.editorial-develop.heritage-dark #content .dictionary-verb-family-tile b { color: #e6a182 !important; }
body.editorial-develop.heritage-dark #content > .back {
  border-color: #607064 !important;
  background: #263b31 !important;
  color: #f1eadc !important;
}

/* The agreed dark direction is charcoal and warm accents, not pale type on
   light cards or a flat green canvas. Keep nested grammar panels readable. */
body.editorial-develop.heritage-dark {
  --paper: #1e211d;
  --white: #292d27;
  --soft: #32372e;
  --line: #4f574a;
  --muted: #d0c7b7;
  background: #20201e !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark :is(.app,.main,.shell) {
  background: #20201e !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark .side {
  border-color: #4f574a !important;
  background: #292925 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #pageControls {
  border-color: #586250 !important;
  background: #292e28 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #pageControls button:not([aria-pressed="true"]) {
  border-color: #5b6658 !important;
  background: #30382f !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #pageControls #searchForm input {
  border-color: #687063 !important;
  background: #252a25 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #pageControls #searchForm input::placeholder { color: #b6b7aa !important; }
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-hero,.gr-index,.gr-section,.gr-sources),
body.editorial-develop.heritage-dark #content .gr-reference .gr-scene {
  border-color: #566052 !important;
  background: #2a3028 !important;
  background-image: none !important;
  color: #f1eadc !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content .gr-reference .gr-hero {
  border-top: 5px solid #b96b4d !important;
  background: #33372d !important;
}
body.editorial-develop.heritage-dark #content .gr-reference .gr-scene,
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-example,.gr-note,.gr-callout,.gr-rule) {
  border-color: #b96b4d !important;
  background: #34392f !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-hero,.gr-index,.gr-section,.gr-scene,.gr-sources) :is(h1,h2,h3,h4,p,li,b,strong,summary) {
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-index,.gr-section,.gr-scene) :is(span,small) {
  color: #d5caba !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-index a,.gr-section a,.gr-scene a,[lang="es"]),
body.editorial-develop.heritage-dark #content .gr-reference .spanish-inline {
  color: #e6a182 !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-index a,.gr-index button) {
  border-color: #4f574a !important;
  background: transparent !important;
  color: #eee4d3 !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-index a,.gr-index button):hover {
  background: #3b4436 !important;
  color: white !important;
}
body.editorial-develop.heritage-dark #content .gr-reference .gr-level {
  border-color: #6b735e !important;
  background: #3b4436 !important;
  color: #e8d9bd !important;
}
body.editorial-develop.heritage-dark #content .theme-practice-picker :is(h1,h2,h3,p,label),
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel :is(button,a,span,small) {
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .theme-practice-picker select option {
  background: #252a25 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content :is(.handbook-hero,.handbook-toc,.handbook-content,.culture-reading-page,.culture-reference-body,.theme-reader-index,.generic-map-stage,.generic-info-panel) {
  background: #2a3028 !important;
  color: #f1eadc !important;
}
body.editorial-develop:not(.heritage-dark) .side {
  background: #fffdf9 !important;
  color: #283730 !important;
}
body.editorial-develop.heritage-dark #content :is(.theme-practice-picker,.theme-word-list,.theme-vocabulary-panel,.culture-reading-page,.culture-reference-body,.theme-reader-index,.rich-theme-principles,.rich-theme-guide,.rich-theme-overview-reading,.rich-theme-section-reading,.handbook-hero,.handbook-toc,.handbook-content,.relation-overview-intro,.relation-category-picker,.relation-toolbar,.relation-theme-overview,.relation-map-gallery,.generic-map-header,.generic-filterbar,.relation-level-controls,.generic-info-panel,.grammar-curriculum-note,.grammar-sort-controls,.grammar-topic-toc .toc-row,.panel,.dictionary-card,.dictionary-hero,.dictionary-jumps,.verb-sticky-head,.verb-word-family,.verb-explain,.verb-center-fact,.dictionary-verb-quick,.dictionary-verb-morphology > div,.words-toolbar,.flashcards-hero,.flashcard-builder-step) {
  border-color: #57554f !important;
  background: #2c2c29 !important;
  background-image: none !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content :is(.generic-map-stage,.generic-map-node:not(.root),.relation-categorybar,.generic-filterbar,.relation-view-toggle) {
  border-color: #57554f !important;
  background: #262724 !important;
}
body.editorial-develop.heritage-dark #content .gr-reference :is(.gr-hero,.gr-index,.gr-section,.gr-sources) {
  border-color: #57554f !important;
  background: #2c2c29 !important;
}
body.editorial-develop.heritage-dark #content .gr-reference .gr-hero { background: #35312c !important; }
body.editorial-develop.heritage-dark #content .gr-reference .gr-scene { background: #37342f !important; }

/* Final contrast pass: these controls live outside the earlier map selectors. */
body.editorial-develop #content .relation-review-bucket,
body.editorial-develop #content .relation-topic-index-row {
  border-color: var(--cs-reference-border) !important;
  background: var(--cs-reference-paper) !important;
  color: var(--cs-reference-ink) !important;
  box-shadow: none !important;
}
body.editorial-develop #content .relation-review-bucket > summary em {
  background: var(--cs-reference-cream) !important;
  color: var(--cs-reference-accent-dark) !important;
}
body.editorial-develop #content .relation-review-bucket > summary b,
body.editorial-develop #content .relation-topic-index-row :is(h3,b,strong) {
  color: var(--cs-reference-ink) !important;
}
body.editorial-develop #content .relation-review-bucket > summary small,
body.editorial-develop #content .relation-topic-index-row :is(p,small,span) {
  color: var(--cs-reference-muted) !important;
}
body.editorial-develop #content .relation-topic-index-row { border-left: 4px solid var(--cs-reference-accent) !important; }
body.editorial-develop #content .relation-topic-connection button,
body.editorial-develop #content .relation-map-mode-switch button {
  border-color: var(--cs-reference-accent) !important;
  background: var(--cs-reference-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.editorial-develop #content .relation-topic-connection button:hover,
body.editorial-develop #content .relation-map-mode-switch button:hover {
  border-color: var(--cs-reference-accent-dark) !important;
  background: var(--cs-reference-accent-dark) !important;
  color: #fff !important;
}
body.editorial-develop #content .relation-map-mode-switch button:focus-visible {
  outline-color: var(--cs-reference-accent) !important;
}
body.editorial-develop #content .relation-map-overview-back {
  border-color: #c9ad99 !important;
  background: var(--cs-reference-cream) !important;
  color: var(--cs-reference-accent-dark) !important;
}
body.editorial-develop.heritage-dark #content .gr-reference .gr-notice {
  border-color: #b96b4d !important;
  background: #35312c !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-review-bucket,
body.editorial-develop.heritage-dark #content .relation-topic-index-row {
  border-color: #57554f !important;
  background: #2c2c29 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-review-bucket > summary :is(b,small),
body.editorial-develop.heritage-dark #content .relation-topic-index-row :is(h3,b,strong,p,small,span) {
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-review-bucket > summary em {
  background: #3e3932 !important;
  color: #f1eadc !important;
}

/* Study cards: neutral canvas with the reference palette reserved for status. */
body.editorial-develop #content .relation-all-item-wrap {
  border-color: #d9cbbd !important;
  background: #f8f4ed !important;
}
body.editorial-develop #content .relation-all-item-wrap.is-known {
  border-color: #8a9a7b !important;
  background: #e8eee4 !important;
}
body.editorial-develop #content .relation-all-item-wrap.is-unknown {
  border-color: #b0413e !important;
  background: #f7e8e5 !important;
}
body.editorial-develop #content :is(.relation-all-card-front,.relation-all-card-back) {
  border-color: #d9cbbd !important;
  background: #fffdf9 !important;
  color: #473335 !important;
}
body.editorial-develop #content .relation-word-actions .spanish-audio-button {
  border-color: #c9ad99 !important;
  background: #fffdf9 !important;
  color: #934b36 !important;
}
body.editorial-develop #content .relation-word-actions button[data-relation-word-status="known"] {
  border-color: #62765d !important;
  background: #62765d !important;
  color: #fff !important;
}
body.editorial-develop #content .relation-word-actions button[data-relation-word-status="unknown"] {
  border-color: #b0413e !important;
  background: #b0413e !important;
  color: #fff !important;
}
body.editorial-develop #content .relation-word-actions button[data-relation-word-status][aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px currentColor !important;
}
body.editorial-develop.heritage-dark #content .relation-all-item-wrap {
  border-color: #65594e !important;
  background: #302e2a !important;
}
body.editorial-develop.heritage-dark #content .relation-all-item-wrap.is-known {
  border-color: #8a9a7b !important;
  background: #343d32 !important;
}
body.editorial-develop.heritage-dark #content .relation-all-item-wrap.is-unknown {
  border-color: #b96b62 !important;
  background: #42302f !important;
}
body.editorial-develop.heritage-dark #content :is(.relation-all-card-front,.relation-all-card-back) {
  border-color: #65594e !important;
  background: #37342f !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-all-items {
  border-color: #57554f !important;
  background: #2c2c29 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-all-items :is(h3,p) {
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark #content .relation-word-actions .spanish-audio-button,
body.editorial-develop.heritage-dark #content .relation-map-overview-back {
  border-color: #786655 !important;
  background: #453b33 !important;
  color: #f1eadc !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure.is-open,
body.editorial-develop.heritage-dark .side .nav .nav-disclosure.is-open > :not(button) {
  border-color: #57554f !important;
  background: #2c2c29 !important;
}
body.editorial-develop.heritage-dark .side .nav button.active,
body.editorial-develop.heritage-dark .side .nav button[aria-current="page"],
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel button.nav-disclosure-item.active {
  border-color: #c5a28d !important;
  background: #f2e7d8 !important;
  color: #283730 !important;
}

/* Three views of one word bank, using the same editorial palette in both modes. */
body.editorial-develop #content .wordbank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .35rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #ded5c9;
  border-radius: 12px;
  background: #fffefa;
}
body.editorial-develop #content .wordbank-tabs button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .65rem .95rem;
  background: transparent;
  color: #785541;
  font-weight: 700;
  cursor: pointer;
}
body.editorial-develop #content .wordbank-tabs button:hover {
  background: #f7eee5;
}
body.editorial-develop #content .wordbank-tabs button.active {
  border-color: #a65439;
  background: #a65439;
  color: #fff;
}
body.editorial-develop.heritage-dark #content .wordbank-tabs {
  border-color: #5a5147;
  background: #302d28;
}
body.editorial-develop.heritage-dark #content .wordbank-tabs button {
  color: #e4d7c5;
}
body.editorial-develop.heritage-dark #content .wordbank-tabs button:hover {
  background: #453b33;
}
body.editorial-develop.heritage-dark #content .wordbank-tabs button.active {
  background: #a65439;
  color: #fff;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure[data-nav-disclosure="dictionary"].is-open > .nav-disclosure-heading {
  color: #283730 !important;
}
body.editorial-develop.heritage-dark #content .verb-intro,
body.editorial-develop.heritage-dark #content .verb-stats,
body.editorial-develop.heritage-dark #content .verb-folder {
  border-color: #5a5147 !important;
  background: #302d28 !important;
  color: #eee6da !important;
}
body.editorial-develop.heritage-dark #content .verb-intro :is(h1,h2),
body.editorial-develop.heritage-dark #content .verb-stats :is(b,strong),
body.editorial-develop.heritage-dark #content .verb-folder-heading b {
  color: #f3ecdf !important;
}
body.editorial-develop.heritage-dark #content .verb-intro p,
body.editorial-develop.heritage-dark #content .verb-stats :is(span,small),
body.editorial-develop.heritage-dark #content .verb-folder-heading small {
  color: #c4baad !important;
}

/* One contextual search control instead of parallel global and local fields. */
body.editorial-develop.steering-enabled #pageControls [data-steer-search] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  color: #8f4432;
  border-color: #decbb8;
  background: #fffaf3;
}
body.editorial-develop.steering-enabled.dashboard-page #pageControls [data-steer-search] { display: none !important; }
body.editorial-develop.steering-enabled:not(.dashboard-page) .main #pageControls #searchForm {
  display: none !important;
}
body.editorial-develop.steering-enabled:not(.dashboard-page) .main #pageControls.steer-search-open #searchForm {
  display: flex !important;
  position: absolute !important;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  z-index: 3;
  box-shadow: 0 10px 26px #3029201e !important;
}
body.editorial-develop.steering-enabled #content .wordbank-tabs,
body.editorial-develop.steering-enabled #content .dictionary-search,
body.editorial-develop.steering-enabled #content #wordQuery,
body.editorial-develop.steering-enabled #content #verbQ,
body.editorial-develop.steering-enabled #content .verb-query-control,
body.editorial-develop.steering-enabled #content .words-query-control {
  display: none !important;
}
body.editorial-develop.steering-enabled #content .dictionary-page > .back {
  display: none !important;
}
body.editorial-develop #content .dictionary-word-header {
  padding: 24px 30px !important;
  min-height: 0 !important;
}
body.editorial-develop #content .dictionary-results {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
body.editorial-develop #content .dictionary-results > button,
body.editorial-develop #content .dictionary-results > .dictionary-result-group,
body.editorial-develop #content .dictionary-results > .dictionary-result-group > button {
  width: 100%;
  min-height: 0;
  margin: 0;
}
body.editorial-develop #content .dictionary-results > button,
body.editorial-develop #content .dictionary-results > .dictionary-result-group > button {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.5fr) minmax(120px, .7fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid #e3d7c7;
  border-radius: 12px;
  background: #fffdfa;
  color: #29372f;
}
body.editorial-develop #content .dictionary-results > .dictionary-result-group {
  border-color: #e3d7c7;
  border-radius: 12px;
  background: #fffdfa;
}
body.editorial-develop #content .dictionary-results > .dictionary-result-group > button { border: 0; }
body.editorial-develop #content .dictionary-results b { color: #a65439; }
body.editorial-develop #content .dictionary-results small { color: #6f6a62; }
body.editorial-develop #content .dictionary-results i { position: static; justify-self: end; color: #a65439; }
body.editorial-develop #content .dictionary-result-expressions {
  background: #faf3e9;
  border-top: 1px solid #e3d7c7;
}
body.editorial-develop #content .dictionary-result-expressions summary { color: #8f4432; }
body.editorial-develop #content :is(.dictionary-alternatives,.dictionary-actions,.dictionary-fold,.page-search-results) {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #e3d7c7;
  border-radius: 16px;
  background: #fffdfa;
  color: #29372f;
}
body.editorial-develop #content .dictionary-alternatives h2 { margin: 0 0 4px; font-size: 1.35rem; }
body.editorial-develop #content .dictionary-alternatives p { margin: 0 0 14px; color: #716d65; }
body.editorial-develop #content :is(.dictionary-alternatives details,.dictionary-actions,.dictionary-fold) > summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #8f4432;
  font-weight: 700;
}
body.editorial-develop #content .dictionary-alternatives details { border-top: 1px solid #e8ddcf; }
body.editorial-develop #content .dictionary-alternative-list { display: grid; gap: 7px; padding: 0 14px 14px; }
body.editorial-develop #content .dictionary-alternative-list button,
body.editorial-develop #content .page-search-results button {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(180px, 2fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e8ddcf;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  color: #29372f;
}
body.editorial-develop #content .dictionary-alternative-list b { color: #a65439; }
body.editorial-develop #content .dictionary-alternative-list i { font-style: normal; justify-self: end; }
body.editorial-develop #content .dictionary-actions { padding: 0 10px; }
body.editorial-develop #content .dictionary-actions .word-detail-actions { padding: 0 12px 14px; }
body.editorial-develop #content .dictionary-fold { padding: 0 10px; }
body.editorial-develop #content .dictionary-fold > :not(summary) { margin: 0 12px 14px; }
body.editorial-develop #content .dictionary-fold > summary { list-style-position: inside; }
body.editorial-develop #content .page-search-results button { display: block; margin-top: 6px; }
body.editorial-develop #content .page-search-target { outline: 3px solid #d98248; outline-offset: 4px; }
body.editorial-develop.heritage-dark #content :is(.dictionary-alternatives,.dictionary-actions,.dictionary-fold,.page-search-results) {
  background: #302d28 !important;
  border-color: #5a5147 !important;
  color: #f3ecdf !important;
}
body.editorial-develop.heritage-dark #content :is(.dictionary-alternative-list button,.page-search-results button,.dictionary-results > button,.dictionary-results > .dictionary-result-group,.dictionary-results > .dictionary-result-group > button) {
  background: #39332d !important;
  border-color: #5a5147 !important;
  color: #f3ecdf !important;
}
/* The lexicon has its own visible search field; no second header search. */
body.editorial-develop.steering-enabled:has(#content div.dictionary-page) #pageControls [data-steer-search],
body.editorial-develop.steering-enabled:has(#content div.dictionary-page) .main #pageControls #searchForm {
  display: none !important;
}
body.editorial-develop.steering-enabled #content div.dictionary-page .dictionary-search {
  display: block !important;
  border-color: #e3d7c7 !important;
  background: #fffdfa !important;
}
body.editorial-develop #content .dictionary-starters .dictionary-search {
  margin-bottom: 0;
}
body.editorial-develop #content .dictionary-search input {
  border-color: #d6bca8 !important;
  color: #29372f !important;
  background: #fff !important;
}
body.editorial-develop #content .dictionary-search input::placeholder { color: #817a70 !important; }
body.editorial-develop #content .dictionary-search button {
  background: #a65439 !important;
  border-color: #a65439 !important;
  color: #fff !important;
}
body.editorial-develop.heritage-dark #content div.dictionary-page .dictionary-search {
  background: #302d28 !important;
  border-color: #5a5147 !important;
}
body.editorial-develop.heritage-dark #content .dictionary-search input {
  color: #f3ecdf !important;
  background: #252a25 !important;
  border-color: #687063 !important;
}
body.editorial-develop.heritage-dark #content .dictionary-search input::placeholder { color: #b6b7aa !important; }
/* Less glass, more fresh sage and coral on learning screens. */
body.editorial-develop:not(.heritage-dark) { --paper:#f7f8f3; --soft:#eff3ea; --line:#d7dfd0; background:#f7f8f3; }
body.editorial-develop:not(.heritage-dark) .main { background:#f7f8f3; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcards-hero,.flashcard-builder-step,.practice-hero,.translate-hero,.focused-practice-head,.page-intro-hero,.module-hero) { background:#fffefa!important; background-image:none!important; border-color:#d7dfd0!important; box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcards-hero,.practice-hero,.translate-hero,.page-intro-hero,.module-hero) { border-top:5px solid #80966d!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcards-hero aside,.flashcard-fields,.practice-tense-picker,.words-toolbar,.example-query-control) { background:#eff3ea!important; background-image:none!important; border-color:#d7dfd0!important; box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcard-fields select,.flashcard-type-grid label) { background:#fffefa!important; border-color:#d7dfd0!important; box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcard-start,.practice-settings #practiceStart,.practice-tense-picker button,.example-search-submit,.new-item-btn) { background:#607b5e!important; border-color:#607b5e!important; color:white!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.flashcard-start,.practice-settings #practiceStart,.practice-tense-picker button,.example-search-submit,.new-item-btn):hover { background:#476248!important; }
body.editorial-develop:not(.heritage-dark) #content :is(.practice-tense-picker input[type="checkbox"],.flashcard-fields input[type="checkbox"]) { accent-color:#607b5e!important; }
body.editorial-develop.heritage-dark #content :is(.flashcards-hero,.flashcard-builder-step,.practice-hero,.translate-hero,.module-hero,.practice-tense-picker) { background:#282e29!important; background-image:none!important; border-color:#556658!important; box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body.editorial-develop.heritage-dark #content :is(.flashcard-start,.new-item-btn,.practice-settings #practiceStart) { background:#80966d!important; border-color:#80966d!important; color:#172318!important; }
body.editorial-develop #content .practice-overview { max-width:1050px; margin:0 auto; display:grid; gap:18px; }
body.editorial-develop #content .practice-overview-heading { padding:24px 28px; border:1px solid #d7dfd0; border-top:5px solid #80966d; border-radius:16px; background:#f7f5ef; box-shadow:none; }
body.editorial-develop #content .practice-overview-heading :is(h1,p) { margin:5px 0 0; font-family:Inter,system-ui,sans-serif; }
body.editorial-develop #content .practice-overview-heading h1 { color:#24362b; font-size:clamp(28px,3vw,38px); line-height:1.15; }
body.editorial-develop #content .practice-overview-heading p { color:#526457; font-size:16px; }
body.editorial-develop #content .practice-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.editorial-develop #content .practice-overview-option { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border:1px solid #d7dfd0; border-radius:14px; background:#fffefa; color:#24362b; text-align:left; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; cursor:pointer; }
body.editorial-develop #content .practice-overview-option:hover,body.editorial-develop #content .practice-overview-option:focus-visible { border-color:#80966d; background:#f0f4eb; outline:2px solid #80966d; outline-offset:2px; }
body.editorial-develop #content .practice-overview-option span { display:grid; gap:5px; min-width:0; }
body.editorial-develop #content .practice-overview-option strong { font:700 18px/1.25 Inter,system-ui,sans-serif; color:#2d5038; }
body.editorial-develop #content .practice-overview-option small { font:400 14px/1.4 Inter,system-ui,sans-serif; color:#526457; }
body.editorial-develop #content .practice-overview-option b { color:#2d5038; font:700 22px/1 Inter,system-ui,sans-serif; }
body.editorial-develop.heritage-dark #content .practice-overview-heading,body.editorial-develop.heritage-dark #content .practice-overview-option { background:#282e29; border-color:#556658; }
body.editorial-develop.heritage-dark #content .practice-overview-heading h1,body.editorial-develop.heritage-dark #content .practice-overview-option strong { color:#f2eedf; }
body.editorial-develop.heritage-dark #content .practice-overview-heading p,body.editorial-develop.heritage-dark #content .practice-overview-option small { color:#cbd6c9; }
body.editorial-develop.heritage-dark #content .practice-overview-option b { color:#b5d0aa; }
body.editorial-develop.heritage-dark #content .practice-overview-option:hover,body.editorial-develop.heritage-dark #content .practice-overview-option:focus-visible { background:#344137; border-color:#9ab594; outline-color:#9ab594; }
@media (max-width:700px) { body.editorial-develop #content .practice-overview { gap:12px; } body.editorial-develop #content .practice-overview-heading { padding:18px; } body.editorial-develop #content .practice-overview-grid { grid-template-columns:1fr; gap:9px; } body.editorial-develop #content .practice-overview-option { padding:14px 16px; } }
body.editorial-develop #content .student-messages { max-width:980px; margin:0 auto; display:grid; gap:18px; }
body.editorial-develop #content :is(.messages-heading,.message-compose,.message-card) { padding:24px; border:1px solid #d7dfd0; border-radius:16px; background:#fffefa; }
body.editorial-develop #content .messages-heading { border-top:5px solid #80966d; }
body.editorial-develop #content .message-compose,body.editorial-develop #content .message-reply-form { display:grid; gap:12px; }
body.editorial-develop #content .student-messages label { display:grid; gap:6px; font-weight:700; }
body.editorial-develop #content .student-messages :is(input,textarea) { width:100%; padding:12px; border:1px solid #abbba8; border-radius:9px; background:#fff; color:#24362b; }
body.editorial-develop #content .student-messages textarea { min-height:110px; resize:vertical; }
body.editorial-develop #content .student-messages button { justify-self:start; padding:11px 18px; border:0; border-radius:9px; background:#607b5e; color:#fff; font-weight:750; }
body.editorial-develop #content .message-list { display:grid; gap:14px; }
body.editorial-develop #content .message-card header { display:flex; justify-content:space-between; gap:12px; }
body.editorial-develop #content .message-reply { margin:18px 0; padding:16px; border-left:4px solid #80966d; background:#eff3ea; }
body.editorial-develop.heritage-dark #content :is(.messages-heading,.message-compose,.message-card) { background:#282e29; border-color:#556658; color:#f2eedf; }
body.editorial-develop.heritage-dark #content .message-reply { background:#344137; }
body.editorial-develop #nav [data-page="messages"].has-unread::after { content:attr(data-unread); display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; margin-left:8px; border-radius:999px; background:#c83d37; color:#fff; font:700 12px/1 system-ui,sans-serif; }
body.editorial-develop #content .admin-message-compose fieldset { display:flex; flex-wrap:wrap; gap:12px 20px; border:1px solid #d7dfd0; border-radius:10px; padding:12px; }
body.editorial-develop #content .admin-message-compose fieldset label,.admin-message-compose .recipient-selection label { display:flex; align-items:center; gap:7px; }
body.editorial-develop #content .admin-message-compose input[type="radio"],body.editorial-develop #content .admin-message-compose input[type="checkbox"] { width:auto; accent-color:#607b5e; }
body.editorial-develop #content .admin-message-compose select { width:100%; padding:12px; border:1px solid #abbba8; border-radius:9px; background:#fff; color:#24362b; }
body.editorial-develop #content .recipient-selection { display:grid; gap:8px; max-height:240px; overflow:auto; padding:12px; border:1px solid #d7dfd0; border-radius:10px; }
body.editorial-develop #content .recipient-selection[hidden],body.editorial-develop #content .one-recipient[hidden] { display:none; }
body.editorial-develop #content .message-card.is-unread { border-left:5px solid #c83d37; }
body.editorial-develop.heritage-dark #content .admin-message-compose select { background:#27332b; color:#f2eedf; border-color:#556658; }
body.editorial-develop .content-excel-export { display:grid; gap:12px; margin-top:20px; padding:18px; border:1px solid #d7dfd0; border-radius:12px; }
body.editorial-develop .content-excel-parts { display:flex; flex-wrap:wrap; gap:10px 20px; }
body.editorial-develop:not(.heritage-dark) #content .example-sentences-toolbar { background:#eff3ea!important; background-image:none!important; border-color:#d7dfd0!important; box-shadow:none!important; backdrop-filter:none!important; }
body.editorial-develop:not(.heritage-dark) #content .example-learning-method > div { background:#fffefa!important; border-color:#d7dfd0!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content .example-learning-method > div > span { background:#e6eee1!important; color:#46644d!important; }
body.editorial-develop:not(.heritage-dark) #content .example-flashcard-launcher { background:#f7f3eb!important; background-image:none!important; border-color:#e5d6c5!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content .example-sentences-toolbar :is(input,select) { background:#fffefa!important; border-color:#bac8b5!important; color:#24362b!important; }
body.editorial-develop:not(.heritage-dark) #content .example-sentences-toolbar input::placeholder { color:#596159!important; opacity:1!important; }
body.editorial-develop:not(.heritage-dark) #content .example-flashcard-actions button:first-child { background:#607b5e!important; border-color:#607b5e!important; color:white!important; }
body.editorial-develop #content .conjugation-workspace>.practice-settings { padding-top:44px!important; }
body.editorial-develop #content .practice-settings::before { top:12px!important; left:18px!important; color:#415847!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-selected-level { background:#eff3ea!important; border:1px solid #cbdac6!important; color:#24362b!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-selected-level :is(span,b) { color:#24362b!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-tense-es { color:#644c3d!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-tense-translation { color:#596159!important; }
body.editorial-develop:not(.heritage-dark) #content .verb-quick-hero { background:#fffefa!important; background-image:none!important; border:1px solid #d7dfd0!important; border-top:5px solid #80966d!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content #verbQuickQuery { border-color:#aebb9e!important; box-shadow:none!important; color:#24362b!important; }
body.editorial-develop:not(.heritage-dark) #content .verb-quick-results button.active { background:#eff3ea!important; border-color:#607b5e!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content .verb-quick-summary dl>div { background:#eff3ea!important; border-left-color:#80966d!important; }
body.editorial-develop:not(.heritage-dark) #content .verb-quick-summary dd span { background:#e0eadb!important; color:#29432e!important; }
body.editorial-develop:not(.heritage-dark) #content .verb-quick-empty { color:#526b53!important; border-color:#b7c7af!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-title-row { background:#fffefa!important; background-image:none!important; border:1px solid #d7dfd0!important; border-top:5px solid #80966d!important; box-shadow:none!important; backdrop-filter:none!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-title-row :is(.title,p) { color:#24362b!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-mini-score { background:#eff3ea!important; color:#24362b!important; box-shadow:none!important; }
body.editorial-develop:not(.heritage-dark) #content .practice-mini-score :is(span,b,em) { color:#24362b!important; }

/* Fresh light palette: clear actions, soft surfaces and no glass on the tense overview. */
body.editorial-develop:not(.heritage-dark) .page-controls button[data-steer-menu] {
  border-color: #b7cbb6 !important;
  background: #e7f0e4 !important;
  color: #31573d !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) .page-controls button[data-steer-menu] :is(span,b) { color: #31573d !important; }
body.editorial-develop:not(.heritage-dark) .page-controls button[data-steer-menu]:hover { background: #d9e9d7 !important; }
body.editorial-develop:not(.heritage-dark) :is(.searchbar button, #pageControls #searchForm button),
body.editorial-develop:not(.heritage-dark) #content :is(.hero-btn:not(.secondary), .action-btn, .primary, .btn-primary, .translate-submit, .flashcard-start, .example-search-submit, .new-item-btn, .dictionary-search button, .practice-settings #practiceStart, .example-flashcard-actions button:first-child, .heritage-daily-card > button, .heritage-quick-actions button):not(:disabled) {
  border-color: #4f7658 !important;
  background: #4f7658 !important;
  background-image: none !important;
  color: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) :is(.searchbar button, #pageControls #searchForm button):hover,
body.editorial-develop:not(.heritage-dark) #content :is(.hero-btn:not(.secondary), .action-btn, .primary, .btn-primary, .translate-submit, .flashcard-start, .example-search-submit, .new-item-btn, .dictionary-search button, .practice-settings #practiceStart, .example-flashcard-actions button:first-child, .heritage-daily-card > button, .heritage-quick-actions button):not(:disabled):hover {
  border-color: #3d6147 !important;
  background: #3d6147 !important;
}
body.editorial-develop:not(.heritage-dark) #content .grammar-level-overview {
  border-color: #cbdcc9 !important;
  background: #eaf3e7 !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .grammar-level-overview .conj { background: #fffefa !important; }
body.editorial-develop:not(.heritage-dark) #content .grammar-level-overview tbody td:first-child b { color: #416b4c !important; }
body.editorial-develop:not(.heritage-dark) #content .tense-family-intro > div {
  border-color: #d7dfcf !important;
  border-top-color: #719273 !important;
  background: #eef4e9 !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .tense-family-intro > div:nth-child(2) { border-color: #eadacb !important; border-top-color: #db956c !important; background: #fff0e3 !important; }
body.editorial-develop:not(.heritage-dark) #content .tense-family-intro > div:nth-child(3) { border-color: #e9d6d7 !important; border-top-color: #bf7c83 !important; background: #f8ecec !important; }
body.editorial-develop:not(.heritage-dark) #content .tense-family-intro span { color: #8b503b !important; }

/* One always-visible contextual search, including the lexicon and small screens. */
body.editorial-develop.steering-enabled #pageControls [data-steer-search],
body.editorial-develop.steering-enabled #content .word-query-control {
  display: none !important;
}
body.editorial-develop.steering-enabled:not(.dashboard-page) .main #pageControls #searchForm,
body.editorial-develop.steering-enabled.dashboard-page .main #pageControls #searchForm,
body.editorial-develop.steering-enabled:has(#content div.dictionary-page) .main #pageControls #searchForm {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  flex: 1 1 220px !important;
  min-width: 130px !important;
  width: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}
body.editorial-develop.steering-enabled:has(#content div.dictionary-page) .main #pageControls #searchForm {
  display: none !important;
}
.dictionary-search > div { flex-wrap: wrap; align-items: end; }
.dictionary-search .dictionary-search-level { display: grid; gap: .25rem; margin: 0; }
.dictionary-search .dictionary-search-level select { min-height: 44px; max-width: 100%; }

/* All visible choices and action buttons share the Hoofdmenu sage treatment. */
body.editorial-develop #pageControls :is(.steer-language button, .steer-levels button, [data-steer-range]),
body.editorial-develop :is(.cs-language-flag, .standalone-tool-actions [data-language-choice]),
body.editorial-develop:not(.heritage-dark) :is(.searchbar button, #pageControls #searchForm button),
body.editorial-develop:not(.heritage-dark) #content :is(
  .hero-btn:not(.secondary), .action-btn, .primary, .btn-primary,
  .translate-submit, .flashcard-start, .example-search-submit,
  .new-item-btn, .dictionary-search button, .practice-settings #practiceStart,
  .example-flashcard-actions button, .heritage-daily-card > button,
  .heritage-quick-actions button, .word-search-submit,
  .words-alpha button, .segmented button, .chip.active,
  .book-filterbar button, .topic-level-selector button,
  .relation-level-buttons button, .relation-categorybar button,
  .generic-filterbar button, .verb-family, .grammar-sort-controls button
):not(:disabled) {
  border-color: #b7cbb6 !important;
  background: #e7f0e4 !important;
  background-image: none !important;
  color: #31573d !important;
  box-shadow: none !important;
}
body.editorial-develop #pageControls :is(.steer-language button, .steer-levels button, [data-steer-range]):hover,
body.editorial-develop :is(.cs-language-flag, .standalone-tool-actions [data-language-choice]):hover,
body.editorial-develop:not(.heritage-dark) :is(.searchbar button, #pageControls #searchForm button):hover,
body.editorial-develop:not(.heritage-dark) #content :is(.hero-btn:not(.secondary), .action-btn, .primary, .btn-primary, .heritage-quick-actions button, .words-alpha button, .segmented button):not(:disabled):hover {
  background: #d9e9d7 !important;
  color: #284a33 !important;
}
body.editorial-develop #pageControls :is(.steer-language button, .steer-levels button)[aria-pressed="true"],
body.editorial-develop .cs-language-flag.active,
body.editorial-develop .cs-language-flag[aria-pressed="true"] {
  border-color: #95b394 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
  box-shadow: inset 0 0 0 1px #95b394 !important;
}
body.editorial-develop:not(.heritage-dark) #pageControls .steer-primary > button:not([data-steer-search]),
body.editorial-develop:not(.heritage-dark) #pageControls .steer-sequence button {
  border-color: #b7cbb6 !important;
  background: #e7f0e4 !important;
  color: #31573d !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #pageControls .steer-primary > button:not([data-steer-search]):hover,
body.editorial-develop:not(.heritage-dark) #pageControls .steer-sequence button:hover {
  border-color: #729a77 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
}
body.editorial-develop:not(.heritage-dark) #pageControls .steer-primary > button:not([data-steer-search]) span,
body.editorial-develop:not(.heritage-dark) #pageControls .steer-sequence button span {
  color: inherit !important;
}
body.editorial-develop #pageControls #searchForm .steer-search-scope {
  flex: 0 0 auto;
  width: auto;
  max-width: 150px;
  min-height: 38px;
  margin: 0;
  padding: 0 24px 0 10px;
  border: 0 !important;
  border-right: 1px solid #b7cbb6 !important;
  border-radius: 0 !important;
  background: #e7f0e4 !important;
  color: #31573d !important;
  font-size: 13px;
  font-weight: 700;
}
body.editorial-develop:not(.heritage-dark) #content :is(
  .hero-btn:not(.secondary), .action-btn, .primary, .btn-primary,
  .translate-submit, .flashcard-start, .example-search-submit,
  .new-item-btn, .dictionary-search button, .practice-settings #practiceStart,
  .example-flashcard-actions button, .heritage-daily-card > button,
  .heritage-quick-actions button, .word-search-submit,
  .words-alpha button, .segmented button, .chip.active,
  .book-filterbar button, .topic-level-selector button,
  .relation-level-buttons button, .relation-categorybar button,
  .generic-filterbar button, .verb-family, .grammar-sort-controls button
):not(:disabled):hover {
  border-color: #729a77 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
  box-shadow: inset 0 0 0 1px #729a77 !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(
  .words-alpha button.active, .segmented button.active, .chip.active,
  .book-filterbar button.active, .topic-level-selector button.active,
  .relation-level-buttons button.active, .relation-categorybar button.active,
  .generic-filterbar button.active, .verb-family.active,
  .grammar-sort-controls button[aria-pressed="true"]
) {
  border-color: #729a77 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
  box-shadow: inset 0 0 0 1px #729a77 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-card > button :is(span,b,strong) {
  color: inherit !important;
}
body.editorial-develop:not(.heritage-dark) #content .words-toolbar .words-quick-buttons button:not(.words-quick-clear) {
  border-color: #b7cbb6 !important;
  background: #e7f0e4 !important;
  color: #31573d !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .words-toolbar .words-quick-buttons button[aria-pressed="true"],
body.editorial-develop:not(.heritage-dark) #content .words-toolbar .words-quick-buttons button:not(.words-quick-clear):hover {
  border-color: #729a77 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
  box-shadow: inset 0 0 0 1px #729a77 !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.rich-theme-hero, .theme-vocabulary-panel, .chapter-vocabulary-choice) :is(.theme-word-actions, .chapter-vocabulary-mode) button:not(:disabled),
body.editorial-develop:not(.heritage-dark) #content .theme-word-actions button:not(:disabled) {
  border-color: #b7cbb6 !important;
  background: #e7f0e4 !important;
  color: #31573d !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.rich-theme-hero, .theme-vocabulary-panel, .chapter-vocabulary-choice) :is(.theme-word-actions, .chapter-vocabulary-mode) button:not(:disabled):hover,
body.editorial-develop:not(.heritage-dark) #content .theme-word-actions button:not(:disabled):hover,
body.editorial-develop:not(.heritage-dark) #content .theme-word-actions button[aria-pressed="true"],
body.editorial-develop:not(.heritage-dark) #content .chapter-vocabulary-mode button[aria-pressed="true"] {
  border-color: #729a77 !important;
  background: #d9e9d7 !important;
  color: #284a33 !important;
  box-shadow: inset 0 0 0 1px #729a77 !important;
}

/* Continue the dashboard's pastel rhythm below its four shortcut tiles. */
body.editorial-develop:not(.heritage-dark) #content .heritage-progress-card {
  border-color: #cbdcc6 !important;
  border-top: 4px solid #7f9d78 !important;
  background: #edf4e9 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-recent-card {
  border-color: #ead9c7 !important;
  border-top: 4px solid #d79d72 !important;
  background: #fff1e5 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-grammar {
  border-color: #ead4d4 !important;
  border-top: 4px solid #c68388 !important;
  background: #f9eded !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-verb {
  border-color: #d2e0d7 !important;
  border-top: 4px solid #78a196 !important;
  background: #edf5f1 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-progress-ring {
  background: conic-gradient(#678e69 var(--progress), #d4e3cf 0) !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-progress-track {
  background: #d7e5d2 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-progress-track i {
  background: #678e69 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-grammar blockquote {
  border-color: #e7cfce !important;
  background: #fff8f6 !important;
}
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-verb :is(th,td) {
  border-color: #d7e5dc !important;
  background: #fbfefb !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button:nth-child(4n + 1) {
  border-color: #cadcc5 !important;
  border-top-color: #7f9d78 !important;
  background: #edf4e9 !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button:nth-child(4n + 2) {
  border-color: #e8d1d1 !important;
  border-top-color: #c68388 !important;
  background: #f9eded !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button:nth-child(4n + 3) {
  border-color: #eadbc0 !important;
  border-top-color: #d6a05f !important;
  background: #fff3df !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button:nth-child(4n) {
  border-color: #cddfd9 !important;
  border-top-color: #78a196 !important;
  background: #edf5f1 !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button:hover {
  filter: brightness(.975);
  box-shadow: inset 0 0 0 1px #91ab8f !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button i {
  background: #fffefa !important;
  color: #31573d !important;
}
body.editorial-develop:not(.heritage-dark) #content .landing-primary > button :is(span,small) {
  color: #405448 !important;
}
body.editorial-develop.heritage-dark #content .heritage-progress-card,
body.editorial-develop.heritage-dark #content .landing-primary > button:nth-child(4n + 1) {
  border-color: #536950 !important;
  background: #2d4031 !important;
}
body.editorial-develop.heritage-dark #content .heritage-recent-card,
body.editorial-develop.heritage-dark #content .landing-primary > button:nth-child(4n + 3) {
  border-color: #6d5949 !important;
  background: #41342b !important;
}
body.editorial-develop.heritage-dark #content .heritage-daily-grammar,
body.editorial-develop.heritage-dark #content .landing-primary > button:nth-child(4n + 2) {
  border-color: #705457 !important;
  background: #423033 !important;
}
body.editorial-develop.heritage-dark #content .heritage-daily-verb,
body.editorial-develop.heritage-dark #content .landing-primary > button:nth-child(4n) {
  border-color: #4e6961 !important;
  background: #293d37 !important;
}
@media (max-width: 700px) {
  body.editorial-develop.steering-enabled:not(.dashboard-page) .main #pageControls #searchForm,
  body.editorial-develop.steering-enabled.dashboard-page .main #pageControls #searchForm {
    flex-basis: 100% !important;
    order: 10;
  }
  body.editorial-develop.steering-enabled #pageControls .steer-primary {
    flex-wrap: wrap !important;
  }
}
@media (max-width: 760px) {
  body.editorial-develop #content .dictionary-results > button,
  body.editorial-develop #content .dictionary-results > .dictionary-result-group > button {
    grid-template-columns: 1fr auto;
  }
  body.editorial-develop #content .dictionary-results :is(span,small) { grid-column: 1; }
  body.editorial-develop #content .dictionary-results i { grid-column: 2; grid-row: 1 / 4; }
  body.editorial-develop #content .dictionary-alternative-list button { grid-template-columns: 1fr auto; }
  body.editorial-develop #content .dictionary-alternative-list span { grid-column: 1; }
}

/* Make expanded primary navigation read as a compact group of destinations. */
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure.is-open > button.nav-disclosure-heading {
  border-color: #a9c2a4 !important;
  background: #e7f0e4 !important;
  color: #284a33 !important;
  box-shadow: inset 4px 0 0 #719676 !important;
}
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure.is-open > button.nav-disclosure-heading::after {
  color: #31573d !important;
}
body.editorial-develop:not(.heritage-dark) .side .nav .nav-disclosure.is-open .nav-disclosure-panel {
  margin: 4px 5px 10px 18px !important;
  padding: 7px !important;
  border: 1px solid #d2e1cd !important;
  border-left: 3px solid #9fbb9b !important;
  border-radius: 0 12px 12px 0 !important;
  background: #f3f8f0 !important;
  box-shadow: none !important;
}
body.editorial-develop .side .nav .nav-disclosure-panel button.nav-disclosure-item {
  min-height: 0 !important;
  margin: 2px 0 !important;
  padding: 9px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.editorial-develop:not(.heritage-dark) .side .nav .nav-disclosure-panel button.nav-disclosure-item {
  color: #3d5443 !important;
}
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure-panel button.nav-disclosure-item:hover,
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure-panel button.nav-disclosure-item:focus-visible {
  border-color: #b9d0b4 !important;
  background: #e3efdf !important;
  color: #284a33 !important;
}
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure-panel button.nav-disclosure-item.active,
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure-panel button.nav-disclosure-item[aria-current="page"] {
  border-color: #91b18e !important;
  background: #dcebd8 !important;
  color: #23442f !important;
  box-shadow: inset 3px 0 0 #638d68 !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure.is-open .nav-disclosure-panel {
  margin: 4px 5px 10px 18px !important;
  padding: 7px !important;
  border: 1px solid #526b59 !important;
  border-left: 3px solid #93b395 !important;
  border-radius: 0 12px 12px 0 !important;
  background: #263b31 !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark .side .nav .nav-disclosure-panel button.nav-disclosure-item {
  color: #e5ddce !important;
}
body.editorial-develop.heritage-dark .side #nav .nav-disclosure-panel button.nav-disclosure-item:hover,
body.editorial-develop.heritage-dark .side #nav .nav-disclosure-panel button.nav-disclosure-item:focus-visible,
body.editorial-develop.heritage-dark .side #nav .nav-disclosure-panel button.nav-disclosure-item.active {
  border-color: #7c9d81 !important;
  background: #375441 !important;
  color: #fff8ed !important;
}

/* Home: one calm surface system in both themes. Colour is an accent, not a card fill. */
body.editorial-develop #content .heritage-quick-grid { margin-bottom: 14px; }
body.editorial-develop #content .heritage-quick-tile,
body.editorial-develop:not(.heritage-dark) #content .heritage-quick-tile:is(.tile-vocabulary,.tile-grammar,.tile-practice,.tile-verbs) {
  position: relative;
  min-height: 146px;
  padding: 20px 22px;
  border: 1px solid #dce5d9 !important;
  border-top: 3px solid #91aa8d !important;
  border-radius: 13px;
  background: #fffefa !important;
  color: #26382f !important;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34,53,40,.035);
}
body.editorial-develop #content .heritage-quick-tile:is(:hover,:focus-visible) {
  border-color: #668b6e !important;
  background: #f5f8f2 !important;
  box-shadow: 0 0 0 2px rgba(102,139,110,.15);
}
body.editorial-develop #content .heritage-quick-tile > i {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
  background: #eaf2e8;
  color: #365d42 !important;
  font: 700 23px/1 Georgia, serif;
}
body.editorial-develop #content .heritage-quick-tile.tile-grammar > i { background: #f7eae7; color: #a95043 !important; }
body.editorial-develop #content .heritage-quick-tile.tile-practice > i { background: #fbf0df; color: #a66e2e !important; }
body.editorial-develop #content .heritage-quick-tile.tile-verbs > i { background: #e8f1ee; color: #426f69 !important; }
body.editorial-develop #content .heritage-quick-tile h2 { margin-top: 12px; color: #26382f !important; }
body.editorial-develop #content .heritage-quick-tile p { max-width: 29ch; margin-right: 22px; color: #4d5d54 !important; }
body.editorial-develop #content .heritage-quick-arrow {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: #3e6b4a;
  font-size: 23px;
  line-height: 1;
}
body.editorial-develop #content .heritage-overview-grid { gap: 12px; margin-bottom: 12px; }
body.editorial-develop #content .heritage-overview-card { padding: 16px 20px; }
body.editorial-develop #content .heritage-progress-layout { grid-template-columns: 84px minmax(0,1fr); gap: 18px; }
body.editorial-develop #content .heritage-progress-ring { width: 80px; }
body.editorial-develop #content .heritage-progress-ring span { font-size: 20px; }
body.editorial-develop #content .heritage-progress-facts { margin-top: 8px; }
body.editorial-develop #content .heritage-panel-heading { margin-bottom: 8px; }
body.editorial-develop #content .heritage-empty-state { padding: 4px 0; }
body.editorial-develop:not(.heritage-dark) #content :is(.heritage-progress-card,.heritage-recent-card,.heritage-daily-grammar,.heritage-daily-verb) {
  border: 1px solid #dce5d9 !important;
  background: #fffefa !important;
  color: #26382f !important;
}
body.editorial-develop #content .heritage-daily-grid { gap: 12px; margin-bottom: 16px; }
body.editorial-develop #content .heritage-daily-card { min-height: 304px; }
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-grammar { border-top: 3px solid #c88c82 !important; }
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-verb { border-top: 3px solid #82a99e !important; }
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-grammar blockquote { background: #faf7f2 !important; }
body.editorial-develop:not(.heritage-dark) #content .heritage-daily-verb :is(th,td) { background: #fffefa !important; }

body.editorial-develop #content .heritage-directory {
  margin: 20px 0 24px;
  border: 1px solid #dce5d9;
  border-radius: 14px;
  background: #fffefa;
  color: #26382f;
  overflow: hidden;
}
body.editorial-develop #content .heritage-directory > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}
body.editorial-develop #content .heritage-directory > summary::-webkit-details-marker { display: none; }
body.editorial-develop #content .heritage-directory > summary > span:first-child { display: grid; gap: 4px; }
body.editorial-develop #content .heritage-directory > summary b { color: #26382f; font-size: 20px; }
body.editorial-develop #content .heritage-directory > summary small { color: #536258; font-size: 14px; }
body.editorial-develop #content .heritage-directory-toggle { flex: 0 0 auto; color: #365f43; font-size: 14px; font-weight: 750; }
body.editorial-develop #content .heritage-directory-toggle i { display: inline-block; margin-left: 8px; font-size: 20px; font-style: normal; transition: transform .2s; }
body.editorial-develop #content .heritage-directory[open] .heritage-directory-toggle i { transform: rotate(180deg); }
body.editorial-develop #content .heritage-directory > summary:is(:hover,:focus-visible) { background: #f3f7f0; outline: none; }
body.editorial-develop #content .heritage-directory-content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 22px 24px 26px; border-top: 1px solid #dce5d9; }
body.editorial-develop #content .heritage-directory-group h3 { margin: 0 0 11px; color: #385d42; font: 700 15px/1.2 system-ui,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
body.editorial-develop #content .heritage-directory-links { display: grid; gap: 7px; }
body.editorial-develop #content .heritage-directory-links > button {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e0e8de;
  border-radius: 9px;
  background: #fffefa;
  text-align: left;
  cursor: pointer;
}
body.editorial-develop #content .heritage-directory-links > button:is(:hover,:focus-visible) { border-color: #729276; background: #f3f7f0; outline: none; }
body.editorial-develop #content .heritage-directory-links i { color: #54785a; font-size: 18px; font-style: normal; text-align: center; }
body.editorial-develop #content .heritage-directory-links > button > span { display: grid; gap: 2px; min-width: 0; }
body.editorial-develop #content .heritage-directory-links b { color: #26382f; font-size: 14px; line-height: 1.25; }
body.editorial-develop #content .heritage-directory-links small { color: #59685f; font-size: 11px; line-height: 1.3; }
body.editorial-develop #content .heritage-directory-links em { color: #54785a; font-style: normal; }

body.editorial-develop.heritage-dark #content .heritage-quick-tile:is(.tile-vocabulary,.tile-grammar,.tile-practice,.tile-verbs),
body.editorial-develop.heritage-dark #content :is(.heritage-progress-card,.heritage-recent-card,.heritage-daily-grammar,.heritage-daily-verb,.heritage-directory) {
  border-color: #526359 !important;
  background: #2c322e !important;
  color: #f3f3ec !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content .heritage-quick-tile:is(:hover,:focus-visible),
body.editorial-develop.heritage-dark #content .heritage-directory-links > button:is(:hover,:focus-visible) { border-color: #a7c9a6 !important; background: #354038 !important; }
body.editorial-develop.heritage-dark #content .heritage-quick-tile h2,
body.editorial-develop.heritage-dark #content .heritage-directory :is(summary b,.heritage-directory-links b,.heritage-directory-group h3) { color: #f5f4ed !important; }
body.editorial-develop.heritage-dark #content .heritage-quick-tile p,
body.editorial-develop.heritage-dark #content .heritage-directory :is(summary small,.heritage-directory-links small) { color: #d1dcd1 !important; }
body.editorial-develop.heritage-dark #content .heritage-directory-toggle,
body.editorial-develop.heritage-dark #content .heritage-directory-links :is(i,em) { color: #b8d7b2 !important; }
body.editorial-develop.heritage-dark #content .heritage-directory > summary:is(:hover,:focus-visible) { background: #354038; }
body.editorial-develop.heritage-dark #content .heritage-directory-content { border-color: #526359; }
body.editorial-develop.heritage-dark #content .heritage-directory-links > button { border-color: #4b5b50; background: #303a33; }
body.editorial-develop.heritage-dark #content .heritage-daily-card :is(.heritage-daily-kicker,.heritage-daily-kicker span,.heritage-daily-grammar blockquote b,.heritage-daily-card h2) { color: #e6b3a6 !important; }
body.editorial-develop.heritage-dark #content .heritage-daily-card > p,
body.editorial-develop.heritage-dark #content .heritage-progress-details > small,
body.editorial-develop.heritage-dark #content .heritage-progress-facts { color: #d1dcd1 !important; }
body.editorial-develop.heritage-dark #content .heritage-panel-heading button { color: #b8d7b2 !important; }
body.editorial-develop.heritage-dark #content .heritage-progress-facts b { color: #d6b68b !important; }
body.editorial-develop.heritage-dark #content .heritage-daily-grammar blockquote { background: #353b35 !important; }
body.editorial-develop.heritage-dark #content .heritage-daily-verb :is(th,td) { background: #2c322e !important; }
body.editorial-develop.heritage-dark #content .heritage-daily-verb td { color: #cce4c7 !important; }
@media (max-width: 900px) {
  body.editorial-develop #content .heritage-directory-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body.editorial-develop #content .heritage-directory > summary { align-items: flex-start; flex-direction: column; gap: 10px; padding: 17px; }
  body.editorial-develop #content .heritage-directory-content { grid-template-columns: 1fr; padding: 17px; }
  body.editorial-develop #content .heritage-progress-layout { grid-template-columns: 70px minmax(0,1fr); gap: 12px; }
  body.editorial-develop #content .heritage-progress-ring { width: 66px; }
}

/* Phone dashboard: no cropped greeting or oversized navigation/cards. */
@media (max-width: 700px) {
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px !important;
    margin-bottom: 12px !important;
  }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages .steer-primary { display: contents !important; }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages [data-steer-menu] { grid-column: 1; grid-row: 1; min-width: 42px; }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages [data-steer-back] {
    grid-column: 2;
    grid-row: 1;
    min-width: 0 !important;
    max-width: none !important;
    width: max-content;
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages > .steer-language {
    position: static !important;
    grid-column: 3;
    grid-row: 1;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 3px !important;
  }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages > .steer-language .cs-language-label { display: none !important; }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages > .steer-language button {
    min-width: 34px !important;
    min-height: 38px !important;
    padding: 5px !important;
    font-size: 17px !important;
  }
  body.editorial-develop.dashboard-page .main #pageControls.cs-mobile-languages #searchForm {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages [data-steer-options],
  body.editorial-develop.dashboard-page #pageControls.cs-mobile-languages [data-steer-search] { display: none !important; }
  body.editorial-develop #content .heritage-home-hero {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-photo {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: clamp(135px, 39vw, 190px) !important;
    margin: 0 !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-photo img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 53% 52%;
  }
  body.editorial-develop #content .heritage-home-hero .landing-hero-copy {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    background: #fffefa !important;
    text-align: left !important;
    text-shadow: none !important;
  }
  body.editorial-develop #content .heritage-home-hero h1 { font-size: clamp(25px, 7vw, 34px) !important; overflow-wrap: anywhere; }
  body.editorial-develop #content .heritage-home-hero .landing-hero-copy > p { font-size: 16px !important; }
  body.editorial-develop #content .heritage-home-hero .landing-hero-meta {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-top: 8px !important;
  }
  body.editorial-develop #content .heritage-home-hero .landing-level { margin: 0 !important; }
  body.editorial-develop.heritage-dark #content .heritage-home-hero .landing-hero-copy { background: #2c322e !important; }
  body.editorial-develop.heritage-dark #content .heritage-home-hero :is(h1,.eyebrow,.landing-hero-copy > p) { color: #f5f4ed !important; }
  body.editorial-develop #content .heritage-quick-grid { grid-template-columns: 1fr; gap: 8px; margin: 12px 0 !important; }
  body.editorial-develop #content .heritage-quick-tile:is(.tile-vocabulary,.tile-grammar,.tile-practice,.tile-verbs) {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 22px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    min-height: 84px !important;
    padding: 12px 14px;
  }
  body.editorial-develop #content .heritage-quick-tile > i { grid-column: 1; grid-row: 1 / 3; }
  body.editorial-develop #content .heritage-quick-tile h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 19px; }
  body.editorial-develop #content .heritage-quick-tile p { grid-column: 2; grid-row: 2; margin: 2px 0 0; font-size: 13px; }
  body.editorial-develop #content .heritage-quick-arrow { position: static; grid-column: 3; grid-row: 1 / 3; }
  body.editorial-develop #content :is(.heritage-overview-grid,.heritage-daily-grid) { grid-template-columns: 1fr; }
  body.editorial-develop #content .heritage-daily-card { min-height: 0; padding: 18px; }
}

/* Hoofdstukken: solid surfaces instead of the inherited glass gradients. */
body.editorial-develop:not(.heritage-dark) #content .study-library-hero,
body.editorial-develop:not(.heritage-dark) #content .study-hero {
  border: 1px solid #d7e2d4 !important;
  border-left: 5px solid #789a7b !important;
  background: #f2f6ef !important;
  color: #26382f !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.study-library-hero,.study-hero) :is(h1,h2) { color: #26382f !important; }
body.editorial-develop:not(.heritage-dark) #content :is(.study-library-hero,.study-hero) p { color: #526055 !important; }
body.editorial-develop:not(.heritage-dark) #content :is(.study-library-hero,.study-hero) .eyebrow { color: #426b4b !important; }
body.editorial-develop:not(.heritage-dark) #content .study-library-count,
body.editorial-develop:not(.heritage-dark) #content .book-scope-summary {
  border: 1px solid #d5e1d2 !important;
  background: #e7f0e5 !important;
  color: #385743 !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .study-library-count :is(b,span,small),
body.editorial-develop:not(.heritage-dark) #content .book-scope-summary b { color: #385743 !important; }
body.editorial-develop:not(.heritage-dark) #content :is(.gente-course-unit,.study-toolbar,.study-level-chapters,.study-page,.study-toc-panel) {
  border-color: #dbe4d8 !important;
  background: #fffefa !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .gente-course-unit > summary,
body.editorial-develop:not(.heritage-dark) #content .gente-course-unit[open] > summary {
  border-color: #94ad91 !important;
  background: #f1f6ef !important;
}
body.editorial-develop:not(.heritage-dark) #content .gente-course-unit > .gente-course-unit-parts {
  border-color: #dbe4d8 !important;
  background: #f8faf6 !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.gente-course-part,.book-chapter-row) {
  border-color: #dbe4d8 !important;
  background: #fffefa !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.gente-course-part,.book-chapter-row):is(:hover,:focus-visible) {
  border-color: #7e9e7f !important;
  background: #f1f6ef !important;
}
body.editorial-develop:not(.heritage-dark) #content:has(> .study-layout) :is(.unit-learning-program,.unit-program-practice,.unit-part-focus,.chapter-core-verbs,.chapter-guided-practice,.chapter-progression-panel,.study-completion-card) {
  border-color: #dbe4d8 !important;
  background: #f7f9f4 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop:not(.heritage-dark) #content:has(> .study-layout) .unit-program-practice { background: #fcf5f1 !important; border-color: #ecdcd2 !important; }
body.editorial-develop:not(.heritage-dark) #content:has(> .study-layout) :is(.study-toolbar button,.study-level-chapters button,.study-chapter-nav button) {
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.editorial-develop.heritage-dark #content :is(.study-library-hero,.study-hero,.study-library-count,.book-scope-summary,.gente-course-unit,.study-toolbar,.study-level-chapters,.study-page,.study-toc-panel,.unit-learning-program,.unit-program-practice,.unit-part-focus,.chapter-core-verbs,.chapter-guided-practice,.chapter-progression-panel,.study-completion-card) {
  border-color: #536858 !important;
  background: #2c352e !important;
  color: #f2f4ed !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.editorial-develop.heritage-dark #content :is(.study-library-hero,.study-hero) :is(h1,h2,p,.eyebrow),
body.editorial-develop.heritage-dark #content .study-library-count :is(b,span,small),
body.editorial-develop.heritage-dark #content .book-scope-summary b { color: #f2f4ed !important; }
body.editorial-develop.heritage-dark #content :is(.gente-course-unit > summary,.gente-course-unit[open] > summary,.gente-course-unit > .gente-course-unit-parts,.gente-course-part,.book-chapter-row) {
  border-color: #536858 !important;
  background: #323e35 !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content :is(.gente-course-part,.book-chapter-row):is(:hover,:focus-visible) { background: #3b4a3f !important; }

/* Keep the grammar reader's toolbar, introduction, contents and text aligned. */
body.editorial-develop #content .cs-grammar-reader {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
body.editorial-develop #content .cs-grammar-reader.read-mode { max-width: 900px; }
body.editorial-develop #content .cs-grammar-reader > :is(.grammar-theme-hero,.grammar-on-page,.grammar-reading-page) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* A dark reading page needs dark paper as well as light lettering. */
body.editorial-develop.heritage-dark #content .cs-grammar-reader :is(.grammar-on-page,.grammar-reading-page,.grammar-reading-section) {
  background: #2c352e !important;
  border-color: #536858 !important;
  color: #f2f4ed !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content .cs-grammar-reader.read-mode :is(.grammar-reading-page,.grammar-reading-section) {
  background: #2c352e !important;
}
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section :is(h2,h3,h4) { color: #f2f4ed !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section :is(.grammar-text,.grammar-text p,.grammar-text li,.grammar-text td,.grammar-text th) { color: #e2e8dc !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section :is(table,td,th) { border-color: #536858 !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section th { background: #3b4a3f !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section :is(table,td) { background: #323e35 !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-reading-section a { color: #c3dfc4 !important; }
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-on-page button {
  background: #323e35 !important;
  border-color: #536858 !important;
  color: #f2f4ed !important;
}
body.editorial-develop.heritage-dark #content .cs-grammar-reader .grammar-on-page button:is(:hover,:focus-visible) { background: #3b4a3f !important; }

/* Hoofdstukken: remove pale sub-cards and dark text from the dark theme. */
body.editorial-develop.heritage-dark #content :is(.gente-course-unit-copy em,.gente-course-unit-meta,.gente-course-unit-meta small,.book-chapter-copy em,.book-chapter-action,.study-breadcrumb,.study-breadcrumb strong) { color: #cbd5c9 !important; }
body.editorial-develop.heritage-dark #content :is(.gente-course-unit-copy small,.gente-course-unit-meta strong,.book-chapter-copy small,.book-chapter-copy b,.gente-course-part .book-chapter-action) { color: #f2f4ed !important; }
body.editorial-develop.heritage-dark #content .study-layout :is(.study-section-heading,.unit-program-grid > section,.unit-program-rule,.unit-program-question,.chapter-guided-question,.chapter-quizlet-card,.study-chapter-nav button) {
  background: #323e35 !important;
  border-color: #536858 !important;
  color: #f2f4ed !important;
  box-shadow: none !important;
}
body.editorial-develop.heritage-dark #content .study-layout :is(.study-section-heading,.study-chapter-nav b,.study-toc button,.unit-program-grid h2,.unit-program-grid h3,.unit-program-rule b,.unit-program-question b,.chapter-guided-question b) { color: #f2f4ed !important; }
body.editorial-develop.heritage-dark #content .study-layout :is(.study-toc button,.study-chapter-nav small,.unit-program-grid p,.unit-program-rule p,.unit-program-question p,.chapter-guided-question p) { color: #cbd5c9 !important; }
body.editorial-develop.heritage-dark #content .study-layout .study-table :is(th,td) {
  background: #323e35 !important;
  border-color: #536858 !important;
  color: #e2e8dc !important;
}
body.editorial-develop.heritage-dark #content .study-layout .study-table th { background: #3b4a3f !important; }
body.editorial-develop.heritage-dark #content .study-layout .study-chapter-nav button:is(:hover,:focus-visible) { background: #3b4a3f !important; }
body.editorial-develop #content .study-layout.read-mode .study-page,
body.editorial-develop #content .study-layout.read-mode .study-reading-content {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}
body.editorial-develop.heritage-dark #content .study-layout .study-toc button.active { color: #fffefa !important; }
body.editorial-develop.heritage-dark #content .study-layout :is(.chapter-quizlet-item,.chapter-quizlet-front,.chapter-quizlet-back,.chapter-guided-own,.chapter-guided-own blockquote) {
  background: #323e35 !important;
  border-color: #536858 !important;
  color: #f2f4ed !important;
}
body.editorial-develop.heritage-dark #content .study-layout :is(.chapter-quizlet-front,.chapter-quizlet-back,.chapter-guided-own,.chapter-guided-own blockquote) :is(b,strong,span,small,p) { color: #f2f4ed !important; }

/* Vertalen: behoud het lichte groen terwijl de verzendknop tijdelijk uitgeschakeld is. */
body.editorial-develop:not(.heritage-dark) #content .translate-submit.busy:disabled {
  border: 1px solid #8eae8e !important;
  background: #e7f0e4 !important;
  background-image: none !important;
  color: #31573d !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: progress;
}
body.editorial-develop.heritage-dark #content .translate-submit.busy:disabled {
  border: 1px solid #8aae89 !important;
  background: #324b36 !important;
  background-image: none !important;
  color: #edf6ea !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: progress;
}

/* Mijn voortgang: hoofdstukwoorden hebben dezelfde rustige, leesbare bediening. */
#content .chapter-progress-overview { background: var(--surface, #fffdf8); }
#content .chapter-progress-overview .chapter-progress-level { display: inline-grid; gap: .35rem; margin: 1.25rem 0; color: var(--ink, #263b32); font-weight: 700; }
#content .chapter-progress-overview .chapter-progress-level select { min-width: 10rem; padding: .65rem .9rem; border: 1px solid #a6bda6; border-radius: .7rem; background: #f3f8ef; color: #294731; font: inherit; }
#content .chapter-progress-overview .vocabulary-progress-table { overflow-x: auto; }
#content .chapter-progress-overview table { width: 100%; min-width: 54rem; border-collapse: collapse; }
#content .chapter-progress-overview th, #content .chapter-progress-overview td { padding: .75rem .8rem; border-bottom: 1px solid var(--line, #dce6da); text-align: left; vertical-align: top; }
#content .chapter-progress-overview th { background: #edf4e9; color: #31573d; }
#content .chapter-progress-overview td:first-child { min-width: 15rem; }
#content .chapter-progress-overview td:first-child span { display: block; margin-top: .2rem; color: var(--muted, #617069); font-size: .9em; }
#content .chapter-progress-overview .flashcard-progress-actions { flex-wrap: wrap; }
#content .chapter-progress-overview .flashcard-progress-actions button { border-color: #acc5aa; background: #e6f1e2; color: #31573d; }
#content .chapter-progress-overview .flashcard-progress-actions button:not(:disabled):hover { border-color: #547f58; background: #d4e8d0; color: #284c31; }
#content .chapter-progress-overview tr[hidden] { display: none; }
#content .chapter-quick-vocabulary [data-chapter-progress-reveal] { padding: .65rem .9rem; border: 1px solid #acc5aa; border-radius: .7rem; background: #e6f1e2; color: #31573d; font: inherit; font-weight: 700; cursor: pointer; }
#content .chapter-quick-vocabulary [data-chapter-progress-reveal]:hover { border-color: #547f58; background: #d4e8d0; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview { background: #282b26; color: #f2f1e8; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview :is(h3, p, th, td, td:first-child span, .chapter-progress-level) { color: #f2f1e8; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview th { background: #354339; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview td { border-color: #4c574d; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview .chapter-progress-level select { border-color: #839f84; background: #354339; color: #f2f1e8; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview .flashcard-progress-actions button { border-color: #839f84; background: #354339; color: #f2f1e8; }
body.editorial-develop.heritage-dark #content .chapter-progress-overview .flashcard-progress-actions button:not(:disabled):hover { background: #44604a; color: #fff; }
body.editorial-develop.heritage-dark #content .chapter-quick-vocabulary [data-chapter-progress-reveal] { border-color: #839f84; background: #354339; color: #f2f1e8; }

/* Woordenboek: vaste uitdrukkingen krijgen hun gebruik en bestaande gecontroleerde zinnen direct in beeld. */
body.editorial-develop #content .dictionary-expression-guide { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #bdcfdc; border-radius: .8rem; background: #eef4f8; color: #263b45; }
body.editorial-develop #content .dictionary-expression-guide b { display: block; margin-bottom: .3rem; color: #294d66; }
body.editorial-develop #content .dictionary-expression-guide p { margin: 0; line-height: 1.55; color: inherit; }
body.editorial-develop #content .dictionary-expression-guide [lang="es"] { color: #a74736; font: inherit; font-weight: 700; }
body.editorial-develop #content .dictionary-example-source { margin: .25rem 0 .8rem; color: #5b6870; line-height: 1.45; }
body.editorial-develop.heritage-dark #content .dictionary-expression-guide { border-color: #607684; background: #283640; color: #f1f5f4; }
body.editorial-develop.heritage-dark #content .dictionary-expression-guide b { color: #b8d7ee; }
body.editorial-develop.heritage-dark #content .dictionary-expression-guide [lang="es"] { color: #ff9c83; }
body.editorial-develop.heritage-dark #content .dictionary-example-source { color: #d1d9d5; }


/* Huiswerk destinations match Boeken and Spaanse radio exactly. */
body.editorial-develop .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel :is(a.nav-homework-link,button.nav-homework-item){
  display:block!important;width:100%!important;min-height:0!important;
  margin:2px 0!important;padding:9px 11px!important;
  border:1px solid transparent!important;border-radius:9px!important;
  background:transparent!important;background-image:none!important;
  color:#3d5443!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,sans-serif!important;
  font-size:14px!important;font-weight:650!important;line-height:1.3!important;
  letter-spacing:0!important;text-align:left!important;text-decoration:none!important;
  text-transform:none!important;box-shadow:none!important;
}
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel :is(a.nav-homework-link,button.nav-homework-item):hover,
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel :is(a.nav-homework-link,button.nav-homework-item):focus-visible{
  border-color:#b9d0b4!important;background:#e3efdf!important;color:#284a33!important;
}
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel button.nav-homework-item.active,
body.editorial-develop:not(.heritage-dark) .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel button.nav-homework-item[aria-current="page"]{
  border-color:#91b18e!important;background:#dcebd8!important;color:#23442f!important;
  font-weight:650!important;box-shadow:inset 3px 0 0 #638d68!important;
}
body.editorial-develop.heritage-dark .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel :is(a.nav-homework-link,button.nav-homework-item){color:#e5ddce!important}
body.editorial-develop.heritage-dark .side #nav .nav-disclosure[data-nav-disclosure="homework"] .nav-disclosure-panel :is(a.nav-homework-link,button.nav-homework-item):is(:hover,:focus-visible,.active,[aria-current="page"]){
  border-color:#7c9d81!important;background:#375441!important;color:#fff8ed!important;
}

/* The menu indicator follows the actual sidebar state. */
#pageControls button[data-steer-menu] { position: relative; }
#pageControls button[data-steer-menu][aria-expanded="true"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: max(2px, var(--cs-ui-menu-active-accent-width, 3px));
  border-radius: inherit;
  background: var(--cs-ui-part-toolbar-accent, currentColor);
  pointer-events: none;
}

.site-footer:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 5rem) max(1.25rem, env(safe-area-inset-bottom));
  background: var(--cs-ui-blue, #edf2f7);
  border-top: 1px solid var(--cs-ui-line, #ccd4de);
  color: var(--cs-ui-ink, inherit);
  font-size: .875rem;
  line-height: 1.55;
}
.site-footer-info, .site-footer-proverb { display: grid; gap: .125rem; overflow-wrap: anywhere; }
.site-footer-proverb [lang="es"] { color: var(--cs-ui-spanish, inherit); }

.site-footer-admin { flex-basis: 100%; min-width: 0; }
.site-footer-admin:not(:has(#pageTextToolbar)) { display: none; }
.site-footer-admin summary { width: fit-content; cursor: pointer; padding: .45rem .7rem; font-weight: 650; }
.site-footer-admin #pageTextToolbar {
  position: static !important;
  max-width: none !important;
  width: auto !important;
  margin-top: .4rem;
  padding: 0 !important;
  gap: .45rem !important;
  flex-wrap: wrap !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
.site-footer-admin #pageTextToolbar button { flex: 0 1 auto !important; }
.site-footer-account { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; }
.site-footer-account button { min-height: 32px; padding: .25rem .65rem; }
#accountBox { display: none; border-top: 0; }

@media (max-width: 600px), (max-width: 1000px) and (max-height: 600px) and (pointer: coarse) {
  .site-footer:not([hidden]) { display: none; }
  #accountBox:not(:empty) { display: block; }
  .app:has(+ .site-footer:not([hidden])) { border-bottom: 1px solid var(--cs-ui-line, #ccd4de); }
}

/* Keep the page controls on the same grid as the compact translator. */
.shell:has(> #content > .translate-page) {
  --translate-column-width: 980px;
}
.shell:has(> #content > .translate-page) > #pageControls,
.shell > #content > .translate-page,
.shell:has(> #content > .translate-page) > #content > .page-search-results {
  width: 100%;
  max-width: var(--translate-column-width, 980px);
  margin-inline: auto;
  box-sizing: border-box;
}

/* css/admin-student-progress.css */
.admin-student-progress-picker,
.admin-student-progress-heading,
.admin-student-progress-group {
  background: var(--white, #fffefa);
  border: 1px solid var(--line, #d8dfd3);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.5rem);
  margin: 0 0 1rem;
}
.admin-student-progress-picker { display: grid; gap: .55rem; }
.admin-student-progress-picker label { font-weight: 750; color: inherit; }
.admin-student-progress-picker select { max-width: 30rem; min-height: 3rem; padding: .55rem .75rem; border-radius: 12px; }
.admin-student-progress-picker p,
.admin-student-progress-heading p { margin: 0; color: var(--muted, #58665d); }
.admin-student-progress-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.admin-student-progress-heading h2 { margin: .25rem 0 .5rem; }
.admin-student-progress-heading small { color: var(--muted, #58665d); }
.admin-student-progress-group h3 { margin: 0 0 1rem; }
.admin-student-progress-group summary { cursor: pointer; font-weight: 750; font-size: 1.15rem; color: inherit; }
.admin-student-progress-group[open] summary { margin-bottom: 1rem; }
.admin-student-progress-group summary:focus-visible { outline: 3px solid #638a69; outline-offset: 4px; border-radius: 4px; }
.admin-student-chapter-status { display: block; margin-top: .2rem; font-weight: 500; color: var(--muted, #58665d); }
.admin-student-progress-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(10rem,1fr)); gap: .75rem; }
.admin-student-progress-stat { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line, #d8dfd3); border-radius: 14px; background: var(--soft, #edf4eb); }
.admin-student-progress-stat strong { font-size: 1.5rem; line-height: 1.1; color: inherit; }
.admin-student-progress-stat span { color: var(--muted, #58665d); }
.admin-student-progress-group .vocabulary-progress-table { margin-top: 1rem; overflow-x: auto; }
.admin-student-progress-group .vocabulary-progress-table table { width: 100%; min-width: 38rem; border-collapse: collapse; }
.admin-student-progress-group .vocabulary-progress-table th,
.admin-student-progress-group .vocabulary-progress-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line, #d8dfd3); vertical-align: top; }
.admin-student-progress-group .vocabulary-progress-table thead th { background: var(--soft, #edf4eb); white-space: nowrap; }
.admin-student-progress-group .vocabulary-progress-table :is(th, td):first-child { text-align: left; width: 55%; }
.admin-student-progress-group .vocabulary-progress-table :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; }
.admin-student-progress-group .vocabulary-progress-table tbody tr:hover { background: var(--soft, #edf4eb); }
@media (max-width: 650px) { .admin-student-progress-heading { display: block; } .admin-student-progress-picker select { width: 100%; } }

/* css/admin-unified-save.css */
.admin-unified-save {
  position: sticky;
  top: .5rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border: 2px solid #adc8ad;
  border-radius: 16px;
  background: #f4faf1;
  color: #244b35;
  box-shadow: 0 8px 24px rgba(29, 54, 38, .1);
}
.admin-unified-save p { margin: .15rem 0 0; }
.admin-unified-save [data-error="true"] { color: #9b312e; font-weight: 700; }
.admin-unified-save button { min-height: 2.9rem; padding: .6rem 1.1rem; border-radius: 10px; background: #dcecd8; border: 2px solid #699773; color: #244b35; font-weight: 750; }
.admin-unified-save button:not(:disabled):hover { background: #cbe3c7; border-color: #315c3d; }
.admin-unified-save button:disabled { opacity: .75; cursor: default; }
.user-row.has-unsaved-changes { outline: 2px solid #699773; outline-offset: 2px; }
.user-row.has-unsaved-changes .user-identity > b::after { content: ' · niet opgeslagen'; color: #315c3d; font-size: .75em; }
[data-user-access-save], [data-admin-content-save], #saveMenuLayout { display: none !important; }
@media (max-width: 650px) { .admin-unified-save { flex-direction: column; align-items: stretch; } .admin-unified-save button { width: 100%; } }
body.dark .admin-unified-save, body[data-theme="dark"] .admin-unified-save { background: #243629; border-color: #638a69; color: #edf5e9; }

/* Keep the real save action in the always-visible top edge. */
#pageControls [data-admin-top-save] { flex: none; min-height: 44px; padding: .55rem .85rem; border: 2px solid #ad3737; border-radius: 11px; background: #c74742; color: #fff; font-weight: 800; white-space: nowrap; }
#pageControls [data-admin-top-save]:not(:disabled):hover { background: #a92f2d; border-color: #812322; color: #fff; }
#pageControls [data-admin-top-save]:disabled { background: #f5e5e1; border-color: #d7bbb5; color: #785e58; cursor: default; }
#pageControls [data-admin-top-save]:focus-visible { outline: 3px solid #a92f2d; outline-offset: 2px; }

/* One document scroll; the short chapter menu remains independently scrollable. */
@media (min-width: 901px) {
  #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace) { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; }
  #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace) > .dev-hero { margin-bottom: 1rem !important; }
  #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace) > .dev-workspace { display: grid !important; grid-template-columns: minmax(235px,285px) minmax(0,1fr) !important; align-items: start !important; gap: 1rem !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace) > .dev-workspace > .dev-workspace-nav { position: sticky !important; top: calc(var(--steer-bottom,92px) + 8px) !important; grid-column: 1 !important; grid-row: 1 !important; height: auto !important; max-height: calc(100dvh - var(--steer-bottom,92px) - 18px) !important; overflow-y: auto !important; }
  #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace) > .dev-workspace > .dev-workspace-content { grid-column: 2 !important; grid-row: 1 !important; height: auto !important; max-height: none !important; overflow: visible !important; padding-right: 0 !important; }
}
.admin-task-drawer { margin: 0 0 1rem; border: 1px solid #bed4ba; border-radius: 13px; background: #f2f8ef; }
.admin-task-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; color: #285239; cursor: pointer; font-weight: 700; }
.admin-task-drawer > summary::after { content: '⌄'; margin-left: auto; font-size: 1.3rem; }
.admin-task-drawer[open] > summary::after { content: '⌃'; }
.admin-task-drawer > summary b { margin-left: .5rem; color: #476a4d; }
.admin-task-drawer .admin-task-menu { position: static !important; display: flex !important; flex-wrap: wrap; gap: .5rem; width: auto !important; margin: 0 !important; padding: .75rem 1rem 1rem !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.admin-task-drawer .admin-task-menu::before { display: none !important; }
.admin-task-drawer .admin-task-menu button { width: auto !important; border: 1px solid #bdd3b8 !important; border-radius: 9px !important; background: #fff !important; color: #285239 !important; }
.admin-task-drawer .admin-task-menu button.active { border-color: #668e6a !important; background: #e1efdd !important; color: #285239 !important; }
body.dark .admin-task-drawer, body[data-theme="dark"] .admin-task-drawer { background: #243629; border-color: #638a69; }
body.dark .admin-task-drawer > summary, body[data-theme="dark"] .admin-task-drawer > summary { color: #edf5e9; }
body.dark .admin-task-drawer > summary b, body[data-theme="dark"] .admin-task-drawer > summary b { color: #c9dfc8; }

/* css/practice-refresh.css */
.cs-practice-category-choices { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; padding: .85rem 1rem; border: 1px solid #bfd2ba; border-radius: 14px; background: #f1f7ed; }
.cs-practice-category-choices > span { margin-right: .35rem; font-weight: 750; color: #315c3d; }
.cs-practice-category-choices button { border: 1px solid #93b292; border-radius: 999px; background: #e4efe0; padding: .45rem .8rem; color: #2d583b; font-weight: 700; cursor: pointer; }
.cs-practice-category-choices button:hover,.cs-practice-category-choices button.active { border-color: #315c3d; background: #d0e6cd; }
.cs-practice-rows .cs-practice-table { border-color: #bfd2ba; background: #fffefa; }
.cs-practice-rows .cs-practice-table-caption { color: #4d6551; }
.cs-practice-rows .cs-practice-table thead th { background: #e4efe0; color: #244b35; }
.cs-practice-rows .cs-practice-table tbody th { background: #f1f7ed; }
.cs-practice-rows .cs-practice-table th,.cs-practice-rows .cs-practice-table td { border-bottom-color: #d6e3d1; }
.cs-practice-rows .cs-practice-table tbody th > button { color: #244b35; border-bottom: 1px solid currentColor; cursor: pointer; }
.cs-practice-rows .cs-practice-topic-link { min-height: 2.4rem; padding: .4rem .65rem; border: 1px solid transparent; border-radius: 8px; color: #244b35; text-align: left; cursor: pointer; }
.cs-practice-rows .cs-practice-topic-link:hover,.cs-practice-rows .cs-practice-topic-link:focus-visible { background: #dcebd8; border-color: #699773; color: #244b35; }
.cs-practice-rows .cs-practice-crumb { background: #f1f7ed; border-color: #bfd2ba; color: #244b35; }
.cs-practice-rows .cs-practice-crumb button { color: #244b35; border: 1px solid #93b292; background: #fffefa; }
.cs-practice-rows .practical-hub-hero { background: #f1f7ed; border-color: #bfd2ba; }
body.dark .cs-practice-rows :is(.cs-practice-table,.cs-practice-category-choices,.cs-practice-crumb,.practical-hub-hero),body[data-theme="dark"] .cs-practice-rows :is(.cs-practice-table,.cs-practice-category-choices,.cs-practice-crumb,.practical-hub-hero) { background: #25372b; color: #eef6ea; border-color: #5e8062; }
body.dark .cs-practice-rows .cs-practice-table :is(th,td),body[data-theme="dark"] .cs-practice-rows .cs-practice-table :is(th,td) { background: #25372b; color: #eef6ea; border-color: #405944; }
body.dark .cs-practice-rows .cs-practice-table button,body[data-theme="dark"] .cs-practice-rows .cs-practice-table button { color: #e0f1d9; }

/* Category-first practice hub: no tall empty hero or repeated category lists. */
.cs-practice-rows { gap: 12px; }
.cs-practice-rows > .back { display: none; }
.cs-practice-rows .practical-hub-hero { display: block; margin: 0; padding: 17px 24px; border-radius: 17px; box-shadow: none; }
.cs-practice-rows .practical-hub-hero h1 { margin: 3px 0 5px; font-size: clamp(29px,3vw,42px); line-height: 1.1; }
.cs-practice-rows .practical-hub-hero p { font-size: 15px; line-height: 1.4; }
.cs-practice-rows .cs-practice-category-choices { scroll-margin-top: calc(var(--steer-bottom,92px) + 12px); }
.cs-practice-rows .cs-practice-pick-hint { margin: 0; padding: 1.5rem; border: 1px dashed #a9c5a5; border-radius: 13px; background: #f9fcf7; color: #315c3d; }
body.dark .cs-practice-rows .cs-practice-pick-hint,body[data-theme="dark"] .cs-practice-rows .cs-practice-pick-hint { background: #25372b; border-color: #5e8062; color: #eef6ea; }

.practice-context-help{padding:.55rem .8rem;border:1px solid var(--line,#d8dee6);border-radius:.6rem;margin:.6rem 0}
.practice-context-help summary{cursor:pointer;font-weight:700;width:fit-content}
.practice-context-help>div{margin-top:.5rem}
.practice-context-help p{margin:.25rem 0}
.practice-context-help ol{margin:.35rem 0;padding-inline-start:1.5rem}
.practice-context-help li+li{margin-top:.4rem}

/* css/relation-map-decks.css */
.relation-deck-gateway{display:grid;gap:12px;margin:18px 0;padding:18px;border:1px solid #c8d9c8;border-radius:18px;background:#f2f7ef;color:#264636}
.relation-deck-gateway h3{margin:0;font-size:19px;color:#264636}
.relation-deck-gateway p{margin:0;color:#536a5b;line-height:1.45}
.relation-deck-choices{display:grid;gap:10px}
.relation-deck-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #d1dfcc;border-radius:13px;background:#fff}
.relation-deck-choice>div:first-child{display:grid;gap:3px;min-width:0}
.relation-deck-choice span{color:#65836a;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.relation-deck-choice b{color:#263b30;font-size:16px}
.relation-deck-choice small{color:#536a5b;font-size:12px}
.relation-deck-choice-actions{display:flex;flex-wrap:wrap;gap:8px}
.relation-deck-choice-actions button,.relation-deck-map-action{min-height:42px;padding:9px 13px;border:1px solid #9fbea3;border-radius:10px;background:#e4efe1;color:#294f36;font-weight:750;cursor:pointer}
.relation-deck-choice-actions button:hover,.relation-deck-choice-actions button:focus-visible,.relation-deck-map-action:hover,.relation-deck-map-action:focus-visible{border-color:#376348;background:#d0e4cd;color:#21442e}
.relation-deck-choice-actions .relation-deck-start,.relation-deck-map-action{border-color:#477452;background:#d8ead5;color:#264b32}
.relation-deck-map-action{margin-top:15px}
.relation-deck-word-gateway{margin-top:0}
body.editorial-develop.heritage-dark #content .relation-deck-gateway{border-color:#526853;background:#2c392e;color:#eef4e9}
body.editorial-develop.heritage-dark #content .relation-deck-choice{border-color:#546b56;background:#344336}
body.editorial-develop.heritage-dark #content .relation-deck-gateway :is(h3,b){color:#f0f6ed!important}
body.editorial-develop.heritage-dark #content .relation-deck-gateway :is(p,small,span){color:#d0dfcc!important}
body.editorial-develop.heritage-dark #content .relation-deck-gateway button,body.editorial-develop.heritage-dark #content .relation-deck-map-action{border-color:#8db492;background:#426348;color:#f4f8ef}
@media(max-width:700px){.relation-deck-gateway{padding:13px}.relation-deck-choice{align-items:stretch;flex-direction:column}.relation-deck-choice-actions{display:grid;grid-template-columns:1fr 1fr}.relation-deck-choice-actions button{font-size:13px}}

/* css/personal-word-lists.css */
.own-words{display:grid;gap:20px;width:100%;max-width:1320px;margin:auto;color:#263b35}
.own-words [hidden]{display:none!important}
.own-words-step-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.own-words-step-options button{display:grid;gap:10px;min-height:138px;padding:22px;border:2px solid #b6d0b1;border-radius:16px;background:#fff;color:#284a34;text-align:left;cursor:pointer}
.own-words-step-options button:hover{border-color:#5e8c61;background:#edf7e9}
.own-words-step-options button strong{font-size:1.25rem}
.own-words-step-options button span{color:#526b58;line-height:1.45}
.own-words-step button:focus-visible{outline:3px solid #6c9f72;outline-offset:3px}
.own-words-step{display:grid;gap:12px;padding:22px 26px;border:1px solid #ccddc8;border-radius:18px;background:#f4f9f1}
.own-words-step-nav{display:flex;flex-wrap:wrap;gap:8px}
.own-words-step-nav button{padding:9px 12px;border:1px solid #a7c6a3;border-radius:9px;background:#fff;color:#315b3d;font-weight:800}
.own-words-step h1{margin:0;color:#263b35;font:700 clamp(1.8rem,4vw,2.7rem) Georgia,serif}
.own-words-step>p{margin:0;color:#526b58}
.own-words-step-options button:disabled{opacity:.55;cursor:not-allowed}
.own-words .own-words-step .own-words-message{margin:0}
.own-words-step .own-words-message:empty{display:none}
.own-words:has(.own-words-step) .own-words-lists{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
.own-words[data-stage="open"] .own-words-layout{grid-template-columns:1fr}
.own-words[data-stage="list"] .own-words-layout{grid-template-columns:minmax(0,1fr)}
.own-words-open-direction{display:grid;gap:5px;max-width:280px;color:#315b3d;font-weight:800}
.own-words-open-direction select{min-height:44px;padding:8px 12px;border:1px solid #a7c6a3;border-radius:10px;background:#fff;color:#263b35;font:inherit}
.own-words-list-choice{display:grid;gap:14px;padding:18px;border:1px solid #b8d0b4;border-radius:14px;background:#fff;color:#263b35}
.own-words-list-choice>div:first-child{display:grid;gap:4px;min-width:0}
.own-words-list-choice strong{font-size:1.15rem;overflow-wrap:anywhere}
.own-words-list-mode-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.own-words-list-choice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.own-words-list-choice-actions .own-words-list-export{grid-column:auto}
.own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button{display:block;min-height:46px;padding:9px 8px;border:1px solid #6f9b72;border-radius:10px;background:#fff;color:#315b3d;text-align:center;font-weight:800;cursor:pointer}
.own-words .own-words-list-mode-actions [data-own-list-practice]{background:#dcebd8;color:#234b31}
.own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button:hover{border-color:#315b3d;background:#ecf6e9}
.own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button:disabled{opacity:.5;cursor:not-allowed}
.own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button:focus-visible,.own-words-open-direction select:focus-visible{outline:3px solid #6c9f72;outline-offset:2px}
.own-words .own-words-practice-actions{scroll-margin-top:155px}
@media(max-width:480px){.own-words-list-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.own-words-list-mode-actions [data-own-list-practice]{grid-column:1/-1}}
.flashcard-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0}
body.editorial-develop:not(.heritage-dark) #content .flashcard-type-grid label{border:1px solid #d7dfd0!important;background:#fffefa!important;box-shadow:none!important}
body.editorial-develop:not(.heritage-dark) #content .flashcard-type-grid label:hover{border-color:#83a985!important;background:#f2f8ee!important}
body.editorial-develop:not(.heritage-dark) #content .flashcard-type-grid label:has(input:checked){border:2px solid #719b74!important;background:#e5f1e1!important;box-shadow:inset 0 0 0 1px #b9d0b5!important}
body.editorial-develop:not(.heritage-dark) #content .flashcard-type-grid input{accent-color:#39784a!important}
body.heritage-dark #content .flashcard-type-grid label,body.dark #content .flashcard-type-grid label{border-color:#647d67!important;background:#26372b!important;box-shadow:none!important}
body.heritage-dark #content .flashcard-type-grid label:has(input:checked),body.dark #content .flashcard-type-grid label:has(input:checked){border-color:#a4c59f!important;background:#365940!important;box-shadow:inset 0 0 0 1px #7fa481!important}
body.heritage-dark #content .flashcard-type-grid :is(b,small),body.dark #content .flashcard-type-grid :is(b,small){color:#eef5e9!important}
body.heritage-dark #content .flashcard-type-grid input,body.dark #content .flashcard-type-grid input{accent-color:#b7d6b0!important}
@media(max-width:520px){.flashcard-source-grid{grid-template-columns:1fr}}
.own-words-flashcard-picker{max-width:1050px}
.own-words-picker-back{justify-self:start;border:1px solid #a7c6a3;border-radius:9px;background:#fff;color:#315b3d;padding:9px 12px;font-weight:800}
.own-words-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}
.own-words-picker-list{display:grid;align-content:start;gap:12px;min-width:0;padding:20px;border:1px solid #cbdcc7;border-radius:16px;background:#fff}
.own-words-picker-list h2{margin:0;color:#263b35;font:700 1.5rem Georgia,serif;overflow-wrap:anywhere}
.own-words-picker-list p{margin:0;color:#536b58}
.own-words-picker-list details{border:1px solid #d9e5d5;border-radius:10px;background:#f7fbf4}
.own-words-picker-list summary{padding:11px 13px;cursor:pointer;font-weight:800;color:#315b3d}
.own-words-picker-list ul{display:grid;gap:0;max-height:300px;overflow:auto;list-style:none;margin:0;padding:0 13px 12px}
.own-words-picker-list li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:8px 0;border-top:1px solid #e0e9dc;overflow-wrap:anywhere}
.own-words-picker-actions{display:grid;gap:8px}
.own-words-picker-actions button,.own-words-empty [data-own-picker-create]{min-height:44px;border:1px solid #8fb48c;border-radius:9px;background:#e4f1df;color:#315b3d;padding:10px 12px;font-weight:800}
.own-words-picker-actions button:disabled{opacity:.55;cursor:not-allowed}
.own-words-picker-actions label{font-weight:800;color:#315b3d}
.own-words button{cursor:pointer}
.own-words-mobile-quick{display:none}
.own-words-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;border:1px solid #c9dcc6;border-top:6px solid #86a983;border-radius:22px;background:linear-gradient(115deg,#edf5e9,#fff8eb)}
.own-words-hero span,.own-words-list-header span{font-size:.76rem;font-weight:800;letter-spacing:.12em;color:#5b785f}
.own-words-hero h1{font:700 clamp(2rem,4vw,3.6rem) Georgia,serif;margin:.3em 0;color:#233a34}
.own-words-hero p{max-width:76ch;line-height:1.55;margin:0;color:#4c5c54}
.own-words-hero>b{flex:none;border:1px solid #b7d1b1;border-radius:15px;background:#fff;padding:15px 22px;color:#416548}
.own-words-create,.own-words-add{display:grid;gap:12px;padding:22px;border:1px solid #d5e3d0;border-radius:18px;background:#fff}
.own-words-paste{display:grid;gap:12px;padding:20px 22px;border:1px solid #d5e3d0;border-radius:18px;background:#f5faf2}
.own-words-paste h2,.own-words-paste p{margin:0}
.own-words-paste h2{font:700 1.4rem Georgia,serif}
.own-words-paste p,.own-words-paste small{color:#536c57}
.own-words-paste-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,280px);gap:12px}
.own-words-paste>button{justify-self:start;border:2px solid #a4c6a0!important;border-radius:11px!important;background:#e4f1df!important;color:#315b3d!important;padding:12px 18px;font-weight:800}
.own-words-paste>button:hover{background:#cde4c7!important;border-color:#315b3d!important;color:#24452e!important}
.own-words-import{display:flex;align-items:end;flex-wrap:wrap;gap:8px 20px;padding:14px 18px;border:1px solid #d5e3d0;border-radius:14px;background:#f2f8ef}
.own-words-import label{min-width:min(100%,320px)}
.own-words-import small{color:#536c57}
.own-words input[type=file]::file-selector-button{border:1px solid #8fb38e;border-radius:8px;background:#e4f1df;color:#315b3d;padding:8px 12px;margin-right:12px;font-weight:800;cursor:pointer}
.own-words-create{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.own-words label{display:grid;gap:7px;font-weight:700}
.own-words :is(input,select,textarea){width:100%;min-width:0;border:1px solid #a9bda7;border-radius:10px;background:#fff;color:#223831;padding:12px 14px;font:inherit}
.own-words textarea{resize:vertical;line-height:1.5}
.own-words :is(input,select,textarea):focus-visible,.own-words button:focus-visible{outline:3px solid #78a97b;outline-offset:2px}
.own-words :is(.own-words-create,.own-words-add,.own-words-practice-actions,.own-words-result,.own-words-review,.own-words-image-picker) button{border:2px solid #a4c6a0!important;border-radius:11px!important;background:#e4f1df!important;color:#315b3d!important;padding:12px 18px;font-weight:800}
.own-words :is(.own-words-create,.own-words-add,.own-words-practice-actions,.own-words-result,.own-words-review,.own-words-image-picker) button:hover{background:#cde4c7!important;border-color:#315b3d!important;color:#24452e!important}
.own-words-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:20px}
.own-words-lists{display:grid;align-content:start;gap:8px;padding:12px;border:1px solid #d5e3d0;border-radius:16px;background:#f2f7ef}
.own-words-lists button{display:grid;gap:3px;text-align:left;padding:13px;border:1px solid #d1dfcd;border-radius:10px;background:#fff;color:#2c4437}
.own-words .own-words-lists button.active,.own-words .own-words-lists button[aria-current="true"]{border:2px solid #527b54!important;background:#dcebd8!important;color:#294b32!important}
.own-words-lists small{color:#637068}
body.editorial-develop:not(.heritage-dark) #content .own-words .own-words-lists button.active,body.editorial-develop:not(.heritage-dark) #content .own-words .own-words-lists button[aria-current="true"]{border:2px solid #648d68!important;background:#e0efdd!important;color:#234a32!important;box-shadow:inset 0 0 0 1px #a7c7a7!important}
body.editorial-develop:not(.heritage-dark) #content .own-words .own-words-lists button.active :is(strong,small),body.editorial-develop:not(.heritage-dark) #content .own-words .own-words-lists button[aria-current="true"] :is(strong,small){color:#234a32!important}
body.editorial-develop:not(.heritage-dark) #content .own-words .own-words-lists button:hover{border-color:#315b3d!important;background:#edf6e9!important;color:#234a32!important}
.own-words-main{min-width:0;display:grid;align-content:start;gap:18px;container:ownWords / inline-size}
.own-words-list-header{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:20px;border:1px solid #d5e3d0;border-radius:16px;background:#fff}
.own-words-list-header h2{margin:7px 0;font:700 1.8rem Georgia,serif}
.own-words-list-header p{margin:0;color:#66736b}
.own-words-list-actions{display:flex;flex-wrap:wrap;gap:7px}
.own-words[data-stage="list"] .own-words-list-actions{justify-content:flex-end}
@container ownWords (max-width: 850px){
  .own-words-list-header{display:grid}
  .own-words-list-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .own-words-list-actions button{min-height:44px}
}
.own-words-list-actions button,.own-words-table-wrap button{border:1px solid #cad9c7;border-radius:8px;background:#fff;color:#395b41;padding:8px 10px;font-weight:700}
.own-words-list-actions button:hover,.own-words-table-wrap button:hover{background:#e7f2e2;border-color:#648e68}
.own-words-add h3{margin:0;font:700 1.4rem Georgia,serif}
.own-words-add small{color:#66736b}
.own-words-message{min-height:1.5em;margin:0;color:#375f40}
.own-words-message.is-error{color:#9b3f35}
.own-words-review{display:grid;gap:14px;padding:22px;border:2px solid #c4a76f;border-radius:16px;background:#fffaf0}
.own-words-review h3,.own-words-review p{margin:0}
.own-words-review p{color:#695a40;line-height:1.5}
.own-words-review-rows{display:grid;gap:10px}
.own-words-review-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end;padding:14px;border:1px solid #e0d3b9;border-radius:12px;background:#fff}
.own-words-review-row label:first-child{display:flex;align-items:center;white-space:nowrap}
.own-words-review-row input[type="checkbox"]{width:auto}
.own-words-review-row small{grid-column:1/-1;color:#755b30}
.own-words-spelling{grid-column:1/-1;display:grid;gap:8px;color:#315b3d;line-height:1.45}
.own-words-spelling:empty{display:none}
.own-words-spelling p{color:#8a3e35}
.own-words-spelling button{justify-self:start;max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.own-words-spelling label{display:flex;align-items:center;gap:8px;white-space:normal!important}
.own-words-review>button{justify-self:start}
.own-words-progress{display:grid;gap:9px}
.own-words-progress-table{overflow-x:auto}
.own-words-progress-table table{min-width:860px;width:100%;border-collapse:collapse}
.own-words-progress-table :is(th,td){padding:13px 12px;border-bottom:1px solid #dce6de;text-align:left;vertical-align:middle}
.own-words-progress-table th{background:#edf5ec;color:#315b3d;white-space:nowrap}
.own-words-progress-table td:not(:first-child):not(:last-child){font-variant-numeric:tabular-nums}
.own-words-progress-table .own-words-progress-name{padding:0;border:0;background:transparent;color:#2f4d3a;text-align:left;text-decoration:underline;text-underline-offset:3px}
.own-words-progress-table .own-words-progress-name:hover{color:#1d6533}
.own-words-progress-table .own-words-progress-actions{display:flex;flex-wrap:wrap;gap:5px}
.own-words-progress-table .own-words-progress-actions button{padding:7px 9px;border:1px solid #a9c5aa;border-radius:8px;background:#fff;color:#315b3d;white-space:nowrap}
.own-words-progress-table .own-words-progress-actions button:disabled{opacity:.45;cursor:not-allowed}
.own-words-progress-table .own-words-progress-detail[hidden]{display:none}
.own-words-progress-table .own-words-progress-detail>td{padding:14px 18px;background:#f8fbf6}
.own-words-progress-table .own-words-progress-list{border:0;background:transparent}
.own-words-progress-table .own-words-progress-list>summary{display:none}
.own-words-progress-table .own-words-progress-body{border:0;border-radius:12px}
.own-words-progress article{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:14px 16px;border:1px solid #c9dcc6;border-radius:11px;background:#f2f8ef;color:#294d35}
.own-words-progress article span{color:#526757}
.own-words-progress button,[data-personal-progress]>button{justify-self:start;padding:11px 16px;border:2px solid #a4c6a0;border-radius:10px;background:#e4f1df;color:#315b3d;font-weight:800}
.own-words-progress button:hover,[data-personal-progress]>button:hover{border-color:#315b3d;background:#cde4c7}
.own-words-practice-actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.own-words-direction{display:grid;gap:6px;color:#315b3d;font-weight:800}
.own-words-direction select,.own-words-progress-tools select{min-width:210px;padding:11px 13px;border:1px solid #8dad8d;border-radius:10px;background:#fff;color:#254631;font:inherit}
.own-words-progress-list{min-width:0;border:1px solid #c9dcc6;border-radius:12px;background:#f2f8ef;color:#294d35;overflow:hidden}
.own-words-progress-list>summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:15px 18px;cursor:pointer;font-weight:800}
.own-words-progress-list>summary:hover{background:#e5f1e1}
.own-words-progress-list>summary span{color:#526757;font-weight:500}
.own-words-progress-body{display:grid;gap:16px;padding:16px;border-top:1px solid #c9dcc6;background:#fff}
.own-words-progress-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.own-words-progress-tools label{display:grid;gap:5px;font-weight:800}
.own-words-progress-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:10px}
.own-words-progress .own-words-progress-card{display:grid;align-content:center;gap:9px;min-height:115px;width:100%;padding:14px;border:1px solid #b8d0b4;border-radius:13px;background:#f5faf2;color:#294d35;text-align:center;overflow-wrap:anywhere}
.own-words-progress .own-words-progress-card strong{font-size:1.08rem}
.own-words-progress .own-words-progress-card small{color:#607366;font-size:.78rem;font-weight:500}
.own-words-progress .own-words-progress-card[data-flipped="true"]{background:#e4f1df;border-color:#779f77}
.own-words-progress-card{display:grid;place-content:center;min-height:116px;width:100%;padding:14px;border:1px solid #b8d0b4;border-radius:13px;background:#fffaf0;text-align:center;overflow-wrap:anywhere}
.own-words-progress-card strong{font-size:1.08rem}
.own-words-progress-card[data-language="es"] strong{color:#805940}
.own-words-progress-card[data-language="translation"] strong{color:#2d6287}
.own-words-grid-help{margin:8px 0 12px;color:#50645a}
.own-words-grid-help,.own-words-inline-grid>.own-words-progress-tools{grid-column:1/-1}
.own-words-grid-item{min-width:0;padding:7px;border:1px solid #d6e4d2;border-radius:15px;background:#f7faf4}
.own-words-grid-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
.own-words-grid-grades[hidden],.own-words-inline-grid[hidden]{display:none!important}
.own-words-grid-grades button{min-width:0;padding:8px 3px;border:1px solid #6c936e;border-radius:8px;background:#e2efdc;color:#2e5635;font-size:.76rem;font-weight:800}
.own-words-grid-grades button[data-own-grid-grade="almost"]{border-color:#ad8740;background:#fff0d8;color:#654d25}
.own-words-grid-grades button[data-own-grid-grade="unknown"]{border-color:#b47769;background:#fae8e5;color:#703e35}
.own-words-grid-grades button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px}
.own-words-inline-grid{margin:14px 0;padding:16px;border:1px solid #c8d9c3;border-radius:15px;background:#f8fbf6}
.own-words-practice-actions [aria-pressed="true"]{outline:2px solid #5d8b65;outline-offset:2px}
.own-words-progress :is(button,select):focus-visible,.own-words-progress-list>summary:focus-visible{outline:3px solid #6b9a70;outline-offset:2px}
.own-words-table-wrap{overflow-x:auto;border:1px solid #d5e3d0;border-radius:14px;background:#fff}
.own-words-table-wrap table{width:100%;border-collapse:collapse}
.own-words-table-wrap :is(th,td){padding:12px;border-bottom:1px solid #e0e9dc;text-align:left;vertical-align:middle}
.own-words-table-wrap th{background:#eaf3e6;color:#355744}
.own-words-table-wrap td:last-child{white-space:nowrap}
.own-words-provider{display:block;margin-top:3px;font-size:.72rem;color:#6a786c}
.own-words-table-wrap td button+button{margin-left:5px}
.own-words-image-box{position:relative;width:120px;height:88px;border:1px dashed #9cba99;border-radius:10px;overflow:hidden;background:#fafdf8}
.own-words-image-box img{display:block;width:100%;height:100%;object-fit:cover}
.own-words-image-drop-hint{position:absolute;inset:auto 3px 3px;z-index:1;padding:3px;border-radius:5px;background:#f7fbf2e8;color:#315b3d;font-size:.64rem;font-weight:700;text-align:center;pointer-events:none}
.own-words-table-wrap td.is-dragging .own-words-image-box{border:3px solid #47734d;background:#e1f1db}
.own-words-table-wrap td.is-dragging .own-words-image-drop-hint{inset:0;display:grid;place-items:center;font-size:.75rem}
.own-words-image-empty{display:block;width:100%;height:100%;background:linear-gradient(135deg,#f8fbf6,#eef5e9)}
.own-words-table-wrap td:has(.own-words-image-box){min-width:180px}
.own-words-table-wrap td:has(.own-words-image-box)>button{display:block;margin:6px 0 0;padding:5px 8px;font-size:.8rem}
.own-words-table-wrap td:has(.own-words-image-box)>.own-words-upload-button{border-color:#8eaf87;background:#edf6e9;color:#315b3d;font-weight:700}
.own-words-hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.own-words-upload-feedback:not(:empty){display:block;margin-top:5px;color:#315b3d;font-size:.75rem}
/* The site sidebar can narrow this pane even on a desktop-sized viewport. */
@container ownWords (max-width: 900px){
  .own-words-table-wrap{overflow:visible;border:0;background:transparent}
  .own-words-table-wrap table,.own-words-table-wrap tbody{display:block;width:100%}
  .own-words-table-wrap thead{display:none}
  .own-words-table-wrap tbody{display:grid;gap:12px}
  .own-words-table-wrap tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #cbdcc7;border-radius:15px;background:#fff}
  .own-words-table-wrap td,.own-words-table-wrap td:has(.own-words-image-box){display:block;min-width:0;padding:0;border:0;overflow-wrap:break-word;word-break:normal}
  .own-words-table-wrap td:first-child,.own-words-table-wrap td:nth-child(2){font-weight:800;font-size:1.05rem;line-height:1.35}
  .own-words-table-wrap td:first-child::before,.own-words-table-wrap td:nth-child(2)::before,.own-words-table-wrap td:nth-child(4)::before{display:block;margin-bottom:5px;color:#59735d;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .own-words-table-wrap td:first-child::before{content:'Spaans'}
  .own-words-table-wrap td:nth-child(2)::before{content:'Nederlands'}
  .own-words-table-wrap td:nth-child(4)::before{content:'Status'}
  html[lang="en"] .own-words-table-wrap td:first-child::before{content:'Spanish'}
  html[lang="en"] .own-words-table-wrap td:nth-child(2)::before{content:'Dutch'}
  .own-words-table-wrap td:nth-child(3),.own-words-table-wrap td:nth-child(4),.own-words-table-wrap td:last-child{grid-column:1/-1}
  .own-words-table-wrap td:nth-child(3){display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #e0e9dc;padding-top:12px}
  .own-words-table-wrap td:nth-child(3)>button{display:inline-flex;align-items:center;min-height:42px;margin:0;padding:8px 10px;font-size:.85rem}
  .own-words-table-wrap td:nth-child(3) .own-words-image-credit{flex-basis:100%}
  .own-words-table-wrap td:nth-child(4){display:block;padding-top:2px}
  .own-words-table-wrap td:last-child{display:flex;gap:8px;white-space:normal}
  .own-words-table-wrap td:last-child button{flex:1;min-height:44px;margin:0}
  .own-words-table-wrap td button+button{margin-left:0}
  .own-words-image-box{flex:none;width:96px;height:76px}
}
@container ownWords (max-width: 480px){
  .own-words-table-wrap tr{grid-template-columns:1fr}
  .own-words-table-wrap td:first-child,.own-words-table-wrap td:nth-child(2){grid-column:1}
}
.own-words-image-credit{display:block;margin-top:6px;font-size:.72rem;overflow-wrap:anywhere}
.own-words-image-credit a{color:#355e45}
.own-words-image-picker{display:grid;gap:12px;padding:20px;border:1px solid #a8c6a3;border-radius:16px;background:#f2f8ef}
.own-words-upload-zone{display:grid;gap:8px;padding:20px;border:2px dashed #8eaf87;border-radius:14px;background:#fff;color:#315b3d}
.own-words-upload-zone.is-dragging{border-color:#315b3d;background:#dcefd6}
.own-words-upload-zone input{max-width:100%}
.own-words-image-picker h3,.own-words-image-picker p{margin:0}
.own-words-image-picker form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.own-words-image-picker form label{flex:1 1 220px}
.own-words-image-picker .own-words-external-image{display:grid;gap:10px;align-items:stretch;padding:16px;border:1px solid #bbd1b6;border-radius:12px;background:#fff}
.own-words-external-image strong{color:#254b32}
.own-words-external-image small{color:#566d5a;line-height:1.5}
.own-words-image-picker .own-words-external-image label{width:100%}
.own-words-external-image button{justify-self:start}
.own-words-external-image button:disabled{opacity:.55;cursor:not-allowed}
.own-words-external-preview{display:grid;place-items:center;min-height:100px;padding:12px;border:1px dashed #a6bfa0;border-radius:10px;background:#f4f9f1;color:#4c6250;text-align:center}
.own-words-external-preview-image{max-width:min(100%,280px);max-height:180px;object-fit:contain}
.own-words-google-link{justify-self:start;border:1px solid #93b48d;border-radius:9px;background:#fff;color:#315b3d;padding:9px 13px;font-weight:800;text-decoration:none}
.own-words-google-link:hover{border-color:#315b3d;background:#e4f1df;color:#24452e}
.own-words-image-picker>small{color:#536c57}
.own-words-image-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.own-words .own-words-image-results button{display:grid;gap:6px;text-align:left;align-content:start;padding:8px!important;background:#fff!important}
.own-words-image-results img{width:100%;height:110px;object-fit:cover;border-radius:7px}
.own-words-image-results span{overflow-wrap:anywhere;font-size:.78rem}
.own-words-image-results small{font-size:.7rem}
.own-words-image-fallback{display:grid;place-items:center;width:100%;height:100%;padding:6px;color:#536c57;font-size:.76rem;text-align:center}
.own-words-image-fallback[hidden]{display:none}
.own-words-round-image{max-width:min(100%,280px);max-height:160px;object-fit:contain;margin:auto;border-radius:10px}
.own-words-empty{padding:24px;border:1px dashed #b6cbb1;border-radius:14px;background:#fbfdf9}
.own-words-card{display:grid;gap:20px;width:min(100%,680px);min-height:280px;margin:15px auto;padding:32px;border:2px solid #89ad86;border-radius:24px;background:#f7fbf4;color:#203b2b;text-align:center;align-content:center;box-shadow:0 12px 30px #31553919}
.own-words-card span{font-size:clamp(1.4rem,3vw,2.5rem);font-weight:800}
.own-words-card strong{font-size:clamp(1.6rem,4vw,3rem);color:#446c4a}
.own-words-card small{color:#5d7061}
.own-words-grades{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.own-words-grades button{padding:14px 22px;border:2px solid #507b55;border-radius:12px;background:#e2f0dc;color:#2e5635;font-weight:800}
.own-words-grades button[data-own-grade="almost"]{background:#fff0d8;border-color:#ad8740;color:#654d25}
.own-words-grades button[data-own-grade="unknown"]{background:#fae8e5;border-color:#b47769;color:#703e35}
.own-words-grades button:hover{filter:brightness(.94)}
.cs-grade-actions,#content .cs-grade-actions,body #content .theme-vocabulary-panel .cs-grade-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch;gap:8px!important;width:100%}
.cs-grade-actions .cs-grade-question{grid-column:1/-1;margin:0 0 2px;color:#425f4c;text-align:center;font-size:.9rem;font-weight:800}
.cs-grade-actions>button:not(.spanish-audio-button){width:100%!important;min-width:0!important;min-height:46px;margin:0!important;padding:9px 5px!important;border-radius:10px!important;font-size:clamp(.8rem,2.5vw,1rem)!important;line-height:1.15}
#content .cs-grade-actions>.spanish-audio-button{grid-column:1/-1;justify-self:center}
.own-words-result{display:grid;gap:10px;justify-items:center;padding:30px;border-radius:18px;background:#f4f9f1}
.flashcard-player footer .almost,.chapter-quick-actions .almost,.chapter-quizlet-actions .almost{border:1px solid #bc9558!important;background:#fff1d9!important;color:#604b28!important}
body.editorial-develop #content .cs-grade-actions>button[data-cs-almost],body.editorial-develop #content .cs-grade-actions>button[data-flashcard-answer="almost"]{border:2px solid #b58d45!important;background:#fff0d5!important;color:#604b28!important}
body.editorial-develop #content .cs-grade-actions>button[data-cs-almost][aria-pressed="true"]{background:#f2dcae!important;border-color:#9c752e!important}
body.editorial-develop.heritage-dark #content .cs-grade-actions>button[data-cs-almost],body.editorial-develop.heritage-dark #content .cs-grade-actions>button[data-flashcard-answer="almost"]{border-color:#caa96b!important;background:#5b482c!important;color:#fff0cd!important}
.chapter-quick-card.is-almost,.chapter-quizlet-item.is-almost{border-color:#c5a464!important;background:#fff9ea!important}
@media(max-width:760px){.own-words-hero{padding:22px;align-items:start}.own-words-hero>b{display:none}.own-words-create,.own-words-layout,.own-words-review-row,.own-words-paste-options{grid-template-columns:1fr}.own-words-list-header{display:grid}.own-words-lists{grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);overflow-x:auto}.own-words-grades button{flex:1 1 100%}}
@media(max-width:760px){.own-words-mobile-quick{display:grid;gap:12px;padding:18px;border:2px solid #9fc39b;border-radius:18px;background:#eef7e9}.own-words-mobile-quick h2{margin:0;color:#284b35;font:700 1.6rem Georgia,serif}.own-words-mobile-quick form{display:grid;gap:12px}.own-words-mobile-quick :is(label,form){min-width:0}.own-words-mobile-quick button{min-height:48px;border:2px solid #759d75;border-radius:11px;background:#dcefd6;color:#254b32;padding:11px 14px;font-weight:800}.own-words-mobile-quick button:hover{background:#cae6c3}.own-words-card{min-height:300px;padding:24px}.own-words-card.revealed{min-height:340px}.own-words-grades button{min-height:50px}.own-words-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.own-words-step-options{grid-template-columns:1fr}.own-words-step-options button{min-height:96px;padding:18px}.own-words-step{padding:18px}.own-words:has(.own-words-step) .own-words-lists{grid-auto-flow:row;grid-template-columns:1fr;overflow:visible}}
@media(max-width:760px){
  .own-words{min-width:0}
  .own-words-list-header,.own-words-main,.own-words-layout{min-width:0}
  .own-words-table-wrap{overflow:visible;border:0;background:transparent}
  .own-words-table-wrap table,.own-words-table-wrap tbody{display:block;width:100%}
  .own-words-table-wrap thead{display:none}
  .own-words-table-wrap tbody{display:grid;gap:12px}
  .own-words-table-wrap tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #cbdcc7;border-radius:15px;background:#fff}
  .own-words-table-wrap td,.own-words-table-wrap td:has(.own-words-image-box){display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;word-break:normal}
  .own-words-table-wrap td:first-child,.own-words-table-wrap td:nth-child(2){font-weight:800;font-size:1.05rem;line-height:1.35}
  .own-words-table-wrap td:first-child::before,.own-words-table-wrap td:nth-child(2)::before,.own-words-table-wrap td:nth-child(4)::before{display:block;margin-bottom:5px;color:#59735d;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .own-words-table-wrap td:first-child::before{content:'Nederlands'}
  .own-words-table-wrap td:nth-child(2)::before{content:'Spaans'}
  .own-words-table-wrap td:nth-child(4)::before{content:'Status'}
  html[lang="en"] .own-words-table-wrap td:first-child::before{content:'Dutch'}
  html[lang="en"] .own-words-table-wrap td:nth-child(2)::before{content:'Spanish'}
  .own-words-table-wrap td:nth-child(3),.own-words-table-wrap td:nth-child(4),.own-words-table-wrap td:last-child{grid-column:1/-1}
  .own-words-table-wrap td:nth-child(3){display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #e0e9dc;padding-top:12px}
  .own-words-table-wrap td:nth-child(3)>button{display:inline-flex;align-items:center;min-height:42px;margin:0;padding:8px 10px;font-size:.85rem}
  .own-words-table-wrap td:nth-child(3) .own-words-image-credit{flex-basis:100%}
  .own-words-table-wrap td:nth-child(4){display:block;padding-top:2px}
  .own-words-table-wrap td:last-child{display:flex;gap:8px;white-space:normal}
  .own-words-table-wrap td:last-child button{flex:1;min-height:44px;margin:0}
  .own-words-table-wrap td button+button{margin-left:0}
  .own-words-image-box{flex:none;width:96px;height:76px}
  .own-words-practice-actions{display:grid;grid-template-columns:1fr}
  .own-words-practice-actions>*{width:100%}
  .own-words-review{scroll-margin-top:calc(var(--own-words-steer-height,220px) + 30px + env(safe-area-inset-top,0px))}
}
@media(max-width:700px){
  body.steering-enabled:not(.standalone-tool-mode):has(#content .own-words) .main{padding-top:calc(var(--own-words-steer-height,220px) + 28px + env(safe-area-inset-top,0px))!important}
  body.environment-development.steering-enabled:not(.standalone-tool-mode):has(#content .own-words) .main{padding-top:calc(var(--own-words-steer-height,220px) + 60px + env(safe-area-inset-top,0px))!important}
}
body.dark .own-words,body[data-theme="dark"] .own-words{color:#eef5e9}
body.heritage-dark :is(.own-words-step,.own-words-step-options button),body.dark :is(.own-words-step,.own-words-step-options button){background:#26372b;color:#eef5e9;border-color:#628069}
body.heritage-dark :is(.own-words-step h1,.own-words-step-options button span,.own-words-step>p),body.dark :is(.own-words-step h1,.own-words-step-options button span,.own-words-step>p){color:#eef5e9}
body.heritage-dark :is(.own-words-picker-list,.own-words-picker-list details,.flashcard-own-source),body.dark :is(.own-words-picker-list,.own-words-picker-list details,.flashcard-own-source){background:#26372b;color:#eef5e9;border-color:#628069}
body.heritage-dark :is(.own-words-picker-list h2,.own-words-picker-list p,.own-words-picker-list summary,.flashcard-own-source b,.flashcard-own-source small),body.dark :is(.own-words-picker-list h2,.own-words-picker-list p,.own-words-picker-list summary,.flashcard-own-source b,.flashcard-own-source small){color:#eef5e9}
body.dark .own-words :is(.own-words-hero,.own-words-create,.own-words-add,.own-words-paste,.own-words-import,.own-words-lists,.own-words-list-header,.own-words-table-wrap,.own-words-empty,.own-words-review,.own-words-review-row,.own-words-image-picker),body[data-theme="dark"] .own-words :is(.own-words-hero,.own-words-create,.own-words-add,.own-words-paste,.own-words-import,.own-words-lists,.own-words-list-header,.own-words-table-wrap,.own-words-empty,.own-words-review,.own-words-review-row,.own-words-image-picker){background:#26372b;color:#eef5e9;border-color:#628069}
body.dark .own-words :is(h1,h2,h3,p,small,span,td,th),body[data-theme="dark"] .own-words :is(h1,h2,h3,p,small,span,td,th){color:inherit}
body.dark .own-words :is(input,select,textarea),body[data-theme="dark"] .own-words :is(input,select,textarea){background:#1e2c23;color:#f3f8ef;border-color:#709174}
body.dark .own-words-lists button,body[data-theme="dark"] .own-words-lists button{background:#314936;color:#f2f8ee;border-color:#67886a}
body.heritage-dark .own-words-list-choice,body.dark .own-words-list-choice,body[data-theme="dark"] .own-words-list-choice{background:#314936;color:#f2f8ee;border-color:#719271}
body.heritage-dark .own-words-open-direction,body.dark .own-words-open-direction,body[data-theme="dark"] .own-words-open-direction{color:#eef5e9}
body.heritage-dark .own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button,body.dark .own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button,body[data-theme="dark"] .own-words .own-words-list-choice :is(.own-words-list-mode-actions,.own-words-list-choice-actions) button{background:#26372b;color:#eef5e9;border-color:#8fac8b}
body.heritage-dark .own-words .own-words-list-mode-actions [data-own-list-practice],body.dark .own-words .own-words-list-mode-actions [data-own-list-practice],body[data-theme="dark"] .own-words .own-words-list-mode-actions [data-own-list-practice]{background:#426548;color:#fff}
body.dark .own-words-lists button.active,body[data-theme="dark"] .own-words-lists button.active{background:#426548}
body.editorial-develop.heritage-dark #content .own-words .own-words-lists button.active,body.editorial-develop.heritage-dark #content .own-words .own-words-lists button[aria-current="true"]{border-color:#a4c59f!important;background:#365940!important;color:#f5fbf2!important}
body.editorial-develop.heritage-dark #content .own-words .own-words-lists button.active :is(strong,small),body.editorial-develop.heritage-dark #content .own-words .own-words-lists button[aria-current="true"] :is(strong,small){color:#f5fbf2!important}
body.editorial-develop.heritage-dark #content .own-words .own-words-external-image{background:#273c2d;border-color:#719271}
body.editorial-develop.heritage-dark #content .own-words .own-words-external-preview{background:#1f3025;border-color:#719271;color:#e8f3e5}
body.dark .own-words-card,body[data-theme="dark"] .own-words-card{background:#2a4130;color:#f2f8ee}
body.heritage-dark .own-words-mobile-quick,body.dark .own-words-mobile-quick,body[data-theme="dark"] .own-words-mobile-quick{background:#283e2d;border-color:#719271;color:#f2f8ee}
body.heritage-dark .own-words-mobile-quick h2,body.dark .own-words-mobile-quick h2,body[data-theme="dark"] .own-words-mobile-quick h2{color:#f2f8ee}
body.heritage-dark .cs-grade-actions .cs-grade-question,body.dark .cs-grade-actions .cs-grade-question,body[data-theme="dark"] .cs-grade-actions .cs-grade-question{color:#e6f1e3}
body.heritage-dark .own-words-progress-list,body.dark .own-words-progress-list,body[data-theme="dark"] .own-words-progress-list{background:#27382c;border-color:#6d886e;color:#eef5e9}
body.heritage-dark .own-words-progress-list>summary span,body.dark .own-words-progress-list>summary span,body[data-theme="dark"] .own-words-progress-list>summary span{color:#d1dfd0}
body.heritage-dark .own-words-progress-list>summary:hover,body.dark .own-words-progress-list>summary:hover,body[data-theme="dark"] .own-words-progress-list>summary:hover{background:#35503a}
body.heritage-dark .own-words-progress-body,body.dark .own-words-progress-body,body[data-theme="dark"] .own-words-progress-body{background:#223328;border-color:#6d886e}
body.heritage-dark .own-words-progress .own-words-progress-card,body.dark .own-words-progress .own-words-progress-card,body[data-theme="dark"] .own-words-progress .own-words-progress-card{background:#304a36;border-color:#759579;color:#f2f8ee}
body.heritage-dark .own-words-progress .own-words-progress-card[data-flipped="true"],body.dark .own-words-progress .own-words-progress-card[data-flipped="true"],body[data-theme="dark"] .own-words-progress .own-words-progress-card[data-flipped="true"]{background:#42674b}
body.heritage-dark .own-words-progress .own-words-progress-card small,body.dark .own-words-progress .own-words-progress-card small,body[data-theme="dark"] .own-words-progress .own-words-progress-card small{color:#d4e4d3}

/* Match the shared word views: the grid is for turning, the round for grading. */
#content .own-words-grid-grades{display:none!important}
#content .own-words-progress .own-words-progress-card{background:#fffaf1!important;border:1px solid #a8c4a0!important}
#content .own-words-progress .own-words-progress-card[data-language="translation"] strong{color:#3d6174!important}
#content .own-words-progress .own-words-progress-card[data-language="es"] strong{color:#795a47!important}
#content .own-words-progress-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
#content .own-words-progress-tools>button{min-height:44px;padding:10px 15px;border:1px solid #a6bea0;border-radius:10px;background:#e8f1e3;color:#31553a;font-weight:800}
#content .own-words-progress-tools>button:hover{background:#d8ebd2}
#content .own-words-table-wrap table{width:100%;border-collapse:collapse;background:#fffdf9}
#content .own-words-table-wrap :is(th,td){padding:11px 14px;border:1px solid #dce5da;text-align:left;vertical-align:top}
#content .own-words-table-wrap th{background:#ecf2e9;color:#31553a}
#content .own-words-table-wrap td[lang="es"]{color:#795a47;font-weight:700}
#content .own-words-table-wrap tbody td:first-child:not([lang="es"]){color:#3d6174}
.search-subject-panel{display:grid;gap:16px;margin:22px 0;padding:22px;border:1px solid #cadcc6;border-radius:18px;background:#f4f9f1;color:#283b32}
.search-subject-heading small{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#567557}
.search-subject-heading h3{margin:5px 0 4px;font-size:clamp(1.35rem,2.5vw,2rem);color:inherit}
.search-subject-heading p{margin:0;color:#4f6756}
.search-subject-actions{display:flex;flex-wrap:wrap;gap:9px}
.search-subject-actions button,.search-subject-locations button{min-height:44px;padding:9px 13px;border:1px solid #91b08e;border-radius:10px;background:#fff;color:#2d5537;font:inherit;font-weight:750;cursor:pointer}
.search-subject-actions [data-search-subject-practice]{background:#dcefd6}
.search-subject-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;border-top:1px solid #d9e5d5;padding-top:14px}
.search-subject-locations[hidden]{display:none!important}
.search-subject-locations h4,.search-subject-locations p{grid-column:1/-1;margin:0}
.search-subject-locations button{display:grid;gap:2px;text-align:left}
.search-subject-locations button small{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:#607765}
.search-subject-locations button em{font-size:.8rem;font-style:normal;font-weight:500;color:#617368}
body.heritage-dark .search-subject-panel,body.dark .search-subject-panel{border-color:#648067;background:#26392b;color:#edf6eb}
body.heritage-dark .search-subject-heading p,body.dark .search-subject-heading p{color:#d3e2d2}
body.heritage-dark .search-subject-actions button,body.dark .search-subject-actions button,body.heritage-dark .search-subject-locations button,body.dark .search-subject-locations button{border-color:#78987a;background:#344d3a;color:#f4fbf2}
/* Character map: category overview and filtered words use the same calm palette. */
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch;gap:12px!important;width:100%!important;min-width:0!important;height:auto!important;padding:16px!important;overflow:visible!important;background:#f4f8f0!important;border-color:#c8d9c4!important;border-radius:18px}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage:before,body.editorial-develop #content[data-relation-map="character"] .generic-map-lines{display:none!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node,body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node:hover,body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node.focused{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto!important;min-width:0;min-height:88px!important;margin:0!important;padding:14px 12px!important;border-radius:14px!important;box-shadow:0 2px 8px #263e2b12!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node.root{grid-column:1/-1;min-height:94px!important;background:#315a3c!important;border-color:#315a3c!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node.group{grid-column:auto!important;background:#e5f0df!important;border:1px solid #a8c39f!important;border-top:4px solid #5f8965!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage.filtered-map-stage .generic-map-node.group{grid-column:1/-1!important;min-height:76px!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node:not(.group):not(.root){background:#fffefa!important;border:1px solid #d6e2d1!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node:not(.root) :is(span,small){color:#294235!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node.root :is(span,small){color:#fff!important}
body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .relation-card-level{border-color:#bdcfb6!important;background:#f0f7ec!important;color:#355f3e!important}
body.editorial-develop #content[data-relation-map="character"] .relation-map-quizlet-slot button{background:#e1efdb!important;border-color:#a6c29d!important;color:#284c34!important}
body.editorial-develop #content[data-relation-map="character"] .relation-map-quizlet-slot button:last-child{background:#f8f0e7!important;border-color:#d9c5b1!important;color:#704d35!important}
body.editorial-develop #content[data-relation-map="character"] .generic-filterbar{display:flex;flex-wrap:wrap;gap:8px;background:#f7f5ef!important;border-color:#e0ddcf!important}
body.editorial-develop #content[data-relation-map="character"] .generic-filterbar button{background:#fffefa!important;border-color:#c8d8c1!important;color:#31553c!important}
body.editorial-develop #content[data-relation-map="character"] .generic-filterbar button.active{background:#315a3c!important;border-color:#315a3c!important;color:#fff!important}
body.editorial-develop #content[data-relation-map="character"] .generic-filterbar button.active .relation-filter-count{background:#e8f2e3!important;color:#315a3c!important}
@media(max-width:1250px){body.editorial-develop #content[data-relation-map="character"] .generic-map-stage{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:850px){body.editorial-develop #content[data-relation-map="character"] .generic-map-stage{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.editorial-develop #content[data-relation-map="character"] .generic-map-layout{display:flex!important;flex-direction:column;overflow:visible!important}body.editorial-develop #content[data-relation-map="character"] .generic-map-viewport{width:100%;height:auto!important;max-height:none!important;overflow:visible!important}}
@media(max-width:480px){body.editorial-develop #content[data-relation-map="character"] .generic-map-stage{gap:8px!important;padding:10px!important}body.editorial-develop #content[data-relation-map="character"] .generic-map-stage .generic-map-node{min-height:74px!important;padding:10px!important}}
body.editorial-develop.heritage-dark #content[data-relation-map="character"] .generic-map-stage{background:#1f3025!important;border-color:#5f8062!important}
body.editorial-develop.heritage-dark #content[data-relation-map="character"] .generic-map-stage .generic-map-node.group{background:#344c38!important;border-color:#7ca17b!important}
body.editorial-develop.heritage-dark #content[data-relation-map="character"] .generic-map-stage .generic-map-node:not(.group):not(.root){background:#293d2e!important;border-color:#648268!important}
body.editorial-develop.heritage-dark #content[data-relation-map="character"] .generic-map-stage .generic-map-node:not(.root) :is(span,small){color:#f1f7ed!important}
/* A phone exercise needs navigation and language controls, not the site search row. */
@media(max-width:1000px){
  body.editorial-develop.steering-enabled .main #pageControls.cs-practice-controls #searchForm{display:none!important}
  body.editorial-develop.steering-enabled #pageControls.cs-practice-controls [data-steer-search]{display:none!important}
}

/* The almost-known state must remain visible and actionable in relation progress. */
#content .relation-progress-overview .flashcard-progress-totals{grid-template-columns:repeat(5,minmax(0,1fr))}
#content .topic-progress-overview .flashcard-progress-totals{grid-template-columns:repeat(5,minmax(0,1fr))}
#content .relation-progress-overview .flashcard-progress-totals .almost{background:#fff1d9}
#content .relation-progress-overview .flashcard-progress-totals .almost strong{color:#765627}
#content .topic-progress-overview .flashcard-progress-totals>button.almost{background:#fff1d9}
#content .topic-progress-overview .flashcard-progress-totals>button.almost strong{color:#765627}
#content .relation-progress-overview .flashcard-progress-actions{flex-wrap:wrap}
#content .topic-progress-overview .flashcard-progress-actions{flex-wrap:wrap}
#content .relation-progress-practice-filters button[data-relation-progress-filter="almost"]{border-color:#bc9349;background:#fff1d9;color:#65491f}
#content .relation-progress-practice-filters button[data-relation-progress-filter="almost"].active{background:#805d28;color:#fff}
#content .relation-all-item-wrap.is-almost{border-color:#d2ab5b;background:#fff8e8}
#content .relation-word-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#content .relation-word-actions button[data-relation-word-status="almost"]{border:1px solid #bc9349;background:#fff1d9;color:#65491f}
#content .chapter-quick-card.is-almost{border-color:#d2ab5b;background:#fff8e8}
#content .chapter-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#content .chapter-quick-almost{border:1px solid #bc9349;background:#fff1d9;color:#65491f}
@media(max-width:900px){#content .topic-progress-overview .flashcard-progress-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){#content .topic-progress-overview .flashcard-progress-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep an entire own-words question and its answer controls in view. */
body.editorial-develop #content .own-words-round{gap:10px}
body.editorial-develop #content .own-words-round>.back{justify-self:start;align-self:start;min-height:36px;margin:0;padding:6px 10px;font-size:.9rem}
body.editorial-develop #content .own-words-round .own-words-hero{padding:13px 20px;border-top-width:4px;border-radius:16px}
body.editorial-develop #content .own-words-round .own-words-hero span{font-size:.69rem}
body.editorial-develop #content .own-words-round .own-words-hero h1{margin:2px 0;font-size:clamp(1.35rem,2.4vw,1.85rem);line-height:1.12}
body.editorial-develop #content .own-words-round .own-words-hero p{font-size:.92rem;line-height:1.25}
body.editorial-develop #content .own-words-round .own-words-card{width:min(100%,560px);min-height:215px;gap:9px;margin:2px auto;padding:16px 20px;border-radius:18px;overflow-wrap:anywhere}
body.editorial-develop #content .own-words-round .own-words-round-image{max-width:min(100%,160px);max-height:112px}
body.editorial-develop #content .own-words-round .own-words-card span{font-size:clamp(1.3rem,2.2vw,1.9rem);line-height:1.15}
body.editorial-develop #content .own-words-round .own-words-card strong{font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.15}
body.editorial-develop #content .own-words-round .own-words-card small{font-size:.82rem;line-height:1.25}
body.editorial-develop #content .own-words-round .own-words-card.revealed small,
body.editorial-develop #content .own-words-round .own-words-grades .cs-grade-question{display:none}
body.editorial-develop #content .own-words-round .own-words-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100%,560px);margin:0 auto}
body.editorial-develop #content .own-words-round .own-words-grades button{min-width:0;min-height:44px;padding:8px 6px;font-size:.9rem;line-height:1.15}

@media(max-width:600px){
  body.editorial-develop #content .own-words-round{gap:6px}
  body.editorial-develop #content .own-words-round>.back{min-height:30px;padding:4px 8px;font-size:.78rem}
  body.editorial-develop #content .own-words-round .own-words-hero{padding:8px 12px;border-top-width:3px;border-radius:12px}
  body.editorial-develop #content .own-words-round .own-words-hero span{font-size:.62rem}
  body.editorial-develop #content .own-words-round .own-words-hero h1{margin:1px 0;font-size:1.1rem}
  body.editorial-develop #content .own-words-round .own-words-hero p{font-size:.78rem}
  body.editorial-develop #content .own-words-round .own-words-card{min-height:185px;gap:5px;margin:0 auto;padding:10px 12px;border-radius:14px}
  body.editorial-develop #content .own-words-round .own-words-round-image{max-width:min(100%,125px);max-height:88px}
  body.editorial-develop #content .own-words-round .own-words-card span{font-size:1.15rem}
  body.editorial-develop #content .own-words-round .own-words-card strong{font-size:1.4rem}
  body.editorial-develop #content .own-words-round .own-words-card small{font-size:.74rem}
  body.editorial-develop #content .own-words-round .own-words-grades{gap:5px}
  body.editorial-develop #content .own-words-round .own-words-grades button{min-height:44px;padding:6px 3px;font-size:.76rem}
}
#content .own-words-round :is(.own-words-card > span[lang="es"], .own-words-card.revealed > strong[lang="es"]){
  --cs-ui-spanish-size:clamp(1.5rem,3vw,2rem);
  font-size:var(--cs-ui-spanish-size);
  overflow-wrap:anywhere;
}
.own-words-share-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0 1.25rem}
.own-words-share-tabs button{padding:.65rem 1rem;border:1px solid #a6bea8;border-radius:.8rem;background:#f7faf5;color:#31533a;font:inherit;font-weight:700;cursor:pointer}
.own-words-share-tabs button[aria-current="page"]{background:#e2efdf;border-color:#719976}
.own-words-shared{padding:1.25rem;max-width:100%}
.own-words-shared>h1{margin:.1rem 0;font-size:clamp(1.6rem,3vw,2.3rem)}
.own-words-shared-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:1rem;align-items:start}
.own-words-shared-list{display:grid;gap:.65rem}
.own-words-shared-choice,.own-words-shared-main,.own-words-share-admin{background:#fffdfa;border:1px solid #d1ddcf;border-radius:1rem;padding:1rem}
.own-words-shared-choice{display:grid;gap:.4rem}.own-words-shared-choice small{color:#607266}
.own-words-shared-choice button,.own-words-shared-tools button,.own-words-share-admin button{border:1px solid #96b397;border-radius:.7rem;background:#edf5e9;color:#2f553b;padding:.55rem .7rem;font:inherit;font-weight:700;cursor:pointer}
.own-words-shared-tools{display:flex;gap:.55rem;flex-wrap:wrap;align-items:end;margin:1rem 0}
.own-words-shared-tools label{display:grid;gap:.2rem;color:#345044;font-weight:700}.own-words-shared-tools select,.own-words-share-admin select{padding:.55rem;border:1px solid #b6cbb6;border-radius:.65rem;background:white;color:#263b31;font:inherit}
.own-words-shared-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.65rem}
.own-words-shared-card{border:1px solid #cbdcc8;border-radius:.85rem;padding:.35rem;background:#f8faf6}
.own-words-shared-card>[data-shared-flip]{width:100%;min-height:95px;border:1px solid #b7cdb6;border-radius:.65rem;background:#f3f7f4;color:#31546b;font:inherit;font-weight:700;cursor:pointer}
.own-words-shared-card>[data-shared-flip][data-flipped="true"]{background:#fff8f3;color:#ab4b38}
.own-words-shared-card [lang="es"]{color:#ab4b38}.own-words-shared-card [lang="nl"]{color:#31546b}
.own-words-shared-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.2rem;margin-top:.35rem}
.own-words-shared-grades[hidden]{display:none}.own-words-shared-grades button{padding:.35rem .1rem;border:1px solid #bfd2bd;border-radius:.45rem;background:white;color:#345044;font:inherit;font-size:.75rem;cursor:pointer}.own-words-shared-grades button[aria-pressed="true"]{outline:2px solid #477a54}
.own-words-share-admin{margin-top:1.5rem}.own-words-share-admin form{display:grid;gap:.8rem;max-width:780px}.own-words-share-admin form>label{display:grid;gap:.3rem;font-weight:700}.own-words-share-admin fieldset{border:1px solid #d1ddcf;border-radius:.8rem;display:grid;gap:.45rem}.own-words-share-admin fieldset>label{display:flex;gap:.4rem;align-items:center}
.own-words-share-students{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.35rem}.own-words-share-students[hidden]{display:none}.own-words-share-students label{display:flex;align-items:center;gap:.35rem}
.own-words-share-existing{margin-top:1rem}.own-words-share-existing>div{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;border-top:1px solid #dbe5d8;padding:.5rem 0}.own-words-share-existing>div span{margin-right:auto}
@media(max-width:720px){.own-words-shared-layout{grid-template-columns:1fr}.own-words-shared{padding:.75rem}.own-words-shared-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.own-words-shared-tools>*{flex:1 1 auto}}

/* Keep the review focused on the next required decision. */
.own-words-review-status{padding:12px 14px;border:1px solid #a9c7a9;border-radius:10px;background:#edf6ea;color:#315b3d;font-weight:750}
.own-words-review-status.is-required{border-color:#c26455;background:#fff0ed;color:#a02e22!important}
.own-words-review-row.is-required{border:2px solid #c26455;background:#fff9f8}
.own-words-review-row.is-required .own-words-spelling>p{color:#a02e22;font-weight:750}
.own-words-review-row{scroll-margin-top:130px}
#content .own-words-share-admin [data-share-reset]{background:#fff!important;border-color:#a9bea8!important;color:#315b3d!important}

/* Share form: keep each control with its label and distinguish the actions. */
#content .own-words-share-admin form{max-width:860px}
#content .own-words-share-admin .own-words-share-audience{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:16px!important;border:1px solid #c7d9c5;border-radius:14px}
#content .own-words-share-audience legend{padding:0 7px;font-weight:800}
#content .own-words-share-audience>.own-words-share-option{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px;width:auto!important;min-height:48px;margin:0!important;padding:10px 12px!important;border:1px solid #c7d9c5;border-radius:10px;background:#f8fbf7;font-weight:700;text-align:left}
#content .own-words-share-audience>.own-words-share-option:has(input:checked){background:#e8f3e3;border-color:#76a477}
#content .own-words-share-audience input[type="radio"],#content .own-words-share-audience input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;flex:none;accent-color:#397246}
#content .own-words-share-students{grid-column:1/-1;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;padding:12px;border:1px solid #d6e2d3;border-radius:10px;background:#fff}
#content .own-words-share-students .own-words-share-student{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px;width:auto!important;min-height:40px;margin:0!important;padding:7px 9px!important;border-radius:8px;text-align:left}
#content .own-words-share-students .own-words-share-student:has(input:checked){background:#e8f3e3}
#content .own-words-share-actions{display:flex;flex-wrap:wrap;gap:10px}
#content .own-words-share-actions button{width:auto!important;min-width:160px}
#content .own-words-share-actions button[type="submit"]{background:#dcefd8!important;border:2px solid #6f9d72!important;color:#244d30!important}
#content .own-words-share-actions [data-share-reset]{background:#fff!important;border:1px solid #a9bea8!important;color:#315b3d!important}
@media(max-width:600px){#content .own-words-share-admin .own-words-share-audience{grid-template-columns:1fr}#content .own-words-share-actions button{flex:1 1 100%}}
#content .own-words-review .own-words-review-status{color:#315b3d}
#content .own-words-review .own-words-review-status.is-required{color:#a02e22}

/* Make the source list the first clear decision in the sharing flow. */
#content .own-words-share-source{display:grid;gap:7px;padding:18px 20px;border:2px solid #79a47b;border-radius:16px;background:#eef7eb;box-shadow:0 5px 20px rgba(48,95,54,.08)}
#content .own-words-share-source label{font-size:1.2rem;font-weight:850;color:#234b2f}
#content .own-words-share-source select{display:block;width:100%;min-height:60px;padding:12px 18px!important;border:2px solid #5b9264!important;border-radius:12px!important;background:#fff!important;color:#244a31!important;font-size:1.15rem!important;font-weight:800;box-shadow:0 2px 8px rgba(40,91,48,.07)}
#content .own-words-share-source select:focus-visible{outline:3px solid #235f36;outline-offset:3px}
#content .own-words-share-source small{color:#4b6d51;font-weight:600}
#content .own-words-share-settings{margin-top:1.5rem;padding:18px 20px;border:1px solid #cfdccc;border-radius:14px;background:#f7faf6}
#content .own-words-share-settings h2{margin:0 0 8px;font-size:1.15rem}
#content .own-words-share-settings p{margin:0 0 12px;color:#536b58}
#content .own-words-share-settings form{display:grid;gap:10px;max-width:860px}
#content .own-words-share-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#content .own-words-share-modes label{display:grid;grid-template-columns:20px minmax(0,1fr);gap:3px 10px;align-content:start;padding:12px;border:1px solid #c7d9c5;border-radius:10px;background:#fff;cursor:pointer}
#content .own-words-share-modes label:has(input:checked){border:2px solid #6f9d72;background:#eaf4e8}
#content .own-words-share-modes input{grid-row:1/3;width:18px;height:18px;margin:2px 0 0;accent-color:#397246}
#content .own-words-share-modes strong{color:#244a31}
#content .own-words-share-modes small{color:#506a57;line-height:1.35}
#content .own-words-share-settings button[type="submit"]{justify-self:start;background:#dcefd8;border:2px solid #6f9d72}
#content .own-words-share-settings button[type="submit"]:disabled{opacity:.55;cursor:default}
@media(max-width:600px){#content .own-words-share-modes{grid-template-columns:1fr}#content .own-words-share-source{padding:14px}}

/* css/unified-study-design.css */
/* Compleet Spaans study surfaces: one meaning per colour, on site and app. */
:root {
  --study-cream: #f7f5ef;
  --study-paper: #fffefa;
  --study-ink: #24352d;
  --study-muted: #526559;
  --study-line: #d3dfcf;
  --study-green: #315a3c;
  --study-green-soft: #e5f0df;
  --study-blue: #285f83;
  --study-amber: #6b4a18;
  --study-amber-soft: #fff0d6;
  --study-rose: #7c3030;
  --study-rose-soft: #fbe9e6;
}

/* Text stays neutral; blue identifies Spanish text and text links, not a selection. */
body.editorial-develop #content,
body.flashcards-app { color: var(--study-ink); }
body.editorial-develop #content :is(.own-words-step h1,.own-words-hero h1,.own-words-picker-list h2),
body.flashcards-app .flashcard-learning-choice h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}
body.editorial-develop #content :is(.own-words-hero,.own-words-step) {
  background: var(--study-cream);
  color: var(--study-ink);
}
body.editorial-develop #content :is(.own-words-picker-list,.own-words-list-choice),
body.flashcards-app :is(.flashcard-learning-choice,.flashcard-own-choice) {
  background: var(--study-paper);
  color: var(--study-ink);
}
body.editorial-develop #content .own-words :is(.own-words-picker-list,.own-words-list-choice) p,
body.flashcards-app .flashcard-learning-choice > p { color: var(--study-muted); }
body.editorial-develop #content .own-words :is(.own-words-picker-list,.own-words-list-choice) a,
body.flashcards-app :is(.flashcard-advanced-note a,.flashcard-manage-link) {
  color: var(--study-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Green is reserved for actions and selected filters. */
body.editorial-develop #content :is(.relation-map-mode-switch,.generic-filterbar,.relation-level-buttons) button.active,
body.editorial-develop #content .own-words [data-own-list-practice],
body.flashcards-app :is(.flashcard-source-choice,.flashcard-quick-types) button[aria-pressed="true"] {
  border-color: var(--study-green) !important;
  background: var(--study-green-soft) !important;
  color: var(--study-green) !important;
}
body.editorial-develop #content .relation-tree-study-toolbar button {
  min-height: 44px;
  border-color: var(--study-green);
  background: var(--study-paper);
  color: var(--study-green);
  font-weight: 700;
}
body.editorial-develop #content .relation-tree-study-toolbar button:hover {
  background: var(--study-green-soft);
}

/* Relationship-map flip cards: Dutch front, blue Spanish back on cream. */
body.editorial-develop #content .relation-expanded-tree {
  border-color: var(--study-line);
  background: var(--study-paper);
}
body.editorial-develop #content .relation-tree-root,
body.editorial-develop #content .relation-tree-branch {
  border-color: var(--study-line);
  background: var(--study-cream);
}
body.editorial-develop #content .relation-tree-root b,
body.editorial-develop #content .relation-tree-study-toolbar strong {
  color: var(--study-ink);
}
body.editorial-develop #content .relation-tree-root small,
body.editorial-develop #content .relation-tree-study-toolbar span,
body.editorial-develop #content .relation-tree-branch-nl {
  color: var(--study-muted);
}
body.editorial-develop #content .relation-tree-branch > summary {
  background: var(--study-green-soft);
}
body.editorial-develop #content .relation-tree-branch-es {
  color: var(--study-green);
}
body.editorial-develop #content .relation-tree-flip {
  min-height: 88px;
  border-color: var(--study-line);
  border-radius: 11px;
  background: var(--study-paper);
}
body.editorial-develop #content .relation-tree-card-front,
body.editorial-develop #content .relation-tree-card-back {
  padding: 10px;
  border-radius: 10px;
  font: 700 15px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.editorial-develop #content .relation-tree-card-front {
  background: var(--study-paper);
  color: var(--study-ink);
}
body.editorial-develop #content .relation-tree-card-back {
  background: var(--study-cream);
  color: var(--study-blue) !important;
}
body.editorial-develop #content .relation-tree-flip.flipped {
  border-color: var(--study-blue);
  box-shadow: 0 4px 14px #285f831f;
}
body.editorial-develop #content .relation-tree-level {
  border-color: var(--study-line);
  background: var(--study-green-soft);
  color: var(--study-green);
  font-size: 11px;
}
body.editorial-develop #content :is(.relation-tree-flip,.relation-tree-branch > summary):focus-visible {
  outline: 3px solid var(--study-blue);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  body.editorial-develop #content .relation-tree-flip { min-height: 94px; }
  body.editorial-develop #content .relation-tree-leaves { gap: 9px; }
}

/* Main-site flip/practice cards use the same Spanish text role. */
body.editorial-develop #content :is(.flashcard-player,.flashcard-practice-grid,.flashcard-preview,.relation-all-item) [lang="es"] {
  color: var(--study-blue) !important;
}

/* Progress uses the same semantic status colours without making totals look clickable. */
body.editorial-develop #content :is(.flashcard-progress-overview,.relation-progress-overview,.vocabulary-progress) {
  border-color: var(--study-line);
  background: var(--study-paper);
  color: var(--study-ink);
}
body.editorial-develop #content :is(.relation-progress-maps,.vocabulary-progress-table) {
  border-color: var(--study-line);
  background: var(--study-paper);
}
body.editorial-develop #content :is(.relation-progress-maps,.relation-progress-overview,.vocabulary-progress) th {
  background: var(--study-green-soft);
  color: var(--study-green);
}
body.editorial-develop #content .flashcard-progress-totals :is(.known,.yes) {
  background: var(--study-green-soft);
  color: var(--study-green);
}
body.editorial-develop #content .flashcard-progress-totals .almost {
  background: var(--study-amber-soft);
  color: var(--study-amber);
}
body.editorial-develop #content .flashcard-progress-totals :is(.unknown,.no) {
  background: var(--study-rose-soft);
  color: var(--study-rose);
}
body.editorial-develop #content .flashcard-progress-totals :is(.known,.yes,.almost,.unknown,.no) strong {
  color: inherit;
}
body.editorial-develop #content .relation-progress-map-title {
  color: var(--study-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.editorial-develop #content .relation-progress-practice-filters button.active {
  border-color: var(--study-green);
  background: var(--study-green);
  color: #fff;
}

/* Standalone flashcards follow the same card and status palette. */
body.flashcards-app {
  background: var(--study-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.flashcards-app :is(.module-brand b,.module-hero h1,.flashcard-learning-choice h2,.shortcut-filter-panel h2,.flashcard strong,.flashcard-answer b) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700;
}
body.flashcards-app .flashcard {
  border-color: #91b18c;
  background: #f7fbf4;
  color: var(--study-ink);
}
body.flashcards-app .flashcard-answer b {
  color: var(--study-blue);
}
body.flashcards-app .knowledge-actions .known {
  border-color: var(--study-green);
  background: var(--study-green-soft);
  color: var(--study-green);
}
body.flashcards-app .knowledge-actions .almost {
  border-color: #a77e3c;
  background: var(--study-amber-soft);
  color: var(--study-amber);
}
body.flashcards-app .knowledge-actions .unknown {
  border-color: #b9706a;
  background: var(--study-rose-soft);
  color: var(--study-rose);
}
body.flashcards-app :is(button,a,input,select):focus-visible {
  outline: 3px solid var(--study-blue) !important;
  outline-offset: 2px;
}

/* css/chapter-navigation.css */
/* One chapter route: overview (x.0), lessons (x.1–x.n), then lesson contents. */
.gente-course-unit.gente-course-unit-open {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  gap: 17px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.gente-course-unit.gente-course-unit-open:is(:hover,:focus-visible) {
  border-color: #9dbd9f;
  box-shadow: 0 5px 18px rgba(37,67,86,.09);
  outline: 2px solid transparent;
}
@media (max-width: 720px) {
  .gente-course-unit.gente-course-unit-open { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 15px 13px; }
}
#content .study-unit-shell {
  display: grid;
  grid-template-columns: clamp(230px, 20vw, 290px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
#content .study-unit-shell > :last-child { min-width: 0; }
#content .study-unit-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 20px 14px;
  border: 1px solid #d9e2d4;
  border-radius: 18px;
  background: #fffdf8;
}
#content .study-unit-sidebar-heading { display: grid; gap: 6px; padding: 0 8px 14px; }
#content .study-unit-sidebar-heading small {
  color: #995640;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}
#content .study-unit-sidebar-heading strong { color: #263e32; font-size: 1.05rem; line-height: 1.35; }
#content .study-unit-links { display: grid; gap: 5px; }
#content .study-unit-link,
#content .study-unit-section-links button {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #315f7e;
  text-align: left;
  cursor: pointer;
}
#content .study-unit-link > span:first-child { font-weight: 800; }
#content .study-unit-link b { display: block; font-size: .91rem; line-height: 1.3; }
#content .study-unit-link small { display: block; margin-top: 3px; color: #5e6d65; font-size: .78rem; }
#content .study-unit-link:is(:hover,:focus-visible),
#content .study-unit-section-links button:is(:hover,:focus-visible) {
  border-color: #b9d0bd;
  background: #f2f6ec;
}
#content .study-unit-link.active {
  border-color: #9dbd9f;
  background: #e5f0e0;
  color: #284d35;
  box-shadow: inset 3px 0 #648b69;
}
#content .study-unit-section-links { display: grid; gap: 1px; padding: 14px 0 0; margin-top: 9px; border-top: 1px solid #e4ebe1; }
#content .study-unit-section-links > b { padding: 0 9px 6px; color: #66756b; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
#content .study-unit-section-links button { font-size: .84rem; line-height: 1.35; }
#content .study-unit-section-links button span { color: #788c79; font-weight: 800; }
#content .study-unit-menu-toggle { display: none; }
#content .study-unit-overview { padding: clamp(18px, 3vw, 34px); border: 1px solid #d9e2d4; border-radius: 18px; background: #fffdf8; }
#content .study-unit-overview-hero { padding: 0 0 20px; margin-bottom: 18px; border-bottom: 1px solid #e0e8dc; }
#content .study-unit-overview-hero h1 { margin: 8px 0; color: #263e32; }
#content .study-unit-overview-hero p { margin: 0; color: #566d5c; line-height: 1.5; }
#content .study-unit-overview .unit-learning-program { margin: 0; }
#content .study-unit-next-heading { margin: 24px 0 12px; color: #263e32; font-size: 1.3rem; }
#content .study-unit-next-list { display: grid; gap: 8px; }
#content .study-unit-next-list button { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid #d9e2d4; border-radius: 12px; background: #f6f8f3; color: #315f7e; text-align: left; cursor: pointer; }
#content .study-unit-next-list button:hover { border-color: #9dbd9f; background: #eaf3e6; }
#content .study-unit-next-list button span { font-weight: 850; color: #426a4d; }
#content .study-unit-shell .study-hero.study-hero-chapter { padding: clamp(18px, 2vw, 28px); }
#content .study-unit-shell .study-hero-chapter-image { max-height: 155px; }
#content .study-start-button { display: inline-flex; align-items: center; margin-top: 14px; padding: 10px 15px; border: 1px solid #9fbea2; border-radius: 10px; background: #e5f0e0; color: #284d35; font-weight: 800; cursor: pointer; }
#content .study-start-button:hover { background: #d7e9d1; }
body.editorial-develop:not(.heritage-dark) #content .study-unit-shell :is(.unit-learning-program,.unit-program-practice,.chapter-core-verbs,.chapter-guided-practice,.chapter-progression-panel,.study-completion-card) {
  border-color: #dbe4d8 !important;
  background: #f7f9f4 !important;
  box-shadow: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .study-unit-shell .unit-program-practice { background: #fcf5f1 !important; border-color: #ecdcd2 !important; }
#content .study-unit-shell [id^="study-"],
#content .study-unit-shell .study-guided-practice { scroll-margin-top: 110px; }
body.editorial-develop.heritage-dark #content :is(.study-unit-sidebar,.study-unit-overview) { border-color: #536858; background: #2c352e; color: #f2f4ed; }
body.editorial-develop.heritage-dark #content :is(.study-unit-sidebar-heading strong,.study-unit-overview-hero h1,.study-unit-next-heading) { color: #f2f4ed; }
body.editorial-develop.heritage-dark #content :is(.study-unit-link,.study-unit-section-links button,.study-unit-next-list button) { color: #e0e9dd; }
body.editorial-develop.heritage-dark #content :is(.study-unit-link.active,.study-unit-link:hover,.study-unit-section-links button:hover,.study-unit-next-list button) { border-color: #536858; background: #3b4a3f; }
body.editorial-develop.heritage-dark #content .study-unit-link small { color: #cbd5c9; }
@media (max-width: 850px) {
  #content .study-unit-shell { grid-template-columns: 1fr; }
  #content .study-unit-sidebar { position: static; max-height: none; overflow: visible; padding: 12px; }
  #content .study-unit-sidebar-heading { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 0; }
  #content .study-unit-sidebar-heading small { grid-column: 1 / -1; }
  #content .study-unit-sidebar-heading strong { min-width: 0; }
  #content .study-unit-menu-toggle { display: block; padding: 9px 11px; border: 1px solid #b9d0bd; border-radius: 9px; background: #e5f0e0; color: #284d35; font-weight: 750; cursor: pointer; }
  #content .study-unit-links { display: none; padding-top: 12px; }
  #content .study-unit-sidebar.is-open .study-unit-links { display: grid; }
  #content .study-unit-shell .study-hero-chapter-image { max-height: 110px; }
}

/* css/websitelayout-consistency.css */
/* Develop: one visual language for selected controls and chapter flashcards. */
body.editorial-develop:not(.heritage-dark) {
  --layout-primary: var(--study-green, #315a3c);
  --layout-selected: var(--study-green-soft, #e5f0df);
  --layout-blue: var(--study-blue, #285f83);
  --layout-cream: var(--study-cream, #f7f5ef);
  --layout-paper: var(--study-paper, #fffefa);
  --layout-line: var(--study-line, #d3dfcf);
}

/* The old editorial theme painted every button.active terracotta. */
body.editorial-develop:not(.heritage-dark) #content button.active:not(.primary):not(.btn-primary):not(.action-btn):not(.hero-btn),
body.editorial-develop:not(.heritage-dark) #content :is(.chip.active, .topic-pill.active, .verb-family.active),
body.editorial-develop:not(.heritage-dark) #content .alpha button.active,
body.editorial-develop:not(.heritage-dark) #content .study-unit-link.active {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
  color: var(--layout-primary) !important;
  box-shadow: inset 3px 0 #648b69 !important;
}
body.editorial-develop:not(.heritage-dark) #content .study-unit-link.active :is(b, span, small) { color: inherit !important; }
body.editorial-develop:not(.heritage-dark) .searchbar button:not([type="submit"]),
body.editorial-develop:not(.heritage-dark) #content .hero-btn.secondary {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
  color: var(--layout-primary) !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(
  .grammar-sort-controls button.active,
  .topic-level-selector button.active,
  .verb-filter-groups .verb-family.active,
  .search-result-filters button.active,
  .admin-chapter-nav button.active,
  .words-alpha button.active,
  .book-filterbar button.active,
  .relation-level-buttons button.active,
  .relation-categorybar button.active,
  .generic-filterbar button.active,
  .theme-vocabulary-filters button[aria-pressed="true"],
  .chapter-quick-toolbar .segmented button.active,
  .wordbank-tabs button.active,
  .theme-word-actions button[aria-pressed="true"]
) {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
  color: var(--layout-primary) !important;
}
body.editorial-develop:not(.heritage-dark) .page-controls :is(button[data-steer-menu], button[data-steer-level][aria-pressed="true"]),
body.editorial-develop:not(.heritage-dark) #content .theme-word-actions button[data-theme-word-view="practice"]:not([aria-pressed]) {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
  color: var(--layout-primary) !important;
}

/* Solid green means a primary action; selection is pale green above. */
body.editorial-develop:not(.heritage-dark) :is(.searchbar button[type="submit"], .login-card button[type="submit"]),
body.editorial-develop:not(.heritage-dark) :is(.page-controls .primary, .page-text-edit-button.primary),
body.editorial-develop:not(.heritage-dark) #content :is(.hero-btn:not(.secondary), .primary, .btn-primary, .action-btn, .translate-submit, .word-search-submit),
body.editorial-develop:not(.heritage-dark) #content :is(.verb-search, .dictionary-search) button[type="submit"] {
  border-color: var(--layout-primary) !important;
  background: var(--layout-primary) !important;
  color: #fffefa !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.dictionary-search button, .heritage-daily-card > button, .learning-workspace-actions button:hover) {
  border-color: var(--layout-primary) !important;
  background: var(--layout-primary) !important;
  color: #fffefa !important;
}
body.editorial-develop:not(.heritage-dark) :is(.login-card button, .user-form button),
body.editorial-develop:not(.heritage-dark) #content :is(.practice-round-actions button, .dictionary-word-verb-side .dictionary-open-conjugations, .words-title-row > .action-btn[data-go="dictionary"], .example-flashcard-actions button) {
  border-color: var(--layout-primary) !important;
  background: var(--layout-primary) !important;
  color: #fffefa !important;
}
body.editorial-develop:not(.heritage-dark) #content .words-toolbar .words-quick-buttons button[aria-pressed="true"] {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
  color: var(--layout-primary) !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.rich-level-progression > span, .rich-relation-reference a, .rich-relation-reference button, .rich-level-progression dt) {
  border-color: var(--layout-line) !important;
  background: var(--layout-cream) !important;
  color: var(--layout-blue) !important;
}
body.editorial-develop:not(.heritage-dark) .brand .rule { background: var(--layout-blue) !important; }
body.editorial-develop:not(.heritage-dark) :is(.cs-language-flag.active, .cs-language-flag[aria-pressed="true"]) {
  border-color: #9fbea2 !important;
  background: var(--layout-selected) !important;
}

body.editorial-develop.heritage-dark #content :is(.study-unit-link.active, .wordbank-tabs button.active, .grammar-sort-controls button.active, .topic-level-selector button.active, .generic-filterbar button.active) {
  border-color: #719579 !important;
  background: #405b46 !important;
  color: #f2f4ed !important;
}
body.editorial-develop.heritage-dark #content button.active:not(.primary):not(.btn-primary):not(.action-btn):not(.hero-btn),
body.editorial-develop.heritage-dark .page-controls :is(button[data-steer-menu], button[data-steer-level][aria-pressed="true"]),
body.editorial-develop.heritage-dark :is(.cs-language-flag.active, .cs-language-flag[aria-pressed="true"]) {
  border-color: #719579 !important;
  background: #405b46 !important;
  color: #f2f4ed !important;
}
body.editorial-develop.heritage-dark :is(.searchbar button[type="submit"], .login-card button[type="submit"], .page-controls .primary, .page-text-edit-button.primary),
body.editorial-develop.heritage-dark #content :is(.hero-btn:not(.secondary), .primary, .btn-primary, .action-btn, .translate-submit, .word-search-submit) {
  border-color: #719579 !important;
  background: #405b46 !important;
  color: #f2f4ed !important;
}
body.editorial-develop.heritage-dark #content :is(.rich-level-progression > span, .rich-relation-reference a, .rich-relation-reference button, .rich-level-progression dt) {
  border-color: #719579 !important;
  background: #405b46 !important;
  color: #f2f4ed !important;
}

/* Chapter word cards: no reserved empty controls and no obsolete blue panels. */
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet {
  border-color: var(--layout-line);
  border-radius: 16px;
  background: var(--layout-cream);
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-head > div > span { color: var(--layout-blue) !important; }
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-head > div > p,
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-head > div > small { color: #526559 !important; }
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-cards { align-items: start; gap: 12px; }
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-item {
  align-self: start;
  border-color: var(--layout-line);
  border-radius: 14px;
  background: var(--layout-paper);
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-item .chapter-quizlet-card {
  border-color: var(--layout-line);
  border-radius: 11px;
  background: var(--layout-cream);
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-front {
  color: #24352d !important;
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-back {
  color: var(--layout-blue) !important;
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-item:not(.revealed) .chapter-quizlet-actions {
  display: none !important;
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-item.revealed .chapter-quizlet-actions {
  display: grid !important;
  visibility: visible !important;
}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-head [data-chapter-quizlet-reset] {
  border-color: var(--layout-blue) !important;
  background: var(--layout-paper) !important;
  color: var(--layout-blue) !important;
}

@media (max-width: 750px) {
  body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet-cards { grid-template-columns: 1fr; }
}

/* css/unified-card-views.css */
/* Shared learning cues: translation in blue, Spanish in warm brown. */
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.flashcard-preview-front b,.chapter-quizlet-front,.relation-all-card-front){color:#2d6287!important}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.flashcard-preview-back b,.chapter-quizlet-back,.relation-all-card-back){color:#805940!important}
body #content .theme-vocabulary-panel .cs-single-card,
body #content .chapter-vocabulary-choice .cs-chapter-single-card{max-width:760px;margin:18px auto;padding:20px;border:1px solid #cadbc5;border-radius:18px;background:#f8faf4;text-align:center}
body #content .cs-single-card-flip{display:grid;place-content:center;gap:22px;width:100%;min-height:260px;margin:14px auto;padding:24px;border:2px solid #9bb895;border-radius:18px;background:#fffaf0;cursor:pointer}
body #content .cs-single-card-flip .cs-single-card-translation{color:#2d6287;font-size:clamp(1.5rem,3vw,2.5rem);font-weight:800}
body #content .cs-single-card-flip strong{color:#805940;font-size:clamp(1.7rem,4vw,3rem)}
body #content .cs-single-card-flip [hidden],body #content [data-single-grades][hidden],body #content [data-chapter-single-grades][hidden],body #content .cs-chapter-single-card[hidden]{display:none!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) .chapter-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
body #content :is(.cs-single-card,.cs-chapter-single-card) .chapter-quick-actions button{min-width:0;min-height:46px;padding:10px 6px;border-radius:10px;font-weight:800}
body #content .cs-raster-flip-all{margin:12px 0;padding:11px 16px;border:1px solid #91b08f;border-radius:10px;background:#e6f0e1;color:#294d35;font-weight:800}
body #content .theme-vocabulary-panel .chapter-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
body #content .theme-vocabulary-panel .chapter-quick-actions button{min-width:0}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table){overflow-x:auto;margin:16px 0}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table) table{width:100%;border-collapse:collapse;background:#fffdf8}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table) :is(th,td){padding:12px 16px;border-bottom:1px solid #dce5d8;text-align:left}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table) th{background:#eef4e9;color:#31553a}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table) td[lang="es"]{color:#805940;font-weight:800}
body #content :is(.cs-flashcard-word-table,.cs-relation-word-table) td:not([lang="es"]){color:#2d6287}
body #content .cs-relation-view-modes{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
body #content .cs-relation-view-modes button,body #content .cs-relation-next{padding:10px 14px;border:1px solid #9bb895;border-radius:10px;background:#eaf3e5;color:#2f5338;font-weight:800}
body #content .cs-relation-view-modes button[aria-pressed="true"]{border-color:#56815b;background:#dbead5}
body #content .relation-all-items[data-card-view="practice"]>.relation-all-items-list{display:grid;grid-template-columns:minmax(0,580px);justify-content:center}
body #content .relation-all-items[data-card-view="practice"]>.relation-all-items-list .relation-all-item-wrap{width:100%}
body #content .relation-all-items [hidden]{display:none!important}
body.heritage-dark #content .cs-single-card-flip,body.dark #content .cs-single-card-flip{background:#302d28;border-color:#697d69}
body.heritage-dark #content .cs-single-card-flip .cs-single-card-translation,body.dark #content .cs-single-card-flip .cs-single-card-translation{color:#a8c7dd}
body.heritage-dark #content .cs-single-card-flip strong,body.dark #content .cs-single-card-flip strong{color:#e2aa88}
@media(max-width:640px){body #content :is(.cs-single-card,.cs-chapter-single-card){padding:12px}body #content .cs-single-card-flip{min-height:210px}}

/* One visual language for the three word views. Raster is flip-only. */
body #content{--study-es:#795a47;--study-translation:#3d6174;--study-paper:#fffaf1;--study-shell:#f7f8f3;--study-line:#cbdcc6}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.flashcard-preview-front b,.chapter-quizlet-front,.relation-all-card-front){color:var(--study-translation)!important}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.flashcard-preview-back b,.chapter-quizlet-back,.relation-all-card-back){color:var(--study-es)!important}
body #content :is(.cs-single-card-flip,.cs-chapter-single-card .cs-single-card-flip){background:var(--study-paper)!important;border-color:#96b794!important}
body #content .cs-single-card-flip .cs-single-card-translation{color:var(--study-translation)!important}
body #content .cs-single-card-flip strong[lang="es"]{color:var(--study-es)!important}
body #content .chapter-quizlet .chapter-quizlet-actions,
body #content .theme-vocabulary-panel[data-word-view="raster"] .chapter-quick-actions,
body #content .relation-all-items[data-card-view="raster"] .relation-word-actions{display:none!important}
body.editorial-develop:not(.heritage-dark) #content .chapter-quizlet .chapter-quizlet-item.revealed .chapter-quizlet-actions{display:none!important}
body #content .relation-all-items[data-card-view="practice"] .relation-all-item-wrap:not(:has(.relation-all-item.flipped)) .relation-word-actions{display:none!important}
body #content :is(.chapter-quizlet-cards,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-practice-grid,.relation-all-items[data-card-view="raster"]>.relation-all-items-list,.own-words-progress-grid){width:100%;max-width:1220px;margin-inline:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
body #content :is(.chapter-quizlet-item,.theme-vocabulary-panel[data-word-view="raster"] .chapter-quick-card,.relation-all-items[data-card-view="raster"] .relation-all-item-wrap){border:1px solid var(--study-line)!important;border-radius:14px!important;background:var(--study-shell)!important;box-shadow:none!important}
body #content :is(.chapter-quizlet-card,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card,.relation-all-items[data-card-view="raster"] .relation-all-item){min-height:150px!important;border:1px solid #a9c3a4!important;border-radius:12px!important;background:var(--study-paper)!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) .chapter-quick-actions,
body #content .relation-all-items[data-card-view="practice"] .relation-word-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body #content .relation-all-items[data-card-view="practice"] .relation-word-actions .spanish-audio-button{grid-column:1/-1;justify-self:center}
body #content :is(.cs-single-card,.cs-chapter-single-card) .chapter-quick-actions button,
body #content .relation-all-items[data-card-view="practice"] .relation-word-actions button:not(.spanish-audio-button){width:100%!important;min-width:0!important;min-height:48px!important;border-radius:10px!important;font-size:clamp(.82rem,1.5vw,1rem)!important;font-weight:800!important;line-height:1.2!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) [data-topic-quick-status="known"],
body #content :is(.cs-single-card,.cs-chapter-single-card) [data-chapter-single-grade="known"]{background:#e5f1e0!important;border:2px solid #5e8763!important;color:#2d5637!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) :is([data-topic-quick-status="almost"],[data-chapter-single-grade="almost"]){background:#fff0d6!important;border:2px solid #b38a42!important;color:#624c2c!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) :is([data-topic-quick-status="unknown"],[data-chapter-single-grade="unknown"]){background:#fae8e4!important;border:2px solid #ad7567!important;color:#743f39!important}
body #content :is(.cs-single-card,.cs-chapter-single-card) :is([data-single-next],[data-chapter-single-next]){min-height:44px;padding:10px 16px;border:1px solid #a6bea0;border-radius:10px;background:#e7f1e2;color:#31553a;font-weight:800}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-actions,.chapter-vocabulary-mode,.cs-relation-view-modes) button{border:1px solid #a6bea0!important;border-radius:10px!important;background:#e8f1e3!important;color:#31553a!important;font-weight:800!important}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-actions,.chapter-vocabulary-mode,.cs-relation-view-modes) button:is(.active,[aria-pressed="true"]){border-color:#648d68!important;background:#dcebd6!important;box-shadow:inset 3px 0 #648d68!important}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table) table{width:100%;table-layout:fixed;border-collapse:collapse;background:#fffdf9}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody{display:table-row-group!important}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table :is(thead,tbody) tr{display:table-row!important;background:#fffdf9!important}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr:nth-child(even){background:#f4f7f1!important}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table) :is(th,td){width:50%;padding:11px 14px;border:1px solid #dce5da;text-align:left;vertical-align:top;overflow-wrap:anywhere}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table) th{background:#ecf2e9;color:#31553a}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table) td[lang="es"]{color:var(--study-es)!important;font-weight:700}
body #content :is(.theme-vocabulary-panel,.chapter-vocabulary-choice,.relation-all-items) :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table) td:not([lang="es"]){color:var(--study-translation)!important}
@media(max-width:640px){body #content :is(.cs-single-card,.cs-chapter-single-card) .chapter-quick-actions button{font-size:.82rem!important}}

/* css/language-colors.css */
/* Taal, niet voortgang, bepaalt de kleur van een woord of vertaling. */
:root {
  --language-es: #9d4436;
  --language-translation: #285f83;
  --language-es-soft: #fff4ef;
  --language-translation-soft: #f0f6f8;
}
body #content {
  --study-es: var(--language-es);
  --study-translation: var(--language-translation);
}
/* Eén eenvoudig lettertype voor Spaanse tekst, zonder aparte sierletters. */
body.editorial-develop #content :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip,.spanish-ending,.spanish-example,.spanish-table-text,.verb-form-es) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
}

/* Spaanse woorden, voorbeelden en zinnen: warm terracottarood. */
body.editorial-develop #content [lang="es"],
body.editorial-develop #content :is(.flashcard-player,.flashcard-practice-grid,.flashcard-preview,.relation-all-item) [lang="es"],
body.editorial-develop #content :is(.spanish-table-text,.flashcard-language-es,.chapter-quizlet-back,.relation-all-card-back,.relation-tree-card-back),
body.editorial-develop #content .own-words-progress-card[data-language="es"] strong,
body.editorial-develop #content .own-words-card strong[lang="es"],
body.flashcards-app :is(#cardFront,#cardBack)[lang="es"] {
  color: var(--language-es) !important;
}

/* Nederlandse of Engelse betekenissen: diepblauw op een lichte ondergrond. */
body.editorial-develop #content :is(.flashcard-language-translation,.flashcard-preview-front b,.chapter-quizlet-front,.relation-all-card-front,.relation-tree-card-front,.cs-single-card-translation),
body.editorial-develop #content .own-words-progress-card[data-language="translation"] strong,
body.editorial-develop #content .own-words-card span:not([lang="es"]),
body.editorial-develop #content .own-words-card strong[lang="nl"],
body.flashcards-app :is(#cardFront,#cardBack):is([lang="nl"],[lang="en"]) {
  color: var(--language-translation) !important;
}

/* Woordentabellen hebben overal dezelfde taalvolgorde: Spaans, vertaling. */
body.editorial-develop #content :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table,.cs-flashcard-word-table) td[lang="es"],
body.editorial-develop #content .own-words-table-wrap tbody td:first-child {
  color: var(--language-es) !important;
  font-weight: 700;
}
body.editorial-develop #content :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table,.cs-flashcard-word-table) td:not([lang="es"]),
body.editorial-develop #content .own-words-table-wrap tbody td:nth-child(2) {
  color: var(--language-translation) !important;
}
body.editorial-develop #content :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table,.own-words-table-wrap) th:first-child {
  color: var(--language-es) !important;
}
body.editorial-develop #content :is(.theme-word-table,.chapter-active-vocabulary-table,.cs-relation-word-table,.own-words-table-wrap) th:nth-child(2) {
  color: var(--language-translation) !important;
}

/* Kaartjes blijven rustig; de taalkleur zit in de tekst, niet in een volle knop. */
body.editorial-develop #content :is(.flashcard-preview-front,.chapter-quizlet-front,.relation-all-card-front,.relation-tree-card-front) {
  background: var(--language-translation-soft);
}
body.editorial-develop #content :is(.flashcard-preview-back,.chapter-quizlet-back,.relation-all-card-back,.relation-tree-card-back) {
  background: var(--language-es-soft);
}

body.heritage-dark,
body.dark,
body[data-theme="dark"] {
  --language-es: #e09a78;
  --language-translation: #a9d3ec;
  --language-es-soft: #49342f;
  --language-translation-soft: #263b48;
}

/* css/tense-appearance.css */
/* Werkwoordstijden: één rustig, effen palet in beide weergaven. */
body.editorial-develop #content :is(.tense-grid,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster) :is([class*="glass" i],.glass) {
  background-image:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.tense-grid,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-ending,.verb-form-es) {
  color:var(--language-es) !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.tense-grid,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster) :is(.verb-form-nl,[lang="nl"],[lang="en"]) {
  color:var(--language-translation) !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro>div,.tense-story,.cheatsheet-poster) {
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}

/* Een donker scherm mag nooit lichte tekst op de lichte naslagkaarten zetten. */
body.editorial-develop.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro>div,.tense-story,.tense-story-heading,.tense-story-copy,.tense-story-ending,.tense-irregular-strip,.tense-irregular-strip>span,.tense-choice,.tense-form-card,.tense-memory-card,.tense-contrast,.tense-context-example,.tense-dutch-example,.cheatsheet-visual-head,.cheatsheet-poster,.cheatsheet-poster-intro,.cheatsheet-poster-form,.tense-cheat-card,.tense-cheat-command-card,.tense-cheat-command-note,.tense-cheat-irregular-section,.sheet-notes,.sheet-pattern-summary,.sheet-reading-lines,.timeline,.compare>div) {
  border-color:#645c51 !important;
  background:#302d28 !important;
  background-image:none !important;
  color:#eee6da !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-story-heading,.tense-story-ending,.tense-cheat-card h4,.tense-cheat-command-card h4,.sheet-notes h4,.cheatsheet-poster table thead th,.tense-cheat-card table thead th) {
  background:#3a352e !important;
  background-image:none !important;
  color:#f3ecdf !important;
}
body.editorial-develop.heritage-dark #content :is(.grammar-level-overview,.cheatsheet-poster,.tense-story,.tense-form-card,.tense-memory-card) :is(table,tbody,tr,th,td,.conj) {
  background:#302d28 !important;
  background-image:none !important;
  border-color:#645c51 !important;
  color:#eee6da !important;
}
body.editorial-develop.heritage-dark #content :is(.grammar-level-overview,.cheatsheet-poster,.tense-story,.tense-form-card,.tense-memory-card) tbody tr:nth-child(even) :is(th,td) {
  background:#38342e !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster,.tense-choice,.tense-form-card,.tense-memory-card,.tense-contrast,.tense-context-example,.tense-dutch-example) :is(h1,h2,h3,h4,b,strong,dt,dd) {
  color:#f3ecdf !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster,.tense-choice,.tense-form-card,.tense-memory-card,.tense-contrast,.tense-context-example,.tense-dutch-example) :is(p,li,span,small,em) {
  color:#ddd4c7 !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster,.tense-choice,.tense-form-card,.tense-memory-card,.tense-contrast,.tense-context-example,.tense-dutch-example) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-ending,.verb-form-es),
body.editorial-develop.heritage-dark #content .spanish-chip {
  color:var(--language-es) !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro,.tense-story,.cheatsheet-poster,.tense-choice,.tense-form-card,.tense-memory-card,.tense-contrast,.tense-context-example,.tense-dutch-example) :is(.verb-form-nl,[lang="nl"],[lang="en"]) {
  color:var(--language-translation) !important;
}
body.editorial-develop.heritage-dark #content .spanish-chip {
  border-color:#645c51 !important;
  background:#3a352e !important;
}
body.editorial-develop:not(.heritage-dark) #content .verb-quick-hero {
  border-color:#d9d2c6 !important;
  background:#f7f3ec !important;
  background-image:none !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop.heritage-dark #content :is(.verb-quick-hero,.verb-quick-summary>div,.verb-quick-summary>dl,.verb-quick-results button,.verb-quick-empty) {
  border-color:#645c51 !important;
  background:#302d28 !important;
  background-image:none !important;
  color:#eee6da !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop.heritage-dark #content .verb-quick-hero :is(h1,p,label,span,small) { color:#eee6da !important; }
body.editorial-develop #content :is(.tense-choice,.tense-explain-grid>div,.tense-formation-table,.tense-formation-steps,.tense-formation-formula,.regular-tense-overview,.regular-tense-head,.regular-tense-note) {
  background-image:none !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.tense-choice,.tense-explain-grid>div,.tense-formation-table,.tense-formation-steps,.tense-formation-formula,.regular-tense-overview,.regular-tense-head,.regular-tense-note) {
  border-color:#d9d2c6 !important;
  background:#fffefa !important;
  color:#24363e !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-explain-grid>div,.tense-formation-table,.tense-formation-steps,.tense-formation-formula,.regular-tense-overview,.regular-tense-head,.regular-tense-note,.regular-tense-table,.regular-tense-table :is(th,td),.tense-formation-table :is(th,td)) {
  border-color:#645c51 !important;
  background:#302d28 !important;
  background-image:none !important;
  color:#eee6da !important;
}
body.editorial-develop.heritage-dark #content :is(.tense-explain-grid,.tense-formation-layout,.regular-tense-overview) :is(h2,h3,h4,p,span,small,b,strong,th,td) {
  color:#eee6da !important;
}
body:not(.heritage-dark) #content .tense-formation-steps small {
  color:var(--cs-ui-ink,#394b58) !important;
}
body.editorial-develop.heritage-dark #content .tense-formation-steps>span>b {
  background:#9d4436 !important;
  color:#fffefa !important;
}
body.editorial-develop #content :is(.tense-explain-grid,.tense-formation-layout,.regular-tense-overview) :is([lang="es"],.spanish-inline,.spanish-sentence,.verb-form-es) {
  color:var(--language-es) !important;
}
body.editorial-develop #content :is(.tense-explain-grid,.tense-formation-layout,.regular-tense-overview) :is([lang="nl"],[lang="en"],.verb-form-nl) {
  color:var(--language-translation) !important;
}
/* Ook in een scanvenster en bij een andere editorial-bodyclass blijft het palet vast. */
body.heritage-dark #content :is(.tense-card,.quick,.why,.grammar-level-overview,.tense-family-intro>div,.tense-story,.tense-story-heading,.tense-story-copy,.tense-story-ending,.tense-choice,.tense-explain-grid>div,.tense-formation-table,.tense-formation-steps,.tense-formation-formula,.regular-tense-overview,.regular-tense-head,.regular-tense-note,.regular-tense-table,.cheatsheet-poster,.cheatsheet-poster-intro,.tense-cheat-card,.tense-cheat-card h4,.timeline,.verb-quick-hero,.verb-quick-filter summary,.verb-quick-filter-list,.verb-quick-filter-row,.verb-quick-filter-actions button,.verb-quick-only) {
  border-color:#645c51 !important;
  background:#302d28 !important;
  background-image:none !important;
  color:#eee6da !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.heritage-dark #content :is(.tense-card,.verb-quick-filter-list,.verb-quick-hero,.regular-tense-overview) :is(h1,h2,h3,h4,p,span,small,label,b,strong,th,td) {
  color:#eee6da !important;
}
body.heritage-dark #content .verb-quick-filter-row :is(span,button) { color:#eee6da !important; }
body.heritage-dark #content .tense-example-grid>div {
  background:var(--cs-ui-paper,#302d28) !important;
  border-color:var(--cs-ui-line,#645c51) !important;
}
body #content:has(.timeline) :is([lang="es"],.spanish-inline,.spanish-sentence,.verb-form-es),
body #content:has(.tense-grid) :is([lang="es"],.spanish-inline,.spanish-sentence,.verb-form-es),
body #content:has(.cheatsheet-poster) :is([lang="es"],.spanish-inline,.spanish-sentence,.verb-form-es) {
  color:var(--language-es) !important;
}
body #content:has(.timeline) b[data-nl] { color:var(--language-es) !important; }
body.heritage-dark #content .verb-quick-filter :is(summary,summary span,.verb-quick-filter-row span,.verb-quick-only) {
  color:#eee6da !important;
}

/* Een kaart wisselt niet tijdelijk naar lichte tekst op een nog lichte achtergrond. */
body #content .tense-card { transition:none !important; }
body.editorial-develop:not(.heritage-dark) #content .tense-card,
body.editorial-develop:not(.heritage-dark) #content .tense-card:hover {
  background:#fffefa !important;
  color:#24363e !important;
}
body.editorial-develop:not(.heritage-dark) #content .tense-card :is(h3,p) { color:#24363e !important; }
body.editorial-develop.heritage-dark #content .tense-card,
body.editorial-develop.heritage-dark #content .tense-card:hover {
  background:#302d28 !important;
  color:#eee6da !important;
}
body.editorial-develop.heritage-dark #content .tense-card :is(h3,p) { color:#eee6da !important; }
body.editorial-develop.heritage-dark #content :is(.verb-quick-only,.verb-quick-filter-actions button) {
  background:#302d28 !important;
  color:#eee6da !important;
  border-color:#645c51 !important;
}
body.editorial-develop:not(.heritage-dark) #content :is(.verb-quick-only,.verb-quick-filter-actions button) {
  background:#fffefa !important;
  color:#285f83 !important;
  border-color:#b8d0de !important;
}
/* Spaanse vervoegingen winnen van de algemene donkere tabeltekst. */
body.editorial-develop #content :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip),
body.editorial-develop #content .regular-tense-table b[data-nl] {
  color:var(--language-es) !important;
}
body.editorial-develop.heritage-dark #content :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip),
body.editorial-develop.heritage-dark #content .regular-tense-table b[data-nl] {
  color:var(--language-es) !important;
}
/* De algemene paneeltekst en titelstijl mogen Spaanse woorden niet overschrijven. */
body.editorial-develop #content p.reference-spanish-title[lang="es"],
body.editorial-develop.heritage-dark #content p.reference-spanish-title[lang="es"],
body.editorial-develop.heritage-dark #content .panel :is([lang="es"],.spanish-inline,.spanish-sentence) {
  color:var(--language-es) !important;
}
/* Alle Spaanse woorden en zinnen op tijdpagina's gebruiken hetzelfde rood en lettertype. */
body.editorial-develop #content:has(.timeline) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip,.spanish-ending,.spanish-example,.spanish-table-text,.verb-form-es),
body.editorial-develop #content:has(.tense-story) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip,.spanish-ending,.spanish-example,.spanish-table-text,.verb-form-es),
body.editorial-develop #content:has(.tense-grid) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip,.spanish-ending,.spanish-example,.spanish-table-text,.verb-form-es),
body.editorial-develop #content:has(.cheatsheet-poster) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip,.spanish-ending,.spanish-example,.spanish-table-text,.verb-form-es) {
  color:var(--language-es) !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  letter-spacing:normal !important;
}

/* De verwijzing onder elke tijdpagina hoort bij dezelfde rustige huisstijl. */
body #content .tense-register-link,
body.editorial-develop #content .tense-register-link {
  background:#fffefa !important;
  background-image:none !important;
  border:1px solid #d8e1d3 !important;
  border-radius:16px !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body #content .tense-register-link h3 {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;}
body #content .tense-register-link .action-btn {background:#e5f0e2 !important;border:1px solid #a8c5a4 !important;color:#315b3e !important;box-shadow:none !important;}
body.heritage-dark #content .tense-register-link,
body.editorial-develop.heritage-dark #content .tense-register-link {background:#302d28 !important;background-image:none !important;border-color:#645c51 !important;color:#eee6da !important;}
body.heritage-dark #content .tense-register-link :is(h3,p) {color:#eee6da !important;}
body.heritage-dark #content .tense-register-link .action-btn {background:#344b3d !important;border-color:#6c8974 !important;color:#f4f5ed !important;}

/* Uitgangen horen als tekst in de tabel, zonder witte etiketjes. */
body #content .cheatsheet-poster .spanish-ending,
body.editorial-develop #content .cheatsheet-poster .spanish-ending,
body #content .cheatsheet-poster .cheatsheet-poster-form i .spanish-ending {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
/* Oude themaregels zetten hier opnieuw een pastelverloop neer. */
body #content .cheatsheet-poster .sheet-notes-intro,
body #content .cheatsheet-poster .tense-cheat-card-grid.sheet-grid.poster-sheet-grid .tense-cheat-card h4 {
  background:#f7f3ec !important;
  background-image:none !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.heritage-dark #content .cheatsheet-poster .sheet-notes-intro,
body.heritage-dark #content .cheatsheet-poster .tense-cheat-card-grid.sheet-grid.poster-sheet-grid .tense-cheat-card h4 {
  background:#3a352e !important;
  color:#f3ecdf !important;
}
/* Ook de tabelkoppen en infokaarten kregen via oudere CSS glasverlopen. */
body #content .cheatsheet-poster :is(tr,h3,article) {
  background-image:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

/* De Sitecontrole rendert tijdpagina's ook zonder editorial-develop op de body. */
body #content :is(.quick,.why,.panel,.tense-common-mistake,.tense-story,.tense-grid,.timeline,.compare,.tense-register-link) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip),
body #content .panel .example :is([lang="es"],.spanish-inline,.spanish-sentence),
body.heritage-dark #content :is(.quick,.why,.panel,.tense-common-mistake,.tense-story,.tense-grid,.timeline,.compare) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip) {
  color:var(--language-es) !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.editorial-develop.heritage-dark #content :is(.quick,.why,.panel,.tense-common-mistake,.tense-story,.tense-grid,.timeline,.compare) :is([lang="es"],.spanish-inline,.spanish-sentence,.spanish-chip) {
  color:var(--language-es) !important;
}

/* css/topic-house-style.css */
/* Thema's: dezelfde rustige, leesbare kaartstijl in licht en donker. */
body #content :is(.topic-hero,.topic-detail-heading,.topic-category-card,.topic-depth-card,.topic-category-route,.topic-story,.topic-next,.topic-map-connection,.rich-theme-hero) {
  background:#fffefa !important;
  background-image:none !important;
  border:1px solid #d8e1d3 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body #content:has(.rich-theme-index) :is(.page-intro-hero,.rich-theme-principles) {
  background:#fffefa !important;
  background-image:none !important;
  border:1px solid #d8e1d3 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body #content:has(.rich-theme-index) :is(.page-intro-hero,.rich-theme-principles) :is(h1,h2,h3,p,b) {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.editorial-develop #content:has(.rich-theme-index) :is(.page-intro-hero,.rich-theme-principles) :is(h1,h2,h3,p,b) {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body #content :is(.topic-hero,.topic-detail-heading,.topic-category-card,.topic-depth-card,.topic-category-route,.topic-story,.topic-next,.topic-map-connection,.rich-theme-hero,.rich-theme-overview-reading) :is(h2,h3,b,p,small) {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.editorial-develop #content :is(.rich-theme-hero,.rich-theme-overview-reading) :is(h2,h3,b,p,small) {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.editorial-develop #content .spain-culture-hero.rich-theme-hero {
  background:#fffefa !important;
  background-image:none !important;
  border:1px solid #d8e1d3 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
body.editorial-develop #content .spain-culture-hero.rich-theme-hero :is(h1,h2) {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.editorial-develop #content .theme-reader-layout .gr-index-heading strong {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body #content :is(.topic-hero,.topic-detail-heading) :is(h2,p),
body #content :is(.topic-category-card,.topic-depth-card,.topic-category-route) b {
  color:#24363e !important;
}
body #content :is(.topic-category-card,.topic-depth-card,.topic-category-route):is(:hover,:focus-visible) {
  background:#f3f7f0 !important;
  border-color:#8fb08d !important;
}
body.heritage-dark #content :is(.topic-hero,.topic-detail-heading,.topic-category-card,.topic-depth-card,.topic-category-route,.topic-story,.topic-next,.topic-map-connection,.rich-theme-hero) {
  background:#302d28 !important;
  background-image:none !important;
  border-color:#645c51 !important;
  color:#eee6da !important;
}
body.editorial-develop.heritage-dark #content .spain-culture-hero.rich-theme-hero {
  background:#302d28 !important;
  background-image:none !important;
  border-color:#645c51 !important;
  color:#eee6da !important;
}
body.heritage-dark #content:has(.rich-theme-index) :is(.page-intro-hero,.rich-theme-principles) {
  background:#302d28 !important;
  background-image:none !important;
  border-color:#645c51 !important;
  color:#eee6da !important;
}
body.heritage-dark #content:has(.rich-theme-index) :is(.page-intro-hero,.rich-theme-principles) :is(h1,h2,h3,p,b) {color:#eee6da !important;}
body.heritage-dark #content :is(.topic-hero,.topic-detail-heading,.topic-category-card,.topic-depth-card,.topic-category-route,.topic-story,.topic-next,.topic-map-connection,.rich-theme-hero) :is(h2,h3,b,p,small) {
  color:#eee6da !important;
}
body.heritage-dark #content :is(.topic-category-card,.topic-depth-card,.topic-category-route):is(:hover,:focus-visible) {
  background:#394438 !important;
  border-color:#83a085 !important;
}
body #content :is(.topic-hero,.topic-detail-heading,.topic-category-card,.topic-depth-card,.topic-category-route,.topic-story,.topic-next,.topic-map-connection,.rich-theme-hero,.rich-theme-overview-reading) :is([lang="es"],.spanish-inline,.spanish-sentence) {
  color:var(--language-es) !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body #content [data-rich-theme-title],
body.editorial-develop #content [data-rich-theme-title] {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}

/* css/raster-compact.css */
/* Eén compacte kaartmaat voor de rasters in hoofdstukken, thema's, relaties en eigen woorden. */
body.editorial-develop #content :is(
  .chapter-quizlet-cards,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-practice-grid,
  .relation-all-items[data-card-view="raster"] > .relation-all-items-list,
  .own-words-progress-grid
) {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 8px;
}

body.editorial-develop #content :is(
  .chapter-quizlet-item,
  .theme-vocabulary-panel[data-word-view="raster"] .chapter-quick-card,
  .relation-all-items[data-card-view="raster"] .relation-all-item-wrap
) {
  min-width: 0;
  padding: 5px !important;
  border: 1px solid #d6ddd5 !important;
  border-radius: 11px !important;
  background: #f7f8f5 !important;
  box-shadow: none !important;
}

body.editorial-develop #content :is(
  .chapter-quizlet-card,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card,
  .relation-all-items[data-card-view="raster"] .relation-all-item
) {
  box-sizing: border-box;
  width: 100%;
  height: 96px !important;
  min-height: 96px !important;
  padding: 0 !important;
  border: 1px solid #cdd8d2 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.editorial-develop #content :is(
  .chapter-quizlet-card-inner,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card-inner,
  .relation-all-items[data-card-view="raster"] .relation-all-card-inner
) {
  box-sizing: border-box;
  height: 100% !important;
  min-height: 0 !important;
}

body.editorial-develop #content :is(
  .chapter-quizlet-front, .chapter-quizlet-back,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-front,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-back,
  .relation-all-items[data-card-view="raster"] .relation-all-card-front,
  .relation-all-items[data-card-view="raster"] .relation-all-card-back
) {
  box-sizing: border-box;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  font: 700 .94rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
  overflow-wrap: anywhere;
}

body.editorial-develop #content :is(
  .chapter-quizlet-front,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-front b,
  .relation-all-items[data-card-view="raster"] .relation-all-card-front
) { color: var(--language-translation) !important; }

body.editorial-develop #content :is(
  .chapter-quizlet-back,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-back b,
  .relation-all-items[data-card-view="raster"] .relation-all-card-back
) { color: var(--language-es) !important; }

body.editorial-develop #content .own-words-progress-grid .own-words-progress-card {
  box-sizing: border-box;
  min-height: 88px !important;
  padding: 10px !important;
  gap: 3px;
  border: 1px solid #cdd8d2 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.editorial-develop #content .own-words-progress-grid .own-words-progress-card strong {
  font: 700 .94rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
}
body.editorial-develop #content .own-words-progress-grid .own-words-progress-card[data-language="translation"] strong { color: var(--language-translation) !important; }
body.editorial-develop #content .own-words-progress-grid .own-words-progress-card[data-language="es"] strong { color: var(--language-es) !important; }
body.editorial-develop #content .own-words-progress-grid .own-words-progress-card small { font-size: .7rem; }

body.editorial-develop.heritage-dark #content :is(.chapter-quizlet-item,.theme-vocabulary-panel[data-word-view="raster"] .chapter-quick-card,.relation-all-items[data-card-view="raster"] .relation-all-item-wrap) {
  border-color: #4a5853 !important;
  background: #252e2b !important;
}
body.editorial-develop.heritage-dark #content :is(.chapter-quizlet-card,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card,.relation-all-items[data-card-view="raster"] .relation-all-item,.own-words-progress-grid .own-words-progress-card) {
  border-color: #53645d !important;
  background: #202824 !important;
}
body.editorial-develop.heritage-dark #content :is(.chapter-quizlet-front,.chapter-quizlet-back,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-front,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-back,.relation-all-items[data-card-view="raster"] .relation-all-card-front,.relation-all-items[data-card-view="raster"] .relation-all-card-back) {
  background: #202824 !important;
}

@media (max-width: 520px) {
  body.editorial-develop #content :is(.chapter-quizlet-cards,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-practice-grid,.relation-all-items[data-card-view="raster"] > .relation-all-items-list,.own-words-progress-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
  }
  body.editorial-develop #content :is(.chapter-quizlet-card,.theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card,.relation-all-items[data-card-view="raster"] .relation-all-item) {
    height: 84px !important;
    min-height: 84px !important;
  }
  body.editorial-develop #content .own-words-progress-grid .own-words-progress-card { min-height: 78px !important; }
}

/* css/site-audit-matte.css */
/* Effen achtergronden voor de vier onderdelen die de sitecontrole nog als Glass markeerde. */
body #content .spain-culture-hero { background: #f6f3ed !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.editorial-develop #content .dictionary-page .dictionary-hero { background: #f6f1e9 !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body #content .word-summary.word-summary-inline { background: #f4f8fa !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body #content .course-book-hero { background: #f3f5f0 !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.heritage-dark #content :is(.spain-culture-hero,.course-book-hero),
body.heritage-dark #content .dictionary-page .dictionary-hero,
body.editorial-develop.heritage-dark #content .dictionary-page .dictionary-hero,
body.heritage-dark #content .word-summary.word-summary-inline { background: #302d28 !important; background-image: none !important; color: #eee6da !important; }

/* css/admin-cream-layout.css */
/* One grouped admin navigation and a warmer, quieter workspace. */
@media(min-width:901px){
 body:has(#content .dev-workspace) .side{overscroll-behavior-y:auto!important}
}
body:has(#content .dev-workspace) #pageControls #searchForm{display:none!important}
body:has(#content .dev-workspace) #pageControls [data-admin-top-save]:disabled{display:none!important}
body:has(#content .dev-workspace) #pageControls{background:#fcf7ee!important;border-color:#e3d7c6!important}
body #content:has(>.dev-hero+.dev-workspace){display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body #content:has(>.dev-hero+.dev-workspace)>.dev-hero{display:flex!important;margin:0 0 16px!important}
body #content:has(>.dev-hero+.dev-workspace)>.dev-workspace,
body #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace)>.dev-workspace{display:grid!important;grid-template-columns:minmax(230px,270px) minmax(0,1fr)!important;gap:18px!important;height:auto!important;min-height:0!important;overflow:visible!important;align-items:start!important}
body #content .dev-workspace>.dev-workspace-nav{display:block!important;grid-column:1!important;grid-row:1!important;position:static!important;height:auto!important;overflow:visible!important;padding:12px!important;border:1px solid #e0d2bd!important;border-radius:19px!important;background:#fbf5e9!important;box-shadow:0 10px 28px rgba(83,65,39,.06)!important}
body #content .dev-workspace>.dev-workspace-content{grid-column:2!important;grid-row:1!important;height:auto!important;max-height:none!important;min-width:0!important;overflow:visible!important;padding:0!important}
#content .admin-chapter-nav{display:grid!important;grid-template-columns:1fr!important;gap:11px!important}
#content .admin-nav-group{display:grid;gap:3px;min-width:0}
#content .admin-nav-group+ .admin-nav-group{padding-top:9px;border-top:1px solid #e7ddce}
#content .admin-nav-group summary{display:flex;align-items:center;justify-content:space-between;margin:0 2px 3px;padding:8px 7px;color:#75593d;font-size:11px;font-weight:850;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;list-style:none}
#content .admin-nav-group summary::-webkit-details-marker{display:none}
#content .admin-nav-group summary::after{content:"▾";font-size:13px;letter-spacing:0;transition:transform .18s}
#content .admin-nav-group:not([open]) summary::after{transform:rotate(-90deg)}
#content .admin-nav-group>button{display:grid!important;grid-template-columns:1fr!important;gap:1px!important;align-items:start!important;width:100%!important;min-height:42px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#314a45!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
#content .admin-nav-group>button>span{display:none!important}
#content .admin-nav-group>button>b{font-size:13px!important;line-height:1.2!important}
#content .admin-nav-group>button>small{color:#766f63!important;font-size:10px!important;line-height:1.25!important}
#content .admin-nav-group>button:hover{border-color:#d8c8ac!important;background:#fffaf2!important}
#content .admin-nav-group>button.active,#content .admin-nav-group>button[aria-current="page"]{border-color:#96b296!important;background:#e5efdf!important;color:#254b32!important;box-shadow:inset 3px 0 #4c8b60!important}
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button.active,
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button[aria-current="page"]{border-color:#96b296!important;background:#e5efdf!important;color:#254b32!important;box-shadow:inset 3px 0 #4c8b60!important}
#content .admin-nav-group>button.active>small{color:#48664f!important}
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button.active :is(b,small),
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button[aria-current="page"] :is(b,small){color:#254b32!important}
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button.active>small,
body.editorial-develop #content .admin-chapter-nav .admin-nav-group>button[aria-current="page"]>small{color:#496652!important}
#content .admin-sidebar-refresh{margin-top:2px!important;border:1px dashed #d6c7ae!important;background:#fff9f0!important;color:#5c5949!important}
#content .dev-hero,#content .admin-activity,#content .development-export,#content .users-grid,#content .admin-menu-order-intro,#content .admin-menu-order-group{border-color:#e3d5bf!important;background:#fffaf2!important;box-shadow:0 8px 24px rgba(83,65,39,.04)!important}
#content .dev-hero{background:linear-gradient(120deg,#fbf2e3,#fffaf3)!important}
#content .admin-activity header,#content .development-export h3{color:#263d38}
#content .admin-unified-save{border-color:#c5d6b8;background:#f3f7ed}
#content .admin-sharing-settings{padding:22px!important}
#content .admin-sharing-settings>header{margin-bottom:15px}
/* Keep publication controls still when status text grows; imports get their own row. */
#content .development-export{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,300px);align-items:start;gap:22px}
#content .development-export>div{min-width:0}
#content .development-export-actions{align-self:start;width:100%;margin:0}
#content .development-export-button{box-sizing:border-box;width:100%;min-height:44px;font:inherit;font-weight:750}
#content .development-export-button:disabled{opacity:.45;cursor:default}
#content .development-export>.relation-import{grid-column:1/-1;min-width:0;flex-wrap:wrap}
#content .relation-import input{max-width:100%;min-width:0}
@media(max-width:1300px){#content .development-export{grid-template-columns:minmax(0,1fr)}#content .development-export-actions{max-width:480px}}
#adminSharingModeForm{display:grid;gap:12px}
#adminSharingModeForm .admin-sharing-choice{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid #ded1bc;border-radius:14px;background:#fffdf8;cursor:pointer}
#adminSharingModeForm .admin-sharing-choice:has(input:checked){border-color:#82ab87;background:#ebf3e5;box-shadow:inset 4px 0 #4e8d60}
#adminSharingModeForm .admin-sharing-choice input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#3f8052}
#adminSharingModeForm .admin-sharing-choice span{display:grid;gap:5px}
#adminSharingModeForm .admin-sharing-choice b{color:#294838;font-size:16px}
#adminSharingModeForm .admin-sharing-choice small{color:#5f695b;line-height:1.45}
#adminSharingModeForm .admin-sharing-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
#adminSharingModeForm .admin-sharing-actions button{min-height:42px;padding:9px 15px;border:1px solid #9ab796;border-radius:10px;background:#e7f0df;color:#285036;font-weight:750;cursor:pointer}
#adminSharingModeForm .admin-sharing-actions button.primary{background:#39734b;color:#fff}
#adminSharingModeForm .admin-sharing-actions button[hidden]{display:none}
#adminSharingMessage{margin:2px 0 0;color:#4c614d;font-weight:700}
@media(max-width:900px){
 body #content:has(>.dev-hero+.dev-workspace)>.dev-workspace,body #content:has(>.admin-management-hero+.admin-unified-save+.dev-workspace)>.dev-workspace{grid-template-columns:1fr!important}
 body #content .dev-workspace>.dev-workspace-nav,body #content .dev-workspace>.dev-workspace-content{grid-column:1!important;grid-row:auto!important;position:static!important;max-height:none!important;overflow:visible!important}
 #content .admin-chapter-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content .admin-nav-group{padding:0!important;border:0!important}
}
@media(max-width:560px){#content .admin-chapter-nav{grid-template-columns:1fr!important}}
/* File management: each action, its explanation and its result share one card. */
#content .development-export.admin-file-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#content .admin-file-card{--file-accent:#346e96;--file-tint:#f0f7fc;min-width:0;padding:22px;border:1px solid #d4e1e9;border-top:4px solid var(--file-accent);border-radius:16px;background:var(--file-tint);color:#314b53;align-self:start}
#content .admin-file-card>header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#content .admin-file-card h3{margin:2px 0;color:var(--file-accent);font:750 22px/1.25 system-ui,sans-serif}
#content .admin-file-card .eyebrow{color:var(--file-accent);font-size:10px}
#content .file-group-number{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:#fff;color:var(--file-accent);font-size:18px;font-weight:850}
#content .admin-file-card p{line-height:1.55;margin:8px 0 14px}
#content .file-publish{grid-column:1/-1}
#content .file-backup{--file-accent:#9a661e;--file-tint:#fff8e9;border-color:#e8d8b4}
#content .file-excel{--file-accent:#33704b;--file-tint:#f0f7ee;border-color:#ccdfca}
#content .file-relations{--file-accent:#71558c;--file-tint:#f7f2fa;grid-column:1/-1;border-color:#dccfe5}
#content .admin-file-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:start}
#content .admin-file-actions.stacked{display:grid;margin-top:12px}
#content .admin-file-card .development-export-button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:42px;padding:11px 16px;border:1px solid var(--file-accent);border-radius:10px;background:#fff;color:var(--file-accent);font:750 14px/1.35 system-ui,sans-serif;box-sizing:border-box}
#content .admin-file-card .development-export-button:hover:not(:disabled){background:var(--file-tint);filter:brightness(.97)}
#content .file-publish .development-export-button.promote,#content .file-backup .development-export-button.full,#content .file-excel .content-excel-export button,#content .file-relations .relation-import button{background:var(--file-accent);color:#fff}
#content .admin-publication-steps{display:flex;flex-wrap:wrap;gap:9px 28px;margin:15px 0 20px;padding-left:23px;font-size:14px;color:#416076}
#content .admin-file-note{margin-top:14px;padding-top:12px;border-top:1px solid #d8dfd4;font-size:13px}
#content .admin-file-note>summary,#content .admin-file-extra>summary{cursor:pointer;font-weight:750}
#content .admin-file-card .full-backup-message{min-height:24px;margin:12px 0 0!important}
#content .file-excel .content-excel-export{width:100%;max-width:none;margin:0;padding:0;border:0;box-shadow:none;background:transparent}
#content .file-excel .content-excel-parts{display:grid;gap:9px;margin:14px 0}
#content .file-excel .content-excel-parts label{display:flex;align-items:start;gap:8px;font-size:14px}
#content .file-excel input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--file-accent)}
#content .admin-relation-workflow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:16px}
#content .file-relations .relation-import{display:grid;align-content:start;gap:10px;min-width:0;padding:0 0 0 22px;border:0;border-left:1px solid #dbcfe3}
#content .file-relations .relation-import>label{font-size:13px;font-weight:650}
#content .file-relations .relation-import input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #cdbfda;border-radius:8px;background:#fff;font-size:13px}
#content .file-relations .relation-import p{min-height:18px}
#content .admin-file-extra{grid-column:1/-1;padding:16px 20px;border:1px solid #d8dfdd;border-radius:12px;background:#f5f7f5;color:#566969;font-size:13px}
#content .admin-file-extra p{margin:10px 0}
#content .admin-file-extra .development-export-button{display:inline-block;width:auto;font-size:13px;background:#546e72}
@media(max-width:1200px){#content .development-export.admin-file-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){#content .admin-file-card{padding:17px}#content .admin-file-card h3{font-size:20px}#content .admin-relation-workflow{grid-template-columns:minmax(0,1fr)}#content .file-relations .relation-import{border-left:0;border-top:1px solid #dbcfe3;padding:17px 0 0}#content .admin-file-actions{display:grid}#content .admin-file-card .development-export-button{width:100%}}

.site-audit-actions>[data-site-audit-stop]{grid-column:1/-1;justify-self:end}
.site-audit-actions>[data-site-audit-stop][hidden]{display:none!important}

/* Repair cards and task rows share the dark administration palette. */
body.heritage-dark #content :is(.admin-word-review-card,.dev-action-table,.dev-action-table .dev-row,.editor-repair-guide,.editor-repair-guide li) {
 background:var(--cs-ui-paper,#1a2534);
 border-color:var(--cs-ui-line,#36465a);
 color:var(--cs-ui-ink,#d6deea);
}
body.heritage-dark #content .dev-action-table .dev-head {
 background:var(--cs-ui-blue,#243245);
 color:var(--cs-ui-heading,#eef3f9);
}
body.heritage-dark #content :is(.admin-word-review-card .vocabulary-coverage-meta,.dev-action-table .dev-problem-list li,.repair-missing-tenses) {
 border-color:var(--cs-ui-line,#36465a);
}
body.heritage-dark #content :is(.dev-action-table .dev-item,.dev-action-table .dev-item b,.dev-action-table .dev-problem-list b,.editor-repair-guide h3,.editor-repair-guide li b) {
 color:var(--cs-ui-heading,#eef3f9);
}
body.heritage-dark #content :is(.vocabulary-coverage-meta i,.dev-action-table .dev-item>span,.dev-action-table .dev-item small,.dev-action-table .dev-type,.dev-action-table .dev-problem-list span,.dev-repair-actions small,.editor-repair-guide p,.editor-repair-guide li span,.repair-missing-tenses small) {
 color:var(--cs-ui-muted,#aab8cb);
}
body.heritage-dark #content .editor-repair-guide {border-left-color:var(--cs-ui-error,#ffb2bd)}
body.heritage-dark #content .dev-action-table .dev-priority.high {color:var(--cs-ui-error,#ffb2bd)}
body.heritage-dark #content .dev-action-table .dev-priority.medium {color:#f6d18e}
body.heritage-dark #content .dev-action-table .dev-priority.low {color:var(--cs-ui-muted,#aab8cb)}
body.heritage-dark #content .repair-missing-tenses>div span {
 background:var(--cs-ui-blue,#243245);
 color:var(--cs-ui-primary,#9fc4ee);
}

/* css/theme-vocabulary-table.css */
/* Keep each Spanish word beside its complete translation in the topic lists. */
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table {
  overflow-x: auto;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table table {
  display: table !important;
  width: 100% !important;
  min-width: 540px;
  table-layout: fixed !important;
  border-collapse: collapse;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table thead {
  display: table-header-group !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: normal !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table thead tr {
  display: table-row !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table thead th {
  display: table-cell !important;
  width: 50% !important;
  padding: 11px 17px !important;
  border: 1px solid #e1d9ce !important;
  text-align: left !important;
  vertical-align: middle !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody {
  display: table-row-group !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody tr {
  display: table-row !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody td {
  display: table-cell !important;
  width: 50% !important;
  padding: 13px 17px !important;
  border: 1px solid #e1d9ce !important;
  text-align: left !important;
  vertical-align: middle !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  line-height: 1.38 !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody td[lang="es"] {
  font-size: 20px !important;
  font-weight: 650 !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody td:not([lang="es"]) {
  color: #444d49 !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table tbody [data-theme-word-meaning] {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table tbody td {
  border-color: #51483e !important;
}

body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table thead th {
  border-color: #51483e !important;
}

body.editorial-develop.heritage-dark #content .theme-vocabulary-panel .theme-word-table tbody td:not([lang="es"]) {
  color: #e0d8cc !important;
}

body.editorial-develop #content .theme-vocabulary-panel .theme-word-table table :is(th,td):first-child {width:45%!important}
body.editorial-develop #content .theme-vocabulary-panel .theme-word-table table :is(th,td):last-child {width:55%!important}

/* css/cream-refinement.css */
/* Warm, consistent surfaces in the light theme. Learning status remains in the data,
   but does not change the paper colour of an individual flashcard. */
body.editorial-develop:not(.heritage-dark) {
  background: #f8f5ee;
}

body.editorial-develop:not(.heritage-dark) #content :is(
  .chapter-quizlet-item,
  .theme-vocabulary-panel[data-word-view="raster"] .chapter-quick-card,
  .relation-all-items[data-card-view="raster"] .relation-all-item-wrap
) {
  border-color: #dfd5c7 !important;
  background: #f6f0e6 !important;
}

body.editorial-develop:not(.heritage-dark) #content :is(
  .chapter-quizlet-card,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-card,
  .relation-all-items[data-card-view="raster"] .relation-all-item
) {
  border-color: #d8cabb !important;
  background: #fffbf4 !important;
}

body.editorial-develop:not(.heritage-dark) #content :is(
  .chapter-quizlet-front,
  .chapter-quizlet-back,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-front,
  .theme-vocabulary-panel[data-word-view="raster"] .flashcard-preview-back,
  .relation-all-items[data-card-view="raster"] .relation-all-card-front,
  .relation-all-items[data-card-view="raster"] .relation-all-card-back
) {
  background: #fffbf4 !important;
}

body.editorial-develop:not(.heritage-dark) #content .heritage-home-hero .landing-hero-copy {
  padding: 14px 22px !important;
  border: 1px solid rgba(222, 206, 186, .8) !important;
  border-radius: 14px !important;
  background: rgba(255, 250, 241, .9) !important;
  text-shadow: none !important;
}

@media (max-width: 760px) {
  body.editorial-develop:not(.heritage-dark) #content .heritage-home-hero .landing-hero-copy {
    border-radius: 0 !important;
  }
}

/* Consistente crèmekleur voor alle woordkaartjes, ook bij wisselende status. */
body.editorial-develop:not(.heritage-dark) #content .theme-vocabulary-panel :is(.chapter-quick-card,.flashcard-preview-card,.flashcard-preview-front,.flashcard-preview-back) {background:#fffbf4!important;}
body.editorial-develop:not(.heritage-dark) #content .theme-vocabulary-panel .chapter-quick-card {border-color:#d8cabb!important;}
/* Voortgangstabel: genoeg ruimte voor de kolom Nieuw en leesbare koppen. */
body.editorial-develop #content .relation-progress-overview table {min-width:1280px!important;}
body.editorial-develop #content .relation-progress-overview :is(th,td):first-child {width:24%!important;}
body.editorial-develop #content .relation-progress-overview :is(th,td):nth-child(n+2):nth-child(-n+6) {width:8%!important;white-space:nowrap;}
body.editorial-develop #content .relation-progress-overview :is(th,td):last-child {width:36%!important;}
body.editorial-develop:not(.heritage-dark) #content .handbook-language-choices button.active {background:#e6efe3!important;border-color:#91b18b!important;color:#294a35!important;}
body.editorial-develop:not(.heritage-dark) #content .handbook-language-choices button.active>span {color:#9f4d35!important;}

/* css/sitewide-heading-style.css */
/* Shared typography and light-theme colours across the site. */
body:not(.heritage-dark) :is(h1, h2, h3, h4, h5, h6) {
  color: #285f83 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}

body:not(.heritage-dark) :is(h1, h2, h3, h4, h5, h6) :is(b, strong) {
  color: inherit !important;
  font-weight: inherit !important;
}

/* Match the main app's more specific legacy heading rules. */
html:root body.editorial-develop:not(.heritage-dark) #content :is(h1, h2, h3, h4, h5, h6) {
  color: #285f83 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}
html:root body.editorial-develop:not(.heritage-dark) #content :is(h1, h2, h3, h4, h5, h6) :is(b, strong) {
  color: inherit !important;
  font-weight: inherit !important;
}

/* The shared light-theme type and colour system for the main site and tools. */
body:not(.heritage-dark) {
  --site-blue: #285f83;
  --site-ink: #263c47;
  --site-cream: #f8f4eb;
  --site-paper: #fffbf4;
  --site-border: #d9d0c2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: var(--site-ink);
}

body:not(.heritage-dark) :is(button, input, select, textarea) {
  font-family: inherit !important;
}

body:not(.heritage-dark) :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.18;
  text-wrap: balance;
}

body:not(.heritage-dark) h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem) !important;
}

body:not(.heritage-dark) :is(#content, .module-main, #app) > h2,
body:not(.heritage-dark) :is(.page-intro-hero, .landing-hero, .practice-hero, .learning-hero, .module-hero, .hero, .intro, .exercise-overview, .topic-header) h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.45rem) !important;
}

body.editorial-develop:not(.heritage-dark) #content > .title,
body.editorial-develop:not(.heritage-dark) #content > .section-title,
body.editorial-develop:not(.heritage-dark) #content .gr-index-heading,
body.editorial-develop:not(.heritage-dark) #content .family-map-header h2 {
  color: var(--site-blue) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
}

body.editorial-develop:not(.heritage-dark) #content > .title {
  font-size: clamp(2.3rem, 4vw, 3.6rem) !important;
}

body.editorial-develop:not(.heritage-dark) #content > .section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem) !important;
}

body:not(.heritage-dark) :is(.main, .module-main, .b1-public-page, .unidad2-page) {
  background-color: var(--site-cream);
}

body.develop-editorial-app:not(.heritage-dark),
body.b1-public-page,
body.unidad2-page,
body.site-reader-page {
  background-color: var(--site-cream) !important;
}

body.site-reader-page :is(.reader-header, .reader-toolbar, .page-controls, .selection-panel, .translation-panel) {
  background-color: var(--site-paper);
}

body.site-reader-page .reader-header h1 {
  font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
}

body:not(.heritage-dark) :is(.module-hero, .shortcut-auth-card, .shortcut-login-card, .book-loading-card, .hero, .intro, .exercise-overview > header) {
  border-color: var(--site-border) !important;
  background-color: var(--site-cream) !important;
}

body:not(.heritage-dark) :is(.module-header, .tool-header, .native-book-header, .lookup-head, .topbar, .b1-public-toolbar) {
  background-color: var(--site-paper) !important;
}

/* Keep action labels legible without changing answer states or progress colours. */
body:not(.heritage-dark) :is(button, .hero-btn, .action-btn, .btn-primary) {
  line-height: 1.4;
}

body:not(.heritage-dark) :is(.searchbar button, .module-search button, .shortcut-auth-form button, .shortcut-login-card button, .action-row .primary, .flashcard-actions .primary, .hero-btn:not(.secondary), .b1-public-languages button[aria-pressed="true"]) {
  background: #315a3c !important;
  border-color: #315a3c !important;
  color: #fffbf4 !important;
  font-weight: 600 !important;
}

body:not(.heritage-dark) :is(.module-logout, .module-close, .shortcut-auth-back, .shortcut-auth-secondary, .hero-btn.secondary, .b1-public-languages button:not([aria-pressed="true"])) {
  background: var(--site-paper) !important;
  border-color: #9eb4a1 !important;
  color: #284d35 !important;
  font-weight: 600 !important;
}

body.editorial-develop:not(.heritage-dark) #content :is(.primary, .btn-primary, .action-btn, .translate-submit, .word-search-submit),
body.editorial-develop:not(.heritage-dark) :is(.page-controls .primary, .page-text-edit-button.primary) {
  background: #315a3c !important;
  border-color: #315a3c !important;
  color: #fffbf4 !important;
  font-weight: 600 !important;
}

body:not(.heritage-dark) :is(button, a):focus-visible {
  outline: 3px solid #285f83;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  body:not(.heritage-dark) h1,
  body.editorial-develop:not(.heritage-dark) #content > .title {
    font-size: clamp(2rem, 8vw, 2.7rem) !important;
  }

  body.site-reader-page .reader-header h1 {
    font-size: 1rem !important;
  }
}

/* Paired grammar titles use one type scale; language alone supplies the colour. */
body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row :is(.toc-name, .toc-spanish) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 1.1875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
}

body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row :is(.toc-desc, .toc-desc-es) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: .9375rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.editorial-develop:not(.heritage-dark) #content .grammar-topic-toc.grammar-overview .toc-row .toc-name {
  color: #285f83 !important;
}

body.editorial-develop:not(.heritage-dark) #content .grammar-topic-toc.grammar-overview .toc-row .toc-spanish {
  color: #a65439 !important;
}

/* Keep the exercise's bold labels and answer choices at one readable weight. */
body.editorial-develop #content .chapter-guided-practice :is(.chapter-guided-question, .chapter-guided-own) :is(b, strong, label, button) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
}

body.editorial-develop #content .chapter-guided-question button {
  font-size: 1rem !important;
}

body.editorial-develop #content .chapter-guided-own textarea,
body.editorial-develop #content .chapter-guided-own textarea::placeholder {
  font-weight: 400 !important;
}

body.editorial-develop:not(.heritage-dark) #content .chapter-guided-question button[lang="es"]:not(.correct):not(.wrong),
body.editorial-develop:not(.heritage-dark) #content .chapter-guided-own strong[lang="es"] {
  color: #a65439 !important;
}

body.editorial-develop:not(.heritage-dark) #content .chapter-guided-question button:not([lang="es"]):not(.correct):not(.wrong) {
  color: #285f83 !important;
}

body.editorial-develop:not(.heritage-dark) #content .chapter-guided-own > button[data-guided-finish],
body.editorial-develop:not(.heritage-dark) #content .chapter-guided-own > button[data-guided-finish]:is(:hover, :active, :focus-visible, :disabled) {
  border-color: #285f83 !important;
  background: #285f83 !important;
  color: #fffbf4 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

body.editorial-develop:not(.heritage-dark) #content .chapter-guided-question button:disabled {
  opacity: 1 !important;
}

body.editorial-develop:not(.heritage-dark) .side #nav button:not(.nav-group-label),
body.editorial-develop:not(.heritage-dark) .page-controls button {
  font-weight: 600 !important;
}

body.editorial-develop #content .grammar-sort-controls button,
body.editorial-develop #content .study-toc button {
  font-weight: 500 !important;
}

body.editorial-develop #content .study-toc button.active,
body.editorial-develop #content .grammar-sort-controls button.active {
  font-weight: 600 !important;
}

@media (max-width: 700px) {
  body.editorial-develop #content .grammar-topic-toc.grammar-overview .toc-row :is(.toc-name, .toc-spanish) {
    font-size: 1.0625rem !important;
  }
}

/* css/verb-person-families.css */
/* Native disclosures for the shared verb views. */
#content :is(.verb-person-overview-summary,.verb-person-card>summary,.verb-family-register>summary){display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;color:var(--cs-heading,#334b59)}
#content :is(.verb-person-overview-summary,.verb-person-card>summary,.verb-family-register>summary)::-webkit-details-marker{display:none}
#content :is(.verb-person-overview-summary,.verb-family-register>summary){font-size:22px;padding:10px 0}
#content .verb-person-overview-summary{margin-bottom:14px}
#content .verb-person-card>summary{padding:12px 14px;border-bottom:1px solid #dce4e8;background:#f7f3ed}
#content .verb-person-card>summary h4{margin:0!important;font-size:22px!important;flex:1;color:var(--cs-heading,#334b59)!important}
#content .verb-person-card>summary>span:first-child{font-size:12px;font-weight:800;color:var(--cs-blue,#2d7396)}
#content .verb-person-card>summary:focus-visible,#content .verb-person-overview-summary:focus-visible,#content .verb-family-register>summary:focus-visible{outline:3px solid #2d7396;outline-offset:2px}
#content .verb-person-toggle{transition:transform .15s}
#content .verb-person-card[open]>summary .verb-person-toggle{transform:rotate(45deg)}
#content .verb-family-register{margin-block:20px;padding:18px}
#content .verb-family-register>summary small{display:block;font-size:14px;font-weight:400;margin-top:6px}
#content .verb-family-tools{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-block:14px}
#content .verb-family-tools label{display:flex;gap:8px;align-items:center}
#content .verb-family-tools input[type=search]{width:min(350px,100%);padding:10px;border:1px solid #cbd7df;border-radius:9px}
#content .verb-family-table-scroll{overflow-x:auto;max-width:100%}
#content .verb-family-register-table{width:100%;min-width:680px;border-collapse:collapse;text-align:left}
#content .verb-family-register-table :is(th,td){vertical-align:top;padding:10px;border-bottom:1px solid #dce4e8;width:25%}
#content .verb-family-register-table thead{background:#f4f0e9}
#content .verb-family-register-table .verb-word-family-link{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:8px;text-align:left}
#content .verb-family-register-table small{font-weight:400;color:#5a686f}
#content .verb-family-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}
@media(max-width:560px){#content .verb-person-overview-summary{font-size:20px}#content .verb-family-tools>label:first-child{display:grid;width:100%}}

/* css/site-status.css */
/* Compact, truthful readiness for the accessible learning areas. */
#pageControls .site-status{position:relative;flex:0 0 auto;margin-left:auto;color:#31566a;font:650 12px/1.35 system-ui,sans-serif}
#pageControls .site-status>summary{display:flex;align-items:center;gap:7px;min-height:36px;padding:5px 10px;border:1px solid #c7d9df;border-radius:10px;background:#f3f8f8;cursor:pointer;list-style:none;white-space:nowrap;box-sizing:border-box}
#pageControls .site-status>summary::-webkit-details-marker{display:none}
#pageControls .site-status>summary::before{content:'';width:7px;height:7px;border-radius:50%;background:#8aa0aa;flex:none}
#pageControls .site-status[data-state=loading]>summary::before{background:#367ca0;animation:siteStatusPulse 1.4s ease-in-out infinite}
#pageControls .site-status[data-state=ready]>summary{border-color:#aec9af;background:#edf5e9;color:#315e39}
#pageControls .site-status[data-state=ready]>summary::before{background:#4c8b57}
#pageControls .site-status[data-state=error]>summary::before{background:#b87927}
#pageControls .site-status summary:focus-visible{outline:3px solid #ddac3b;outline-offset:2px}
#pageControls .site-status strong{font-variant-numeric:tabular-nums;min-width:4ch;text-align:right}
#pageControls .site-status-panel{position:absolute;right:0;top:calc(100% + 9px);z-index:110;width:min(310px,calc(100vw - 32px));box-sizing:border-box;padding:17px;border:1px solid #cbd9d8;border-radius:14px;background:#fffef9;color:#314b51;box-shadow:0 12px 30px #203a4526;white-space:normal;font-size:13px;font-weight:450}
#pageControls .site-status-panel>b{display:block;margin-bottom:10px;font-weight:750}
#pageControls .site-status progress{display:block;width:100%;height:7px;accent-color:#4b8056}
#pageControls .site-status ul{display:grid;gap:7px;list-style:none;padding:0;margin:13px 0}
#pageControls .site-status li[data-ready=true]{color:#356441}
#pageControls .site-status p{margin:10px 0 0;line-height:1.45;color:#64727a}
#pageControls .site-status button{margin-top:10px;font-size:12px;min-height:32px}
#pageControls .site-status button[hidden]{display:none}
@keyframes siteStatusPulse{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){#pageControls .site-status>summary::before{animation:none!important}}
@media(max-width:600px){#pageControls .site-status{font-size:11px}#pageControls .site-status>summary{min-height:32px;padding:5px 7px;gap:5px}}
@media(max-width:600px){#pageControls .site-status-panel{position:fixed;top:var(--steer-bottom,160px);right:12px;max-height:calc(100dvh - var(--steer-bottom,160px) - 12px);overflow:auto}}
body.dark #pageControls .site-status-panel{background:#23333b;color:#e5ede9;border-color:#5d7377}

