/* ============================================================
   TWEAK MODES — expressive theme variants
   ============================================================ */

/* ─────────── BRAND MODE: STEALTH (Black Ops) ─────────── */
.screen[data-brand="stealth"] {
  --kfc-bone: #0E0E10;
}
.screen[data-brand="stealth"] .home {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(228,0,43,0.25), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(240,165,0,0.10), transparent 50%),
    linear-gradient(180deg, #161618 0%, #08080A 100%);
}
.screen[data-brand="stealth"] .home::before {
  background-image:
    linear-gradient(rgba(228,0,43,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,0,43,0.06) 1px, transparent 1px);
}
.screen[data-brand="stealth"] .tile {
  background: #18181C; border-color: #2a2a30;
  box-shadow: 0 6px 0 rgba(0,0,0,0.4), 0 14px 30px -8px rgba(228,0,43,0.15);
}
.screen[data-brand="stealth"] .tile .top {
  background: #18181C;
}
.screen[data-brand="stealth"] .tile .top .icon-block {
  background: var(--kfc-charcoal);
  box-shadow: 0 6px 0 #000, inset 0 0 0 1px var(--kfc-red), inset 0 -3px 0 var(--kfc-red);
}
.screen[data-brand="stealth"] .tile .top .icon-block .material-symbols-rounded { color: var(--kfc-red); }
.screen[data-brand="stealth"] .tile .meta { color: rgba(255,255,255,0.5); }
.screen[data-brand="stealth"] .tile .meta strong { color: var(--kfc-gold); }
.screen[data-brand="stealth"] .home-hero .greet h1 { color: white; }
.screen[data-brand="stealth"] .home-hero .stat {
  background: #18181C; border-color: #2a2a30; color: white;
}
.screen[data-brand="stealth"] .home-hero .stat .v { color: white; }
.screen[data-brand="stealth"] .home-hero .stat .l { color: rgba(255,255,255,0.5); }
.screen[data-brand="stealth"] .home-foot .card {
  background: #18181C; border-color: #2a2a30; color: white;
}
.screen[data-brand="stealth"] .home-foot .card .txt strong { color: white; }
.screen[data-brand="stealth"] .home-foot .card .txt small { color: rgba(255,255,255,0.55); }
.screen[data-brand="stealth"] .billing,
.screen[data-brand="stealth"] .kitchen,
.screen[data-brand="stealth"] .dist,
.screen[data-brand="stealth"] .forecast,
.screen[data-brand="stealth"] .devices,
.screen[data-brand="stealth"] .inventory,
.screen[data-brand="stealth"] .shift,
.screen[data-brand="stealth"] .waste,
.screen[data-brand="stealth"] .temp { background: #08080A; }
.screen[data-brand="stealth"] .subhead { background: #18181C; border-color: #2a2a30; }
.screen[data-brand="stealth"] .subhead-title .en { color: white; }
.screen[data-brand="stealth"] .subhead-stat .v { color: white; }
.screen[data-brand="stealth"] .billing-channels,
.screen[data-brand="stealth"] .queue-head,
.screen[data-brand="stealth"] .order-card,
.screen[data-brand="stealth"] .channel-stat,
.screen[data-brand="stealth"] .cook-card,
.screen[data-brand="stealth"] .role-tile,
.screen[data-brand="stealth"] .station-card,
.screen[data-brand="stealth"] .ai-summary,
.screen[data-brand="stealth"] .fc-chart-card,
.screen[data-brand="stealth"] .fc-suggestions,
.screen[data-brand="stealth"] .dev-card,
.screen[data-brand="stealth"] .dev-scan,
.screen[data-brand="stealth"] .inv-card,
.screen[data-brand="stealth"] .clock-card,
.screen[data-brand="stealth"] .staff-card,
.screen[data-brand="stealth"] .waste-tile,
.screen[data-brand="stealth"] .waste-panel,
.screen[data-brand="stealth"] .temp-card { background: #18181C; border-color: #2a2a30; color: white; }
.screen[data-brand="stealth"] .billing-channels { border-right-color: #2a2a30; }
.screen[data-brand="stealth"] .order-card .num,
.screen[data-brand="stealth"] .cook-card .name,
.screen[data-brand="stealth"] .role-tile .role-en,
.screen[data-brand="stealth"] .station-card .info .name,
.screen[data-brand="stealth"] .fc-chart-card h3,
.screen[data-brand="stealth"] .fc-suggestions h3,
.screen[data-brand="stealth"] .dev-card .name,
.screen[data-brand="stealth"] .inv-cat-head .lbl-en,
.screen[data-brand="stealth"] .staff-card h3,
.screen[data-brand="stealth"] .temp-card .name { color: white; }
.screen[data-brand="stealth"] .order-card ul li { color: rgba(255,255,255,0.85); }
.screen[data-brand="stealth"] .role-tile .top { background: #18181C; }
.screen[data-brand="stealth"] .role-tile .role-name,
.screen[data-brand="stealth"] .station-card .info .meta,
.screen[data-brand="stealth"] .dev-card .name small { color: rgba(255,255,255,0.55); }
.screen[data-brand="stealth"] .suggest { background: #20201C; border-color: rgba(240,165,0,0.28); }
.screen[data-brand="stealth"] .fc-suggestions { color: white; }
.screen[data-brand="stealth"] .suggest .text,
.screen[data-brand="stealth"] .suggest .text strong { color: white; }
.screen[data-brand="stealth"] .suggest .text small { color: rgba(255,255,255,0.55); }
.screen[data-brand="stealth"] .fc-chart-card .sub { color: rgba(255,255,255,0.55); }
.screen[data-brand="stealth"] .bar-row .name { color: white; }
.screen[data-brand="stealth"] .bar-row .num { color: white; }
.screen[data-brand="stealth"] .bar-row .track { background: #2a2a30; }
.screen[data-brand="stealth"] .inv-card .stock-row .num,
.screen[data-brand="stealth"] .waste-panel .selected-name,
.screen[data-brand="stealth"] .qty-stepper .num { color: white; }
.screen[data-brand="stealth"] .waste-panel .selected-name { background: #0E0E10; border-color: #2a2a30; }
.screen[data-brand="stealth"] .reason-row .reason { background: #0E0E10; border-color: #2a2a30; color: white; }
.screen[data-brand="stealth"] .staff-row { background: #202024; border-color: #2a2a30; color: white; }
.screen[data-brand="stealth"] .staff-row .info .name { color: white; }
.screen[data-brand="stealth"] .staff-row .info .role { color: rgba(255,255,255,0.55); }
.screen[data-brand="stealth"] .temp-card .actions button {
  background: #0E0E10;
  border-color: #2a2a30;
  color: white;
}
.screen[data-brand="stealth"] .temp-card .actions button.log {
  background: var(--kfc-red);
  border-color: var(--kfc-red);
  color: white;
}
.screen[data-brand="stealth"] .inv-card .progress { background: #0E0E10; }
.screen[data-brand="stealth"] .channel-stat .item { border-color: #2a2a30; }
.screen[data-brand="stealth"] .channel-stat .v { color: white; }
.screen[data-brand="stealth"] .queue-head .chip { background: #18181C; color: white; border-color: #2a2a30; }
.screen[data-brand="stealth"] .waste-tile .label { color: white; }
.screen[data-brand="stealth"] .pill.off { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.screen[data-brand="stealth"] .src.dinein { background: rgba(228,0,43,0.18); }
.screen[data-brand="stealth"] .home-hero .greet .eye { color: var(--kfc-gold); }
.screen[data-brand="stealth"] .home-hero .stat::before { box-shadow: 0 0 12px var(--kfc-red); }

/* ─────────── BRAND MODE: FESTIVAL (Diwali gold celebration) ─────────── */
.screen[data-brand="festival"] {
  --kfc-bone: #FFF6E2;
}
.screen[data-brand="festival"] .home {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(240,165,0,0.35), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(228,0,43,0.18), transparent 55%),
    linear-gradient(180deg, #FFF1CE 0%, #F7E4B5 100%);
}
.screen[data-brand="festival"] .home::before {
  background-image:
    radial-gradient(rgba(240,165,0,0.18) 1.5px, transparent 1.5px),
    radial-gradient(rgba(228,0,43,0.10) 1px, transparent 1px);
  background-size: 36px 36px, 18px 18px;
  background-position: 0 0, 18px 18px;
}
.screen[data-brand="festival"] .tile {
  border-color: #E8C870;
  box-shadow: 0 6px 0 rgba(197,136,0,0.25), 0 14px 30px -8px rgba(240,165,0,0.4);
}
.screen[data-brand="festival"] .tile .top .icon-block {
  background: linear-gradient(135deg, var(--kfc-gold), var(--kfc-gold-deep));
  box-shadow: 0 6px 0 #8a5d00, inset 0 0 0 2px rgba(255,255,255,0.4), inset 0 -3px 0 rgba(0,0,0,0.2);
}
.screen[data-brand="festival"] .tile .bottom {
  background: linear-gradient(135deg, #5A0010, var(--kfc-red-deep));
}
.screen[data-brand="festival"] .tile .bottom::before {
  background: linear-gradient(90deg, var(--kfc-gold), #FFD96B, var(--kfc-gold));
}
.screen[data-brand="festival"] .tile .bottom .label .hi { color: var(--kfc-gold); }
.screen[data-brand="festival"] .tile .bottom .arrow {
  background: linear-gradient(135deg, var(--kfc-gold), var(--kfc-gold-deep));
  box-shadow: 0 4px 0 #8a5d00;
}
.screen[data-brand="festival"] .tile .bottom .arrow .material-symbols-rounded { color: var(--kfc-black); }
.screen[data-brand="festival"] .topbar {
  background: linear-gradient(135deg, #2A0008, var(--kfc-red-deep) 60%, #5A0010);
  border-bottom-color: var(--kfc-gold);
}
.screen[data-brand="festival"] .topbar::before {
  background: linear-gradient(90deg, transparent, var(--kfc-gold) 20%, var(--kfc-gold) 80%, transparent);
  filter: drop-shadow(0 0 12px rgba(240,165,0,0.8));
}
.screen[data-brand="festival"] .kfc-logo .mark {
  background: linear-gradient(135deg, var(--kfc-gold), var(--kfc-gold-deep));
  color: var(--kfc-black);
  box-shadow: 0 4px 0 #8a5d00, inset 0 -3px 0 rgba(0,0,0,0.2);
}
.screen[data-brand="festival"] .home-hero .greet .eye { color: var(--kfc-gold-deep); }
.screen[data-brand="festival"] .home-hero .stat { border-color: #E8C870; }
.screen[data-brand="festival"] .home-hero .stat::before { background: linear-gradient(180deg, var(--kfc-gold), var(--kfc-gold-deep)); }
.screen[data-brand="festival"] .home-hero .stat.gold::before { background: linear-gradient(180deg, var(--kfc-red), var(--kfc-red-deep)); }
.screen[data-brand="festival"] .home-foot .card { border-color: #E8C870; }
.screen[data-brand="festival"] .home-foot .card {
  background: #FFFBF0;
  color: var(--kfc-black);
}
.screen[data-brand="festival"] .home-foot .card .txt strong { color: var(--kfc-black); }
.screen[data-brand="festival"] .home-foot .card.dark {
  background: linear-gradient(135deg, #2A0008, #5A0010);
  color: white;
}
.screen[data-brand="festival"] .home-foot .card.dark .txt strong { color: white; }
/* festival diya glow on tiles */
.screen[data-brand="festival"] .tile-badge.live { background: var(--kfc-gold); color: var(--kfc-black); }

/* ─────────── DENSITY: CINEMATIC (less, bigger, theatrical) ─────────── */
.screen[data-density="cinematic"] .home-hero { padding: 38px 36px 18px; }
.screen[data-density="cinematic"] .home-hero .greet h1 { font-size: 84px; }
.screen[data-density="cinematic"] .home-hero .greet h1 .hi { font-size: 42px; }
.screen[data-density="cinematic"] .home-hero .stat .v { font-size: 44px; }
.screen[data-density="cinematic"] .tile-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  gap: 24px;
  padding: 16px 36px 28px;
}
.screen[data-density="cinematic"] .tile:nth-child(n+4) { display: none; }
.screen[data-density="cinematic"] .tile .top { padding: 36px; }
.screen[data-density="cinematic"] .tile .top .icon-block { width: 120px; height: 120px; }
.screen[data-density="cinematic"] .tile .top .icon-block .material-symbols-rounded { font-size: 76px; }
.screen[data-density="cinematic"] .tile .bottom .label .en { font-size: 52px; }
.screen[data-density="cinematic"] .tile .bottom .label .hi { font-size: 24px; }
.screen[data-density="cinematic"] .tile .bottom .arrow { width: 72px; height: 72px; }
.screen[data-density="cinematic"] .tile .bottom .arrow .material-symbols-rounded { font-size: 42px; }
.screen[data-density="cinematic"] .home-foot { display: none; }
.screen[data-density="cinematic"] .broadcast { display: none; }
.screen[data-density="cinematic"] .appnav { display: none; }
.screen[data-density="cinematic"] .tb-icon:nth-child(1),
.screen[data-density="cinematic"] .tb-icon:nth-child(2) { display: none; }

/* ─────────── DENSITY: BATTLE STATION (max info, dense) ─────────── */
.screen[data-density="battle"] {
  font-size: 13px;
}
.screen[data-density="battle"] .content {
  flex-direction: column;
}
.screen[data-density="battle"] .view {
  min-height: 0;
}
.screen[data-density="battle"] .topbar { height: 64px; }
.screen[data-density="battle"] .kfc-logo .mark { width: 44px; height: 44px; font-size: 22px; }
.screen[data-density="battle"] .kfc-logo .text { font-size: 16px; }
.screen[data-density="battle"] .tb-icon { width: 44px; height: 44px; }
.screen[data-density="battle"] .tb-user .av { width: 36px; height: 36px; font-size: 14px; }
.screen[data-density="battle"] .tb-clock { font-size: 18px; min-width: 80px; }
.screen[data-density="battle"] .home-hero {
  padding: 8px 16px 4px;
}
.screen[data-density="battle"] .home-hero .greet h1 { font-size: 40px; }
.screen[data-density="battle"] .home-hero .greet h1 .hi { font-size: 18px; margin-left: 8px; }
.screen[data-density="battle"] .home-hero .stat { padding: 6px 12px; min-width: 96px; }
.screen[data-density="battle"] .home-hero .stat .v { font-size: 22px; }
.screen[data-density="battle"] .home-hero .stat .l { font-size: 9px; letter-spacing: 1.2px; margin-top: 3px; }
.screen[data-density="battle"] .tile-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 6px 16px 6px;
  gap: 8px;
}
.screen[data-density="battle"] .tile .top { padding: 12px; }
.screen[data-density="battle"] .tile .top .icon-block { width: 56px; height: 56px; border-radius: 10px; }
.screen[data-density="battle"] .tile .top .icon-block .material-symbols-rounded { font-size: 36px; }
.screen[data-density="battle"] .tile .bottom { padding: 10px 12px; }
.screen[data-density="battle"] .tile .bottom .label .en { font-size: 21px; }
.screen[data-density="battle"] .tile .bottom .label .hi { font-size: 13px; margin-top: 3px; }
.screen[data-density="battle"] .tile .bottom .arrow { width: 36px; height: 36px; border-radius: 8px; }
.screen[data-density="battle"] .tile .bottom .arrow .material-symbols-rounded { font-size: 22px; }
.screen[data-density="battle"] .tile-badge { padding: 4px 8px; font-size: 11px; }
.screen[data-density="battle"] .home-foot { padding: 0 16px 8px; gap: 8px; }
.screen[data-density="battle"] .home-foot .card { padding: 8px 12px; }
.screen[data-density="battle"] .home-foot .card .ic { width: 32px; height: 32px; }
.screen[data-density="battle"] .home-foot .card .txt strong { font-size: 14px; }
.screen[data-density="battle"] .home-foot .card .txt small { font-size: 11px; }
/* battle station: extra "intel strip" appears below hero */
.screen[data-density="battle"] .battle-strip { display: grid !important; }

@media (max-width: 1280px) {
  .screen[data-density="battle"] .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .screen[data-density="battle"] .content {
    overflow-y: auto;
  }
  .screen[data-density="battle"] .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* battle strip — radar grid full of live numbers */
.battle-strip {
  display: none;
  margin: 8px 16px 6px;
  padding: 8px;
  background: var(--kfc-black);
  color: white;
  border-radius: 10px;
  border: 1px solid #333;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.battle-strip .b-cell {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #151515;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: baseline;
}
.battle-strip .b-cell.red { border-color: rgba(228,0,43,0.55); background: rgba(228,0,43,0.12); }
.battle-strip .b-cell.amber { border-color: rgba(240,165,0,0.5); background: rgba(240,165,0,0.10); }
.battle-strip .b-cell.green { border-color: rgba(31,170,89,0.45); background: rgba(31,170,89,0.10); }
.battle-strip .b-cell .lbl { color: rgba(255,255,255,0.45); text-transform: uppercase; font-weight: 700; }
.battle-strip .b-cell .v { color: var(--kfc-gold); font-weight: 700; font-size: 16px; text-align: right; }
.battle-strip .b-cell .v.red { color: var(--kfc-red); }
.battle-strip .b-cell .v.amber { color: var(--kfc-gold); }
.battle-strip .b-cell .v.green { color: #5be089; }
.battle-strip .b-cell .sub {
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.52);
  font-family: var(--tile);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .battle-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .battle-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 6px 10px;
  }
}

/* ─────────── LANGUAGE EMPHASIS ─────────── */
/* Hindi-led: Hindi becomes primary, English smaller */
.screen[data-lang="hindi"] .tile .bottom .label .en { font-size: 22px; opacity: 0.7; order: 2; margin-top: 6px; letter-spacing: 1px; }
.screen[data-lang="hindi"] .tile .bottom .label .hi { font-size: 32px; color: white; order: 1; font-weight: 700; }
.screen[data-lang="hindi"] .tile .bottom .label { display: flex; flex-direction: column; }
.screen[data-lang="hindi"] .home-hero .greet h1 { font-size: 36px; opacity: 0.6; }
.screen[data-lang="hindi"] .home-hero .greet h1 .hi { font-size: 56px; display: block; margin: 0 0 6px; opacity: 1; }
.screen[data-lang="hindi"] .subhead-title .en { font-size: 22px; opacity: 0.55; order: 2; }
.screen[data-lang="hindi"] .subhead-title .hi { font-size: 32px; order: 1; }
.screen[data-lang="hindi"] .subhead-title { display: flex; flex-direction: column; }
.screen[data-lang="hindi"] .role-tile .role-en { font-size: 32px; opacity: 0.6; order: 3; margin-top: 6px; }
.screen[data-lang="hindi"] .role-tile .role-hi { font-size: 32px; color: var(--kfc-black); order: 1; font-weight: 700; }
.screen[data-lang="hindi"] .role-tile .role-name { order: 2; }
.screen[data-lang="hindi"] .role-tile .top { display: flex; flex-direction: column; align-items: center; }
.screen[data-lang="hindi"] .cook-card .name { font-size: 20px; opacity: 0.6; order: 2; }
.screen[data-lang="hindi"] .cook-card .name-hi { font-size: 24px; font-weight: 700; order: 1; }
.screen[data-lang="hindi"] .cook-card .row > div:first-child { display: flex; flex-direction: column; }
.screen[data-lang="hindi"] .inv-cat-head .lbl-en { font-size: 20px; opacity: 0.6; order: 2; }
.screen[data-lang="hindi"] .inv-cat-head .lbl-hi { font-size: 24px; font-weight: 700; order: 1; }

/* English-only: hide Hindi everywhere */
.screen[data-lang="english"] .hindi-text,
.screen[data-lang="english"] .hi,
.screen[data-lang="english"] .name-hi,
.screen[data-lang="english"] .role-hi,
.screen[data-lang="english"] .lbl-hi,
.screen[data-lang="english"] .machine-hi,
.screen[data-lang="english"] .st-name-hi {
  display: none;
}
.screen[data-lang="english"] .broadcast .marquee span { font-family: var(--tile); }

/* ─────────── LANGUAGE: ENGLISH ONLY (lang-en-only class on root) ─────────── */
/*
 * Single global rule: when lang-en-only is on the root div, every element
 * carrying .hindi-text, or any of the component-specific Hindi CSS classes,
 * is hidden. Add class="hindi-text" to any new Hindi element and it is
 * automatically hidden — no per-component CSS needed.
 */
.lang-en-only .hindi-text,
.lang-en-only .hi,
.lang-en-only .name-hi,
.lang-en-only .role-hi,
.lang-en-only .lbl-hi,
.lang-en-only .machine-hi,
.lang-en-only .st-name-hi {
  display: none !important;
}

/* tweaks panel theming to match KFC */
.twk-panel {
  background: rgba(20,20,20,0.92) !important;
  color: white !important;
  border: 1px solid rgba(228,0,43,0.4) !important;
  box-shadow: 0 1px 0 rgba(228,0,43,0.3) inset, 0 12px 40px rgba(0,0,0,0.5) !important;
}
.twk-panel .twk-hd b { color: var(--kfc-gold); font-family: var(--tile); letter-spacing: 1.5px; text-transform: uppercase; }
.twk-panel .twk-x { color: rgba(255,255,255,0.6); }
.twk-panel .twk-x:hover { background: rgba(255,255,255,0.1); color: white; }
.twk-panel .twk-lbl { color: rgba(255,255,255,0.7) !important; }
.twk-panel .twk-val { color: rgba(255,255,255,0.5) !important; }
.twk-panel .twk-sect { color: var(--kfc-gold) !important; font-family: var(--tile); }
.twk-panel .twk-field { background: rgba(255,255,255,0.08) !important; color: white !important; border-color: rgba(255,255,255,0.15) !important; }
