/* "Please wait…" overlay for /admin and /agent (see js/busy.js), matching the app's busy layer (boundary_ui
   BBusyLayer): the screen dimmed, a white card with the loader and the message. Self-contained. */
dialog.busy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: none;
  place-items: center;
  outline: none;
  color: #1e1e1e;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
dialog.busy[open] { display: grid; animation: busy-fade 0.2s ease-out; }
dialog.busy[open] .busy__card { animation: busy-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
dialog.busy::backdrop { background: rgba(30, 30, 30, 0.35); }
/* Without ::backdrop (non-modal fallback): dim from the dialog itself. */
dialog.busy:not(:modal) { background: rgba(30, 30, 30, 0.35); z-index: 2147483000; }

.busy__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 220px;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 30, 30, 0.18);
}

/* The app's loader ("Bowl Sweep"): the mark itself animates, no ring around it. */
.busy__mark {
  display: block;
  width: 88px;
  height: 88px;
  background: url("/img/loader.svg") center / contain no-repeat;
}

.busy__text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #1e1e1e;
}

html.is-busy { cursor: progress; }

@keyframes busy-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes busy-pop { from { transform: scale(0.92); } to { transform: none; } }

/* Animations off: the still, full-colour mark (as the app does). */
@media (prefers-reduced-motion: reduce) {
  .busy__mark { background-image: url("/img/loader-still.svg"); }
  dialog.busy[open], dialog.busy[open] .busy__card { animation: none; }
}

/* ---- Sign-out dialog (Views/Shared/_SignOutDialog), like the app's sign-out sheet ------------------------------------ */
.so { width: min(420px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: #13262a; overflow: hidden auto; box-shadow: 0 30px 80px -30px rgba(8, 30, 34, 0.6); font-family: "Inter", system-ui, sans-serif; }
.so::backdrop { background: rgba(8, 30, 34, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.so[open] { animation: so-in 0.18s ease-out; }
@keyframes so-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .so[open] { animation: none; } }
.so__head { position: relative; height: 150px; overflow: hidden; background: linear-gradient(135deg, #e3f6f3 0%, #d7efe9 45%, #e9f7d9 100%); }
.so__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so__head--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 34, 0.35) 0%, rgba(8, 30, 34, 0) 45%, rgba(8, 30, 34, 0.25) 100%); }
.so__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; fill: rgba(11, 156, 169, 0.18); }
.so__logo { position: absolute; z-index: 1; top: 14px; left: 14px; width: 44px; height: 44px; object-fit: contain; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.so__x { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: #13262a; cursor: pointer; }
.so__x:hover { background: #fff; }
.so__x svg, .so__go svg, .so__note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.so__avatar { position: relative; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px auto 0; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #0B9CA9, #2FAF91); color: #fff; font: 700 1.6rem "Outfit", system-ui, sans-serif; box-shadow: 0 10px 24px -12px rgba(8, 30, 34, 0.55); }
.so__body { display: grid; gap: 10px; padding: 14px 24px 22px; text-align: center; }
.so__body h2 { margin: 0; font: 700 1.35rem "Outfit", system-ui, sans-serif; color: #13262a; }
.so__who { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 0; font-size: 0.95rem; }
.so__who span { color: #5b6f73; }
.so__who em { font-style: normal; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e3f6f3; color: #0a6b74; }
.so__note { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: #f3f7f8; color: #5b6f73; font-size: 0.85rem; line-height: 1.45; text-align: left; }
.so__note svg { flex: none; color: #0B9CA9; margin-top: 1px; }
.so__go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 6px; border: 0; border-radius: 14px; background: #D64545; color: #fff; font: 600 1rem "Inter", system-ui, sans-serif; cursor: pointer; }
.so__go:hover { background: #bf3535; }
.so__go:disabled { opacity: 0.7; cursor: default; }
.so__stay { min-height: 46px; border: 0; border-radius: 14px; background: transparent; color: #13262a; font: 600 0.95rem "Inter", system-ui, sans-serif; cursor: pointer; }
.so__stay:hover { background: #f3f7f8; }
.so__go:focus-visible, .so__stay:focus-visible, .so__x:focus-visible { outline: 3px solid rgba(11, 156, 169, 0.5); outline-offset: 2px; }
@media (max-width: 560px) {
    .so { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .so[open] { animation-name: so-up; }
    @keyframes so-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
