/* Minute-precise time fields share the dashboard's type and mint controls. */
body.pro-mode .prelook-time-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--pro-ui-line, #dce7e3);
  border-radius: 7px;
  color: var(--pro-ui-ink, #233832);
  background: #fff;
  font-family: var(--pro-ui-font, inherit);
  font-size: 12px;
  font-weight: 450;
}
body.pro-mode .prelook-time-control:focus-within { border-color: #83bda9; box-shadow: 0 0 0 2px rgb(131 189 169 / 16%); }
body.pro-mode .prelook-time-control.is-invalid { border-color: #c36666; }
body.pro-mode .prelook-time-control > input.prelook-time-text {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  outline: 0;
}
body.pro-mode .prelook-time-control > .prelook-time-trigger {
  display: grid;
  grid-column: 2;
  width: 26px;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 5px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: var(--pro-ui-muted, #697e76);
  background: transparent;
  box-shadow: none;
}
body.pro-mode .prelook-time-trigger svg { width: 15px; height: 15px; }
body.pro-mode .prelook-time-trigger:is(:hover,:focus-visible,[aria-expanded="true"]) { color: var(--pro-ui-accent-ink, #286b56); background: var(--pro-ui-accent-soft, #edf7f2); }
body.pro-mode .prelook-time-control:has(input:disabled) { opacity: .55; background: #f4f7f5; }
body.pro-mode .prelook-time-error { grid-column: 1 / -1; padding: 0 6px 5px; color: #a24242; font: inherit; font-size: 11px; line-height: 1.35; }
body.pro-mode .prelook-time-error[hidden] { display: none; }
body.pro-mode .prelook-time-popover {
  position: fixed;
  z-index: 14000;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--pro-ui-line, #dce7e3);
  border-radius: 10px;
  color: var(--pro-ui-ink, #233832);
  background: #fff;
  box-shadow: 0 9px 28px rgb(25 57 46 / 14%);
  font-family: var(--time-control-font, var(--pro-ui-font, sans-serif));
  font-size: var(--time-control-font-size, 12px);
  font-weight: 450;
  animation: prelook-time-open 130ms ease-out;
}
body.pro-mode .prelook-time-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.pro-mode .prelook-time-unit-label { display: block; padding: 3px 7px 7px; color: var(--pro-ui-muted, #697e76); font-size: 11px; font-weight: 500; }
body.pro-mode .prelook-time-options { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bddbcd transparent; }
body.pro-mode .prelook-time-options > button {
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  transition: background-color 120ms ease;
}
body.pro-mode .prelook-time-options > button:hover { background: var(--pro-ui-accent-soft, #edf7f2); }
body.pro-mode .prelook-time-options > button[aria-selected="true"] { color: var(--pro-ui-accent-ink, #286b56); background: var(--pro-ui-accent, #ccebdc); }
body.pro-mode .prelook-time-popover button:focus-visible { outline: 2px solid #83bda9; outline-offset: -2px; }
body.pro-mode .prelook-time-popover > footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--pro-ui-line, #dce7e3); }
body.pro-mode .prelook-time-popover output { margin-right: auto; padding-left: 4px; font-variant-numeric: tabular-nums; }
body.pro-mode .prelook-time-popover > footer > button { min-height: 30px; padding: 4px 9px; border: 1px solid var(--pro-ui-line, #dce7e3); border-radius: 6px; color: inherit; background: #fff; font: inherit; }
body.pro-mode .prelook-time-popover > footer > .prelook-time-apply { color: var(--pro-ui-accent-ink, #286b56); border-color: #bddbcd; background: var(--pro-ui-accent, #ccebdc); }
body.pro-mode .prelook-time-popover > footer > button:hover { background: var(--pro-ui-accent-soft, #edf7f2); }
body.pro-mode .dashboard-shell .business-hours-cell-editor {
  translate: var(--hours-editor-offset, 0px) 0;
  width: 244px;
  max-width: calc(100vw - 32px);
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  border-color: var(--pro-ui-line);
  border-radius: 9px;
  color: var(--pro-ui-ink);
  box-shadow: 0 6px 20px rgb(25 57 46 / 13%);
  font-family: var(--pro-ui-font);
  font-size: 12px;
  font-weight: 450;
}
body.pro-mode .dashboard-shell .business-hours-cell-editor > label { display: grid; min-width: 0; gap: 4px; }
body.pro-mode .dashboard-shell .business-hours-cell-editor > label > span:first-child { font: inherit; font-size: 11px; color: var(--pro-ui-muted); }
body.pro-mode .dashboard-shell .business-hours-cell-editor-actions { gap: 6px; padding: 0; flex-wrap: nowrap; }
body.pro-mode .dashboard-shell .business-hours-cell-editor .business-hours-cell-editor-actions > :is(button,button.solid-button.pro) { box-sizing: border-box; height: 28px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--pro-ui-line); border-radius: 6px; font: inherit; font-size: 11px; line-height: 1.35; }
body.pro-mode .dashboard-shell .business-hours-cell-editor-actions > .solid-button { color: var(--pro-ui-accent-ink); border-color: var(--pro-ui-accent-line); background: var(--pro-ui-accent); box-shadow: none; }
body.pro-mode .dashboard-shell .business-hours-cell-editor .business-hours-cell-editor-actions > button.business-date-hours-reset[aria-label] { margin-right: auto; width: 28px; min-width: 28px; padding: 5px; border-color: transparent; color: var(--pro-ui-accent-ink); background: transparent; }
body.pro-mode .dashboard-shell .business-hours-cell-editor-actions > .business-date-hours-reset svg { width: 16px; height: 16px; }
body.pro-mode .dashboard-shell .business-hours-cell-editor-actions > .business-hours-cell-close { color: var(--pro-ui-muted); background: #fff; }
body.pro-mode .dashboard-shell .business-hours-cell-editor-actions > button:hover { background: var(--pro-ui-accent-soft); color: var(--pro-ui-accent-ink); }
body.pro-mode .dashboard-shell .business-hours-day { container-type: inline-size; }
body.pro-mode .dashboard-shell .business-routine-week-grid .business-hours-break {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--pro-ui-line);
  border-radius: 8px;
  background: #fff;
}
body.pro-mode .dashboard-shell .business-hours-break-heading { grid-column: 1; grid-row: 1; gap: 4px; min-height: 22px; }
body.pro-mode .dashboard-shell .business-hours-break-heading > strong { color: var(--pro-ui-ink); font: inherit; font-size: 11px; font-weight: 500; }
body.pro-mode .dashboard-shell .business-routine-week-grid .business-hours-break .business-break-remove { width: 24px; min-width: 24px; height: 24px; min-height: 24px; max-height: none; margin: 0; padding: 5px; border: 0; border-radius: 5px; color: var(--pro-ui-muted); background: transparent; box-shadow: none; }
body.pro-mode .dashboard-shell .business-hours-break .business-break-remove:hover { color: #a24242; background: #fff0ef; }
body.pro-mode .dashboard-shell .business-hours-break-time-fields { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 5px; }
body.pro-mode .dashboard-shell .business-hours-break-time-fields > label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
body.pro-mode .dashboard-shell .business-hours-break-time-fields > label > span:first-child { color: var(--pro-ui-muted); font-size: 10px; font-weight: 450; }
body.pro-mode .dashboard-shell .business-hours-break-separator { display: none; }
body.pro-mode .dashboard-shell .business-hours-meta > .business-add-break { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; width: auto; min-height: 28px; padding: 3px 7px; border: 1px solid var(--pro-ui-accent-line); border-radius: 6px; color: var(--pro-ui-accent-ink); background: var(--pro-ui-accent-soft); font: inherit; font-size: 11px; white-space: nowrap; }
@container (max-width: 160px) {
  body.pro-mode .dashboard-shell .business-hours-break-time-fields { grid-template-columns: minmax(0, 1fr); }
  body.pro-mode .dashboard-shell .business-hours-break-time-fields > label { grid-template-columns: 30px minmax(0, 1fr); align-items: center; }
}
@media (pointer: coarse) {
  body.pro-mode .prelook-time-control { min-height: 40px; grid-template-columns: minmax(0, 1fr) 38px; }
  body.pro-mode .prelook-time-control > input.prelook-time-text { min-height: 38px; height: 38px; }
  body.pro-mode .prelook-time-control > .prelook-time-trigger { width: 36px; min-height: 38px; height: 38px; }
  body.pro-mode .prelook-time-options > button { min-height: 44px; height: 44px; }
  body.pro-mode .prelook-time-popover > footer > button,
  body.pro-mode .dashboard-shell .business-hours-cell-editor .business-hours-cell-editor-actions > :is(button,button.solid-button.pro) { min-height: 40px; height: 40px; }
  body.pro-mode .dashboard-shell .business-routine-week-grid .business-hours-break .business-break-remove { min-width: 32px; width: 32px; min-height: 32px; height: 32px; }
}
@keyframes prelook-time-open { from { opacity: .85; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { body.pro-mode .prelook-time-popover { animation: none; } body.pro-mode .prelook-time-options > button { transition: none; } }
