/* Mater Dei administration interface. Real accounts and services remain in app.js. */
html[data-admin-interface="overview"] {
  --bg: #e9f7e9;
  --surface: #fff;
  --surface-2: #f3f9f0;
  --surface-3: #e4efdf;
  --text: #111318;
  --text-soft: #526559;
  --muted: #718077;
  --border: #d6e2d5;
  --border-strong: #96af9b;
  --accent: #183d2c;
  --accent-text: #fff;
  --accent-soft: #d2f7d2;
  --focus-ring: 0 0 0 3px #7ca78640;
  --rework-editor: #e9f7e9;
  --rework-field-border: #c8ced8;
  --rework-card-shadow: #45664e;
  --rework-icon-background: #ddfbef;
  --rework-icon-active-background: #2f4858;
}
html[data-admin-interface="overview"][data-theme="dark"] {
  --bg: #14251c;
  --surface: #1c3025;
  --surface-2: #253d2e;
  --surface-3: #2a4633;
  --text: #eef7ef;
  --text-soft: #c4d6c8;
  --muted: #a4baaa;
  --border: #3b5543;
  --border-strong: #789980;
  --accent: #c9edce;
  --accent-text: #183d2c;
  --accent-soft: #35533a;
  --rework-editor: #1b3023;
  --rework-field-border: #52715a;
  --rework-card-shadow: #779780;
}
html[data-admin-interface="overview"] body { font-size: 14px; }
#appView { --rework-sidebar-expanded: 240px; grid-template-columns: var(--rework-sidebar-expanded) minmax(0, 1fr) 22px; transition: none; }
#appView > .sidebar { grid-column: 1; grid-row: 1; gap: 16px; padding: 30px 16px 20px; overflow-x: hidden; overflow-y: auto; background: var(--surface); border-color: var(--border); box-shadow: none; }
#appView .sidebar .app-brand { height: auto; min-height: 76px; align-items: flex-start; gap: 10px; padding: 0 4px; border: 0; white-space: normal; }
#appView .sidebar .app-mark { width: 42px; height: 42px; flex: 0 0 42px; margin: 0; border-radius: 50%; }
#appView .sidebar .app-brand > div, #appView .sidebar .nav-item > span, #appView .sidebar .session-box { max-width: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
#appView .sidebar .app-brand > div { position: static; width: auto; min-width: 0; overflow: visible; }
#appView .app-overline { font-size: 9px; letter-spacing: .12em; color: var(--muted); }
#appView .app-brand strong { margin-top: 2px; font: 400 28px/1.08 var(--font-display); color: var(--accent); }
#appView .app-brand #parishBadge { margin-top: 9px; font-size: 10px; line-height: 1.6; color: var(--muted); }
#appView .main-nav { display: grid; gap: 10px; margin-top: 15px; }
#appView .main-nav .nav-item { min-height: 50px; justify-content: flex-start; gap: 13px; padding: 11px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; color: var(--text); background: transparent; }
#appView .main-nav .nav-item:hover { background: var(--surface-2); border-color: var(--border); }
#appView .main-nav .nav-item.active { background: var(--accent-soft); border-color: #90af97; }
#appView .main-nav .nav-item > span { color: inherit; }
#appView .nav-item::before, #appView .nav-item > span::after, #appView .admin-nav-active-indicator { display: none; }
#appView .nav-item .admin-nav-icon, #appView .nav-item.active .admin-nav-icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 5px; background: var(--rework-icon-background); box-shadow: 0 0 0 5px var(--rework-icon-background); filter: none; transform: none; opacity: 1; }
#appView .nav-item.active .admin-nav-icon { background: var(--rework-icon-active-background); box-shadow: 0 0 0 5px var(--rework-icon-active-background); }
#appView .sidebar .theme-toggle { justify-content: flex-start; gap: 10px; width: 100%; min-height: 34px; padding: 6px 11px; margin-top: auto; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; }
#appView .sidebar .theme-toggle::before { display: none; }
#appView .sidebar .theme-toggle:hover { color: var(--text); background: var(--surface-2); }
#appView .sidebar .theme-toggle .theme-icon { width: 16px; height: 16px; color: var(--rework-icon-active-background); border-radius: 4px; background: var(--rework-icon-background); box-shadow: 0 0 0 5px var(--rework-icon-background); }
#appView .sidebar .session-box { width: 100%; max-height: none; margin-top: 0; padding-top: 18px; border-color: var(--border); overflow: visible; }
#appView .rework-session-user { display: flex; align-items: center; gap: 10px; }
#appView .rework-session-user > div { min-width: 0; }
#appView .rework-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; margin: 0; color: var(--text-soft); background: var(--surface-2); border-radius: 50%; font-size: 11px; }
#appView #sessionName { margin: 0 0 4px; font-size: 11px; font-weight: 500; }
#appView #roleBadge { margin: 0; color: var(--muted); font-size: 10px; }
#appView .rework-session-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
#appView .session-legal-link { font-size: 9px; }
#appView .tour-replay-action { min-height: 30px; padding: 6px; font-size: 10px; }
#appView .admin-logout-action { width: 100%; min-height: 35px; height: auto; gap: 10px; justify-content: flex-start; margin: 0; padding: 6px 11px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; }
#appView .admin-logout-action::before, #appView .admin-logout-action > span::after { display: none; }
#appView .admin-logout-action:hover { background: var(--surface-2); color: var(--text); }
#appView .admin-logout-icon { width: 18px; height: 18px; flex-basis: 18px; border-radius: 4px; background: var(--rework-icon-background); box-shadow: 0 0 0 5px var(--rework-icon-background); filter: none; transform: none; opacity: 1; }
#appView .admin-logout-action:is(:hover, :focus-visible) .admin-logout-icon { background: var(--rework-icon-active-background); box-shadow: 0 0 0 5px var(--rework-icon-active-background); }
#appView .admin-logout-action > span { max-width: none; opacity: 1; visibility: visible; transform: none; color: inherit; font-size: 11px; }
#appView #workspaceMain { grid-column: 2; grid-row: 1; padding: 30px clamp(22px, 2.6vw, 42px) 42px; background: var(--bg); }
#appView .view { max-width: 1440px; margin: 0 auto; }
#appView .view-header { align-items: flex-start; gap: 24px; margin-bottom: 28px; }
#appView .view-header .kicker { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
#appView .view-header h2 { font-size: 23px; font-weight: 500; line-height: 1.25; }
#appView .header-actions { justify-content: flex-end; gap: 7px; max-width: 48%; }
#appView :is(.primary-action, .secondary-action, .ghost-action, .mini-action) { min-height: 36px; padding: 9px 12px; border-radius: 5px; font-size: 12px; font-weight: 400; box-shadow: none; }
#appView .primary-action { border: 1px solid var(--accent); }
#appView .secondary-action { border-color: var(--rework-field-border); }
#appView .header-actions .rework-report-bug { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border-strong); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
#appView .header-actions .rework-report-bug:hover { color: #fff; background: #111318; border-color: #111318; }
#appView .rework-report-bug .ui-icon { width: 19px; height: 19px; }
#appView .primary-action:hover { transform: none; }
#appView .two-pane { grid-template-columns: minmax(208px, 25%) minmax(0, 1fr); gap: 24px; }
#appView #sheetsView > .two-pane > .list-pane { position: static; min-width: 0; max-height: none; overflow: visible; padding: 0 4px 8px 0; border: 0; background: transparent; }
#appView .sheet-list-toolbar { margin-bottom: 18px; }
#appView #newSheetBtn { width: auto; min-height: 36px; }
#appView #newSheetBtn::before { display: none; }
#appView #newSheetBtn:hover { color: var(--accent-text); background: var(--accent); }
#appView #sheetList { gap: 14px; padding-bottom: 7px; }
#appView #sheetList .sheet-record { --clocher-fg: var(--text); --clocher-muted: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) 28px; grid-template-rows: auto auto; align-items: start; gap: 8px 4px; padding: 15px 12px 15px 16px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); box-shadow: none; transform: none; }
#appView #sheetList .sheet-record:hover { border-color: var(--border-strong); background: var(--surface); box-shadow: none; transform: none; }
#appView #sheetList .sheet-record.active { border-color: var(--rework-card-shadow); box-shadow: 3px 3px 0 var(--rework-card-shadow); background: var(--surface); }
#appView #sheetList .sheet-record .record-button { grid-column: 1; grid-row: 1; display: grid; gap: 0; min-height: 0; padding: 0; text-shadow: none; color: var(--text); background: transparent; }
#appView #sheetList .record-button strong { padding-right: 0; font-size: 14px; font-weight: 500; }
#appView #sheetList .record-button .rework-sheet-title { margin-top: 5px; color: var(--muted); font-size: 11px; }
#appView #sheetList .record-button .rework-sheet-status { display: inline-flex; justify-self: start; margin: 0 0 9px; padding: 2px 7px; border-radius: 3px; color: var(--success); background: var(--surface-2); font-size: 9px; }
#appView #sheetList .record-button .rework-sheet-date { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 10px; }
#appView .rework-sheet-date .ui-icon { width: 13px; height: 13px; }
#appView #sheetList .sheet-record .record-delete-action { grid-column: 2; grid-row: 1; align-self: start; width: 28px; min-height: 28px; height: 28px; padding: 5px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); box-shadow: none; transform: none; }
#appView #sheetList .sheet-record .sheet-calendar-trigger { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; height: auto; margin-top: 6px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--accent); box-shadow: none; font-size: 11px; font-weight: 500; line-height: 1.4; text-shadow: none; transition: background-color 160ms ease, color 160ms ease; }
#appView #sheetList .sheet-calendar-trigger .ui-icon { width: 20px; height: 20px; flex: 0 0 20px; }
#appView #sheetList .sheet-record .sheet-calendar-trigger:hover { background: #111318; color: #fff; border: 0; box-shadow: none; }
#appView #sheetList .sheet-record .record-delete-action:hover { background: var(--danger-soft); color: var(--danger); }
#appView :is(#songsView, #usersView) > .two-pane > .list-pane { min-width: 0; padding: 0 4px 8px 0; border: 0; background: transparent; }
#appView :is(#songList, #userList) { gap: 14px; padding-bottom: 7px; }
#appView :is(#songList, #userList) .record-button { min-height: 60px; padding: 15px 12px 15px 16px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); box-shadow: none; transform: none; text-shadow: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
#appView :is(#songList, #userList) .record-button:hover { border-color: var(--border-strong); background: var(--surface); box-shadow: none; transform: none; }
#appView :is(#songList, #userList) .record-button.active { border-color: var(--rework-card-shadow); background: var(--surface); box-shadow: 3px 3px 0 var(--rework-card-shadow); }
#appView :is(#songList, #userList) .record-button strong { font-size: 14px; font-weight: 500; }
#appView #userList .record-button { gap: 5px; }
#appView #userList .record-button > span { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
#appView .rework-upcoming { display: grid; gap: 12px; margin-top: 12px; padding: 20px 10px 0; border-top: 1px solid var(--border); }
#appView .rework-upcoming h3 { margin: 0 0 3px; font: 400 11px/1.5 var(--font-body); color: var(--muted); }
#appView .rework-upcoming .rework-upcoming-item { display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; border-radius: 5px; background: transparent; }
#appView .rework-upcoming-day { display: grid; place-items: center; flex: 0 0 36px; min-height: 42px; border-radius: 5px; background: var(--surface); color: var(--text-soft); font-size: 15px; }
#appView .rework-upcoming-item > span:last-child { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
#appView .rework-upcoming-item strong { font-size: 10px; line-height: 1.5; font-weight: 400; color: var(--text-soft); }
#appView #sheetsView .editor-pane { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--rework-editor); }
#appView #sheetForm { gap: 15px; }
#appView .sheet-editor-toolbar { gap: 10px; }
#appView .sheet-editor-context { font-size: 11px; }
#appView .sheet-date-reminder { padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: 10px; }
#appView .sheet-date-reminder .ui-icon { width: 14px; height: 14px; }
#appView .sheet-editor-toolbar-actions { gap: 5px; }
#appView :is(.sheet-options-icon, .sheet-delete-publication-icon) { width: 28px; min-height: 28px; height: 28px; flex-basis: 28px; }
#appView .admin-sheet-identity { --identity-accent: var(--accent); padding: 0; font: 400 clamp(18px, 1.6vw, 24px)/1.5 var(--font-body); letter-spacing: 0; }
#appView .admin-inline-sheet-field { font-weight: 500; border-bottom: 1px dashed #96af9b; border-radius: 2px; }
#appView #sheetForm > .form-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#appView .color-field { max-width: 70%; }
#appView #sheetHighlightLabel { color: var(--muted); font-size: 10px; }
#appView .color-trigger { min-height: 36px; width: auto; gap: 9px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
#appView .color-swatch { width: 22px; height: 22px; flex-basis: 22px; border-radius: 4px; }
#appView .color-value { font-size: 11px; }
#appView .color-hint { display: none; }
#appView .sheet-publish-slot { padding-top: 0; align-self: center; }
#appView :is(#publishSheetBtn, #bottomPublishSheetBtn) { background: var(--accent-soft); border: 1px solid #79ad8b; color: var(--text-soft); }
#appView .section-toolbar { padding-top: 0; border: 0; }
#appView .section-toolbar h3 { margin: 0; font-size: 15px; font-weight: 500; }
#appView #addSectionBtn { min-height: 30px; padding: 7px 10px; }
#appView #sectionsEditor { gap: 10px; }
#appView .section-card { border-color: var(--rework-field-border); border-radius: 7px; background: var(--surface); box-shadow: none; }
#appView .section-card-header { gap: 8px; padding: 13px 14px; }
#appView .section-accordion-toggle { min-height: 38px; gap: 14px; }
#appView .section-title-stack { flex: 1; gap: 3px; }
#appView .section-title-row { display: flex; }
#appView .section-title-text { font-size: 14px; font-weight: 500; }
#appView .section-title-meta { font-size: 10px; color: #8b98a7; }
#appView .section-complete-badge { width: 18px; height: 18px; margin-left: auto; }
#appView .section-chevron { width: 8px; height: 8px; }
#appView .section-drag-handle { width: 22px; height: 28px; flex-basis: 22px; opacity: .45; }
#appView .section-drag-handle:hover, #appView .section-drag-handle:focus-visible { opacity: 1; }
#appView .section-actions .mini-action { min-height: 28px; padding: 5px; border: 0; color: var(--muted); }
#appView .section-actions .mini-action:hover { background: var(--danger-soft); color: var(--danger); }
#appView .section-delete-label { display: none; }
#appView .section-card-body { gap: 12px; padding: 0 16px 16px; }
#appView .rework-section-options { color: var(--muted); font-size: 10px; }
#appView .rework-section-options > summary { width: max-content; cursor: pointer; padding: 4px 0; }
#appView .rework-section-options[open] > .form-grid { margin-top: 10px; }
#appView .rework-section-options:has(select:focus) { color: var(--text); }
#appView label, #appView .field-title { font-size: 11px; }
#appView input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(.native-color-input), #appView select, #appView textarea { min-height: 36px; padding: 9px 11px; border-color: var(--rework-field-border); border-radius: 5px; background: var(--surface); font-size: 13px; }
#appView textarea { min-height: 86px; line-height: 1.65; }
#appView [data-announcements-section] textarea { height: 96px; }
#appView .song-picker { margin-top: 0; }
#appView .song-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 0; }
#appView .song-options label { gap: 5px; padding: 7px 9px; border-color: var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text-soft); font-size: 10px; }
#appView .song-options label:has(input:checked) { background: var(--accent-soft); border-color: var(--border); }
#appView .song-options input { accent-color: #459a69; }
#appView .publish-status { margin: 0; min-height: 0; font-size: 10px; }
#appView .sheet-form-actions { justify-content: flex-end; gap: 8px; padding-top: 0; }
#appView .rework-save-status { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: var(--muted); font-size: 10px; }
#appView .rework-save-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #459a69; }
#appView .admin-pdf-drawer { display: block; background: var(--surface); }
#appView .admin-pdf-drawer-handle { color: var(--text-soft); background: var(--surface-2); border-left: 1px solid var(--border); }
#appView .admin-pdf-drawer-handle span { color: var(--muted); font-size: 23px; }
#appView .admin-pdf-drawer-header { display: grid; gap: 12px; align-items: stretch; }
#appView .admin-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#appView #adminPdfDrawerState { margin: 0; letter-spacing: 0; text-transform: none; }
#appView .admin-preview-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); }
#appView .admin-preview-tabs [role="tab"] { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 38px; padding: 8px 6px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; line-height: 1.3; }
#appView .admin-preview-tabs [role="tab"]:hover { color: var(--text); }
#appView .admin-preview-tabs [aria-selected="true"] { color: var(--text-soft); background: var(--accent-soft); border-color: var(--border-strong); }
#appView .admin-preview-tabs .ui-icon { width: 15px; height: 15px; flex: 0 0 15px; }
#appView .admin-pdf-drawer-canvas[hidden] { display: none; }
#appView .admin-pdf-drawer-canvas > iframe { display: block; width: 100%; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 30px rgba(17, 19, 24, .12); }
#appView :is(button, summary, a):focus-visible { outline: 2px solid var(--border-strong); outline-offset: 3px; }
@media (max-width: 1180px) {
  #appView { --rework-sidebar-expanded: 208px; }
  #appView .sidebar { padding-inline: 12px; }
  #appView #workspaceMain { padding: 24px; }
  #appView .view-header { flex-wrap: wrap; gap: 15px; }
  #appView .header-actions { max-width: 100%; }
  #appView .two-pane { grid-template-columns: 208px minmax(0, 1fr); gap: 18px; }
  #appView #sheetsView .editor-pane { padding: 16px; }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  #appView { grid-template-columns: 76px minmax(0, 1fr) 22px; transition: grid-template-columns 360ms cubic-bezier(.22, 1, .36, 1); }
  #appView:has(> .sidebar:hover), #appView:has(> .sidebar :focus-visible) { grid-template-columns: var(--rework-sidebar-expanded) minmax(0, 1fr) 22px; }
  #appView > .sidebar { align-items: stretch; padding-inline: 12px; }
  #appView .sidebar .app-brand { position: relative; height: 76px; min-height: 76px; padding-inline: 5px; }
  #appView .sidebar .app-brand > div { position: absolute; top: 0; left: 57px; width: calc(var(--rework-sidebar-expanded) - 81px); overflow: hidden; }
  #appView .main-nav { width: 100%; }
  #appView .main-nav .nav-item { justify-content: flex-start; gap: 0; padding: 11px 12px; transition: gap 320ms ease, background 140ms ease, border-color 140ms ease; }
  #appView .sidebar .theme-toggle { justify-content: flex-start; gap: 0; padding-inline: 17px; border-radius: 5px; }
  #appView .sidebar .theme-toggle [data-theme-label] { display: block; }
  #appView .sidebar .admin-logout-action { justify-content: flex-start; gap: 0; padding-inline: 16px; }
  #appView .sidebar .app-brand > div,
  #appView .sidebar .nav-item > span,
  #appView .sidebar .theme-toggle [data-theme-label],
  #appView .sidebar .admin-logout-action > span,
  #appView .sidebar .session-box { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-6px); transition: opacity 140ms ease, transform 280ms ease, max-width 320ms ease, visibility 0s linear 320ms; }
  #appView .sidebar .nav-item > span,
  #appView .sidebar .theme-toggle [data-theme-label],
  #appView .sidebar .admin-logout-action > span { max-width: 0; overflow: hidden; white-space: nowrap; }
  #appView .sidebar .session-box { width: calc(var(--rework-sidebar-expanded) - 24px); max-height: 0; padding-top: 0; overflow: hidden; border-top-color: transparent; transition: max-height 320ms ease, padding-top 320ms ease, opacity 140ms ease, visibility 0s linear 320ms; }
  #appView .sidebar:is(:hover, :has(:focus-visible)) .app-brand > div,
  #appView .sidebar:is(:hover, :has(:focus-visible)) .nav-item > span,
  #appView .sidebar:is(:hover, :has(:focus-visible)) .theme-toggle [data-theme-label],
  #appView .sidebar:is(:hover, :has(:focus-visible)) .admin-logout-action > span,
  #appView .sidebar:is(:hover, :has(:focus-visible)) .session-box { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 70ms, 0s, 0s, 0s; }
  #appView .sidebar:is(:hover, :has(:focus-visible)) .nav-item { gap: 13px; }
  #appView .sidebar:is(:hover, :has(:focus-visible)) :is(.theme-toggle, .admin-logout-action) { gap: 10px; }
  #appView .sidebar:is(:hover, :has(:focus-visible)) .nav-item > span,
  #appView .sidebar:is(:hover, :has(:focus-visible)) .theme-toggle [data-theme-label],
  #appView .sidebar:is(:hover, :has(:focus-visible)) .admin-logout-action > span { max-width: 170px; }
  #appView .sidebar:is(:hover, :has(:focus-visible)) .session-box { max-height: 220px; padding-top: 18px; border-top-color: var(--border); }
}
@media (min-width: 761px) and (max-width: 980px) {
  #appView .view-header h2 { font-size: 21px; }
}
@media (max-width: 760px) {
  #appView { grid-template-columns: minmax(0, 1fr); }
  #appView > .sidebar { position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; gap: 14px 8px; padding: 20px 18px 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  #appView .sidebar .app-brand { grid-column: 1; grid-row: 1; min-height: 0; padding: 0; align-items: center; }
  #appView .app-brand strong { font-size: 24px; }
  #appView .app-brand #parishBadge { margin-top: 5px; font-size: 9px; }
  #appView .sidebar .app-mark { width: 36px; height: 36px; flex-basis: 36px; }
  #appView .sidebar .theme-toggle { grid-column: 2; grid-row: 1; padding: 7px; margin: 0; width: 36px; min-height: 36px; align-self: center; justify-content: center; }
  #appView .theme-toggle [data-theme-label], #appView .admin-logout-action > span { display: none; }
  #appView .sidebar .admin-logout-action { grid-column: 3; grid-row: 1; align-self: center; width: 36px; min-height: 36px; padding: 7px; justify-content: center; }
  #appView .main-nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; margin: 0; overflow-x: auto; padding-bottom: 2px; }
  #appView .main-nav .nav-item { flex: 1 0 72px; min-height: 62px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 7px; font-size: 10px; }
  #appView .nav-item .admin-nav-icon, #appView .nav-item.active .admin-nav-icon { width: 23px; height: 23px; flex-basis: 23px; }
  #appView .sidebar .session-box, #appView .admin-pdf-drawer { display: none; }
  #appView #workspaceMain { grid-column: 1; grid-row: auto; padding: 24px 18px 36px; }
  #appView .view-header { gap: 14px; margin-bottom: 22px; }
  #appView .view-header h2 { font-size: 22px; }
  #appView .header-actions { justify-content: flex-start; }
  #appView .two-pane { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #appView #sheetsView > .two-pane > .list-pane { position: static; max-height: none; padding-right: 0; }
  #appView #sheetList { display: flex; align-items: stretch; gap: 12px; padding: 0 4px 8px 0; overflow-x: auto; scroll-snap-type: x proximity; }
  #appView #sheetList .sheet-record { flex: 0 0 220px; scroll-snap-align: start; }
  #appView #sheetList .rework-upcoming { display: none; }
  #appView #sheetsView .editor-pane { padding: 16px 12px; }
  #appView .section-card-header { padding-inline: 10px; gap: 6px; }
  #appView .section-card-body { padding-inline: 12px; }
  #appView .section-drag-handle { width: 28px; height: 40px; flex-basis: 28px; }
  #appView .section-actions .mini-action { min-width: 32px; min-height: 40px; }
  #appView .section-title-text { font-size: 13px; }
  #appView .section-accordion-toggle { min-height: 40px; gap: 10px; }
  #appView .color-field { max-width: 65%; }
  #appView .rework-save-status { flex: 1 0 100%; }
  #appView :is(.primary-action, .secondary-action) { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #appView, #appView *, #appView *::before, #appView *::after { transition: none !important; animation: none !important; }
}
