*{box-sizing:border-box;margin:0;padding:0;}
body{background:#0E1B2E;direction:rtl;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100vh;}
/* Recording protection: block the easy download paths (long-press "save",
   drag-to-save) on media and the play controls. Not bulletproof — true
   protection needs signed expiring URLs — but stops casual downloading. */
audio,video,.pbtn,.big-pbtn,.emerg-play-btn,.rec-btn{-webkit-touch-callout:none;-webkit-user-drag:none;user-drag:none;}
.W{max-width:480px;margin:0 auto;min-height:100vh;box-sizing:border-box;}
.topbar{
  background:linear-gradient(180deg,#18293E 0%,#16273B 100%);
  padding:12px 16px 0;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}
.tb-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;position:relative;}
.tb-brand{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) translateY(-5px);
  color:#D4A24E;
  font-size:16px;
  font-weight:600;
  letter-spacing:0.3px;
  pointer-events:auto;
  white-space:nowrap;
  z-index:1;
  max-width:50%;
  text-align:center;
}
body.day-mode body.day-mode .tb-brand{
  color:#a85200;
}
.tb-badges{display:flex;gap:5px;align-items:center;}
@media (max-width:380px){ #brand-title{font-size:15px!important;} #dictTopBtn .dict-top-lbl{display:none;} #dictTopBtn{padding:0 11px!important;} }
.tb-left-group{display:flex;gap:8px;align-items:center;flex-shrink:0;padding-right:6px;}
.bnew{
  background:#117A5B;
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:3px 7px;
  border-radius:8px;
  white-space:nowrap;
  line-height:1.2;
}
.bstatus{
  background:rgba(29,158,117,0.2);
  color:#1D9E75;
  font-size:10px;
  font-weight:600;
  padding:3px 7px;
  border-radius:8px;
  white-space:nowrap;
  border:1px solid rgba(29,158,117,0.4);
  line-height:1.2;
}
.role-circle{
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(212,134,46,0.18);
  border:1.5px solid rgba(212,134,46,0.5);
  color:#fff;
  font-size:15px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:inherit;
  padding:0;
  transition:all 0.2s ease-out;
  flex-shrink:0;
  box-shadow:0 2px 6px rgba(212,134,46,0.2);
}
.role-circle:active{transform:scale(0.92);}
.role-circle:hover{background:rgba(212,134,46,0.3);}
.role-circle-divider{display:none;}
body.day-mode .bnew{background:#117A5B;}
body.day-mode .bstatus{background:rgba(29,158,117,0.15);color:#147a59;border-color:rgba(29,158,117,0.5);}
body.day-mode .role-circle{background:rgba(26,43,60,0.15);border-color:rgba(26,43,60,0.3);color:#1A2B3C;}
.theme-toggle{display:flex;gap:8px;align-items:center;flex-shrink:0;padding-left:6px;}

/* Premium gold accents */
.gold-accent{color:#D4A24E;}
.gold-bg{background:rgba(212,162,78,0.12);border-color:rgba(212,162,78,0.3);}
.gold-border{border-color:rgba(212,162,78,0.4)!important;}


/* Welcome & Help Popup styles */
.welcome-bg{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.welcome-pop, .help-pop{
  background:linear-gradient(135deg,#1F3147 0%,#18293E 100%);
  border:1px solid rgba(212,134,46,0.3);
  border-radius:20px;
  padding:24px;
  max-width:420px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.welcome-title{color:#D4A24E;font-size:24px;font-weight:700;text-align:center;margin-bottom:8px;}
.welcome-sub{color:#E8D9B8;font-size:14px;text-align:center;margin-bottom:20px;}
.welcome-roles{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.welcome-role-btn{
  background:rgba(212,134,46,0.1);
  border:1.5px solid rgba(212,134,46,0.3);
  border-radius:14px;
  padding:14px 8px;
  color:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  transition:all 0.2s;
}
.welcome-role-btn:hover{background:rgba(212,134,46,0.2);border-color:#D4A24E;transform:translateY(-2px);}
.welcome-role-emoji{font-size:28px;}
.help-header{text-align:center;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(212,134,46,0.2);}
.help-h-title{color:#D4A24E;font-size:20px;font-weight:700;margin-bottom:4px;}
.help-h-sub{color:#a0b8c8;font-size:12px;}
.help-
.help-section{margin-bottom:16px;}
.help-title{color:#D4A24E;font-size:13px;font-weight:700;margin-bottom:8px;text-transform:uppercase;letter-spacing:0.5px;}
.help-row{display:flex;align-items:flex-start;gap:10px;padding:8px 0;}
.help-icon{font-size:20px;width:32px;text-align:center;flex-shrink:0;}
.help-txt{flex:1;display:flex;flex-direction:column;gap:2px;}
.help-txt strong{color:#fff;font-size:14px;}
.help-desc{color:#a0b8c8;font-size:12px;}
.help-close-btn{width:100%;background:#D4A24E;color:#fff;border:none;border-radius:12px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:all 0.2s;}
.help-close-btn:hover{background:#b87325;}

.popup-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
.popup-action-btn{
  background:#c0392b;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:8px 16px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  transition:all 0.15s;
}
.popup-action-btn:hover,.popup-action-btn:active{
  background:#a82318;
  transform:translateY(-1px);
}
.popup-action-btn.fav.active{
  background:#D4A24E;
}

/* Responses section in popup */
.responses-section{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(212,134,46,0.3);
}
.responses-title{
  color:#D4A24E;
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
  text-align:right;
}
.responses-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.response-item{
  background:rgba(255,243,227,0.95);
  border:1px solid rgba(198,103,0,0.4);
  border-radius:8px;
  padding:8px 10px;
  text-align:right;
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.response-content{
  flex:1;
}
.response-he{
  color:#0e1b2e;
  font-size:13px;
  font-weight:700;
  margin-bottom:2px;
}
.response-trans{
  color:#5a3a1a;
  font-size:12px;
  font-weight:500;
  margin-bottom:2px;
}
.response-ar{
  color:#a85200;
  font-size:15px;
  font-weight:700;
  font-family:Georgia,serif;
}
.response-play-btn{
  background:#D4A24E;
  color:#fff;
  border:none;
  border-radius:50%;
  width:32px;
  height:32px;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  margin-top:2px;
  font-family:inherit;
}
.response-play-btn:hover,.response-play-btn:active{background:#b87325;}
.response-play-btn:disabled{background:#aaa;cursor:not-allowed;}
.response-play-btn.no-audio{background:#999;opacity:0.4;cursor:not-allowed;}
.popup-action-btn.fav.active:hover{
  background:#b87325;
}
body.day-mode .popup-action-btn{background:#c0392b;color:#fff;}
body.day-mode .popup-action-btn.fav.active{background:#D4A24E;}

/* Error overlay (connection issue) */
.err-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.88);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.err-box{
  background:#0E1B2E;
  border:2px solid #c0392b;
  border-radius:18px;
  padding:28px 24px;
  max-width:420px;
  width:100%;
  text-align:center;
  color:#fff;
  box-shadow:0 12px 40px rgba(192,57,43,0.4);
}
.err-icon{font-size:48px;margin-bottom:12px;}
.err-title{font-size:22px;font-weight:800;color:#D4A24E;margin-bottom:10px;}
.err-msg{font-size:14px;color:#E8D9B8;line-height:1.6;margin-bottom:22px;}
.err-actions{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;}
.err-retry{
  background:#117A5B;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:16px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
}
.err-retry:hover,.err-retry:active{background:#168a64;}
.err-dismiss{
  background:transparent;
  color:#7a9ab5;
  border:1px solid rgba(210,180,140,0.3);
  border-radius:12px;
  padding:12px;
  font-size:13px;
  cursor:pointer;
  font-family:inherit;
}
.err-dismiss:hover{background:rgba(210,180,140,0.08);color:#E8D9B8;}
.err-hint{font-size:11px;color:#7a9ab5;font-style:italic;}
body.day-mode .err-box{background:#fff8e7;color:#0e1b2e;}
body.day-mode .err-msg{color:#5a3a1a;}

/* Toast notification */
.toast{
  position:fixed;
  bottom:88px;
  left:50%;
  transform:translateX(-50%);
  background:#0E1B2E;
  color:#fff;
  padding:14px 22px;
  border-radius:99px;
  font-size:14px;
  font-weight:600;
  z-index:9999;
  box-shadow:0 6px 20px rgba(0,0,0,0.4);
  border:1px solid #D4A24E;
  min-width:240px;
  max-width:90%;
  text-align:center;
  animation:toastIn 0.25s ease-out;
}
.toast.success{border-color:#1D9E75;}
.toast.error{border-color:#c0392b;}
.toast.warn{border-color:#FFD700;}
@keyframes toastIn{from{transform:translateX(-50%) translateY(20px);opacity:0;}to{transform:translateX(-50%) translateY(0);opacity:1;}}
body.day-mode .toast{background:#fff;color:#0e1b2e;}

.role-choice-all:hover,.role-choice-all:active{
  background:rgba(212,134,46,0.12);
  border-color:#D4A24E;
  color:#fff;
}

/* Gold marker */
.gold-marker{display:inline-block;color:#FFD700;font-size:15px;margin-left:6px;text-shadow:0 0 6px rgba(255,215,0,0.7);vertical-align:middle;}

/* Emergency mode grid */
.emerg-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;}
.customs-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px;}
.customs-cube{
  border-radius:16px;
  position:relative;
  padding:22px 14px;
  text-align:center;
  cursor:pointer;
  border:1px solid rgba(212,162,78,0.15);
  transition:all 0.15s;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100px;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.customs-cube:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.customs-cube:active{
  transform:translateY(-1px);
  box-shadow:0 3px 8px rgba(0,0,0,0.3);
}
.customs-cube:hover,.customs-cube:active{transform:translateY(-2px);box-shadow:0 4px 14px rgba(0,0,0,0.4);}
.customs-cube-icon{font-size:32px;margin-bottom:6px;}
.customs-cube-title{color:#fff;font-size:13px;font-weight:700;line-height:1.3;}
.customs-cube-count{color:rgba(255,255,255,0.7);font-size:10px;margin-top:4px;}
.emerg-cube{
  border-radius:18px;
  padding:20px 14px;
  text-align:center;
  cursor:pointer;
  background:linear-gradient(160deg,#1F3147 0%,#243a55 100%);
  border:2px solid rgba(212,162,78,0.18);
  transition:all 0.2s ease-out;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100px;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.emerg-cube:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.emerg-cube:active{
  transform:translateY(-1px);
  box-shadow:0 3px 8px rgba(0,0,0,0.3);
}
.emerg-cube:active{transform:scale(0.97);}
/* Cohesive with the rest of the app: all cubes share the navy tile background;
   the category "colour" survives only as a subtle border + a thin top accent. */
.emerg-cube.red{border-color:rgba(192,57,43,0.85);}
.emerg-cube.blue{border-color:rgba(91,155,213,0.75);}
.emerg-cube.orange{border-color:rgba(201,120,37,0.8);}
.emerg-cube.green{border-color:rgba(29,158,117,0.8);}
.emerg-cube.gray{border-color:rgba(150,160,170,0.6);}
.emerg-cube.gold{border-color:rgba(212,162,78,0.85);}
.emerg-cube.teal{border-color:rgba(47,176,176,0.8);}
.emerg-cube.sky{border-color:rgba(91,155,213,0.75);}
.emerg-cube.crit{border-color:rgba(212,162,78,0.9);}
.emerg-cube.purple{border-color:rgba(138,107,208,0.8);}
.emerg-cube.rose{border-color:rgba(208,138,155,0.8);}
.emerg-cube.mint{border-color:rgba(79,208,160,0.8);}
/* ── "עוד" menu = map of the whole kit, same look as home ── */
#more-menu .mm-h{color:#D4A24E;font-size:12px;font-weight:800;margin:14px 2px 7px;}
#more-menu .mm-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;}
#more-menu .mm-tile{background:#1F3147;border:1px solid #2A3D52;border-radius:12px;padding:10px 4px;text-align:center;cursor:pointer;}
#more-menu .mm-ic{font-size:20px;line-height:1;margin-bottom:5px;}
#more-menu .mm-lb{color:#E8D9B8;font-size:12px;font-weight:700;line-height:1.25;}
#more-menu .mm-row{margin-top:14px;background:#1F3147;border:1px solid #2A3D52;border-radius:12px;padding:11px 14px;cursor:pointer;display:flex;align-items:center;gap:10px;}
#more-menu .mm-row-t{color:#E8D9B8;font-size:13px;font-weight:700;}
#more-menu .mm-row-s{color:#7a9ab5;font-size:11px;margin-top:2px;}
#more-menu #offline-pack-row{border-radius:12px!important;}
#more-menu .mm-admin{display:block;margin:12px auto 0;background:transparent;border:none;color:#7a9ab5;font-size:12px;cursor:pointer;font-family:inherit;opacity:0.8;}
body.day-mode #more-menu .mm-tile, body.day-mode #more-menu .mm-row{background:#fff!important;border-color:rgba(168,82,0,0.2)!important;}
body.day-mode #more-menu .mm-lb, body.day-mode #more-menu .mm-row-t{color:#0e1b2e!important;}
body.day-mode #more-menu .mm-h{color:#a85200!important;}
/* Library category lists sit flush in their container — give them the app's side margin */
#litems > .pc-nav, #litems > .learn-bar, #litems .pc-list, #litems .pc-sec{margin-left:14px!important;margin-right:14px!important;}
#dlitems > .learn-bar, #dlitems .pc-list, #hlitems > .learn-bar{margin-left:0;margin-right:0;}
/* Slim learning-mode bar (same everywhere) */
.learn-bar{position:relative;display:flex;align-items:center;gap:8px;background:transparent;border:1px solid rgba(120,170,230,0.45);border-radius:10px;padding:8px 12px;margin:0 0 12px;cursor:pointer;overflow:hidden;}
.learn-bar .lb-ic{font-size:15px;}
.learn-bar .lb-t{color:#8fbfef;font-size:13.5px;font-weight:800;white-space:nowrap;}
.learn-bar .lb-s{color:#7a9ab5;font-size:12px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.learn-bar .lb-cnt{color:#8fbfef;font-size:11.5px;font-weight:700;}
.learn-bar .lb-track{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(120,170,230,0.15);}
.learn-bar .lb-track span{display:block;height:100%;background:#5b9bd5;}
.learn-bar .lb-go{color:#8fbfef;font-size:16px;}
body.day-mode .learn-bar{border-color:rgba(31,79,134,0.4);background:#fff;}
body.day-mode .learn-bar .lb-t, body.day-mode .learn-bar .lb-cnt, body.day-mode .learn-bar .lb-go{color:#1f4f86;}
body.day-mode .learn-bar .lb-s{color:#4a5b6c;}
/* ── Phrase lists: one column, strong headings, jump chips ── */
.pc-list{display:flex;flex-direction:column;gap:8px;}
.pc-list > div{flex:none!important;min-width:0!important;padding:11px 14px!important;}
.pc-sec{display:flex;align-items:center;gap:8px;color:#E8D9B8;font-size:15.5px;font-weight:800;margin:22px 0 10px;padding:3px 10px 3px 0;border-right:4px solid #D4A24E;line-height:1.3;}
.pc-sec-other{border-right-color:#7a9ab5;color:#a0b8c8;}
.pc-cnt{background:rgba(212,162,78,0.15);color:#D4A24E;font-size:11.5px;font-weight:800;padding:1px 9px;border-radius:9px;}
body.day-mode .pc-sec{color:#0e1b2e;}
body.day-mode .pc-sec-other{color:#4a5b6c;}
body.day-mode .pc-cnt{background:rgba(168,82,0,0.10);color:#7f3e00;}
.pc-nav{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.pc-nav::-webkit-scrollbar{display:none;}
.pc-nav button{flex-shrink:0;background:#1F3147;border:1px solid #2A3D52;color:#E8D9B8;border-radius:16px;padding:7px 13px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap;}
body.day-mode .pc-nav button{background:#fff;border-color:rgba(168,82,0,0.25);color:#0e1b2e;}
/* Threat cards keep their accent in day mode too */
body.day-mode .thr-threat{border-color:rgba(192,57,43,0.5)!important;border-right:4px solid #c0392b!important;}
body.day-mode .thr-curse{border-color:rgba(200,130,30,0.5)!important;border-right:4px solid #d08a1e!important;}
/* Home: no "streak in danger" banner — the streak is shown in progress; daily challenge has its own badge */
#home-daily-nudge{display:none!important;}
/* Field mode: the three "what is happening" doors */
.fm-door{min-height:96px!important;padding:12px 6px!important;}
.fm-door .emerg-cube-emoji{font-size:30px;}
.fm-door .emerg-cube-name{font-size:13.5px!important;line-height:1.25;}
.fm-say-h{color:#E8D9B8;font-size:15px;font-weight:800;margin:10px 2px 0;padding-right:9px;border-right:4px solid #D4A24E;}
body.day-mode .fm-say-h{color:#0e1b2e;}
/* Home: tools row light; daily extras collapsed */
.home-tools > div{padding:8px 4px!important;border-radius:10px!important;background:transparent!important;}
.home-tools > div > div:first-child{font-size:17px!important;margin-bottom:3px!important;}
.home-tools > div > div:last-child{font-size:12px!important;font-weight:600!important;color:#a0b8c8!important;}
body.day-mode .home-tools > div > div:last-child{color:#4a5b6c!important;}
.home-more{border:1px solid rgba(122,154,181,0.3);border-radius:12px;padding:0 10px;margin-bottom:10px;}
.home-more > summary{list-style:none;cursor:pointer;padding:11px 2px;color:#7a9ab5;font-size:13px;font-weight:700;text-align:center;}
.home-more > summary::-webkit-details-marker{display:none;}
.home-more[open]{padding-bottom:10px;}
body.day-mode .home-more > summary{color:#3a4a5c;}
/* Field-mode search: show only the results */
body.emerg-searching .qk-prep{display:none!important;}
/* iPhone (installed app): keep bottom bars above the home indicator */
#bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;}
#consent-banner{padding-bottom:calc(16px + env(safe-area-inset-bottom))!important;}
#landing-overlay{padding-bottom:env(safe-area-inset-bottom);padding-top:env(safe-area-inset-top);}
#consent-banner, #consent-banner div{color:#E8D9B8!important;}
#consent-banner a{color:#D4A24E!important;}
/* ⭐ My kit */
.pop-main-actions .kit-btn{flex:1;}
.pop-main-actions .civ-show-btn{flex:1.6!important;font-size:15px!important;}
.kit-empty{background:rgba(212,162,78,0.08);border:1px dashed rgba(212,162,78,0.5);border-radius:12px;padding:10px 12px;color:#E8D9B8;font-size:13px;line-height:1.55;margin-bottom:4px;}
.kit-ed{display:flex;gap:4px;flex-shrink:0;}
.kit-ed button{width:36px;height:36px;border-radius:9px;background:#0E1B2E;border:1px solid #2A3D52;color:#E8D9B8;font-size:14px;cursor:pointer;}
body.day-mode .kit-empty{background:#fff;color:#0e1b2e;}
/* the empty kit as a button that does something: a title, one line under it, an arrow */
.kit-start{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;width:100%;text-align:right;cursor:pointer;font-family:inherit;margin:4px 0 0;padding:12px 14px;border-style:solid;}
.kit-start-t{font-size:14.5px;font-weight:800;color:#E9BE6A;}
.kit-start-s{grid-column:1;font-size:12.5px;color:#a0b8c8;}
.kit-start-a{grid-column:2;grid-row:1 / span 2;font-size:16px;color:#E9BE6A;}
body.day-mode .kit-start-t,body.day-mode .kit-start-a{color:#8a5a00;} body.day-mode .kit-start-s{color:#3a4a5c;}
body.day-mode .kit-ed button{background:#fff;color:#0e1b2e;border-color:rgba(168,82,0,0.3);}
/* ⚡ First 10 seconds */
.fs-box{background:#18293E;border:2px solid #D4A24E;border-radius:14px;padding:12px;margin-bottom:14px;}
.fs-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#D4A24E;font-size:16px;font-weight:900;margin-bottom:8px;}
.fs-actions{display:flex;gap:6px;}
.fs-actions button{background:rgba(212,162,78,0.16);border:1px solid #D4A24E;color:#E8D9B8;border-radius:10px;padding:8px 11px;font-size:13px;font-weight:800;cursor:pointer;font-family:inherit;min-height:40px;}
.fs-veh{margin:8px 0 4px;} .fs-veh button{flex:1;}
.fs-step{display:flex;align-items:center;gap:10px;background:#1F3147;border:1px solid #2A3D52;border-radius:10px;padding:9px 11px;margin-bottom:6px;cursor:pointer;}
.fs-step.on{border-color:#D4A24E;}
.fs-n{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#D4A24E;color:#0E1B2E;font-size:13px;font-weight:900;display:flex;align-items:center;justify-content:center;}
.fs-t{flex:1;min-width:0;display:flex;flex-direction:column;color:#E8D9B8;font-size:14.5px;}
.fs-ar{color:#FFD700;font-size:16px;font-family:Georgia,serif;direction:rtl;}
.fs-tr{color:#D4A24E;font-size:12.5px;}
.fs-nr{opacity:0.6;}
.fs-sub{color:#E8D9B8;font-size:13.5px;font-weight:800;margin:10px 2px 6px;padding-right:8px;border-right:3px solid #D4A24E;}
.fs-sub-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.fs-sub-play{background:rgba(212,162,78,0.16);border:1px solid #D4A24E;color:#E8D9B8;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;min-height:36px;}
body.day-mode .fs-sub-play{color:#0e1b2e;}
.fs-clip{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body.day-mode .fs-sub{color:#0e1b2e;}
.fs-mini{display:flex;flex-wrap:wrap;gap:6px;}
.fs-mini span{background:#1F3147;border:1px solid #2A3D52;border-radius:9px;padding:6px 10px;color:#E8D9B8;font-size:13px;font-weight:700;cursor:pointer;}
body.day-mode .fs-box{background:#fff;border-color:#c99a45;}
body.day-mode .fs-step, body.day-mode .fs-mini span{background:#fbf7ee;border-color:rgba(168,82,0,0.2);color:#0e1b2e;}
body.day-mode .fs-t, body.day-mode .fs-actions button{color:#0e1b2e;}
body.day-mode .fs-ar{color:#5a3d00;} body.day-mode .fs-tr, body.day-mode .fs-head{color:#7f3e00;}
/* 📶 Works-offline indicator */
.offline-chip{display:none;align-items:center;gap:8px;border-radius:12px;padding:9px 12px;margin:0 0 12px;font-size:13px;font-weight:700;line-height:1.4;}
.offline-chip.ready{display:flex;background:rgba(29,158,117,0.12);border:1px solid rgba(29,158,117,0.5);color:#4fd0a0;}
.offline-chip.todo{display:flex;background:rgba(212,162,78,0.10);border:1px dashed rgba(212,162,78,0.6);color:#E8D9B8;cursor:pointer;}
.offline-chip.off{display:flex;background:rgba(91,155,213,0.14);border:1px solid rgba(91,155,213,0.55);color:#8fbfef;}
.offline-chip .oc-sub{display:block;font-weight:600;font-size:11.5px;opacity:0.85;}
.offline-chip .oc-btn{margin-right:auto;flex-shrink:0;background:#D4A24E;color:#0E1B2E;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:800;}
body.day-mode .offline-chip.ready{color:#0f6b4c;background:rgba(29,158,117,0.10);}
body.day-mode .offline-chip.todo{color:#0e1b2e;background:#fff;}
body.day-mode .offline-chip.off{color:#1f4f86;background:#fff;}
/* ⚡ Search action cluster */
.cl-box{background:#18293E;border:2px solid #D4A24E;border-radius:14px;padding:12px;margin-bottom:12px;}
.cl-head{color:#D4A24E;font-size:15px;font-weight:800;margin-bottom:4px;}
.cl-sec{color:#E8D9B8;font-size:13px;font-weight:800;margin:12px 2px 6px;padding-right:8px;border-right:3px solid #D4A24E;}
.cl-row{display:flex;align-items:center;gap:10px;background:#1F3147;border:1px solid #2A3D52;border-radius:10px;padding:9px 12px;margin-bottom:6px;cursor:pointer;}
.cl-txt{flex:1;min-width:0;}
.cl-he{color:#E8D9B8;font-size:14.5px;font-weight:700;}
.cl-ar{color:#FFD700;font-size:16px;font-family:Georgia,serif;direction:rtl;margin-top:1px;}
.cl-tr{color:#D4A24E;font-size:12.5px;margin-top:1px;}
.cl-q{color:#7a9ab5;font-size:11.5px;margin-top:3px;}
.cl-play{flex-shrink:0;width:42px;height:42px;border-radius:50%;background:rgba(212,162,78,0.15);border:1px solid #D4A24E;color:#D4A24E;font-size:15px;cursor:pointer;font-family:inherit;}
body.day-mode .cl-box{background:#fff;border-color:#c99a45;}
body.day-mode .cl-row{background:#fbf7ee;border-color:rgba(168,82,0,0.2);}
body.day-mode .cl-he, body.day-mode .cl-sec{color:#0e1b2e;}
body.day-mode .cl-ar{color:#5a3d00;}
body.day-mode .cl-tr, body.day-mode .cl-head{color:#7f3e00;}
body.day-mode .cl-q{color:#4a5b6c;}
/* ── Accessibility layer ── */
:focus-visible{outline:3px solid #D4A24E!important;outline-offset:2px;border-radius:8px;}
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{animation-duration:0.001ms!important;animation-iteration-count:1!important;transition-duration:0.001ms!important;scroll-behavior:auto!important;} }
.a11y-back{min-height:40px!important;display:inline-flex!important;align-items:center;}
.sx{min-width:40px;min-height:40px;}
.pc-nav button{padding:9px 14px!important;}
.a11y-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
/* Day-mode contrast (WCAG AA 4.5:1 for small text) */
body.day-mode .bnav-emerg-lbl{color:#a52a1e!important;}
body.day-mode .home-search-ph{color:#5a6b7c!important;}
body.day-mode .triage-path{color:#a8381f!important;background:#fff6f4!important;}
body.day-mode .ct .cc{color:#8a4300!important;}
body.day-mode .field-chip.on{color:#0f6b4c!important;}
.thr-badge-threat{color:#ff9488!important;}
.thr-badge-curse{color:#f0b866!important;}
body.day-mode .thr-badge-threat{color:#a8261a!important;}
body.day-mode .thr-badge-curse{color:#7a4c0c!important;}
/* ── Simplified phrase card ── */
#tab-lib.pop-open > button:first-child, #tab-lib.pop-open > .sbar, #tab-lib.pop-open > .lrow{display:none!important;}
#vpop .ww{display:none!important;}
#vpop .phe{font-size:21px!important;font-weight:800!important;margin-top:8px;}
#vpop .play-row{display:grid;grid-template-columns:2fr 1fr 1fr;}
#vpop .big-pbtn.play-slow, #vpop .big-pbtn.play-loop{padding:12px 6px;}
#vpop .big-pbtn.play-slow .big-icon, #vpop .big-pbtn.play-loop .big-icon{font-size:22px;}
.pop-main-actions{display:flex;gap:10px;align-items:stretch;margin:0 0 14px;}
.pop-main-actions .civ-show-btn{flex:2;margin-top:0;}
.pop-main-actions .popup-action-btn.fav{flex:1;background:transparent!important;border:1.5px solid #D4A24E;color:#D4A24E!important;border-radius:12px;font-size:14px;font-weight:800;}
.pop-main-actions .popup-action-btn.fav.active{background:#D4A24E!important;color:#0E1B2E!important;}
.pop-more{margin-top:14px;border:1px solid rgba(122,154,181,0.35);border-radius:12px;padding:0 12px;}
.pop-more > summary{list-style:none;cursor:pointer;padding:12px 2px;color:#7a9ab5;font-size:13.5px;font-weight:700;text-align:center;}
.pop-more > summary::-webkit-details-marker{display:none;}
.pop-more[open] > summary{color:#D4A24E;}
.pop-more[open]{padding-bottom:12px;}
.pop-close-btn{display:block;margin:14px auto 0;background:transparent;border:1px solid rgba(122,154,181,0.5);color:#7a9ab5;border-radius:10px;padding:9px 26px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;}

/* Phrase window (white in both themes): text dark enough to read (contrast 5:1 or more). */
.pop .responses-title{color:#8A5A00;}
.pop .pop-main-actions .popup-action-btn.fav{color:#8A5A00!important;border-color:#8A5A00;}
.pop .pop-more > summary{color:#4F6B84;}
.pop .pop-more[open] > summary{color:#8A5A00;}
.pop .pop-close-btn{color:#4F6B84;border-color:rgba(79,107,132,0.55);}
.pop .pclose{color:#5f6b76;}
.pop-main-actions{flex-wrap:wrap;}
.pop-main-actions > *{min-width:0;}
/* ── 📢 Show to civilian ── */
.civ-show-btn{display:block;width:100%;margin-top:14px;background:linear-gradient(135deg,#1D9E75 0%,#147a59 100%);color:#fff;border:none;border-radius:12px;padding:13px;font-size:16px;font-weight:800;cursor:pointer;font-family:inherit;box-shadow:0 3px 10px rgba(29,158,117,0.3);}
#civ-overlay{position:fixed;inset:0;z-index:100000;display:none;flex-direction:column;background:#fff;color:#000;font-family:inherit;}
#civ-overlay.dark{background:#000;color:#FFE45C;}
#civ-overlay .civ-bar{display:flex;gap:10px;padding:max(12px,env(safe-area-inset-top)) 14px 10px;}
#civ-overlay .civ-bar button{flex:1;border-radius:12px;padding:12px 8px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;border:2px solid currentColor;background:transparent;color:inherit;}
#civ-text{contain:layout paint;flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 18px;direction:rtl;font-family:'Geeza Pro','Noto Naskh Arabic','Arial',sans-serif;font-weight:700;line-height:1.35;word-break:break-word;overflow:hidden;}
#civ-play{margin:0 18px 12px;border:none;border-radius:16px;padding:18px;font-size:22px;font-weight:900;cursor:pointer;font-family:inherit;background:#000;color:#fff;}
#civ-overlay.dark #civ-play{background:#FFE45C;color:#000;}
#civ-he{text-align:center;font-size:16px;font-weight:600;opacity:0.6;padding:0 16px max(14px,env(safe-area-inset-bottom));}
/* ── Field mode (מצב שטח) ── */
.field-chip{flex:1;background:#1F3147;border:1px solid #2A3D52;color:#a0b8c8;border-radius:10px;padding:9px 6px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;}
.field-chip.on{background:rgba(29,158,117,0.18);border-color:#1D9E75;color:#4fd0a0;}
body.day-mode .field-chip{background:#fff;border-color:rgba(26,43,60,0.2);color:#4a5b6c;}
body.day-mode .field-chip.on{background:rgba(29,158,117,0.12);border-color:#1D9E75;color:#147a59;}
body.day-mode .field-title{color:#c0392b!important;}
body.day-mode .stitle{color:#1A2B3C;}
/* 🔠 Large text: scales the emergency situation screens (not the menu grid) */
body.field-big #tab-ten, body.field-big #tab-veh, body.field-big #tab-ord, body.field-big #tab-threat,
body.field-big #tab-answers, body.field-big #tab-chk, body.field-big #tab-triage, body.field-big #tab-desc,
body.field-big #tab-calm, body.field-big #tab-crowd, body.field-big #tab-kids, body.field-big #emerg-list, body.field-big #heard-results{zoom:1.22;}
body.day-mode .heard-mean{color:#0e1b2e!important;}
body.day-mode .heard-title{color:#147a59!important;}
.emerg-cube-emoji{font-size:34px;line-height:1;}
.emerg-cube-name{color:#E8D9B8;font-size:15px;font-weight:800;line-height:1.2;}
.emerg-cube-count{color:#93b0c8;font-size:12px;font-weight:600;background:rgba(212,162,78,0.1);padding:3px 10px;border-radius:99px;}
.emerg-cube-empty{opacity:0.5;}

.emerg-back{
  background:transparent;
  border:1px solid rgba(210,180,140,0.3);
  color:#E8D9B8;
  padding:7px 14px;
  border-radius:18px;
  font-size:13px;
  cursor:pointer;
  font-family:inherit;
  margin-bottom:14px;
  display:inline-block;
}
.emerg-back:hover{background:rgba(212,134,46,0.1);border-color:#D4A24E;color:#D4A24E;}
body.day-mode .emerg-back{color:#5a3a1a;border-color:rgba(90,58,26,0.3);}

.emerg-card{
  background:#1F3147;
  border:1px solid #2A3D52;
  border-radius:10px;
  padding:0;
  margin-bottom:10px;
  border-right:4px solid #FFD700;
  display:flex;
  align-items:stretch;
  gap:0;
  overflow:hidden;
  transition:all 0.12s;
}
.emerg-card-content{
  flex:1;
  padding:14px;
  cursor:pointer;
  min-width:0;
}
.emerg-card-content:active{transform:scale(0.99);}
.emerg-play-btn{
  background:#D4A24E;
  color:#fff;
  border:none;
  width:60px;
  font-size:22px;
  cursor:pointer;
  font-family:inherit;
  flex-shrink:0;
  border-left:1px solid #2A3D52;
  transition:background 0.12s;
}
.emerg-play-btn:active{background:#c0392b;}
.emerg-play-btn.playing{background:#c0392b;}
.emerg-play-btn:disabled{background:#555;color:#888;cursor:not-allowed;}
body.day-mode .emerg-play-btn{background:#D4A24E;color:#fff;border-left-color:#e8dec9;}
body.day-mode .emerg-play-btn:disabled{background:#ccc;color:#888;}
.emerg-card:active{transform:scale(0.99);}
.emerg-card-he{color:#fff;font-size:15px;font-weight:600;margin-bottom:6px;}
.emerg-card-trans{color:#fff;font-size:14px;font-weight:400;margin-bottom:4px;font-family:Georgia,serif;letter-spacing:0.03em;}
.emerg-card-ar{color:#E8D9B8;font-size:14px;font-family:Georgia,serif;direction:rtl;}
body.day-mode .emerg-card{background:#fff;border-color:#e8dec9;}
body.day-mode .emerg-card-he{color:#0e1b2e;}
body.day-mode .emerg-card-trans{color:#0e1b2e;}
/* Emergency cubes + panels were hard-coded dark; make them follow day-mode like
   every other card (light in day, dark in night) so the page matches the app. */
body.day-mode .emerg-cube{background:linear-gradient(135deg,#fff,#f5efe0)!important;border-color:rgba(168,82,0,0.25)!important;}
body.day-mode .emerg-cube, body.day-mode .emerg-cube *{color:#0e1b2e!important;}
body.day-mode .emerg-cube-count{background:rgba(212,162,78,0.18)!important;color:#7a5a1a!important;}
body.day-mode .emerg-panel{background:linear-gradient(135deg,#fff,#f5efe0)!important;border-color:rgba(168,82,0,0.3)!important;}
body.day-mode .emerg-panel input{color:#0e1b2e!important;}
body.day-mode .emerg-panel input::placeholder{color:#8a7a5a!important;}
body.day-mode .emerg-panel .keep-white{color:#0e1b2e!important;}
body.day-mode #practice-section{background:#f5efe0!important;border-color:rgba(168,82,0,0.3)!important;}
/* Triage legend ("רמת דחיפות") — readable in both night and day. */
.urg-legend{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;background:#1c3049;border:1px solid #3a5169;border-radius:10px;padding:9px 12px;margin-top:4px;}
.urg-legend-label{color:#cfe0f0;font-size:11.5px;font-weight:800;}
.urg-legend-item{color:#F3E9D2;font-size:12px;font-weight:600;}
body.day-mode .urg-legend{background:linear-gradient(135deg,#fff,#f5efe0)!important;border-color:rgba(168,82,0,0.3)!important;}
body.day-mode .urg-legend-label{color:#a85200!important;}
/* the legend at the top of a list of phrases: one quiet line */
.urg-legend-sm{justify-content:flex-start;gap:10px;padding:6px 10px;margin:0 0 10px;background:transparent;border-style:dashed;}
.urg-legend-sm .urg-legend-label{font-size:11px;font-weight:700;} .urg-legend-sm .urg-legend-item{font-size:11.5px;}
/* "מה אמרו לי": what the search covers */
.heard-note{color:#7a9ab5;font-size:12px;line-height:1.6;margin:2px 2px 12px;}
body.day-mode .heard-note{color:#4a5b6c;}
/* "back" once more at the end of a long screen (it presses the screen's own top button) */
.scr-back-bottom{display:flex!important;align-items:center;justify-content:center;width:100%;margin:22px 0 4px;padding:13px 12px;background:transparent;border:1px solid rgba(122,154,181,0.4);border-radius:12px;color:#a0b8c8;font-family:inherit;font-size:14.5px;font-weight:700;cursor:pointer;text-align:center;}
.scr-back-bottom:active{background:rgba(122,154,181,0.12);}
.scr-back-bottom.scr-back-loose{width:calc(100% - 24px);margin:22px 12px 110px;}
body.day-mode .scr-back-bottom{color:#3a4a5c;border-color:rgba(58,74,92,0.35);}
/* the shortcuts on the empty search screen, in groups */
.gs-sc-group{margin-bottom:12px;}
.gs-sc-title{color:#7a9ab5;font-size:11.5px;font-weight:700;margin:0 2px 6px;}
.gs-sc-row{display:flex;flex-wrap:wrap;gap:8px;}
.gs-sc{background:#18293E;border:1px solid #D4A24E;border-radius:14px;padding:7px 14px;color:#E8D9B8;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;}
/* Deterrence (js/protect.js): the cover when the kit is in the background. It lets every tap through. */
#bg-cover{position:fixed;top:0;left:0;right:0;bottom:0;z-index:2147483000;pointer-events:none;display:none;align-items:center;justify-content:center;text-align:center;background:rgba(14,27,46,0.98);}
@supports ((-webkit-backdrop-filter:blur(2px)) or (backdrop-filter:blur(2px))){ #bg-cover{background:rgba(14,27,46,0.82);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);} }
#bg-cover .bgc-t{color:#D4A24E;font-size:22px;font-weight:800;} #bg-cover .bgc-s{color:#a0b8c8;font-size:13px;margin-top:8px;}
@media print{ #bg-cover{display:none!important;} }
/* the folded tools on the home screen */
#home-tools-more > summary{text-align:center;color:#E8D9B8;font-size:14.5px;font-weight:800;padding:12px 2px;}
#home-tools-more .hm-open, #home-tools-more[open] .hm-closed, #home-tools-more[open] .hm-sub{display:none;}
#home-tools-more[open] .hm-open{display:inline;}
#home-tools-more .hm-sub{display:block;color:#7a9ab5;font-size:11.5px;font-weight:600;margin-top:3px;}
body.day-mode #home-tools-more > summary{color:#0e1b2e;} body.day-mode #home-tools-more .hm-sub{color:#4a5b6c;}
body.day-mode .urg-legend-item{color:#0e1b2e!important;}
/* Verb-roots cube cards */
.verb-he{font-size:16px;font-weight:800;color:#E8D9B8;margin-bottom:6px;}
.vrow{display:flex;align-items:center;gap:8px;border-top:1px solid rgba(255,255,255,0.06);padding-top:5px;margin-top:5px;}
.vrow-lbl{color:#7a9ab5;font-size:10px;min-width:64px;flex-shrink:0;}
.vrow-ar{color:#E8D9B8;font-size:16px;direction:rtl;flex:1;text-align:right;font-family:Georgia,serif;}
.vrow-tr{color:#D4A24E;font-size:13px;flex:1;text-align:right;}
body.day-mode .verb-he{color:#0e1b2e;}
body.day-mode .vrow{border-top-color:rgba(0,0,0,0.08);}
body.day-mode .vrow-lbl{color:#8a7a5a;}
body.day-mode .vrow-ar{color:#0e1b2e;}
body.day-mode .vrow-tr{color:#a85200;}
.threat-ar{color:#E8D9B8;font-size:17px;direction:rtl;font-family:Georgia,serif;margin:2px 0;}
.threat-tr{color:#D4A24E;font-size:14px;}
body.day-mode .threat-ar{color:#0e1b2e;}
body.day-mode .threat-tr{color:#a85200;}
/* 📷 visual recognition — Arabic shown as a sign plate */
.vis-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.vis-card{background:#1F3147;border:1px solid #2A3D52;border-radius:12px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:8px;}
.vis-sign{background:#F5F1E6;color:#111;border:3px solid #2b2b2b;border-radius:8px;min-height:64px;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 6px;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:700;direction:rtl;line-height:1.3;}
.vis-img{display:block;width:100%;aspect-ratio:10/7;object-fit:cover;border-radius:8px;background:#2a3d52;}
.vis-he{color:#E8D9B8;font-size:15px;font-weight:800;text-align:center;}
.vis-tr{color:#D4A24E;font-size:13px;text-align:center;}
.vis-hint{display:none;color:#7a9ab5;font-size:12px;text-align:center;padding:6px 0;}
.vis-card.vis-hidden .vis-ans{display:none;}
.vis-card.vis-hidden .vis-hint{display:block;}
body.day-mode .vis-card{background:#fff;border-color:#e8dec9;}
body.day-mode .vis-he{color:#0e1b2e;}
body.day-mode .vis-tr{color:#a85200;}
.vis-sign.vis-digit{font-size:54px;min-height:84px;line-height:1;}
.vis-tip{color:#9fb4c8;font-size:12px;text-align:center;line-height:1.4;margin-top:2px;}
.vis-key{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;background:#1F3147;border:1px solid #2A3D52;border-radius:12px;padding:10px 4px;direction:ltr;}
.vis-key div{text-align:center;}
.vis-key b{display:block;font-size:26px;color:#F5F1E6;line-height:1.2;}
.vis-key span{font-size:14px;font-weight:700;color:#D4A24E;}
.vis-note{color:#E8D9B8;font-size:13px;line-height:1.5;margin:8px 2px 10px;}
body.day-mode .vis-tip{color:#4a6076;}
body.day-mode .vis-key{background:#fff;border-color:#e8dec9;}
body.day-mode .vis-key b{color:#0e1b2e;}
body.day-mode .vis-key span{color:#a85200;}
body.day-mode .vis-note{color:#0e1b2e;}
.tb-tabs{display:flex;overflow-x:auto;gap:14px;padding:0 4px 10px;justify-content:flex-start;}
.tb-tabs::-webkit-scrollbar{display:none;}
.tb-tab{padding:6px 4px;color:#7a9ab5;font-size:14px;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;transition:all 0.2s;user-select:none;}
.tb-tab:hover{color:#E8D9B8;}
.tb-tab.active{color:#D4A24E;border-bottom-color:#D4A24E;}
.tb-tab-sec{padding:8px 10px;color:#7a9ab5;font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap;transition:all 0.2s;user-select:none;border-bottom:2px solid transparent;}
.tb-tab-sec:hover{color:#E8D9B8;}
.tb-tab-sec.active{color:#D4A24E;border-bottom-color:#D4A24E;}
body.day-mode .tb-tab{color:#5a6b80;}
body.day-mode .tb-tab.active{color:#a85200;border-bottom-color:#a85200;}
body.day-mode .tb-tab-sec{color:#5a6b80;}
body.day-mode .tb-tab-sec.active{color:#a85200;border-bottom-color:#a85200;}
.tb-tabs-sec{display:flex;overflow-x:hidden;background:#18293E;border-bottom:1px solid #1F3147;padding:0 4px;}
.tb-tabs-sec::-webkit-scrollbar{display:none;}
.tb-tab-sec{flex:1 1 0;min-width:0;text-align:center;padding:12px 3px;color:rgba(210,180,140,0.7);font-size:13.5px;font-weight:500;line-height:1.2;cursor:pointer;border-bottom:2px solid transparent;transition:color 0.15s,border-color 0.15s;}
.tb-tab-sec.active{color:#E8D9B8;border-bottom-color:#D4A24E;}
.scr{display:none;max-width:480px;margin-left:auto;margin-right:auto;}.scr.on{display:block;}
/* Accessibility: larger text for field use (zoom scales the on-screen content) */
/* Zoom the screen content but keep it inside the viewport (no sideways scroll) */
body.text-lg .scr{ zoom:1.12; }
body.text-xl .scr{ zoom:1.25; }
/* Flex search fields must be allowed to shrink (inputs have a wide intrinsic min-width) */
.scr input{min-width:0;}
/* Sun mode: higher contrast + larger tap targets for bright outdoors / gloves */
body.sun-mode .scr{ filter:contrast(1.2) saturate(1.05); }
body.sun-mode #bottom-nav{ padding-top:11px; padding-bottom:11px; }
body.sun-mode .bn-btn{ padding:10px 4px; }
body.sun-mode .scn-play-btn,
body.sun-mode .scn-rec-btn{ padding:9px 18px; font-size:14px; }
body.sun-mode .qk-card, body.sun-mode .card{ border-width:2px; }
.sbar{background:transparent;padding:10px 14px 6px;}
.si{background:#fff;border-radius:12px;border:2px solid #D4A24E;display:flex;align-items:center;padding:0 12px;gap:8px;}
.si input{flex:1;border:none;outline:none;font-size:16px;padding:11px 0;direction:rtl;font-family:inherit;color:#222;background:transparent;}
.si input::placeholder{color:#aaa;}
.sx{background:none;border:none;color:#aaa;font-size:20px;cursor:pointer;}
.lrow{background:transparent;padding:0 14px 8px;display:flex;gap:6px;}
.lb{flex:1;padding:8px 5px;border-radius:10px;border:1px solid rgba(212,162,78,0.35);background:transparent;color:#a0b8c8;font-size:13px;cursor:pointer;font-family:inherit;text-align:center;}
.lb.active{background:rgba(212,162,78,0.18);color:#D4A24E;border-color:#D4A24E;font-weight:700;}
body.day-mode .lb{color:#4a5b6c;}
body.day-mode .lb.active{color:#7f3e00;}
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:transparent;}
body.day-mode .cgrid{background:transparent;gap:10px;}
body.day-mode .ct{border:1px solid #ebe0c5;}
.ct{background:linear-gradient(160deg,#1F3147 0%,#243a55 100%);padding:12px 10px 11px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;min-height:96px;justify-content:center;transition:transform 0.15s,box-shadow 0.15s;position:relative;border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,0.2);border:1px solid rgba(212,162,78,0.15);}
.ct:active{background:#2a3f54;}
.ct.daily{background:linear-gradient(160deg,#1F3147 0%,#243a55 100%);}.ct.daily:active{transform:scale(0.97);}
.ct.heart{background:linear-gradient(160deg,#1F3147 0%,#243a55 100%);}.ct.heart:active{transform:scale(0.97);}
.ct.navy{background:#1F3147;}.ct.navy:active{background:#2a3f54;}
.ct.announce{background:#1F3147;}.ct.announce:active{background:#2a3f54;}
.ci{width:40px;height:40px;border-radius:12px;background:rgba(212,162,78,0.12);display:flex;align-items:center;justify-content:center;font-size:21px;transition:transform 0.2s;}
.cn{color:#E8D9B8;font-size:14.5px;font-weight:800;text-align:center;line-height:1.2;letter-spacing:0.2px;}
.cc{display:inline-block;background:rgba(212,162,78,0.12);color:#D4A24E;font-size:11.5px;font-weight:700;padding:2px 10px;border-radius:10px;letter-spacing:0.3px;}
.lhdr{background:#18293E;padding:11px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #1F3147;}
.bbtn{background:#0E1B2E;border:1px solid #2A3D52;border-radius:8px;color:#E8D9B8;font-size:13px;padding:5px 12px;cursor:pointer;font-family:inherit;}
.ltitle{color:#E8D9B8;font-size:14px;font-weight:500;}
.litems{background:#0E1B2E;}
.li{padding:13px 16px;border-bottom:1px solid #1F3147;cursor:pointer;display:flex;justify-content:space-between;align-items:center;}
.li:last-child{border-bottom:none;}
.li:active{background:#1F3147;}
.lt{color:#fff;font-size:15px;line-height:1.4;}
.resp-badge{color:#2ecc9a;font-size:11.5px;font-weight:700;margin-top:4px;}
.la{color:#7a9ab5;font-size:14px;}
.smeta{padding:7px 16px;color:#7a9ab5;font-size:12px;background:#0E1B2E;}
.pbg{background:rgba(0,0,0,0.65);min-height:100vh;display:flex;align-items:flex-start;justify-content:center;padding:12px;padding-top:16px;}
.pop{position:relative;background:#fff;border-radius:18px;width:100%;max-width:440px;padding:18px 16px 14px;}
.phe{color:#0E1B2E;font-size:18px;font-weight:500;text-align:center;margin-bottom:6px;line-height:1.4;}
.parsm{color:#15394f;font-size:22px;direction:rtl;font-family:Georgia,serif;text-align:center;margin-bottom:12px;font-weight:600;line-height:1.5;}
.pbox{background:#0E1B2E;border-radius:12px;padding:16px 14px;margin-bottom:12px;text-align:center;}
.ptrans{color:#fff;font-size:24px;font-weight:500;line-height:1.6;letter-spacing:0.03em;}
.ww{display:flex;align-items:center;gap:8px;margin-bottom:10px;background:#f5f5f5;border-radius:10px;padding:8px 12px;}
.wave{display:flex;align-items:center;gap:2px;flex:1;}
.wb{width:3px;border-radius:2px;background:#E8D9B8;}
.wt{font-size:12px;color:#888;min-width:30px;}
.pbr{display:flex;gap:10px;margin-bottom:10px;}
.pbtn{flex:1;padding:13px 8px;border-radius:12px;border:none;cursor:pointer;font-size:14px;font-weight:600;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:6px;}
.pbtn.slow{background:#E8D9B8;color:#412402;}
.pbtn.fast{background:#D4A24E;color:#fff;}
.pbtn:active{opacity:0.85;}

/* New: Big play row + big buttons (popup audio controls - LOORA style) */
.play-row{display:flex;gap:10px;margin-bottom:14px;}
.big-pbtn{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:18px 8px;
  border-radius:14px;
  border:1.5px solid;
  background:linear-gradient(135deg,rgba(212,134,46,0.18),rgba(212,134,46,0.08));
  cursor:pointer;
  font-family:inherit;
  transition:transform 0.15s,box-shadow 0.15s;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
}
.big-pbtn:active{transform:scale(0.96);}
.big-icon{font-size:30px;line-height:1;}
.big-lbl{font-size:13px;font-weight:700;letter-spacing:0.3px;}

/* Color variants for the three buttons */
.big-pbtn.play-normal{
  background:linear-gradient(135deg,#D4A24E,#d97700);
  border-color:#D4A24E;
  color:#fff;
  box-shadow:0 3px 12px rgba(212,134,46,0.35);
}
.big-pbtn.play-slow{
  background:linear-gradient(135deg,rgba(212,162,78,0.2),rgba(212,162,78,0.1));
  border-color:#D4A24E;
  color:#D4A24E;
}
.big-pbtn.play-loop{
  background:linear-gradient(135deg,rgba(29,158,117,0.2),rgba(29,158,117,0.1));
  border-color:#1D9E75;
  color:#1D9E75;
}
.big-pbtn.playing{
  background:linear-gradient(135deg,#c0392b,#922b21) !important;
  border-color:#c0392b !important;
  color:#fff !important;
  box-shadow:0 3px 12px rgba(192,57,43,0.4);
}
.big-pbtn.playing .big-icon{animation:pulse 1.2s infinite;}
body.day-mode .big-pbtn.play-slow{color:#5a3a1a;}
body.day-mode .big-pbtn.play-loop{color:#0e5a3f;}
.ibox{border-radius:10px;padding:10px 14px;margin-bottom:8px;}
.ibox.b{background:#eef6ff;border:1px solid #c0d8f0;}
.ibox.o{background:#fff8ee;border:1px solid #ffe0a0;}
.ilbl{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:5px;}
.ilbl.b{color:#0E1B2E;}.ilbl.o{color:#D4A24E;}
.itxt{font-size:13px;line-height:1.7;}
.itxt.b{color:#1a3a5c;}.itxt.o{color:#7a5000;}
.pclose{display:block;text-align:center;color:#aaa;font-size:14px;cursor:pointer;padding:4px 0 0;}
.sec{padding:14px;}
.stitle{color:#E8D9B8;font-size:11px;text-transform:uppercase;letter-spacing:0.07em;margin-bottom:12px;}
.card{
  background:linear-gradient(135deg,#1F3147 0%,#1A2B3E 100%);
  border:1px solid rgba(212,134,46,0.1);
  border-radius:16px;
  padding:16px 18px;
  margin-bottom:10px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition:all 0.2s ease-out;
}
.card:hover{
  border-color:rgba(212,134,46,0.3);
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.card:active{
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
}
body.day-mode .card{
  background:linear-gradient(135deg,#fff 0%,#faf7ef 100%);
  border-color:rgba(198,103,0,0.15);
  box-shadow:0 2px 8px rgba(26,43,60,0.08), 0 1px 0 rgba(0,0,0,0.02) inset;
}
body.day-mode .card:hover{
  border-color:rgba(198,103,0,0.35);
  box-shadow:0 4px 14px rgba(26,43,60,0.12);
}
.card:active{background:#2a3f54;}
.ctags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px;align-items:center;}
.tag{font-size:9px;padding:2px 8px;border-radius:8px;font-weight:600;white-space:nowrap;}
.theart{background:#c0392b;color:#fff;}
.tprem{background:#E8D9B8;color:#412402;}
.trh{background:#e74c3c;color:#fff;}.trm{background:#D4A24E;color:#fff;}.trl{background:#117A5B;color:#fff;}
.che{color:#fff;font-size:16px;font-weight:600;margin-bottom:4px;}
.car{color:#E8D9B8;font-size:16px;direction:rtl;font-family:Georgia,serif;margin-bottom:4px;}
.csub{color:#7a9ab5;font-size:12px;line-height:1.6;}
.cwarn{color:#ffb0b0;font-size:12px;padding:7px 10px;background:#2a1010;border:1px solid #5a2020;border-radius:7px;margin-top:7px;line-height:1.6;}
.nf{padding:14px 16px;}
.nfi{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #1F3147;align-items:flex-start;}
.nfi:last-child{border-bottom:none;}
.nfd{width:8px;height:8px;border-radius:50%;background:#D4A24E;flex-shrink:0;margin-top:4px;}
.nfdate{font-size:11px;color:#7a9ab5;margin-bottom:2px;}
.nftxt{color:#fff;font-size:14px;line-height:1.5;}
.nfcat{font-size:11px;color:#D4A24E;margin-top:2px;}
.adm{padding:14px;}
.atrow{display:flex;gap:5px;margin-bottom:12px;flex-wrap:wrap;}
.atab{flex:1;min-width:55px;padding:7px 4px;border-radius:7px;border:1px solid #2A3D52;background:#1F3147;color:#7a9ab5;font-size:11px;cursor:pointer;font-family:inherit;text-align:center;}
.atab.active{background:#D4A24E;color:#fff;border-color:#D4A24E;}
.acard{background:#1F3147;border:1px solid #2A3D52;border-radius:12px;padding:14px;margin-bottom:10px;}
.afl{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;}
.afl label{color:#E8D9B8;font-size:11px;font-weight:500;}
.afl input,.afl select,.afl textarea{background:#0E1B2E;border:1px solid #2A3D52;border-radius:8px;padding:9px 11px;color:#fff;font-size:14px;font-family:inherit;direction:rtl;outline:none;width:100%;}
.afl input:focus,.afl select:focus,.afl textarea:focus{border-color:#D4A24E;}
.afl textarea{min-height:58px;resize:vertical;}
.afl select option{background:#0E1B2E;}
.sbtn{width:100%;padding:12px;background:#D4A24E;border:none;border-radius:10px;color:#fff;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;}
.hlm{background:#D4A24E;color:#fff;border-radius:2px;padding:0 2px;}
.empty{text-align:center;padding:40px 20px;color:#7a9ab5;font-size:14px;}
.loading{text-align:center;padding:40px 20px;color:#E8D9B8;font-size:14px;}
.rec-btn{padding:11px;border:none;border-radius:8px;color:#fff;font-size:13px;cursor:pointer;font-family:inherit;font-weight:600;}
.rec-btn.idle{background:#c0392b;}
.rec-btn.recording{background:#e74c3c;animation:pulse 1s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.7;}}
/* Announce styles */
.announce-text{background:#0d1f3c;border-radius:12px;padding:16px;margin-bottom:12px;color:#fff;font-size:18px;line-height:2;text-align:right;direction:rtl;}
.announce-trans{background:#0E1B2E;border-radius:12px;padding:14px;margin-bottom:12px;color:#E8D9B8;font-size:14px;line-height:1.8;display:none;}
/* Dictionary styles */
.dict-item{background:#1F3147;border:1px solid #2A3D52;border-radius:10px;padding:12px 14px;margin-bottom:8px;cursor:pointer;}
.dict-he{color:#fff;font-size:15px;font-weight:500;}
.dict-trans{color:#D4A24E;font-size:14px;margin-top:3px;}
.dict-ar{color:#E8D9B8;font-size:16px;font-family:Georgia,serif;margin-top:3px;}

/* Bottom Nav styles */
.bn-btn.active {background:rgba(212,162,78,0.15) !important;}
.bn-btn:active {transform:scale(0.95);}


.ct:active{transform:scale(0.97);box-shadow:0 1px 4px rgba(0,0,0,0.15);}
.ct:hover .ci{transform:scale(1.05);}

/* WhatsApp-style scenario chat bubbles */
.scn-bubble-row{display:flex;width:100%;margin-bottom:4px;}
.scn-bubble-row.scn-soldier{justify-content:flex-end;}
.scn-bubble-row.scn-civilian{justify-content:flex-start;}

.scn-bubble{
  max-width:82%;
  padding:10px 14px 8px;
  position:relative;
  box-shadow:0 1px 2px rgba(0,0,0,0.3);
  word-break:break-word;
}

/* Soldier bubble - WhatsApp outgoing orange/brown style */
.scn-bubble-soldier{
  background:linear-gradient(135deg,#D4A24E 0%,#b87325 100%);
  color:#fff;
  border-radius:16px 16px 4px 16px;
  border:1px solid rgba(255,255,255,0.25);
}
.scn-bubble-soldier::after{
  content:"";
  position:absolute;
  bottom:0;
  right:-7px;
  width:0;
  height:0;
  border-left:8px solid #b87325;
  border-bottom:10px solid transparent;
}

/* Civilian bubble - WhatsApp incoming dark/green style */
.scn-bubble-civilian{
  background:linear-gradient(135deg,#1F3147 0%,#243a55 100%);
  color:#E8D9B8;
  border-radius:16px 16px 16px 4px;
  border:1px solid rgba(29,158,117,0.4);
}
.scn-bubble-civilian::after{
  content:"";
  position:absolute;
  bottom:0;
  left:-7px;
  width:0;
  height:0;
  border-right:8px solid #1F3147;
  border-bottom:10px solid transparent;
}

.scn-bubble-label{
  font-size:10px;
  font-weight:700;
  opacity:0.85;
  margin-bottom:6px;
  letter-spacing:0.3px;
}
.scn-bubble-soldier .scn-bubble-label{color:rgba(255,255,255,0.95);}
.scn-bubble-civilian .scn-bubble-label{color:#1D9E75;}

/* Female-soldier bubble - HOT PINK distinct color */
.scn-bubble-fsoldier{
  background:linear-gradient(135deg,#B07578 0%,#8B5A5A 100%);
  color:#fff;
  border-radius:16px 16px 4px 16px;
  border:1px solid rgba(255,255,255,0.25);
}
.scn-bubble-fsoldier::after{
  content:"";
  position:absolute;
  bottom:0;
  right:-7px;
  width:0;
  height:0;
  border-left:8px solid #8B5A5A;
  border-bottom:10px solid transparent;
}
.scn-bubble-fsoldier .scn-bubble-label{color:rgba(255,255,255,0.95);}
.scn-bubble-fsoldier .scn-bubble-trans{color:rgba(255,255,255,0.9);}
.scn-bubble-fsoldier .scn-bubble-ar{color:#fff;}
.scn-bubble-fsoldier .scn-step-num{color:rgba(255,255,255,0.85);}
.scn-play-fsoldier{
  background:rgba(255,255,255,0.2) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,0.3) !important;
}
.scn-play-fsoldier:hover{
  background:rgba(255,255,255,0.3) !important;
}

/* Smooth bubble fade-in animation */
@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.scn-bubble-row { animation: bubbleFadeIn 0.4s ease-out; }

/* Confetti */
.confetti-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}
.confetti-piece { position: absolute; width: 10px; height: 10px; top: -20px; opacity: 1; }
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.scn-bubble-he{
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  margin-bottom:3px;
}
.scn-bubble-trans{
  font-size:13px;
  opacity:0.85;
  line-height:1.4;
  margin-bottom:3px;
  font-style:italic;
}
.scn-bubble-soldier .scn-bubble-trans{color:rgba(255,255,255,0.9);}
.scn-bubble-civilian .scn-bubble-trans{color:#a0b8c8;}
.scn-bubble-ar{
  font-size:17px;
  font-family:Georgia,serif;
  line-height:1.4;
  margin-bottom:8px;
  direction:rtl;
}
.scn-bubble-soldier .scn-bubble-ar{color:#fff;}
.scn-bubble-civilian .scn-bubble-ar{color:#E8D9B8;}

.scn-bubble-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,0.15);
}
.scn-bubble-civilian .scn-bubble-footer{border-top-color:rgba(255,255,255,0.08);}

.scn-play-btn{
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.3);
  color:#fff;
  border-radius:14px;
  padding:5px 14px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all 0.15s;
}
.scn-play-btn:active{transform:scale(0.95);}
.scn-rec-btn{background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.28);color:#fff;border-radius:14px;padding:5px 10px;font-size:12px;cursor:pointer;font-family:inherit;margin-right:6px;transition:all 0.15s;}
.scn-rec-btn:active{transform:scale(0.95);}
.scn-rec-btn.has-rec{background:rgba(29,158,117,0.25);border-color:#1D9E75;}
.scn-rec-btn.recording{background:rgba(192,57,43,0.35);border-color:#c0392b;animation:badgePulse 1.4s ease-in-out infinite;}
.scn-play-civilian{
  background:rgba(29,158,117,0.2);
  border-color:rgba(29,158,117,0.5);
  color:#1D9E75;
}
.scn-play-civilian:hover{background:rgba(29,158,117,0.3);}
.scn-play-btn.playing{
  background:rgba(255,255,255,0.4);
  animation:pulse 1.2s infinite;
}

.scn-step-num{
  font-size:10px;
  opacity:0.7;
  font-weight:600;
}
.scn-bubble-soldier .scn-step-num{color:rgba(255,255,255,0.85);}
.scn-bubble-civilian .scn-step-num{color:#7a9ab5;}

/* === DAY MODE CONTRAST FIXES === */
/* Fix text contrast in day mode - dark text on light background */

/* Card list items - Hebrew text */
body.day-mode .ihe, 
body.day-mode .he,
body.day-mode .cn,
body.day-mode .pgrp-he,
body.day-mode .nrhe{
  color:#0e1b2e !important;
  font-weight:600;
}

/* Arabic text - darker for contrast */
body.day-mode .iar,
body.day-mode .ar,
body.day-mode .parsm,
body.day-mode .nra,
body.day-mode .pgrp-ar{
  color:#1A2B3C !important;
  font-weight:500;
}

/* Transliteration */
body.day-mode .itr,
body.day-mode .trans,
body.day-mode .ptrans,
body.day-mode .pgrp-trans,
body.day-mode .nrtr{
  color:#2d4159 !important;
}

/* Section headers, titles, descriptions */
body.day-mode .sec-h,
body.day-mode .section-title,
body.day-mode .ssub,
body.day-mode .smeta{
  color:#0e1b2e !important;
}

/* Sub-text, hints, meta */
body.day-mode .why,
body.day-mode .iwhy,
body.day-mode .swhy,
body.day-mode .sname{
  color:#4a5a72 !important;
}

/* Counter / count text */
body.day-mode .cc{
  background:rgba(168,82,0,0.15);
  color:#a85200 !important;
}

/* Customs - menahgim text */
body.day-mode .customs-cube,
body.day-mode .cust-card,
body.day-mode .cust-q,
body.day-mode .cust-a{
  color:#0e1b2e !important;
}
body.day-mode .customs-cube *,
body.day-mode .cust-card *{
  color:#0e1b2e !important;
}
body.day-mode .customs-cube{
  background:linear-gradient(135deg,#fff,#f5efe0) !important;
  border-color:rgba(168,82,0,0.25) !important;
}

/* Hearts (פותחים לב) */
body.day-mode .hrt-card,
body.day-mode .hrt-q,
body.day-mode .hrt-a,
body.day-mode .hrt-cat{
  color:#0e1b2e !important;
}
body.day-mode .hrt-card *{color:#0e1b2e !important;}
body.day-mode .hrt-card{
  background:linear-gradient(135deg,#fff,#f5efe0) !important;
  border-color:rgba(168,82,0,0.25) !important;
}

/* Semantic warnings */
body.day-mode .sem-card,
body.day-mode .sem-card *,
body.day-mode .swc-he,
body.day-mode .swc-ar,
body.day-mode .swc-warn{
  color:#0e1b2e !important;
}
body.day-mode .sem-card{
  background:linear-gradient(135deg,#fff,#fff8e7) !important;
  border-color:rgba(192,57,43,0.3) !important;
}

/* Articles */
body.day-mode .art-card,
body.day-mode .art-card *,
body.day-mode .art-title,
body.day-mode .art-body{
  color:#0e1b2e !important;
}
body.day-mode .art-card{
  background:linear-gradient(135deg,#fff,#faf7ef) !important;
}

/* Scenario bubbles - civilian bubble in day mode */
body.day-mode .scn-bubble-civilian{
  background:linear-gradient(135deg,#fff,#f5efe0) !important;
  color:#0e1b2e !important;
  border-color:rgba(29,158,117,0.5) !important;
}
body.day-mode .scn-bubble-civilian .scn-bubble-he,
body.day-mode .scn-bubble-civilian .scn-bubble-ar,
body.day-mode .scn-bubble-civilian .scn-bubble-trans{
  color:#0e1b2e !important;
}

/* General light text - make it darker */
body.day-mode div[style*="color:#E8D9B8"]{color:#0e1b2e !important;}
body.day-mode div[style*="color:#a0b8c8"]{color:#4a5a72 !important;}
body.day-mode div[style*="color:#7a9ab5"]{color:#5a6b80 !important;}

/* Keep the intro/landing splash readable in day mode (it has a fixed dark background) */
body.day-mode #landing-overlay{background:#0E1B2E !important;}
body.day-mode #landing-overlay h1,
body.day-mode #landing-overlay [style*="color:#D4A24E"]{color:#D4A24E !important;}
body.day-mode #landing-overlay [style*="color:#E8D9B8"]{color:#E8D9B8 !important;}
body.day-mode #landing-overlay [style*="color:#a0b8c8"]{color:#a0b8c8 !important;}
body.day-mode #landing-overlay [style*="color:#7a9ab5"]{color:#7a9ab5 !important;}
body.day-mode #landing-overlay [style*="color:#5e7a92"]{color:#5e7a92 !important;}
body.day-mode #landing-overlay [style*="color:#1D9E75"]{color:#1D9E75 !important;}

/* Category/foundation explanation body — theme-aware for readability.
   Night (default, dark bg): near-white. Day (light bg): dark navy. */
.cat-expl-body{color:#eef4fb;}
body.day-mode .cat-expl-body{color:#15263a;}

/* Full-screen dark overlays/modals stay dark in both themes (keeps their light text readable) */
body.day-mode .force-dark{background:#0E1B2E !important;}
body.day-mode .force-dark [style*="background:#18293E"]{background:#18293E !important;}
body.day-mode .force-dark [style*="background:#1F3147"]{background:#1F3147 !important;}
body.day-mode .force-dark [style*="background:#0E1B2E"]{background:#0E1B2E !important;}
body.day-mode .force-dark [style*="color:#E8D9B8"]{color:#E8D9B8 !important;}
body.day-mode .force-dark [style*="color:#a0b8c8"]{color:#a0b8c8 !important;}
body.day-mode .force-dark [style*="color:#7a9ab5"]{color:#7a9ab5 !important;}
body.day-mode .force-dark [style*="color:#D4A24E"]{color:#D4A24E !important;}
body.day-mode .force-dark [style*="color:#9fb2c6"]{color:#9fb2c6 !important;}
body.day-mode .force-dark [style*="color:#c9d6e3"]{color:#c9d6e3 !important;}
body.day-mode .force-dark [style*="color:#7eecc1"]{color:#7eecc1 !important;}
body.day-mode .force-dark [style*="color:#ff9a8f"]{color:#ff9a8f !important;}
body.day-mode .force-dark [style*="color:#E9BE6A"]{color:#E9BE6A !important;}
body.day-mode .force-dark input{color:#E8D9B8 !important;background:#0E1B2E !important;}
body.day-mode .force-dark input::placeholder{color:#7a9ab5 !important;}

/* Weekly ritual card: match the app's light theme in day mode (was a dark accent) */
body.day-mode #home-weekly-ritual > div{
  background:linear-gradient(135deg,#fff8e7 0%,#f5e6c8 100%) !important;
  border-color:rgba(212,134,46,0.4) !important;
}
body.day-mode #home-weekly-ritual [style*="color:#E8D9B8"]{color:#2c1810 !important;}
body.day-mode #home-weekly-ritual [style*="color:#a0b8c8"]{color:#8B6F2B !important;}
body.day-mode #home-weekly-ritual [style*="color:#7a9ab5"]{color:#8B6F2B !important;}
body.day-mode #home-weekly-ritual [style*="color:#1D9E75"]{color:#0e5a3f !important;}
body.day-mode #home-weekly-ritual [style*="color:#D4A24E"]{color:#a85200 !important;}

/* Home tab specific */
body.day-mode #home-greeting{color:#0e1b2e !important;}
body.day-mode #home-subtitle{color:#4a5a72 !important;}
body.day-mode #home-progress-stats{color:#0e1b2e !important;}
body.day-mode #home-potd-he{color:#0e1b2e !important;}
body.day-mode #home-potd-ar{color:#0e1b2e !important;}
body.day-mode #home-potd-trans{color:#4a5a72 !important;}

/* Bottom nav text in day mode */
body.day-mode .bn-btn div[style*="color:#E8D9B8"]{color:#0e1b2e !important;}

/* Tab/Scenario headers */
body.day-mode .scn-cat-title{color:#0e1b2e !important;}
body.day-mode .scn-step-title{color:#0e1b2e !important;}

/* Dictionary entries */
body.day-mode .dict-card,
body.day-mode .dict-card *{color:#0e1b2e !important;}
body.day-mode .dict-card{background:#fff !important;}

/* Achievements */
body.day-mode .achv-card,
body.day-mode .achv-card *{color:#0e1b2e !important;}


/* === ADDITIONAL DAY MODE FIXES === */

/* Bottom nav - "עוד" button text and icon visibility in day mode */
body.day-mode #bottom-nav{
  background:#fff !important;
  border-top:1px solid #e0d4b5 !important;
}
body.day-mode .bn-btn div[style*="color:#E8D9B8"]{
  color:#0e1b2e !important;
}
body.day-mode .bn-btn.active{
  background:rgba(168,82,0,0.15) !important;
}

/* More menu in day mode */
body.day-mode #more-menu{
  background:#fff !important;
  border-color:#e0d4b5 !important;
}
body.day-mode #more-menu div[style*="color:#E8D9B8"]{
  color:#0e1b2e !important;
}

/* Lib cards - main phrase list (Hebrew and transliteration) */
body.day-mode .lt{
  color:#0e1b2e !important;
  font-weight:600;
}

/* Favorites cards - both themes */
.fav-card{
  background:#1F3147;
  border:1px solid #2A3D52;
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:8px;
  cursor:pointer;
  border-right:4px solid #D4A24E;
}
.fav-card .fav-he{
  color:#fff;
  font-size:14px;
  margin-bottom:4px;
}
.fav-card .fav-trans{
  color:#fff;
  font-size:14px;
  font-family:Georgia,serif;
}
/* Day mode override */
body.day-mode .fav-card{
  background:#fff !important;
  border-color:#e0d4b5 !important;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
}
body.day-mode .fav-card .fav-he,
body.day-mode .fav-card .fav-trans{
  color:#0e1b2e !important;
  font-weight:600;
}
body.day-mode .la{
  color:#2d4159 !important;
  font-weight:500;
}

/* Lib list background */
body.day-mode .litems{
  background:#fff !important;
}
body.day-mode .li{
  border-bottom-color:#e8dec9 !important;
}
body.day-mode .li:active{
  background:#f5efe0 !important;
}

/* Title text in lists */
body.day-mode .ltitle{
  color:#0e1b2e !important;
}
body.day-mode .bbtn{
  background:#fff !important;
  border-color:#a85200 !important;
  color:#a85200 !important;
}

/* Search box */
body.day-mode .sinp,
body.day-mode #sinp{
  background:#fff !important;
  border-color:#e0d4b5 !important;
  color:#0e1b2e !important;
}
body.day-mode #sinp::placeholder{
  color:#7a8aa0 !important;
}

/* Header (top bar) */
body.day-mode .topbar{
  background:#fff !important;
}
body.day-mode .tb-brand,
body.day-mode #brand-title{
  color:#a85200 !important;
}
body.day-mode #headerMenuBtn,
body.day-mode #roleBtn{
  background:rgba(0,0,0,0.05) !important;
  border-color:rgba(0,0,0,0.15) !important;
}
body.day-mode #headerMenuBtn{
  color:#0e1b2e !important;
}

/* Header dropdown menu */
body.day-mode #header-menu{
  background:#fff !important;
  border-color:#e0d4b5 !important;
}
body.day-mode #header-menu button{
  color:#0e1b2e !important;
}
body.day-mode #header-menu button:hover{
  background:#f5efe0 !important;
}

/* Smeta (count text) */
body.day-mode .smeta{
  background:#fff !important;
  color:#4a5a72 !important;
}


/* === COMPREHENSIVE DAY MODE OVERRIDE === */

/* Body background should be light */
body.day-mode{
  background:#f5efe0 !important;
}

/* Catch ALL inline-style light colors and make them dark */
body.day-mode [style*="color:#E8D9B8"],
body.day-mode [style*="color: #E8D9B8"],
body.day-mode [style*="color:#fff"]:not(.keep-white):not(.fav-card):not(.fav-card *),
body.day-mode [style*="color: #fff"]:not(.keep-white):not(.fav-card):not(.fav-card *),
body.day-mode [style*="color:#FFF"]:not(.keep-white):not(.fav-card):not(.fav-card *),
body.day-mode [style*="color: #FFF"]:not(.keep-white):not(.fav-card):not(.fav-card *),
body.day-mode [style*="color:#ffffff"]:not(.keep-white):not(.fav-card):not(.fav-card *){
  color:#0e1b2e !important;
}
/* Elements on colored backgrounds keep white text */
.keep-white, .keep-white * { color:#fff !important; }
body.day-mode .keep-white, body.day-mode .keep-white * { color:#fff !important; }

/* Recent items - readable in both themes */
.rec-card .rec-he { color:#fff; }
.rec-card .rec-trans { color:#a0b8c8; }
body.day-mode .rec-card .rec-he { color:#0e1b2e !important; font-weight:600; }
body.day-mode .rec-card .rec-trans { color:#374a60 !important; }

body.day-mode [style*="color:#a0b8c8"],
body.day-mode [style*="color: #a0b8c8"]{
  color:#3a4a5c !important;
}

body.day-mode [style*="color:#7a9ab5"],
body.day-mode [style*="color: #7a9ab5"]{
  color:#4a5a72 !important;
}
/* Light text colors that had no day version */
body.day-mode [style*="color:#c0d0e0"]{ color:#2d3e52 !important; }
body.day-mode [style*="color:#e6c98a"]{ color:#8a5a00 !important; }
body.day-mode #tab-intel [style*="background:rgba(0,0,0,0.2)"]{ background:rgba(14,27,46,0.05) !important; }
body.day-mode #tab-intel [style*="color:#e74c3c"]{ color:#b02a1e !important; }
/* "חדש" list (class-styled, white text) */
body.day-mode .nftxt{ color:#0e1b2e; }
body.day-mode .resp-badge{ color:#0b6b4c; }
body.day-mode .nfdate{ color:#4a5a72; }
body.day-mode .nfcat{ color:#a85200; }
/* Shown by script (the style attribute is rewritten, so attribute rules miss it) */
body.day-mode #legal-account-row{ background:#fff !important; }
body.day-mode #legal-account-row button{ background:#eef2f6 !important; border-color:#c9d3dd !important; color:#0e1b2e !important; }

body.day-mode [style*="color:#5a6b80"],
body.day-mode [style*="color: #5a6b80"]{
  color:#2d3e52 !important;
}

/* Gradients and dark cards - make them light */
body.day-mode [style*="background:linear-gradient(160deg,#1F3147"],
body.day-mode [style*="background:linear-gradient(160deg, #1F3147"],
body.day-mode [style*="background:linear-gradient(135deg,#1F3147"],
body.day-mode [style*="background:linear-gradient(135deg, #1F3147"]{
  background:linear-gradient(160deg,#fff 0%,#faf3e3 100%) !important;
}

body.day-mode [style*="background:#1F3147"]{
  background:#fff !important;
}

body.day-mode [style*="background:#18293E"],
body.day-mode [style*="background: #18293E"]{
  background:#fff !important;
}

body.day-mode [style*="background:linear-gradient(135deg,#18293E"]{
  background:linear-gradient(135deg,#fff 0%,#faf3e3 100%) !important;
}

/* Keep brand orange visible but darker for day mode */
body.day-mode [style*="color:#D4A24E"]{
  color:#a85200 !important;
}
body.day-mode [style*="color:#FF8C00"]{
  color:#a85200 !important;
}

/* Keep gold visible but darker */
body.day-mode [style*="color:#D4A24E"]{
  color:#76541a !important;
}

/* Keep emergency red */
body.day-mode [style*="color:#c0392b"]{
  color:#922b21 !important;
}

/* Keep success green darker */
body.day-mode [style*="color:#1D9E75"]{
  color:#0e5a3f !important;
}

/* Borders */
body.day-mode [style*="border:1px solid rgba(212,162,78"]{
  border-color:rgba(168,82,0,0.3) !important;
}
body.day-mode [style*="border:1px solid rgba(212,134,46"]{
  border-color:rgba(168,82,0,0.3) !important;
}
body.day-mode [style*="border:1px solid #2e4558"]{
  border-color:#e0d4b5 !important;
}

/* Daily challenge modal is an intentionally dark emergency overlay — keep its
   dark theme (and readable light text) in day mode too. The ID scope outranks
   the global inline-color flips above, so the sentence stays legible. */
body.day-mode #emerg-challenge-overlay [style*="color:#E8D9B8"],
body.day-mode #emerg-challenge-overlay [style*="color: #E8D9B8"]{ color:#E8D9B8 !important; }
body.day-mode #emerg-challenge-overlay [style*="color:#fff"],
body.day-mode #emerg-challenge-overlay [style*="color: #fff"]{ color:#fff !important; }
body.day-mode #emerg-challenge-overlay [style*="color:#a0b8c8"],
body.day-mode #emerg-challenge-overlay [style*="color: #a0b8c8"]{ color:#a0b8c8 !important; }
body.day-mode #emerg-challenge-overlay [style*="color:#D4A24E"]{ color:#D4A24E !important; }
body.day-mode #emerg-challenge-overlay [style*="color:#c0392b"]{ color:#e74c3c !important; }
body.day-mode #emerg-challenge-overlay [style*="color:#1D9E75"]{ color:#1D9E75 !important; }
body.day-mode #emerg-challenge-overlay [style*="background:#1F3147"]{ background:#1F3147 !important; }

/* Continue card stays orange but with white text - already good */

/* Stats progress bar background */
body.day-mode [style*="background:rgba(255,255,255,0.08)"]{
  background:rgba(0,0,0,0.08) !important;
}

/* Cards background gradient white-cream */
body.day-mode [style*="background:linear-gradient(135deg,#fff,#f5efe0)"]{
  border-color:rgba(168,82,0,0.25) !important;
}

/* Greeting↔reply pair cards ("ברכות ונימוסים") */
.pair-answer{margin-top:10px;padding-top:10px;border-top:1px dashed rgba(212,162,78,0.4);}
.pair-answer-label{color:#1D9E75;font-size:11px;font-weight:800;margin-bottom:4px;}
.pair-play{background:#117A5B;border:none;color:#fff;border-radius:8px;padding:7px 13px;cursor:pointer;font-size:13px;flex-shrink:0;font-family:inherit;}
body.day-mode .pair-answer{border-top-color:rgba(168,82,0,0.35);}
body.day-mode .pair-answer-label{color:#0e5a3f;}
body.day-mode .pair-play{background:#0e5a3f;}

/* One-time tools: a tool whose content is already fully in the DB */
.tool-done{ background:linear-gradient(135deg,#1D9E75 0%,#0e5a3f 100%) !important; color:#fff !important; opacity:0.85; cursor:default !important; }
body.day-mode .tool-done{ background:linear-gradient(135deg,#1D9E75 0%,#0e5a3f 100%) !important; color:#fff !important; }

/* Admin list cards: the search filter toggles el.style.display in JS, which
   reserializes the inline style attribute — so [style*="background:#0E1B2E"]
   substring rules silently stop matching and the cards stayed dark in day
   mode. A class-based rule is immune to reserialization. */
body.day-mode .admin-card{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.35) !important; }
body.day-mode .admin-card [style*="color:#fff"]{ color:#0e1b2e !important; }
body.day-mode .admin-card [style*="color:#7a9ab5"]{ color:#5a6b80 !important; }

/* ===== Day-mode readability pass (comprehensive) ===== */

/* 1. Dictionary search results: dark cards were never flipped in the dict scope */
body.day-mode #dict-results [style*="background:#0E1B2E"],
body.day-mode #dict-results [style*="background:#0e1b2e"]{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.3) !important; }
body.day-mode #tab-dict [style*="background:rgba(255,255,255,0.05)"],
body.day-mode #tab-dict [style*="background:rgba(255,255,255,0.03)"]{ background:rgba(0,0,0,0.04) !important; }

/* 2. Edit-modal explanation preview ("כך זה ייראה בתצוגה"): JS toggles .style.display,
   which reserializes the inline attribute so the substring flip stops matching.
   id-based rules are immune to that. */
body.day-mode #edit-why-preview-wrap{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.4) !important; }
body.day-mode #edit-why-preview,
body.day-mode #edit-why-preview *{ color:#3a4a5c !important; }

/* 3+4+5. Gold #FFD700 has no global flip on purpose (must stay light inside the
   intentionally-dark force-dark drill/search modals). Flip it ONLY in the
   light-background admin + edit scopes. */
body.day-mode #edit-modal [style*="color:#FFD700"],
body.day-mode #tab-adm [style*="color:#FFD700"]{ color:#8a6420 !important; }

/* 6. Mint-green action text on pale-green chips -> readable green */
body.day-mode #edit-modal [style*="color:#7eecc1"],
body.day-mode #tab-adm [style*="color:#7eecc1"]{ color:#0e5a3f !important; }
body.day-mode #tab-adm [style*="color:#E9BE6A"]{ color:#8a5a00 !important; }

/* 7. Install banner "התקן" button was dark-on-dark */
body.day-mode #install-banner [style*="background:#0E1B2E"]{ background:#fff !important; }
body.day-mode #install-banner [style*="color:#E8D9B8"]{ color:#0e1b2e !important; }

/* 8. Home phrase-of-the-day dismiss text a touch darker for contrast */
body.day-mode #home-potd-card [style*="color:#5e7a92"]{ color:#5a6b80 !important; }


/* === TARGETED FIX FOR DAY MODE ISSUES === */

/* FIX 1: Phrase of the Day card on home (#home-potd-card) */
body.day-mode #home-potd-card{
  background:linear-gradient(135deg,#fff 0%,#faf3e3 100%) !important;
  border-color:rgba(168,82,0,0.3) !important;
  border-right-color:#8a6420 !important;
}
body.day-mode #home-potd-he{
  color:#0e1b2e !important;
}
body.day-mode #home-potd-ar{
  color:#0e1b2e !important;
  font-weight:600;
}
body.day-mode #home-potd-trans{
  color:#3a4a5c !important;
}
body.day-mode #home-potd-play{
  background:#fff !important;
  color:#8a6420 !important;
  border-color:#8a6420 !important;
}

/* FIX 2: Customs cubes (מנהגים) - make text DARK on light background */
body.day-mode .customs-cube{
  border-color:rgba(168,82,0,0.3) !important;
  box-shadow:0 2px 8px rgba(0,0,0,0.06) !important;
}
body.day-mode .customs-cube-title{
  color:#0e1b2e !important;
  font-weight:700;
}
body.day-mode .customs-cube-count{
  color:#4a5a72 !important;
}
body.day-mode .customs-cube-icon{
  filter:saturate(1.1);
}

/* FIX 3: Transliteration in popup - white text becomes dark */
body.day-mode .ptrans{
  color:#0e1b2e !important;
  font-weight:600;
}
/* The dark box behind ptrans - lighten it */
body.day-mode .ibox{
  background:#f5efe0 !important;
  border-color:#e0d4b5 !important;
}
body.day-mode .ibox.b{
  background:#f5efe0 !important;
}
/* Hebrew (phe) and Arabic (parsm) in popup */
body.day-mode .phe{
  color:#0e1b2e !important;
  font-weight:600;
}
body.day-mode .parsm{
  color:#0e1b2e !important;
  font-weight:600;
}

/* Popup main background and structure */
body.day-mode .pop{
  background:#fff !important;
  border-color:#e0d4b5 !important;
}
body.day-mode .pbg{
  background:rgba(0,0,0,0.4) !important;
}

/* Group rendering in popup */
body.day-mode .pgrp{
  background:#fff !important;
  border-color:#e0d4b5 !important;
}
body.day-mode .pgrp-he{color:#0e1b2e !important; font-weight:600;}
body.day-mode .pgrp-ar{color:#0e1b2e !important; font-weight:600;}
body.day-mode .pgrp-trans{color:#3a4a5c !important;}


/* === DAY MODE: pbox (transliteration container) === */
body.day-mode .pbox{
  background:#fff !important;
  border:1px solid #e0d4b5 !important;
}
body.day-mode .ptrans{
  color:#0e1b2e !important;
  font-weight:600;
}

/* Practice section background in day mode */
body.day-mode #practice-section{
  background:#faf3e3 !important;
  border-color:#e0d4b5 !important;
}

/* Wave/audio visualization area */
body.day-mode .ww,
body.day-mode .wave{
  background:transparent !important;
}
body.day-mode .wt{color:#0e1b2e !important;}


/* === DAY MODE: Card text (che, car, csub, tags) === */
body.day-mode .che{
  color:#0e1b2e !important;
  font-weight:600;
}
body.day-mode .car{
  color:#1A2B3C !important;
  font-weight:600;
}
body.day-mode .csub{
  color:#4a5a72 !important;
}

/* Tags inside cards */
body.day-mode .tag{
  background:rgba(168,82,0,0.15) !important;
  color:#a85200 !important;
  border:1px solid rgba(168,82,0,0.3) !important;
}
body.day-mode .tag.theart{
  background:rgba(192,57,43,0.15) !important;
  color:#922b21 !important;
}

/* Empty state */
body.day-mode .empty{
  color:#4a5a72 !important;
}

/* Heart category headers */
body.day-mode #hltitle{
  color:#0e1b2e !important;
}
body.day-mode .hlist-back{
  color:#a85200 !important;
}


/* === DAY MODE: Category cubes (.ct) === */
body.day-mode .ct{
  background:linear-gradient(160deg,#fff 0%,#faf3e3 100%) !important;
  border:1px solid rgba(168,82,0,0.25) !important;
  box-shadow:0 2px 8px rgba(0,0,0,0.06) !important;
}
body.day-mode .ct:active{
  background:linear-gradient(160deg,#faf3e3 0%,#f5efe0 100%) !important;
}
body.day-mode .ct .ci{
  background:rgba(168,82,0,0.12) !important;
}
body.day-mode .ct .cn{
  color:#0e1b2e !important;
  font-weight:700;
}
body.day-mode .ct .cc{
  background:rgba(168,82,0,0.15) !important;
  color:#a85200 !important;
}


/* === DAY MODE: Emergency card Arabic text === */
body.day-mode .emerg-card-ar{
  color:#1A2B3C !important;
  font-weight:600;
}

/* Emergency category cubes (the 4 colored cubes) - keep them colorful */
/* Emergency selection screen */
body.day-mode .emerg-grid{
  background:transparent !important;
}


/* === Flashcard Answer Animations === */
@keyframes flashShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}
@keyframes flashPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes flashFloatUp {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -120%) scale(0.8); opacity: 0; }
}
@keyframes flashGlow {
  0% { box-shadow: 0 0 0 0 rgba(29,158,117,0.6); }
  100% { box-shadow: 0 0 0 20px rgba(29,158,117,0); }
}
.flash-shake { animation: flashShake 0.4s ease-in-out; }
.flash-pop { animation: flashPop 0.4s ease-out; }
.flash-glow-correct { animation: flashGlow 0.8s ease-out; }
.flash-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  z-index: 9999;
  pointer-events: none;
  animation: flashFloatUp 1.2s ease-out forwards;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}


/* === Results Screen Animations === */
@keyframes resultBounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes resultSlideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes resultFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scoreCountUp {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes emojiWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.result-emoji-anim { animation: emojiWiggle 0.8s ease-out, resultBounceIn 0.6s ease-out; }
.result-title-anim { animation: resultBounceIn 0.6s ease-out 0.2s both; }
.result-score-anim { animation: scoreCountUp 0.8s ease-out 0.4s both; }
.result-msg-anim { animation: resultFadeIn 0.5s ease-out 0.7s both; }
.result-buttons-anim { animation: resultSlideUp 0.5s ease-out 1s both; }

.confetti-piece {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 12px;
  z-index: 9998;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

.result-star {
  display: inline-block;
  font-size: 24px;
  animation: starTwinkle 1s ease-in-out infinite;
}


/* === Recording Audio Wave Animation === */
@keyframes audioWave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.audio-wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  margin: 6px auto;
}
.audio-wave .bar {
  display: inline-block;
  width: 3px;
  height: 100%;
  background: #e74c3c;
  border-radius: 2px;
  transform-origin: center;
  animation: audioWave 0.9s ease-in-out infinite;
}
.audio-wave .bar:nth-child(1) { animation-delay: 0s; }
.audio-wave .bar:nth-child(2) { animation-delay: 0.1s; height: 80%; }
.audio-wave .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-wave .bar:nth-child(4) { animation-delay: 0.3s; height: 60%; }
.audio-wave .bar:nth-child(5) { animation-delay: 0.4s; }
.audio-wave .bar:nth-child(6) { animation-delay: 0.5s; height: 80%; }
.audio-wave .bar:nth-child(7) { animation-delay: 0.6s; height: 70%; }
.audio-wave .bar:nth-child(8) { animation-delay: 0.7s; height: 90%; }
.audio-wave .bar:nth-child(9) { animation-delay: 0.8s; }

@keyframes recDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.rec-dot-pulse {
  display: inline-block;
  animation: recDotPulse 0.8s ease-in-out infinite;
}


/* === Streak Card Animations === */
@keyframes streakFlamePulse {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.08) rotate(2deg); }
  50% { transform: scale(1.04) rotate(-1deg); }
  75% { transform: scale(1.08) rotate(1deg); }
}
@keyframes streakWarningPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.6); }
  50% { box-shadow: 0 0 0 12px rgba(192,57,43,0); }
}
@keyframes streakBigBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes streakCelebrate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(8deg) scale(1.1); }
}
.streak-flame { animation: streakFlamePulse 2s ease-in-out infinite; display: inline-block; }
.streak-warning { animation: streakWarningPulse 1.5s ease-in-out infinite; }
.streak-celebrate { animation: streakCelebrate 0.6s ease-in-out infinite; display: inline-block; }
.streak-bounce-in { animation: streakBigBounce 0.6s ease-out; }


/* === Milestone Celebration Animations === */
@keyframes milestoneRotate {
  0% { transform: rotate(0deg) scale(0); opacity: 0; }
  20% { transform: rotate(45deg) scale(1.2); opacity: 1; }
  60% { transform: rotate(360deg) scale(1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
@keyframes milestoneSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes milestoneGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255,215,0,0.4); }
  50% { box-shadow: 0 0 60px rgba(255,215,0,0.8); }
}
@keyframes milestoneSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}
.milestone-bg-glow { animation: milestoneGlow 2s ease-in-out infinite; }
.milestone-icon-anim { animation: milestoneRotate 1.2s ease-out; }
.milestone-text-anim { animation: milestoneSlideUp 0.6s ease-out 0.4s both; }
.milestone-rewards-anim { animation: milestoneSlideUp 0.6s ease-out 0.7s both; }
.milestone-button-anim { animation: milestoneSlideUp 0.6s ease-out 1s both; }
.milestone-sparkle {
  position: absolute;
  font-size: 24px;
  animation: milestoneSparkle 1.5s ease-in-out infinite;
}


/* === Day mode: scenarios grid + admin/edit lists (were hardcoded dark) === */
body.day-mode #tab-scn [style*="#1F3147"],
body.day-mode #tab-scn [style*="#243a55"],
body.day-mode #tab-scn [style*="#18293E"],
body.day-mode #tab-scn [style*="#1A2B3E"],
body.day-mode #tab-scn [style*="#16273B"],
body.day-mode #tab-scn [style*="rgba(31,49,71"],
body.day-mode #tab-scn [style*="rgba(31, 49, 71"],
body.day-mode #tab-adm [style*="background:#0E1B2E"],
body.day-mode #tab-adm [style*="background:#18293E"],
body.day-mode #admin-list [style*="background:#0E1B2E"],
body.day-mode #admin-list [style*="background:#18293E"]{
  background:#fff8e7 !important;
  border-color:rgba(212,134,46,0.3) !important;
}
body.day-mode #tab-adm [style*="background:#2A3D52"],
body.day-mode #admin-list [style*="background:#2A3D52"]{ background:#efe0c2 !important; }
body.day-mode #tab-scn [style*="color:#E8D9B8"],
body.day-mode #tab-adm [style*="color:#E8D9B8"],
body.day-mode #admin-list [style*="color:#E8D9B8"],
body.day-mode #tab-adm [style*="color:#fff"],
body.day-mode #admin-list [style*="color:#fff"]{ color:#1a2b3c !important; }
body.day-mode #tab-scn [style*="color:#7a9ab5"],
body.day-mode #tab-scn [style*="color:#5a6b80"],
body.day-mode #tab-scn [style*="color:#a0b8c8"],
body.day-mode #tab-adm [style*="color:#7a9ab5"],
body.day-mode #admin-list [style*="color:#7a9ab5"]{ color:#5a6b80 !important; }

/* === Day mode: shared library / dictionary / announce / admin-form / edit / popups === */
body.day-mode .lhdr{ background:#f5e6c8 !important; border-bottom-color:rgba(212,134,46,0.25) !important; }
body.day-mode .dict-item{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.3) !important; }
body.day-mode .dict-he{ color:#1a2b3c !important; }
body.day-mode .dict-ar{ color:#1a2b3c !important; }
body.day-mode .dict-trans{ color:#a85200 !important; }
body.day-mode .announce-text{ background:#fff8e7 !important; color:#1a2b3c !important; }
body.day-mode .announce-trans{ background:#f5e6c8 !important; color:#3a2c10 !important; }
body.day-mode .atab{ background:#efe0c2 !important; border-color:rgba(212,134,46,0.3) !important; color:#5a6b80 !important; }
body.day-mode .acard{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.3) !important; }
body.day-mode .afl label{ color:#3a2c10 !important; }
body.day-mode .afl input, body.day-mode .afl select, body.day-mode .afl textarea{ background:#fffdf7 !important; border-color:rgba(212,134,46,0.4) !important; color:#1a2b3c !important; }
body.day-mode .afl select option{ background:#fffdf7 !important; color:#1a2b3c !important; }
body.day-mode .welcome-pop, body.day-mode .help-pop{ background:linear-gradient(135deg,#fff8e7 0%,#f5e6c8 100%) !important; }
body.day-mode .help-pop .help-h-sub, body.day-mode .help-pop .help-desc{ color:#5a6b80 !important; }
body.day-mode .help-pop .help-txt strong, body.day-mode .help-pop strong{ color:#1a2b3c !important; }
/* Edit modal */
body.day-mode #edit-modal [style*="background:#0E1B2E"]{ background:#fff8e7 !important; border-color:rgba(212,134,46,0.3) !important; }
body.day-mode #edit-modal [style*="#13263c"]{ background:#f5e6c8 !important; }
body.day-mode #edit-modal [style*="background:#2A3D52"]{ background:#efe0c2 !important; }
body.day-mode #edit-modal [style*="color:#E8D9B8"]{ color:#1a2b3c !important; }

/* === Day Mode Overrides for New Components === */
body.day-mode #home-streak-card,
body.day-mode #home-weekly-summary,
body.day-mode #home-stats-cubes {
  background: linear-gradient(135deg, #fff8e7 0%, #f5e6c8 100%) !important;
  border-color: rgba(212,134,46,0.4) !important;
}

/* Streak card text in day mode */
body.day-mode #home-streak-card div {
  color: #4a2c10 !important;
}
body.day-mode #home-streak-card .streak-flame {
  color: inherit !important;
}

/* Override specific gold/orange tones to be darker for day mode visibility */
body.day-mode #home-streak-card div[style*="color:#D4A24E"],
body.day-mode #home-streak-card div[style*="color:#a0b8c8"],
body.day-mode #home-weekly-summary div[style*="color:#a0b8c8"],
body.day-mode #home-weekly-summary div[style*="color:#7a9ab5"] {
  color: #8B6F2B !important;
}

body.day-mode #home-streak-card div[style*="color:#E8D9B8"],
body.day-mode #home-weekly-summary div[style*="color:#E8D9B8"] {
  color: #2c1810 !important;
}

body.day-mode #home-streak-card div[style*="color:#D4A24E"],
body.day-mode #home-weekly-summary div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}

body.day-mode #home-weekly-summary div[style*="color:#1D9E75"] {
  color: #0e5a3f !important;
}

body.day-mode #home-weekly-summary div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}

/* Stats cubes in day mode */
body.day-mode #home-stats-cubes div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}
body.day-mode #home-stats-cubes div[style*="color:#1D9E75"] {
  color: #0e5a3f !important;
}
body.day-mode #home-stats-cubes div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}
body.day-mode #home-stats-cubes div[style*="color:#a0b8c8"] {
  color: #6b4a1f !important;
}

/* Weekly summary bars in day mode */
body.day-mode #home-weekly-bars div[style*="background:rgba(255,255,255,0.08)"] {
  background: rgba(0,0,0,0.1) !important;
}

/* AT RISK state - keep red but adjust */
body.day-mode #home-streak-card[style*="c0392b"] div,
body.day-mode #home-streak-card[style*="922d22"] div {
  color: #fff !important;
}

/* MILESTONE state - keep gold colors visible */
body.day-mode #home-streak-card[style*="D4A24E"] div.keep-white {
  color: #fff !important;
}

/* Insights section in progress tab - day mode */
body.day-mode #prog-insights {
  color: #2c1810;
}
body.day-mode #prog-insights div[style*="color:#a0b8c8"] {
  color: #6b4a1f !important;
}
body.day-mode #prog-insights div[style*="color:#1D9E75"] {
  color: #0e5a3f !important;
}
body.day-mode #prog-insights div[style*="color:#c0392b"] {
  color: #8e0e0e !important;
}
body.day-mode #prog-insights div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}
body.day-mode #prog-insights div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}

/* Achievements panel in progress tab - day mode */
body.day-mode #prog-achievements div[style*="color:#E8D9B8"] {
  color: #2c1810 !important;
}
body.day-mode #prog-achievements div[style*="color:#7a9ab5"] {
  color: #6b4a1f !important;
}
body.day-mode #prog-achievements div[style*="color:#D4A24E"] {
  color: #a85200 !important;
}


/* === Badge Pulse Animation === */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(231,76,60,0.5); }
  50% { transform: scale(1.12); box-shadow: 0 2px 12px rgba(231,76,60,0.8); }
}


/* ===== Hebrew font override (was <style id="hebrew-font-override">) ===== */
body, body *, .scr, .scr *, button, input, textarea, select {
  font-family: 'Noto Sans Hebrew', 'Heebo', 'Arial Hebrew', 'David', Arial, sans-serif !important;
}


/* ===== Login: iPhone "install first" note (shown by js/member-login.js on iPhone in Safari) ===== */
.cl-ios {
  display: none; background: rgba(212,162,78,0.08); border: 1px solid rgba(212,162,78,0.45); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px; color: #E8D9B8; font-size: 12.5px; line-height: 1.6;
}
.cl-ios b { color: #E9BE6A; }

/* ===== Login: "send the confirmation email again" (shown by js/member-login.js) ===== */
.cl-resend {
  display: none; width: 100%; margin-top: 10px; padding: 11px;
  background: transparent; border: 1px solid #D4A24E; border-radius: 10px;
  color: #D4A24E; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.cl-resend:disabled { opacity: .6; cursor: default; }

/* ===== Admin, waiting for approval: approve everyone ticked at once (js/admin.js) ===== */
.mem-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin-top: 6px; border: 1px solid #1D9E75; border-radius: 10px; background: rgba(29,158,117,0.08);
}
.mem-bulk-btn {
  flex: 1; min-width: 180px; padding: 10px; background: #117A5B; border: none; border-radius: 10px;
  color: #fff; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.mem-bulk-btn:disabled { opacity: .6; cursor: default; }
.mem-bulk-all { background: none; border: none; color: #9fb2c6; font-size: 12px; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 4px; }
.mem-pick { width: 20px; height: 20px; flex-shrink: 0; accent-color: #1D9E75; cursor: pointer; }
body.day-mode .mem-bulk-all { color: #6b4a1f; }

/* ===== Legal popup (terms, privacy, accessibility) in day mode ===== */
/* Its text is copied from the "מידע ומשפטי" screen, which turns dark-on-light in day mode,
   so the popup turns light too (it stayed dark: dark text on a dark box, nothing readable). */
body.day-mode #legal-modal > div { background: #fff !important; border-color: #d9cfc0 !important; }
body.day-mode #legal-modal > div > div:first-child { border-bottom-color: #e3d9c8 !important; }
body.day-mode #legal-body { color: #2c1810 !important; }
body.day-mode #legal-modal button[onclick="closeLegal()"] { color: #2c1810 !important; }
/* The two "הסרה" buttons (waiting list, participants list): readable red on the light rows of day mode. */
body.day-mode #mem-pending button[onclick^="membersDeletePending"],
body.day-mode #mem-list button[onclick^="membersRemove"] { color: #b3261e !important; border-color: #d99a94 !important; }

/* ===== New practice types: shared screen (js/practice-kit.js) =====
   Text sizes follow the rest of the kit (owner, 28.10.2026: not bigger than the kit): the main
   sentence Hebrew 16, transliteration 17, Arabic 19; options and tiles 15, like the lists,
   conversation bubbles = the scenario screen's bubbles. "גודל טקסט" (⚙️) enlarges it like the screens. */
.pt-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #0E1B2E; z-index: 9998; direction: rtl; overflow-y: auto; }
.pt-wrap { max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.pt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pt-title { color: #E8D9B8; font-size: 17px; font-weight: 800; }
.pt-x { background: #2A3D52; border: none; color: #E8D9B8; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; font-family: inherit; }
.pt-intro { color: #8fa9c0; font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; }
.pt-bar { height: 6px; background: #1F3147; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
#pt-bar { height: 100%; width: 0; background: #D4A24E; border-radius: 3px; transition: width .3s; }
.pt-score { text-align: center; color: #8fa9c0; font-size: 12px; margin-bottom: 14px; }
.pt-card { background: #18293E; border: 1px solid #2A3D52; border-radius: 14px; padding: 18px 16px; margin-bottom: 14px; text-align: center; }
.pt-ask { color: #8fa9c0; font-size: 12px; margin-bottom: 8px; }
.pt-he { color: #E8D9B8; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pt-hint { margin-top: 12px; background: transparent; border: 1px solid #D4A24E; color: #D4A24E; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pt-label { color: #a0b8c8; font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.pt-fb { border-radius: 12px; padding: 14px; margin-bottom: 12px; text-align: center; border: 1px solid #2A3D52; }
.pt-fb.ok { border-color: #1D9E75; background: rgba(29,158,117,0.1); }
.pt-fb.bad { border-color: #c0392b; background: rgba(192,57,43,0.1); }
.pt-fb-h { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.pt-fb.ok .pt-fb-h { color: #4cd4a0; }
.pt-fb.bad .pt-fb-h { color: #ff8a7a; }
.pt-fb-tr { color: #fff; font-size: 17px; line-height: 1.5; margin-bottom: 4px; }
.pt-fb-ar { color: #FFD700; font-size: 19px; font-family: Georgia, serif; direction: rtl; margin-bottom: 4px; }
.pt-fb-he { color: #E8D9B8; font-size: 14px; margin-bottom: 8px; }
.pt-fb-say { color: #E9BE6A; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pt-btn { width: 100%; padding: 13px; background: #D4A24E; border: none; border-radius: 10px; color: #0E1B2E; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; margin-bottom: 8px; }
.pt-btn2 { background: #2A3D52; border: none; border-radius: 10px; color: #E8D9B8; font-size: 14px; padding: 10px 14px; cursor: pointer; font-family: inherit; }
.pt-wide { width: 100%; padding: 13px; font-size: 15px; }
.pt-end { text-align: center; padding: 30px 10px; }
.pt-end-ic { font-size: 46px; margin-bottom: 10px; }
.pt-end-n { color: #E8D9B8; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.pt-end-msg { color: #a0b8c8; font-size: 14px; margin-bottom: 8px; }
.pt-end-note { color: #E9BE6A; font-size: 13px; margin-bottom: 16px; }
.pt-audio-msg { color: #e6a23c; font-size: 13px; font-weight: 700; margin-top: 10px; line-height: 1.6; }
/* the cards that open them, in "אימון ותרגול" (same look as the cards around them) */
.train-card { background: linear-gradient(135deg,#1f4f86 0%,#163a63 100%); border-radius: 14px; padding: 14px; margin-bottom: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.25); border: 1px solid rgba(120,170,230,0.3); display: flex; align-items: center; gap: 12px; }
.train-card .tc-ic { font-size: 26px; }
.train-card .tc-tx { flex: 1; }
.train-card .tc-t { font-size: 15px; font-weight: 800; }
.train-card .tc-s { color: rgba(255,255,255,0.85); font-size: 12px; }
.train-card .tc-go { color: #fff; font-size: 20px; }
/* "אני רוצה להתכונן" in the order of what to do now: today, this week, any time, special modes */
.train-sec{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:20px 2px 10px;padding-bottom:5px;border-bottom:1px solid rgba(122,154,181,0.25);}
.train-sec-t{color:#D4A24E;font-size:15px;font-weight:800;}
.train-sec-s{color:#7a9ab5;font-size:11.5px;}
#tab-train .train-card{margin-bottom:10px;}
.train-card .tc-ic{flex-shrink:0;} .train-card .tc-tx{min-width:0;} .train-card .tc-s{line-height:1.4;} .train-card .tc-go{flex-shrink:0;}
.train-card .tc-chip{display:inline-block;margin-top:6px;background:rgba(0,0,0,0.3);color:#fff;font-size:11px;font-weight:700;border-radius:8px;padding:2px 9px;}
.train-card.tc-daily{background:linear-gradient(135deg,#b23a2c 0%,#7d241b 100%);border:2px solid rgba(212,162,78,0.6);}
.train-card.tc-weekly{background:linear-gradient(135deg,#1D9E75 0%,#0e5a3f 100%);border:1px solid rgba(255,255,255,0.25);}
.train-card.tc-top{border:2px solid rgba(212,162,78,0.6);}      /* above the division: the pressure mode and the pre-enlistment path */
#tab-train .train-card.tc-first{margin-top:16px;}
.train-card.tc-done .tc-chip{background:rgba(255,255,255,0.22);}
body.day-mode .train-sec-t{color:#a85200;} body.day-mode .train-sec-s{color:#4a5b6c;} body.day-mode .train-sec{border-bottom-color:rgba(58,74,92,0.25);}
/* on the home screen's "prepare" card: today's challenge is waiting */
.home-daily-pill{margin-top:7px;background:#D4A24E;color:#0E1B2E;font-size:11.5px;font-weight:800;border-radius:9px;padding:2px 10px;}

/* ===== "סדר את המשפט" (js/practice-order.js) ===== */
.ord-line { min-height: 64px; border: 2px dashed #2A3D52; border-radius: 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.ord-line.ok { border-style: solid; border-color: #1D9E75; background: rgba(29,158,117,0.08); }
.ord-line.bad { border-style: solid; border-color: #c0392b; background: rgba(192,57,43,0.08); }
.ord-empty { color: #8fa9c0; font-size: 13px; padding: 0 6px; }
.ord-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.ord-chip { background: #1F3147; border: 1px solid #3A5068; border-radius: 10px; padding: 8px 12px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-family: inherit; }
.ord-t { color: #E8D9B8; font-size: 15px; font-weight: 700; }
.ord-a { color: #FFD700; font-size: 15px; font-family: Georgia, serif; direction: rtl; }

/* ===== "השלם את המילה" (js/practice-fill.js) ===== */
.fill-sent { background: #18293E; border: 1px solid #2A3D52; border-radius: 14px; padding: 14px; margin-bottom: 14px; text-align: center; }
.fill-t { color: #fff; font-size: 17px; line-height: 1.9; }
.fill-a { color: #FFD700; font-size: 19px; font-family: Georgia, serif; direction: rtl; line-height: 1.9; margin-top: 2px; }
.fill-gap { display: inline-block; min-width: 56px; border-bottom: 2px solid #D4A24E; color: #D4A24E; padding: 0 4px; }
.fill-gap.shown { color: #4cd4a0; border-color: #1D9E75; font-weight: 700; }
.fill-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.fill-opt.ok { border-color: #1D9E75; background: rgba(29,158,117,0.18); }
.fill-opt.bad { border-color: #c0392b; background: rgba(192,57,43,0.18); }

/* ===== "מה עונים?" (js/practice-reply.js) ===== */
.rep-ar { color: #FFD700; font-size: 19px; font-family: Georgia, serif; direction: rtl; line-height: 1.5; }
.rep-tr { color: #fff; font-size: 17px; line-height: 1.5; margin-top: 4px; }
.rep-he { display: none; color: #E8D9B8; font-size: 14px; font-weight: 700; margin-top: 10px; padding-top: 8px; border-top: 1px solid #2A3D52; }
.rep-he.on { display: block; }
.rep-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rep-opt { background: #1F3147; border: 1px solid #3A5068; border-radius: 10px; padding: 12px 14px; min-height: 48px; color: #E8D9B8; font-size: 15px; line-height: 1.5; text-align: right; cursor: pointer; font-family: inherit; }
.rep-opt.ok { border-color: #1D9E75; background: rgba(29,158,117,0.18); }
.rep-opt.bad { border-color: #c0392b; background: rgba(192,57,43,0.18); }

/* ===== "תרחיש קצר" (js/practice-scene.js) ===== */
.sc-title { color: #E9BE6A; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.sc-chat { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; padding: 0 8px; }
.sc-chat .scn-bubble { text-align: right; }
.pt-fb .scn-bubble-row { margin: 4px 0 8px; }
.scn-bubble-row.sc-prev { opacity: .6; }
.sc-chat .scn-bubble-row:not(:last-child), .sc-all .scn-bubble-row, .pt-fb .scn-bubble-row { animation: none; }   /* only the newest line fades in */
.sc-prev-h { font-size: 10px; font-weight: 800; opacity: .9; margin-bottom: 2px; }
.sc-chat:empty { display: none; }
.sc-chat.sc-all { max-height: none; overflow: visible; text-align: right; }
.sc-opt { display: flex; flex-direction: column; gap: 2px; }
.sc-ot { color: #E8D9B8; font-size: 15px; font-weight: 700; }
.sc-oa { color: #FFD700; font-size: 15px; font-family: Georgia, serif; direction: rtl; }
.sc-sub { color: #a0b8c8; font-size: 12.5px; font-weight: 700; margin: -4px 0 8px; }
.pt-btn2.sc-full { margin-bottom: 12px; }

/* "גודל טקסט" (⚙️) enlarges the practice windows like the screens (js/start.js applyTextScale) */
body.text-lg .pt-wrap{ zoom:1.12; }
body.text-xl .pt-wrap{ zoom:1.25; }

/* ===== "תרגול מעורב" (js/practice-mix.js) ===== */
.mix-tag { display: inline-block; background: rgba(212,162,78,0.12); border: 1px solid rgba(212,162,78,0.45); color: #E9BE6A; font-size: 12px; font-weight: 800; border-radius: 9px; padding: 3px 10px; margin-bottom: 10px; }
.say-rate { display: flex; gap: 8px; margin-bottom: 12px; }
.say-rate .rep-opt { flex: 1; text-align: center; font-weight: 700; }
.say-rate .say-no { border-color: #c0392b; background: rgba(192,57,43,0.15); }
.say-rate .say-yes { border-color: #1D9E75; background: rgba(29,158,117,0.15); }
/* ===== "🎬 צפו בתרחיש": the scenario as a short animated film (js/scene-player.js) =====
   Text sizes as in the rest of the kit: Arabic 19, transliteration 17, Hebrew 16.
   The scene is drawn at 400 x 500: .sv-frame keeps that shape inside the stage, .sv-world is
   the camera (it moves closer to whoever speaks), and everyone is placed in percent of it. */
.scn-video-btn { width: 100%; background: linear-gradient(135deg,#2a2346 0%,#1c2a44 100%); border: 1px solid #D4A24E; color: #E9BE6A; border-radius: 12px; padding: 13px 10px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.sv-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #0E1B2E; z-index: 9998; direction: rtl; overflow-y: auto; }
.sv-wrap { max-width: 460px; margin: 0 auto; padding: 14px 16px 30px; }
.sv-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 60vh; border-radius: 18px; overflow: hidden; border: 1px solid #2A3D52; margin-top: 6px; background: #0b1422; }
.sv-frame { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; aspect-ratio: 4 / 5; transform: translateX(-50%); overflow: hidden; }
/* Old phones (iPhone before iOS 15) do not know aspect-ratio, and the stage would have no height:
   there the stage takes its 4:5 shape from its width, and the picture fills it. */
@supports not (aspect-ratio: 1 / 1) {
  .sv-stage { height: 0; padding-top: 125%; max-height: none; }
  .sv-frame { left: 0; width: 100%; transform: none; }
}
.sv-world { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; transition: transform 1.1s ease; }
.sv-world > svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sv-light { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse 75% 70% at 45% 40%, rgba(255,240,210,.10), rgba(0,0,0,0) 55%, rgba(10,15,30,.32) 100%); }
/* the people are moved in code, a little every frame (js/scene-player.js _svSim); only their fading is left to the page */
.sv-actor { position: absolute; bottom: 2%; height: 46%; z-index: 3; transition: opacity .35s ease; }
.sv-actor svg { height: 100%; width: auto; display: block; overflow: visible; }
.sv-actor.quiet { filter: brightness(.78); }
/* the people: every joint is turned in code (js/scene-art.js _svPoseSet), these are the rest */
.sv-shirt { transform-box: view-box; transform-origin: 50px 49px; transition: transform .5s ease; }
.sv-eyes, .sv-mouth, .sv-wheel, .sv-puff, .sv-brows { transform-box: fill-box; transform-origin: center; }
.sv-mouth { transform-origin: 50% 0; transform: scaleY(.25); }
.sv-brows { transition: transform .2s; }
.sv-eyes { animation: svBlink 4.2s infinite; }
.sv-civ .sv-eyes { animation-delay: 1.6s; }
.sv-civ2 .sv-eyes { animation-delay: 2.7s; }
.sv-extra .sv-eyes { animation-delay: .8s; }
.sv-mega, .sv-idcard, .sv-key, .sv-item { opacity: 0; transition: opacity .3s; }
.mega .sv-mega, .act-id .sv-idcard, .act-key .sv-key, .act-item .sv-item { opacity: 1; }
.sv-palm { opacity: 0; transition: opacity .25s; }
.g-stop .sv-palm { opacity: 1; }
.sv-cane { transition: opacity .3s; }
/* a bag in the hand: shown for whoever carries one, and opened when told to */
.sv-bag { opacity: 0; }
.has-bag .sv-bag { opacity: 1; }
.sv-bag-in { opacity: 0; transition: opacity .3s; }
.sv-bag-flap { transform-box: fill-box; transform-origin: 50% 0; transition: transform .35s ease; }
.bag-open .sv-bag-in { opacity: 1; }
.bag-open .sv-bag-flap { transform: scaleY(-.7); }
.act-hands .sv-bag, .act-head .sv-bag, .act-back .sv-bag, .act-lie .sv-bag, .act-wall .sv-bag { opacity: 0; }
.act-hands .sv-cane, .act-head .sv-cane, .act-back .sv-cane, .act-open .sv-cane, .act-lie .sv-cane, .act-wall .sv-cane, .act-sit .sv-cane, .act-sitg .sv-cane, .act-kneel .sv-cane, .act-shirt .sv-cane, .act-bend .sv-cane, .act-feet .sv-cane, .act-id .sv-cane, .act-item .sv-cane, .g-plead .sv-cane { opacity: 0; }
@keyframes svBlink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.talk.voice .sv-brows { transform: translateY(-.6px); }
/* the shirt lifted (the rest of what the body does is in the joints) */
.sv-actor.act-shirt:not(.sv-w):not(.sv-robe) .sv-shirt { transform: scaleY(.45); }
/* people in the background: passers-by, a guard */
.sv-bg { filter: brightness(.93) saturate(.88); }
/* the car, the door, the table, the flock */
.sv-car { position: absolute; left: 0; bottom: 6%; width: 78%; z-index: 54; transition-property: left; transition-timing-function: ease-out; }
.sv-car svg { width: 100%; height: auto; display: block; overflow: visible; }
.sv-car .sv-bust { transition: opacity .4s; }
.sv-car.empty .sv-bust { opacity: 0; }
.sv-car .sv-glow, .sv-car .sv-roofkey { opacity: 0; transition: opacity .5s; }
.sv-car.light .sv-glow { opacity: .55; }
.sv-car.roofkey .sv-roofkey { opacity: 1; }
.sv-carhands { opacity: 0; transition: opacity .3s; }
/* the car: what the director shows on it (js/scene-art.js _svCar) */
.sv-cwheel, .sv-chout, .sv-cin, .sv-cdoor, .sv-cbay, .sv-ckeyarm, .sv-ckeyhand, .sv-ckeyout { opacity: 0; transition: opacity .35s; }
.sv-car.wheel .sv-cwheel, .sv-car.hout .sv-chout, .sv-car.keyout .sv-ckeyout, .sv-car.showkey .sv-ckeyhand, .sv-car.putkey .sv-ckeyarm, .sv-car.hood .sv-cbay { opacity: 1; }
.sv-car.wheel .sv-carhands, .sv-car.hout .sv-carhands { opacity: 0; }
.sv-car.empty .sv-cwheel, .sv-car.empty .sv-chout, .sv-car.empty .sv-ckeyhand, .sv-car.empty .sv-ckeyarm { opacity: 0; }
.sv-cdoor { transform-box: view-box; transition: opacity .2s, transform .7s ease; }
.sv-cdoor1 { transform-origin: 189px 60px; }
.sv-cdoor2 { transform-origin: 120px 60px; }
.sv-car.doors1 .sv-cin1, .sv-car.doors2 .sv-cin2 { opacity: 1; }
.sv-car.doors1 .sv-cdoor1, .sv-car.doors2 .sv-cdoor2 { opacity: 1; transform: scaleX(.24); filter: brightness(.82); }
.sv-chood { transform-box: view-box; transform-origin: 191px 55px; transition: transform .7s ease; }
.sv-car.hood .sv-chood { transform: rotate(-34deg); }
.sv-cbagw { transition: opacity .3s; }
.sv-car.doors2 .sv-cbagw { opacity: 0; }
.sv-carid { opacity: 0; transition: opacity .35s; }
.sv-car.showid .sv-carid1, .sv-car.showid2 .sv-carid2 { opacity: 1; }
.sv-car.empty .sv-carid { opacity: 0; }
.sv-car.hands .sv-carhands { opacity: 1; }
.sv-car .sv-lid { transform-box: fill-box; transform-origin: 100% 0; transition: transform .7s ease; }
.sv-car.trunk .sv-lid { transform: rotate(38deg); }
.sv-car.driving .sv-wheel { animation: svSpin .45s linear infinite; }
.sv-car.driving { animation: svCarBob .2s ease-in-out infinite alternate; }
@keyframes svCarBob { from { transform: translateY(0); } to { transform: translateY(-1.5%); } }
.sv-puff { opacity: 0; }
.sv-car.engine .sv-puff { animation: svPuff 1.5s ease-out infinite; }
.sv-car.engine .sv-p2 { animation-delay: .5s; }
.sv-car.engine .sv-p3 { animation-delay: 1s; }
@keyframes svSpin { to { transform: rotate(360deg); } }
@keyframes svPuff { 0% { opacity: .55; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-26px, -14px) scale(1.8); } }
.sv-door { position: absolute; left: 23.5%; top: 22.4%; width: 21%; height: 45.2%; z-index: 2; transform-origin: 0 50%; transition: transform .8s ease; }
.sv-door svg { width: 100%; height: 100%; display: block; }
.sv-door.open { transform: perspective(600px) rotateY(76deg); }
.sv-knock { position: absolute; left: 39.5%; top: 37%; width: 5%; z-index: 30; opacity: 0; }
.sv-knock svg { width: 100%; height: auto; display: block; }
.sv-knock.on { animation: svKnock .26s steps(2) infinite; }
@keyframes svKnock { 0% { opacity: 1; } 100% { opacity: 0; } }
.sv-prop { position: absolute; }
.sv-prop svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sv-flag { animation: svFlag 3.2s ease-in-out infinite; transform-origin: 11px 28px; }
@keyframes svFlag { 0%,100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-3deg) scaleX(.94); } }
@media (prefers-reduced-motion: reduce) { .sv-flag { animation: none; } }
.sv-chair.flip svg, .sv-sheep.flip svg { transform: scaleX(-1); }
.sv-drop { width: 5.5%; height: 1.8%; z-index: 58; opacity: 0; transition: opacity .25s .35s; }
.sv-drop.on { opacity: 1; }
.sv-lamp { transform-box: view-box; transform-origin: 200px 0; animation: svSwing 4s ease-in-out infinite alternate; }
@keyframes svSwing { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.sv-sheep { z-index: 44; transition-property: left, bottom, height; transition-timing-function: linear; }
.sv-sheep svg { height: 100%; width: auto; }
.sv-extra .sv-p { filter: saturate(.9); }
/* the place lives: clouds drift, trees move in the wind, birds fly by; stars at night */
.sv-clouds { animation: svDrift 30s ease-in-out infinite alternate; }
@keyframes svDrift { from { transform: translateX(-10px); } to { transform: translateX(40px); } }
.sv-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: svSway 4.5s ease-in-out infinite alternate; }
@keyframes svSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.sv-birds { animation: svFly 17s linear infinite; }
@keyframes svFly { 0% { transform: translate(-60px, 0); } 100% { transform: translate(480px, -34px); } }
.sv-birds path { transform-box: fill-box; transform-origin: center; animation: svFlap .32s ease-in-out infinite alternate; }
@keyframes svFlap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.sv-stars { display: none; }
.sv-night .sv-stars { display: inline; }
.sv-night .sv-birds { display: none; }
.sv-stars circle { animation: svTwinkle 2.4s ease-in-out infinite alternate; }
.sv-stars circle:nth-child(2n) { animation-delay: 1.1s; }
@keyframes svTwinkle { from { opacity: .3; } to { opacity: 1; } }
/* washing on a line, curtains, a ceiling fan */
.sv-wash { transform-box: fill-box; transform-origin: 50% 0; animation: svSway 3.2s ease-in-out infinite alternate; }
.sv-curt path { transform-box: fill-box; transform-origin: 50% 0; animation: svCurt 5s ease-in-out infinite alternate; }
@keyframes svCurt { from { transform: scaleX(1); } to { transform: scaleX(1.06); } }
.sv-blades { transform-box: fill-box; transform-origin: center; animation: svFan 1.1s linear infinite; }
@keyframes svFan { 0% { transform: scaleX(1); } 50% { transform: scaleX(.12); } 100% { transform: scaleX(1); } }
/* late afternoon: warmer light */
.sv-eve .sv-world { filter: sepia(.22) saturate(1.12) brightness(.97); }
/* the hour and the weather of a film in the open (the sky itself is drawn in scene-art.js): the light on everything in it */
.sv-mood1 .sv-world { filter: sepia(.16) saturate(1.08); }
.sv-mood2 .sv-world { filter: saturate(.78) brightness(.96); }
.sv-mood3 .sv-world { filter: saturate(.94) brightness(1.02); }
.sv-mood4 .sv-world { filter: sepia(.24) saturate(1.16) brightness(.9) hue-rotate(-6deg); }
/* by night: the same place, darker, with the moon */
.sv-moon { display: none; }
.sv-night .sv-moon { display: inline; }
.sv-night .sv-sun, .sv-night .sv-clouds { display: none; }
.sv-night .sv-world { filter: brightness(.66) saturate(.72) hue-rotate(6deg); }
/* the speech bubble and the cards */
.sv-bub { position: absolute; top: 3.5%; left: 5%; right: 5%; z-index: 6; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; background: #F6E7C4; color: #0E1B2E; border: 2px solid #D4A24E; border-radius: 18px; padding: 10px 14px 12px; text-align: center; box-shadow: 0 8px 22px rgba(0,0,0,0.45); pointer-events: none; }
.sv-bub.on { opacity: 1; transform: none; pointer-events: auto; }
.sv-bub.sv-from-civ { background: #E3F2EC; border-color: #1D9E75; }
.sv-bub.sv-f { background: #F3DCDD; border-color: #B07578; }
.sv-bub::after { content: ''; position: absolute; bottom: -11px; width: 20px; height: 20px; background: inherit; border-right: inherit; border-bottom: inherit; transform: rotate(45deg); }
.sv-bub.sv-from-sol::after { right: 22%; }
.sv-bub.sv-from-civ::after { left: 22%; }
.sv-bub.sv-from-civ.sv-far::after { left: 9%; }
.sv-who { font-size: 11px; font-weight: 800; color: #4a5a72; margin-bottom: 4px; }
.sv-tr { font-size: 17px; font-weight: 800; color: #0E1B2E; line-height: 1.5; }
.sv-ar { font-size: 19px; font-family: Georgia, serif; direction: rtl; color: #33435a; line-height: 1.5; margin-top: 2px; }
.sv-ask { font-size: 12px; color: #4a5a72; margin-bottom: 4px; }
.sv-he-big { font-size: 16px; font-weight: 800; color: #0E1B2E; line-height: 1.5; margin-bottom: 10px; }
.sv-reveal { margin: 0; padding: 10px; }
.sv-card { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 7; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(8,14,24,0.74); padding: 24px; text-align: center; }
.sv-card.on { display: flex; }
.sv-card-t { color: #E8D9B8; font-size: 19px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.sv-card-s { color: #a0b8c8; font-size: 13px; margin-bottom: 14px; }
.sv-go { max-width: 260px; }
.sv-go2 { width: 100%; max-width: 260px; padding: 12px; }
.sv-sub { min-height: 48px; margin: 10px 0 6px; text-align: center; color: #E8D9B8; font-size: 16px; font-weight: 600; line-height: 1.5; }
.sv-barin { height: 100%; width: 0; background: #D4A24E; border-radius: 3px; transition: width .3s; }
.sv-ctrls { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 4px 0 12px; }
.sv-c { width: 50px; height: 50px; border-radius: 50%; background: #2A3D52; border: none; color: #E8D9B8; font-size: 19px; cursor: pointer; font-family: inherit; }
.sv-c.sv-main { width: 64px; height: 64px; background: #D4A24E; color: #0E1B2E; font-size: 26px; }
.sv-opts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.sv-opt { background: transparent; border: 1px solid #3A5068; color: #a0b8c8; border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sv-opt.on { background: rgba(29,158,117,0.18); border-color: #1D9E75; color: #4cd4a0; }
.sv-note { color: #8fa9c0; font-size: 12px; text-align: center; line-height: 1.6; }
.sv-ver { color: #5f7890; font-size: 11px; text-align: center; margin-top: 10px; }
body.text-lg .sv-wrap { zoom: 1.12; }
body.text-xl .sv-wrap { zoom: 1.25; }
@media (prefers-reduced-motion: reduce) {
  .sv-bulbs, .sv-bulbs circle, .sv-siren2, .sv-occ > svg, .sv-eyes, .sv-lamp, .sv-car.driving, .sv-car.driving .sv-wheel, .sv-car.engine .sv-puff, .sv-clouds, .sv-tree, .sv-birds, .sv-stars, .sv-wash, .sv-curt path, .sv-blades { animation: none; }
  .sv-world { transition: none; }
}
/* a person faces right as drawn; .flip turns him to face left */
.sv-actor .sv-p { transform-origin: 50% 50%; transition: transform .28s ease; }
.sv-actor.flip .sv-p { transform: scaleX(-1); }
.sv-actor.turning .sv-p { transition-duration: .75s; }
/* the picture of a life event (a wedding, a house of mourning…) over the room; a holiday's flags and lanterns over a street */
.sv-occ, .sv-deco { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.sv-occ { z-index: 1; } .sv-deco { z-index: 2; }
.sv-occ svg, .sv-deco svg { width: 100%; height: 100%; display: block; }
.sv-occ > svg { animation: svOccIn .6s ease both; }
@keyframes svOccIn { from { opacity: 0; } to { opacity: 1; } }
.sv-bulbs, .sv-bulbs circle { animation: svTwinkle 1.7s ease-in-out infinite alternate; }
.sv-bulbs circle:nth-child(4n) { animation-delay: .5s; } .sv-bulbs circle:nth-child(4n+2) { animation-delay: 1s; }
.sv-siren2 { animation: svSiren 1s steps(1) infinite; }
@keyframes svSiren { 0%, 49% { transform: translateX(0); } 50%, 100% { transform: translateX(18px); } }
/* a wounded man: his eyes close, and open when he is spoken to */
.sv-actor.drowsy .sv-eyes { animation: svDrowsy 3.6s ease-in-out infinite; }
.sv-actor.drowsy.talk .sv-eyes, .sv-actor.awake .sv-eyes { animation: none; transform: scaleY(.8); }
@keyframes svDrowsy { 0%, 100% { transform: scaleY(.12); } 40% { transform: scaleY(.12); } 55% { transform: scaleY(.6); } 70% { transform: scaleY(.12); } }
/* ניהול ← 📊 מדידה (js/stats.js) */
.st-days{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;}
.st-days button{background:#2A3D52;border:1px solid #2A3D52;border-radius:8px;color:#E8D9B8;font-size:12.5px;font-weight:700;padding:7px 11px;cursor:pointer;font-family:inherit;}
.st-days button.on{background:#D4A24E;border-color:#D4A24E;color:#0E1B2E;}
.st-note{text-align:center;color:#7a9ab5;font-size:12.5px;line-height:1.7;padding:10px 4px;}
.st-h{color:#E9BE6A;font-size:14px;font-weight:800;margin:16px 0 6px;}
.st-sub{color:#a9c7bd;font-size:12px;font-weight:800;margin:10px 0 4px;}
.st-t{width:100%;border-collapse:collapse;font-size:13.5px;color:#E8D9B8;}
.st-t td,.st-t th{padding:7px 6px;border-bottom:1px solid #2A3D52;text-align:right;}
.st-t th{color:#7a9ab5;font-size:11.5px;font-weight:700;}
.st-t .st-n,.st-t th:not(:first-child){text-align:left;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;}
.st-pct{color:#7eecc1;font-size:11.5px;font-weight:700;margin-inline-start:6px;}
.st-link{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#0E1B2E;border:1px solid #2A3D52;border-radius:10px;padding:9px 10px;margin-top:6px;}
.st-link div{min-width:0;}
.st-link b{display:block;color:#E8D9B8;font-size:12.5px;}
.st-link span{display:block;color:#7a9ab5;font-size:11px;word-break:break-all;text-align:left;}
.st-link button{flex:none;background:#117A5B;border:none;border-radius:8px;color:#fff;font-size:12.5px;font-weight:800;padding:8px 12px;cursor:pointer;font-family:inherit;}
body.day-mode .st-t{color:#1a2b3c;} body.day-mode .st-t td,body.day-mode .st-t th{border-color:rgba(212,134,46,0.3);}
body.day-mode .st-h{color:#a85200;} body.day-mode .st-sub,body.day-mode .st-note,body.day-mode .st-t th{color:#5a6b80;}
body.day-mode .st-pct{color:#0e6b52;}
body.day-mode .st-link{background:#fffdf7;border-color:rgba(212,134,46,0.4);} body.day-mode .st-link b{color:#1a2b3c;} body.day-mode .st-link span{color:#5a6b80;}
body.day-mode .st-days button{background:#efe0c2;border-color:rgba(212,134,46,0.3);color:#3a2c10;} body.day-mode .st-days button.on{background:#D4A24E;color:#fff;}
/* ניהול ← 🔍 חיפשו ולא מצאו (js/missed.js), והשורה שמופיעה לחייל במסך החיפוש */
.gs-missed{text-align:center;color:#7eecc1;font-size:12px;line-height:1.6;padding:0 14px 14px;}
/* One typed word: the phrases where it is only part of another word wait behind this button */
.gs-more{display:block;width:100%;margin:6px 0 12px;background:transparent;border:1px dashed #3d5670;border-radius:10px;padding:11px 12px;color:#c9d6e3;font-size:13px;font-family:inherit;line-height:1.5;cursor:pointer;}
.gs-more:active{background:rgba(212,162,78,0.10);}
.gs-part{color:#e8b96a;font-size:12px;line-height:1.6;margin:6px 2px 10px;}
.ms-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 8px;color:#E9BE6A;font-size:13px;font-weight:800;}
.ms-top button,.ms-row button,.ms-acts button{flex:none;background:#2A3D52;border:1px solid #2A3D52;border-radius:8px;color:#E8D9B8;font-size:12.5px;font-weight:700;padding:8px 11px;cursor:pointer;font-family:inherit;}
.ms-card{background:#0E1B2E;border:1px solid #2A3D52;border-radius:12px;padding:12px;margin-bottom:10px;}
.ms-q{color:#fff;font-size:17px;font-weight:800;line-height:1.4;word-break:break-word;}
.ms-meta{color:#7a9ab5;font-size:11.5px;margin:2px 0 8px;}
.ms-sub{color:#a9c7bd;font-size:11.5px;font-weight:800;margin:6px 0 4px;}
.ms-b{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:5px 0;border-bottom:1px solid #1F3147;}
.ms-b b{color:#E8D9B8;font-size:13px;}
.ms-ar{color:#FFD700;font-size:16px;font-family:Georgia,serif;direction:rtl;}
.ms-tr{color:#a0b8c8;font-size:12.5px;}
.ms-missing{color:#e8b96a;font-size:12.5px;line-height:1.6;margin-top:8px;}
.ms-missing b{color:#ffd58a;}
.ms-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.ms-acts button.go{background:#117A5B;border-color:#117A5B;color:#fff;}
.ms-row{display:flex;align-items:center;gap:6px;background:#0E1B2E;border:1px solid #2A3D52;border-radius:10px;padding:9px 10px;margin-bottom:6px;}
.ms-row div{flex:1;min-width:0;}
.ms-row b{display:block;color:#E8D9B8;font-size:13.5px;word-break:break-word;}
.ms-row span{display:block;color:#7a9ab5;font-size:11px;}
body.day-mode .gs-missed{color:#0e6b52;}
body.day-mode .gs-more{border-color:#b9a98a;color:#5a4a2c;}
body.day-mode .gs-part{color:#8a5a00;}
body.day-mode .ms-top{color:#a85200;}
body.day-mode .ms-card,body.day-mode .ms-row{background:#fffdf7;border-color:rgba(212,134,46,0.4);}
body.day-mode .ms-q{color:#1a2b3c;} body.day-mode .ms-b{border-color:rgba(212,134,46,0.25);} body.day-mode .ms-b b,body.day-mode .ms-row b{color:#1a2b3c;}
body.day-mode .ms-ar{color:#8a5a00;} body.day-mode .ms-tr,body.day-mode .ms-meta,body.day-mode .ms-row span{color:#5a6b80;} body.day-mode .ms-sub{color:#0e6b52;}
body.day-mode .ms-missing{color:#a85200;} body.day-mode .ms-missing b{color:#7a3c00;}
body.day-mode .ms-top button,body.day-mode .ms-row button,body.day-mode .ms-acts button{background:#efe0c2;border-color:rgba(212,134,46,0.3);color:#3a2c10;}
body.day-mode .ms-acts button.go{background:#117A5B;border-color:#117A5B;color:#fff;}

/* Pilot feedback (22.11.2026): "לתרגל שיחה", "שמיעה בקצב השטח" (js/practice-drills.js) and the
   calendar reminder (js/progress.js). The windows are force-dark, like the other practice screens. */
.train-card.tc-talk{background:linear-gradient(135deg,#17806a 0%,#0e5246 100%);}
.train-card.tc-remind{background:linear-gradient(135deg,#2c4a6b 0%,#1d3550 100%);border:1px dashed rgba(212,162,78,0.55);}
.talk-opt{display:flex;align-items:center;gap:12px;width:100%;text-align:right;background:#18293E;border:1px solid #2A3D52;border-radius:12px;padding:13px 12px;margin-bottom:10px;cursor:pointer;font-family:inherit;color:#E8D9B8;}
.talk-opt:active{background:#1F3147;}
.talk-ic{font-size:26px;flex-shrink:0;line-height:1;}
.talk-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.talk-tx b{font-size:15.5px;font-weight:800;color:#E8D9B8;}
.talk-tx span{font-size:12.5px;line-height:1.5;color:#a0b8c8;}
.talk-go{color:#D4A24E;font-size:18px;flex-shrink:0;}
.talk-back{display:block;width:100%;margin-top:6px;padding:12px;}
.ls-card{padding:16px 14px 14px;}
.ls-play{display:block;margin:10px auto 12px;width:84px;height:84px;border-radius:50%;border:none;background:linear-gradient(135deg,#D4A24E 0%,#b8862e 100%);color:#0E1B2E;font-size:34px;cursor:pointer;box-shadow:0 4px 14px rgba(212,162,78,0.35);}
.ls-rates{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;}
.ls-rate{background:transparent;border:1px solid #3A5068;color:#a0b8c8;border-radius:16px;padding:6px 14px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;min-height:34px;}
.ls-rate.on{background:#D4A24E;border-color:#D4A24E;color:#0E1B2E;}
.ls-text{margin-top:10px;}
.ls-text .rep-ar{margin-top:4px;}
/* "עוד תרגילים" in "אימון ותרגול": the classroom-style exercises, folded (v474) */
.train-more{margin:4px 0 10px;}
.train-more>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:12px 14px;border:1px dashed rgba(122,154,181,0.55);border-radius:12px;color:#D4A24E;font-weight:800;font-size:15px;}
.train-more>summary::-webkit-details-marker{display:none;}
.train-more .tm-open{display:none;} .train-more[open] .tm-open{display:inline;} .train-more[open] .tm-closed{display:none;}
.train-more .tm-sub{color:#7a9ab5;font-size:12px;font-weight:600;}
.train-more[open]>summary{margin-bottom:10px;}
.remcal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#18293E;border:1px solid #2A3D52;border-radius:12px;padding:12px 14px;margin-bottom:14px;color:#E8D9B8;font-size:15px;font-weight:700;}
.remcal-row input{background:#0E1B2E;border:1px solid #3A5068;color:#E8D9B8;border-radius:8px;padding:8px 10px;font-family:inherit;font-size:17px;}
.remcal-note{color:#8fa9c0;font-size:12.5px;line-height:1.6;text-align:center;}

/* 🎒 "אני יוצא למשימה" (js/mission-prep.js, 2.12.2026) and the smaller training card under it */
.home-train-row{display:flex;align-items:center;gap:12px;background:#1F3147;border:1px solid #2A3D52;border-radius:14px;padding:12px 14px;margin-bottom:12px;cursor:pointer;}
.home-train-row .htr-t{color:#E8D9B8;font-size:16px;font-weight:800;line-height:1.2;}
.home-train-row .htr-s{color:#9fb4c8;font-size:12.5px;margin-top:2px;}
.mp-intro{color:#9fb4c8;font-size:14px;line-height:1.6;text-align:center;margin:0 4px 14px;}
.mp-card{display:flex;align-items:center;gap:12px;background:#1F3147;border:1px solid #2A3D52;border-radius:14px;padding:14px;margin-bottom:9px;cursor:pointer;}
.mp-card.mp-last{border-color:#D4A24E;}
.mp-card .mp-ic{font-size:28px;line-height:1;flex-shrink:0;}
.mp-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.mp-t b{color:#E8D9B8;font-size:17px;}
.mp-sub{color:#9fb4c8;font-size:12.5px;}
.mp-go{color:#a0b8c8;font-size:18px;flex-shrink:0;}
.mp-head{display:flex;align-items:center;justify-content:center;gap:8px;color:#E8D9B8;font-size:19px;margin:0 0 12px;}
.mp-head .mp-ic{font-size:26px;}
.mp-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:6px;}
.mp-btn{flex:1 1 30%;min-width:96px;background:rgba(212,162,78,0.15);border:1px solid #D4A24E;color:#D4A24E;border-radius:11px;padding:11px 6px;font-size:14px;font-weight:800;font-family:inherit;cursor:pointer;}
.mp-btn.mp-dl{background:#1D9E75;border-color:#1D9E75;color:#fff;}
.mp-dl-st{color:#1D9E75;font-size:13px;font-weight:700;text-align:center;min-height:18px;margin-bottom:8px;}
.mp-more{margin-bottom:12px;}
.mp-more > summary{cursor:pointer;color:#D4A24E;font-size:15px;font-weight:800;padding:10px 4px;list-style:none;}
.mp-more > summary::-webkit-details-marker{display:none;}
.mp-grp{margin-bottom:6px;border:1px solid #2A3D52;border-radius:11px;padding:0 10px;background:#1F3147;}
.mp-grp > summary{color:#E8D9B8;font-size:15px;}
.mp-grp[open]{padding-bottom:8px;}
.mp-cnt{display:inline-block;background:rgba(212,162,78,0.2);color:#D4A24E;border-radius:9px;padding:0 8px;font-size:12px;margin-right:6px;}
.mp-card.mp-kit{border:2px solid #D4A24E;background:rgba(212,162,78,0.12);margin-bottom:14px;}
.mp-kit-btn{flex-shrink:0;width:42px;height:42px;border-radius:50%;background:transparent;border:1px dashed #7a9ab5;color:#D4A24E;font-size:17px;cursor:pointer;font-family:inherit;padding:0;}
.mp-kit-btn.on{border:1px solid #1D9E75;background:rgba(29,158,117,0.15);color:#1D9E75;font-weight:900;}
.mp-kit-hint{color:#9fb4c8;font-size:12.5px;text-align:center;margin:2px 4px 10px;}
.mp-sec{color:#E8D9B8;font-size:15px;font-weight:800;margin:6px 2px 8px;}
.mp-scns{display:flex;flex-direction:column;gap:7px;}
.mp-scn{text-align:right;background:#1F3147;border:1px solid #2A3D52;color:#E8D9B8;border-radius:11px;padding:12px 14px;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;}
body.day-mode .home-train-row, body.day-mode .mp-card, body.day-mode .mp-scn{background:#fbf7ee;border-color:rgba(168,82,0,0.2);}
body.day-mode .home-train-row .htr-t, body.day-mode .mp-t b, body.day-mode .mp-head, body.day-mode .mp-sec, body.day-mode .mp-scn{color:#0e1b2e;}
body.day-mode .home-train-row .htr-s, body.day-mode .mp-sub, body.day-mode .mp-intro{color:#3a4a5c;}
body.day-mode .mp-btn{color:#8a5a00;}
body.day-mode .mp-btn.mp-dl{color:#fff;}
#tab-mission.mp-open .mp-pick{display:none;}
body.day-mode .mp-more > summary{color:#8a5a00;}
body.day-mode .mp-grp{background:#fbf7ee;border-color:rgba(168,82,0,0.2);}
body.day-mode .mp-grp > summary{color:#0e1b2e;}
body.day-mode .mp-cnt{color:#8a5a00;}
body.day-mode .mp-card.mp-kit{background:#fff3dc;border-color:#a85200;}
body.day-mode .mp-kit-hint{color:#3a4a5c;}
body.day-mode .mp-kit-btn{color:#8a5a00;border-color:#8a9aab;}
body.day-mode .mp-card.mp-last{border-color:#a85200;}
