/* ============================================================
   dark.css — "Navy Dark" theme: the WHOLE app in dark navy
   ------------------------------------------------------------
   GENERATED by tools/darkgen.py from style.css, theme.css,
   responsive.css, themes.css and index.html (2026-11-21).
   Do not edit the generated part by hand — re-run:
       python3 tools/darkgen.py app
   Hand-tuned details are at the END (from tools/dark_tail.css).
   Only active when the Navy Dark theme is chosen, and only on
   screen (printing / PDF reports stay white).
   ============================================================ */

@media screen {
/* ---- from style.css ---- */
html[data-theme="navy"] { --bg: #202b3f; --bg-elevated: #1b2334; --bg-subtle: #1e273a; --text-primary: #d6d9e1; --text-secondary: #9da5b6; --text-tertiary: #8c96aa; --border: #404e6a; --border-light: #344057; --accent: #509eec; --accent-soft: #1b3148; --success-bg: #1c4b26; --warning-bg: #48351b; --warning-border: #76592d; --danger-dark: #e65c5c; --danger-bg: #461d1b; }
html[data-theme="navy"] ::-webkit-scrollbar-thumb { background: #3c4e74; }
html[data-theme="navy"] .login-wrap { background: linear-gradient(180deg, #202b3f 0%, #1c334a 100%); }
html[data-theme="navy"] .tab-btn.active { background: #1b2334; }
html[data-theme="navy"] .btn-small.btn-danger:hover { background: #1f293d; border-color: #762d2d; }
html[data-theme="navy"] .sidebar { background: rgba(27, 35, 52, 0.72); }
html[data-theme="navy"] .workspace-switcher select { background: #1b2334; }
html[data-theme="navy"] .banner.warn { color: #f0c274; }
html[data-theme="navy"] .banner.warn a { color: #f0c274; }
html[data-theme="navy"] .child-card.inactive { background: #1e273a; }
html[data-theme="navy"] .child-card.is-adult { background-color: #1f293d; border-color: #2d5176; }
html[data-theme="navy"] .child-card.is-child { background-color: #212b3f; border-color: #30733f; }
html[data-theme="navy"] .status.ok { color: #87de95; }
html[data-theme="navy"] .status.warn { color: #f0c274; }
html[data-theme="navy"] .cred-box { background: #202b3f; }
html[data-theme="navy"] .cred-sep { border-top: 1px dashed #404e6a; }
html[data-theme="navy"] .assess-cell { background: #1b2334; }
html[data-theme="navy"] .assess-cell[data-state="present"] { color: #87de95; }
html[data-theme="navy"] .assess-cell[data-state="missing"] { border-color: #762d2d; }
html[data-theme="navy"] .assess-cell-na { background: #1e273a; }
html[data-theme="navy"] .assess-cell-quick[data-state="present"] .assess-cell-state { color: #87de95; }
html[data-theme="navy"] .assess-cell-quick[data-state="missing"] { border-color: #762d2d; }
html[data-theme="navy"] .survey-info { color: #90b6dc; }
html[data-theme="navy"] .survey-row { border-bottom: 1px solid #2f394e; }
html[data-theme="navy"] .survey-cell { background: #1b2334; }
html[data-theme="navy"] .survey-cell[data-state="present"] { color: #87de95; }
html[data-theme="navy"] .survey-cell[data-state="missing"] { border-color: #762d2d; }
html[data-theme="navy"] .picture-tile { background: #1b2334; }
html[data-theme="navy"] .picture-tile.inactive { background: #1e273a; }
html[data-theme="navy"] .picture-tile img { background: #232f45; }
html[data-theme="navy"] .picture-tile-ipa { color: #90b6dc !important; }
html[data-theme="navy"] .tile-vocab-select { background: #1b2334; }
html[data-theme="navy"] .duplicate-option { background: #1b2334; }
html[data-theme="navy"] .duplicate-option img { background: #202b3f; }
html[data-theme="navy"] .import-summary-box { background: #212b3f; border: 1px solid #2d5676; color: #90b6dc; }
html[data-theme="navy"] .baseline-progress-bar { background: #293650; }
html[data-theme="navy"] .name-row-edit { background: #1b2334; }
html[data-theme="navy"] .therapy-stage { background: #1b2334; }
html[data-theme="navy"] .reward-preview-img { background: #1b2334; }
html[data-theme="navy"] .token-slot { background: #1b2334; }
html[data-theme="navy"] .therapy-btn-independent { background: #20542b; color: #87de95; }
html[data-theme="navy"] .therapy-btn-cued { background: #52401f; color: #f0c274; }
html[data-theme="navy"] .therapy-btn-incorrect { background: #4d211d; color: #e87b72; }
html[data-theme="navy"] .therapy-btn-incorrect:hover { background: #582721; }
html[data-theme="navy"] .reward-thumb:hover { background: #232f45; }
html[data-theme="navy"] .reward-thumb img { background: #1b2334; }
html[data-theme="navy"] .reward-card { background: #1b2334; }
html[data-theme="navy"] .quick-probe-card { background: #1b2334; }
html[data-theme="navy"] .quick-probe-image-wrap { background: #202b3f; }
html[data-theme="navy"] .quick-probe-btn-yes { background: #20542b; color: #87de95; }
html[data-theme="navy"] .quick-probe-btn-no { background: #4d211d; color: #e87b72; }
html[data-theme="navy"] .quick-probe-btn-no:hover { background: #582721; }
@media print {
  html[data-theme="navy"] body { background: #1b2334; }
  html[data-theme="navy"] .card,
html[data-theme="navy"] .child-card,
html[data-theme="navy"] .audit-table { border: 1px solid #455473; }
  html[data-theme="navy"] h1,
html[data-theme="navy"] h2 { color: #eaecf0; }
}
html[data-theme="navy"] .login-signup-btn:hover { background: #1b2334; }
html[data-theme="navy"] .picture-tile-img-wrap img { background: #232f45; }
html[data-theme="navy"] .play-audio-btn { background: rgba(27, 35, 52, 0.9); }
html[data-theme="navy"] .play-audio-btn:hover { background: #1b2334; }
html[data-theme="navy"] #anatomy-game-modal .ana-flash-label { background: rgba(27, 35, 52, 0.95); }
html[data-theme="navy"] #anatomy-game-modal .port { background: #1b2334; }
html[data-theme="navy"] #anatomy-game-modal .handle { background: #1b2334; }
html[data-theme="navy"] #anatomy-game-modal .socket { background: rgba(27, 35, 52, 0.9); }
html[data-theme="navy"] #anatomy-game-modal .socket.ok { color: #5bedbc; }
html[data-theme="navy"] #anatomy-game-modal .region.ok { stroke: #5bedbc; color: #5bedbc; }
html[data-theme="navy"] #anatomy-game-modal .lbl { color: #a8b8d3; background: rgba(27, 35, 52, 0.95); }
/* ---- from theme.css ---- */
html[data-theme="navy"] { --bg: #212b3f; --bg-subtle: #1e283b; --text-primary: #d9dce3; --text-secondary: #9b9faa; --text-tertiary: #8691a6; --border: #3d4a65; --border-light: #333f56; --accent: #519dec; --accent-hover: #5ea4ed; --accent-soft: #1b2f48; }
html[data-theme="navy"] .sidebar { background: #1b2334; }
html[data-theme="navy"] .workspace-switcher .btn-small.btn-primary { border: 1px dashed #2d4f76; }
html[data-theme="navy"] .nav-item:hover { background: #222d42; }
html[data-theme="navy"] .acct-chip:hover,
html[data-theme="navy"] .acct-chip[aria-expanded="true"] { background: #222d42; }
html[data-theme="navy"] .acct-icon-btn { background: #1b2334; }
html[data-theme="navy"] .acct-icon-btn:hover { background: #222d42; }
html[data-theme="navy"] .acct-menu { background: #1b2334; }
html[data-theme="navy"] .acct-menu button:hover { background: #222d42; }
html[data-theme="navy"] .acct-menu .acct-danger:hover { background: #461b1b; }
html[data-theme="navy"] .empty-state { background: #1b2334; }
html[data-theme="navy"] .btn-secondary { background: #1b2334; }
html[data-theme="navy"] .btn-secondary:hover { border-color: #4c5d7f; }
html[data-theme="navy"] .btn-small:hover { border-color: #4c5d7f; }
html[data-theme="navy"] .field input,
html[data-theme="navy"] .field select,
html[data-theme="navy"] .field textarea,
html[data-theme="navy"] .modal-card input[type="text"],
html[data-theme="navy"] .modal-card input[type="email"],
html[data-theme="navy"] .modal-card input[type="password"],
html[data-theme="navy"] .modal-card input[type="date"],
html[data-theme="navy"] .modal-card input[type="time"],
html[data-theme="navy"] .modal-card input[type="number"],
html[data-theme="navy"] .modal-card select,
html[data-theme="navy"] .modal-card textarea { background: #1b2334; }
html[data-theme="navy"] .field input:hover,
html[data-theme="navy"] .field select:hover,
html[data-theme="navy"] .field textarea:hover { border-color: #4c5d7f; }
html[data-theme="navy"] .modal-card { border: 1px solid rgba(38, 47, 64, 0.6); }
html[data-theme="navy"] .login-wrap { background: radial-gradient(1200px 600px at 50% -10%, #1c3049 0%, rgba(28, 48, 73, 0) 70%), var(--bg); }
html[data-theme="navy"] .appdlg { background: #1b2334; }
html[data-theme="navy"] .appdlg-success .appdlg-icon { background: #253148; color: #76e09a; }
html[data-theme="navy"] .appdlg-warning .appdlg-icon { background: #4a381c; color: #edac5e; }
html[data-theme="navy"] .appdlg-danger  .appdlg-icon { background: #461b1b; }
html[data-theme="navy"] .appdlg-input { background: #1b2334; }
html[data-theme="navy"] .appdlg-cancel { background: #1b2334; }
html[data-theme="navy"] { --t-blue: #519dec; --t-blue-bg: #1b2e48; --t-green: #6ce29e; --t-green-bg: #1d4b2e; --t-orange: #eca652; --t-orange-bg: #4a361c; --t-purple-bg: #301b47; --t-pink-bg: #481b31; --t-teal: #6aeee3; --t-teal-bg: #1d4d45; --t-indigo-bg: #1d1b47; --t-red-bg: #461b1b; --t-slate: #99a7ba; --t-slate-bg: #232e44; }
html[data-theme="navy"] .btn-small.btn-danger { border: 1px solid #762d2d !important; }
html[data-theme="navy"] .nav-item.active .nav-icon { background: #1b2334; }
html[data-theme="navy"] .ca-btn { background: #1b2334; }
html[data-theme="navy"] .ca-chip:hover { background: #1b2334; border-color: #455573; }
html[data-theme="navy"] .ca-delete { border: 1px solid #762d2d; }
html[data-theme="navy"] .picture-tile > div:first-child { background: #232d43; }
html[data-theme="navy"] .tile-vocab-select { background: #1b2334 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235f6470' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center; }
html[data-theme="navy"] select:not([multiple]):not([size]) { background-color: #1b2334; }
html[data-theme="navy"] select:not([multiple]):not([size]):hover { border-color: #4c5d7f; }
html[data-theme="navy"] input[type="file"]::file-selector-button { border: 1px solid #2d4e76; }
html[data-theme="navy"] input[type="file"]::file-selector-button:hover { background: #1d334d; }
html[data-theme="navy"] .audit-search input { background: #1b2334
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
html[data-theme="navy"] .audit-date input { background: #1b2334; }
@media (max-width: 700px) {
  html[data-theme="navy"] .audit-v2 tr { background: #1b2334; }
}
html[data-theme="navy"] .people-search input { background: #1b2334 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
html[data-theme="navy"] .people-list { background: #1b2334; }
html[data-theme="navy"] .people-row:hover { background: #1e273a; }
html[data-theme="navy"] .pa { background: #1b2334; }
html[data-theme="navy"] .pa-edit:hover { border-color: #2d4f76; }
html[data-theme="navy"] .pa-warn:hover { border-color: #76562d; }
html[data-theme="navy"] .pa-ok:hover { border-color: #2d7648; }
html[data-theme="navy"] .pa-key:hover { border-color: #302d76; }
html[data-theme="navy"] .pa-del { border-color: #762d2d; }
html[data-theme="navy"] .people-x { background: #1b2334; }
html[data-theme="navy"] .sms-number,
html[data-theme="navy"] .sms-msg textarea,
html[data-theme="navy"] .sms-tpl textarea,
html[data-theme="navy"] .sms-tpl select,
html[data-theme="navy"] .sms-tpl input { background: #1b2334; }
html[data-theme="navy"] .sms-consent { border: 1px solid #76562d; color: #f0b774; }
html[data-theme="navy"] .sms-fields { border: 1px dashed #2d4e76; background: #1e273a; }
html[data-theme="navy"] .sms-row-btn { border-color: #2d7648 !important; }
html[data-theme="navy"] .sms-box { background: #1b2334; border: 1px solid #2d7648; }
html[data-theme="navy"] .sms-box.all-done { border-left-color: #2d7648; }
html[data-theme="navy"] .ag-tile { background: #1b2334; }
html[data-theme="navy"] .ag-tile.ag-sms.ok b { color: #86e5aa; }
html[data-theme="navy"] .ag-tabs,
html[data-theme="navy"] .ag-view { background: #253047; }
html[data-theme="navy"] .ag-tabs button.on,
html[data-theme="navy"] .ag-view button.on { background: #1b2334; }
html[data-theme="navy"] #agenda-list { background: #1b2334; }
html[data-theme="navy"] .ag-row.is-next { background: #463d1b; }
html[data-theme="navy"] .ag-av.child { background: #1c384a; color: #6abfee; }
html[data-theme="navy"] .ag-av.adult { background: #231b47; }
html[data-theme="navy"] .ag-badge.child { background: #1c384a; color: #6abfee; }
html[data-theme="navy"] .ag-badge.adult { background: #231b47; }
html[data-theme="navy"] .ag-need { color: #ed9d60; }
html[data-theme="navy"] .ag-st.next { background: #544920; color: #ef9d6c; }
html[data-theme="navy"] .ag-st.up { background: #1b2f48; color: #61a6ed; }
html[data-theme="navy"] .ag-st.late { background: #4a1c1c; color: #e65c5c; }
html[data-theme="navy"] .ag-st.done { background: #1d4d2d; color: #86e5aa; }
html[data-theme="navy"] .ag-st.none { background: #232d43; }
html[data-theme="navy"] .ag-btn.sec { background: #1b2334; }
html[data-theme="navy"] .ag-dots { background: #1b2334; }
html[data-theme="navy"] .ag-menu { background: #1b2334; }
html[data-theme="navy"] .ag-menu button.warn { color: #ed9d60; }
html[data-theme="navy"] .ag-menu button.danger { color: #e65c5c; }
html[data-theme="navy"] .sms-qr-status.ok { color: #86e5aa; background: #1d4d2d; }
html[data-theme="navy"] .sms-qr-status.warn { color: #ef9d6c; background: #544920; }
html[data-theme="navy"] .sms-qr-noapp { background: #544920; color: #ef9d6c; }
html[data-theme="navy"] .sp-when { border: 1px solid #2d766c; }
html[data-theme="navy"] .sp-when input { background: #1b2334; }
html[data-theme="navy"] .sp-row { background: #1b2334; }
html[data-theme="navy"] .sp-lead-strong { border: 1px solid #4f2d76; }
html[data-theme="navy"] .sp-home-btn b { background: #1b2334; }
html[data-theme="navy"] .child-card.cc-on,
html[data-theme="navy"] .child-card.cc-on.is-child,
html[data-theme="navy"] .child-card.cc-on.is-adult { background: var(--bg-elevated, #1b2334); }
html[data-theme="navy"] .child-card.cc-on::before { background: linear-gradient(180deg, var(--cc-soft), rgba(27, 35, 52, 0)); }
html[data-theme="navy"] .cc-type.child { background: #1c384a; color: #6abfee; }
html[data-theme="navy"] .cc-type.adult { background: #231b47; }
html[data-theme="navy"] .sp-ok-line { color: #86e5aa; background: #1d4d2d; }
html[data-theme="navy"] .fl-who em { color: #ed9d60; }
html[data-theme="navy"] .fl-on { color: #86e5aa; }
html[data-theme="navy"] .ag-badge.survey { background: #491c35; color: #e9689c; }
html[data-theme="navy"] .sv-ok { color: #86e5aa; }
html[data-theme="navy"] .sv-bad { color: #e65c5c; }
html[data-theme="navy"] #directory-list .cc-survey.is-new { background: #491c35; color: #e9689c; border-color: #762d55; }
html[data-theme="navy"] .sv-box.is-new { border-color: #762d55; background: #1f293d; }
html[data-theme="navy"] .sb-head { border-bottom: 1px solid #344057; background: #1b2334; }
html[data-theme="navy"] .sb-head h2 { color: #d6d9e1; }
html[data-theme="navy"] .sb-sub { color: #9da5b6; }
html[data-theme="navy"] .sb-body { background: #1f283b; }
html[data-theme="navy"] .sb-intro { color: #c2c7d2; }
html[data-theme="navy"] .sb-hint { color: #9da5b6; }
html[data-theme="navy"] .sb-cat-name { color: #8c96aa; }
html[data-theme="navy"] .sb-snd { border: 1.5px solid #404e6a; background: #1b2334; }
html[data-theme="navy"] .sb-snd-ipa { color: #d6d9e1; }
html[data-theme="navy"] .sb-snd-tag { color: #8c96aa; }
html[data-theme="navy"] .sb-snd.is-missing { background: #45331a; }
html[data-theme="navy"] .sb-snd.is-missing .sb-snd-tag { color: #ed9d60; }
html[data-theme="navy"] .sb-snd.is-done { background: #212c41; }
html[data-theme="navy"] .sb-snd.is-done .sb-snd-tag { color: #87de95; }
html[data-theme="navy"] .sb-rules { background: #1b2334; border: 1px solid #344057; }
html[data-theme="navy"] .sb-rules h3 { color: #d6d9e1; }
html[data-theme="navy"] .sb-progress { color: #c2c7d2; }
html[data-theme="navy"] .sb-bar { background: #293650; }
html[data-theme="navy"] .sb-pos { background: #1b3148; color: #509eec; }
html[data-theme="navy"] .sb-pic { background: #1b2334; border: 1px solid #344057; }
html[data-theme="navy"] .sb-word { color: #8c96aa; }
html[data-theme="navy"] .sb-link { color: #509eec; }
html[data-theme="navy"] .sb-err { background: #1b2334; border: 1.5px solid #76322d; }
html[data-theme="navy"] .sb-err-q { color: #e65c5c; }
html[data-theme="navy"] .sb-chip { border: 1.5px solid #404e6a; background: #1e273a; color: #d6d9e1; }
html[data-theme="navy"] .sb-chip:hover { background: #1f293d; }
html[data-theme="navy"] .sb-syl { color: #d6d9e1; background: #1b2334; border: 1px solid #344057; }
html[data-theme="navy"] .sb-muted { color: #8c96aa; }
html[data-theme="navy"] .sb-total { background: #1b2334; border: 1px solid #344057; }
html[data-theme="navy"] .sb-total-n { color: #509eec; }
html[data-theme="navy"] .sb-total-n small { color: #8c96aa; }
html[data-theme="navy"] .sb-total-t { color: #c2c7d2; }
html[data-theme="navy"] .sb-box { background: #1b2334; border: 1px solid #344057; }
html[data-theme="navy"] .sb-box-t { color: #8c96aa; }
html[data-theme="navy"] .sb-row-l { color: #c2c7d2; }
html[data-theme="navy"] .sb-row-n { color: #c2c7d2; }
html[data-theme="navy"] .sb-meter { background: #242f45; }
html[data-theme="navy"] .sb-note { color: #c2c7d2; }
html[data-theme="navy"] .sb-warn { color: #ed9d60; background: #48351b; border: 1px solid #76592d; }
html[data-theme="navy"] .sb-phono { color: #f2bb88; background: #48351b; }
html[data-theme="navy"] .sb-rec { background: #1b2334; border: 1.5px solid #2d5676; }
html[data-theme="navy"] .sb-rec-t { color: #509eec; }
html[data-theme="navy"] .sb-rec-step { color: #d6d9e1; }
html[data-theme="navy"] .sb-rec ul { color: #c2c7d2; }
html[data-theme="navy"] .sb-rec p { color: #c2c7d2; }
html[data-theme="navy"] .sb-banner.is-todo { background: #48351b; border: 1px solid #76592d; color: #f2bb88; }
html[data-theme="navy"] .sb-banner.is-done { background: #1a2e45; border: 1px solid #2d5676; color: #90b6dc; }
html[data-theme="navy"] .sb-b-skip { border: 1px solid #404e6a; background: #1b2334; color: #c2c7d2; }
html[data-theme="navy"] .sb-banner.is-block { background: #461d1b; border: 1px solid #76322d; color: #e98279; }
html[data-theme="navy"] .sb-banner.is-skip { background: #222d42; border: 1px solid #404e6a; color: #c2c7d2; }
html[data-theme="navy"] .sb-info { background: #1b2334; color: #509eec; }
html[data-theme="navy"] .sb-tip { color: #d6d9e1; background: #1b2334; border: 1px solid #404e6a; }
html[data-theme="navy"] .sb-tip b { color: #509eec; }
html[data-theme="navy"] .sb-tip small { color: #9da5b6; }
html[data-theme="navy"] .sb-listen .mp-card { background: #1b2334; border: 3px solid #404e6a; }
html[data-theme="navy"] .sb-listen .mp-card .w { color: #d6d9e1; }
html[data-theme="navy"] .sb-listen .mp-card .ipa { color: #8c96aa; }
html[data-theme="navy"] .sb-rep-w { background: #222d42; color: #d6d9e1; }
html[data-theme="navy"] .sb-rep-w.ok { background: #1c492a; }
html[data-theme="navy"] .sb-rep-w.ok em { color: #7ae498; }
html[data-theme="navy"] .sb-rep-w.bad { background: #451d1a; }
html[data-theme="navy"] .sb-rep-w.skip { color: #8c96aa; }
/* ---- from responsive.css ---- */
html[data-theme="navy"] body.therapy-mode #iso-guide-content { background: #202b3f; border: 1px solid #404e6a; }
@media (orientation: landscape) and (max-height: 560px) {
  html[data-theme="navy"] body.therapy-mode #screen-ear-training .therapy-stage > .fit-slot { background: #1b2334; }
}
@media (max-width: 900px) {
  html[data-theme="navy"] .mobile-topbar { background: rgba(27, 35, 52, 0.92); }
  html[data-theme="navy"] .mt-menu-btn { background: #1b2334; }
  html[data-theme="navy"] .sidebar { background: #1b2334 !important; }
}
html[data-theme="navy"] .rec-active.rec-round::after { background: #1b2334; color: #ec5564; }
/* ---- from themes.css ---- */
html[data-theme="navy"] .th-card { background: #1b2334; }
/* ---- from index.html <style> #1 ---- */
html[data-theme="navy"] .sound-grid-container::-webkit-scrollbar-thumb,
html[data-theme="navy"] .step-list-container::-webkit-scrollbar-thumb { background: #354567; }
html[data-theme="navy"] .sound-category-group { background: #202b3f; border: 1px solid #344057; border-left: 6px solid #404e6a; }
html[data-theme="navy"] .sound-cat-label { color: #8c96aa; }
html[data-theme="navy"] .sound-btn { border: 1px solid #404e6a; background: #1b2334; color: #d6d9e1; }
html[data-theme="navy"] .sound-btn:hover { background: #1f293d; }
html[data-theme="navy"] .sound-btn.mastered { background: #293650; color: #8c96aa; }
html[data-theme="navy"] .step-btn { border: 1px solid #344057; background: #1b2334; }
html[data-theme="navy"] .step-title { color: #d6d9e1; }
html[data-theme="navy"] .step-subtitle { color: #8c96aa; }
/* ---- from index.html <style> #2 ---- */
/* ---- from index.html <style> #3 ---- */
html[data-theme="navy"] .cert-paper { background-color: #1f293c; background-image: radial-gradient(circle at 50% 50%, #1b2334 0%, #1f293c 50%, #503f1e 100%),
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.03) 0px, rgba(212, 175, 55, 0.03) 2px, transparent 2px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.03) 0px, rgba(212, 175, 55, 0.03) 2px, transparent 2px, transparent 20px); }
html[data-theme="navy"] .cert-title { color: #d9dce3; }
html[data-theme="navy"] .cert-subtitle { color: #e97178; }
html[data-theme="navy"] .cert-text-small { color: #bcc1cd; }
html[data-theme="navy"] .cert-name { color: #d9dce3; }
html[data-theme="navy"] .cert-body-text { color: #c7ccd6; }
html[data-theme="navy"] .cert-stage { color: #e97178; }
html[data-theme="navy"] .cert-sig-label { color: #b0b7c4; }
html[data-theme="navy"] .cert-sig-value { color: #d9dce3; }
@media print {
  html[data-theme="navy"] #certificate-modal { background: #1b2334 !important; }
}
/* ---- from index.html <style> #4 ---- */
html[data-theme="navy"] .lock-card { background: rgba(27, 35, 52, 0.98); border: 1px solid rgba(38, 47, 64, 0.2); }
html[data-theme="navy"] .lock-title { color: #d6d9e1; }
html[data-theme="navy"] .lock-subtitle { color: #9da5b6; }
html[data-theme="navy"] .lock-input { border: 2px solid #344057; background: #202b3f; color: #d6d9e1; }
html[data-theme="navy"] .lock-input:focus { background: #1b2334; }
html[data-theme="navy"] .lock-input::placeholder { color: #8c96aa; }
html[data-theme="navy"] .btn-lock-ghost { background: #202b3f; color: #d6d9e1; }
html[data-theme="navy"] .btn-lock-ghost:hover { background: #293650; }
}

/* ============================================================
   Hand-tuned Navy Dark details
   ============================================================ */
@media screen {
  html[data-theme="navy"] {
    color-scheme: dark;
    --bg: #0c1424; --bg-subtle: #131c2d; --bg-elevated: #1a2335;
    --surface: #1a2335; --surface-2: #212c41;
    --text-primary: #e3e9f2; --text-secondary: #a6b2c4; --text-tertiary: #7f8ca2;
    --border: #34425c; --border-light: #283550;
    --accent: #3b82f6; --accent-hover: #60a5fa; --accent-soft: rgba(59,130,246,0.16); --accent-ring: rgba(96,165,250,0.38); --accent-2: #60a5fa;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow: 0 1px 3px rgba(0,0,0,0.35), 0 6px 16px rgba(0,0,0,0.28);
    --shadow-lg: 0 24px 56px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35);
    --t-blue: #60a5fa; --t-blue-bg: rgba(59,130,246,0.16);
    --success-bg: rgba(34,197,94,0.14); --warning-bg: rgba(245,158,11,0.14); --warning-border: rgba(245,158,11,0.4); --danger-bg: rgba(239,68,68,0.14);
  }
  html[data-theme="navy"] body, html[data-theme="navy"] .main, html[data-theme="navy"] .content, html[data-theme="navy"] .app-layout { background: var(--bg); color: var(--text-primary); }

  /* side menu: a shade darker than the page */
  html[data-theme="navy"] .sidebar { background: #08101e !important; border-right-color: #1c2740 !important; }
  html[data-theme="navy"] .mobile-topbar { background: #08101e !important; border-bottom-color: #1c2740 !important; }
  html[data-theme="navy"] .mobile-topbar .mt-title, html[data-theme="navy"] .mobile-topbar button { color: #e3e9f2 !important; }

  /* forms */
  html[data-theme="navy"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  html[data-theme="navy"] select, html[data-theme="navy"] textarea {
    background-color: #0f1829 !important; color: var(--text-primary) !important; border-color: #34425c !important;
  }
  html[data-theme="navy"] input::placeholder, html[data-theme="navy"] textarea::placeholder { color: #6f7d93 !important; }
  html[data-theme="navy"] input:focus, html[data-theme="navy"] select:focus, html[data-theme="navy"] textarea:focus { border-color: var(--accent) !important; }
  html[data-theme="navy"] input[type="file"]::file-selector-button { background: #212c41; color: #e3e9f2; border: 1px solid #34425c; }
  html[data-theme="navy"] select option { background: #1a2335; color: #e3e9f2; }

  /* buttons that were white */
  html[data-theme="navy"] .btn-secondary, html[data-theme="navy"] .btn-ghost, html[data-theme="navy"] .ag-btn.sec, html[data-theme="navy"] .ag-dots {
    background: #212c41 !important; color: #e3e9f2 !important; border-color: #34425c !important;
  }
  html[data-theme="navy"] .btn-secondary:hover, html[data-theme="navy"] .ag-btn.sec:hover, html[data-theme="navy"] .ag-dots:hover { background: #2a3650 !important; }

  /* windows (modals) a little lighter than the page, with a hairline */
  html[data-theme="navy"] .modal-card, html[data-theme="navy"] .appdlg { background: #1a2335 !important; border: 1px solid #2c3954; }
  html[data-theme="navy"] .modal-overlay { background: rgba(2, 6, 15, 0.72) !important; }

  /* agenda */
  html[data-theme="navy"] .ag-row.is-next { background: rgba(245,158,11,0.09) !important; }
  html[data-theme="navy"] .ag-row:hover { background: #1f2a3f; }
  html[data-theme="navy"] .ag-tabs, html[data-theme="navy"] .ag-view { background: #131c2d; }
  html[data-theme="navy"] .ag-tabs button.on, html[data-theme="navy"] .ag-view button.on { background: #2a3650; color: #fff; }
  html[data-theme="navy"] .ag-st.done { background: rgba(34,197,94,0.16); color: #86efac; }
  html[data-theme="navy"] .ag-st.next { background: rgba(245,158,11,0.18); color: #fcd34d; }
  html[data-theme="navy"] .ag-st.up { background: rgba(59,130,246,0.18); color: #93c5fd; }
  html[data-theme="navy"] .ag-st.late { background: rgba(239,68,68,0.18); color: #fca5a5; }
  html[data-theme="navy"] .ag-st.none { background: #212c41; color: #a6b2c4; }
  html[data-theme="navy"] .ag-badge.child, html[data-theme="navy"] .ag-av.child { background: rgba(14,165,233,0.18); color: #7dd3fc; }
  html[data-theme="navy"] .ag-badge.adult, html[data-theme="navy"] .ag-av.adult { background: rgba(139,92,246,0.2); color: #c4b5fd; }
  html[data-theme="navy"] .ag-need { color: #fbbf24; }

  /* scrollbars */
  html[data-theme="navy"] ::-webkit-scrollbar-thumb { background: #34425c; border-radius: 8px; }
  html[data-theme="navy"] ::-webkit-scrollbar-track { background: transparent; }

  /* pictures: never invert, just soften pure-white picture backgrounds a touch */
  html[data-theme="navy"] img { filter: none; }

  /* text selection */
  html[data-theme="navy"] ::selection { background: rgba(96,165,250,0.35); color: #fff; }

  /* client colours (clientlook.js, 2026-11-22): own colour per client, dark tints */
  html[data-theme="navy"] .child-card.cc-on, html[data-theme="navy"] .child-card.cc-on.is-child, html[data-theme="navy"] .child-card.cc-on.is-adult { background-color: #1b2436; border-color: #2c3954; border-left-color: var(--cc-lt); }
  html[data-theme="navy"] .child-card.cc-on:hover { border-color: #3a4a68; border-left-color: var(--cc-lt); }
  html[data-theme="navy"] .child-card.cc-on::before { background: linear-gradient(180deg, var(--cc-dark), rgba(27,36,54,0)); opacity: 1; }
  html[data-theme="navy"] .child-card.cc-on > .child-photo-thumb, html[data-theme="navy"] .child-card.cc-on > .cc-avatar { box-shadow: 0 0 0 3px #1b2436, 0 0 0 5px var(--cc-lt), 0 4px 12px rgba(0,0,0,0.35); }
  html[data-theme="navy"] .cc-avatar, html[data-theme="navy"] .ag-row.cc-on .ag-av.cc-initials { background: var(--cc-dark); color: var(--cc-lt); }
  html[data-theme="navy"] .ag-row.cc-on { box-shadow: inset 4px 0 0 var(--cc-lt); }
  html[data-theme="navy"] .ag-row.cc-on.is-next { box-shadow: inset 4px 0 0 var(--cc-lt), inset 0 0 0 1px rgba(252,211,77,0.45); }
  html[data-theme="navy"] .ag-row.cc-on .ag-av.cc-photo, html[data-theme="navy"] img.cc-dir-face { box-shadow: 0 0 0 2px #1b2436, 0 0 0 4px var(--cc-lt); }
  html[data-theme="navy"] #directory-list .dir-row.cc-on { box-shadow: inset 4px 0 0 var(--cc-lt); }
  html[data-theme="navy"] .cc-type.child { background: rgba(14,165,233,0.18); color: #7dd3fc; }
  html[data-theme="navy"] .cc-type.adult { background: rgba(139,92,246,0.2); color: #c4b5fd; }
  html[data-theme="navy"] .ag-badge.survey { background: rgba(236,72,153,0.2); color: #f9a8d4; }
  html[data-theme="navy"] .sv-ok { color: #86efac; } html[data-theme="navy"] .sv-bad { color: #fca5a5; }
  html[data-theme="navy"] .sv-box.is-new { background: rgba(236,72,153,0.12); border-color: #7a2c55; }
}
