.nav-toggle { display: none; }
[hidden] { display: none !important; }
.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; font-size: .82rem; line-height: 1.55; }
.notice.success { border: 1px solid #b8dcc4; background: #e8f4eb; color: #21633a; }
.notice.error { border: 1px solid #e7bcbc; background: #fff0f0; color: #97262e; }
.button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.news-photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.history-source { cursor: pointer; }

.installer-page { min-height: 100vh; padding: 40px 20px; background: linear-gradient(140deg,#062a4e,#0b5f89); }
.installer-shell { width: min(980px,100%); margin: 0 auto; }
.installer-card { padding: clamp(25px,5vw,55px); border-radius: 22px; background: white; box-shadow: 0 28px 80px rgb(0 0 0 / .25); }
.installer-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; color: var(--navy); }
.installer-heading .eyebrow { margin-bottom: 7px; }
.installer-heading h1 { margin: 0; font-size: clamp(2.3rem,5vw,4.7rem); }
.installer-lead { max-width: 760px; color: var(--muted); line-height: 1.7; }
.installer-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 28px 0 0; padding: 24px; border: 1px solid #d7e0e3; border-radius: 14px; }
.installer-form legend { padding: 0 8px; color: var(--navy); font: 1.35rem Georgia,serif; }
.installer-form label { display: grid; gap: 7px; color: var(--ink); font-size: .76rem; font-weight: 800; }
.installer-form label.wide, .installer-form .wide { grid-column: 1 / -1; }
.installer-form input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #becbd0; border-radius: 9px; color: var(--ink); font: inherit; }
.installer-form input:focus { border-color: var(--sea); outline: 3px solid rgb(11 95 137 / .13); }
.installer-form small, .field-note { color: var(--muted); font-size: .66rem; font-weight: 600; line-height: 1.45; }
.installer-form code, .installer-card code { padding: 2px 5px; border-radius: 4px; background: #edf1f2; overflow-wrap: anywhere; }
.install-submit { margin-top: 24px; border: 0; cursor: pointer; }
.installer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.installer-actions .secondary { border-color: #bdcbd1; color: var(--navy); }

.editor-access-form-wrap > .notice { width: min(740px,100%); }
.editor-auth-card { width: min(740px,100%); }
.editor-auth-form input { width: 100%; }
.user-manager-form { grid-template-columns: .9fr .9fr 1.3fr .9fr auto; }
.authorized-users-table form { margin: 0; }
.review-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid #e0e6e8; }
.review-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px; border: 1px solid #dce3e5; border-radius: 10px; background: #f7f9fa; }
.review-item > div { display: grid; gap: 5px; }
.review-item small { color: var(--muted); }
.review-item .button { min-height: 42px; padding-inline: 15px; border: 0; cursor: pointer; }
.news-publisher input[type="hidden"] { display: none; }
.rich-toolbar button { margin: 0; }
.photo-preview-frame img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .user-manager-form { grid-template-columns: 1fr 1fr; }
  .user-manager-form .button { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .site-header { gap: 14px; padding-inline: 20px; }
  .site-header nav { position: absolute; inset: 86px 14px auto; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 18px; border-radius: 12px; background: #062a4e; box-shadow: 0 20px 45px rgb(0 0 0 / .24); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 13px 4px; }
  .site-header nav a::after { bottom: 8px; }
  .nav-toggle { display: inline-flex; padding: 10px 12px; border: 1px solid rgb(255 255 255 / .5); border-radius: 8px; background: transparent; color: white; font: inherit; font-size: .76rem; font-weight: 800; }
  .site-header:not(.editor-header) .header-cta { display: none; }
  .installer-form fieldset { grid-template-columns: 1fr; padding: 18px; }
  .installer-form label.wide, .installer-form .wide { grid-column: auto; }
  .review-item { align-items: stretch; flex-direction: column; }
  .review-item .button { width: 100%; }
}

@media (max-width: 600px) {
  .installer-page { padding: 0; background: white; }
  .installer-card { padding: 24px 18px 38px; border-radius: 0; box-shadow: none; }
  .installer-heading .mark { width: 48px; height: 48px; }
  .user-manager-form { grid-template-columns: 1fr; }
  .user-manager-form .button { grid-column: auto; }
}

