/**
 * OPUS UI V2 — Mes zones & Mes disponibilités.
 * Couche additive et intégralement scopée sous body.opus-ui-v2.
 */

body.opus-ui-v2 .opus-tool-page {
  --tool-ink: #171b2d;
  --tool-muted: #70778a;
  --tool-line: #e8e7ee;
  --tool-surface: #ffffff;
  --tool-soft: #f7f6fa;
  --tool-violet: var(--v2-violet, #6d3bff);
  --tool-violet-dark: var(--v2-violet-dark, #5726dc);
  --tool-violet-soft: var(--v2-violet-soft, #f0ecff);
  --tool-mint: #159f74;
  --tool-mint-soft: #e9f9f3;
  --tool-coral: #e75e4e;
  --tool-coral-soft: #fff1ee;
  --tool-shadow: 0 14px 42px rgba(29, 25, 49, .07);
  position: relative;
  overflow: visible !important;
}

body.opus-ui-v2 .opus-tool-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(109, 59, 255, .09), transparent 69%);
  pointer-events: none;
}

body.opus-ui-v2 .opus-tool-page > * {
  position: relative;
  z-index: 1;
}

body.opus-ui-v2 .opus-tool-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

body.opus-ui-v2 .opus-tool-page-heading__copy {
  max-width: 760px;
}

body.opus-ui-v2 .opus-tool-eyebrow {
  display: block;
  margin: 0 0 7px;
  color: var(--tool-violet);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.opus-ui-v2 .opus-tool-page-heading h2 {
  margin: 0;
  color: var(--tool-ink);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.12;
}

body.opus-ui-v2 .opus-tool-page-heading .muted {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--tool-muted);
  font-size: .88rem;
  line-height: 1.58;
}

body.opus-ui-v2 .opus-tool-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 16px;
}

body.opus-ui-v2 .opus-tool-panel-heading__text {
  flex: 1;
}

body.opus-ui-v2 .opus-tool-panel-title {
  margin: 0 !important;
  color: var(--tool-ink);
  font-size: 1.03rem !important;
  font-weight: 740;
  letter-spacing: -.025em;
}

body.opus-ui-v2 .opus-tool-panel-copy {
  max-width: 310px;
  margin: 0;
  color: var(--tool-muted);
  font-size: .76rem;
  line-height: 1.45;
  text-align: right;
}

/* Mes zones — structure dominante carte + panneau compact */
body.opus-ui-v2 .opus-zones-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: stretch;
}

body.opus-ui-v2 .opus-zone-map-panel,
body.opus-ui-v2 .opus-zone-side-panel,
body.opus-ui-v2 .opus-dispos-calendar-panel,
body.opus-ui-v2 .opus-dispos-bulk-panel {
  min-width: 0;
  background: var(--tool-surface);
  border: 1px solid var(--tool-line);
  border-radius: 17px;
  box-shadow: 0 4px 18px rgba(29, 25, 49, .035);
}

body.opus-ui-v2 .opus-zone-map-panel {
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: 18px;
}

body.opus-ui-v2 .opus-zone-side-panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

body.opus-ui-v2 #zonesSection .opus-zone-segments {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 4px;
  background: #f1f0f5;
  border: 1px solid #ebe9f0;
  border-radius: 12px;
}

body.opus-ui-v2 #zonesSection .opus-zone-segment {
  min-height: 38px;
  padding: 8px 13px;
  color: #525a6c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  font-size: .78rem;
  font-weight: 680;
  white-space: nowrap;
}

body.opus-ui-v2 #zonesSection .opus-zone-segment:hover {
  color: var(--tool-violet);
  background: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.9);
}

body.opus-ui-v2 #zonesSection .opus-zone-segment.is-active,
body.opus-ui-v2 #zonesSection .opus-zone-segment[aria-pressed="true"] {
  color: #fff;
  background: var(--tool-violet);
  border-color: var(--tool-violet);
  box-shadow: 0 4px 12px rgba(109, 59, 255, .2);
}

body.opus-ui-v2 #zonesSection #zoneClearShape {
  color: #7b7281;
}

body.opus-ui-v2 #zonesSection #zoneClearShape:hover {
  color: var(--tool-coral);
  background: var(--tool-coral-soft);
  border-color: #ffe0da;
}

body.opus-ui-v2 #zonesSection #zoneMap {
  flex: 1;
  width: 100% !important;
  min-height: 460px !important;
  height: 460px !important;
  margin: 0 !important;
  touch-action: none;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(109,59,255,.025), rgba(21,159,116,.025)),
    #f2f3f6;
  border: 1px solid #e1e1e8 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(23, 27, 45, .06) !important;
}

body.opus-ui-v2 #zonesSection .opus-zone-map-panel {
  touch-action: none;
}

body.opus-ui-v2 #zonesSection #zoneMap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: inherit;
  pointer-events: none;
}

body.opus-ui-v2 #zonesSection.zone-drawing-active #zoneMap,
body.opus-ui-v2.zone-drawing-active #zonesSection #zoneMap {
  box-shadow:
    0 0 0 3px rgba(109, 59, 255, .13),
    0 12px 30px rgba(23, 27, 45, .08) !important;
}

body.opus-ui-v2 #zonesSection .opus-zone-form {
  padding: 2px 0 17px;
  border-bottom: 1px solid var(--tool-line);
}

body.opus-ui-v2 #zonesSection .opus-zone-form .row {
  margin: 10px 0 12px;
}

body.opus-ui-v2 #zonesSection .opus-zone-form label {
  margin-bottom: 7px;
  font-size: .78rem;
}

body.opus-ui-v2 #zonesSection #zoneLibelle {
  min-height: 43px;
  background: #fbfbfd;
}

body.opus-ui-v2 #zonesSection .opus-zone-form .actions {
  margin: 10px 0 0;
}

body.opus-ui-v2 #zonesSection #zoneSubmitBtn {
  width: 100%;
  min-height: 44px;
  box-shadow: 0 7px 18px rgba(109, 59, 255, .18);
}

body.opus-ui-v2 #zonesSection .opus-saved-zones {
  flex: 1;
  margin: 17px 0 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones__title {
  color: var(--tool-ink);
  font-size: .88rem;
  font-weight: 730;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones__hint {
  color: #969cac;
  font-size: .65rem;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones table {
  border-collapse: separate;
  border-spacing: 0 7px;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

body.opus-ui-v2 #zonesSection .opus-zone-row td {
  padding: 12px 9px;
  color: #4d5568;
  background: #fafafd;
  border-top: 1px solid #ecebf1;
  border-bottom: 1px solid #ecebf1;
  font-size: .76rem;
  white-space: normal;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones table,
body.opus-ui-v2 #zonesSection .opus-saved-zones thead,
body.opus-ui-v2 #zonesSection .opus-saved-zones tbody,
body.opus-ui-v2 #zonesSection .opus-saved-zones tr {
  display: block;
  width: 100%;
}

body.opus-ui-v2 #zonesSection .opus-saved-zones thead {
  display: none;
}

body.opus-ui-v2 #zonesSection #zonesBody {
  display: grid;
  gap: 10px;
}

body.opus-ui-v2 #zonesSection .opus-zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ecebf1 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(24, 32, 51, .04);
}

body.opus-ui-v2 #zonesSection .opus-zone-row td {
  display: block;
  padding: 0 !important;
  border: 0 !important;
}

body.opus-ui-v2 #zonesSection .opus-zone-empty-row {
  display: block;
  padding: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
}

body.opus-ui-v2 #zonesSection .opus-zone-empty-row td {
  padding: 0 !important;
}

body.opus-ui-v2 #zonesSection .opus-zone-row__type::before {
  content: "Forme · ";
  color: #9299a8;
  font-weight: 600;
}

body.opus-ui-v2 #zonesSection .opus-zone-row td:first-child {
  border: 0;
  border-radius: 0;
}

body.opus-ui-v2 #zonesSection .opus-zone-empty-row td:last-child {
  border: 0;
  border-radius: 0;
}

body.opus-ui-v2 #zonesSection .opus-v2-zones-empty {
  display: grid;
  gap: 8px;
  padding: 24px 18px;
  text-align: center;
  background: #fafafd;
  border: 1px dashed #dfe1e8;
  border-radius: 14px;
}

body.opus-ui-v2 #zonesSection .opus-zone-row__name {
  max-width: 135px;
  color: var(--tool-ink);
  font-weight: 680;
  overflow-wrap: anywhere;
}

body.opus-ui-v2 #zonesSection .opus-zone-row__type {
  color: var(--tool-violet);
  font-size: .68rem;
  font-weight: 680;
}

body.opus-ui-v2 #zonesSection .opus-zone-row__action {
  width: 36px;
  text-align: right;
}

body.opus-ui-v2 #zonesSection .opus-zone-delete {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  color: transparent;
  background: #fff;
  border: 1px solid #eadfe1;
  border-radius: 9px;
  font-size: 0;
  box-shadow: none;
}

body.opus-ui-v2 #zonesSection .opus-zone-delete::before {
  content: "×";
  color: #c35e61;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

body.opus-ui-v2 #zonesSection .opus-zone-delete:hover {
  background: var(--tool-coral-soft);
  border-color: #ffd5cf;
  transform: none;
}

/* Mes disponibilités — calendrier premium */
body.opus-ui-v2 .opus-dispos-calendar-panel {
  padding: 18px;
}

body.opus-ui-v2 #disposSection .opus-dispos-toolbar {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(220px, .7fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tool-line);
}

body.opus-ui-v2 #disposSection .opus-dispos-toolbar .calendar-controls {
  display: grid;
  grid-template-columns: 42px minmax(130px, 1fr) 42px;
  align-items: center;
  gap: 9px;
  margin: 0;
}

body.opus-ui-v2 #disposSection .opus-dispos-toolbar .calendar-controls button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: #444d61;
  background: #fff;
  border: 1px solid #dedfe6;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(23, 27, 45, .04);
  font-size: 1.12rem;
}

body.opus-ui-v2 #disposSection .opus-dispos-toolbar .calendar-controls button:hover {
  color: var(--tool-violet);
  background: var(--tool-violet-soft);
  border-color: #d7ceff;
  transform: none;
}

body.opus-ui-v2 #disposSection .calendar-title {
  color: var(--tool-ink);
  font-size: 1.07rem;
  font-weight: 760;
  letter-spacing: -.025em;
  text-align: center;
}

body.opus-ui-v2 #disposSection .opus-zone-picker {
  margin: 0;
}

body.opus-ui-v2 #disposSection .opus-zone-picker__label {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #61697a;
  font-size: .74rem;
  font-weight: 680;
}

body.opus-ui-v2 #disposSection #disposZoneSelect {
  min-height: 42px;
  margin: 0;
  padding-right: 34px;
  background-color: #fafafd;
}

body.opus-ui-v2 #disposSection .opus-dispos-guide {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 9px 11px;
  color: #626a7d;
  background: #f8f7fc;
  border: 1px solid #eeebf8;
  border-radius: 10px;
  font-size: .72rem;
  line-height: 1.4;
}

body.opus-ui-v2 #disposSection .opus-dispos-guide__marker {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: var(--tool-violet);
  background: var(--tool-violet-soft);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
}

body.opus-ui-v2 #disposSection #disposCalendarGrid {
  gap: 7px !important;
  margin: 0;
  overflow: visible;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell {
  position: relative;
  min-height: 82px;
  padding: 9px;
  color: #596174;
  background: #fbfbfd;
  border: 1px solid #e8e7ee;
  border-radius: 11px;
  box-shadow: none;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell:not(.header-cell):not(.empty-cell):not(.past-date):not(.disabled):hover {
  z-index: 2;
  border-color: #cfc6fb;
  box-shadow: 0 7px 16px rgba(38, 30, 70, .08);
  transform: translateY(-2px);
}

body.opus-ui-v2 #disposSection .opus-calendar-cell:focus-visible {
  outline: 2px solid var(--tool-violet);
  outline-offset: 2px;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell .day-number {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 27px;
  height: 27px;
  color: var(--tool-ink);
  background: rgba(255,255,255,.7);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 760;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell .zone-name {
  margin: auto 0 4px;
  color: inherit;
  font-size: .59rem;
  font-weight: 650;
  line-height: 1.22;
  opacity: .82;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell .cell-status {
  color: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .01em;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.header-cell {
  min-height: 30px;
  padding: 5px 2px;
  color: #9298a7;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .65rem;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.empty-cell {
  min-height: 82px;
  background: transparent;
  border-color: transparent;
  visibility: hidden;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.dispo {
  color: #087558;
  background:
    radial-gradient(circle at 88% 12%, rgba(21,159,116,.13), transparent 32%),
    var(--tool-mint-soft);
  border-color: #ccecdf;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.dispo::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  background: #24b386;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(36,179,134,.12);
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.occupe {
  color: #bf4f43;
  background:
    radial-gradient(circle at 88% 12%, rgba(231,94,78,.1), transparent 32%),
    var(--tool-coral-soft);
  border-color: #f5d9d4;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.occupe::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  background: #ea7668;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(234,118,104,.1);
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.past-date,
body.opus-ui-v2 #disposSection .opus-calendar-cell.disabled {
  color: #9aa0ad;
  background: #f3f3f6;
  border-color: #e9e9ed;
  filter: saturate(.45);
  opacity: .82;
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.disabled::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 7px;
  height: 7px;
  background: #aeb3bd;
  border-radius: 2px;
  transform: rotate(45deg);
}

body.opus-ui-v2 #disposSection .opus-calendar-cell.disabled .cell-status {
  color: #7b8290;
  font-size: .58rem;
}

body.opus-ui-v2 #disposSection .dispos-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin: 14px 2px 0;
  color: #72798a;
  font-size: .67rem;
}

body.opus-ui-v2 #disposSection .dispos-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.opus-ui-v2 #disposSection .dispos-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

body.opus-ui-v2 #disposSection .dispos-legend-dot.is-available {
  background: #24b386;
  box-shadow: 0 0 0 3px rgba(36,179,134,.1);
}

body.opus-ui-v2 #disposSection .dispos-legend-dot.is-busy {
  background: #ea7668;
  box-shadow: 0 0 0 3px rgba(234,118,104,.08);
}

body.opus-ui-v2 #disposSection .dispos-legend-dot.is-locked {
  background: #aeb3bd;
  box-shadow: 0 0 0 3px rgba(174,179,189,.1);
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel {
  margin: 16px 0 0 !important;
  padding: 16px !important;
  background:
    linear-gradient(120deg, rgba(109,59,255,.045), transparent 48%),
    #fafafd !important;
  border-color: #e9e5f6 !important;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel h3 {
  position: relative;
  margin: 0 0 5px !important;
  padding-top: 15px;
  color: var(--tool-ink);
  font-size: .93rem !important;
  font-weight: 730;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel h3::before {
  content: attr(data-eyebrow);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--tool-violet);
  font-size: .58rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-help {
  margin: 0 0 13px !important;
  color: var(--tool-muted);
  font-size: .72rem !important;
  line-height: 1.42;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-fields {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: end !important;
  gap: 10px !important;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-field {
  min-width: 0 !important;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel label {
  margin: 0 0 5px !important;
  color: #656d7e;
  font-size: .67rem !important;
}

body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel select,
body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel input {
  min-height: 40px;
  background: #fff;
  font-size: .78rem;
}

body.opus-ui-v2 #disposSection #disposBulkApplyBtn {
  min-height: 40px;
  padding: 9px 15px;
  font-size: .78rem;
}

body.opus-ui-v2 #disposSection .opus-dispos-savebar {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  justify-content: flex-end;
  margin: 16px 0 0;
  padding: 10px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,227,236,.92);
  border-radius: 13px;
  box-shadow: 0 12px 34px rgba(25, 21, 45, .11);
  backdrop-filter: blur(12px);
}

body.opus-ui-v2 #disposSection #disposSaveBtn {
  min-width: 230px;
  box-shadow: 0 7px 18px rgba(109, 59, 255, .18);
}

body.opus-ui-v2 #zonesSection #zoneStatus,
body.opus-ui-v2 #disposSection #dispoStatus {
  margin: 0 0 16px;
  border-color: #dcd5fa;
  background: #f7f5ff;
}

@media (max-width: 1050px) {
  body.opus-ui-v2 .opus-zones-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .85fr);
  }

  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-fields {
    grid-template-columns: 1fr 1fr;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-field:first-child,
  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-action {
    grid-column: 1 / -1;
  }

  body.opus-ui-v2 #disposSection #disposBulkApplyBtn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  body.opus-ui-v2 .opus-zones-layout {
    grid-template-columns: 1fr;
  }

  body.opus-ui-v2 .opus-zone-map-panel {
    min-height: 0;
  }

  body.opus-ui-v2 #zonesSection #zoneMap {
    min-height: 410px !important;
    height: 410px !important;
  }

  body.opus-ui-v2 #zonesSection .opus-saved-zones {
    max-height: none;
  }
}

body.opus-ui-v2 #disposSection .opus-dispos-summary {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #364055;
  background: #f7f8fb;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

body.opus-ui-v2 #disposSection .opus-dispos-summary.is-empty {
  color: #697386;
  background: #fafbfd;
}

body.opus-ui-v2.opus-v2-bottom-nav-active #disposSection .opus-dispos-savebar {
  bottom: calc(var(--opus-v2-bottom-nav-h, 56px) + 8px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  body.opus-ui-v2 .opus-tool-page {
    padding: 16px 13px 22px !important;
  }

  body.opus-ui-v2 .opus-tool-page::before {
    display: none;
  }

  body.opus-ui-v2 .opus-tool-page-heading {
    margin-bottom: 18px;
  }

  body.opus-ui-v2 .opus-tool-page-heading h2 {
    font-size: 1.42rem;
  }

  body.opus-ui-v2 .opus-tool-page-heading .muted {
    display: block;
    margin-top: 8px;
    font-size: .79rem;
    line-height: 1.48;
  }

  body.opus-ui-v2 .opus-tool-panel-heading {
    align-items: flex-start;
    margin-bottom: 13px;
  }

  body.opus-ui-v2 .opus-tool-panel-copy {
    display: none;
  }

  body.opus-ui-v2 .opus-zone-map-panel,
  body.opus-ui-v2 .opus-zone-side-panel,
  body.opus-ui-v2 .opus-dispos-calendar-panel {
    padding: 13px;
    border-radius: 14px;
    box-shadow: none;
  }

  body.opus-ui-v2 #zonesSection .opus-zone-segments {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.opus-ui-v2 #zonesSection .opus-zone-segment {
    min-height: 42px;
    padding: 8px 7px;
    font-size: .73rem;
  }

  body.opus-ui-v2 #zonesSection #zoneClearShape {
    grid-column: 1 / -1;
  }

  body.opus-ui-v2 #zonesSection #zoneMap {
    min-height: 350px !important;
    height: 350px !important;
    border-radius: 12px !important;
    touch-action: pan-x pan-y pinch-zoom;
  }

  body.opus-ui-v2 #zonesSection .opus-zone-map-panel {
    touch-action: pan-x pan-y pinch-zoom;
  }

  body.opus-ui-v2 #zonesSection .opus-zone-row td {
    padding: 11px 8px;
  }

  body.opus-ui-v2 #zonesSection .opus-saved-zones::after {
    display: none;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.opus-ui-v2 #disposSection .opus-zone-picker__label {
    grid-template-columns: 44px 1fr;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-guide {
    font-size: .67rem;
  }

  body.opus-ui-v2 #disposSection #disposCalendarGrid {
    gap: 4px !important;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell {
    min-height: 55px !important;
    height: 55px !important;
    padding: 5px 2px !important;
    border-radius: 8px;
    gap: 1px;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell .day-number {
    align-self: center;
    width: 24px;
    height: 24px;
    background: transparent;
    font-size: .82rem;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell .zone-name {
    width: 100%;
    margin: 0;
    padding: 0 2px;
    font-size: .48rem;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell .cell-status {
    display: none;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell::after {
    top: 5px !important;
    right: 5px !important;
    width: 5px !important;
    height: 5px !important;
    box-shadow: none !important;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell.header-cell {
    min-height: 26px !important;
    height: 26px !important;
    padding: 3px 0 !important;
    font-size: .58rem;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell.empty-cell {
    min-height: 55px !important;
    height: 55px !important;
  }

  body.opus-ui-v2 #disposSection .dispos-legend {
    justify-content: center;
    margin-top: 12px;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-fields {
    grid-template-columns: 1fr 1fr !important;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-field:first-child,
  body.opus-ui-v2 #disposSection .opus-dispos-bulk-panel .dispos-bulk-action {
    grid-column: 1 / -1;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-savebar {
    bottom: 8px;
    margin-top: 12px;
    padding: 8px;
  }

  body.opus-ui-v2 #disposSection #disposSaveBtn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  body.opus-ui-v2 #zonesSection #zoneMap {
    min-height: 315px !important;
    height: 315px !important;
  }

  body.opus-ui-v2 #disposSection .opus-dispos-guide {
    display: none;
  }

  body.opus-ui-v2 #disposSection #disposCalendarGrid {
    gap: 3px !important;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell {
    min-height: 49px !important;
    height: 49px !important;
  }

  body.opus-ui-v2 #disposSection .opus-calendar-cell.empty-cell {
    min-height: 49px !important;
    height: 49px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.opus-ui-v2 .opus-tool-page *,
  body.opus-ui-v2 .opus-tool-page *::before,
  body.opus-ui-v2 .opus-tool-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
