/* ========================================================================== 
   Rio Dashboard - Mission Control Refresh
   ========================================================================== */

:root {
  --bg-base: #090909;
  --bg-deep: #101010;
  --bg-surface: #141414;
  --bg-surface-soft: #1a1a1a;
  --bg-elevated: #202020;

  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.34);
  --border-subtle: rgba(255, 255, 255, 0.1);

  --text-primary: #f4f4f4;
  --text-secondary: #cdcdcd;
  --text-tertiary: #949494;

  --primary: #f2f2f2;
  --primary-bright: #ffffff;
  --primary-dim: #bcbcbc;
  --primary-bg: rgba(255, 255, 255, 0.09);

  --success: #f2f2f2;
  --warning: #d9d9d9;
  --error: #c7c7c7;
  --info: #e6e6e6;

  --success-bg: rgba(255, 255, 255, 0.1);
  --warning-bg: rgba(255, 255, 255, 0.08);
  --error-bg: rgba(255, 255, 255, 0.07);
  --info-bg: rgba(255, 255, 255, 0.08);

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Cascadia Code', 'Fira Code', monospace;

  --topbar-h: 64px;
  --panel-radius: 16px;
  --gap: 12px;
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 22px 45px rgba(2, 6, 20, 0.55);

  --transition-fast: 140ms ease;
  --transition-base: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: linear-gradient(180deg, #080808 0%, #0d0d0d 100%);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-atmosphere__orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.28;
}

.bg-atmosphere__orb--one {
  width: 480px;
  height: 480px;
  top: -210px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

.bg-atmosphere__orb--two {
  width: 500px;
  height: 500px;
  right: -180px;
  bottom: -210px;
  opacity: 0.2;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.bg-atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.icon--sm {
  width: 14px;
  height: 14px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(14, 14, 14, 0.96) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__logo {
  width: 30px;
  height: 30px;
  color: var(--primary-bright);
  filter: none;
}

.topbar__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar__subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(26, 26, 26, 0.95), rgba(18, 18, 18, 0.95));
  color: var(--text-secondary);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.status-pill .icon {
  color: inherit;
}

.status-link:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.status-pill--muted {
  color: #b8b8b8;
}

.status-pill--connected {
  color: var(--success);
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(150deg, rgba(38, 38, 38, 0.9), rgba(27, 27, 27, 0.95));
}

.status-pill--connecting {
  color: var(--warning);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(150deg, rgba(34, 34, 34, 0.9), rgba(24, 24, 24, 0.95));
}

.status-pill--disconnected {
  color: var(--error);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(150deg, rgba(32, 32, 32, 0.9), rgba(22, 22, 22, 0.95));
}

.status-pill--info {
  color: var(--info);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(150deg, rgba(34, 34, 34, 0.9), rgba(24, 24, 24, 0.95));
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--gap);
  padding: var(--gap);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

.metrics-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(23, 23, 23, 0.96) 0%, rgba(15, 15, 15, 0.97) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 0;
  animation: panelIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
  opacity: 0;
}

.panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.65), rgba(18, 18, 18, 0));
  flex-shrink: 0;
}

.panel__title {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel__badge {
  min-width: 32px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.95);
  color: #d0d0d0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
}

.panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.panel--transcript {
  min-height: 0;
}

.panel--transcript .panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.translator-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.96), rgba(16, 16, 16, 0.97));
  padding: 9px;
}

.translator-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.translator-toggle input {
  width: 14px;
  height: 14px;
}

.translator-toggle--compact {
  align-self: center;
}

.translator-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.66rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.translator-field select {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.95);
  color: var(--text-primary);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.translator-status {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.transcript-scroll {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  padding-right: 2px;
  flex: 1;
}

.transcript-empty,
.tools-empty {
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-tertiary);
}

.transcript-empty .icon,
.tools-empty .icon {
  color: rgba(255, 255, 255, 0.32);
}

.transcript-empty p,
.tools-empty p {
  font-size: 0.86rem;
}

.msg {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(21, 21, 21, 0.95), rgba(14, 14, 14, 0.97));
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  animation: msgFadeIn 220ms ease both;
}

.msg:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.msg__avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(28, 28, 28, 0.95);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.msg--user .msg__avatar {
  color: var(--primary-bright);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.msg--rio .msg__avatar {
  color: var(--success);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.msg--system .msg__avatar {
  color: var(--info);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.msg--translation .msg__avatar {
  color: var(--primary-bright);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.msg__content {
  min-width: 0;
}

.msg__speaker {
  margin-bottom: 3px;
  font-size: 0.69rem;
  font-weight: 600;
  color: #c9c9c9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msg__text {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.msg__text code {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(26, 26, 26, 0.95);
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: #e4e4e4;
}

.msg__time {
  padding-top: 2px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.panel--gauge .panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gauge {
  width: 100%;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge__svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.32));
}

.gauge__value {
  margin-top: -12px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gauge__label {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.signals-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.signal-item {
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(22, 22, 22, 0.96), rgba(14, 14, 14, 0.97));
  color: var(--text-tertiary);
  padding: 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.signal-item .icon {
  color: inherit;
}

.signal-item--active {
  color: var(--warning);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, rgba(31, 31, 31, 0.94), rgba(21, 21, 21, 0.97));
}

.signal-item--high {
  color: var(--error);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(160deg, rgba(36, 36, 36, 0.94), rgba(24, 24, 24, 0.98));
}

.tool-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.tool-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(21, 21, 21, 0.95), rgba(14, 14, 14, 0.97));
  animation: msgFadeIn 200ms ease;
}

.tool-entry__icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-entry__icon--pending {
  color: var(--info);
  background: var(--info-bg);
}

.tool-entry__icon--success {
  color: var(--success);
  background: var(--success-bg);
}

.tool-entry__icon--error {
  color: var(--error);
  background: var(--error-bg);
}

.tool-entry__body {
  min-width: 0;
}

.tool-entry__name {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.tool-entry__detail {
  margin-top: 1px;
  color: var(--text-tertiary);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-entry__time {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding-top: 3px;
}

.schedule-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: auto;
}

.schedule-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-input {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(16, 16, 16, 0.94);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 8px 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.schedule-input::placeholder {
  color: #8e8e8e;
}

.schedule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.schedule-btn {
  min-height: 35px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.94), rgba(29, 29, 29, 0.97));
  color: #f0f0f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
}

.schedule-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  filter: brightness(1.03);
}

.schedule-btn--secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(26, 26, 26, 0.94), rgba(18, 18, 18, 0.97));
  color: #cccccc;
}

.schedule-status {
  min-height: 16px;
  font-size: 0.74rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.schedule-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.95), rgba(13, 13, 13, 0.97));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
}

.schedule-item__meta {
  min-width: 0;
}

.schedule-item__name {
  color: #c4c4c4;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.schedule-item__goal {
  color: var(--text-primary);
  font-size: 0.81rem;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-item__delete {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(34, 34, 34, 0.94), rgba(23, 23, 23, 0.98));
  color: #d7d7d7;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.schedule-item__delete:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

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

.health-card {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96), rgba(13, 13, 13, 0.97));
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.health-card__header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.health-card__label {
  color: var(--text-tertiary);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.health-card__value {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.health-card__unit {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 400;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.progress-bar__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0f0f0, #cccccc);
  transition: width 320ms ease, background 320ms ease;
}

.progress-bar__fill--warning {
  background: linear-gradient(90deg, #d5d5d5, #b9b9b9);
}

.progress-bar__fill--error {
  background: linear-gradient(90deg, #c2c2c2, #a4a4a4);
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-error {
  color: var(--error) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-muted {
  color: var(--text-tertiary) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.signal-item:focus-visible,
.panel:focus-within {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

button,
input {
  font: inherit;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes msgFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.48;
  }
}

.status-pill--connecting .icon {
  animation: pulse 1.5s ease infinite;
}

@media (max-width: 1180px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar__status {
    width: 100%;
    justify-content: flex-start;
  }

  .grid {
    height: calc(100vh - 112px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .panel--transcript {
    min-height: 360px;
  }

  .translator-controls {
    grid-template-columns: 1fr 1fr;
  }

  .translator-toggle,
  .translator-toggle--compact {
    align-self: center;
  }

  .metrics-column {
    overflow-y: visible;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-h: 112px;
  }

  .grid {
    padding: 10px;
    gap: 10px;
  }

  .panel,
  .panel::before {
    border-radius: 13px;
  }

  .signals-grid,
  .health-grid,
  .schedule-actions {
    grid-template-columns: 1fr;
  }

  .msg {
    grid-template-columns: auto 1fr;
  }

  .msg__time {
    grid-column: 2;
  }

  .status-pill {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.71rem;
  }
}

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