/* Camada visual do painel: relevo, sombras em camadas, cartões por status e movimento.
   Carregada depois do styles.css; para voltar ao visual anterior basta remover o <link> deste arquivo. */
:root {
  --ink: #0f1b33;
  --muted: #66738b;
  --line: #e4eaf3;
  --bg: #f2f5fa;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgb(15 27 51 / 0.06), 0 2px 6px rgb(15 27 51 / 0.05);
  --shadow-2:
    0 2px 4px rgb(15 27 51 / 0.05), 0 12px 26px -8px rgb(15 27 51 / 0.14);
  --shadow-3:
    0 4px 8px rgb(15 27 51 / 0.05), 0 28px 50px -16px rgb(15 27 51 / 0.26);
  --c-confirmed: #2fbf71;
  --c-reserved: #f59e3b;
  --c-critical: #ef4444;
  --c-arrived: #3ba0e6;
  --c-service: #8b6cf0;
  --c-done: #2bb3ac;
}
body {
  background: var(--bg);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgb(239 68 68 / 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgb(239 68 68 / 0);
  }
}
@keyframes alert-ring {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgb(239 68 68 / 0.35),
      0 8px 20px -10px rgb(239 68 68 / 0.6),
      0 0 0 0 rgb(239 68 68 / 0.3);
  }
  50% {
    box-shadow:
      0 0 0 1px rgb(239 68 68 / 0.5),
      0 8px 20px -10px rgb(239 68 68 / 0.6),
      0 0 0 7px rgb(239 68 68 / 0);
  }
}

/* A animação de entrada só toca quando a agenda ganha a classe "animate" (mudança de visão, dia ou profissional) */
.agenda-page:not(.animate)
  :is(
    .page-heading h1,
    .page-heading .subtitle,
    .section-actions,
    .agenda-bar,
    .filters,
    .day-calendar,
    .list-day,
    .detail
  ) {
  animation: none;
}
.agenda-page:not(.animate)
  :is(.calendar-event, .wm-chip, .list-item, .calendar-block):not(.critical) {
  animation: none;
}
.agenda-page:not(.animate) :is(.calendar-event, .wm-chip).critical {
  animation: alert-ring 2.4s ease-in-out infinite;
}

/* ===== Avatares com cor própria ===== */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  font: 800 13px/1 var(--f-display, "Manrope"), sans-serif;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 220) 78% 60%),
    hsl(calc(var(--hue, 220) + 38) 72% 48%)
  );
  box-shadow:
    0 0 0 2px #fff,
    0 4px 10px -2px hsl(var(--hue, 220) 60% 40% / 0.45);
}
img.avatar {
  background: #e8edf6;
}

/* ===== Botões ===== */
.shell button.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 20px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--primary) 82%, white) 0%,
    var(--primary) 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 12px 26px -10px color-mix(in oklab, var(--primary) 75%, transparent);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.shell button.primary:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 18px 30px -10px color-mix(in oklab, var(--primary) 80%, transparent);
}
.shell button.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.shell button.secondary:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* ===== Menu lateral ===== */
@media (min-width: 761px) {
  .shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 16px 22px;
    background:
      radial-gradient(
        120% 50% at 0% 0%,
        color-mix(in oklab, var(--navy) 72%, white) 0%,
        transparent 70%
      ),
      linear-gradient(
        180deg,
        var(--navy) 0%,
        color-mix(in oklab, var(--navy) 80%, black) 100%
      );
    box-shadow: 10px 0 40px -20px rgb(0 0 0 / 0.55);
    color: var(--on-navy, #fff);
  }
}
.sidebar .brand {
  gap: 13px;
  padding: 0 6px;
  font: 800 21px/1.1 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.02em;
}
.sidebar .brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 12px 24px -8px rgb(0 0 0 / 0.6);
}
.sidebar .brand small {
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  margin-top: 6px;
  opacity: 0.62;
}
.nav {
  gap: 6px;
  margin-top: 38px;
}
.nav button {
  gap: 14px;
  padding: 13px 16px;
  border-radius: 15px;
  font: 600 15px var(--f-display, "Manrope"), sans-serif;
  color: color-mix(in oklab, var(--on-navy, #fff) 82%, transparent);
  transition:
    background 0.25s,
    transform 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.nav button .ic {
  flex: none;
  opacity: 0.85;
  transition: transform 0.3s;
}
.nav button:hover {
  filter: none;
  background: rgb(255 255 255 / 0.08);
  color: var(--on-navy, #fff);
  transform: translateX(3px);
}
.nav button:hover .ic {
  transform: scale(1.12) rotate(-4deg);
}
.nav button.active {
  color: var(--on-primary, #fff);
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--primary) 90%, white),
    color-mix(in oklab, var(--primary) 78%, #6d28d9)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 12px 22px -10px rgb(0 0 0 / 0.55);
}
.nav button.active .ic {
  opacity: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: grid;
  gap: 4px;
}
.sidebar-bottom .me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 12px;
}
.sidebar-bottom .me strong {
  display: block;
  font: 700 14px var(--f-display, "Manrope"), sans-serif;
}
.sidebar-bottom .me small {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 2px;
}
.me-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
}
.sidebar-bottom .subtle-link,
.sidebar-bottom #logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  border-radius: 12px;
  background: transparent;
  color: color-mix(in oklab, var(--on-navy, #fff) 75%, transparent);
  font: 600 13.5px var(--f-display, "Manrope"), sans-serif;
  text-decoration: none;
  text-align: left;
  transition:
    background 0.2s,
    color 0.2s;
}
.sidebar-bottom .subtle-link:hover,
.sidebar-bottom #logout:hover {
  filter: none;
  background: rgb(255 255 255 / 0.08);
  color: var(--on-navy, #fff);
}

/* ===== Área principal ===== */
.main {
  background:
    radial-gradient(
      760px 360px at 100% -6%,
      color-mix(in oklab, var(--primary) 9%, transparent),
      transparent 70%
    ),
    radial-gradient(620px 300px at 12% -4%, rgb(139 108 240 / 0.07), transparent 70%),
    var(--bg);
}
.agenda-page {
  padding: 34px clamp(20px, 3vw, 44px) 64px;
}
.agenda-page .page-heading {
  align-items: flex-start;
  margin-bottom: 4px;
}
.agenda-page .page-heading h1 {
  font: 800 clamp(30px, 3.4vw, 44px) / 1.05 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
  animation: rise 0.6s both;
}
.agenda-page .page-heading .subtitle {
  margin-top: 8px;
  font: 600 clamp(16px, 1.5vw, 21px) var(--f-display, "Manrope"), sans-serif;
  color: var(--muted);
  animation: rise 0.6s 0.06s both;
}
.agenda-page .section-actions {
  display: flex;
  gap: 12px;
  animation: rise 0.6s 0.1s both;
}

/* ===== Barra de data, legenda e visões ===== */
.agenda-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 26px 0 14px;
  animation: rise 0.6s 0.14s both;
}
.date-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.date-nav button,
.date-pill {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: 700 14.5px var(--f-display, "Manrope"), sans-serif;
  transition:
    background 0.2s,
    transform 0.2s;
}
.date-nav button:hover,
.date-pill:hover {
  filter: none;
  background: #eef2f9;
}
.nav-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}
.today-btn {
  padding: 11px 16px;
}
.date-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  cursor: pointer;
  border-left: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
  margin-right: 2px;
}
.date-pill .ic {
  color: var(--primary);
}
.date-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.legend {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: center;
}
.legend-item {
  --dot: var(--c-done);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px var(--f-body, "DM Sans"), sans-serif;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--dot) 22%, transparent);
}
.legend-item b {
  color: var(--ink);
  font: 800 15px var(--f-display, "Manrope"), sans-serif;
}
.legend-item.confirmed {
  --dot: var(--c-confirmed);
}
.legend-item.reserved {
  --dot: var(--c-reserved);
}
.legend-item.critical {
  --dot: var(--c-critical);
}
.legend-item.arrived {
  --dot: var(--c-arrived);
}
.legend-item.in_service {
  --dot: var(--c-service);
}
.legend-item.zero {
  opacity: 0.55;
}
button.legend-item:hover {
  filter: none;
  background: #fff;
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
button.legend-item.active {
  background: #fff;
  border-color: color-mix(in oklab, var(--dot) 45%, white);
  box-shadow: var(--shadow-2);
}
/* Pulsa só quando há atendimento crítico de verdade (pede uma ação) */
.legend-item.critical:not(.zero) i {
  animation: ping 2s infinite;
}
.shell .tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.shell .tabs button {
  border-radius: 12px;
  padding: 10px 20px;
  background: transparent;
  color: var(--muted);
  font: 700 14px var(--f-display, "Manrope"), sans-serif;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.shell .tabs button:hover {
  filter: none;
  color: var(--ink);
}
.shell .tabs button.active {
  color: #fff;
  background: linear-gradient(180deg, #22345c, #0f1b33);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 10px 18px -8px rgb(15 27 51 / 0.6);
}

/* ===== Filtros ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  animation: rise 0.6s 0.18s both;
}
.chip-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--muted);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.chip-field.grow {
  flex: 1 1 240px;
}
.shell .chip-field select,
.shell .chip-field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: 600 14px var(--f-body, "DM Sans"), sans-serif;
}
.shell .chip-field input {
  width: 100%;
}
.chip-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 16%, transparent);
}

/* ===== Calendário ===== */
.shell .day-calendar {
  max-height: min(76vh, 900px);
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow:
    var(--shadow-3),
    0 0 0 1px rgb(15 27 51 / 0.04);
  animation: rise 0.7s 0.2s both;
}
.shell .calendar-inner {
  grid-template-columns: 78px repeat(var(--professionals), minmax(240px, 1fr));
  grid-template-rows: 96px var(--calendar-height);
  min-width: calc(78px + var(--professionals) * 240px);
}
.shell .calendar-corner,
.shell .calendar-person {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.84);
  backdrop-filter: blur(14px) saturate(1.5);
}
.shell .calendar-corner {
  justify-content: center;
  color: #a2adc1;
}
.shell .calendar-person {
  border-left: 1px solid var(--line);
  gap: 13px;
}
.shell .calendar-person .avatar {
  width: 48px;
  height: 48px;
  font-size: 15px;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px hsl(var(--hue, 220) 70% 60% / 0.35),
    0 10px 18px -8px hsl(var(--hue, 220) 60% 40% / 0.55);
}
.shell .calendar-person strong {
  font: 800 16px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.01em;
}
.shell .calendar-person small {
  margin-top: 4px;
  font-size: 12.5px;
}
.shell .calendar-times {
  width: 78px;
  background: #fff;
}
.shell .calendar-times span {
  right: 14px;
  padding: 0;
  transform: translateY(-50%);
  font: 600 12.5px var(--f-display, "Manrope"), sans-serif;
  color: #9aa6bb;
}
.shell .calendar-times span.hour {
  color: var(--ink);
  font-weight: 800;
}
.shell .calendar-times span:first-child {
  transform: translateY(4px);
}
.shell .calendar-column {
  border-left: 1px solid var(--line);
  background-color: #fff;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0 119px,
      rgb(15 27 51 / 0.08) 119px 120px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 59px,
      rgb(15 27 51 / 0.035) 59px 60px
    );
}
.shell .calendar-column[data-today] {
  background-color: color-mix(in oklab, var(--primary) 4%, white);
}

/* Cartões de atendimento */
.shell .calendar-event {
  --c1: #e8f8ee;
  --c2: #d2f0df;
  --ink2: #12502b;
  --dot: var(--c-confirmed);
  left: 7px;
  width: calc(100% - 14px);
  padding: 11px 14px;
  gap: 3px;
  border: 0;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--c1), var(--c2));
  color: var(--ink2);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.75),
    0 0 0 1px color-mix(in oklab, var(--dot) 22%, transparent),
    0 10px 20px -12px color-mix(in oklab, var(--dot) 65%, transparent);
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms + 220ms);
  transition:
    translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
}
.shell .calendar-event:hover {
  filter: none;
  translate: 0 -3px;
  scale: 1.012;
  z-index: 6;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 0 0 1px color-mix(in oklab, var(--dot) 35%, transparent),
    0 22px 30px -14px color-mix(in oklab, var(--dot) 70%, transparent);
}
.shell .calendar-event:active {
  scale: 0.99;
}
.shell .calendar-event.confirmed,
.shell .calendar-event.completed {
  border-left: 0;
}
.shell .calendar-event.completed {
  --c1: #e8f7f6;
  --c2: #d1eeec;
  --ink2: #135654;
  --dot: var(--c-done);
}
.shell .calendar-event.reserved {
  --c1: #fff4e5;
  --c2: #ffe4c4;
  --ink2: #7a4410;
  --dot: var(--c-reserved);
  border-left: 0;
}
.shell .calendar-event.in_service {
  --c1: #f3eeff;
  --c2: #e2d9ff;
  --ink2: #44289a;
  --dot: var(--c-service);
  border-left: 0;
}
.shell .calendar-event.arrived {
  --c1: #e8f4ff;
  --c2: #d0e7fb;
  --ink2: #164a78;
  --dot: var(--c-arrived);
  border-left: 0;
}
.shell .calendar-event.critical {
  --c1: #ffecec;
  --c2: #ffd2d2;
  --ink2: #861b1b;
  --dot: var(--c-critical);
  animation:
    rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    alert-ring 2.4s ease-in-out 1s infinite;
  animation-delay: calc(var(--i, 0) * 50ms + 220ms), 1s;
}
.shell .calendar-event.is-selected {
  outline: 0;
  z-index: 7;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--primary),
    0 22px 34px -12px color-mix(in oklab, var(--primary) 60%, transparent);
}
.shell .calendar-event-time {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font: 600 12.5px var(--f-body, "DM Sans"), sans-serif;
  opacity: 0.85;
}
.shell .calendar-event-time .ic {
  flex: none;
  opacity: 0.7;
}
.shell .calendar-event strong {
  font: 800 15.5px/1.2 var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.01em;
}
.shell .calendar-event .ev-service {
  font-size: 13px;
  opacity: 0.82;
}
.shell .calendar-event .pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--dot) 20%, white);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dot) 32%, transparent);
  color: color-mix(in oklab, var(--dot) 40%, #0f1b33);
  font: 700 12px var(--f-body, "DM Sans"), sans-serif;
}
.shell .calendar-event.medium {
  padding: 10px 14px;
}
.shell .calendar-event.medium .pill {
  position: absolute;
  top: 9px;
  right: 11px;
  margin: 0;
  padding: 3px 10px;
  font-size: 11.5px;
}
.shell .calendar-event.medium .calendar-event-time {
  max-width: calc(100% - 92px);
}
.shell .calendar-event.short {
  padding: 8px 14px;
}
.shell .calendar-event.short .pill,
.shell .calendar-event.short .ev-service {
  display: none;
}
.shell .calendar-event.compact {
  padding: 3px 10px;
}
.shell .calendar-event.compact .pill,
.shell .calendar-event.compact .ev-service {
  display: none;
}
.lane-tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  font: 800 10px var(--f-display, "Manrope"), sans-serif;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* Intervalo, fora da jornada e bloqueio */
.shell .calendar-closed {
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgb(15 27 51 / 0.035) 0 2px,
      transparent 2px 11px
    ),
    #f7f9fc;
  color: #8b97ad;
  font: 600 12px var(--f-body, "DM Sans"), sans-serif;
}
.shell .calendar-closed span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: var(--shadow-1);
}
.shell .calendar-closed.break {
  left: 7px;
  right: 7px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgb(15 27 51 / 0.05);
}
.shell .calendar-block {
  left: 7px;
  right: 7px;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(
      135deg,
      rgb(59 74 107 / 0.05) 0 2px,
      transparent 2px 12px
    ),
    linear-gradient(160deg, #eef1fa, #dde3f4);
  color: #39486a;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 0 0 1px rgb(59 74 107 / 0.14),
    0 10px 18px -12px rgb(59 74 107 / 0.55);
  animation: rise 0.55s 0.25s both;
  text-align: left;
  transition:
    translate 0.25s,
    box-shadow 0.25s;
}
.shell .calendar-block:hover {
  filter: none;
  translate: 0 -2px;
}
.calendar-block .block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px var(--f-display, "Manrope"), sans-serif;
}
.calendar-block small {
  opacity: 0.8;
}

/* Linha da hora atual */
.now-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  height: 0;
  border-top: 2px solid var(--c-critical);
  pointer-events: none;
}
.now-line::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-critical);
  animation: ping 2s infinite;
}
.shell .calendar-times .now-label {
  position: absolute;
  right: 8px;
  z-index: 6;
  padding: 3px 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #f26a6a, var(--c-critical));
  box-shadow: 0 8px 16px -6px rgb(239 68 68 / 0.7);
  color: #fff;
  font: 800 12px var(--f-display, "Manrope"), sans-serif;
}

/* ===== Visão Semana ===== */
.shell .week-calendar .calendar-inner {
  grid-template-columns: 78px repeat(var(--professionals), minmax(200px, 1fr));
  min-width: calc(78px + var(--professionals) * 200px);
}
.week-calendar .calendar-person {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.week-day {
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 7px 14px 8px;
  border-radius: 16px;
  background: #f1f4fa;
  line-height: 1;
}
.week-day .dow {
  font: 800 10.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.week-day .dom {
  margin-top: 3px;
  font: 800 25px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
.week-calendar .week-meta small {
  font-size: 12px;
  color: var(--muted);
}
.week-calendar .calendar-person.is-today .week-day {
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--primary) 92%, white),
    color-mix(in oklab, var(--primary) 70%, #6d28d9)
  );
  box-shadow: 0 14px 22px -10px color-mix(in oklab, var(--primary) 80%, transparent);
  color: #fff;
}
.week-calendar .is-today .dow {
  color: rgb(255 255 255 / 0.85);
}
.week-calendar .calendar-event {
  padding: 8px 9px;
  border-radius: 13px;
}
.week-calendar .calendar-event strong {
  font-size: 13px;
}
.week-calendar .calendar-event .ev-service,
.week-calendar .calendar-event .pill {
  display: none;
}
.week-calendar .calendar-event-time {
  font-size: 11.5px;
}
.week-calendar .calendar-event-time .ic {
  display: none;
}

/* ===== Visão Lista ===== */
.list-view {
  display: grid;
  gap: 30px;
}
.list-day {
  animation: rise 0.6s both;
}
.list-day-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.list-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 62px;
  height: 66px;
  border-radius: 19px;
  background: linear-gradient(150deg, #24365e, #0f1b33);
  color: #fff;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 16px 24px -12px rgb(15 27 51 / 0.6);
}
.list-date small {
  font: 800 10.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.list-date strong {
  margin-top: 4px;
  font: 800 26px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
.list-day-head h3 {
  margin: 0;
  font: 800 21px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.02em;
}
.list-day-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.list-cards {
  display: grid;
  gap: 12px;
}
.shell .list-item {
  --dot: var(--c-confirmed);
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1.7fr) minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 20px 14px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    var(--shadow-2),
    0 0 0 1px rgb(15 27 51 / 0.03);
  text-align: left;
  font-weight: 400;
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 120ms);
  transition:
    translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
}
.shell .list-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px 120px at 0% 50%,
    color-mix(in oklab, var(--dot) 11%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.shell .list-item:hover {
  filter: none;
  translate: 0 -3px;
  box-shadow:
    var(--shadow-3),
    0 0 0 1px color-mix(in oklab, var(--dot) 25%, transparent);
}
.shell .list-item.is-selected {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--primary),
    var(--shadow-3);
}
.list-item.reserved {
  --dot: var(--c-reserved);
}
.list-item.in_service {
  --dot: var(--c-service);
}
.list-item.arrived {
  --dot: var(--c-arrived);
}
.list-item.completed {
  --dot: var(--c-done);
}
.list-item.critical {
  --dot: var(--c-critical);
}
.li-time {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 11px 6px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    color-mix(in oklab, var(--dot) 20%, white),
    color-mix(in oklab, var(--dot) 9%, white)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    inset 0 0 0 1px color-mix(in oklab, var(--dot) 28%, transparent);
  color: color-mix(in oklab, var(--dot) 38%, #0f1b33);
}
.li-time strong {
  font: 800 21px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
.li-time small {
  color: var(--muted);
  font-size: 12.5px;
}
.li-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.li-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 16.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.015em;
}
.li-main > span {
  color: #3d4a63;
  font-size: 14px;
}
.li-main small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.li-pro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font: 600 14px var(--f-display, "Manrope"), sans-serif;
}
.li-pro .avatar {
  width: 38px;
  height: 38px;
}
.li-pro > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.li-status {
  position: relative;
  z-index: 1;
}
.li-go {
  position: relative;
  z-index: 1;
  color: #a2adc1;
  transition:
    translate 0.25s,
    color 0.25s;
}
.list-item:hover .li-go {
  translate: 4px 0;
  color: var(--primary);
}
.shell .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--dot, var(--c-done)) 17%, white);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dot, var(--c-done)) 30%, transparent);
  color: color-mix(in oklab, var(--dot, var(--c-done)) 42%, #0f1b33);
  font: 700 12.5px var(--f-body, "DM Sans"), sans-serif;
}

/* Botão do WhatsApp no detalhe do atendimento */
.shell .detail-actions .wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid #b6e8c9;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2fcf6, #e2f7ea);
  box-shadow: var(--shadow-1);
  color: #0f6b36;
  font: 700 14px var(--f-body, "DM Sans"), sans-serif;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.shell .detail-actions .wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* ===== Painel de detalhe e estados vazios ===== */
.shell .detail {
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-3);
  animation: rise 0.5s both;
}
.shell .empty {
  padding: 56px 24px;
  border: 1px dashed #cfd8e8;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: center;
  color: var(--muted);
}
.shell .empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font: 800 18px var(--f-display, "Manrope"), sans-serif;
}

/* ===== Semana: matriz equipe × dias ===== */
.week-matrix {
  overflow: auto;
}
.wm-inner {
  display: grid;
  grid-template-columns: 204px repeat(7, minmax(134px, 1fr));
  min-width: calc(204px + 7 * 134px);
}
.wm-corner,
.wm-day {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(14px) saturate(1.5);
}
.wm-corner {
  left: 0;
  z-index: 7;
  border-left: 0;
  color: #a2adc1;
}
.wm-day small {
  color: var(--muted);
  font-size: 12px;
}
.wm-day.is-today .week-day {
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--primary) 92%, white),
    color-mix(in oklab, var(--primary) 70%, #6d28d9)
  );
  box-shadow: 0 14px 22px -10px color-mix(in oklab, var(--primary) 80%, transparent);
  color: #fff;
}
.wm-day.is-today .dow {
  color: rgb(255 255 255 / 0.85);
}
.wm-pro {
  position: sticky;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.wm-pro .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px hsl(var(--hue, 220) 70% 60% / 0.35),
    0 10px 18px -8px hsl(var(--hue, 220) 60% 40% / 0.55);
}
.wm-pro strong {
  display: block;
  font: 800 15.5px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.01em;
}
.wm-pro small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.wm-cell {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 112px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}
.wm-cell.is-today {
  background: color-mix(in oklab, var(--primary) 4%, white);
}
.wm-cell.off {
  background:
    repeating-linear-gradient(
      135deg,
      rgb(15 27 51 / 0.035) 0 2px,
      transparent 2px 11px
    ),
    #f7f9fc;
}
.wm-off {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  justify-self: center;
  margin: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: var(--shadow-1);
  color: #8b97ad;
  font: 600 12px var(--f-body, "DM Sans"), sans-serif;
}
.shell .wm-chip {
  --c1: #e8f8ee;
  --c2: #d2f0df;
  --ink2: #12502b;
  --dot: var(--c-confirmed);
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  color: var(--ink2);
  text-align: left;
  font-weight: 400;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.75),
    0 0 0 1px color-mix(in oklab, var(--dot) 22%, transparent),
    0 8px 16px -10px color-mix(in oklab, var(--dot) 65%, transparent);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms + 160ms);
  transition:
    translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
}
.shell .wm-chip:hover {
  filter: none;
  translate: 0 -2px;
  scale: 1.02;
  z-index: 3;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    0 0 0 1px color-mix(in oklab, var(--dot) 35%, transparent),
    0 16px 24px -12px color-mix(in oklab, var(--dot) 70%, transparent);
}
.wm-chip.completed {
  --c1: #e8f7f6;
  --c2: #d1eeec;
  --ink2: #135654;
  --dot: var(--c-done);
}
.wm-chip.reserved {
  --c1: #fff4e5;
  --c2: #ffe4c4;
  --ink2: #7a4410;
  --dot: var(--c-reserved);
}
.wm-chip.in_service {
  --c1: #f3eeff;
  --c2: #e2d9ff;
  --ink2: #44289a;
  --dot: var(--c-service);
}
.wm-chip.arrived {
  --c1: #e8f4ff;
  --c2: #d0e7fb;
  --ink2: #164a78;
  --dot: var(--c-arrived);
}
.wm-chip.critical {
  --c1: #ffecec;
  --c2: #ffd2d2;
  --ink2: #861b1b;
  --dot: var(--c-critical);
}
.shell .wm-chip.critical {
  animation:
    rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    alert-ring 2.4s ease-in-out 1s infinite;
  animation-delay: calc(var(--i, 0) * 35ms + 160ms), 1s;
}
.wm-chip.block {
  --c1: #eef1fa;
  --c2: #dde3f4;
  --ink2: #39486a;
  --dot: #6b7fb0;
}
.wm-chip.is-selected {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--primary),
    0 16px 26px -10px color-mix(in oklab, var(--primary) 55%, transparent);
}
.wm-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 12px var(--f-display, "Manrope"), sans-serif;
  opacity: 0.9;
}
.wm-time em {
  font-style: normal;
  font-weight: 600;
  opacity: 0.6;
}
.wm-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 13.5px/1.25 var(--f-display, "Manrope"), sans-serif;
}
.wm-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0.8;
}

/* ===== Recebimentos (vários por atendimento) ===== */
.pay-list {
  display: grid;
  gap: 12px;
}
.pay-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faff;
}
.pay-row.is-card {
  grid-template-columns: 1.2fr 1.1fr 0.9fr auto;
}
.pay-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pay-row .pay-machine {
  display: none;
}
.pay-row.is-card .pay-machine {
  display: grid;
}
.pay-remove {
  align-self: center;
  padding: 4px 10px;
  color: var(--muted);
}
.pay-summary {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
.pay-summary li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f3f6fb;
  font-size: 13px;
}

/* ===== Comissão no cadastro da profissional ===== */
.commission {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8faff;
}
.commission legend {
  padding: 0 8px;
  font: 800 14px var(--f-display, "Manrope"), sans-serif;
}
.commission-default {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.commission label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.commission-overrides {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.commission-override {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 0.8fr;
  gap: 8px;
  align-items: center;
}
.commission-override span {
  font-size: 13px;
  font-weight: 600;
}
.machine-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

/* ===== Financeiro ===== */
.fin-filters {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 20px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.fin-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fin-presets button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--muted);
  font: 700 13.5px var(--f-display, "Manrope"), sans-serif;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.fin-presets button:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.fin-presets button.active {
  border-color: transparent;
  background: linear-gradient(180deg, #22345c, #0f1b33);
  color: #fff;
}
.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.fin-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.fin-grid select,
.fin-grid input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
  color: var(--ink);
  font: 600 14px var(--f-body, "DM Sans"), sans-serif;
}
.fin-run {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fin-run button,
.fin-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.fin-head h2 {
  margin: 2px 0;
  font: 800 28px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
.fin-actions {
  display: flex;
  gap: 10px;
}
.fin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.fin-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: rise 0.5s both;
}
.fin-card:nth-child(2) { animation-delay: 0.04s; }
.fin-card:nth-child(3) { animation-delay: 0.08s; }
.fin-card:nth-child(4) { animation-delay: 0.12s; }
.fin-card:nth-child(5) { animation-delay: 0.16s; }
.fin-card:nth-child(6) { animation-delay: 0.2s; }
.fin-card:nth-child(7) { animation-delay: 0.24s; }
.fin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.fin-card strong {
  font: 800 26px var(--f-display, "Manrope"), sans-serif;
  letter-spacing: -0.03em;
}
.fin-card small {
  color: var(--muted);
}
.fin-ico {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 12%, white);
  color: var(--primary);
}
.fin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fin-panel {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.fin-panel h3 {
  margin: 0 0 14px;
  font: 800 17px var(--f-display, "Manrope"), sans-serif;
}
.fin-bar {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.6fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.fin-bar small {
  display: block;
  color: var(--muted);
}
.fin-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f9;
}
.fin-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--primary) 65%, white),
    var(--primary)
  );
  animation: grow 0.8s ease-out;
}
@keyframes grow {
  from {
    width: 0;
  }
}
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.fin-table th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.fin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: top;
}
.fin-table td small {
  display: block;
  color: var(--muted);
}
.fin-table .num {
  text-align: right;
  white-space: nowrap;
}
.fin-table tfoot td {
  border-top: 2px solid var(--line);
  font-weight: 800;
}
@media (max-width: 860px) {
  .fin-two {
    grid-template-columns: 1fr;
  }
  .fin-bar {
    grid-template-columns: 1fr auto;
  }
  .fin-bar-track {
    grid-column: 1 / -1;
    order: 3;
  }
  .pay-row,
  .pay-row.is-card,
  .commission-default,
  .commission-override {
    grid-template-columns: 1fr;
  }
}
@media print {
  .sidebar,
  .fin-filters,
  .fin-actions,
  .page-heading .section-actions,
  #toast,
  .progress {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
    background: #fff;
  }
  .fin-card,
  .fin-panel {
    break-inside: avoid;
    border: 1px solid #d5dbe6;
    box-shadow: none;
    animation: none;
  }
  .table-wrap {
    overflow: visible;
  }
}

/* O styles.css estreita o menu na tela de agenda; aqui voltamos à largura e ao tamanho da logo do desenho aprovado */
@media (min-width: 761px) {
  .shell:has(.agenda-page) {
    grid-template-columns: 264px minmax(0, 1fr);
  }
  .shell:has(.agenda-page) > .sidebar {
    padding: 28px 16px 22px;
  }
  .shell:has(.agenda-page) .sidebar .brand {
    gap: 13px;
    font-size: 21px;
  }
  .shell:has(.agenda-page) .sidebar .brand-logo {
    width: 50px;
    height: 50px;
  }
  .shell:has(.agenda-page) .nav button {
    gap: 14px;
    padding: 13px 16px;
    font-size: 15px;
  }
}

/* ===== Celular ===== */
@media (max-width: 760px) {
  .sidebar {
    padding: 16px 16px 12px;
  }
  .sidebar .brand {
    gap: 11px;
    font-size: 19px;
  }
  .sidebar .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .sidebar .brand small {
    display: none;
  }
  .nav {
    margin-top: 14px;
    padding-bottom: 6px;
  }
  .nav button {
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .nav button .ic {
    width: 18px;
    height: 18px;
  }
  .sidebar-bottom {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
  }
  .sidebar-bottom .me {
    padding: 0;
    gap: 9px;
  }
  .sidebar-bottom .me small {
    display: none;
  }
  .me-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .sidebar-bottom .subtle-link {
    margin-left: auto;
  }
  .sidebar-bottom .subtle-link span,
  .sidebar-bottom #logout span {
    display: none;
  }
  .sidebar-bottom #logout {
    margin-left: 0;
    padding: 10px 8px;
  }
  .agenda-page {
    padding-inline: 14px;
  }
  .agenda-page .page-heading {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
  }
  .agenda-page .page-heading h1 {
    font-size: 27px;
  }
  .agenda-page .page-heading .subtitle {
    margin-top: 6px;
    font-size: 15px;
  }
  .agenda-page .section-actions {
    width: 100%;
  }
  .agenda-page .section-actions button {
    flex: 1;
    justify-content: center;
    padding: 12px 10px;
    font-size: 13.5px;
  }
  .agenda-bar {
    gap: 10px;
    margin-top: 18px;
  }
  .date-nav {
    width: 100%;
  }
  .date-pill {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding-inline: 10px;
    font-size: 13.5px;
  }
  .date-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .legend {
    flex-basis: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -14px;
    padding-inline: 14px;
    scrollbar-width: none;
  }
  .legend::-webkit-scrollbar {
    display: none;
  }
  .legend-item {
    flex: none;
    padding: 7px 11px;
  }
  .shell .tabs {
    width: 100%;
  }
  .shell .tabs button {
    flex: 1;
    padding: 10px 6px;
  }
  .chip-field {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
  .chip-field.grow {
    flex-basis: 100%;
  }
  .shell .chip-field select {
    width: 100%;
  }
  .shell .calendar-inner {
    grid-template-columns: 62px repeat(var(--professionals), minmax(220px, 1fr));
    min-width: calc(62px + var(--professionals) * 220px);
  }
  .shell .calendar-times {
    width: 62px;
  }
  .shell .list-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding-right: 16px;
  }
  .shell .li-pro,
  .shell .li-go {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
