/* The admin panel's page (TAXONOMY 9.6.1.1). The rail and the desk carry
   their own styles in their shadow roots; only the frame is here. Colours
   are the app's tokens (src/themes/), so staff see what people saw. */

#admin { min-height: 100dvh; }
#admin[data-view="frame"] { display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
#admin[data-view="frame"] > g4-admin-rail { position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; }

/* A desk tool: on a narrow window the rail goes above the desk. */
@media (max-width: 48rem) {
  #admin[data-view="frame"] { grid-template-columns: minmax(0, 1fr); }
  #admin[data-view="frame"] > g4-admin-rail { position: static; max-height: none; }
}

/* "Confirm it's you" (round 54, board S3): on the page, over any desk. */
dialog.confirm-passkey {
  width: min(26.25rem, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: 20px;
  background: var(--g4-surface); color: var(--g4-text); box-shadow: var(--g4-shadow);
  display: none; flex-direction: column; gap: 14px;
}
dialog.confirm-passkey[open] { display: flex; }
dialog.confirm-passkey::backdrop { background: var(--g4-scrim, rgba(4, 6, 10, 0.6)); }
dialog.confirm-passkey .key { display: flex; gap: 12px; align-items: center; color: var(--g4-action); }
dialog.confirm-passkey h2 { margin: 0; font-size: 1.1875rem; font-weight: 800; color: var(--g4-text); }
dialog.confirm-passkey p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--g4-text-muted); }
dialog.confirm-passkey .btn { width: 100%; min-height: 48px; font-weight: 700; }
