:root {
  color-scheme: light;
  --navy: #18345f;
  --blue: #2d67b1;
  --orange: #ffad19;
  --ink: #172033;
  --muted: #69758a;
  --line: #dce3ec;
  --surface: #ffffff;
  --canvas: #eef3f8;
  --green: #159a61;
  --red: #dc4d4d;
  --shadow: 0 4px 15px rgba(24, 52, 95, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.42 Inter, "Segoe UI", Arial, sans-serif;
}
button, a { font: inherit; }
button { cursor: pointer; }

.monitor-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 5%, rgba(45, 103, 177, .15), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(255, 173, 25, .12), transparent 30rem),
    var(--canvas);
}
.gate-card {
  width: min(420px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(24, 52, 95, .15);
  text-align: center;
}
.gate-card img { width: 72px; height: 72px; object-fit: contain; }
.gate-card h1 { margin: 18px 0 6px; font-size: 1.35rem; font-weight: 650; }
.gate-card p { margin: 0 0 22px; color: var(--muted); }
.loading-ring {
  display: block;
  width: 28px;
  height: 28px;
  margin: 22px auto 0;
  border: 3px solid #d9e3f1;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.monitor-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.monitor-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1fr minmax(420px, 1.2fr);
  align-items: center;
  gap: 22px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(115deg, #132b51 0%, #204c88 70%, #2d67b1 100%);
  box-shadow: 0 4px 20px rgba(24, 52, 95, .22);
}
.monitor-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.monitor-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}
.monitor-brand span { display: grid; min-width: 0; }
.monitor-brand strong { font-size: 1.05rem; font-weight: 650; letter-spacing: .01em; }
.monitor-brand small { color: rgba(255, 255, 255, .72); white-space: nowrap; }
.monitor-headline { text-align: center; }
.monitor-headline h1 { margin: 1px 0 0; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 620; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #d9f9e9; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57, 217, 138, .16); }
.monitor-controls { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.refresh-status { display: grid; min-width: 180px; margin-right: 6px; text-align: right; }
.refresh-status strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.refresh-status span { color: rgba(255, 255, 255, .72); font-size: .75rem; }
.monitor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
  font-weight: 600;
}
.monitor-button:hover { background: rgba(255, 255, 255, .18); }
.monitor-button.primary { border-color: var(--orange); color: #192239; background: var(--orange); }
.monitor-button:disabled { cursor: wait; opacity: .62; }
.gate-card .monitor-button { width: 100%; }

.monitor-content { display: grid; align-content: start; gap: 14px; padding: 16px 18px 20px; }
.monitor-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 11px;
}
.monitor-kpi {
  position: relative;
  min-height: 89px;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.monitor-kpi::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: var(--accent, var(--blue));
}
.monitor-kpi span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.monitor-kpi strong { display: block; margin-top: 3px; color: var(--accent, var(--navy)); font-size: 1.85rem; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.monitor-kpi small { display: block; margin-top: 7px; color: var(--muted); }

.monitor-alerts { display: flex; flex-wrap: wrap; gap: 9px; }
.monitor-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #efca85;
  border-radius: 999px;
  color: #83530a;
  background: #fff7e8;
  font-size: .78rem;
  font-weight: 600;
}
.monitor-alert.danger { border-color: #f1b2b2; color: #a42929; background: #fff1f1; }
.monitor-alert.good { border-color: #a9ddc4; color: #0e7548; background: #eefbf5; }
.monitor-alert i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.repair-process-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.repair-process-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #fff 0%, #f4f8fd 100%);
}
.repair-process-header > div:first-child { min-width: 0; }
.repair-process-header > div:first-child > span {
  color: var(--blue);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.repair-process-header h2 { margin: 1px 0 2px; font-size: 1.02rem; line-height: 1.15; font-weight: 650; }
.repair-process-header p { margin: 0; color: var(--muted); font-size: .72rem; }
.repair-process-summary { display: flex; align-items: center; gap: 7px; }
.repair-process-summary span {
  padding: 6px 9px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: .68rem;
  white-space: nowrap;
}
.repair-process-summary strong { color: var(--navy); font-size: .82rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.repair-process-list { display: grid; max-height: 355px; overflow: auto; }
.repair-process-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) 68px minmax(220px, 1fr) minmax(220px, 1fr) 110px;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 9px 14px;
  border-bottom: 1px solid #e5eaf1;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: background .15s ease;
}
.repair-process-row:last-child { border-bottom: 0; }
.repair-process-row:hover { background: #f7faff; }
.repair-process-order {
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.repair-process-order > i {
  width: 7px;
  height: 34px;
  border-radius: 999px;
  background: var(--process-color);
}
.repair-process-order > span { display: grid; min-width: 0; }
.repair-process-order strong { font-size: .8rem; font-weight: 680; }
.repair-process-order small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.repair-process-order em {
  max-width: 120px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--process-color);
  background: color-mix(in srgb, var(--process-color) 10%, white);
  font-size: .62rem;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repair-process-total {
  display: grid;
  justify-items: center;
  padding: 5px;
  border-radius: 8px;
  color: var(--navy);
  background: #eef4fc;
}
.repair-process-total strong { font-size: .95rem; line-height: 1; font-weight: 680; font-variant-numeric: tabular-nums; }
.repair-process-total small { margin-top: 3px; color: var(--muted); font-size: .56rem; text-transform: uppercase; }
.repair-process-metric { display: grid; gap: 4px; min-width: 0; }
.repair-process-label,
.repair-process-counts { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.repair-process-label strong { font-size: .7rem; font-weight: 680; }
.repair-process-label small { color: var(--muted); font-size: .64rem; font-variant-numeric: tabular-nums; }
.repair-process-counts { justify-content: flex-start; font-size: .64rem; }
.repair-process-counts b,
.repair-process-counts em {
  padding: 2px 6px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.repair-process-counts b { color: #126b48; background: #eaf8f2; }
.repair-process-counts em { color: #8a5909; background: #fff4df; }
.repair-process-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e8edf4; }
.repair-process-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.repair-process-metric.repair .repair-process-track i { background: var(--green); }
.repair-process-updated { display: grid; text-align: right; }
.repair-process-updated small { color: var(--muted); font-size: .58rem; }
.repair-process-updated strong { margin-top: 2px; font-size: .68rem; font-weight: 650; }
.repair-process-empty { min-height: 110px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-align: center; }
.repair-process-empty strong { color: var(--ink); font-size: .82rem; }
.repair-process-empty span { font-size: .72rem; }

.monitor-workspace {
  display: grid;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.daily-calendar {
  position: sticky;
  top: 98px;
  min-width: 0;
}
.daily-calendar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.daily-calendar-header {
  display: grid;
  grid-template-columns: 83px minmax(0, 1fr);
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fff 0%, #f4f8fd 100%);
}
.daily-date {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 11px 8px;
  color: #fff;
  background: linear-gradient(155deg, var(--navy), var(--blue));
  text-align: center;
}
.daily-date span { font-size: .62rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.daily-date strong { margin: 2px 0; font-size: 2.15rem; line-height: 1; font-weight: 630; font-variant-numeric: tabular-nums; }
.daily-date small { color: rgba(255, 255, 255, .78); font-size: .68rem; text-transform: capitalize; }
.daily-calendar-title { align-self: center; min-width: 0; padding: 14px 15px; }
.daily-calendar-title > span { color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.daily-calendar-title h2 { margin: 2px 0 3px; font-size: 1.08rem; line-height: 1.15; font-weight: 650; }
.daily-calendar-title p { margin: 0; color: var(--muted); font-size: .74rem; }
.daily-calendar-legend {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfd;
  font-size: .66rem;
}
.daily-calendar-legend span { display: flex; align-items: center; gap: 6px; }
.daily-calendar-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.daily-task-list {
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 308px);
  overflow: auto;
  padding: 8px;
}
.daily-task {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 82px;
  padding: 9px 9px 9px 7px;
  border: 1px solid #e1e6ed;
  border-left: 4px solid var(--task-color);
  border-radius: 9px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.daily-task:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(24, 52, 95, .12); }
.daily-task-priority {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.daily-task-content { display: grid; min-width: 0; }
.daily-task-title { overflow: hidden; color: var(--task-color); font-size: .67rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.daily-task-content strong { margin-top: 1px; font-size: .79rem; font-weight: 650; }
.daily-task-content small { overflow: hidden; margin-top: 1px; color: var(--ink); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.daily-task-schedule { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.daily-task-modules {
  min-width: 36px;
  padding: 5px 4px;
  border-radius: 8px;
  color: var(--navy);
  background: #eef4fc;
  text-align: center;
  font-size: .84rem;
  font-weight: 650;
}
.daily-task-modules small { display: block; margin-top: 2px; color: var(--muted); font-size: .5rem; font-weight: 600; text-transform: uppercase; }
.daily-calendar-empty {
  min-height: 185px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}
.daily-calendar-empty > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  border-radius: 50%;
  color: #087346;
  background: #e9f9f1;
  font-size: 1.1rem;
}
.daily-calendar-empty strong { color: var(--ink); font-size: .8rem; font-weight: 650; }
.daily-calendar-empty small { max-width: 220px; font-size: .7rem; }

.phase-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  align-items: start;
  gap: 12px;
}
.phase-lane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow);
}
.phase-lane-header {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-top: 4px solid var(--phase-color);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.phase-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--phase-color);
  font-size: .74rem;
  font-weight: 700;
}
.phase-lane-header div { display: grid; min-width: 0; }
.phase-lane-header strong { overflow: hidden; font-size: .82rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.phase-lane-header small { color: var(--muted); font-size: .7rem; }
.phase-count {
  min-width: 26px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--phase-color);
  background: color-mix(in srgb, var(--phase-color) 11%, white);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
}
.phase-orders { display: grid; gap: 7px; padding: 8px; }
.monitor-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid #e1e6ed;
  border-left: 3px solid var(--phase-color);
  border-radius: 9px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.monitor-order:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(24, 52, 95, .12); }
.monitor-order-main { min-width: 0; }
.monitor-order-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.monitor-order-title strong { flex: 0 0 auto; font-size: .8rem; font-weight: 680; }
.monitor-order-title span { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.monitor-order-customer { overflow: hidden; margin-top: 3px; font-size: .77rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.monitor-order-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.monitor-order-meta .overdue { color: var(--red); font-weight: 650; }
.monitor-order-modules {
  align-self: center;
  min-width: 38px;
  padding: 5px 6px;
  border-radius: 8px;
  color: var(--navy);
  background: #eef4fc;
  text-align: center;
}
.monitor-order-modules strong { display: block; font-size: .92rem; line-height: 1; font-weight: 650; }
.monitor-order-modules small { display: block; margin-top: 3px; color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.phase-empty { min-height: 68px; display: grid; place-items: center; color: #96a0b0; font-size: .75rem; }
.phase-more {
  display: block;
  padding: 7px 10px 9px;
  color: var(--phase-color);
  text-align: center;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 650;
}

.monitor-footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: .7rem;
}
.monitor-footer strong { color: var(--navy); font-weight: 650; }
.monitor-toast {
  position: fixed;
  right: 18px;
  bottom: 55px;
  z-index: 30;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: 9px;
  color: #fff;
  background: #b33131;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
  font-weight: 600;
}

@media (max-width: 1500px) {
  .monitor-workspace { grid-template-columns: minmax(270px, 305px) minmax(0, 1fr); }
  .phase-board { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
  .monitor-kpis { grid-template-columns: repeat(5, minmax(125px, 1fr)); }
}
@media (max-width: 1120px) {
  .monitor-header { grid-template-columns: auto 1fr; }
  .monitor-headline { display: none; }
  .monitor-workspace { grid-template-columns: minmax(250px, 285px) minmax(0, 1fr); }
  .phase-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .monitor-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .repair-process-row { grid-template-columns: minmax(210px, 1fr) 60px minmax(190px, 1fr) minmax(190px, 1fr); }
  .repair-process-updated { display: none; }
}
@media (max-width: 760px) {
  .monitor-header { position: static; display: flex; flex-wrap: wrap; padding: 11px 13px; }
  .monitor-brand { flex: 1; }
  .monitor-controls { width: 100%; justify-content: stretch; }
  .refresh-status { margin-right: auto; text-align: left; }
  .monitor-controls .monitor-button { padding: 0 10px; }
  .monitor-content { padding: 11px; }
  .monitor-kpis { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .repair-process-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .repair-process-summary { width: 100%; overflow-x: auto; }
  .repair-process-list { max-height: none; }
  .repair-process-row { grid-template-columns: minmax(0, 1fr) 58px; gap: 9px; }
  .repair-process-metric { grid-column: 1 / -1; }
  .repair-process-updated { display: none; }
  .monitor-workspace { grid-template-columns: 1fr; }
  .daily-calendar { position: static; }
  .daily-task-list { max-height: none; }
  .phase-board { grid-template-columns: 1fr; }
  .monitor-footer { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1200px) and (min-height: 720px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .monitor-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 68px minmax(0, 1fr) 30px;
    overflow: hidden;
  }
  .monitor-header {
    position: relative;
    min-height: 68px;
    gap: 15px;
    padding: 8px 16px;
  }
  .monitor-brand img {
    width: 40px;
    height: 40px;
  }
  .monitor-brand strong { font-size: .98rem; }
  .monitor-brand small { font-size: .72rem; }
  .monitor-headline h1 { font-size: 1.28rem; }
  .refresh-status { min-width: 165px; }
  .refresh-status strong { font-size: .92rem; }
  .refresh-status span { font-size: .68rem; }
  .monitor-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: .76rem;
  }
  .monitor-content {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 70px 30px minmax(190px, .85fr) minmax(230px, 1.15fr);
    align-content: stretch;
    gap: 8px;
    overflow: hidden;
    padding: 8px 10px;
  }
  .monitor-kpis {
    grid-column: 1 / -1;
    min-height: 0;
    gap: 8px;
  }
  .monitor-kpi {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 10px;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .monitor-kpi span {
    overflow: hidden;
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .monitor-kpi strong {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 1.55rem;
  }
  .monitor-kpi small {
    overflow: hidden;
    margin: 0;
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .monitor-alerts {
    grid-column: 1 / -1;
    min-height: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
  }
  .monitor-alert {
    flex: 0 0 auto;
    padding: 4px 9px;
    font-size: .68rem;
  }
  .repair-processes {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .repair-process-panel {
    height: 100%;
    display: grid;
    grid-template-rows: 55px minmax(0, 1fr);
  }
  .repair-process-header {
    min-height: 55px;
    gap: 12px;
    padding: 7px 12px;
  }
  .repair-process-header h2 { font-size: .92rem; }
  .repair-process-header p { font-size: .65rem; }
  .repair-process-summary span {
    padding: 4px 7px;
    font-size: .62rem;
  }
  .repair-process-summary strong { font-size: .74rem; }
  .repair-process-list {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
  .repair-process-row {
    grid-template-columns: minmax(230px, 1.25fr) 58px minmax(190px, 1fr) minmax(190px, 1fr) 95px;
    gap: 9px;
    min-height: 51px;
    padding: 5px 10px;
  }
  .repair-process-order > i {
    width: 6px;
    height: 29px;
  }
  .repair-process-order strong { font-size: .73rem; }
  .repair-process-order small { font-size: .61rem; }
  .repair-process-order em {
    max-width: 105px;
    padding: 3px 6px;
    font-size: .57rem;
  }
  .repair-process-total { padding: 4px; }
  .repair-process-total strong { font-size: .84rem; }
  .repair-process-metric { gap: 3px; }
  .repair-process-label strong { font-size: .64rem; }
  .repair-process-label small,
  .repair-process-counts { font-size: .58rem; }
  .repair-process-counts b,
  .repair-process-counts em { padding: 1px 5px; }
  .repair-process-track { height: 5px; }
  .repair-process-updated small { font-size: .53rem; }
  .repair-process-updated strong { font-size: .62rem; }
  .monitor-workspace {
    grid-column: 1 / -1;
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(245px, 275px) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }
  .daily-calendar {
    position: static;
    min-height: 0;
    height: 100%;
  }
  .daily-calendar-card {
    height: 100%;
    display: grid;
    grid-template-rows: 76px 24px minmax(0, 1fr);
  }
  .daily-calendar-header {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 76px;
  }
  .daily-date { padding: 7px 5px; }
  .daily-date span { font-size: .54rem; }
  .daily-date strong { font-size: 1.65rem; }
  .daily-date small { font-size: .58rem; }
  .daily-calendar-title { padding: 9px 10px; }
  .daily-calendar-title > span { font-size: .56rem; }
  .daily-calendar-title h2 { margin: 1px 0; font-size: .92rem; }
  .daily-calendar-title p { font-size: .64rem; }
  .daily-calendar-legend {
    padding: 5px 8px;
    font-size: .58rem;
  }
  .daily-task-list {
    min-height: 0;
    max-height: none;
    gap: 5px;
    overflow: auto;
    padding: 6px;
  }
  .daily-task {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 58px;
    padding: 6px;
  }
  .daily-task-priority {
    width: 22px;
    height: 22px;
    font-size: .62rem;
  }
  .daily-task-title { font-size: .59rem; }
  .daily-task-content strong { font-size: .7rem; }
  .daily-task-content small { font-size: .62rem; }
  .daily-task-schedule {
    margin-top: 2px;
    font-size: .56rem;
  }
  .daily-task-modules {
    min-width: 32px;
    padding: 4px 3px;
    font-size: .74rem;
  }
  .phase-board {
    min-height: 0;
    height: 100%;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
  }
  .phase-lane {
    height: 100%;
    display: grid;
    grid-template-rows: 43px minmax(0, 1fr) auto;
    border-radius: 10px;
  }
  .phase-lane-header {
    min-height: 43px;
    gap: 6px;
    padding: 6px 8px;
    border-top-width: 3px;
  }
  .phase-index {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: .63rem;
  }
  .phase-lane-header strong { font-size: .7rem; }
  .phase-lane-header small { font-size: .58rem; }
  .phase-count {
    min-width: 21px;
    padding: 2px 5px;
    font-size: .66rem;
  }
  .phase-orders {
    min-height: 0;
    gap: 4px;
    overflow: auto;
    padding: 5px;
  }
  .monitor-order {
    min-height: 52px;
    gap: 3px 5px;
    padding: 6px 7px;
    border-radius: 7px;
  }
  .monitor-order-title { gap: 4px; }
  .monitor-order-title strong { font-size: .68rem; }
  .monitor-order-title span { font-size: .58rem; }
  .monitor-order-customer {
    margin-top: 1px;
    font-size: .65rem;
  }
  .monitor-order-meta {
    gap: 2px 5px;
    margin-top: 2px;
    font-size: .56rem;
  }
  .monitor-order-modules {
    min-width: 31px;
    padding: 4px;
  }
  .monitor-order-modules strong { font-size: .78rem; }
  .monitor-order-modules small { font-size: .48rem; }
  .phase-empty {
    min-height: 45px;
    font-size: .64rem;
  }
  .phase-more {
    padding: 4px 7px 5px;
    font-size: .6rem;
  }
  .monitor-footer {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .61rem;
  }
}

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