/* ============================================================
   HOME SCREEN
   ============================================================ */
.home {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(228,0,43,0.08), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(240,165,0,0.05), transparent 50%),
    linear-gradient(180deg, #f7f3ec 0%, #ece5d9 100%);
}
.home::before {
  /* subtle grid texture */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-hero {
  padding: 24px 28px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative; z-index: 1;
}
.home-hero .greet {
  display: flex; flex-direction: column;
}
.home-hero .greet .eye {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--kfc-red);
  text-transform: uppercase;
}
.home-hero .greet h1 {
  font-family: var(--display);
  font-size: 60px;
  letter-spacing: 2px;
  color: var(--kfc-black);
  line-height: 0.95;
  margin-top: 4px;
}
.home-hero .greet h1 .hi {
  font-family: var(--hi);
  font-size: 32px;
  font-weight: 700;
  color: var(--kfc-red);
  margin-left: 12px;
  letter-spacing: 0;
}
.home-hero .stats {
  display: flex; gap: 12px;
}
.home-hero .stat {
  background: white;
  border: 1px solid #e6dfd2;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex; flex-direction: column;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}
.home-hero .stat::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--kfc-red);
}
.home-hero .stat .v {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--kfc-black);
  line-height: 1;
}
.home-hero .stat .l {
  font-size: 11px;
  letter-spacing: 2px;
  color: #777;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 700;
}
.home-hero .stat.gold::before { background: var(--kfc-gold); }
.home-hero .stat.green::before { background: var(--state-ready); }

.tile-grid {
  position: relative; z-index: 1;
  padding: 12px 28px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
  gap: 18px;
}

.tile {
  position: relative;
  background: white;
  border-radius: 16px;
  border: 1px solid #ddd2bf;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 0;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: 0 6px 0 rgba(0,0,0,0.06), 0 14px 30px -8px rgba(0,0,0,0.10);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(0,0,0,0.08), 0 24px 50px -10px rgba(0,0,0,0.18);
}
.tile:active { transform: translateY(2px); }

.tile .top {
  flex: 1;
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.tile .top .icon-block {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--kfc-red);
  box-shadow: 0 6px 0 var(--kfc-red-deep), inset 0 -3px 0 rgba(0,0,0,0.2);
}
.tile .top .icon-block .material-symbols-rounded {
  font-size: 40px; color: white;
}
.tile .top .badge-area {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.tile-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.tile-badge.live {
  background: var(--state-ready); color: white;
}
.tile-badge.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: white; animation: pulse 1.4s var(--ease) infinite;
}
.tile-badge.warn { background: var(--kfc-gold); color: var(--kfc-black); }
.tile-badge.urgent { background: var(--kfc-red); color: white; }
.tile-badge.ai {
  background: linear-gradient(135deg, #F0A500, #C58800);
  color: var(--kfc-black);
  box-shadow: 0 2px 0 #8a5d00;
}

.tile .bottom {
  background: var(--kfc-black);
  color: white;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.tile .bottom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--kfc-red);
}
.tile .bottom .label {
  display: flex; flex-direction: column; line-height: 1;
}
.tile .bottom .label .en {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
}
.tile .bottom .label .hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
  color: var(--kfc-gold);
}
.tile .bottom .arrow {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--kfc-red);
  display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--kfc-red-deep);
}
.tile .bottom .arrow .material-symbols-rounded { font-size: 26px; color: white; }

/* spark indicator at the bottom of tiles */
.tile .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
  margin-top: 6px;
}
.tile .meta strong { color: var(--kfc-black); font-weight: 800; }

/* ============================================================
   HOME FOOTER STRIP (broadcast etc)
   ============================================================ */
.home-foot {
  position: relative; z-index: 1;
  padding: 0 28px 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
.home-foot .card {
  background: white;
  border: 1px solid #e6dfd2;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  color: var(--kfc-black);
}
.home-foot .card.dark {
  background: var(--kfc-black);
  color: white;
  border-color: #333;
}
.home-foot .card .ic {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--kfc-red);
  color: white;
  flex-shrink: 0;
}
.home-foot .card .txt {
  display: flex; flex-direction: column; line-height: 1.1;
}
.home-foot .card .txt strong {
  font-family: var(--tile);
  font-size: 18px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--kfc-black);
}
.home-foot .card.dark .txt strong { color: white; }
.home-foot .card .txt small {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
.home-foot .card.dark .txt small { color: rgba(255,255,255,0.6); }

@media (min-width: 1200px) and (min-height: 820px) {
  .home-hero {
    padding: 30px 34px 16px;
  }
  .home-hero .greet .eye {
    font-size: 15px;
  }
  .home-hero .greet h1 {
    font-size: 76px;
  }
  .home-hero .greet h1 .hi {
    font-size: 36px;
  }
  .home-hero .stat {
    min-width: 148px;
    padding: 16px 22px;
  }
  .home-hero .stat .v {
    font-size: 46px;
  }
  .tile-grid {
    padding: 14px 34px 22px;
    gap: 20px;
  }
  .tile .top {
    padding: 26px;
  }
  .tile .top .icon-block {
    width: 82px;
    height: 82px;
  }
  .tile .top .icon-block .material-symbols-rounded {
    font-size: 52px;
  }
  .tile .bottom {
    padding: 16px 20px;
  }
  .tile .bottom .label .en {
    font-size: 36px;
  }
  .tile .bottom .label .hi {
    font-size: 18px;
  }
  .tile .bottom .arrow {
    width: 54px;
    height: 54px;
  }
  .tile .bottom .arrow .material-symbols-rounded {
    font-size: 32px;
  }
  .tile .meta {
    font-size: 12px;
  }
  .home-foot {
    padding: 0 34px 20px;
  }
  .home-foot .card {
    padding: 16px 20px;
  }
  .home-foot .card .ic {
    width: 50px;
    height: 50px;
  }
  .home-foot .card .txt strong {
    font-size: 20px;
  }
}

@media (min-width: 1640px) and (min-height: 930px) {
  .home-hero .greet h1 {
    font-size: 92px;
  }
  .home-hero .greet h1 .hi {
    font-size: 42px;
  }
  .home-hero .stat .v {
    font-size: 54px;
  }
  .tile .top .icon-block {
    width: 96px;
    height: 96px;
  }
  .tile .top .icon-block .material-symbols-rounded {
    font-size: 62px;
  }
  .tile .bottom .label .en {
    font-size: 42px;
  }
}

@media (max-width: 840px) {
  .home {
    overflow-y: auto;
    grid-template-rows: auto auto auto;
  }
  .home-hero {
    padding: 18px 18px 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .home-hero .greet h1 {
    font-size: 46px;
  }
  .home-hero .greet h1 .hi {
    display: block;
    margin: 4px 0 0;
    font-size: 24px;
  }
  .home-hero .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-hero .stat {
    min-width: 0;
    padding: 10px 12px;
  }
  .home-hero .stat .v {
    font-size: 28px;
  }
  .home-hero .stat .l {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, auto);
    padding: 10px 18px 18px;
    gap: 12px;
  }
  .tile .top {
    padding: 16px;
  }
  .tile .bottom .label .en {
    font-size: 24px;
  }
  .tile .bottom .label .hi {
    font-size: 13px;
  }
  .home-foot {
    grid-template-columns: 1fr;
    padding: 0 18px 92px;
  }
}

@media (max-width: 520px) {
  .home-hero .stats {
    grid-template-columns: 1fr;
  }
  .tile-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(150px, auto);
  }
}


/* ============================================================
   BILLING SCREEN
   ============================================================ */
.billing {
  flex: 1; display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
  background: var(--kfc-bone);
}
.billing-channels {
  background: white;
  border-right: 1px solid #e6dfd2;
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
}
.channel-card {
  position: relative;
  border-radius: 14px;
  padding: 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  overflow: hidden;
}
.channel-card.dinein {
  background: linear-gradient(135deg, var(--kfc-red), var(--kfc-red-deep));
  color: white;
}
.channel-card.aggregator {
  background: var(--kfc-black);
  color: white;
}
.channel-card.active { border-color: var(--kfc-gold); box-shadow: 0 0 0 4px rgba(240,165,0,0.2); }
.channel-card:hover { transform: translateY(-2px); }
.channel-card .head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.channel-card .head .ic {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: grid; place-items: center;
}
.channel-card .head .ic .material-symbols-rounded { font-size: 36px; }
.channel-card h3 {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 1.5px;
  line-height: 1;
}
.channel-card .hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 18px;
  margin-top: 4px;
  color: var(--kfc-gold);
}
.channel-card .row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.agg-tile {
  flex: 1; min-width: 100px;
  height: 70px;
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--tile);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.agg-tile.swiggy { background: #FC8019; color: white; }
.agg-tile.zomato { background: #E23744; color: white; }
.agg-tile.generic { background: rgba(255,255,255,0.15); color: white; border: 1px dashed rgba(255,255,255,0.4); }
.agg-tile .num { font-size: 26px; line-height: 1; }
.agg-tile .lbl { font-size: 11px; letter-spacing: 2px; opacity: 0.85; margin-top: 4px; }

.channel-stat {
  background: white;
  border: 1px solid #e6dfd2;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.channel-stat .item {
  text-align: center;
  border-right: 1px solid #eee;
  padding-right: 12px;
}
.channel-stat .item:last-child { border-right: 0; }
.channel-stat .v {
  font-family: var(--display);
  font-size: 32px;
  color: var(--kfc-black);
  line-height: 1;
}
.channel-stat .l {
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 700;
}

.billing-queue {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.queue-head {
  padding: 18px 24px;
  background: white;
  border-bottom: 1px solid #e6dfd2;
  display: flex; align-items: center; gap: 16px;
}
.queue-head .title {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
}
.queue-head .filter-chips {
  margin-left: auto;
  display: flex; gap: 8px;
}
.queue-head .chip {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid #e0d8c8;
  font-family: var(--tile);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
}
.queue-head .chip.active { background: var(--kfc-black); color: white; border-color: var(--kfc-black); }
.queue-head .chip .count {
  display: inline-grid; place-items: center;
  height: 22px; min-width: 28px; padding: 0 6px;
  border-radius: 11px;
  background: var(--kfc-red);
  color: white;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 12px;
}

.queue-list {
  flex: 1;
  padding: 18px 24px 80px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}
.order-card {
  background: white;
  border-radius: 14px;
  border-left: 6px solid var(--state-ready);
  padding: 14px 16px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  position: relative;
}
.order-card.warn { border-left-color: var(--kfc-gold); }
.order-card.urgent {
  border-left-color: var(--kfc-red);
  animation: urgentBlink 1.4s ease-in-out infinite;
}
@keyframes urgentBlink {
  0%, 100% { box-shadow: 0 4px 0 rgba(0,0,0,0.05); }
  50% { box-shadow: 0 4px 0 rgba(0,0,0,0.05), 0 0 0 3px rgba(228,0,43,0.25); }
}
.order-card .o-head { display: flex; align-items: baseline; gap: 10px; }
.order-card .num {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--kfc-black);
}
.order-card .src {
  font-family: var(--tile);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.src.dinein { background: rgba(228,0,43,0.1); color: var(--kfc-red); }
.src.swiggy { background: rgba(252,128,25,0.15); color: #c46612; }
.src.zomato { background: rgba(226,55,68,0.12); color: #b31f2c; }
.order-card ul {
  list-style: none;
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.order-card ul li {
  font-size: 14px; color: #333;
  display: flex; gap: 8px;
  font-family: var(--body);
}
.order-card ul li strong {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--kfc-red);
  min-width: 24px;
}
.order-card .timer {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.order-card .timer .clock {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  font-feature-settings: 'tnum';
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(31,170,89,0.1); color: var(--state-ready-deep);
}
.order-card.warn .clock { background: rgba(240,165,0,0.15); color: #8a5d00; }
.order-card.urgent .clock { background: rgba(228,0,43,0.12); color: var(--kfc-red); }
.order-card .actions {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.order-card .actions button {
  height: 56px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.12s var(--ease);
}
.order-card .actions button:active { transform: scale(0.96); }
.btn-ready {
  background: var(--state-ready); color: white;
  box-shadow: 0 4px 0 var(--state-ready-deep);
}
.btn-print {
  background: white; color: var(--kfc-black);
  box-shadow: inset 0 0 0 2px var(--kfc-black);
}

/* ============================================================
   KITCHEN PRESENTER
   ============================================================ */
.kitchen {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0;
  background: var(--kfc-bone);
  overflow: hidden;
}
.cook-grid {
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(338px, auto);
  gap: 16px;
  overflow-y: auto;
  align-content: start;
}
.cook-card {
  min-height: 338px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  border: 1px solid #e6dfd2;
  position: relative;
}
.cook-card.urgent {
  border-color: var(--kfc-red);
  box-shadow: 0 6px 0 rgba(0,0,0,0.06), 0 0 0 3px rgba(228,0,43,0.15);
  animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 6px 0 rgba(0,0,0,0.06), 0 0 0 3px rgba(228,0,43,0.15); }
  50%      { box-shadow: 0 6px 0 rgba(0,0,0,0.06), 0 0 0 6px rgba(228,0,43,0.3); }
}
.cook-card .photo { height: 140px; }
.cook-card .row {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.cook-card .name {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
  line-height: 1;
}
.cook-card .name-hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 18px;
  color: var(--kfc-red);
  margin-top: 4px;
}
.cook-card .qty {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: 1px;
  color: var(--kfc-black);
  line-height: 0.9;
  text-align: right;
}
.cook-card .qty small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
  font-family: var(--tile);
  font-weight: 700;
  margin-top: 4px;
}

.cook-card .footer {
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #f0e8da;
}
.btn-done {
  height: 64px;
  border-radius: 12px;
  background: var(--state-ready); color: white;
  box-shadow: 0 4px 0 var(--state-ready-deep);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.12s var(--ease);
}
.btn-done:active { transform: scale(0.97); }

/* circular timer */
.ring {
  width: 72px; height: 72px;
  position: relative;
  flex-shrink: 0;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle.bg { fill: none; stroke: #f0e8da; stroke-width: 8; }
.ring circle.fg {
  fill: none;
  stroke: var(--state-ready);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.4s var(--ease);
}
.ring.warn circle.fg { stroke: var(--kfc-gold); }
.ring.urgent circle.fg { stroke: var(--kfc-red); }
.ring .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  font-feature-settings: 'tnum';
  color: var(--kfc-black);
}

/* upcoming queue strip */
.cook-strip {
  flex-shrink: 0;
  background: var(--kfc-black);
  color: white;
  padding: 14px 24px;
  border-top: 4px solid var(--kfc-red);
}
.cook-strip .title {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--kfc-gold);
  margin-bottom: 10px;
}
.cook-strip .row {
  display: flex; gap: 10px; overflow-x: auto;
}
.queue-tile {
  flex-shrink: 0;
  width: 180px;
  background: var(--kfc-charcoal);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #333;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}
.queue-tile .ord {
  font-family: var(--display);
  font-size: 32px;
  color: var(--kfc-gold);
  text-align: center;
  line-height: 1;
}
.queue-tile .qt-name {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.queue-tile .qt-qty { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

@media (max-height: 820px) and (min-width: 980px) {
  .cook-grid {
    padding: 14px 20px;
    grid-auto-rows: minmax(284px, auto);
    gap: 12px;
  }
  .cook-card {
    min-height: 284px;
    border-radius: 14px;
  }
  .cook-card .photo {
    height: 104px;
  }
  .cook-card .row {
    padding: 12px 14px;
  }
  .cook-card .name {
    font-size: 24px;
  }
  .cook-card .name-hi {
    font-size: 15px;
  }
  .cook-card .qty {
    font-size: 46px;
  }
  .cook-card .footer {
    padding: 10px 14px 14px;
  }
  .ring {
    width: 64px;
    height: 64px;
  }
  .btn-done {
    height: 56px;
    font-size: 24px;
  }
  .cook-strip {
    padding: 10px 20px 12px;
  }
  .cook-strip .title {
    margin-bottom: 8px;
  }
  .queue-tile {
    width: 160px;
    padding: 8px 10px;
  }
}

/* ============================================================
   DISTRIBUTION
   ============================================================ */
.dist {
  flex: 1; display: grid;
  grid-template-columns: 1fr 240px;
  background: var(--kfc-bone);
  overflow: hidden;
}
.dist-main { display: flex; flex-direction: column; overflow: hidden; }
.role-grid {
  flex: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.role-tile {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid #e6dfd2;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 6px 0 rgba(0,0,0,0.05);
  position: relative;
}
.role-tile:hover { transform: translateY(-4px); }
.role-tile .top {
  flex: 1;
  padding: 26px;
  background: linear-gradient(180deg, #fff 0%, #fbf6ed 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.role-tile .top .ic-big {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--kfc-red);
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 0 var(--kfc-red-deep), inset 0 -4px 0 rgba(0,0,0,0.2);
}
.role-tile .top .ic-big .material-symbols-rounded {
  font-size: 76px; color: white;
}
.role-tile .top .role-en {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: 3px;
  color: var(--kfc-black);
  line-height: 0.9;
}
.role-tile .top .role-name {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 18px;
  color: #555;
  margin-top: 6px;
  letter-spacing: 1px;
}
.role-tile .top .role-hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 22px;
  color: var(--kfc-red);
  margin-top: 4px;
}
.role-tile .bot {
  background: var(--kfc-black);
  color: white;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 4px solid var(--kfc-red);
}
.role-tile .bot .stat-grp { display: flex; flex-direction: column; line-height: 1.1; }
.role-tile .bot .stat-grp strong {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1px;
}
.role-tile .bot .stat-grp small {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kfc-gold);
  font-weight: 700;
}

/* side rail */
.siderail {
  background: var(--kfc-black);
  display: flex; flex-direction: column;
  padding: 16px 12px;
  gap: 10px;
  border-left: 1px solid #2a2a2a;
}
.siderail-head {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--kfc-gold);
  text-align: center;
  padding: 4px 0 8px;
  border-bottom: 1px dashed #444;
  margin-bottom: 4px;
}
.qa-btn {
  height: 88px;
  border-radius: 12px;
  background: var(--kfc-charcoal);
  border: 1px solid #333;
  color: white;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.15s var(--ease);
  position: relative;
  overflow: hidden;
}
.qa-btn:hover { background: #2c2c2c; transform: translateX(-2px); }
.qa-btn:active { transform: translateX(0) scale(0.97); }
.qa-btn .material-symbols-rounded { font-size: 30px; }
.qa-btn .lbl {
  font-family: var(--tile);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}
.qa-btn .hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.qa-btn.danger { background: var(--kfc-red); border-color: var(--kfc-red-dark); }
.qa-btn.danger:hover { background: var(--kfc-red-dark); }
.qa-btn.danger .material-symbols-rounded { color: white; }
.qa-btn.warn { background: var(--kfc-gold); border-color: var(--kfc-gold-deep); color: var(--kfc-black); }
.qa-btn.warn:hover { background: #d99300; }
.qa-btn.warn .hi { color: rgba(0,0,0,0.6); }

/* station task board */
.station-board {
  flex: 1;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
  overflow-y: auto;
}
.station-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e6dfd2;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  padding: 12px;
  align-items: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}
.station-card .photo { width: 110px; height: 100px; }
.station-card .info { display: flex; flex-direction: column; gap: 4px; }
.station-card .info .name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--kfc-black);
  line-height: 1;
}
.station-card .info .name-hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 15px;
  color: var(--kfc-red);
}
.station-card .info .meta {
  font-size: 12px; color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--tile);
  font-weight: 700;
}
