/* ui-dialogs.css
   Shared inline confirm/prompt dialog styling, used app-wide via ui-dialogs.js
   (openConfirm / openPrompt). Design System v3: glass scrim (blur + navy tint)
   with a SOLID dialog body — glass is chrome, never content. Buttons inside
   the dialogs are the shared .btn system (components.css); fields read tokens,
   so both themes come from the html.dark token swap with no overrides here.
   The toast (.status) lives in app.css. */

.gc-rd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(19,31,63,0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gcRdFade var(--dur-fast) ease both;
}
html.dark .gc-rd-overlay { background: rgba(0,0,0,0.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gc-rd-overlay { background: rgba(19,31,63,0.55); }
  html.dark .gc-rd-overlay { background: rgba(0,0,0,0.7); }
}

.gc-rd-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: var(--sp-5);
  box-shadow: var(--shadow-2);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: gcRdPop var(--dur-med) var(--ease-spring) both;
}

@keyframes gcRdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gcRdPop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.gc-rd-title { margin: 0 0 6px; font-size: var(--fs-lg); color: var(--ink); }
.gc-rd-sub { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 14px; white-space: pre-line; }
.gc-rd-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; }
.gc-rd-line { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); padding: 3px 0; }
.gc-rd-line-strong { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; }
.gc-rd-field { display: block; margin-bottom: 12px; }
.gc-rd-field > span { display: block; font-size: 0.8rem; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.gc-rd-field input, .gc-rd-field select, .gc-rd-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s;
}
.gc-rd-field input:focus, .gc-rd-field select:focus, .gc-rd-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.gc-rd-field textarea { resize: vertical; min-height: 60px; }
.gc-rd-field small { display: block; color: var(--ink-3); margin-top: 2px; font-size: var(--fs-xs); }
.gc-rd-error { color: var(--danger); font-size: 0.78rem; font-weight: 600; margin: -6px 0 12px; }
.gc-rd-card { font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 11px; margin-bottom: 12px; }
.gc-rd-note { font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.gc-rd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* WP6: QR dialog (openQrDialog). The code always sits on a white card —
   scanners need dark-on-light contrast, so no dark-mode variant on purpose
   (the quiet zone is baked into the SVG's margin). */
.gc-qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); width: min(100%, 300px); margin: 2px auto 12px; }
.gc-qr-box svg { display: block; width: 100%; height: auto; }
.gc-qr-note { font-size: var(--fs-sm); color: var(--ink-2); text-align: center; line-height: 1.45; margin: 0 0 14px; }
.gc-qr-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.gc-qr-links .gc-qr-link { flex: 1; text-align: center; text-decoration: none; }
