/* Sober administration, independent of the public festival theme. */
body { background: #f3f5f9; color: #1d2738; }
.admin-page { --muted: #536175; --line: #dce2ea; }
.admin-page h1, .admin-page h2, .admin-page h3 { font-family: var(--body-font); font-weight: 900; line-height: 1.3; }
.admin-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: #111b2e; color: #b4bece; padding: 28px 20px; display: flex; flex-direction: column; }
.admin-sidebar .brand { color: white; margin: 0 12px 40px; }
.admin-sidebar .brand > span:last-child > span { color: #ff9195; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.admin-sidebar nav small { font-size: .65rem; letter-spacing: .12em; margin: 24px 13px 8px; color: #a2afc3; }
.admin-sidebar nav a { min-height: 44px; padding: 12px 13px; border-radius: 8px; font-size: .84rem; font-weight: 800; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; background: #243653; }
.admin-sidebar form { margin-top: auto; }
.admin-sidebar form button { min-height: 44px; background: transparent; border: 0; color: #bac5d7; font-size: .82rem; padding: 10px; }
.short-exit { display: none; }
.admin-main { padding: 42px; max-width: 1500px; width: 100%; min-width: 0; align-self: start; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-header span { color: #345c9c; font-size: .7rem; font-weight: 900; letter-spacing: .13em; }
.admin-header h1 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); margin: 7px 0; }
.admin-header p { color: var(--muted); margin: 0; }
.btn { min-height: 44px; border-radius: 8px; padding: 10px 16px; font-weight: 800; font-size: .85rem; display: inline-flex; justify-content: center; align-items: center; }
.btn-primary { background: #2952cd; border-color: #2952cd; color: white; }
.btn-primary:hover { background: #2143a8; border-color: #2143a8; }
.btn-outline { border: 1px solid #bbc7d7; background: white; color: #2c405f; }
.btn-outline-primary, .btn-outline-secondary { border: 1px solid #bbc7d7; background: white; color: #2c405f; }
.btn-outline:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover { background: #f2f5fa; border-color: #8fa1ba; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-grid article, .admin-panel { border: 1px solid #dfe4eb; background: white; border-radius: 12px; }
.stats-grid article { padding: 22px; }
.stats-grid article > span { color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.stats-grid strong { display: block; font-size: 2.4rem; font-weight: 900; margin: 8px 0; line-height: 1.1; }
.stats-grid small { color: var(--muted); font-size: .8rem; }
.admin-panel { padding: 24px; margin-bottom: 24px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.panel-title h2, .event-summary h2 { font-size: 1.15rem; margin: 0; }
.panel-title p { font-size: .83rem; color: var(--muted); margin: 5px 0 0; }
.panel-title > a:not(.btn) { color: #244eaa; font-size: .82rem; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.admin-alert { background: #e5f7ec; color: #176f43; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.event-summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.event-summary small { color: #345c9c; font-size: .68rem; letter-spacing: .12em; font-weight: 900; display: block; margin-bottom: 6px; }
.event-summary p { color: var(--muted); margin: 6px 0 0; font-size: .85rem; }
.content-section { padding: 0; }
.content-section .panel-title { padding: 18px 22px; margin: 0; border-bottom: 1px solid var(--line); }
.content-row { display: flex; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid #e8edf2; }
.content-row:last-child { border: 0; }
.content-row > div:first-child { min-width: 0; flex: 1; }
.content-row strong { font-size: .88rem; }
.content-row p { color: var(--muted); font-size: .77rem; margin: 4px 0 0; white-space: normal; }
.status { display: inline-flex; align-self: center; padding: 4px 8px; border-radius: 100px; font-size: .68rem; font-weight: 800; background: #e5f4eb; color: #1c6c43; white-space: nowrap; }
.row-actions { display: flex; gap: 12px; }
.row-actions a, .row-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 6px; font-size: .8rem; font-weight: 800; background: transparent; border: 0; color: #244eaa; }
.row-actions button { color: #ac3038; }
.editor-form { max-width: 960px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .check-field.full, .editor-actions, .validation-summary { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; border: 1px solid #b7c2d2; border-radius: 8px; padding: 11px 12px; background: white; color: #1d2738; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #2952cd; outline: 3px solid #2952cd26; }
.field small { color: var(--muted); }
.media-field { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.media-field legend { font-size: .95rem; font-weight: 900; margin: 0; }
.media-field img { max-height: 160px; object-fit: contain; object-position: left; }
.field-validation-error, .validation-summary-errors { color: #ad2933; font-size: .82rem; }
.validation-summary-valid { display: none; }
.check-field { display: flex; gap: 10px; align-items: center; min-height: 44px; color: #45556a; font-size: .85rem; }
.check-field input { width: 18px; height: 18px; }
.check-field input[type=hidden] { display: none; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.identity-header { display: flex; justify-content: space-between; align-items: center; min-height: 80px; }
.identity-header > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; color: #2b4b81; font-weight: 800; }
.identity-hero { padding: 44px 0 26px; text-align: center; }
.identity-hero .kicker { font-size: .7rem; font-weight: 900; letter-spacing: .12em; color: #345c9c; }
.identity-hero h1 { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 900; margin: 14px 0; }
.identity-hero p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.form-section { padding: 0 0 70px; }
.identity-container { max-width: 500px; }
.identity-card { background: white; border: 1px solid #dce2ea; padding: 30px; border-radius: 14px; display: flex; flex-direction: column; gap: 22px; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { padding: 30px; }
}
@media (max-width: 760px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; height: auto; padding: 16px; }
  .admin-sidebar .brand { margin: 0 0 14px; }
  .admin-sidebar nav { display: flex; flex-direction: row; gap: 8px; overflow: auto; }
  .admin-sidebar nav small { display: none; }
  .admin-sidebar nav a { white-space: nowrap; padding: 9px 10px; font-size: .75rem; }
  .admin-sidebar form { position: absolute; top: 10px; right: 12px; margin: 0; }
  .full-exit { display: none; }
  .short-exit { display: inline; }
  .admin-main { padding: 24px 18px; }
  .admin-header { align-items: flex-start; gap: 16px; }
  .admin-header p { font-size: .85rem; }
  .admin-header > .btn { flex-shrink: 0; }
  .stats-grid { gap: 12px; }
  .stats-grid article { padding: 18px; }
  .panel-title, .event-summary { flex-wrap: wrap; }
  .content-row { flex-wrap: wrap; padding: 16px; }
  .content-row > div:first-child { flex-basis: 100%; }
  .row-actions { margin-left: auto; }
  .editor-form { padding: 22px; grid-template-columns: 1fr; }
  .identity-card { padding: 24px; }
}

