/* A shared entry outside the Workbench's view container. */
#task-reminder-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 3200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: calc(100vw - 32px);
  font: 14px/1.5 var(--font-sans, system-ui, sans-serif);
}
#task-reminder-launcher[hidden],
#task-reminder-launcher [hidden] { display: none; }
.task-reminder-launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-strong, #176363);
  color: #fff;
  box-shadow: 0 5px 16px rgba(15, 46, 49, .18);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.task-reminder-launch-button:hover { background: #124e4e; }
.task-reminder-launch-button:focus-visible,
#task-reminder-launcher .task-reminder-launch-feedback button:focus-visible {
  outline: 2px solid var(--accent, #1f7a7a);
  outline-offset: 3px;
}
.task-reminder-launch-button:disabled { cursor: wait; background: #426b6b; }
.task-reminder-launch-feedback {
  position: relative;
  width: 268px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--line, #d8e3e8);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #17363c);
  overflow-wrap: anywhere;
}
.task-reminder-launch-feedback p { margin: 0; }
.task-reminder-launch-feedback button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent-strong, #176363);
  font: inherit;
  cursor: pointer;
}
.task-reminder-launch-feedback [data-task-launch-dismiss] { position: absolute; top: 0; right: 0; width: 44px; font-size: 22px; }
.task-reminder-launch-feedback [data-task-launch-retry] { padding: 8px 0 0; text-decoration: underline; text-underline-offset: 3px; }
/* Native modal layering also covers customer-history dialogs without closing
   the underlying page or losing an unsaved form. */
dialog#task-reminder-backdrop {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink, #17363c);
  z-index: 3300;
}
dialog#task-reminder-backdrop::backdrop { background: transparent; }
#task-reminder-backdrop .task-reminder-drawer { box-sizing: border-box; overscroll-behavior: contain; }
#task-reminder-backdrop :is(button, input, select) { min-height: 44px; }
#task-reminder-backdrop :is(input, select, textarea) { box-sizing: border-box; max-width: 100%; }
@media (max-width: 767px) {
  #task-reminder-launcher { right: max(12px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); }
  .task-reminder-launch-button { padding: 10px 12px; }
  #task-reminder-backdrop :is(input, select, textarea) { font-size: 16px; }
}
@media print {
  #task-reminder-launcher, #task-reminder-backdrop { display: none !important; }
}
