/* Family Command Center v1.4.7t — adaptive Standby prep awareness layer.
   Adds compact six-slot Jewish notices + holiday action awareness without replacing existing Standby content. */

/* Retire the older full-width/animated Standby observance presentation only.
   Calendar/Family surfaces keep their existing observance rendering. */
#fccSafeStandby #fccObservanceTiles,
#fccSafeStandby #fccSeasonalJewishAccent,
#fccSafeStandby #fccSeasonalNotice,
#fcc-rh-standby-badge{display:none!important}
#fccSafeStandby .fcc-observance-tile,
#fccSafeStandby .fcc-observance-tile:after{animation:none!important}

#fccSafeStandby .fcc-card{position:relative}
#fccSafeStandby .fcc-card.fcc-standby-awareness{width:min(1500px,100%);padding-left:210px;padding-right:210px}

.fcc-standby-notice-rail{position:absolute;top:20px;width:178px;display:flex;flex-direction:column;gap:10px;z-index:25;pointer-events:none}
.fcc-standby-notice-rail.left{left:18px}.fcc-standby-notice-rail.right{right:18px}
.fcc-standby-notice-pill{pointer-events:auto;width:100%;min-height:48px;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:9px 13px;box-sizing:border-box;color:#fff;background:rgba(30,41,59,.88);box-shadow:0 7px 22px rgba(0,0,0,.28);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);text-align:left;cursor:pointer;display:flex;align-items:center;gap:9px;animation:none!important;transition:transform .14s ease,border-color .14s ease}
.fcc-standby-notice-pill:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.42)}
.fcc-standby-notice-pill:active{transform:scale(.985)}
.fcc-standby-notice-pill .icon{font-size:20px;flex:0 0 auto;line-height:1}.fcc-standby-notice-pill .copy{min-width:0}.fcc-standby-notice-pill b{display:block;font-size:13px;line-height:1.08;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fcc-standby-notice-pill small{display:block;margin-top:3px;font-size:9px;line-height:1.1;font-weight:850;letter-spacing:.04em;text-transform:uppercase;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcc-standby-notice-pill.selichos{background:linear-gradient(135deg,rgba(73,48,123,.92),rgba(98,61,145,.90));border-color:rgba(196,146,255,.46)}
.fcc-standby-notice-pill.shofar{background:linear-gradient(135deg,rgba(86,54,10,.92),rgba(115,74,14,.90));border-color:rgba(251,191,36,.48);color:#fde68a}
.fcc-standby-notice-pill.yahrzeit,.fcc-standby-notice-pill.yizkor{background:linear-gradient(135deg,rgba(36,36,43,.94),rgba(74,74,84,.92));border-color:rgba(212,212,216,.36)}
.fcc-standby-notice-pill.eruv,.fcc-standby-notice-pill.lekach{background:linear-gradient(135deg,rgba(120,53,15,.94),rgba(180,83,9,.90));border-color:rgba(251,146,60,.48)}
.fcc-standby-notice-pill.birchas{background:linear-gradient(135deg,rgba(30,64,175,.92),rgba(37,99,235,.88));border-color:rgba(147,197,253,.48)}
.fcc-standby-notice-pill.machatzis{background:linear-gradient(135deg,rgba(6,95,70,.94),rgba(5,150,105,.86));border-color:rgba(110,231,183,.45)}
.fcc-standby-notice-pill.tashlich{background:linear-gradient(135deg,rgba(14,116,144,.92),rgba(8,145,178,.88));border-color:rgba(103,232,249,.42)}
.fcc-standby-notice-pill.other{background:linear-gradient(135deg,rgba(55,65,81,.94),rgba(75,85,99,.90))}

#fccStandbyHolidayCountdown{display:none;margin:2px auto 8px;max-width:440px;border:1px solid rgba(251,191,36,.36);background:rgba(96,62,10,.28);border-radius:15px;padding:8px 16px;color:#fff7ed;font-weight:950;font-size:14px;line-height:1.15;box-sizing:border-box}
#fccStandbyHolidayCountdown.fcc-show{display:block}#fccStandbyHolidayCountdown small{display:block;margin-top:3px;font-size:9px;font-weight:750;color:#fde68a}

#fccStandbyHolidayActions{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:5px auto 10px;width:100%;max-width:1000px;text-align:left}
#fccStandbyHolidayActions.fcc-show{display:grid}.fcc-standby-action{border:1px solid rgba(255,255,255,.20);border-radius:18px;padding:13px 15px;min-height:72px;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.22);cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;text-align:left;animation:none!important}
.fcc-standby-action .aicon{font-size:29px}.fcc-standby-action b{display:block;font-size:16px;line-height:1.05;font-weight:1000}.fcc-standby-action small{display:block;margin-top:4px;font-size:10px;line-height:1.2;color:rgba(255,255,255,.72);font-weight:750}.fcc-standby-action .arrow{font-size:25px;font-weight:900;opacity:.82}.fcc-standby-action.cook{background:linear-gradient(135deg,rgba(94,45,12,.92),rgba(124,54,10,.82));border-color:rgba(251,146,60,.46)}.fcc-standby-action.shop{background:linear-gradient(135deg,rgba(4,72,50,.94),rgba(5,98,69,.84));border-color:rgba(74,222,128,.42)}.fcc-standby-action.menu{background:linear-gradient(135deg,rgba(59,31,91,.94),rgba(76,29,149,.82));border-color:rgba(192,132,252,.44)}

.fcc-standby-awareness .fcc-grid{margin-top:5px;margin-bottom:8px}.fcc-standby-awareness .fcc-learning-grid{margin-top:6px;margin-bottom:7px;gap:8px}.fcc-standby-awareness .fcc-learn-card{padding-top:10px;padding-bottom:10px}.fcc-standby-awareness .fcc-hillel{margin-top:7px;padding-top:9px}

#fccStandbyNoticeModal{position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;color:#fff}#fccStandbyNoticeModal[hidden]{display:none!important}.fcc-snm-shell{width:min(650px,100%);max-height:min(760px,88vh);overflow:auto;background:#10151d;border:1px solid rgba(255,255,255,.18);border-radius:26px;padding:20px;box-shadow:0 26px 90px rgba(0,0,0,.6);text-align:left}.fcc-snm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.10);padding-bottom:12px;margin-bottom:12px}.fcc-snm-head h2{margin:0;font-size:24px}.fcc-snm-close{width:46px;height:46px;border:0;border-radius:50%;background:#283140;color:#fff;font-size:26px;cursor:pointer}.fcc-snm-item{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);border-radius:16px;padding:13px 14px;margin:10px 0}.fcc-snm-item b{font-size:17px}.fcc-snm-item small{display:block;color:#cbd5e1;margin-top:4px;line-height:1.35}.fcc-snm-item button{margin-top:9px;border:1px solid rgba(255,255,255,.3);background:#1e293b;color:#fff;border-radius:999px;padding:7px 12px;font-weight:900}

/* Same rails on every existing Standby family: weekday, Erev Shabbos/YT, holy-day, Havdalah. */
#fccSafeStandby.fcc-holy-auto .fcc-standby-notice-rail,
#fccSafeStandby.fcc-erev-prep .fcc-standby-notice-rail{top:18px}
#fccSafeStandby.fcc-holy-auto .fcc-card.fcc-standby-awareness{padding-left:210px!important;padding-right:210px!important}

@media(max-width:1020px){
  #fccSafeStandby .fcc-card.fcc-standby-awareness{padding-left:18px;padding-right:18px;padding-top:126px}
  #fccSafeStandby.fcc-holy-auto .fcc-card.fcc-standby-awareness{padding-left:18px!important;padding-right:18px!important;padding-top:126px!important}
  .fcc-standby-notice-rail{top:14px!important;width:calc(50% - 28px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.fcc-standby-notice-rail.left{left:18px}.fcc-standby-notice-rail.right{right:18px;top:70px!important}.fcc-standby-notice-pill{min-height:46px;padding:7px 10px}.fcc-standby-notice-pill .icon{font-size:16px}.fcc-standby-notice-pill b{font-size:11px}.fcc-standby-notice-pill small{font-size:8px}
}
@media(max-width:700px){
  #fccSafeStandby .fcc-card.fcc-standby-awareness{padding-top:116px}
  #fccSafeStandby.fcc-holy-auto .fcc-card.fcc-standby-awareness{padding-top:116px!important}
  .fcc-standby-notice-rail{width:calc(100% - 28px);left:14px!important;right:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))}.fcc-standby-notice-rail.right{top:64px!important}.fcc-standby-notice-pill{border-radius:14px}.fcc-standby-notice-pill .copy small{display:none}.fcc-standby-notice-pill b{font-size:10px}.fcc-standby-notice-pill .icon{font-size:15px}
  #fccStandbyHolidayActions{grid-template-columns:1fr;gap:7px}.fcc-standby-action{min-height:52px;padding:9px 12px}.fcc-standby-action .aicon{font-size:23px}.fcc-standby-action b{font-size:14px}
}

/* v1.4.7t — adaptive Food Prep + named event Prep tiles. */
.fcc-standby-action.prep{background:linear-gradient(135deg,rgba(55,35,95,.94),rgba(67,56,202,.82));border-color:rgba(167,139,250,.46)}
.fcc-standby-action.placeholder{min-height:72px;background:rgba(255,255,255,.025);border:1px dashed rgba(255,255,255,.12);box-shadow:none;cursor:default;pointer-events:none}
.fcc-standby-action .copy{min-width:0}
.fcc-action-title-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.fcc-action-title-row b{min-width:0}
.fcc-event-days{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.11);border-radius:999px;padding:3px 6px;font-size:8px;line-height:1;font-weight:1000;letter-spacing:.08em;color:rgba(255,255,255,.88);white-space:nowrap}

#fccStandbyPrepModal{position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.74);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;color:#fff}
#fccStandbyPrepModal[hidden]{display:none!important}
.fcc-spm-shell{width:min(720px,100%);max-height:min(800px,90vh);overflow:auto;background:#10151d;border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:22px;box-sizing:border-box;box-shadow:0 28px 100px rgba(0,0,0,.66);text-align:left}
.fcc-spm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.11)}
.fcc-spm-kicker{font-size:10px;line-height:1;font-weight:1000;letter-spacing:.22em;color:#fbbf24;margin-bottom:7px}
.fcc-spm-head h2{margin:0;font-size:28px;line-height:1.05;font-weight:1000;color:#fff}
#fccSpmMeta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
#fccSpmMeta span{display:inline-flex;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.06);border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;color:#cbd5e1}
.fcc-spm-close{width:48px;height:48px;flex:0 0 auto;border:0;border-radius:50%;background:#283140;color:#fff;font-size:28px;font-weight:900;cursor:pointer}
.fcc-spm-progress{border:1px solid rgba(251,191,36,.20);background:rgba(251,191,36,.06);border-radius:16px;padding:12px 13px;margin-bottom:12px}
.fcc-spm-progress b{font-size:12px;color:#fde68a}
.fcc-spm-progress>div{height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:8px}.fcc-spm-progress i{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#facc15);border-radius:999px}
.fcc-spm-list{display:grid;gap:8px}
.fcc-spm-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);border-radius:15px;padding:11px 12px;cursor:pointer}
.fcc-spm-row:hover{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.065)}
.fcc-spm-row input{width:20px;height:20px;accent-color:#f59e0b}.fcc-spm-row span{font-size:14px;line-height:1.3;color:#f8fafc;font-weight:750}.fcc-spm-row.done span{text-decoration:line-through;color:#94a3b8}.fcc-spm-row button{width:28px;height:28px;border:0;border-radius:50%;background:rgba(244,63,94,.12);color:#fda4af;font-size:19px;cursor:pointer}
.fcc-spm-empty{border:1px dashed rgba(255,255,255,.16);border-radius:15px;padding:18px;color:#94a3b8;font-size:13px;text-align:center}
.fcc-spm-add{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:13px}.fcc-spm-add input{min-width:0;border:1px solid rgba(255,255,255,.16);background:#0b1017;color:#fff;border-radius:13px;padding:11px 12px;font-size:14px;outline:none}.fcc-spm-add input:focus{border-color:rgba(251,191,36,.62)}.fcc-spm-add button{border:1px solid rgba(251,191,36,.45);background:#92400e;color:#fff7ed;border-radius:13px;padding:10px 15px;font-weight:950;cursor:pointer}

@media(max-width:700px){
  .fcc-standby-action.placeholder{min-height:40px}
  .fcc-event-days{font-size:7px;padding:3px 5px}
  .fcc-spm-shell{padding:16px;border-radius:22px}.fcc-spm-head h2{font-size:22px}.fcc-spm-close{width:42px;height:42px}.fcc-spm-row span{font-size:13px}.fcc-spm-add{grid-template-columns:1fr}.fcc-spm-add button{width:100%}
}


/* v1.4.7x — 65-inch / 4K Standby viewport hardening.
   Earlier density work could leave the public Standby occupying only part of a very wide display,
   exposing the private dashboard background beside it. The overlay itself must always own the
   entire viewport; density is achieved inside the card, never by shrinking the overlay. */
@media (min-width:1600px){
  #fccSafeStandby.fcc-safe-standby{
    position:fixed!important;
    top:0!important;right:auto!important;bottom:auto!important;left:0!important;
    inset:auto!important;
    width:100vw!important;height:100vh!important;
    min-width:100vw!important;min-height:100vh!important;
    max-width:none!important;max-height:none!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  #fccSafeStandby .fcc-card.fcc-standby-awareness{
    width:calc(100vw - 36px)!important;
    max-width:none!important;
    height:calc(100vh - 36px)!important;
    max-height:calc(100vh - 36px)!important;
    margin:auto!important;
    box-sizing:border-box!important;
    padding-left:clamp(190px,10vw,320px)!important;
    padding-right:clamp(190px,10vw,320px)!important;
  }
  #fccSafeStandby #fccTiles,
  #fccSafeStandby .fcc-learning-grid{
    width:100%!important;
    max-width:2200px!important;
  }
}

/* At ultra-wide 4K widths, use the screen rather than leaving a narrow 1500px island. */
@media (min-width:2300px){
  #fccSafeStandby .fcc-card.fcc-standby-awareness{
    width:calc(100vw - 48px)!important;
    height:calc(100vh - 48px)!important;
    max-height:calc(100vh - 48px)!important;
    padding-left:clamp(220px,9vw,360px)!important;
    padding-right:clamp(220px,9vw,360px)!important;
  }
  #fccSafeStandby #fccTiles,
  #fccSafeStandby .fcc-learning-grid{max-width:2600px!important}
}

/* v1.4.7ad — 65-inch Standby full-screen / holy-day layout repair.
   The wall display must use the whole viewport, keep Food Prep / Prep / Guests visible,
   and allow the Shabbos/Yom Tov page to scroll instead of clipping lower tiles. */
@media (min-width:1600px){
  #fccSafeStandby.fcc-safe-standby,
  #fccSafeStandby.fcc-safe-standby.fcc-holy-auto,
  #fccSafeStandby.fcc-safe-standby.fcc-erev-prep{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    min-width:100vw!important;
    min-height:100vh!important;
    max-width:none!important;
    max-height:none!important;
    padding:8px!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
    box-sizing:border-box!important;
  }

  #fccSafeStandby .fcc-card,
  #fccSafeStandby.fcc-holy-auto .fcc-card,
  #fccSafeStandby.fcc-erev-prep .fcc-card{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    min-height:calc(100vh - 16px)!important;
    height:auto!important;
    max-height:none!important;
    margin:0 auto!important;
    overflow:visible!important;
    flex:0 0 auto!important;
    border-radius:24px!important;
    box-sizing:border-box!important;
  }

  #fccSafeStandby .fcc-card.fcc-standby-awareness,
  #fccSafeStandby.fcc-holy-auto .fcc-card.fcc-standby-awareness{
    width:calc(100vw - 16px)!important;
    height:auto!important;
    max-height:none!important;
    padding:18px clamp(210px,8vw,310px) 28px!important;
  }

  /* The three universal action tiles must remain visible even if the modern
     awareness controller failed and the conservative TV fallback created them. */
  #fccSafeStandby #fccStandbyHolidayActions:not(:empty){
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    max-width:none!important;
    gap:16px!important;
    margin:12px auto 16px!important;
  }
  #fccSafeStandby .fcc-standby-action{
    min-height:92px!important;
    padding:16px 20px!important;
    border-radius:20px!important;
  }
  #fccSafeStandby .fcc-standby-action .aicon{font-size:34px!important}
  #fccSafeStandby .fcc-standby-action b{font-size:clamp(18px,1.05vw,30px)!important}
  #fccSafeStandby .fcc-standby-action small{font-size:clamp(11px,.65vw,18px)!important;line-height:1.25!important}
  #fccSafeStandby .fcc-standby-action .arrow{font-size:30px!important}

  /* Use the television width for the native Shabbos/Yom Tov tiles instead of
     retaining the old 920px tablet island. Auto-fit handles 2 Shabbos tiles or
     3 Yom Tov tiles without leaving them tiny. */
  #fccSafeStandby #fccTiles,
  #fccSafeStandby.fcc-holy-auto #fccTiles,
  #fccSafeStandby.fcc-erev-prep #fccTiles{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;
    gap:16px!important;
    margin:14px auto 18px!important;
  }
  #fccSafeStandby .fcc-tile,
  #fccSafeStandby.fcc-holy-auto .fcc-tile{
    min-height:96px!important;
    padding:18px 20px!important;
    border-radius:20px!important;
  }
  #fccSafeStandby .fcc-tile b{font-size:clamp(12px,.72vw,20px)!important}
  #fccSafeStandby .fcc-tile span{font-size:clamp(22px,1.35vw,38px)!important}
  #fccSafeStandby .fcc-tile.fcc-schedule span{font-size:clamp(17px,1vw,28px)!important}

  #fccSafeStandby .fcc-learning-grid,
  #fccSafeStandby.fcc-holy-auto .fcc-learning-grid{
    width:100%!important;
    max-width:none!important;
    gap:14px!important;
    margin:14px auto 16px!important;
  }
  #fccSafeStandby .fcc-learn-card,
  #fccSafeStandby.fcc-holy-auto .fcc-learn-card{
    min-height:100px!important;
    padding:16px 18px!important;
  }
  #fccSafeStandby .fcc-learn-card b{font-size:clamp(12px,.7vw,19px)!important}
  #fccSafeStandby .fcc-learn-card div,
  #fccSafeStandby.fcc-holy-auto .fcc-learn-card div{
    font-size:clamp(17px,1vw,28px)!important;
    line-height:1.32!important;
  }

  #fccSafeStandby .fcc-label{font-size:clamp(13px,.78vw,22px)!important;margin-top:4px!important}
  #fccSafeStandby .fcc-clock{font-size:clamp(86px,5.2vw,160px)!important;margin-bottom:12px!important}
  #fccSafeStandby .fcc-date{font-size:clamp(24px,1.45vw,44px)!important;max-width:none!important;margin-bottom:14px!important}
  #fccSafeStandby #fccStandbyHolidayCountdown{max-width:760px!important;font-size:clamp(16px,.9vw,25px)!important;padding:11px 20px!important}
  #fccSafeStandby #fccStandbyHolidayCountdown small{font-size:clamp(10px,.58vw,16px)!important}

  .fcc-standby-notice-rail{width:clamp(210px,10vw,300px)!important;top:18px!important;gap:12px!important}
  .fcc-standby-notice-rail.left{left:18px!important}
  .fcc-standby-notice-rail.right{right:18px!important}
  .fcc-standby-notice-pill{min-height:62px!important;padding:11px 15px!important}
  .fcc-standby-notice-pill .icon{font-size:24px!important}
  .fcc-standby-notice-pill b{font-size:clamp(14px,.78vw,21px)!important}
  .fcc-standby-notice-pill small{font-size:clamp(9px,.52vw,14px)!important}

  /* Keep the lower attribution visible but do not force the full page to fit
     vertically. The shell itself can scroll on the TV when content exceeds 100vh. */
  #fccSafeStandby .fcc-source{font-size:clamp(10px,.56vw,15px)!important;margin:12px 0 4px!important}
}

/* Some television browsers report a 1280–1536 CSS-pixel viewport even on a
   65-inch panel. Do not apply the oversized typography there, but still make
   the action row and holy-day tiles use the available width and remain visible. */
@media (min-width:1200px) and (max-width:1599px) and (min-height:650px){
  #fccSafeStandby #fccStandbyHolidayActions:not(:empty){display:grid!important;width:100%!important;max-width:none!important}
  #fccSafeStandby.fcc-holy-auto #fccTiles{max-width:none!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}
}

/* v1.4.7ae — 65-inch wall-display simplification and readability.
   Only applies to large TV-class viewports. Phones/tablets keep the existing UI. */
@media (min-width:1200px) and (min-height:650px){
  /* The TV is a glanceable clock/status board, not the interactive prep dashboard. */
  #fccSafeStandby #fccStandbyHolidayActions,
  #fccSafeStandby #fccStandbyHolidayActions:not(:empty),
  #fccSafeStandby #fccStandbyHolidayActions.fcc-show,
  #fccSafeStandby #fccStandbyHolidayCountdown{
    display:none!important;
  }

  /* Keep the actual current time unmistakable because this screen is the room clock. */
  #fccSafeStandby .fcc-clock{
    font-size:clamp(92px,7vw,164px)!important;
    line-height:.88!important;
    margin:2px auto 12px!important;
    letter-spacing:-.035em!important;
    text-shadow:0 4px 30px rgba(255,255,255,.18)!important;
  }
  #fccSafeStandby .fcc-label{
    font-size:clamp(15px,1vw,24px)!important;
    letter-spacing:.34em!important;
    margin-bottom:8px!important;
  }
  #fccSafeStandby .fcc-date{
    font-size:clamp(23px,1.55vw,38px)!important;
    line-height:1.18!important;
    margin-bottom:16px!important;
    font-weight:900!important;
  }

  /* Stronger, easier-to-read native status tiles. */
  #fccSafeStandby .fcc-tile{
    background:rgba(255,255,255,.095)!important;
    border-color:rgba(255,255,255,.22)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
  }
  #fccSafeStandby .fcc-tile b{
    font-size:clamp(14px,.95vw,22px)!important;
    letter-spacing:.14em!important;
    color:#bfdbfe!important;
  }
  #fccSafeStandby .fcc-tile span,
  #fccSafeStandby .fcc-tile.fcc-schedule span{
    font-size:clamp(21px,1.35vw,34px)!important;
    line-height:1.24!important;
    font-weight:850!important;
  }

  /* The holiday identity should visually anchor the row. */
  #fccSafeStandby .fcc-holiday-identity{
    background:linear-gradient(135deg,rgba(120,53,15,.96),rgba(180,83,9,.82))!important;
    border:2px solid rgba(251,191,36,.78)!important;
    box-shadow:0 0 0 2px rgba(251,191,36,.12),0 12px 32px rgba(0,0,0,.34)!important;
  }
  #fccSafeStandby .fcc-holiday-identity b{color:#fde68a!important}
  #fccSafeStandby .fcc-holiday-identity span{color:#fff7ed!important;font-weight:1000!important}

  /* Candle lighting and Havdalah are key glance-at-the-TV information. */
  #fccSafeStandby .fcc-tv-times-card,
  #fccSafeStandby .fcc-tv-time-highlight{
    border:2px solid rgba(251,191,36,.55)!important;
    background:linear-gradient(135deg,rgba(17,24,39,.98),rgba(30,41,59,.94))!important;
  }
  #fccSafeStandby .fcc-tv-times-card .fcc-times-line{
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
    gap:14px!important;
  }
  #fccSafeStandby .fcc-tv-times-card .fcc-times-line>div{
    background:rgba(245,158,11,.10)!important;
    border:1px solid rgba(251,191,36,.28)!important;
    border-radius:16px!important;
    padding:13px 15px!important;
  }
  #fccSafeStandby .fcc-tv-times-card .fcc-times-line em{
    color:#93c5fd!important;
    font-size:clamp(12px,.75vw,18px)!important;
    margin-bottom:7px!important;
  }
  #fccSafeStandby .fcc-tv-times-card .fcc-times-line strong{
    color:#fef3c7!important;
    font-size:clamp(25px,1.65vw,42px)!important;
    line-height:1.05!important;
    text-shadow:0 2px 16px rgba(251,191,36,.16)!important;
  }
  #fccSafeStandby .fcc-tv-time-highlight b{color:#fde68a!important}
  #fccSafeStandby .fcc-tv-time-highlight span{
    color:#fff!important;
    font-size:clamp(27px,1.75vw,44px)!important;
    font-weight:1000!important;
    text-align:center!important;
  }

  /* The lower learning cards must remain readable across the room. */
  #fccSafeStandby .fcc-learning-grid{gap:16px!important}
  #fccSafeStandby .fcc-learn-card{
    background:rgba(255,255,255,.085)!important;
    border-color:rgba(255,255,255,.18)!important;
    padding:18px 20px!important;
  }
  #fccSafeStandby .fcc-learn-card b{
    font-size:clamp(14px,.85vw,21px)!important;
    letter-spacing:.14em!important;
  }
  #fccSafeStandby .fcc-learn-card div{
    font-size:clamp(20px,1.18vw,31px)!important;
    line-height:1.34!important;
  }

  /* Existing observance rails are replaced on the TV by a simpler ritual header. */
  #fccSafeStandby .fcc-standby-notice-rail{display:none!important}
  #fccSafeStandby .fcc-card.fcc-tv-65-card{position:relative!important}
  #fccSafeStandby .fcc-tv-ritual-rail{
    position:absolute!important;
    top:24px!important;
    z-index:40!important;
    width:clamp(210px,16vw,360px)!important;
    display:none;
    flex-direction:column;
    gap:12px;
    pointer-events:none;
  }
  #fccSafeStandby .fcc-tv-ritual-rail.left{left:24px!important}
  #fccSafeStandby .fcc-tv-ritual-rail.right{right:24px!important}
  #fccSafeStandby .fcc-tv-ritual{
    min-height:58px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.24);
    background:rgba(15,23,42,.91);
    box-shadow:0 8px 24px rgba(0,0,0,.28);
    color:#fff;
    text-align:left;
    box-sizing:border-box;
  }
  #fccSafeStandby .fcc-tv-ritual .icon{font-size:clamp(24px,1.7vw,40px);line-height:1;flex:0 0 auto}
  #fccSafeStandby .fcc-tv-ritual b{display:block;font-size:clamp(16px,1vw,25px);line-height:1.05;font-weight:1000}
  #fccSafeStandby .fcc-tv-ritual small{display:block;margin-top:4px;font-size:clamp(10px,.62vw,15px);font-weight:800;letter-spacing:.04em;text-transform:uppercase;opacity:.78}
  #fccSafeStandby .fcc-tv-ritual.shofar{background:linear-gradient(135deg,rgba(92,58,10,.96),rgba(126,79,12,.90));border-color:rgba(251,191,36,.54);color:#fde68a}
  #fccSafeStandby .fcc-tv-ritual.apple{background:linear-gradient(135deg,rgba(127,29,29,.95),rgba(153,27,27,.88));border-color:rgba(252,165,165,.40)}
  #fccSafeStandby .fcc-tv-ritual.pomegranate{background:linear-gradient(135deg,rgba(136,19,55,.96),rgba(190,24,93,.86));border-color:rgba(251,113,133,.46)}
  #fccSafeStandby .fcc-tv-ritual.candle{background:linear-gradient(135deg,rgba(39,39,42,.97),rgba(82,82,91,.91));border-color:rgba(212,212,216,.36)}
  #fccSafeStandby .fcc-tv-ritual.machzor{background:linear-gradient(135deg,rgba(49,46,129,.96),rgba(67,56,202,.88));border-color:rgba(165,180,252,.45)}
  #fccSafeStandby .fcc-tv-ritual.shehecheyanu{background:linear-gradient(135deg,rgba(67,56,202,.96),rgba(109,40,217,.88));border-color:rgba(196,181,253,.50)}

}

/* Many TV browsers expose only ~1280 CSS pixels despite a 65-inch panel.
   Give that viewport the same readability treatment without changing phones/tablets. */
@media (min-width:1200px) and (max-width:1599px) and (min-height:650px){
  #fccSafeStandby .fcc-card,
  #fccSafeStandby.fcc-holy-auto .fcc-card,
  #fccSafeStandby.fcc-erev-prep .fcc-card{
    width:calc(100vw - 12px)!important;
    max-width:none!important;
    min-height:calc(100vh - 12px)!important;
    height:auto!important;
    margin:0 auto!important;
    padding:14px 18px 24px!important;
  }
  #fccSafeStandby.fcc-safe-standby,
  #fccSafeStandby.fcc-safe-standby.fcc-holy-auto,
  #fccSafeStandby.fcc-safe-standby.fcc-erev-prep{
    position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;
    padding:6px!important;align-items:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  #fccSafeStandby #fccTiles,
  #fccSafeStandby .fcc-learning-grid{width:100%!important;max-width:none!important}
}
@media (min-width:1200px) and (min-height:650px){
  /* Reserve the outer header lanes for the four ritual reminders without
     sacrificing full-width tiles below. */
  #fccSafeStandby .fcc-card.fcc-tv-65-card > .fcc-label,
  #fccSafeStandby .fcc-card.fcc-tv-65-card > .fcc-clock,
  #fccSafeStandby .fcc-card.fcc-tv-65-card > .fcc-date{
    width:64%!important;
    max-width:64%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* v1.4.7aj — Rosh Hashanah TV ritual-state cues. */
@media (min-width:1200px) and (min-height:650px){
  #fccSafeStandby .fcc-tv-ritual.no-shofar{
    filter:saturate(.45);
    opacity:.82;
    border-color:rgba(248,113,113,.72)!important;
    box-shadow:0 0 0 2px rgba(239,68,68,.18),0 8px 24px rgba(0,0,0,.28)!important;
  }
  #fccSafeStandby .fcc-tv-ritual.tashlich{
    background:linear-gradient(135deg,rgba(3,105,161,.96),rgba(14,116,144,.88));
    border-color:rgba(125,211,252,.55);
    color:#e0f2fe;
  }
}

/* v1.4.7al — ritual-rail fallback for TV browsers that report a reduced CSS viewport.
   This does not target phones/tablets; it requires a wide landscape viewport. */
@media (min-width:960px) and (min-height:540px){
  #fccSafeStandby .fcc-card.fcc-tv-65-card{position:relative!important}
  #fccSafeStandby .fcc-tv-ritual-rail{
    position:absolute!important;
    top:18px!important;
    z-index:70!important;
    width:clamp(190px,17vw,330px)!important;
    flex-direction:column!important;
    gap:9px!important;
    pointer-events:none!important;
  }
  #fccSafeStandby .fcc-tv-ritual-rail.left{left:18px!important}
  #fccSafeStandby .fcc-tv-ritual-rail.right{right:18px!important}
  #fccSafeStandby .fcc-tv-ritual{
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:9px 12px!important;
    border-radius:16px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    background:rgba(15,23,42,.94)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
    color:#fff!important;
    text-align:left!important;
    box-sizing:border-box!important;
  }
  #fccSafeStandby .fcc-tv-ritual .icon{font-size:clamp(22px,1.7vw,36px)!important;line-height:1!important;flex:0 0 auto!important}
  #fccSafeStandby .fcc-tv-ritual b{display:block!important;font-size:clamp(15px,1vw,23px)!important;line-height:1.05!important;font-weight:1000!important}
  #fccSafeStandby .fcc-tv-ritual small{display:block!important;margin-top:3px!important;font-size:clamp(9px,.65vw,14px)!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;opacity:.8!important}
  #fccSafeStandby .fcc-tv-ritual.shofar{background:linear-gradient(135deg,rgba(92,58,10,.96),rgba(126,79,12,.90))!important;border-color:rgba(251,191,36,.54)!important;color:#fde68a!important}
  #fccSafeStandby .fcc-tv-ritual.apple{background:linear-gradient(135deg,rgba(127,29,29,.95),rgba(153,27,27,.88))!important;border-color:rgba(252,165,165,.40)!important}
  #fccSafeStandby .fcc-tv-ritual.pomegranate{background:linear-gradient(135deg,rgba(136,19,55,.96),rgba(190,24,93,.86))!important;border-color:rgba(251,113,133,.46)!important}
  #fccSafeStandby .fcc-tv-ritual.candle{background:linear-gradient(135deg,rgba(39,39,42,.97),rgba(82,82,91,.91))!important;border-color:rgba(212,212,216,.36)!important}
  #fccSafeStandby .fcc-tv-ritual.machzor{background:linear-gradient(135deg,rgba(49,46,129,.96),rgba(67,56,202,.88))!important;border-color:rgba(165,180,252,.45)!important}
  #fccSafeStandby .fcc-tv-ritual.shehecheyanu{background:linear-gradient(135deg,rgba(67,56,202,.96),rgba(109,40,217,.88))!important;border-color:rgba(196,181,253,.50)!important}
  #fccSafeStandby .fcc-tv-ritual.no-shofar{background:linear-gradient(135deg,rgba(69,10,10,.97),rgba(127,29,29,.92))!important;border-color:rgba(248,113,113,.62)!important;color:#fecaca!important}
  #fccSafeStandby .fcc-tv-ritual.tashlich{background:linear-gradient(135deg,rgba(7,89,133,.96),rgba(14,116,144,.90))!important;border-color:rgba(103,232,249,.48)!important}
}
