/* CEZWAY command center — responsive layer.
   This file is intentionally namespaced so the existing product screens,
   Essential mode, PWA chrome and mobile dock keep their current contracts. */

@media (max-width: 768px) {
  .cezway-command .command-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cezway-command .command-hero-copy,
  .cezway-command .command-kpis,
  .cezway-command .command-hero-action {
    min-width: 0;
  }

  .cezway-command .command-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cezway-command .command-week-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-color: rgba(242, 161, 58, 0.55) rgba(157, 167, 184, 0.12);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .cezway-command .command-week-grid {
    min-width: 54rem;
  }

  .cezway-command .command-week-day--head {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 768px) {
  .cezway-command {
    --command-mobile-canvas: #080908;
    --command-mobile-surface: #10110f;
    --command-mobile-raised: #171815;
    --command-mobile-line: rgba(214, 196, 156, 0.18);
    --command-mobile-copy: rgba(245, 241, 232, 0.74);
    --command-mobile-faint: rgba(245, 241, 232, 0.54);
  }

  .cezway-command.light {
    --command-mobile-canvas: #eee7da;
    --command-mobile-surface: #f9f3e8;
    --command-mobile-raised: #fffaf1;
    --command-mobile-line: rgba(99, 79, 48, 0.18);
    --command-mobile-copy: rgba(33, 28, 21, 0.74);
    --command-mobile-faint: rgba(33, 28, 21, 0.56);
  }

  .cezway-command .command-shell {
    display: grid;
    gap: 0.9rem;
    width: 100%;
    min-width: 0;
    padding-bottom: 0.75rem;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .cezway-command .command-shell > .ops-focus {
    min-width: 0;
    margin: 0;
  }

  .cezway-command .command-shell :where(button, [role="button"], a.btn, a.btn-ghost) {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .cezway-command .command-shell :where(button, [role="button"], a.btn, a.btn-ghost):focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }

  .cezway-command .command-hero {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    padding: clamp(1rem, 4.6vw, 1.3rem);
    border: 1px solid var(--command-mobile-line);
    border-radius: 1.35rem;
    background: var(--command-mobile-surface);
    box-shadow: 0 1.1rem 2.7rem rgba(0, 0, 0, 0.24);
    overflow: visible;
  }

  .cezway-command.light .command-hero {
    box-shadow: 0 1rem 2.2rem rgba(76, 57, 35, 0.13);
  }

  .cezway-command .command-hero-copy {
    order: 1;
    display: grid;
    gap: 0.52rem;
    max-width: none;
  }

  .cezway-command .command-hero-copy :where(h2, h3) {
    max-width: 15ch;
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8.8vw, 2.65rem);
    font-weight: 860;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
  }

  .cezway-command .command-hero-copy :where(p, .command-hero-summary) {
    max-width: 44ch;
    margin: 0;
    color: var(--command-mobile-copy);
    font-size: 0.875rem;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .cezway-command .command-hero-copy .command-hero-accent {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 6.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .cezway-command .command-hero-copy :where(.eyebrow, .command-hero-eyebrow) {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .cezway-command .command-kpis {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
  }

  .cezway-command .command-kpi {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    min-width: 0;
    min-height: 5.9rem;
    padding: 0.78rem;
    border: 1px solid var(--command-mobile-line);
    border-radius: 1rem;
    background: var(--command-mobile-raised);
    box-shadow: none;
  }

  .cezway-command .command-kpi:first-child {
    grid-column: 1 / -1;
    min-height: 6.4rem;
  }

  .cezway-command .command-kpi--status {
    grid-column: 1 / -1;
    min-height: 4.9rem;
    text-align: left;
    color: inherit;
    font: inherit;
  }

  .cezway-command .command-kpi :where(small, span) {
    display: block;
    min-width: 0;
    color: var(--command-mobile-faint);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .cezway-command .command-kpi strong {
    display: block;
    min-width: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-variant-numeric: tabular-nums;
    font-weight: 820;
    letter-spacing: -0.04em;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .cezway-command .command-kpi:first-child strong {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .cezway-command .command-kpi strong.pos,
  .cezway-command .command-kpi.is-pos strong {
    color: var(--pos);
  }

  .cezway-command .command-kpi strong.neg,
  .cezway-command .command-kpi.is-neg strong {
    color: var(--neg);
  }

  .cezway-command .command-kpi.is-warn strong {
    color: var(--accent);
  }

  .cezway-command .command-hero-action {
    order: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.48rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--command-mobile-line);
  }

  .cezway-command .command-hero-action :where(.btn, .btn-ghost, button) {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding-inline: 1rem;
    border-radius: 0.92rem;
    font-size: 0.875rem;
    white-space: normal;
  }

  .cezway-command .command-hero-action :where(p, small) {
    margin: 0;
    color: var(--command-mobile-faint);
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
  }

  .cezway-command .command-hero-action strong {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .cezway-command .command-priority-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--command-priority-tone, var(--muted));
    border-radius: 999px;
    color: var(--command-priority-tone, var(--muted));
    background: rgba(157, 167, 184, 0.1);
  }

  .cezway-command .command-priority {
    --command-priority-tone: var(--muted);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.68rem;
    align-items: center;
    min-width: 0;
    margin-top: 0.28rem;
    padding-top: 0.72rem;
    border-top: 1px solid var(--command-mobile-line);
  }

  .cezway-command .command-priority.is-pos {
    --command-priority-tone: var(--pos);
  }

  .cezway-command .command-priority.is-warn {
    --command-priority-tone: var(--accent);
  }

  .cezway-command .command-priority.is-neg {
    --command-priority-tone: var(--neg);
  }

  .cezway-command .command-priority.is-pos .command-priority-icon {
    background: rgba(34, 197, 94, 0.1);
  }

  .cezway-command .command-priority.is-warn .command-priority-icon {
    background: rgba(242, 161, 58, 0.1);
  }

  .cezway-command .command-priority.is-neg .command-priority-icon {
    background: rgba(251, 95, 114, 0.1);
  }

  .cezway-command .command-priority > :last-child {
    min-width: 0;
  }

  .cezway-command .command-priority :where(strong, small) {
    display: block;
    min-width: 0;
  }

  .cezway-command .command-priority strong {
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .cezway-command .command-priority small {
    margin-top: 0.12rem;
    color: var(--command-mobile-copy);
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .cezway-command .command-page-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-width: 0;
  }

  .cezway-command .command-page-rail > :first-child {
    min-width: 0;
  }

  .cezway-command .command-page-rail .eyebrow {
    display: none;
  }

  .cezway-command .command-page-rail .ops-date-line {
    color: var(--command-mobile-copy);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .cezway-command .command-page-rail .ops-actions {
    display: flex;
    flex: 0 1 auto;
    gap: 0.38rem;
    min-width: 0;
    padding-bottom: 0.1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cezway-command .command-page-rail .ops-actions::-webkit-scrollbar {
    display: none;
  }

  .cezway-command .command-page-rail .ops-actions :where(.btn, .btn-ghost) {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 0.7rem;
    border-radius: 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .cezway-command .command-week,
  .cezway-command .command-watch {
    min-width: 0;
    border: 1px solid var(--command-mobile-line);
    border-radius: 1.2rem;
    background: var(--command-mobile-surface);
    box-shadow: none;
  }

  .cezway-command .command-week {
    padding: 0.88rem 0 0.72rem;
    overflow: hidden;
  }

  .cezway-command .command-week-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0 0.9rem 0.72rem;
  }

  .cezway-command .command-week-head > :first-child {
    min-width: 0;
  }

  .cezway-command .command-week-head :where(h2, h3) {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
    line-height: 1.2;
  }

  .cezway-command .command-week-head :where(p, small, span) {
    margin: 0.2rem 0 0;
    color: var(--command-mobile-faint);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .cezway-command .command-section-count {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.38rem 0.58rem;
    border: 1px solid var(--command-mobile-line);
    border-radius: 999px;
    color: var(--command-mobile-copy);
    background: var(--command-mobile-raised);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 720;
    line-height: 1.1;
    white-space: nowrap;
  }

  .cezway-command .command-week-scroll {
    width: 100%;
    max-width: 100%;
    padding: 0 0.9rem 0.34rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: max(0.9rem, env(safe-area-inset-left, 0px));
    scroll-snap-type: inline mandatory;
    scrollbar-color: rgba(242, 161, 58, 0.58) rgba(157, 167, 184, 0.12);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .cezway-command .command-week-scroll::-webkit-scrollbar {
    height: 0.28rem;
  }

  .cezway-command .command-week-scroll::-webkit-scrollbar-track {
    background: rgba(157, 167, 184, 0.1);
    border-radius: 999px;
  }

  .cezway-command .command-week-scroll::-webkit-scrollbar-thumb {
    background: rgba(242, 161, 58, 0.58);
    border-radius: 999px;
  }

  .cezway-command .command-week-scroll:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
  }

  .cezway-command .command-week-grid {
    display: grid;
    width: max-content;
    min-width: 52.5rem;
    grid-template-columns: minmax(8.25rem, 1.3fr) repeat(7, minmax(6.25rem, 1fr));
    grid-template-rows: 3.35rem;
    grid-auto-rows: minmax(4.5rem, auto);
    border: 1px solid var(--command-mobile-line);
    border-radius: 0.95rem;
    background: var(--command-mobile-canvas);
    overflow: clip;
  }

  .cezway-command .command-week-grid > .ops-empty {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    place-items: center;
    min-height: 5.25rem;
    margin: 0;
    border: 0;
  }

  .cezway-command .command-week-corner,
  .cezway-command .command-week-vehicle,
  .cezway-command .command-week-day {
    min-width: 0;
    border: 0;
    border-right: 1px solid var(--command-mobile-line);
    border-bottom: 1px solid var(--command-mobile-line);
  }

  .cezway-command .command-week-corner {
    position: sticky;
    left: 0;
    z-index: 8;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-height: 3.35rem;
    padding: 0.55rem 0.62rem;
    background: var(--command-mobile-surface);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .cezway-command .command-week-vehicle {
    --command-vehicle-tone: var(--pos);
    position: sticky;
    left: 0;
    z-index: 7;
    grid-column: 1;
    grid-row: var(--command-row, 2);
    display: grid;
    align-content: center;
    gap: 0.12rem;
    min-height: var(--command-row-height-mobile, 4.5rem);
    padding: 0.66rem 0.7rem;
    border-radius: 0;
    background: var(--command-mobile-surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.14);
  }

  .cezway-command .command-week-vehicle:is(.is-warn, .is-warning) {
    --command-vehicle-tone: var(--accent);
  }

  .cezway-command .command-week-vehicle:is(.is-neg, .is-negative) {
    --command-vehicle-tone: var(--neg);
  }

  .cezway-command.light .command-week-vehicle {
    box-shadow: 0.45rem 0 0.9rem rgba(76, 57, 35, 0.1);
  }

  .cezway-command .command-week-vehicle :where(strong, span, small) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cezway-command .command-week-vehicle strong {
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .cezway-command .command-week-vehicle :where(span, small) {
    margin-top: 0.18rem;
    color: var(--command-mobile-faint);
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .cezway-command .command-week-vehicle small i {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.32rem;
    border-radius: 999px;
    background: var(--command-vehicle-tone);
    vertical-align: 0.02rem;
  }

  .cezway-command .command-week-day {
    position: relative;
    grid-column: var(--command-column, 2);
    grid-row: var(--command-row, 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--command-row-height-mobile, 4.5rem);
    padding: 0.36rem;
    background: rgba(255, 255, 255, 0.018);
  }

  .cezway-command.light .command-week-day {
    background: rgba(99, 79, 48, 0.025);
  }

  .cezway-command .command-week-day--head {
    position: sticky;
    top: 0;
    z-index: 6;
    grid-column: var(--command-column, 2);
    grid-row: 1;
    min-height: 3.35rem;
    padding: 0.55rem 0.38rem;
    background: var(--command-mobile-raised);
    scroll-margin-inline-start: 8.25rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    text-align: center;
  }

  .cezway-command .command-week-day.is-today {
    box-shadow: inset 2px 0 0 var(--accent);
  }

  .cezway-command .command-week-day--head :where(strong, span, small) {
    display: block;
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .cezway-command .command-week-day--head strong {
    color: var(--text);
    font-size: 0.78rem;
  }

  .cezway-command .command-week-day--head :where(span, small) {
    color: var(--command-mobile-faint);
  }

  .cezway-command .command-week-event {
    --command-event-tone: var(--pos);
    position: relative;
    z-index: 4;
    grid-column: var(--command-start, 2) / span var(--command-span, 1);
    grid-row: var(--command-row, 2);
    align-self: center;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.28rem;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0.25rem;
    padding: 0.46rem 0.5rem;
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 0.65rem;
    background: rgba(34, 197, 94, 0.16);
    color: #c5e8cc;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: left;
    overflow: hidden;
    touch-action: manipulation;
    transform: translateY(var(--command-lane-offset-mobile, 0));
  }

  .cezway-command .command-week-event:is(.is-alert, .is-maintenance) {
    --command-event-tone: var(--neg);
    border-color: rgba(251, 95, 114, 0.58);
    background: rgba(251, 95, 114, 0.17);
    color: #ffd2d9;
  }

  .cezway-command .command-week-event.is-active {
    --command-event-tone: var(--accent);
    border-color: rgba(242, 161, 58, 0.58);
    background: rgba(242, 161, 58, 0.16);
    color: #ffe0af;
  }

  .cezway-command.light .command-week-event {
    color: #205f34;
  }

  .cezway-command.light .command-week-event:is(.is-alert, .is-maintenance) {
    color: #9f3029;
  }

  .cezway-command.light .command-week-event.is-active {
    color: #87500c;
  }

  .cezway-command .command-week-event :where(strong, span, small) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cezway-command .command-week-event.is-single-day.has-time-range {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label label"
      "start end";
    gap: 0.08rem 0.3rem;
    min-height: 44px;
    padding-block: 0.32rem;
    line-height: 1.08;
    text-align: center;
  }

  .cezway-command .command-week-event.is-single-day.has-time-range .command-week-event-label {
    grid-area: label;
    font-weight: 720;
  }

  .cezway-command .command-week-event.is-single-day.has-time-range .command-week-event-start {
    grid-area: start;
    justify-self: start;
  }

  .cezway-command .command-week-event.is-single-day.has-time-range .command-week-event-end {
    grid-area: end;
    justify-self: end;
  }

  .cezway-command .command-week-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem 0.72rem;
    padding: 0.62rem 0.9rem 0;
    color: var(--command-mobile-faint);
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .cezway-command .command-week-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .cezway-command .command-week-legend i {
    width: 0.85rem;
    height: 0.2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--command-mobile-faint);
  }

  .cezway-command .command-week-legend .is-booked {
    background: var(--pos);
  }

  .cezway-command .command-week-legend .is-today {
    background: var(--accent);
  }

  .cezway-command .command-week-legend .is-alert {
    background: var(--neg);
  }

  .cezway-command .command-watch {
    overflow: hidden;
  }

  .cezway-command .command-watch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    margin: 0;
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid var(--command-mobile-line);
  }

  .cezway-command .command-watch-head > :first-child {
    min-width: 0;
  }

  .cezway-command .command-watch-head :where(h2, h3) {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 820;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .cezway-command .command-watch-head .eyebrow {
    margin: 0 0 0.16rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.065em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .cezway-command .command-watch-row {
    --watch-tone: var(--muted);
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.14rem 0.68rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0.72rem 0.82rem;
    border: 0;
    border-bottom: 1px solid var(--command-mobile-line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
  }

  .cezway-command .command-watch-row.is-pos {
    --watch-tone: var(--pos);
  }

  .cezway-command .command-watch-row:is(.is-warn, .is-warning, .warn) {
    --watch-tone: var(--accent);
  }

  .cezway-command .command-watch-row:is(.is-neg, .is-negative, .neg, .alert) {
    --watch-tone: var(--neg);
  }

  .cezway-command .command-watch-row:last-child {
    border-bottom: 0;
  }

  .cezway-command .command-watch-row:active {
    background: rgba(157, 167, 184, 0.08);
  }

  .cezway-command .command-watch-row > * {
    min-width: 0;
  }

  .cezway-command .command-watch-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    align-self: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--watch-tone);
    border-radius: 999px;
    color: var(--watch-tone);
    background: rgba(157, 167, 184, 0.08);
  }

  .cezway-command .command-watch-row > time {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--watch-tone);
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-variant-numeric: tabular-nums;
    font-weight: 780;
    white-space: nowrap;
  }

  .cezway-command .command-watch-copy {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .cezway-command .command-watch-copy :where(strong, small) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cezway-command .command-watch-copy strong {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 760;
    line-height: 1.25;
  }

  .cezway-command .command-watch-copy small {
    margin-top: 0.08rem;
    color: var(--command-mobile-copy);
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .cezway-command .command-watch-target {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    max-width: 8rem;
    color: var(--command-mobile-faint);
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
  }

  .cezway-command .command-watch-row :where(strong, span, small, time) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cezway-command .command-watch-empty {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 4.25rem;
    padding: 0.82rem 0.9rem;
    color: var(--command-mobile-copy);
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

@media (max-width: 430px) {
  .cezway-command .command-shell {
    gap: 0.72rem;
  }

  .cezway-command .command-hero {
    padding: 0.92rem;
    border-radius: 1.15rem;
  }

  .cezway-command .command-kpis {
    gap: 0.46rem;
  }

  .cezway-command .command-kpi {
    min-height: 5.45rem;
    padding: 0.68rem;
    border-radius: 0.86rem;
  }

  .cezway-command .command-week,
  .cezway-command .command-watch {
    border-radius: 1.05rem;
  }

  .cezway-command .command-week-grid {
    min-width: 50rem;
    grid-template-columns: minmax(7.65rem, 1.15fr) repeat(7, minmax(6.05rem, 1fr));
  }

  .cezway-command .command-week-day--head {
    scroll-margin-inline-start: 7.65rem;
  }

  .cezway-command .command-week-vehicle {
    padding-inline: 0.58rem;
  }

  .cezway-command .command-watch-row {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-inline: 0.72rem;
  }

  .cezway-command .command-watch-target {
    display: none;
  }
}

@media (max-width: 360px) {
  .cezway-command .command-hero-copy :where(h2, h3) {
    font-size: clamp(1.72rem, 9.3vw, 2.15rem);
  }

  .cezway-command .command-kpi strong {
    font-size: 1.42rem;
  }

  .cezway-command .command-week-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .cezway-command .command-week-scroll {
    scroll-behavior: auto;
  }
}
