.access-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px; margin: 20px 0 8px; border: 1px solid #b8d0e8; border-radius: 12px; background: #edf5fd; flex-wrap: wrap; }
.access-panel h2 { margin: 0; font-size: 21px; color: var(--ink); }
.access-panel p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.access-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.access-actions form { margin: 0; }
.access-actions .section-save.secondary { background: transparent; color: var(--ink); }
.access-note { position: static; flex-basis: 100%; margin: 0 !important; font-size: 11px !important; line-height: 1.45; }
.profile-picker-shell { max-width: 780px; margin: 0 auto; padding: 60px 24px 70px; }
.profile-picker-shell h1 { margin: 0 0 8px; font-size: clamp(38px, 6vw, 64px); line-height: 1; }
.profile-intro { margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-card { margin: 0; }
.profile-card button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.6); color: var(--ink); text-align: left; cursor: pointer; }
.profile-card button:hover, .profile-card button:focus-visible { border-color: var(--rust); background: var(--cream); outline: none; }
.profile-initial { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; font-weight: 800; }
.profile-card strong { display: block; font-size: 15px; }
.profile-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.profile-card button > b { margin-left: auto; color: var(--rust); font-size: 12px; white-space: nowrap; }
.profile-footer { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.profile-footer a, .empty-profile a { color: var(--rust); }
.profile-footer span { padding: 0 6px; }
.empty-profile { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); }
.admin-flash-stack { display: grid; gap: 10px; margin: 18px 0; }
.admin-flash { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; box-shadow: 0 4px 14px rgba(24, 38, 56, .05); line-height: 1.45; }
.admin-flash-success { background: #eaf6ee; border-color: #b8dcc4; color: #266843; }
.admin-flash-error { background: #fff0ef; border-color: #e3b8b5; color: #9a3f3b; }
.flash-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: currentColor; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.password-fallback { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.password-fallback summary { color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; }
.password-fallback form { margin-top: 16px; }
.auth-profile-cta { display: block; width: 100%; text-align: center; text-decoration: none; }
.auth-description { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.profile-nav nav a, .admin-login-nav nav a { color: var(--rust); font-weight: 700; }
.section-status-error { display: block; color: #9a3f3b; font-weight: 700; }
.section-status-error::before { content: '! '; }
.admin-page input,
.admin-page select,
.admin-page textarea {
  min-height: 42px;
  border: 1px solid #c5d4e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: 14px 'Nunito Sans';
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.admin-page select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #54708e 50%), linear-gradient(135deg, #54708e 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.admin-page input::placeholder,
.admin-page textarea::placeholder { color: #8a9aae; }
.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: #2d6fbe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 111, 190, .15);
  background: #fbfdff;
}
.manage-row > form:first-of-type { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.manage-row > form:first-of-type select { min-width: 112px; }
.manage-row > form:first-of-type input { min-width: 168px; }
.manage-row .text-button { min-height: 40px; padding: 9px 11px; border: 1px solid #c5d4e5; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; }
.manage-row .text-button:hover,
.manage-row .text-button:focus-visible { border-color: #2d6fbe; background: #e7f1fc; outline: none; }
.manage-row .text-button.danger { border-color: #e3b8b5; background: #fff7f6; color: #9a3f3b; }
.manage-row .text-button.danger:hover,
.manage-row .text-button.danger:focus-visible { border-color: #c86d67; background: #fff0ef; }
@media(max-width:760px) {
  .sidebar .brand { order: 1; margin-bottom: 14px; }
  .sidebar .sidebar-bottom { order: 2; margin: 0 0 16px; padding: 12px 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sidebar .nav-label { order: 3; margin: 0 9px 6px; }
  .sidebar .nav-item { order: 4; display: block; width: 100%; margin: 0; padding: 10px 9px; }
  .admin-flash { align-items: flex-start; }
  .password-fallback { margin-top: 16px; }
  .manage-row { display: block; padding: 16px 0; }
  .manage-row > div { margin-bottom: 10px; }
  .manage-row > form:first-of-type { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .manage-row > form:first-of-type input { min-width: 0; grid-column: 1 / -1; }
  .manage-row > form:first-of-type select,
  .manage-row > form:first-of-type .text-button { width: 100%; min-width: 0; }
  .manage-row > form:last-of-type { margin-top: 8px; }
  .manage-row > form:last-of-type .text-button { width: 100%; }
}
@media(max-width:760px) {
  .access-panel { display: block; margin-bottom: 28px; }
  .access-actions { display: grid; grid-template-columns: 1fr; margin-top: 14px; }
  .access-actions .section-save { width: 100%; }
  .access-note { position: static; margin-top: 10px !important; }
  .profile-picker-shell { padding: 38px 20px 50px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card button { min-height: 70px; }
}
