/* Layout bridges for new pages; colors and controls come from the original Calendar CSS. */
.shell { min-width: 0; }
.home-page .shell { max-width: 1500px; }
.admin-page .shell { max-width: 1280px; }
.login-page .shell { width: min(430px, 100%); }
.login-page .card { width: 100%; }
.login-page .login-preview { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.home-page .links { display: flex; gap: 8px; flex-wrap: wrap; }
.home-page .links a { color: #e0f2fe; border: 1px solid rgba(56,189,248,.28); background: rgba(14,165,233,.14); border-radius: 12px; padding: 9px 11px; text-decoration: none; font-weight: 900; }
.home-page .profile-actions { margin: 4px 0 0; }
.home-page .nav-grid .empty { grid-column: 1 / -1; }
.admin-page .topbar { flex-wrap: wrap; }
.admin-page .topbar .links { min-width: 0; }
.profile-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.preview-badge { color: #fde68a; border: 1px solid rgba(251,191,36,.24); background: rgba(251,191,36,.1); border-radius: 999px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.admin-page p { line-height: 1.5; margin: 8px 0 16px; }
.admin-page small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.admin-page strong { overflow-wrap: anywhere; }
.admin-page .edit { width: min(600px, 100%); }
.admin-page input, .admin-page select, .admin-page button { font: inherit; }
.admin-page input[type="checkbox"] { accent-color: #38bdf8; }
.admin-page input:focus, .admin-page select:focus { border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
a:focus-visible, button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.table-wrap { overflow-x: auto; }
.access-table { min-width: 570px; }
.access-table td:first-child { width: 45%; }
.access-table select { min-width: 150px; }
.access-table td:last-child { width: 1%; }
.admin-page .error { color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(248,113,113,.25); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 800; }
.admin-page .section-title { margin-top: 18px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 0; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .admin-page { padding: 10px; }
  .admin-page .topbar, .admin-page .panel { border-radius: 18px; }
  .admin-page .links { gap: 8px; }
  .access-table { min-width: 0; }
  .access-table thead { display: none; }
  .access-table tbody { display: block; }
  .access-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(148,163,184,.13); }
  .access-table tr:last-child { border-bottom: 0; }
  .access-table td { padding: 0; border-bottom: 0; }
  .access-table td:first-child { width: auto; grid-column: 1 / -1; }
  .access-table td:last-child { width: auto; }
  .access-table select { min-width: 0; }
}
