/* Shared production timer cards. Producer's bottom timer strip is the source of truth. */
.timer-card,
.home-countdown{
  background:rgba(8,10,13,.95);
  border:1px solid rgba(52,56,70,.22);
  border-radius:18px;
  box-shadow:0 18px 36px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter:blur(12px);
  position:relative;
  min-width:0;
  overflow:hidden;
}

.timer-card{
  padding:14px 20px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:0;
}

body.page-foh .timer-card{
  min-height:0;
  height:auto;
}

.timer-card::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:1px;
  background:linear-gradient(180deg, transparent, rgba(60,65,80,.28), transparent);
}

.timer-card:first-child::before{display:none}

.timer-card.timer-system,
.timer-card[data-timer-card="service_elapsed"],
.home-countdown{
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.08), transparent 40%),
    rgba(8,14,26,.95);
  border-color:rgba(245,158,11,.14);
}

.timer-card.timer-segment,
.timer-card[data-timer-card="segment_elapsed"]{
  background:
    radial-gradient(circle at top center, rgba(249,115,22,.07), transparent 40%),
    rgba(8,10,13,.95);
  border-color:rgba(249,115,22,.16);
}

.timer-card.timer-trt,
.timer-card[data-timer-card="main_service_start"]{
  background:
    radial-gradient(circle at top right, rgba(249,115,22,.10), transparent 40%),
    rgba(8,14,26,.95);
  border-color:rgba(249,115,22,.20);
  box-shadow:0 24px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
}

.timer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-width:0;
}

.timer-type,
.timer-badge,
.home-countdown-label{
  width:max-content;
  max-width:100%;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:2px 7px;
  border-radius:4px;
  line-height:1.2;
}

.timer-type.system,
.timer-type.countdown,
.timer-badge,
.timer-card[data-timer-card="service_elapsed"] .timer-type,
.home-countdown-label{
  background:var(--amber-dim, rgba(245,158,11,.12));
  color:var(--amber, #f59e0b);
}

.timer-type.elapsed,
.timer-type.custom,
.timer-card[data-timer-card="segment_elapsed"] .timer-type{
  background:var(--orange-dim, rgba(249,115,22,.12));
  color:var(--brand-orange, #f97316);
}

.timer-card.timer-trt .timer-type,
.timer-card[data-timer-card="main_service_start"] .timer-type{
  background:var(--orange-dim, rgba(249,115,22,.12));
  color:var(--brand-orange, #f97316);
}

.timer-campus{
  min-width:0;
  color:var(--dim, #2e3a55);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.timer-name,
.home-countdown-sub{
  font-size:12px;
  font-weight:600;
  color:var(--muted, #5c6b8a);
  line-height:1.25;
}

.timer-main{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:72px;
}

.timer-display-block{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  flex:1;
}

.timer-glyph{
  position:relative;
  flex-shrink:0;
}

.timer-glyph-system{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(245,166,35,.35);
  box-shadow:inset 0 0 0 4px rgba(245,166,35,.06), 0 0 18px rgba(245,166,35,.08);
}

.timer-glyph-system::before,
.timer-glyph-system::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  border-radius:999px;
  background:#ffc14d;
  transform-origin:bottom center;
}

.timer-glyph-system::before{
  width:2px;
  height:11px;
  margin-left:-1px;
  margin-top:-11px;
  transform:rotate(0deg);
}

.timer-glyph-system::after{
  width:2px;
  height:8px;
  margin-left:-1px;
  margin-top:-8px;
  transform:rotate(55deg);
}

.timer-glyph-dot{
  position:absolute;
  left:50%;
  top:50%;
  width:6px;
  height:6px;
  margin-left:-3px;
  margin-top:-3px;
  border-radius:999px;
  background:#ffc14d;
  box-shadow:0 0 10px rgba(245,166,35,.22);
}

.timer-glyph-segment{
  width:60px;
  height:60px;
  border-radius:999px;
  background:
    radial-gradient(circle at center, rgba(10,10,12,1) 0 52%, transparent 53%),
    conic-gradient(from -90deg, #f97316 var(--timer-progress, 0%), rgba(249,115,22,.12) 0);
  box-shadow:0 0 0 1px rgba(249,115,22,.12), 0 0 20px rgba(249,115,22,.1);
}

.timer-glyph-segment::before{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:999px;
  border:1px solid rgba(249,115,22,.15);
  background:linear-gradient(180deg, rgba(10,10,12,.96), rgba(8,8,10,.96));
}

.timer-glyph-progress-value{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color:#fba97a;
  letter-spacing:-.02em;
  z-index:1;
}

.timer-num,
.timer-value,
.home-countdown-value{
  font-family:var(--sync-font-mono, "SF Mono", "Menlo", "Consolas", monospace);
  font-size:clamp(30px,3.1vw,38px);
  font-weight:300;
  letter-spacing:-.03em;
  line-height:1;
  color:var(--brand-orange, #f97316);
  text-shadow:0 0 30px rgba(249,115,22,.28),0 0 60px rgba(249,115,22,.12);
}

.timer-card.timer-trt .timer-num,
.timer-card[data-timer-card="main_service_start"] .timer-num{
  font-size:clamp(32px,3.4vw,42px);
  color:var(--brand-orange, #f97316);
  text-shadow:0 0 30px rgba(249,115,22,.40),0 0 60px rgba(249,115,22,.18);
}

.timer-card.timer-system .timer-num,
.timer-card[data-timer-card="service_elapsed"] .timer-num,
.timer-num.amber,
.home-countdown-value{
  color:var(--amber, #f59e0b);
  text-shadow:0 0 30px rgba(245,158,11,.35),0 0 60px rgba(245,158,11,.15);
}

.timer-card.timer-segment .timer-num,
.timer-card[data-timer-card="segment_elapsed"] .timer-num{
  color:var(--brand-orange, #f97316);
  text-shadow:0 0 30px rgba(249,115,22,.35),0 0 60px rgba(249,115,22,.15);
}

.timer-num.green{color:var(--green, #34d399)}
.timer-num.cyan{color:var(--brand-orange, #f97316)}
.timer-num.red{color:var(--red, #f87171)}

.timer-card[data-timer-card="service_elapsed"] .timer-num{
  color:var(--amber, #f59e0b);
  text-shadow:0 0 30px rgba(245,158,11,.35),0 0 60px rgba(245,158,11,.15);
}

.timer-card[data-timer-card="segment_elapsed"] .timer-num{
  color:var(--brand-orange, #f97316);
  text-shadow:0 0 30px rgba(249,115,22,.35),0 0 60px rgba(249,115,22,.15);
}

.timer-card[data-timer-card="main_service_start"] .timer-num{
  color:var(--brand-orange, #f97316);
  text-shadow:0 0 30px rgba(249,115,22,.40),0 0 60px rgba(249,115,22,.18);
}

.timer-num span.colon{
  color:var(--dim, #2e3a55);
  font-size:.75em;
  margin:0 1px;
  align-self:center;
  letter-spacing:.1em;
}

.timer-num span.seg{min-width:2ch;text-align:center}

body.page-foh .foh-timer-stack{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  grid-template-rows:repeat(3,minmax(0,1fr));
  overflow:visible;
}

body.page-foh .foh-timer-stack .timer-card{
  justify-content:center;
  overflow:visible;
  padding:10px 14px 12px;
}

body.page-foh .foh-timer-stack .timer-main{
  min-height:0;
  gap:12px;
}

body.page-foh .foh-timer-stack .timer-display-block{
  gap:5px;
}

body.page-foh .foh-timer-stack .timer-num{
  font-size:clamp(24px,2.6vw,34px);
}

body.page-foh .foh-timer-stack .timer-card[data-timer-card="main_service_start"] .timer-num{
  font-size:clamp(27px,2.9vw,38px);
}

body.page-foh .foh-timer-stack .timer-card[data-timer-card="service_elapsed"] .timer-num{
  font-size:clamp(26px,2.8vw,36px);
}

body.page-foh .foh-timer-stack .timer-glyph-system{
  width:38px;
  height:38px;
}

body.page-foh .foh-timer-stack .timer-glyph-segment{
  width:54px;
  height:54px;
}

body.page-foh .foh-timer-stack .timer-sparkline{
  width:88px;
  height:34px;
  gap:3px;
}

body.page-foh .foh-timer-stack .timer-sparkline span{
  width:6px;
}

.timer-btns{display:flex;gap:4px}
.timer-btn{
  height:20px;
  padding:0 7px;
  border-radius:4px;
  border:1px solid var(--line2, rgba(60,65,82,.34));
  background:transparent;
  color:var(--muted, #5c6b8a);
  font-size:10px;
  font-weight:600;
  cursor:pointer;
  transition:color .15s,background .15s;
}
.timer-btn:hover{color:var(--text, #dde5f5);background:var(--card2, rgba(14,22,38,.97))}

.timer-sparkline{
  width:120px;
  height:48px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:4px;
  margin-left:auto;
  opacity:.9;
}

.timer-sparkline span{
  width:8px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(249,115,22,.18), rgba(249,115,22,.90));
  box-shadow:0 0 10px rgba(249,115,22,.16);
}

.home-countdown{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}

.home-countdown-value{
  margin-top:0;
  font-size:clamp(44px,5vw,64px);
}

@media(max-width:1080px) and (min-width:769px){
  .timer-card{
    padding:8px 10px 10px;
    gap:4px;
  }
  .timer-type,.home-countdown-label{font-size:8px;padding:2px 5px}
  .timer-campus,.timer-name,.home-countdown-sub{font-size:9px}
  .timer-num,.home-countdown-value{font-size:clamp(18px,2.2vw,26px)}
  .timer-card.timer-trt .timer-num,
  .timer-card[data-timer-card="main_service_start"] .timer-num{font-size:clamp(20px,2.4vw,30px)}
  .timer-main{min-height:0;gap:10px}
  .timer-glyph,.timer-sparkline{display:none}
  body.page-foh .foh-timer-stack .timer-card{padding:7px 9px 8px}
  body.page-foh .foh-timer-stack .timer-num{font-size:clamp(18px,2.2vw,26px)}
  body.page-foh .foh-timer-stack .timer-card[data-timer-card="main_service_start"] .timer-num{font-size:clamp(20px,2.4vw,30px)}
  body.page-foh .foh-timer-stack .timer-card[data-timer-card="service_elapsed"] .timer-num{font-size:clamp(19px,2.3vw,28px)}
  body.page-foh .foh-timer-stack .timer-main{gap:10px}
}

@media(max-width:768px){
  .timer-card{
    padding:7px 9px 8px;
    gap:3px;
  }
  .timer-type,.home-countdown-label{font-size:8px;padding:1px 5px}
  .timer-campus,.timer-name,.home-countdown-sub{font-size:9px}
  .timer-num,.home-countdown-value{font-size:clamp(17px,4vw,26px)}
  .timer-card.timer-trt .timer-num,
  .timer-card[data-timer-card="main_service_start"] .timer-num{font-size:clamp(18px,4.4vw,28px)}
  .timer-main{min-height:0;gap:8px}
  .timer-glyph,.timer-sparkline{display:none}
  body.page-foh .foh-timer-stack .timer-card{padding:6px 8px 7px}
  body.page-foh .foh-timer-stack .timer-num{font-size:clamp(17px,4vw,26px)}
  body.page-foh .foh-timer-stack .timer-card[data-timer-card="main_service_start"] .timer-num{font-size:clamp(18px,4.4vw,28px)}
  body.page-foh .foh-timer-stack .timer-card[data-timer-card="service_elapsed"] .timer-num{font-size:clamp(18px,4.2vw,27px)}
  body.page-foh .foh-timer-stack .timer-main{gap:8px}
}
