/* ========================================================================
   CALLORIA / FLOORSHIFT 3D v8.14.0
   Application-wide mobile-first layout layer.
   Loaded last on every Vite HTML entry by calloria-mobile-first-rebuild.
   ======================================================================== */

:root {
  --calloria-mobile-gutter: clamp(12px, 3.8vw, 22px);
  --calloria-mobile-nav-height: calc(62px + env(safe-area-inset-bottom, 0px));
  --calloria-mobile-header-height: 58px;
  --calloria-visual-height: 100dvh;
  --calloria-tap-target: 44px;
}

html {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--calloria-mobile-header-height) + 12px);
  scroll-padding-bottom: calc(var(--calloria-mobile-nav-height) + 12px);
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }

img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; }
button, [role="button"], input[type="button"], input[type="submit"] { touch-action: manipulation; }
button { min-width: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #55dec8 !important;
  outline-offset: 2px;
}

:where(p, small, strong, span, label, a, button, td, th) { overflow-wrap: anywhere; }

/* The app's many independently styled workspaces share the same safe box. */
:where(
  .app-shell, .calloria-shell, .desk-shell, .care-shell, .perf-shell,
  .wfm-shell, .shell, .page-shell, .workspace-shell, .operations-shell
) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

:where(
  main, .main-area, .content-wrap, .workspace, .workspace-body,
  .care-layout, .page-content, .page-body, .desk-content, .work-area
) { min-width: 0; max-width: 100%; }

:where(
  .panel, .card, .metric-card, .queue-panel, .login-card, .login-wrap,
  .login-panel, .workspace-panel, .care-panel, .perf-panel, .wfm-panel,
  .call-panel, .digital-panel, .modal-content, .dialog-content
) { min-width: 0; max-width: 100%; }

:where(input, select, textarea, button, .button, .btn, .primary-button, .secondary-button) {
  max-width: 100%;
}

/* Desktop navigation is converted to a controlled drawer, not squeezed. */
.calloria-mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(130, 170, 185, .3);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.calloria-mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.calloria-mobile-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.calloria-mobile-table-scroll table { min-width: 620px; width: 100%; }
.calloria-mobile-table-scroll:focus-visible { outline-offset: -3px; }

/* Large tablet and compact laptop. */
@media (max-width: 1024px) {
  :where(
    .desk-grid, .care-layout, .perf-grid, .wfm-grid, .call-layout,
    .workspace-grid, .digital-workspace, .wrapup-layout, .ops-grid,
    .case-layout, .customer-layout, .voice-grid, .knowledge-grid,
    .support-grid, .routing-grid, .command-centre-grid, .dashboard-grid,
    .inspector-grid, .main-grid, .content-grid, .two-column-layout
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(.desk-grid, .care-layout, .perf-grid, .wfm-grid, .call-layout,
    .workspace-grid, .digital-workspace, .wrapup-layout) > * { min-width: 0; }

  :where(.topnav, .perf-nav, .wfm-nav, .care-nav, .header-meta, .desk-nav,
    .page-nav, .staff-nav) { min-width: 0; }
}

/* Phone / touch tablet. */
@media (max-width: 900px) {
  body { font-size: 14px; }

  :where(.app-shell, .calloria-shell, .desk-shell, .care-shell, .perf-shell,
    .wfm-shell, .shell, .page-shell, .workspace-shell, .operations-shell) {
    min-height: 100svh;
    min-height: 100dvh;
  }

  :where(.topbar, .care-header, .perf-topbar, .wfm-topbar) {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: var(--calloria-mobile-header-height);
    padding: max(7px, env(safe-area-inset-top)) var(--calloria-mobile-gutter) 7px;
  }

  :where(.topbar, .care-header, .perf-topbar, .wfm-topbar) > :first-child { min-width: 0; }
  :where(.brand, .care-brand, .perf-brand, .wfm-brand, .brand-lockup) {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .calloria-mobile-menu-toggle { display: inline-flex; order: 3; }

  :where(.topnav, .perf-nav, .wfm-nav, .care-nav, .header-meta, .desk-nav,
    .page-nav, .staff-nav)[data-calloria-mobile-menu="true"] {
    display: none !important;
    position: fixed !important;
    z-index: 1200 !important;
    top: calc(var(--calloria-mobile-header-height) + env(safe-area-inset-top, 0px) + 6px) !important;
    right: var(--calloria-mobile-gutter) !important;
    left: var(--calloria-mobile-gutter) !important;
    width: auto !important;
    max-width: 520px;
    max-height: calc(100dvh - var(--calloria-mobile-header-height) - 28px - env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    padding: 10px;
    overflow: auto;
    overscroll-behavior: contain;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    border: 1px solid rgba(125, 165, 180, .28);
    border-radius: 16px;
    background: #0c1d2b;
    color: #eaf3f5;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
  }

  body[data-calloria-mobile-menu-open] :where(.topnav, .perf-nav, .wfm-nav,
    .care-nav, .header-meta, .desk-nav, .page-nav, .staff-nav)[data-calloria-mobile-menu="true"] {
    display: flex !important;
  }

  :where(.topnav, .perf-nav, .wfm-nav, .care-nav, .header-meta, .desk-nav,
    .page-nav, .staff-nav)[data-calloria-mobile-menu="true"] a,
  :where(.topnav, .perf-nav, .wfm-nav, .care-nav, .header-meta, .desk-nav,
    .page-nav, .staff-nav)[data-calloria-mobile-menu="true"] button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 10px;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
  }

  :where(.main-area, .content-wrap, .care-layout, .desk-shell > main,
    .perf-shell > main, .wfm-shell > main, .shell > main, .page-content) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0 !important;
    padding: 14px var(--calloria-mobile-gutter) calc(18px + env(safe-area-inset-bottom));
  }

  :where(.app-shell, .calloria-shell) .main-area {
    padding-bottom: calc(var(--calloria-mobile-nav-height) + 18px) !important;
  }

  /* Convert the 15-item game sidebar into a swipeable bottom dock. */
  .calloria-shell > .sidebar,
  .app-shell > .sidebar {
    position: fixed !important;
    z-index: 1000 !important;
    inset: auto 0 0 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 4px;
    width: 100% !important;
    height: var(--calloria-mobile-nav-height) !important;
    min-height: var(--calloria-mobile-nav-height) !important;
    max-height: var(--calloria-mobile-nav-height) !important;
    margin: 0 !important;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 0 !important;
    border-top: 1px solid rgba(145, 185, 198, .22) !important;
    border-radius: 0 !important;
    background: rgba(6, 18, 29, .97) !important;
    backdrop-filter: blur(18px);
  }
  .calloria-shell > .sidebar::-webkit-scrollbar,
  .app-shell > .sidebar::-webkit-scrollbar { display: none; }
  .sidebar > .side-section-label,
  .sidebar > .sidebar-bottom { display: none !important; }
  .sidebar > .nav-item {
    display: flex !important;
    position: relative;
    flex: 0 0 58px;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 58px;
    min-height: 48px;
    height: 48px;
    margin: 0 !important;
    padding: 4px 3px !important;
    border-radius: 10px !important;
    font-size: 9px !important;
    line-height: 1.1;
    white-space: nowrap;
  }
  .sidebar > .nav-item .nav-icon { display: block; font-size: 17px; line-height: 1; }
  .sidebar > .nav-item > span:not(.nav-icon):not(.nav-count) { display: none !important; }
  .sidebar > .nav-item .nav-count { position: absolute; top: 1px; right: 4px; }

  :where(.workspace-heading, .page-heading, .perf-heading, .wfm-heading,
    .panel-head, .call-head, .care-heading) {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  :where(.workspace-heading, .page-heading, .perf-heading, .wfm-heading) > :first-child {
    flex: 1 1 100%;
    min-width: 0;
  }
  :where(h1) { font-size: clamp(23px, 6vw, 32px); line-height: 1.14; }
  :where(h2) { font-size: clamp(18px, 4.7vw, 24px); line-height: 1.2; }
  :where(h3) { line-height: 1.25; }
  :where(p) { max-width: 100%; line-height: 1.55; }

  /* Every major operational workspace becomes a vertical work stack. */
  :where(
    .desk-grid, .care-layout, .perf-grid, .wfm-grid, .call-layout,
    .workspace-grid, .digital-workspace, .wrapup-layout, .ops-grid,
    .case-layout, .customer-layout, .voice-grid, .knowledge-grid,
    .support-grid, .routing-grid, .command-centre-grid, .dashboard-grid,
    .inspector-grid, .main-grid, .content-grid, .two-column-layout,
    .queue-workspace, .agent-workspace, .message-workspace, .case-workspace
  ) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    gap: 12px !important;
  }

  :where(.metric-row, .perf-metrics, .wfm-metrics, .metric-grid,
    .ops-summary-grid, .supervisor-escalation-metrics, .digital-channel-grid,
    .stats-grid, .game-stats-bar, .queue-metrics, .summary-metrics) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }
  :where(.metric-row, .perf-metrics, .wfm-metrics, .metric-grid,
    .ops-summary-grid, .supervisor-escalation-metrics, .digital-channel-grid,
    .stats-grid, .game-stats-bar, .queue-metrics, .summary-metrics) > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  :where(.form-grid, .form-row, .setup-controls, .career-actions,
    .activity-buttons, .filter-row, .search-row) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    gap: 10px !important;
  }

  :where(.panel, .card, .login-card, .login-panel, .queue-panel,
    .workspace-panel, .perf-panel, .wfm-panel, .call-panel, .care-panel,
    .metric-card, .campaign-card, .case-card, .customer-card) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: clamp(12px, 3.5vw, 17px);
    border-radius: 14px;
  }

  :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: var(--calloria-tap-target);
    font-size: 16px !important;
    line-height: 1.4;
  }
  :where(textarea) { min-height: 112px; }
  :where(button, .button, .btn, .perf-button, .wfm-button,
    .game-primary-button, .game-secondary-button, .touch-game-button) {
    min-height: var(--calloria-tap-target);
    max-width: 100%;
    white-space: normal;
  }
  :where(.button-row, .actions, .form-actions, .panel-actions,
    .composer-foot, .call-actions, .digital-composer-foot, .outbound-live-reply-foot) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }
  :where(.button-row, .actions, .form-actions, .panel-actions,
    .composer-foot, .call-actions, .digital-composer-foot, .outbound-live-reply-foot) > button {
    flex: 1 1 132px;
  }

  :where(.queue-contact-row, .digital-queue-row, .case-followup-queue-row,
    .timeline-row, .data-row, .customer-result-row) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }
  :where(.queue-contact-main, .digital-queue-main, .case-followup-queue-copy,
    .timeline-row > div) { min-width: 0; }
  :where(.queue-contact-main small, .digital-queue-main small) {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  :where(.queue-wait, .priority-label, .digital-queue-meta) {
    justify-self: start;
    white-space: normal;
  }

  :where(.digital-side-stack, .case-detail-grid, .customer-facts,
    .case-followup-facts, .knowledge-card-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  :where(.modal, .dialog, dialog, .modal-dialog, .modal-content,
    .assessment-modal, .overlay-panel) {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
  }

  /* Game launch and the 3D world use the real available phone height. */
  body.calloria-game-launch .world-panel {
    min-height: 0 !important;
    height: var(--calloria-visual-height) !important;
    max-height: var(--calloria-visual-height) !important;
  }
  body.calloria-game-launch #gameLaunchScreen {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: max(12px, env(safe-area-inset-top)) var(--calloria-mobile-gutter) max(12px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  body.calloria-game-launch .game-launch-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  body.calloria-game-launch .game-launch-account {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  body.calloria-game-launch .game-launch-account > * { flex: 1 1 120px; min-width: 0; }
  body.calloria-game-launch .game-launch-copy { width: 100%; max-width: 100%; align-self: center; }
  body.calloria-game-launch .game-launch-copy h1 { font-size: clamp(34px, 10vw, 56px); line-height: .98; }
  body.calloria-game-launch .game-launch-copy p { max-width: 44ch; }
  body.calloria-game-launch .game-launch-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.calloria-game-launch .game-launch-actions > button { width: 100%; min-width: 0; }
  body.calloria-game-launch .game-launch-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  body.calloria-game-launch .game-stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.calloria-game-launch .game-stat { min-width: 0; padding: 8px 5px; }
  body.calloria-game-launch .game-stat strong { font-size: clamp(18px, 6vw, 25px); }
  body.calloria-game-launch .game-stat span { font-size: 8px; letter-spacing: .05em; }

  body.calloria-game-playing .world-panel,
  body.calloria-game-playing #worldCanvas { width: 100%; max-width: 100%; }
  body.calloria-game-playing .touch-controls {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  body.calloria-game-playing .touch-joystick { width: clamp(76px, 22vw, 100px); height: clamp(76px, 22vw, 100px); }
  body.calloria-game-playing .touch-joystick-knob { width: 36px; height: 36px; }
  body.calloria-game-playing .touch-game-button { min-width: 52px; min-height: 52px; }
  body.calloria-game-playing .station-panel {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(116px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(48dvh, 390px) !important;
    overflow: auto !important;
  }

  /* Assessment controls remain visible, large enough and below question text. */
  :where(.assessment-layout, .assessment-workspace, .aptitude-layout,
    .practical-call-layout, .candidate-layout, .recruitment-layout) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100%;
  }
  :where(.assessment-actions, .assessment-footer, .question-actions,
    .test-navigation, .candidate-actions) {
    position: sticky;
    bottom: calc(var(--calloria-mobile-nav-height) + 8px);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(7, 18, 29, .96);
    border: 1px solid rgba(150, 185, 200, .18);
    border-radius: 13px;
    backdrop-filter: blur(14px);
  }
  :where(.assessment-actions, .assessment-footer, .question-actions,
    .test-navigation, .candidate-actions) > button { flex: 1 1 120px; }

  /* Responsive tables and dense operational timelines. */
  :where(.data-table, table) { font-size: 12px; }
  :where(th, td) { padding: 9px 8px; vertical-align: top; }
  :where(.table-responsive, .table-wrap, .table-container) {
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* Do not let decorative fixed widgets cover the primary action area. */
  :where(.toast, .toast-container, .notification-stack) {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* Narrow phones: 320–375 px. */
@media (max-width: 375px) {
  :root { --calloria-mobile-gutter: 11px; }
  :where(.metric-row, .perf-metrics, .wfm-metrics, .metric-grid,
    .ops-summary-grid, .supervisor-escalation-metrics, .digital-channel-grid,
    .stats-grid, .game-stats-bar, .queue-metrics, .summary-metrics) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  :where(.digital-side-stack, .case-detail-grid, .customer-facts,
    .case-followup-facts, .knowledge-card-grid) { grid-template-columns: minmax(0, 1fr) !important; }
  :where(.brand-caption, .care-brand small, .perf-brand small, .wfm-brand small) { display: none; }
  :where(.panel, .card, .login-card, .queue-panel) { padding: 11px; }
  :where(.nav-item) { min-width: 54px; flex-basis: 54px; }
  body.calloria-game-launch .game-launch-copy h1 { font-size: clamp(31px, 10vw, 40px); }
}

/* Larger phones: 376–600 px keep useful two-up metric cards. */
@media (min-width: 376px) and (max-width: 600px) {
  :where(.metric-row, .perf-metrics, .wfm-metrics, .metric-grid,
    .ops-summary-grid, .supervisor-escalation-metrics, .digital-channel-grid,
    .stats-grid, .game-stats-bar, .queue-metrics, .summary-metrics) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Short landscape phones: preserve usable controls without pinning a tall dock. */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  :root { --calloria-mobile-header-height: 46px; --calloria-mobile-nav-height: 50px; }
  :where(.topbar, .care-header, .perf-topbar, .wfm-topbar) { min-height: 46px; }
  .calloria-shell > .sidebar, .app-shell > .sidebar {
    height: var(--calloria-mobile-nav-height) !important;
    min-height: var(--calloria-mobile-nav-height) !important;
    max-height: var(--calloria-mobile-nav-height) !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  .sidebar > .nav-item { min-height: 44px; height: 44px; }
  body.calloria-game-playing .station-panel { max-height: 38dvh !important; bottom: calc(94px + env(safe-area-inset-bottom)) !important; }
  body.calloria-game-playing .touch-joystick { width: 68px; height: 68px; }
  body.calloria-game-playing .touch-game-button { min-width: 46px; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ========================================================================
   v8.14.2 — PHONE NAVIGATION + WORKSPACE LAYOUT REPAIR
   Exact selectors are based on the current CALLORIA main/index + staff page
   structures. This layer is loaded after each page stylesheet by Vite.
   ======================================================================== */
:root {
  --calloria-phone-gutter: clamp(10px, 3.2vw, 16px);
  --calloria-phone-dock: calc(68px + env(safe-area-inset-bottom, 0px));
  --calloria-phone-hit: 44px;
}
html, body { max-width:100%; min-width:0; overflow-x:clip; }
body { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body, body * { min-width:0; }
img, svg, video, canvas { max-width:100%; }
button, input, select, textarea, a { -webkit-tap-highlight-color:transparent; }
button, [role="button"], a, input, select, textarea { touch-action:manipulation; }
:where(button, [role="button"], input, select, textarea, a.button, a.btn) { scroll-margin-block:12px; }
:where(input, select, textarea) { max-width:100%; }
:where(p, label, small, strong, span, a, button, td, th) { overflow-wrap:anywhere; }

/* ---------- Main simulator: a usable five-action dock + expandable menu. */
.calloria-mobile-drawer-backdrop {
  display:none;
  position:fixed;
  z-index:998;
  inset:0;
  border:0;
  border-radius:0;
  background:rgba(1,8,14,.68);
  backdrop-filter:blur(3px);
}
.calloria-mobile-more {
  display:none;
  align-items:center;
  justify-content:center;
  flex:1 1 0;
  flex-direction:column;
  gap:3px;
  min-width:0;
  min-height:52px;
  height:52px;
  margin:0;
  padding:4px 2px;
  border:1px solid rgba(145,185,198,.18);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  color:#d8edf0;
  font:800 8px/1.15 system-ui,sans-serif;
  cursor:pointer;
}
.calloria-mobile-more .calloria-mobile-more-icon { font-size:18px; line-height:1; }
@media (max-width:760px) {
  .calloria-shell .main-area,
  .calloria-shell .content-wrap { width:100%; max-width:100%; min-width:0; margin-left:0 !important; }

  .app-shell.calloria-shell { width:100%; max-width:100%; min-width:0; }

  /* Keep the 3D game dock compact. Do not squeeze fifteen controls into it. */
  .calloria-shell .sidebar {
    position:fixed !important;
    z-index:1000 !important;
    inset:auto 6px max(6px,env(safe-area-inset-bottom)) 6px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:stretch !important;
    justify-content:space-between !important;
    gap:3px !important;
    width:auto !important;
    height:var(--calloria-phone-dock) !important;
    min-height:var(--calloria-phone-dock) !important;
    max-height:var(--calloria-phone-dock) !important;
    padding:5px 5px calc(5px + env(safe-area-inset-bottom)) !important;
    overflow:hidden !important;
    border:1px solid rgba(145,185,198,.25) !important;
    border-radius:16px !important;
    background:rgba(5,17,27,.97) !important;
    box-shadow:0 12px 36px rgba(0,0,0,.42) !important;
    backdrop-filter:blur(18px);
  }
  .calloria-shell .sidebar > .side-section-label,
  .calloria-shell .sidebar > .sidebar-bottom,
  .calloria-shell .sidebar > .nav-item:not([data-calloria-mobile-primary="true"]) { display:none !important; }
  .calloria-shell .sidebar > .nav-item[data-calloria-mobile-primary="true"] {
    display:flex !important;
    position:relative;
    flex:1 1 0 !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:52px !important;
    min-height:52px !important;
    margin:0 !important;
    padding:3px 1px !important;
    border-radius:10px !important;
    font-size:8px !important;
    line-height:1.1 !important;
    white-space:normal !important;
    text-align:center !important;
  }
  .calloria-shell .sidebar > .nav-item[data-calloria-mobile-primary="true"] .nav-icon {
    display:block !important;
    font-size:17px !important;
    line-height:1 !important;
  }
  .calloria-shell .sidebar > .nav-item[data-calloria-mobile-primary="true"] > span:not(.nav-icon):not(.nav-count) {
    display:block !important;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:8px !important;
  }
  .calloria-shell .sidebar > .nav-item .nav-count { top:0 !important; right:1px !important; }
  .calloria-shell .sidebar > .calloria-mobile-more { display:flex !important; }
  .calloria-shell .main-area { padding-bottom:calc(var(--calloria-phone-dock) + 16px) !important; }
  body.calloria-game-launch .calloria-shell > .sidebar,
  body.calloria-assessment-mode .calloria-shell > .sidebar { display:none !important; }

  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] {
    inset:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom)) 8px !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:minmax(44px,auto);
    align-content:start !important;
    justify-content:stretch !important;
    gap:7px !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:12px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    border-radius:18px !important;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .side-section-label {
    display:block !important;
    grid-column:1/-1;
    align-self:end;
    padding:9px 4px 2px;
    color:#72dccc;
    font-size:9px;
    font-weight:900;
    letter-spacing:1px;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .nav-item {
    display:flex !important;
    flex:initial !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:48px !important;
    height:auto !important;
    margin:0 !important;
    padding:10px !important;
    border:1px solid rgba(145,185,198,.16) !important;
    border-radius:11px !important;
    font-size:11px !important;
    line-height:1.25 !important;
    text-align:left !important;
    white-space:normal !important;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .nav-item .nav-icon {
    display:inline-flex !important;
    flex:0 0 22px;
    justify-content:center;
    font-size:17px !important;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .nav-item > span:not(.nav-icon):not(.nav-count) {
    display:block !important;
    flex:1 1 auto;
    white-space:normal !important;
    font-size:11px !important;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .sidebar-bottom {
    display:block !important;
    grid-column:1/-1;
    padding-top:8px;
  }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] > .calloria-mobile-more {
    grid-column:1/-1;
    order:-1;
    flex:initial !important;
    min-height:44px;
    height:44px;
    flex-direction:row;
    justify-content:flex-start;
    padding-inline:12px;
    font-size:11px;
  }
  .calloria-shell:has(.sidebar[data-calloria-mobile-expanded="true"]) .calloria-mobile-drawer-backdrop {
    display:block;
  }

  /* Assessment is a focused single-task screen; keep actions clear of the dock. */
  body.calloria-assessment-mode .content-wrap {
    padding:12px var(--calloria-phone-gutter) calc(18px + env(safe-area-inset-bottom)) !important;
  }
  body.calloria-assessment-mode .assessment-layout,
  body.calloria-assessment-mode .assessment-workspace,
  body.calloria-assessment-mode .practical-call-layout {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    gap:10px !important;
  }
  body.calloria-assessment-mode .assessment-footer,
  body.calloria-assessment-mode .assessment-actions,
  body.calloria-assessment-mode .test-navigation {
    position:sticky !important;
    bottom:calc(6px + env(safe-area-inset-bottom)) !important;
    z-index:90 !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
    margin-top:12px;
    padding:10px !important;
    border:1px solid rgba(110,160,175,.25);
    border-radius:13px;
    background:rgba(7,18,29,.97);
    box-shadow:0 8px 24px rgba(0,0,0,.22);
  }
  body.calloria-assessment-mode .assessment-footer > button,
  body.calloria-assessment-mode .assessment-actions > button,
  body.calloria-assessment-mode .test-navigation > button { width:100% !important; min-height:48px !important; }

  /* Agent Desk: real three-panel desktop workspace becomes a deliberate stack. */
  .desk-shell { width:100% !important; max-width:none !important; padding:0 var(--calloria-phone-gutter) 22px !important; }
  .desk-shell > .topbar {
    position:sticky !important;
    top:0 !important;
    z-index:90 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    min-height:58px !important;
    height:auto !important;
    padding:7px 0 !important;
    background:rgba(7,18,29,.97);
  }
  .desk-shell .brand { flex:1 1 auto; min-width:0; }
  .desk-shell .brand b { font-size:12px; }
  .desk-shell .brand small { font-size:8px; }
  .desk-shell .workspace-heading { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:12px !important; padding:18px 0 14px !important; }
  .desk-shell .staff-panel { width:100% !important; min-width:0 !important; }
  .desk-shell .metric-row { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .desk-shell .metric-row article { min-width:0; padding:11px !important; }
  .desk-shell .metric-row article:last-child { grid-column:1/-1; }
  .desk-shell .desk-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:11px !important; }
  .desk-shell .queue-panel { order:1; }
  .desk-shell .interaction-panel { order:2; min-height:0 !important; }
  .desk-shell .tools-panel { order:3; grid-column:auto !important; }
  .desk-shell .queue-list { max-height:min(38dvh,320px) !important; }
  .desk-shell .item-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  .desk-shell .panel { min-width:0 !important; padding:12px !important; }
  .desk-shell .panel-head { align-items:flex-start !important; flex-wrap:wrap !important; }
  .desk-shell .item-title-row { align-items:flex-start !important; flex-wrap:wrap !important; }
  .desk-shell .control-buttons > button { flex:1 1 130px; min-height:46px !important; }
  .desk-shell .quick-links { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .desk-shell .two-col { grid-template-columns:minmax(0,1fr) !important; }
  .desk-shell .login-wrap { min-height:calc(100svh - 58px); padding:18px 0; }
  .desk-shell .login-card { width:100% !important; max-width:460px; padding:clamp(16px,5vw,24px) !important; }

  /* Performance & Career: scorecards, promotion actions and reviews. */
  .perf-shell { width:100% !important; max-width:none !important; padding:0 var(--calloria-phone-gutter) 24px !important; }
  .perf-shell > .perf-topbar, .wfm-shell > .wfm-topbar {
    position:sticky !important; top:0 !important; z-index:90 !important;
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; gap:8px !important; min-height:58px !important; height:auto !important;
    padding:7px 0 !important; background:rgba(7,18,29,.97);
  }
  .perf-brand, .wfm-brand { flex:1 1 auto; min-width:0; }
  .perf-brand b, .wfm-brand b { font-size:12px; }
  .perf-brand small, .wfm-brand small { font-size:8px; }
  .perf-shell .perf-heading, .wfm-shell .wfm-heading {
    display:flex !important; flex-direction:column !important; align-items:stretch !important;
    gap:11px !important; padding:18px 0 14px !important;
  }
  .perf-shell .perf-staff-pill, .wfm-shell .wfm-staff-pill { width:100%; min-width:0; }
  .perf-shell .perf-metrics, .wfm-shell .wfm-metrics {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important;
  }
  .perf-shell .perf-metrics > *, .wfm-shell .wfm-metrics > * { min-width:0; padding:11px !important; }
  .perf-shell .perf-columns, .wfm-shell .wfm-grid {
    display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:11px !important;
  }
  .perf-shell .perf-panel, .wfm-shell .wfm-panel { min-width:0 !important; padding:12px !important; }
  .perf-shell .career-actions { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:9px !important; }
  .perf-shell .career-actions > * { width:100% !important; min-width:0 !important; }
  .perf-shell .panel-head, .wfm-shell .wfm-panel-head { align-items:flex-start !important; flex-wrap:wrap !important; gap:8px !important; }
  .perf-shell .table-wrap, .wfm-shell .table-wrap { width:100%; max-width:100%; overflow-x:auto !important; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
  .perf-shell .table-wrap table, .wfm-shell .table-wrap table { min-width:610px; }
  .perf-shell .perf-login-wrap, .wfm-shell .wfm-login-wrap { min-height:calc(100svh - 58px); padding:18px 0; }
  .perf-shell .perf-login-card, .wfm-shell .wfm-login-card { width:100% !important; max-width:480px; padding:clamp(16px,5vw,24px) !important; }

  /* Workforce: activity choices and clock controls remain thumb-operable. */
  .wfm-shell .activity-buttons { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .wfm-shell .activity-buttons > button { min-width:0 !important; min-height:48px !important; padding:9px 7px !important; white-space:normal !important; }
  .wfm-shell .shift-actions { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .wfm-shell .shift-actions > button { min-height:48px !important; }

  /* Customer Care: product portfolio and conversation area stack predictably. */
  .care-shell { width:100% !important; max-width:none !important; padding:0 var(--calloria-phone-gutter) 22px !important; }
  .care-shell > .care-header {
    position:sticky !important; top:0 !important; z-index:90 !important;
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; gap:8px !important; min-height:58px !important; height:auto !important;
    padding:7px 0 !important; background:rgba(7,18,29,.97);
  }
  .care-shell .care-brand { flex:1 1 auto; min-width:0; }
  .care-shell .care-brand strong { font-size:12px; }
  .care-shell .care-brand small { font-size:7px; }
  .care-shell .care-layout { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
  .care-shell .portfolio-panel, .care-shell .assistant-panel { width:100% !important; min-width:0 !important; padding:13px !important; }
  .care-shell .platform-list { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:8px !important; }
  .care-shell .platform-card { display:grid !important; grid-template-columns:36px minmax(0,1fr) auto !important; align-items:center; gap:9px !important; min-width:0; }
  .care-shell .assistant-heading { align-items:flex-start !important; gap:10px !important; }
  .care-shell .topic-grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  .care-shell .topic-chip { min-width:0 !important; min-height:48px !important; white-space:normal !important; }

  /* Cross-page rules for the other 15 Vite workspaces. */
  :where(main, .main, .page-content, .page-body, .desk-content, .workspace-body,
    .ops-main, .router-main, .case-main, .knowledge-main, .voice-main, .inbox-main) {
    width:100% !important; max-width:100% !important; min-width:0 !important;
  }
  :where(.grid, .two-column, .two-col, .split-layout, .queue-workspace,
    .message-workspace, .case-layout, .customer-layout, .voice-grid,
    .knowledge-grid, .support-grid, .routing-grid, .dashboard-grid,
    .command-centre-grid, .inspector-grid, .ops-grid, .digital-workspace) {
    grid-template-columns:minmax(0,1fr) !important;
    min-width:0 !important;
  }
  :where(.panel, .card, .workspace-panel, .queue-panel, .call-panel,
    .digital-panel, .case-panel, .knowledge-panel, .perf-panel,
    .wfm-panel, .care-panel, .assistant-panel, .portfolio-panel) {
    min-width:0 !important; max-width:100% !important;
  }
  :where(.form-grid, .form-row, .filter-row, .search-row, .setup-controls) {
    grid-template-columns:minmax(0,1fr) !important; min-width:0 !important;
  }
  :where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    min-height:var(--calloria-phone-hit) !important; font-size:16px !important;
  }
  :where(button, .button, .btn, .perf-button, .wfm-button) { min-height:var(--calloria-phone-hit); max-width:100%; }
  :where(.button-row, .actions, .form-actions, .panel-actions, .call-actions,
    .composer-actions, .composer-foot, .digital-composer-foot) {
    display:flex !important; flex-wrap:wrap !important; gap:8px !important; min-width:0;
  }
  :where(.button-row, .actions, .form-actions, .panel-actions, .call-actions,
    .composer-actions, .composer-foot, .digital-composer-foot) > button { flex:1 1 128px; }
  :where(.table-wrap, .table-responsive, .table-container, .table-scroll) {
    display:block; width:100%; max-width:100%; overflow-x:auto !important;
    overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch;
  }
  :where(.table-wrap, .table-responsive, .table-container, .table-scroll) table { min-width:580px; }
  :where(.modal, .dialog, dialog, .modal-content, .modal-dialog, .overlay-panel) {
    width:min(calc(100% - 16px),620px) !important; max-width:calc(100vw - 16px) !important;
    max-height:calc(var(--calloria-visual-height, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow:auto !important; overscroll-behavior:contain;
  }
  :where(.modal-backdrop, .overlay, .dialog-backdrop) { padding:8px !important; }
  :where(.toast-host, .toast-container, .notification-stack) {
    left:8px !important; right:8px !important; width:auto !important; max-width:none !important;
    bottom:calc(var(--calloria-phone-dock) + 10px) !important;
  }
  body[data-calloria-keyboard-open="true"] :where(.composer, .message-composer, .reply-composer, .digital-composer) {
    scroll-margin-bottom:calc(var(--calloria-keyboard-inset, 0px) + 16px);
  }
}

/* Tablet: preserve useful side-by-side panels only where space is sufficient. */
@media (min-width:761px) and (max-width:1024px) {
  .desk-shell .desk-grid { grid-template-columns:minmax(220px,.85fr) minmax(0,1.5fr) !important; }
  .desk-shell .tools-panel { grid-column:1/-1; }
  .perf-shell .perf-columns, .wfm-shell .wfm-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .care-shell .care-layout { grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr) !important; }
}

/* 320–359 px phones: no two-column controls and tighter copy. */
@media (max-width:359px) {
  :root { --calloria-phone-gutter:9px; }
  .calloria-shell .sidebar > .nav-item[data-calloria-mobile-primary="true"] > span:not(.nav-icon):not(.nav-count) { font-size:7px !important; }
  .desk-shell .metric-row, .perf-shell .perf-metrics, .wfm-shell .wfm-metrics,
  .wfm-shell .activity-buttons, .care-shell .topic-grid { grid-template-columns:minmax(0,1fr) !important; }
  .desk-shell .metric-row article:last-child { grid-column:auto; }
  .care-shell .platform-card { grid-template-columns:30px minmax(0,1fr) !important; }
  .care-shell .platform-card .external { display:none; }
}

/* Landscape phones: avoid full-height menus and preserve the interaction controls. */
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse) {
  :root { --calloria-phone-dock:54px; }
  .calloria-shell .sidebar { height:54px !important; min-height:54px !important; max-height:54px !important; }
  .calloria-shell .sidebar > .nav-item[data-calloria-mobile-primary="true"],
  .calloria-shell .sidebar > .calloria-mobile-more { height:44px !important; min-height:44px !important; }
  .calloria-shell .sidebar[data-calloria-mobile-expanded="true"] { inset:6px !important; }
  .desk-shell .queue-list { max-height:30dvh !important; }
  .care-shell .care-header, .desk-shell > .topbar, .perf-shell > .perf-topbar, .wfm-shell > .wfm-topbar { min-height:48px !important; }
  body.calloria-game-playing .touch-joystick { width:76px !important; height:76px !important; }
  body.calloria-game-playing .touch-game-button.interact { width:50px !important; height:54px !important; }
}

/* Optional QA overlay appears only with ?mobileaudit=1. */
.calloria-mobile-audit-toggle {
  position:fixed; z-index:10002; top:max(8px,env(safe-area-inset-top)); right:8px;
  min-width:44px; min-height:40px; padding:8px 10px;
  border:1px solid rgba(91,220,198,.55); border-radius:10px;
  background:rgba(6,21,31,.96); color:#aaf3e4;
  font:800 10px/1.2 system-ui,sans-serif; letter-spacing:.4px;
}
.calloria-mobile-audit-panel {
  position:fixed; z-index:10001; top:calc(max(8px,env(safe-area-inset-top)) + 48px); right:8px;
  width:min(360px,calc(100vw - 16px)); max-height:min(70dvh,560px); overflow:auto;
  padding:12px; border:1px solid rgba(91,220,198,.42); border-radius:13px;
  background:rgba(5,17,27,.98); color:#e8f4f3; box-shadow:0 18px 48px rgba(0,0,0,.45);
  font:11px/1.45 system-ui,sans-serif;
}
.calloria-mobile-audit-panel[hidden] { display:none !important; }
.calloria-mobile-audit-panel pre { white-space:pre-wrap; overflow-wrap:anywhere; color:#b5d1d4; }
.calloria-mobile-audit-panel button { min-height:40px; }
@media (prefers-reduced-motion:reduce) {
  .calloria-mobile-audit-panel, .calloria-mobile-audit-toggle { transition:none !important; }
}


/* ========================================================================
   v8.14.3 — cross-page header navigation contract repair.
   Confirmed page structures include:
   - .desk-shell > header.topbar > .topnav (Agent Desk)
   - .desk-shell > header.desk-header > nav (Case Desk)
   - .crm-shell > header.crm-header > nav (Customer 360)
   - .care-shell > header.care-header > .header-meta (Customer Care)
   The earlier drawer CSS only styled a list of named nav classes. Plain
   header nav elements were enhanced by JS but were never hidden/styled as
   a drawer. This attribute contract styles the actual enhanced element.
   ======================================================================== */
:root {
  --calloria-route-header-height: 58px;
  --calloria-route-nav-gutter: max(10px, env(safe-area-inset-left, 0px));
}

@media (max-width: 900px) {
  header[data-calloria-mobile-header="true"] {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: var(--calloria-route-header-height) !important;
    max-height: none !important;
    padding: max(7px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 7px var(--calloria-route-nav-gutter) !important;
  }

  header[data-calloria-mobile-header="true"] > :first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 54px) !important;
    overflow-wrap: anywhere;
  }

  header[data-calloria-mobile-header="true"] .calloria-mobile-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 44px !important;
    order: 20 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  /* Apply drawer behaviour to every enhanced header child, regardless of
     whether its original tag was nav or div.header-meta. */
  header[data-calloria-mobile-header="true"] > [data-calloria-mobile-menu="true"] {
    display: none !important;
    position: fixed !important;
    z-index: 1200 !important;
    top: calc(var(--calloria-route-header-height) + env(safe-area-inset-top, 0px) + 8px) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    width: auto !important;
    max-width: 560px !important;
    max-height: calc(100dvh - var(--calloria-route-header-height) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    margin-inline: auto !important;
    padding: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    border: 1px solid rgba(125, 165, 180, .32) !important;
    border-radius: 16px !important;
    background: #0c1d2b !important;
    color: #eaf3f5 !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .48) !important;
  }

  header[data-calloria-mobile-header="true"] > [data-calloria-mobile-menu="true"][data-calloria-mobile-open="true"] {
    display: flex !important;
  }

  header[data-calloria-mobile-header="true"] > [data-calloria-mobile-menu="true"] a,
  header[data-calloria-mobile-header="true"] > [data-calloria-mobile-menu="true"] button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 12px 13px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body[data-calloria-mobile-menu-open] {
    overflow: hidden !important;
    touch-action: pan-y;
  }
}

@media (min-width: 901px) {
  header[data-calloria-mobile-header="true"] .calloria-mobile-menu-toggle {
    display: none !important;
  }
  header[data-calloria-mobile-header="true"] > [data-calloria-mobile-menu="true"] {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}
