:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #4f46e5;
  --brand-soft: #e0e7ff;
  --brand-dark: #3730a3;
  --calendar-teal: #12b8b2;
  --calendar-teal-dark: #0f8f8a;
  --amber-bg: #fef3c7;
  --amber-ink: #b45309;
  --emerald-bg: #dcfce7;
  --emerald-ink: #15803d;
  --rose-bg: #ffe4e6;
  --rose-ink: #be123c;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  --calendar-day-width: 104px;
  --calendar-gap: 0px;
  --calendar-listing-width: 196px;
  --calendar-next-width: 116px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(99,102,241,0.08), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
body.pull-refresh-active { overscroll-behavior-y: contain; }
.hidden { display: none !important; }
.shell {
  --pull-refresh-distance: 0px;
  min-height: 100vh;
  padding: 20px 14px calc(92px + env(safe-area-inset-bottom));
}
.shell.loading { opacity: 0.92; }
.auth-card,
.drawer-card,
.content-shell,
.topbar,
.bottom-nav {
  max-width: 980px;
  margin: 0 auto;
}
.auth-card,
.drawer-card,
.panel,
.stat-card,
.calendar-toolbar,
.calendar-shell,
.bottom-nav {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226,232,240,0.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.auth-card,
.drawer-card { padding: 24px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.auth-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.auth-toggle-button {
  margin-top: 12px;
  width: 100%;
}
label span,
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
h1, h2 { margin: 0; font-weight: 800; line-height: 1.1; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
.muted { color: var(--muted); font-size: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input, button, textarea { font: inherit; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}
button {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}
button.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 12px 14px;
}
.topbar {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top, 0px));
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}
.topbar-profile {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
}
.topbar-team-filter {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(42vw, 188px);
}
.topbar-team-select {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
    #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.topbar-team-select:focus {
  outline: 2px solid rgba(79, 70, 229, 0.24);
  outline-offset: 1px;
}
.topbar-task-date {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)), #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.topbar-task-date input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
}
.topbar-task-date input:focus {
  outline: none;
}
.topbar-menu {
  position: relative;
}
.topbar-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-menu-icon {
  font-size: 21px;
  line-height: 1;
}
.topbar-refresh-button .topbar-menu-icon {
  font-size: 23px;
}
.topbar-reservation-button {
  min-width: 54px;
  padding-inline: 10px;
  font-size: 12px;
}
.topbar-action-text {
  min-width: 68px;
}
.topbar-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 172px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(226,232,240,0.96);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.topbar-menu-item {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}
.topbar-menu-item:last-child {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}
.content-shell { display: grid; gap: 14px; }
.pull-refresh-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  z-index: 65;
  min-width: 128px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  color: #334155;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -64px) scale(0.96);
  transition: transform 180ms ease, opacity 140ms ease, border-color 140ms ease, color 140ms ease;
}
.pull-refresh-indicator.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.pull-refresh-indicator.armed {
  border-color: rgba(79, 70, 229, 0.52);
  color: var(--brand-dark);
}
.pull-refresh-indicator.refreshing .pull-refresh-spinner {
  animation: pull-refresh-spin 720ms linear infinite;
}
.pull-refresh-spinner {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1;
}
.pull-refresh-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.shell.pull-refresh-dragging .topbar,
.shell.pull-refresh-dragging .content-shell {
  transform: translateY(var(--pull-refresh-distance));
  transition: none;
}
.shell.pull-refresh-refreshing .topbar,
.shell.pull-refresh-refreshing .content-shell {
  transform: translateY(34px);
  transition: transform 180ms ease;
}
.shell.pull-refresh-resetting .topbar,
.shell.pull-refresh-resetting .content-shell {
  transform: translateY(0);
  transition: transform 180ms ease;
}
@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}
.view-panel { display: grid; gap: 14px; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(var(--bottom-nav-item-count, 4), minmax(0, 1fr));
  gap: 0;
  max-width: none;
  min-height: calc(74px + env(safe-area-inset-bottom));
  padding: 4px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  margin: 0;
  background: rgba(255,255,255,0.94);
  border: 0;
  border-top: 1px solid rgba(203,213,225,0.82);
  border-radius: 0;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}
.bottom-nav-item {
  position: relative;
  background: transparent;
  color: #4b5563;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  min-height: 58px;
  padding: 5px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}
.bottom-nav-item:disabled {
  opacity: 1;
  cursor: default;
}
.bottom-nav-item.active {
  background: transparent;
  color: var(--brand);
}
.bottom-nav-item.active::before {
  background: var(--brand);
}
.bottom-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #4b5563;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.bottom-nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-item.active .bottom-nav-icon {
  background: linear-gradient(135deg, var(--brand), #3550e8);
  color: #fff;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}
.bottom-nav-item.active .bottom-nav-icon svg {
  width: 16px;
  height: 16px;
}
.bottom-nav-label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.bottom-nav-item.active .bottom-nav-label {
  color: var(--brand);
}
.bottom-nav-item.nav-unavailable .bottom-nav-icon,
.bottom-nav-item.nav-unavailable .bottom-nav-label {
  color: #6b7280;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}
.stat-value.done { color: var(--emerald-ink); }
.stat-value.today { color: var(--brand); }
.stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.hours-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: rgba(240, 253, 244, 0.92);
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.topbar-hours-sync {
  max-width: 100%;
}
.topbar-hours-sync strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hours-sync span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.hours-sync.saving {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.hours-sync.saving span {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}
.hours-sync.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.hours-sync.error span {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.hours-week-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
}
.hours-week-nav button {
  min-height: 42px;
  border-radius: 14px;
}
.hours-stats-grid .stat-card {
  min-height: 100px;
  display: grid;
  align-content: center;
}
.hours-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #eef2f7;
}
.hours-panel-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
.hours-days,
.hours-payments {
  display: grid;
}
.hours-day-row {
  display: grid;
  grid-template-columns: minmax(58px, 70px) minmax(104px, 128px) minmax(74px, auto);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  min-height: 56px;
}
.hours-day-row + .hours-day-row {
  border-top: 1px solid #f1f5f9;
}
.hours-day-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.hours-day-label strong {
  font-size: 16px;
  line-height: 1;
  color: #0f172a;
}
.hours-day-label span {
  font-size: 16px;
  line-height: 1;
  color: #64748b;
}
.hours-duration-field {
  display: block;
  min-width: 0;
}
.hours-duration-field input {
  min-width: 0;
  width: 100%;
  height: 35px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.hours-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 74px;
}
.hours-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.hours-status-pill.draft {
  background: #f1f5f9;
  color: #64748b;
}
.hours-status-pill.submitted {
  background: var(--amber-bg);
  color: var(--amber-ink);
}
.hours-status-pill.validated {
  background: var(--emerald-bg);
  color: var(--emerald-ink);
}
.hours-status-pill.paid {
  background: #dcfce7;
  color: #166534;
}
.hours-status-pill.partial {
  background: #e0f2fe;
  color: #0369a1;
}
.hours-row-action {
  width: 74px;
  min-width: 0;
  min-height: 35px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
}

@media (max-width: 360px) {
  .hours-day-row {
    grid-template-columns: minmax(50px, 62px) minmax(96px, 1fr) minmax(68px, auto);
    gap: 6px;
    padding-inline: 12px;
  }
}
.hours-empty {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.hours-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}
.hours-payment-row + .hours-payment-row {
  border-top: 1px solid #f1f5f9;
}
.hours-payment-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.hours-payment-main strong {
  color: #166534;
  font-size: 13px;
}
.hours-payment-main span,
.hours-payment-date {
  color: var(--muted);
  font-size: 11px;
}
.hours-payment-date {
  white-space: nowrap;
}
.task-groups { display: grid; gap: 16px; }
.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  margin-bottom: 8px;
}
.date-chip {
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 800;
}
.date-chip.today {
  background: var(--brand);
  color: #fff;
}
.date-chip.tomorrow {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.date-chip.default {
  background: #f1f5f9;
  color: #475569;
}
.group-subtitle {
  font-size: 12px;
  color: var(--muted);
}
.group-count {
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}
.group-divider {
  flex: 1;
  border-top: 1px solid #e2e8f0;
}
.panel { overflow: hidden; }
.task-row {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
}
.task-row + .task-row { border-top: 1px solid #f1f5f9; }
.task-row:hover { background: #f8fafc; }
.task-row.done { background: #f0fdf4; }
.task-row.done:hover { background: #dcfce7; }
.task-row.done .row-title { color: var(--emerald-ink); }
.row-icon { font-size: 18px; line-height: 1; margin-top: 2px; }
.row-body { min-width: 0; flex: 1; display: grid; gap: 6px; }
.row-title-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}
.row-description { font-size: 12px; color: #64748b; }
.row-alert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}
.row-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; color: #94a3b8; }
.status-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pill.pending,
.status-pill.accepted,
.status-pill.in_progress { background: var(--amber-bg); color: var(--amber-ink); }
.status-pill.issue_reported { background: #ffedd5; color: #c2410c; }
.status-pill.done { background: var(--emerald-bg); color: var(--emerald-ink); }
.status-pill.cancelled { background: var(--rose-bg); color: var(--rose-ink); }
.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 10px;
}
.calendar-toolbar {
  padding: 12px 16px;
  display: block;
}
.calendar-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calendar-month-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--calendar-teal);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.calendar-month-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  z-index: 2;
}
.calendar-month-icon {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 0;
  position: relative;
  z-index: 1;
}
.calendar-month-icon::before {
  content: "";
  width: 10px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.calendar-month-picker span:last-child {
  position: relative;
  z-index: 1;
}
.calendar-board { display: grid; gap: 12px; }
.calendar-shell {
  overflow: hidden;
  padding: 0;
  border-radius: 0;
}
.calendar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.calendar-grid {
  position: relative;
  min-width: calc(var(--calendar-listing-width) + (var(--calendar-day-width) * var(--day-count)) + var(--calendar-next-width));
}
.calendar-header,
.calendar-row {
  display: grid;
  grid-template-columns: var(--calendar-listing-width) 1fr;
}
.calendar-corner,
.calendar-listing {
  padding: 14px 16px;
  background: #fff;
  border-right: 2px solid var(--calendar-teal);
}
.calendar-corner {
  position: sticky;
  left: 0;
  z-index: 8;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  text-transform: none;
  letter-spacing: 0;
}
.calendar-today-corner {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 68px;
  text-align: left;
  cursor: pointer;
  background: #fff;
}
.calendar-today-corner span:last-child {
  min-width: 0;
  font-size: 13px;
  line-height: 1.15;
}
.calendar-today-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(18, 184, 178, 0.12);
  color: var(--calendar-teal-dark);
  font-size: 13px;
  line-height: 1;
}
.calendar-listing {
  position: sticky;
  left: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px;
}
.calendar-listing-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #ef3f14;
}
.calendar-listing-dot.clean { background: #10b981; }
.calendar-listing-dot.dirty { background: #ef3f14; }
.calendar-listing-name { font-size: 15px; font-weight: 800; color: #1e293b; }
.calendar-days,
.calendar-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--day-count), var(--calendar-day-width));
  padding: 0 12px 0 0;
}
.calendar-header .calendar-days {
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
}
.calendar-day-head,
.calendar-day-cell {
  border-left: 1px solid #e2e8f0;
}
.calendar-day-head {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 68px;
  color: #475569;
  border-bottom: 1px solid #e5e7eb;
}
.calendar-day-head.today,
.calendar-day-cell.today { background: rgba(254, 243, 199, 0.5); }
.calendar-day-number { font-size: 20px; font-weight: 500; color: #334155; }
.calendar-day-month { font-size: 9px; font-weight: 800; line-height: 1; text-transform: uppercase; color: #94a3b8; }
.calendar-day-weekday { font-size: 12px; text-transform: uppercase; color: #6b7280; }
.calendar-next-period-panel {
  align-items: center;
  border: 0;
  border-left: 1px solid #e2e8f0;
  background: #fff;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  justify-content: center;
  inset: 0 0 0 auto;
  padding: 0 18px;
  position: absolute;
  text-align: center;
  width: var(--calendar-next-width);
  z-index: 6;
}
.calendar-row + .calendar-row { border-top: 1px solid #e2e8f0; }
.calendar-track {
  min-height: 84px;
  align-items: stretch;
  background: #fff;
}
.calendar-day-cell {
  min-height: 84px;
  background: #fff;
}
.calendar-bar {
  position: absolute;
  top: 16px;
  height: 42px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
  overflow: visible;
  white-space: nowrap;
  text-overflow: ellipsis;
  z-index: 3;
}
.calendar-bar.airbnb,
.calendar-bar.booking,
.calendar-bar.direct,
.calendar-bar.default,
.calendar-channel.airbnb,
.calendar-channel.booking,
.calendar-channel.direct,
.calendar-channel.default { background: var(--calendar-teal); }
.calendar-channel {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.55);
}
.calendar-bar .calendar-channel {
  background: rgba(255, 255, 255, 0.24);
}
.calendar-unavailable-bar {
  position: absolute;
  top: 16px;
  height: 42px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #94a3b8;
  background: rgba(226, 232, 240, 0.78);
  pointer-events: none;
  z-index: 0;
}
.calendar-unavailable-bar span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
}
.calendar-bar-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messages-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.messages-actionbar {
  display: grid;
  gap: 10px;
  margin-top: -6px;
}
.messages-search {
  display: block;
}
.messages-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  padding: 10px 14px;
}
.messages-search input::placeholder {
  color: #94a3b8;
  font-weight: 700;
}
.messages-search input:focus {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.messages-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar-messages-filter-row {
  flex-wrap: nowrap;
  gap: 6px;
}
.messages-filter {
  background: #fff;
  color: #475569;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: none;
  padding: 8px 12px;
}
.topbar-messages-filter-row .messages-filter {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}
.messages-filter.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
}
.messages-inbox {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226,232,240,0.96);
  box-shadow: var(--shadow);
}
.messages-inbox-item {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  text-align: left;
  padding: 16px;
}
.messages-inbox-item + .messages-inbox-item {
  border-top: 1px solid #eef2f7;
}
.messages-inbox-item:hover {
  background: #f8fafc;
}
.messages-inbox-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}
.messages-inbox-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.messages-inbox-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.messages-inbox-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.messages-inbox-name {
  font-size: 18px;
  color: #0f172a;
}
.messages-inbox-time {
  font-size: 12px;
  color: #94a3b8;
}
.messages-inbox-preview {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.messages-inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #94a3b8;
}
.messages-inquiry-chip {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.messages-inbox-dot {
  width: 12px;
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: #ea580c;
}
.messages-thread-head {
  display: block;
  margin-top: 8px;
}
#messages-thread-screen .eyebrow {
  display: none;
}
#messages-reservation-screen .messages-thread-head {
  margin-bottom: 8px;
}
.messages-thread-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow: hidden;
}
.reservation-title {
  font-size: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messages-thread-meta-row {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
}
.messages-thread-meta-row .muted {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messages-thread-panel {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.messages-thread-list {
  display: grid;
  gap: 8px;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 4px;
}
.messages-thread-message {
  border-radius: 14px;
  padding: 8px 10px;
  display: grid;
  gap: 5px;
}
.messages-thread-message p {
  margin: 0;
  font-size: 12px;
  line-height: 1.38;
  white-space: pre-wrap;
}
.messages-thread-media-grid {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.messages-thread-image-link {
  border-radius: 10px;
  display: block;
  max-width: min(240px, 72vw);
  overflow: hidden;
}
.messages-thread-image {
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  display: block;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}
.messages-thread-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
}
.messages-thread-message-meta strong,
.messages-thread-message-meta span {
  font-size: inherit;
}
.messages-thread-message.message-host {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.messages-thread-message.message-auto {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}
.messages-thread-message.message-guest {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.messages-thread-message.message-system {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.messages-composer {
  display: grid;
  gap: 8px;
}
.messages-composer textarea {
  max-height: min(44dvh, 360px);
  min-height: 112px;
  overflow: auto;
  resize: vertical;
}
.messages-draft-assistant {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 9px;
}
.messages-draft-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.messages-draft-assistant-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.messages-draft-assistant-head span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.messages-draft-assistant-head strong {
  color: #172554;
  font-size: 14px;
  line-height: 1.1;
}
.messages-draft-assistant-head em {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}
.messages-draft-reason,
.messages-draft-source {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}
.messages-draft-source {
  color: #475569;
}
.messages-draft-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.messages-draft-chip {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  padding: 6px 8px;
}
.messages-draft-chip.risk {
  background: #fff7ed;
  color: #c2410c;
}
.messages-draft-chip.missing {
  background: #fef2f2;
  color: #b91c1c;
}
.messages-draft-chip.ok {
  background: #dcfce7;
  color: #166534;
}
.messages-draft-evidence {
  display: grid;
  gap: 5px;
}
.messages-draft-evidence span {
  border-left: 3px solid #bfdbfe;
  color: #475569;
  font-size: 11px;
  line-height: 1.3;
  padding-left: 8px;
}
.messages-draft-proposed {
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 10px;
}
.messages-draft-proposed p {
  color: #172554;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
}
.messages-draft-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.messages-draft-action {
  border-radius: 12px;
  min-height: 38px;
  padding: 8px 6px;
  font-size: 11px;
  line-height: 1.1;
}
.messages-draft-instruction {
  border-top: 1px solid #dbeafe;
  display: grid;
  gap: 8px;
  padding-top: 10px;
}
.messages-draft-instruction label {
  color: #172554;
  font-size: 11px;
  font-weight: 900;
}
.messages-draft-instruction textarea {
  min-height: 56px;
  resize: vertical;
}
.messages-draft-instruction-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.messages-draft-action.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.messages-draft-voice {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  min-height: 38px;
  min-width: 78px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.1;
}
.messages-draft-voice.recording {
  background: #fee2e2;
  color: #b91c1c;
}
.messages-draft-voice-status {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}
.messages-draft-voice-status.pending {
  background: #ecfeff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #0f766e;
  padding: 7px 9px;
}
.reservation-detail-panel {
  padding: 18px 28px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(203,213,225,0.9);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.reservation-detail-grid {
  display: grid;
  gap: 0;
}
.reservation-detail-item {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  box-shadow: none;
  text-align: left;
  color: inherit;
}
.reservation-detail-item:last-child {
  border-bottom: 0;
}
.reservation-detail-item span {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.reservation-detail-item strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}
.reservation-phone-copy {
  width: 100%;
  cursor: pointer;
}
.reservation-phone-copy strong::after {
  content: " Copier";
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.reservation-phone-copy.copied strong::after {
  content: " Copié";
}
.cleaner-conversation-calendar-panel {
  padding: 20px 28px 28px;
  display: grid;
  gap: 16px;
}
.cleaner-conversation-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cleaner-conversation-calendar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.cleaner-conversation-calendar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cleaner-conversation-calendar-nav button {
  min-width: 44px;
  flex: 1 1 0;
  padding-inline: 10px;
}
.cleaner-conversation-calendar-month {
  border-radius: 16px;
  background: #eef2ff;
  color: #1e293b;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.cleaner-conversation-calendar-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.cleaner-conversation-calendar-listing {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.cleaner-conversation-calendar-focus {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.cleaner-conversation-calendar-count {
  border-radius: 12px;
  background: #eef2ff;
  color: var(--brand);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.cleaner-conversation-calendar-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.cleaner-conversation-calendar-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.cleaner-conversation-mini-calendar {
  display: grid;
}
.cleaner-conversation-mini-weekdays,
.cleaner-conversation-mini-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cleaner-conversation-mini-weekdays {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.cleaner-conversation-mini-weekday {
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}
.cleaner-conversation-mini-week {
  position: relative;
}
.cleaner-conversation-mini-week + .cleaner-conversation-mini-week {
  border-top: 1px solid #eef2f7;
}
.cleaner-conversation-mini-day {
  min-height: 58px;
  border-left: 1px solid #eef2f7;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
}
.cleaner-conversation-mini-day:first-child {
  border-left: 0;
}
.cleaner-conversation-mini-day.outside {
  color: #cbd5e1;
}
.cleaner-conversation-mini-day.today {
  background: rgba(254, 243, 199, 0.6);
}
.cleaner-conversation-mini-day.focus {
  background: rgba(224, 231, 255, 0.7);
}
.cleaner-conversation-mini-segment {
  position: absolute;
  top: 31px;
  height: 23px;
  border-radius: 999px;
  background: #bff2ef;
  color: #0f172a;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.cleaner-conversation-mini-segment.selected {
  background: #0f9f99;
  color: #fff;
}
.cleaner-conversation-mini-segment.continued-start {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.cleaner-conversation-mini-segment.continued-end {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.cleaner-conversation-mini-segment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  padding: 18px 12px;
}
.drawer-card {
  margin-top: 28px;
  max-height: calc(100vh - 56px);
  overflow: auto;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.drawer-body { margin-top: 16px; display: grid; gap: 12px; }
.drawer-actions { display: grid; gap: 8px; margin-top: 18px; }
.drawer-actions-top { margin-top: 16px; }
.drawer-actions-bottom { margin-top: 18px; }
.drawer-inline-actions { margin-top: 0; }
.fact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.fact strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.checklist-block strong {
  margin-bottom: 0;
}
.checklist-block span {
  font-size: 11px;
}
.checklist-groups {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.checklist-group {
  margin: 0;
}
.checklist-group-title {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.checklist-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.checklist-item {
  margin: 0;
}
.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: #334155;
  cursor: pointer;
}
.checklist-item-input {
  margin: 1px 0 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.drawer-body .muted {
  color: var(--muted);
}
.review-panel {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.review-head strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-dark);
  letter-spacing: 0.05em;
}
.review-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.review-rating-btn {
  padding: 10px 8px;
  font-size: 12px;
}
.review-rating-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}
.fact.urgent {
  background: #fff7ed;
  border-color: #fdba74;
}
.fact.urgent strong,
.fact.urgent span { color: #c2410c; }
.drawer-actions .full-width { grid-column: 1 / -1; }
.drawer-actions .danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
@media (min-width: 768px) {
  .shell { padding-top: 28px; }
  .drawer-card { max-width: 760px; }
  .drawer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-nav {
    max-width: none;
  }
  .messages-thread-list {
    max-height: 48vh;
  }
}
@media (max-width: 767px) {
  :root {
    --calendar-day-width: 42px;
    --calendar-listing-width: 116px;
    --calendar-next-width: 86px;
  }
  .calendar-toolbar {
    padding: 10px 12px;
  }
  .calendar-toolbar-head {
    align-items: center;
  }
  .topbar {
    align-items: center;
    justify-content: space-between;
  }
  .topbar-actions {
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-wrap: wrap;
    gap: 6px;
  }
  .topbar-profile {
    font-size: 12px;
  }
  .topbar-reservation-button {
    min-width: 48px;
    padding-inline: 8px;
    font-size: 10px;
  }
  .topbar-action-text {
    min-width: 60px;
  }
  .topbar-messages-filter-row {
    gap: 5px;
  }
  .topbar-messages-filter-row .messages-filter {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }
  .topbar-team-filter {
    max-width: 152px;
  }
  .topbar-team-select {
    font-size: 12px;
    padding-left: 12px;
    padding-right: 34px;
  }
  .topbar-task-date {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 17px;
  }
  .calendar-month-picker {
    min-width: 124px;
    height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }
  .calendar-corner,
  .calendar-listing {
    padding: 10px 8px;
  }
  .calendar-corner {
    font-size: 15px;
  }
  .calendar-today-corner {
    min-height: 54px;
    gap: 5px;
  }
  .calendar-today-corner span:last-child {
    font-size: 11px;
  }
  .calendar-today-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }
  .calendar-listing-name {
    font-size: 12px;
    line-height: 1.25;
  }
  .calendar-header .calendar-days {
    padding-top: 0;
    padding-bottom: 0;
  }
  .calendar-day-head {
    min-height: 54px;
    gap: 2px;
  }
  .calendar-day-number {
    font-size: 16px;
    font-weight: 500;
  }
  .calendar-day-month {
    font-size: 7px;
  }
  .calendar-day-weekday {
    font-size: 9px;
  }
  .calendar-next-period-panel {
    font-size: 17px;
    padding: 0 10px;
  }
  .calendar-track,
  .calendar-day-cell {
    min-height: 52px;
  }
  .calendar-bar {
    top: 9px;
    height: 28px;
    border-radius: 12px;
    gap: 6px;
    padding: 0 8px;
    font-size: 11px;
  }
  .calendar-unavailable-bar {
    top: 9px;
    height: 28px;
    border-radius: 12px;
    padding: 0 8px;
  }
  .calendar-unavailable-bar span {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }
  .calendar-channel {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
  }
  .calendar-bar-text {
    max-width: 100%;
  }
  .messages-inbox-item {
    padding: 14px 12px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .messages-inbox-name {
    font-size: 15px;
  }
  .messages-thread-head {
    margin-top: 6px;
  }
  #messages-reservation-screen .messages-thread-head {
    margin-bottom: 6px;
  }
  .cleaner-conversation-calendar-header,
  .cleaner-conversation-calendar-meta {
    flex-direction: column;
    align-items: stretch;
  }
  .cleaner-conversation-calendar-nav {
    justify-content: stretch;
  }
  .cleaner-conversation-calendar-nav button {
    flex: 1 1 0;
  }
  .cleaner-conversation-calendar-month {
    text-align: center;
  }
  .reservation-title {
    font-size: 15px;
  }
  .reservation-detail-panel {
    padding: 12px 14px;
    border-radius: 18px;
  }
  .reservation-detail-item {
    padding: 11px 0;
    gap: 10px;
  }
  .reservation-detail-item span {
    font-size: 11px;
  }
  .reservation-detail-item strong {
    font-size: 13px;
  }
  .cleaner-conversation-calendar-panel {
    padding: 14px;
    gap: 12px;
  }
  .cleaner-conversation-calendar-title {
    font-size: 18px;
  }
  .cleaner-conversation-calendar-nav {
    gap: 10px;
  }
  .cleaner-conversation-calendar-month {
    padding: 10px 12px;
    font-size: 12px;
  }
  .cleaner-conversation-mini-day {
    min-height: 52px;
    font-size: 14px;
  }
  .cleaner-conversation-mini-segment {
    top: 29px;
    height: 21px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  :root {
    --calendar-day-width: 36px;
    --calendar-listing-width: 102px;
    --calendar-next-width: 78px;
  }
  .calendar-corner,
  .calendar-listing {
    padding: 9px 6px;
  }
  .calendar-listing-name {
    font-size: 11px;
  }
  .calendar-month-picker {
    min-width: 122px;
    font-size: 14px;
  }
  .calendar-month-icon {
    width: 18px;
    height: 18px;
  }
  .calendar-day-number {
    font-size: 15px;
  }
  .calendar-day-month {
    font-size: 7px;
  }
  .calendar-next-period-panel {
    font-size: 15px;
    padding: 0 8px;
  }
  .calendar-track,
  .calendar-day-cell {
    min-height: 48px;
  }
  .calendar-bar {
    top: 8px;
    height: 26px;
    padding: 0 7px;
    font-size: 10px;
  }
  .calendar-unavailable-bar {
    top: 8px;
    height: 26px;
    border-radius: 12px;
    padding: 0 7px;
  }
  .calendar-unavailable-bar span {
    width: 13px;
    height: 13px;
    font-size: 9px;
  }
  .calendar-channel {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 932px) and (orientation: landscape) and (max-height: 520px) {
  .shell {
    padding-bottom: 20px;
  }

  .bottom-nav {
    display: none;
  }
}
