/* Shared settings sheet. Prefix each selector so learner and marketing styles stay isolated. */
.cue-prefs-sheet {
  --pref-bg:#fffefd; --pref-ink:#302b27; --pref-muted:#72695e;
  --pref-line:#eae3d9; --pref-row:#f2eeea; --pref-accent:#746657;
  color-scheme:light;
  position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:20px;
  box-sizing:border-box;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--pref-ink);
  font:400 15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans",sans-serif;
}
@media(prefers-color-scheme:dark) {
  .cue-prefs-sheet:not([data-appearance="light"]) {
    color-scheme:dark;--pref-bg:#202326;--pref-ink:#f1f3f4;--pref-muted:#afb4bb;
    --pref-line:#383d42;--pref-row:#303438;--pref-accent:#e0e5e8;
  }
}
.cue-prefs-sheet[data-appearance="dark"] {
  color-scheme:dark;--pref-bg:#202326;--pref-ink:#f1f3f4;--pref-muted:#afb4bb;
  --pref-line:#383d42;--pref-row:#303438;--pref-accent:#e0e5e8;
}
.cue-prefs-sheet:not([open]) {display:none}
.cue-prefs-sheet[open] {display:grid;place-items:center}
.cue-prefs-sheet::backdrop {background:rgb(12 13 15 / .43)}
.cue-prefs-panel {
  width:min(100%,378px);max-height:100%;overflow:auto;overscroll-behavior:contain;
  box-sizing:border-box;background:var(--pref-bg);border:1px solid var(--pref-line);
  border-radius:17px;padding:10px;box-shadow:0 18px 64px rgb(0 0 0 / .17);
}
.cue-prefs-head {display:flex;align-items:center;gap:2px;padding:0 0 8px;border-bottom:1px solid var(--pref-line)}
.cue-prefs-head .cue-prefs-title {font-family:inherit;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.018em;margin:0;padding:0 8px;color:var(--pref-ink)}
.cue-prefs-sheet button {
  appearance:none;display:flex;align-items:center;text-align:start;cursor:pointer;font:inherit;line-height:1.35;
  border:0;border-radius:7px;background:transparent;color:var(--pref-ink);padding:0;
}
.cue-prefs-sheet button:focus-visible {outline:2px solid var(--pref-accent);outline-offset:-2px}
.cue-prefs-sheet .cue-prefs-head-action {width:44px;height:44px;justify-content:center;flex:none}
.cue-prefs-dismiss {margin-inline-start:auto}
.cue-prefs-rows {display:grid;gap:3px;padding-top:8px}
.cue-prefs-sheet .cue-prefs-row {width:100%;min-height:44px;gap:10px;padding:10px 12px}
.cue-prefs-sheet .cue-prefs-row[aria-checked="true"],.cue-prefs-sheet button:hover {background:var(--pref-row)}
.cue-prefs-label {flex:1;min-width:0}
.cue-prefs-value {color:var(--pref-muted);font-size:14px}
.cue-prefs-icon {display:grid;place-items:center;width:16px;height:16px;flex:none;position:relative}
.cue-prefs-icon::before,.cue-prefs-close::after {content:"";display:block;box-sizing:border-box}
.cue-prefs-forward::before,.cue-prefs-back::before {width:7px;height:7px;border-top:1.6px solid;border-right:1.6px solid;transform:rotate(45deg);color:var(--pref-muted)}
.cue-prefs-back::before {transform:rotate(-135deg);color:var(--pref-ink)}
.cue-prefs-check::before {width:6px;height:11px;border-right:1.8px solid;border-bottom:1.8px solid;transform:translateY(-1px) rotate(45deg)}
.cue-prefs-close::before,.cue-prefs-close::after {position:absolute;width:14px;height:1.5px;background:currentColor;transform:rotate(45deg)}
.cue-prefs-close::after {transform:rotate(-45deg)}
@media(max-width:520px) {
  .cue-prefs-sheet {padding:12px 10px max(10px,env(safe-area-inset-bottom))}
  .cue-prefs-sheet[open] {align-items:end}
  .cue-prefs-panel {width:100%;max-width:400px;border-radius:16px}
}
