/* Horizonte — team layout. Scoped to the authenticated shell; guest and login keep their own styles. */
html:has(.horizon-shell) {
  --mq-ink: #22251f;
  --mq-muted: #626977;
  --mq-line: #e2e5eb;
  --mq-canvas: #f6f7f9;
  --mq-yellow: #ffd84d;
  --canvas: #f6f7f9;
  --line: #e2e5eb;
  --muted: #626977;
  --green-light: #f1f3f6;
  --shadow: 0 3px 14px #1a243203;
  background: #f6f7f9;
}

html:has(.horizon-shell) body {
  background: #f6f7f9;
  color: #22251f;
}

html:has(.horizon-shell) body .shell,
html:has(.horizon-shell) body:has(.operation-workspace) .shell:not(.sidebar-collapsed) {
  display: block;
  min-height: 100vh;
}

html:has(.horizon-shell) .main-wrap {
  width: 100%;
  min-width: 0;
  margin: 0;
}

html:has(.horizon-shell) .horizon-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: #22251f;
  border-bottom: 1px solid #ffffff12;
  color: #fff;
}

html:has(.horizon-shell) .horizon-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  min-height: 72px;
  max-width: 1560px;
  padding: 0 32px;
  margin: auto;
}

html:has(.horizon-shell) .horizon-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  text-decoration: none;
}

html:has(.horizon-shell) .horizon-brand img {
  display: block;
  width: 150px;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}

html:has(.horizon-shell) .horizon-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 5px;
  min-width: 0;
}

html:has(.horizon-shell) .horizon-nav > button,
html:has(.horizon-shell) .horizon-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d3d7cf;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

html:has(.horizon-shell) .horizon-nav > button:hover,
html:has(.horizon-shell) .horizon-nav > a:hover {
  background: #ffffff08;
  color: #fff;
}

html:has(.horizon-shell) .horizon-nav > .active,
html:has(.horizon-shell) .horizon-nav > [aria-current="page"] {
  background: #ffffff05;
  color: #ffd84d;
  font-weight: 700;
}

html:has(.horizon-shell) .horizon-nav > .active::after,
html:has(.horizon-shell) .horizon-nav > [aria-current="page"]::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ffd84d;
  content: "";
}

html:has(.horizon-shell) .horizon-nav svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  color: currentColor;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-nav > .nav-button {
  width: auto;
  margin: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d3d7cf;
  box-shadow: none;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-nav > .nav-button.active {
  background: #ffffff05;
  color: #ffd84d;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-nav > .nav-button svg,
html:has(.horizon-shell) body .shell.horizon-shell .horizon-nav > .nav-button .nav-label {
  color: inherit;
}

html:has(.horizon-shell) .horizon-nav .nav-count {
  margin-left: 0;
  padding: 2px 5px;
  border-radius: 5px;
  background: #ffffff18;
  color: #fff;
  font-size: 10px;
}

html:has(.horizon-shell) .horizon-more {
  position: relative;
  align-self: stretch;
  color: #d3d7cf;
  font-size: 13px;
}

html:has(.horizon-shell) .horizon-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 100%;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 550;
}

html:has(.horizon-shell) .horizon-header summary:focus-visible {
  outline: 3px solid #ffd84d;
  outline-offset: -4px;
}

html:has(.horizon-shell) .horizon-more > summary::-webkit-details-marker { display: none; }
html:has(.horizon-shell) .horizon-more > summary::after { content: "⌄"; font-size: 15px; }
html:has(.horizon-shell) .horizon-more[open] > summary,
html:has(.horizon-shell) .horizon-more > summary:hover { background: #ffffff0d; color: #fff; }
html:has(.horizon-shell) .horizon-more.active > summary { color: #ffd84d; }

html:has(.horizon-shell) .horizon-more-panel {
  position: fixed;
  top: 80px;
  right: 16px;
  width: 248px;
  max-width: calc(100vw - 32px);
  max-height: min(600px, 75vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 44px #1b26391f;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-more-panel .horizon-more-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  gap: 10px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  color: #465367;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-more-panel .horizon-more-button:hover {
  background: #f2f5fa;
  color: #263b59;
}

html:has(.horizon-shell) body .shell.horizon-shell .horizon-more-panel .horizon-more-button.active {
  background: #fff5cb;
  color: #22251f;
  font-weight: 650;
}

html:has(.horizon-shell) .horizon-utility {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

html:has(.horizon-shell) .horizon-unit {
  display: flex;
  align-items: center;
  flex: 0 1 145px;
  min-width: 0;
  min-height: 44px;
  max-width: 145px;
  padding-left: 18px;
  border-left: 1px solid #ffffff26;
  color: #d3d7cf;
}

html:has(.horizon-shell) .horizon-unit .unit-avatar,
html:has(.horizon-shell) .horizon-unit .eyebrow { display: none; }
html:has(.horizon-shell) .horizon-unit strong { max-width: 125px; color: #d3d7cf; font-size: 12px; font-weight: 500; }

html:has(.horizon-shell) .horizon-utility .public-link,
html:has(.horizon-shell) .horizon-utility .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d3d7cf;
}

html:has(.horizon-shell) .horizon-utility .public-link:hover,
html:has(.horizon-shell) .horizon-utility .icon-button:hover {
  background: #ffffff10;
  color: white;
}

html:has(.horizon-shell) .horizon-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  background: #42483b;
  color: #fff2bf;
  font-size: 12px;
  font-weight: 650;
}

html:has(.horizon-shell) .horizon-utility .notification-button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  color: #d3d7cf;
}

html:has(.horizon-shell) .horizon-utility .notification-button > span {
  border-color: #22251f;
}

html:has(.horizon-shell) .horizon-utility .header-profile {
  min-height: 44px;
  border-left-color: #ffffff24;
  padding-left: 15px;
  color: #f1f3ed;
}

html:has(.horizon-shell) .horizon-utility .header-profile-copy strong { color: #f1f3ed; }
html:has(.horizon-shell) .horizon-utility .header-profile-copy small { color: #bfc6b9; }
html:has(.horizon-shell) .horizon-utility .header-avatar { border-radius: 50%; background: #454d3c; color: #fff2ba; }

html:has(.horizon-shell) .horizon-search-popover {
  position: relative;
  flex-shrink: 0;
}

html:has(.horizon-shell) .horizon-search-popover > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  color: #d3d7cf;
  cursor: pointer;
  list-style: none;
}

html:has(.horizon-shell) .horizon-search-popover > summary::-webkit-details-marker { display: none; }
html:has(.horizon-shell) .horizon-search-popover > summary svg { width: 19px; height: 19px; }
html:has(.horizon-shell) .horizon-search-popover[open] > summary,
html:has(.horizon-shell) .horizon-search-popover > summary:hover { background: #ffffff12; color: #fff; }

html:has(.horizon-shell) .horizon-search-panel {
  position: fixed;
  top: 80px;
  right: max(24px, calc((100vw - 1496px) / 2));
  width: 560px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid #d3dce8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 44px #1b263924;
  color: #4b5d77;
}

html:has(.horizon-shell) .horizon-search-panel .horizon-search {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 46px;
  padding: 9px 12px;
  border-color: #bfcada;
  border-radius: 8px;
  background: #f7f9fc;
  color: #66778f;
}

html:has(.horizon-shell) .horizon-search-panel .horizon-search input {
  color: #455871;
  font-size: 14px;
}

html:has(.horizon-shell) .horizon-search-panel .horizon-search input::placeholder { color: #697a91; }
html:has(.horizon-shell) .horizon-search-panel .horizon-search button { color: #455871; }

html:has(.horizon-shell) .operation-workspace {
  max-width: 1560px;
  padding: 20px 32px 24px;
  margin: auto;
  background: transparent;
}

html:has(.horizon-shell) .operation-heading {
  align-items: center;
  margin-bottom: 18px;
}

html:has(.horizon-shell) .operation-heading h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 750;
}

html:has(.horizon-shell) .operation-heading p {
  display: block;
  margin-top: 5px;
  color: #626977;
  font-size: 13px;
}

html:has(.horizon-shell) .btn,
html:has(.horizon-shell) .icon-button {
  border-color: #d8dde5;
  color: #3b4351;
  border-radius: 9px;
  box-shadow: none;
}

html:has(.horizon-shell) .btn:hover,
html:has(.horizon-shell) .icon-button:hover {
  background: #f0f2f6;
  border-color: #b6becb;
}

html:has(.horizon-shell) .btn.primary {
  background: #ffd84d;
  border-color: #ffd84d;
  color: #22251f;
}

html:has(.horizon-shell) .operation-layout,
html:has(.horizon-shell) .operation-layout.show-calendar {
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 28px;
}

html:has(.horizon-shell) .operation-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html:has(.horizon-shell) .operation-sidebar .card {
  border: 1px solid #e2e5eb;
  border-radius: 14px;
  box-shadow: 0 3px 14px #1a243203;
}

html:has(.horizon-shell) .operation-calendar-tools {
  gap: 16px;
}

html:has(.horizon-shell) .operation-month {
  padding: 14px 15px 12px;
}

html:has(.horizon-shell) .operation-month-heading {
  margin-bottom: 10px;
}

html:has(.horizon-shell) .operation-month-heading .icon-button {
  color: #6b7380;
}

html:has(.horizon-shell) .operation-month .operation-month-title input[type="month"] {
  font-size: 18px;
  font-weight: 700;
  color: #262d39;
}

html:has(.horizon-shell) .operation-calendar-grid {
  padding: 0;
  gap: 3px;
}

html:has(.horizon-shell) .operation-calendar-weekday {
  color: #647082;
  font-size: 10px;
  font-weight: 550;
}

html:has(.horizon-shell) .operation-calendar-day {
  min-height: 50px;
  padding: 4px 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f6f9;
  color: #68717f;
}

html:has(.horizon-shell) .operation-calendar-day strong {
  color: #697381;
  font-size: 11px;
  font-weight: 500;
}

html:has(.horizon-shell) .operation-calendar-day span {
  color: #384353;
  font-size: 17px;
  font-weight: 650;
}

html:has(.horizon-shell) .operation-calendar-day.has-reservations {
  background: #fff8dd;
  border-color: #f4eac0;
}

html:has(.horizon-shell) .operation-calendar-day.has-reservations span {
  color: #725717;
}

html:has(.horizon-shell) .operation-calendar-day.outside:not(.selected) {
  background: #fafbfc;
  border-color: transparent;
}

html:has(.horizon-shell) .operation-calendar-day.outside strong,
html:has(.horizon-shell) .operation-calendar-day.outside span {
  color: #687282;
}

html:has(.horizon-shell) .operation-calendar-day.today strong {
  background: #e8ecf1;
  color: #384353;
}

html:has(.horizon-shell) .operation-calendar-day:hover {
  background: #edf0f6;
  border-color: #bbc5d4;
}

html:has(.horizon-shell) .operation-calendar-day.selected {
  padding: 4px 3px;
  background: #ffd84d;
  border-color: #ffd84d;
  box-shadow: none;
}

html:has(.horizon-shell) .operation-calendar-day.selected strong,
html:has(.horizon-shell) .operation-calendar-day.selected span {
  color: #22251f;
}

html:has(.horizon-shell) .operation-calendar-day.selected.today strong {
  background: #fff2bc;
}

html:has(.horizon-shell) .operation-calendar-footer {
  border-color: #edf0f4;
}

html:has(.horizon-shell) .operation-calendar-footer .operation-calendar-caption {
  color: #6b7380;
}

html:has(.horizon-shell) .operation-calendar-footer .btn {
  background: #f3f5f8;
  color: #454f5d;
}

html:has(.horizon-shell) .operation-daily-summary {
  padding: 17px 18px;
}

html:has(.horizon-shell) .operation-daily-summary h2,
html:has(.horizon-shell) .operation-daily-summary .daily-capacity-heading,
html:has(.horizon-shell) .operation-daily-summary p,
html:has(.horizon-shell) .operation-daily-summary small {
  color: #626977;
}

html:has(.horizon-shell) .operation-daily-summary strong {
  color: #262d39;
  font-size: 30px;
  font-weight: 700;
}

html:has(.horizon-shell) .operation-daily-summary .daily-capacity-track {
  height: 5px;
  background: #edf0f4;
  border-radius: 3px;
}

html:has(.horizon-shell) .operation-daily-summary .daily-capacity-track > span {
  background: #ffd84d;
  border-radius: 3px;
}

html:has(.horizon-shell) .operation-queue-heading {
  border-color: #edf0f4;
  padding: 15px 17px;
}

html:has(.horizon-shell) .operation-queue-heading h2 {
  font-size: 14px;
}

html:has(.horizon-shell) .operation-queue-heading .counter {
  background: #f0f2f6;
  color: #5c6674;
}

html:has(.horizon-shell) .operation-queue-empty,
html:has(.horizon-shell) .operation-queue-row {
  color: #626977;
  border-color: #edf0f4;
}

html:has(.horizon-shell) .operation-day {
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px #1a243203;
}

html:has(.horizon-shell) .operation-date-header {
  padding: 12px 20px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

html:has(.horizon-shell) .operation-date-header h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #262d39;
}

html:has(.horizon-shell) .operation-day-totals {
  gap: 4px 14px;
  margin-top: 3px;
  color: #6b7380;
  font-size: 12px;
}

html:has(.horizon-shell) .operation-day-totals strong {
  color: #374151;
  font-size: 13px;
  font-weight: 650;
}

html:has(.horizon-shell) .operation-date-header .date-control input {
  background: #fff;
  border-color: #d7dde7;
  color: #485363;
}

html:has(.horizon-shell) .operation-date-header .date-control button {
  border-color: #e2e6ed;
}

html:has(.horizon-shell) .operation-date-header .date-control .btn {
  background: #f3f5f8;
  color: #485363;
}

html:has(.horizon-shell) .operation-toolbar {
  padding: 0 20px 12px;
  gap: 10px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #fff;
}

html:has(.horizon-shell) .operation-toolbar .search-box input,
html:has(.horizon-shell) .operation-toolbar .filter-select {
  background: #f8f9fb;
  border-color: #cbd2de;
  border-radius: 9px;
  color: #454f5d;
}

html:has(.horizon-shell) .operation-toolbar .search-box input::placeholder {
  color: #647082;
}

html:has(.horizon-shell) .operation-time-group {
  margin: 0;
  border: 0;
}

html:has(.horizon-shell) .operation-time-group > header {
  min-height: 34px;
  padding: 7px 20px;
  border: 0;
  border-top: 1px solid #e7ebf1;
  border-bottom: 1px solid #e7ebf1;
  background: #f7f8fb;
  gap: 10px;
}

html:has(.horizon-shell) .operation-time-group:first-child > header {
  border-top: 0;
}

html:has(.horizon-shell) .operation-time-group > header h3 {
  color: #354152;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
}

html:has(.horizon-shell) .operation-time-group > header span,
html:has(.horizon-shell) .operation-time-group > header small {
  color: #667183;
  font-size: 12px;
  font-weight: 450;
}

html:has(.horizon-shell) .operation-reservation {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  padding: 8px 20px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

html:has(.horizon-shell) .operation-reservation:last-child {
  border-bottom: 0;
}

html:has(.horizon-shell) .operation-reservation:hover {
  background: #fcfcfe;
  border-color: #edf0f4;
  box-shadow: none;
}

html:has(.horizon-shell) .operation-reservation.arrived {
  border-left: 3px solid #9473ca;
  padding-left: 17px;
}

html:has(.horizon-shell) .operation-client-heading {
  gap: 4px 12px;
  margin-bottom: 1px;
}

html:has(.horizon-shell) .operation-client-title {
  gap: 6px 9px;
}

html:has(.horizon-shell) .operation-client-heading .operation-client-name {
  min-height: 28px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.2px;
  color: #293342;
}

html:has(.horizon-shell) .operation-party {
  color: #5e6878;
  font-size: 12px;
}

html:has(.horizon-shell) .operation-contact-links {
  gap: 0 12px;
}

html:has(.horizon-shell) .operation-contact-links a {
  min-height: 28px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5b70;
  font-weight: 450;
}

html:has(.horizon-shell) .operation-contact-links a svg {
  color: #8692a3;
}

html:has(.horizon-shell) .operation-client .operation-notes {
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4f5b6c;
  font-size: 12px;
  line-height: 1.5;
}

html:has(.horizon-shell) .operation-client .operation-notes strong {
  color: #455164;
  font-weight: 600;
}

html:has(.horizon-shell) .operation-client .operation-author {
  margin-top: 3px;
  color: #647082;
  font-size: 10px;
  font-weight: 450;
}

html:has(.horizon-shell) .operation-state-chip {
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
}

html:has(.horizon-shell) .operation-row-controls {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) 44px;
  gap: 5px 7px;
}

html:has(.horizon-shell) .operation-row-controls label {
  gap: 0;
  color: #647082;
  font-size: 0;
  line-height: 0;
  font-weight: 500;
}

html:has(.horizon-shell) .operation-row-controls select {
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.4;
  padding: 9px 7px;
  border-color: #cbd3df;
  border-radius: 8px;
  font-size: 12px;
  color: #455164;
  background-color: #fff;
}

html:has(.horizon-shell) .operation-row-controls .icon-button {
  height: 44px;
  min-height: 44px;
  background: #fff;
  border-color: #dce2eb;
  border-radius: 8px;
  color: #677589;
}

html:has(.horizon-shell) .operation-next-actions .btn {
  height: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border-color: #dde3eb;
  border-radius: 8px;
  background: #f7f9fb;
  color: #4e5d72;
  font-size: 12px;
  font-weight: 550;
}

html:has(.horizon-shell) .operation-next-actions .btn.primary {
  background: #eef2f8;
  border-color: #dae2ee;
  color: #354f74;
}

html:has(.horizon-shell) .operation-next-actions .btn.primary:hover {
  background: #e4ebf6;
  border-color: #b8c7de;
}

html:has(.horizon-shell) .operation-row-controls .operation-status-select.confirmed {
  background: #f4faf7;
  border-color: #c9e0d4;
  color: #34644d;
}

html:has(.horizon-shell) .operation-row-controls .operation-status-select.pending {
  background: #fffbef;
  border-color: #e8ddb4;
  color: #7c6321;
}

html:has(.horizon-shell) .operation-row-controls .operation-status-select.arrived {
  background: #f7f4fc;
  border-color: #ddd1ed;
  color: #73539b;
}

html:has(.horizon-shell) .operation-row-controls .operation-status-select.seated {
  background: #f2f7fc;
  border-color: #c9daef;
  color: #3d628a;
}

html:has(.horizon-shell) .operation-row-controls .operation-status-select.cancelled,
html:has(.horizon-shell) .operation-row-controls .operation-status-select.no_show {
  background: #fcf5f6;
  border-color: #edcfd5;
  color: #984b5b;
}

html:has(.horizon-shell) .operation-day .table-footer {
  padding: 13px 22px;
  border-top: 1px solid #edf0f4;
  border-radius: 0;
  color: #647082;
  font-size: 11px;
}

html:has(.horizon-shell) .workspace-foot {
  max-width: 1560px;
  padding: 0 32px 24px;
  color: #647082;
}

@media (max-width: 1190px) {
  html:has(.horizon-shell) .horizon-header-inner { gap: 22px; padding: 0 24px; }
  html:has(.horizon-shell) .horizon-nav > button,
  html:has(.horizon-shell) .horizon-nav > a { padding-right: 12px; padding-left: 12px; }
  html:has(.horizon-shell) .horizon-utility { gap: 7px; }
  html:has(.horizon-shell) .horizon-utility .header-profile-copy { display: none; }
  html:has(.horizon-shell) .horizon-unit { display: none; }
  html:has(.horizon-shell) .operation-workspace { padding: 18px 24px 22px; }
  html:has(.horizon-shell) .operation-layout,
  html:has(.horizon-shell) .operation-layout.show-calendar { gap: 20px; }
  html:has(.horizon-shell) .operation-reservation { grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; padding: 8px 18px; }
  html:has(.horizon-shell) .operation-reservation.arrived { padding-left: 15px; }
  html:has(.horizon-shell) .operation-date-header { padding: 12px 18px 10px; }
  html:has(.horizon-shell) .operation-date-header h2 { font-size: 20px; }
  html:has(.horizon-shell) .operation-toolbar { padding: 0 18px 12px; }
  html:has(.horizon-shell) .operation-time-group > header { padding-right: 18px; padding-left: 18px; }
  html:has(.horizon-shell) .operation-contact-links a { min-height: 44px; font-size: 14px; }
  html:has(.horizon-shell) .operation-row-controls select { font-size: 14px; }
  html:has(.horizon-shell) .workspace-foot { padding: 0 24px 24px; }
}

@media (max-width: 1100px) and (min-width: 900px) {
  html:has(.horizon-shell) .horizon-nav > button,
  html:has(.horizon-shell) .horizon-nav > a { gap: 5px; padding-right: 8px; padding-left: 8px; font-size: 12px; }
  html:has(.horizon-shell) .horizon-more > summary { padding-right: 10px; padding-left: 10px; font-size: 12px; }
  html:has(.horizon-shell) .horizon-header-inner { gap: 18px; }
  html:has(.horizon-shell) .operation-reservation { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 940px) {
  html:has(.horizon-shell) .horizon-header-inner { height: 108px; min-height: 108px; gap: 0 14px; flex-wrap: wrap; padding: 8px 20px 0; }
  html:has(.horizon-shell) .horizon-brand { order: 1; }
  html:has(.horizon-shell) .horizon-utility { order: 2; }
  html:has(.horizon-shell) .horizon-nav { order: 3; flex: 1 1 100%; min-height: 48px; height: 48px; gap: 8px; }
  html:has(.horizon-shell) .horizon-nav > button,
  html:has(.horizon-shell) .horizon-nav > a { flex: 1; padding: 0 10px; }
  html:has(.horizon-shell) .horizon-nav > .horizon-more { flex: 1; }
  html:has(.horizon-shell) .horizon-more > summary { min-height: 48px; padding: 0 10px; }
  html:has(.horizon-shell) .horizon-search-panel { top: 116px; right: 12px; }
  html:has(.horizon-shell) .horizon-more-panel { top: 116px; }
  html:has(.horizon-shell) .operation-workspace { padding: 18px 20px; }
  html:has(.horizon-shell) .operation-layout,
  html:has(.horizon-shell) .operation-layout.show-calendar { grid-template-columns: 350px minmax(0, 1fr); gap: 16px; }
  html:has(.horizon-shell) .operation-heading h1 { font-size: 27px; }
  html:has(.horizon-shell) .operation-heading p { font-size: 12px; }
  html:has(.horizon-shell) .operation-row-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 44px; }
  html:has(.horizon-shell) .operation-date-header .date-control { flex-wrap: wrap; }
  html:has(.horizon-shell) .operation-toolbar { flex-wrap: wrap; }
  html:has(.horizon-shell) .operation-toolbar .search-box { flex: 1 1 100%; }
  html:has(.horizon-shell) .operation-toolbar .filter-select { max-width: none; flex: 1; }
}

@media (max-width: 899px) {
  html:has(.horizon-shell) .operation-layout,
  html:has(.horizon-shell) .operation-layout.show-calendar { grid-template-columns: minmax(0, 1fr); }
  html:has(.horizon-shell) .operation-layout > .operation-sidebar { display: none; }
  html:has(.horizon-shell) .operation-layout.show-calendar > .operation-sidebar { display: flex; }
  html:has(.horizon-shell) .operation-calendar-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: start; }
  html:has(.horizon-shell) .operation-sidebar .operation-queue { display: none; }
  html:has(.horizon-shell) .operation-heading { align-items: flex-start; margin-bottom: 19px; }
  html:has(.horizon-shell) .operation-heading p { display: none; }
  html:has(.horizon-shell) .operation-reservation { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 719px) {
  html:has(.horizon-shell) .operation-calendar-tools { display: flex; flex-direction: column; }
  html:has(.horizon-shell) .operation-calendar-tools > * { width: 100%; }
}

@media (max-width: 559px) {
  html:has(.horizon-shell) .horizon-header-inner { height: 108px; min-height: 108px; padding: 8px 12px 0; gap: 0 10px; }
  html:has(.horizon-shell) .horizon-brand img { width: 137px; height: 38px; }
  html:has(.horizon-shell) .horizon-utility { gap: 3px; }
  html:has(.horizon-shell) .horizon-unit { padding: 0 9px; min-height: 40px; font-size: 11px; }
  html:has(.horizon-shell) .horizon-avatar { width: 40px; height: 40px; }
  html:has(.horizon-shell) .horizon-utility .public-link { display: inline-flex; }
  html:has(.horizon-shell) .horizon-utility .header-profile { padding-left: 8px; }
  html:has(.horizon-shell) .horizon-nav { min-height: 48px; gap: 0; }
  html:has(.horizon-shell) .horizon-nav > button,
  html:has(.horizon-shell) .horizon-nav > a { gap: 5px; padding: 0 5px; font-size: 12px; }
  html:has(.horizon-shell) .horizon-more > summary { min-height: 48px; gap: 4px; padding: 0 5px; font-size: 12px; }
  html:has(.horizon-shell) .horizon-nav svg { display: none; }
  html:has(.horizon-shell) .horizon-nav .nav-count { display: none; }
  html:has(.horizon-shell) .horizon-nav { width: 100%; max-width: 100%; min-width: 0; }
  html:has(.horizon-shell) .horizon-nav > .nav-button { min-width: 0; }
  html:has(.horizon-shell) .horizon-search-panel .horizon-search input { font-size: 16px; }
  html:has(.horizon-shell) .horizon-search-panel .horizon-search kbd { display: none; }
  html:has(.horizon-shell) .horizon-nav svg { width: 15px; height: 15px; }
  html:has(.horizon-shell) .operation-workspace { padding: 16px 12px 20px; }
  html:has(.horizon-shell) .operation-heading { flex-wrap: wrap; gap: 12px; }
  html:has(.horizon-shell) .operation-heading h1 { font-size: 27px; }
  html:has(.horizon-shell) .operation-heading .heading-actions { gap: 7px; }
  html:has(.horizon-shell) .operation-heading .heading-actions .btn { padding: 9px 11px; font-size: 12px; }
  html:has(.horizon-shell) .operation-calendar-tools { display: flex; flex-direction: column; }
  html:has(.horizon-shell) .operation-calendar-tools > * { width: 100%; }
  html:has(.horizon-shell) .operation-month { padding: 14px 12px; }
  html:has(.horizon-shell) .operation-calendar-day { min-height: 52px; }
  html:has(.horizon-shell) .operation-day { border-radius: 12px; }
  html:has(.horizon-shell) .operation-date-header { padding: 12px 14px 10px; gap: 8px; }
  html:has(.horizon-shell) .operation-date-header h2 { font-size: 20px; }
  html:has(.horizon-shell) .operation-day-totals { gap: 4px 12px; font-size: 12px; }
  html:has(.horizon-shell) .operation-toolbar { padding: 0 14px 10px; }
  html:has(.horizon-shell) .operation-toolbar .search-box input,
  html:has(.horizon-shell) .operation-toolbar .filter-select { font-size: 16px; }
  html:has(.horizon-shell) .operation-time-group > header { padding: 7px 14px; }
  html:has(.horizon-shell) .operation-reservation { padding: 8px 14px; gap: 6px; }
  html:has(.horizon-shell) .operation-reservation.arrived { padding-left: 11px; }
  html:has(.horizon-shell) .operation-client-heading .operation-client-name { min-height: 44px; font-size: 16px; }
  html:has(.horizon-shell) .operation-party { font-size: 13px; }
  html:has(.horizon-shell) .operation-state-chip { font-size: 11px; }
  html:has(.horizon-shell) .operation-client .operation-notes { font-size: 13px; }
  html:has(.horizon-shell) .operation-client .operation-author { font-size: 11px; }
  html:has(.horizon-shell) .operation-row-controls select { font-size: 16px; }
  html:has(.horizon-shell) .operation-row-controls label { font-size: 0; line-height: 0; }
  html:has(.horizon-shell) .operation-next-actions .btn { font-size: 13px; }
  html:has(.horizon-shell) .operation-day .table-footer { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  html:has(.horizon-shell) .workspace-foot { padding: 0 14px 20px; gap: 8px; flex-wrap: wrap; }
}

@media (max-width: 400px) {
  html:has(.horizon-shell) .horizon-brand img { width: 128px; }
  html:has(.horizon-shell) .horizon-utility { gap: 0; }
}

@media (max-width: 359px) {
  html:has(.horizon-shell) .horizon-utility .public-link { display: none; }
  html:has(.horizon-shell) .horizon-nav > button,
  html:has(.horizon-shell) .horizon-nav > a { padding-right: 3px; padding-left: 3px; font-size: 11px; }
  html:has(.horizon-shell) .horizon-more > summary { padding-right: 3px; padding-left: 3px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.horizon-shell) * { scroll-behavior: auto; transition: none; }
}

/* Na tela ampla, o estado completo cabe sem disputar espaço com os contatos. */
@media (min-width: 1191px) {
  html:has(.horizon-shell) .operation-reservation {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  html:has(.horizon-shell) .operation-row-controls {
    grid-template-columns: 110px minmax(0, 1fr) 44px;
  }
}
html:has(.horizon-shell) .operation-month-title input[type="month"] {
  text-transform: none;
}
