:root {
  --bg-page: #edf3f9;
  --bg-card: #ffffff;
  --bg-soft: #f4f8fc;
  --text-main: #0f2942;
  --text-muted: #526f8a;
  --border-light: #d8e5f2;
  --delta-navy: #1b3684;
  --delta-blue: #0984e3;
  --delta-cyan: #20b9ff;
  --delta-red: #e11d48;
  --delta-green: #059669;
  --delta-amber: #d97706;
  --shadow-sm: 0 4px 14px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 41, 66, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 41, 66, 0.14);
  font-family: 'Segoe UI', 'Cairo', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: background 0.16s ease, transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button:hover:not(:disabled) {
  background: #f0f7ff;
  border-color: #a9d1f5;
}

button:active:not(:disabled) {
  transform: scale(0.985);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(135deg, #0984e3, #0668b8);
  color: #ffffff;
  border-color: #0668b8;
  box-shadow: 0 6px 16px rgba(9, 132, 227, 0.25);
}

.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0774c9, #05589e);
  color: #ffffff;
}

.secondary {
  background: #f0f7ff;
  color: #0c4a7e;
  border-color: #c5dff8;
}

.wide {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}

.temo-app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #f7fbff 0%, #e6f0fa 100%);
}

/* ==================== TOP EXPERIENCE MODE SWITCHER ==================== */
.app-mode-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(11, 27, 48, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-mode-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mode-bar-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 7px;
  padding: 2px;
}

.app-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.09);
  padding: 3px;
  border-radius: 11px;
}

.app-mode-tabs button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  gap: 5px;
}

.app-mode-tabs button.active {
  background: #0984e3;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(9, 132, 227, 0.4);
}

.app-mode-utils {
  display: flex;
  align-items: center;
  gap: 5px;
}

.util-pill {
  min-height: 32px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11.5px;
}

.util-pill.muted {
  background: rgba(225, 29, 72, 0.28);
  border-color: rgba(225, 29, 72, 0.55);
  color: #fecdd3;
}

/* ==================== 1. OPENING CINEMATIC PRESENTATION ==================== */
.opening-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 24px;
}

.opening-card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #d7e5f2;
  box-shadow: var(--shadow-lg);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opening-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: start;
}

.opening-delta-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid #e2ecf5;
  padding: 6px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 54, 132, 0.08);
}

.opening-title-block h1 {
  font-size: clamp(20px, 5vw, 25px);
  margin: 4px 0 5px;
  color: var(--delta-navy);
  line-height: 1.25;
}

.opening-title-block p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.opening-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0768b5;
  background: #e6f4ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.opening-robot-showcase {
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d8e6f3;
  position: relative;
}

.opening-speech-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f8ff;
  border: 1px solid #cbe4fb;
  border-radius: 14px;
  padding: 10px 14px;
}

.opening-speech-bubble.speaking {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.opening-speech-bubble p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #0c4a6e;
  font-weight: 600;
}

.speech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0284c7;
  flex-shrink: 0;
}

.speech-dot.speaking {
  background: #10b981;
  animation: pulseDot 0.9s infinite alternate;
}

@keyframes pulseDot {
  from {
    transform: scale(0.9);
    opacity: 0.7;
  }
  to {
    transform: scale(1.25);
    opacity: 1;
  }
}

.opening-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-start-btn {
  position: relative;
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #0984e3 0%, #1b3684 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 20px;
  box-shadow: 0 12px 28px rgba(9, 132, 227, 0.35);
}

.cta-start-btn:hover {
  background: linear-gradient(135deg, #0a90f5 0%, #162d6e 100%);
  color: #ffffff;
}

.cta-start-btn strong {
  font-size: 20px;
  letter-spacing: -0.2px;
}

.cta-start-btn small {
  font-size: 11.5px;
  color: #dbeafe;
  font-weight: 500;
}

.opening-secondary-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opening-sec-btn {
  font-size: 12.5px;
  min-height: 44px;
  background: #f5f9fd;
  border-color: #d6e5f3;
  color: #163b5c;
}

/* ==================== 3D ROBOT STAGE COMPONENT ==================== */
.robot-stage-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #dce8f5 100%);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.robot-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.robot-3d-canvas:active {
  cursor: grabbing;
}

.camera-controls {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(208, 224, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 41, 66, 0.08);
  z-index: 5;
}

.camera-controls button {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1e3a5f;
}

.camera-controls button.active {
  background: #0984e3;
  color: #ffffff;
}

.robot-stage-badges {
  position: absolute;
  bottom: 8px;
  inset-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  flex-wrap: wrap;
}

.scene-label,
.interactive-hint {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #355878;
  backdrop-filter: blur(4px);
}

/* ==================== 2. INTERACTIVE FACE SCREEN ==================== */
.interactive-face-screen,
.full-robot-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 24px;
}

.face-stage-card,
.robot-view-card {
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.face-stage-header,
.robot-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.face-stage-header h2,
.robot-view-header h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.face-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
}

.face-visor-wrapper {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #030b15;
  border: 4px solid #16293d;
  box-shadow: 0 14px 34px rgba(3, 11, 21, 0.35);
  cursor: pointer;
}

.face-canvas-large {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 10 / 7;
  display: block;
  object-fit: contain;
}

.face-visor-overlay-hint {
  position: absolute;
  bottom: 10px;
  inset-inline: 12px;
  text-align: center;
  background: rgba(6, 22, 41, 0.82);
  border: 1px solid rgba(54, 220, 255, 0.3);
  color: #e0f7ff;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.face-expression-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expr-btn {
  flex: 1 1 calc(33.33% - 8px);
  min-width: 130px;
  font-size: 12.5px;
  min-height: 44px;
  background: #f5f9fd;
}

.expr-btn.highlight {
  flex: 1 1 100%;
  background: #e6f4ff;
  border-color: #93c5fd;
  color: #0369a1;
}

.expr-btn.active {
  background: #0984e3;
  color: #ffffff;
  border-color: #0984e3;
}

.face-bottom-actions,
.robot-control-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.face-bottom-actions button,
.robot-control-strip button {
  flex: 1 1 200px;
}

.robot-view-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.robot-view-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2ecf5;
  padding: 4px;
}

.robot-view-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.robot-full-stage-wrap {
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d5e4f2;
}

.reference-comparison-box {
  background: #f8fbff;
  border: 1px solid #cfe2f3;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.reference-comparison-box img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
  object-fit: contain;
}

.reference-comparison-box p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 4. ENLARGED PORTRAIT TOUCHSCREEN WORKSPACE ==================== */
.touchscreen-workspace {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.desktop-robot-companion {
  display: none;
}

.portrait-touchscreen-frame {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: calc(100vh - 47px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .touchscreen-workspace {
    padding: 18px 24px;
    align-items: flex-start;
  }
  .desktop-robot-companion {
    display: block;
    width: 420px;
    flex-shrink: 0;
    position: sticky;
    top: 66px;
  }
  .companion-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .companion-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .companion-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }
  .companion-head strong {
    display: block;
    font-size: 15px;
  }
  .companion-head small {
    font-size: 11.5px;
    color: var(--text-muted);
  }
  .companion-card .robot-stage-container {
    height: 460px;
    border-radius: 18px;
    border: 1px solid #dce8f4;
  }
  .companion-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .companion-footer button {
    font-size: 11.5px;
    padding: 8px 6px;
    min-height: 38px;
  }
  .portrait-touchscreen-frame {
    max-width: 640px;
    border-radius: 26px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    min-height: 820px;
    max-height: calc(100vh - 84px);
  }
}

/* ==================== TOUCHSCREEN SHELL & HEADER ==================== */
.touchscreen-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: calc(100vh - 47px);
  background: #ffffff;
}

.ts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e4eef7;
  flex-wrap: wrap;
}

.ts-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.ts-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e5eef7;
  padding: 3px;
  background: #ffffff;
  flex-shrink: 0;
}

.ts-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0984e3;
}

.ts-brand-text h2 {
  margin: 1px 0 0;
  font-size: 15px;
  color: var(--delta-navy);
  line-height: 1.2;
}

/* Interactive Mini Face Pill in Header */
.ts-mini-face-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 6px;
  border-radius: 999px;
  background: #071526;
  border: 1.5px solid #1e4976;
  color: #ffffff;
  min-height: 40px;
}

.ts-mini-face-btn.speaking {
  border-color: #20b9ff;
  box-shadow: 0 0 12px rgba(32, 185, 255, 0.4);
}

.ts-mini-face-Wrap {
  width: 42px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: #030b15;
  flex-shrink: 0;
}

.ts-mini-face-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ts-mini-face-label {
  text-align: start;
  line-height: 1.15;
}

.ts-mini-face-label b {
  display: block;
  font-size: 11px;
  color: #38bdf8;
}

.ts-mini-face-label small {
  display: block;
  font-size: 9.5px;
  color: #cbd5e1;
}

.ts-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-action-btn {
  min-height: 36px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  gap: 5px;
  background: #f5f9fd;
  border-color: #dce8f4;
}

.icon-action-btn.muted {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.icon-action-btn.robot-return-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Transparency Ribbon */
.ts-transparency-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0f7ff;
  border-bottom: 1px solid #d8e8f8;
  font-size: 10.5px;
  color: #1e4268;
  text-align: center;
  line-height: 1.4;
}

/* Global Search Container */
.ts-search-container {
  padding: 10px 12px 8px;
  background: #f8fbff;
  border-bottom: 1px solid #e4eef7;
}

.ts-global-search,
.ts-inline-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1.5px solid #c8ddf0;
  border-radius: 14px;
  padding: 0 12px;
  height: 46px;
  box-shadow: 0 2px 8px rgba(15, 41, 66, 0.04);
}

.ts-global-search:focus-within,
.ts-inline-search:focus-within {
  border-color: #0984e3;
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.15);
}

.ts-global-search input,
.ts-inline-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--text-main);
}

.search-icon {
  color: #0984e3;
  flex-shrink: 0;
}

.clear-search-btn {
  min-height: 28px;
  width: 28px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #eef4fa;
  color: #476785;
}

.ts-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 2px 2px;
  scrollbar-width: none;
}

.ts-quick-chips::-webkit-scrollbar {
  display: none;
}

.ts-quick-chips button {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
  background: #ffffff;
  border-color: #d4e4f4;
  color: #16436b;
  flex-shrink: 0;
}

/* Main Touchscreen Scrollable Area */
.ts-main {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ts-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ts-back-btn {
  min-height: 38px;
  padding: 6px 12px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  font-size: 13px;
}

.ts-home-pill {
  min-height: 38px;
  padding: 6px 12px;
  background: #f8fafc;
  font-size: 12.5px;
}

/* Emergency Banner on Home */
.ts-emergency-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1.5px solid #fda4af;
  color: #9f1239;
  text-align: start;
}

.ts-emergency-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e11d48;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-emergency-text {
  flex: 1;
}

.ts-emergency-text strong {
  display: block;
  font-size: 13.5px;
  color: #881337;
}

.ts-emergency-text small {
  display: block;
  font-size: 11px;
  color: #be123c;
  margin-top: 2px;
}

/* Welcome Card on Home */
.ts-welcome-card {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.16);
}

.ts-welcome-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.ts-welcome-copy h1 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #ffffff;
}

.ts-welcome-copy .sparkle {
  color: #38bdf8;
}

.ts-welcome-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #e0f2fe;
}

.ts-welcome-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ts-voice-replay-btn {
  flex: 1 1 160px;
  min-height: 42px;
  background: #20b9ff;
  border-color: #20b9ff;
  color: #041e36;
  font-size: 12.5px;
  font-weight: 700;
}

.ts-face-mode-btn {
  flex: 1 1 150px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12.5px;
}

/* Section Headers */
.ts-section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-section-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--delta-navy);
}

.ts-section-header small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 9 Hospital Departments Grid */
.ts-department-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ts-dept-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: start;
  padding: 13px 12px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1.5px solid #dde9f6;
  min-height: 138px;
  position: relative;
  overflow: hidden;
}

.ts-dept-card:hover {
  border-color: var(--dept-accent, #0984e3);
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 132, 227, 0.1);
}

/* Make the 9th item span full width cleanly on 2-col mobile grid so there is no awkward empty slot */
.ts-dept-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ts-dept-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ts-dept-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ts-dept-building {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf3fc;
  color: #1e4268;
}

.ts-dept-title {
  font-size: 14.5px;
  color: var(--text-main);
  margin-top: 8px;
  line-height: 1.3;
}

.ts-dept-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.ts-dept-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0768b5;
  margin-top: 8px;
}

/* ==================== DETAIL VIEWS & CARDS ==================== */
.ts-view-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e4f0fc 100%);
  border: 1px solid #cbe0f5;
  border-radius: 18px;
  padding: 15px;
}

.ts-badge-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0984e3;
  border: 1px solid #bae6fd;
  margin-bottom: 6px;
}

.ts-view-banner h1 {
  margin: 4px 0 6px;
  font-size: 20px;
  color: var(--delta-navy);
  line-height: 1.3;
}

.ts-view-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #335372;
}

.ts-key-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ts-info-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fbff;
  border: 1px solid #d9e7f5;
  border-radius: 15px;
  padding: 12px;
  color: #0984e3;
}

.ts-info-tile small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.ts-info-tile strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
  margin-top: 2px;
  line-height: 1.4;
}

.ts-facts-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
}

.ts-facts-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--delta-navy);
}

.ts-facts-box ul,
.ts-steps-list {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #2c4a66;
}

.ts-instructions-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}

/* Specialties & Doctors */
.ts-specialties-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ts-specialty-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.ts-specialty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #dce8f5;
  gap: 6px;
}

.spec-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spec-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spec-wing-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}

.ts-specialty-card strong {
  font-size: 14.5px;
  color: var(--delta-navy);
}

.ts-specialty-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.spec-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #0984e3;
  font-weight: 700;
  margin-top: 4px;
}

.doctors-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-doctor-card,
.ts-doctor-expanded-card {
  width: 100%;
  text-align: start;
  background: #ffffff;
  border: 1.5px solid #d8e6f4;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ts-doctor-expanded-card {
  flex-direction: column;
}

.doc-expanded-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.doc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-body,
.doc-expanded-info {
  flex: 1;
}

.doc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.fictional-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
}

.spec-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
}

.doc-body h4,
.doc-expanded-info h3 {
  margin: 3px 0;
  font-size: 16px;
  color: var(--delta-navy);
}

.doc-title-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.doc-sched,
.doc-loc {
  margin: 4px 0 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #2c4a66;
}

.doc-bio-text {
  margin: 4px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}

.doc-sessions-table {
  width: 100%;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 11px;
  margin-top: 6px;
}

.doc-sessions-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1e40af;
  margin-bottom: 8px;
}

.doc-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.session-pill-card {
  background: #ffffff;
  border: 1px solid #cfe2f6;
  border-radius: 11px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-day {
  font-size: 11.5px;
  font-weight: 700;
  color: #0984e3;
}

.session-time {
  font-size: 13px;
  color: var(--text-main);
}

.session-type {
  font-size: 11px;
  color: var(--text-muted);
}

.session-loc {
  font-size: 11px;
  color: #0f4c81;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* ==================== CONTRACTED INSURANCE ORGANIZATIONS ==================== */
.data-distinction-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.distinction-col {
  padding: 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.distinction-col p {
  margin: 6px 0 0;
}

.real-col {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.fictional-col {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.real-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
}

.fictional-ops-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.poster-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #d5e5f5;
  border-radius: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.poster-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poster-thumb {
  width: 46px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.poster-preview-info strong {
  display: block;
  font-size: 13px;
}

.poster-preview-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.poster-modal-inline {
  background: #0f172a;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.poster-modal-inline img {
  max-width: 100%;
  max-height: 460px;
  border-radius: 10px;
  object-fit: contain;
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.org-card {
  background: #ffffff;
  border: 1.5px solid #dce8f5;
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.org-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.org-card h4 {
  margin: 2px 0 0;
  font-size: 15.5px;
  color: var(--delta-navy);
}

.org-cat {
  margin: 0;
  font-size: 11.5px;
  color: #0984e3;
  font-weight: 600;
}

.org-desk-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f7ff;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #0c4a6e;
}

.org-hours {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.org-steps {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}

/* ==================== DELTA 1 & DELTA 2 ROOMS EXPLORER ==================== */
.buildings-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.building-summary-card {
  background: #f8fbff;
  border: 1.5px solid #cfe2f6;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.building-summary-card.active {
  background: #e6f4ff;
  border-color: #0984e3;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.14);
}

.b-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--delta-navy);
}

.b-card-head strong {
  font-size: 14px;
  flex: 1;
}

.b-count-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0984e3;
  color: #ffffff;
}

.building-summary-card.delta2 .b-count-pill {
  background: #0d9488;
}

.building-summary-card p {
  margin: 6px 0 3px;
  font-size: 12px;
  color: #1e3a5f;
  font-weight: 600;
}

.building-summary-card small {
  font-size: 11px;
  color: var(--text-muted);
}

.rooms-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-group button {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.filter-group button.active {
  background: #0984e3;
  color: #ffffff;
  border-color: #0984e3;
}

.duplicate-room-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 13px;
  color: #78350f;
  margin: 10px 0;
}

.duplicate-room-alert strong {
  display: block;
  font-size: 13.5px;
  color: #92400e;
}

.duplicate-room-alert p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #78350f;
}

.switch-building-btn {
  margin-top: 8px;
  background: #d97706;
  color: #ffffff;
  border-color: #b45309;
  font-size: 12px;
  min-height: 38px;
}

.or-floor-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f5f3ff;
  border: 1.5px solid #c4b5fd;
  border-radius: 16px;
  padding: 12px;
  color: #4c1d95;
  margin: 10px 0;
}

.or-floor-notice strong {
  display: block;
  font-size: 13px;
}

.or-floor-notice p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.rooms-results-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.room-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: start;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #dce8f5;
  gap: 8px;
}

.room-card.duplicate-highlight {
  border-width: 2px;
  border-color: #0984e3;
  background: #f8fbff;
}

.room-card-top,
.room-detail-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.building-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.building-pill.delta-1 {
  background: #dbeafe;
  color: #1e40af;
}

.building-pill.delta-2 {
  background: #ccfbf1;
  color: #115e59;
}

.category-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.category-pill.standard {
  background: #f1f5f9;
  color: #334155;
}

.category-pill.suite {
  background: #ede9fe;
  color: #5b21b6;
}

.category-pill.royal {
  background: #fef3c7;
  color: #92400e;
}

.room-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.room-number-title {
  font-size: 16px;
  color: var(--delta-navy);
}

.room-number-title small {
  font-size: 12px;
  color: #0984e3;
}

.room-floor-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.room-card-directions {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  color: #334155;
  background: #f8fafc;
  padding: 7px 9px;
  border-radius: 10px;
  line-height: 1.45;
}

/* ==================== LAB & PHARMACY CARDS ==================== */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.service-item-card {
  background: #ffffff;
  border: 1.5px solid #dce8f5;
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.service-kind-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.service-kind-badge.laboratory {
  background: #ccfbf1;
  color: #115e59;
}

.service-kind-badge.pharmacy {
  background: #e0f2fe;
  color: #0369a1;
}

.service-code {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.service-item-card h4 {
  margin: 2px 0;
  font-size: 15px;
  color: var(--delta-navy);
}

.service-meta {
  margin: 0;
  font-size: 12px;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 5px;
}

.service-prep {
  margin: 4px 0 0;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
}

/* Operating Theatres Highlight */
.or-floor-highlight-card {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.or-floor-highlight-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4c1d95;
}

.or-theatres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.or-unit-chip {
  background: #ffffff;
  border: 1px solid #c4b5fd;
  border-radius: 11px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.or-unit-chip b {
  font-size: 13px;
  color: #6d28d9;
}

.or-unit-chip span {
  font-size: 11.5px;
  color: #4c1d95;
}

/* Directions, Emergency & Help */
.direction-hero-card {
  background: #f0f8ff;
  border: 1.5px solid #bae6fd;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: #0369a1;
  margin: 10px 0;
}

.direction-hero-card h2 {
  margin: 8px 0 4px;
  font-size: 19px;
}

.emergency-hero-box {
  background: #fff1f2;
  border: 2px solid #fda4af;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  color: #881337;
}

.urgent-pulse-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.16);
}

.emergency-route-box {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}

.safety-disclaimer {
  display: block;
  font-size: 11.5px;
  color: #9f1239;
  line-height: 1.5;
}

.help-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.help-shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1.5px solid #d5e5f5;
  gap: 5px;
  color: #0984e3;
}

.help-shortcut-card strong {
  font-size: 14px;
  color: var(--delta-navy);
}

.help-shortcut-card small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.search-result-block {
  margin-top: 14px;
}

.search-result-block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: var(--delta-navy);
  margin: 0 0 8px;
}

.list-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-cards button {
  width: 100%;
  justify-content: flex-start;
  text-align: start;
  padding: 12px;
}

.list-card-copy {
  flex: 1;
}

.list-card-copy strong {
  display: block;
  font-size: 14px;
}

.list-card-copy small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==================== SPOKEN STATUS BAR & BOTTOM NAVIGATION DOCK ==================== */
.ts-spoken-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #f0f8ff;
  border-top: 1px solid #d5e6f7;
  min-height: 46px;
}

.ts-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.ts-status-dot.speaking {
  background: #0984e3;
  box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.22);
}

.ts-spoken-text {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #163e64;
  flex: 1;
  line-height: 1.4;
}

.ts-audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ts-audio-wave i {
  width: 3px;
  height: 12px;
  background: #0984e3;
  border-radius: 2px;
  animation: waveBar 0.55s infinite ease-in-out alternate;
}

.ts-audio-wave i:nth-child(2) {
  animation-delay: 0.15s;
}
.ts-audio-wave i:nth-child(3) {
  animation-delay: 0.3s;
}
.ts-audio-wave i:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes waveBar {
  from {
    height: 4px;
  }
  to {
    height: 14px;
  }
}

.ts-replay-mini {
  min-height: 30px;
  width: 30px;
  padding: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #0984e3;
  flex-shrink: 0;
}

.ts-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px 8px 8px;
  background: #ffffff;
  border-top: 1px solid #dce8f4;
  box-shadow: 0 -4px 16px rgba(15, 41, 66, 0.05);
}

.ts-bottom-nav button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  flex-direction: column;
  gap: 3px;
  min-height: 48px;
  padding: 5px 4px;
  font-size: 10.5px;
  color: #476785;
}

.ts-bottom-nav button.active {
  background: #eff6ff;
  color: #0984e3;
}

.ts-bottom-nav button.muted {
  color: #e11d48;
  background: #fff1f2;
}

.ts-bottom-nav button.nav-robot-highlight {
  background: #f0f9ff;
  color: #0284c7;
}

@media (max-width: 420px) {
  .ts-department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ts-dept-card {
    padding: 11px 10px;
    min-height: 128px;
  }
  .ts-dept-title {
    font-size: 13.5px;
  }
  .icon-action-btn span {
    display: none;
  }
  .opening-secondary-btns {
    grid-template-columns: 1fr;
  }
}


/* Mobile viewport precision polish (360px - 430px) */
@media (max-width: 480px) {
  .app-mode-bar {
    padding: 6px 8px;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .app-mode-brand span {
    display: none;
  }
  .mode-bar-logo {
    width: 26px;
    height: 26px;
  }
  .app-mode-tabs {
    flex: 1;
    justify-content: center;
    gap: 2px;
    padding: 2px;
  }
  .app-mode-tabs button {
    flex: 1;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }
  .app-mode-utils {
    gap: 4px;
  }
  .util-pill {
    min-height: 28px;
    padding: 3px 6px;
    font-size: 10.5px;
    gap: 3px;
  }
  .app-mode-tabs button svg {
    width: 13px;
    height: 13px;
  }
  .ts-header {
    padding: 8px 10px;
    gap: 6px;
  }
  .ts-logo {
    width: 38px;
    height: 38px;
  }
  .ts-brand-text h2 {
    font-size: 13.5px;
  }
  .ts-mini-face-btn {
    padding: 3px 7px 3px 5px;
    min-height: 34px;
    gap: 5px;
  }
  .ts-mini-face-Wrap {
    width: 36px;
    height: 26px;
  }
  .ts-mini-face-label b {
    font-size: 10px;
  }
  .ts-mini-face-label small {
    font-size: 8.5px;
  }
  .icon-action-btn {
    min-height: 34px;
    padding: 5px 7px;
  }
}
