@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --forest: #08764a; --deep: #075238; --gold: #ffda00; --coral: #147abc; --blue: #147abc; --paper: #f5f3e9; --white: #fffefa; --ink: #22342b; --muted: #758077; --line: #e2e4dc; --sans: 'DM Sans', sans-serif; --display: 'Manrope', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7f8f5; font-family: var(--sans); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.brand-mark { width: 39px; height: 39px; position: relative; display: grid; place-items: center; color: white; background: var(--forest); font-family: var(--display); font-size: 11px; font-weight: 800; }
.brand-mark i { width: 7px; height: 7px; position: absolute; right: 2px; bottom: 2px; background: var(--gold); }
.admin-body { min-height: 100vh; }
.admin-sidebar { width: 248px; min-height: 100vh; padding: 23px 15px 18px; position: fixed; inset: 0 auto 0 0; z-index: 15; display: flex; flex-direction: column; color: #d4dfd4; background: var(--deep); }
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 1px 9px 27px; color: white; font-family: var(--display); font-size: 9px; line-height: 1.35; font-weight: 700; }
.admin-logo b { color: var(--gold); }
.admin-logo .brand-mark { color: var(--deep); background: var(--gold); }
.brand-logo { width: 52px; height: 52px; display: block; object-fit: contain; background: white; }
.workspace-label, .nav-section-label { padding: 0 11px; color: #7f9989; font-size: 9px; font-weight: 700; }
.workspace-label { padding-bottom: 11px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a { min-height: 39px; padding: 0 10px; display: flex; align-items: center; gap: 10px; border-left: 2px solid transparent; color: #c1d0c3; font-size: 12px; transition: background .15s ease, color .15s ease; }
.admin-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.admin-nav a.selected { border-left-color: var(--gold); color: white; background: rgba(255,255,255,.1); }
.admin-nav .nav-section-label { margin-top: 21px; margin-bottom: 5px; }
.nav-icon { width: 19px; color: #b6c9b7; font-size: 15px; text-align: center; }
.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 20px; color: #b3c6b3; background: rgba(255,255,255,.09); font-size: 9px; }
.sidebar-bottom { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.14); color: #d4dfd4; font-size: 10px; }
.online-dot { width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #9bc478; }
.sidebar-bottom a { margin-top: 10px; display: block; color: var(--gold); }
.admin-main { min-height: 100vh; margin-left: 248px; display: flex; flex-direction: column; }
.admin-topbar { height: 64px; padding: 0 36px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.95); backdrop-filter: blur(12px); }
.breadcrumbs { color: #89928a; font-size: 11px; }
.breadcrumbs span { margin: 0 8px; color: #bcc3b9; }
.admin-profile { display: flex; align-items: center; gap: 9px; color: #536057; font-size: 11px; }
.profile-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: var(--forest); background: #e4ebdd; font-size: 12px; font-weight: 700; }
.admin-profile form { margin: 0; }
.logout-button { width: 27px; height: 27px; border: 1px solid var(--line); color: var(--forest); background: transparent; }
.sidebar-toggle { display: none; }
.admin-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 37px 38px 56px; flex: 1; }
.admin-eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 9px; line-height: 1.4; font-weight: 700; text-transform: uppercase; }
.dashboard-welcome { min-height: 172px; margin-bottom: 20px; padding: 25px 28px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: var(--deep); }
.dashboard-welcome::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .23; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.2) 22px 23px); }
.dashboard-welcome::after { content: ''; width: 29%; height: 100%; position: absolute; z-index: -1; top: 0; right: 0; opacity: .55; background: var(--blue); clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%); }
.dashboard-welcome > div:first-child { max-width: 620px; }
.welcome-kicker { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: #d6e2d7; font-size: 9px; line-height: 1.5; font-weight: 700; }
.welcome-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dashboard-welcome h1 { margin: 0; color: white; font-family: var(--display); font-size: clamp(25px, 2.4vw, 34px); line-height: 1.2; font-weight: 700; }
.dashboard-welcome > div:first-child > p:last-child { margin: 7px 0 0; color: #d3dfd5; font-size: 11px; }
.welcome-summary { min-width: 150px; padding-left: 22px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; border-left: 1px solid rgba(255,255,255,.34); }
.welcome-summary > span { color: #dce5da; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.welcome-summary > strong { margin: 2px 0 8px; color: var(--gold); font-family: var(--display); font-size: 32px; line-height: 1.1; }
.welcome-summary > a { padding-bottom: 3px; border-bottom: 1px solid var(--gold); color: white; font-size: 9px; }
.welcome-summary > a b { margin-left: 8px; color: var(--gold); }
.page-title-row { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.page-title-row h1 { margin: 0; color: var(--deep); font-family: var(--display); font-size: 30px; line-height: 1.2; font-weight: 700; }
.admin-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.admin-button { min-height: 39px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; font-size: 11px; font-weight: 700; }
.admin-button span { font-size: 15px; }
.admin-button-dark { color: white; background: var(--forest); }
.admin-button-dark:hover { background: var(--deep); }
.admin-flash, .admin-alert { margin-bottom: 20px; padding: 11px 14px; color: var(--forest); background: #e4eddf; font-size: 12px; }
.metric-grid { margin-bottom: 27px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card { min-height: 145px; padding: 17px; display: flex; flex-direction: column; align-items: start; color: var(--forest); background: #e8eee3; transition: transform .15s ease; }
.metric-card:hover { transform: translateY(-2px); }
.metric-card > span { color: #546559; font-size: 10px; font-weight: 600; }
.metric-card > strong { margin: 7px 0; font-family: var(--display); font-size: 33px; line-height: 1; }
.metric-card small { width: 100%; margin-top: auto; display: flex; justify-content: space-between; color: #6f7a70; font-size: 9px; }
.metric-card small b { color: var(--forest); font-size: 13px; }
.metric-card-coral { color: #145d89; background: #e1edf4; }
.metric-card-yellow { color: #5d4b13; background: #f3ebcd; }
.metric-card-blue { color: #245b63; background: #deeaE8; }
.dashboard-columns { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 13px; }
.data-panel, .table-panel, .record-form, .settings-form { border: 1px solid var(--line); background: var(--white); }
.data-panel { min-height: 190px; padding: 17px; }
.panel-heading { margin-bottom: 11px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading .admin-eyebrow { margin-bottom: 2px; }
.panel-heading h2 { margin: 0; color: var(--deep); font-family: var(--display); font-size: 17px; }
.panel-heading > a { color: var(--forest); font-size: 10px; font-weight: 700; }
.inbox-row, .pledge-row { min-height: 47px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #eef0e9; }
.inbox-avatar { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: var(--forest); background: #e7ebdc; font-size: 10px; }
.inbox-row > div, .pledge-row > div { min-width: 0; flex: 1; }
.inbox-row strong, .pledge-row strong { color: #35443a; font-size: 10px; }
.inbox-row p, .pledge-row p { max-width: 240px; margin: 1px 0 0; overflow: hidden; color: #818980; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { padding: 3px 7px; display: inline-flex; border-radius: 2px; color: #53664f; background: #e9eee3; font-size: 9px; white-space: nowrap; }
.status-new, .status-pending, .status-draft { color: #875d16; background: #f5edcf; }
.status-completed, .status-resolved, .status-confirmed, .status-published, .status-active, .status-upcoming { color: #316146; background: #e5efe3; }
.status-cancelled, .status-inactive { color: #884a3a; background: #f3e4dc; }
.pledge-row { justify-content: space-between; }
.pledge-row > b { color: var(--forest); font-size: 10px; }
.upcoming-row { min-height: 52px; padding: 7px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid #eef0e9; }
.upcoming-row time { width: 35px; height: 38px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--deep); background: #f5edcf; }
.upcoming-row time strong { font-family: var(--display); font-size: 15px; line-height: 1.05; }
.upcoming-row time span { color: #726322; font-size: 7px; font-weight: 700; }
.upcoming-row > div { min-width: 0; }
.upcoming-row > div > strong { display: block; overflow: hidden; color: #35443a; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; }
.upcoming-row > div > p { margin: 2px 0 0; color: #818980; font-size: 8px; }
.empty-state { padding: 23px 5px; color: #849086; font-size: 11px; text-align: center; }
.quick-actions { padding: 16px 17px; display: grid; grid-template-columns: 1fr repeat(3, minmax(140px, .7fr)); align-items: center; gap: 12px; border: 1px solid var(--line); background: #f0f1e9; }
.quick-actions .admin-eyebrow { margin: 0; }
.quick-actions a { min-height: 39px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #dce0d5; color: var(--forest); background: var(--white); font-size: 10px; font-weight: 600; }
.quick-actions a > span { color: var(--coral); font-size: 16px; }
.quick-actions a > b { margin-left: auto; }
.admin-footer { min-height: 41px; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #89928a; font-size: 9px; }
.table-panel { overflow: hidden; }
.table-toolbar { min-height: 60px; padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.table-toolbar > span { color: #34453a; font-size: 11px; font-weight: 700; }
.table-toolbar small { margin-left: 7px; color: #8a9289; font-size: 9px; font-weight: 400; }
.table-search { width: 200px; height: 33px; padding: 0 10px; border: 1px solid #dce0d5; outline: none; color: var(--ink); background: var(--white); font-size: 10px; }
.table-search:focus { border-color: var(--forest); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 37px; padding: 0 14px; color: #89928a; background: #f5f6f2; font-size: 9px; font-weight: 600; }
td { min-height: 52px; height: 54px; padding: 8px 14px; border-top: 1px solid #eef0e9; color: #657067; font-size: 10px; }
td:first-child { min-width: 180px; color: var(--ink); }
td:first-child strong { max-width: 280px; display: block; overflow: hidden; color: #36443a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
td:first-child small { display: block; color: #929a91; font-size: 9px; }
.record-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.record-identity > div { min-width: 0; }
.record-thumbnail { width: 50px; height: 42px; flex: 0 0 50px; display: block; object-fit: cover; border: 1px solid #e1e5dc; background: #eef1e9; }
.record-thumbnail-empty { display: grid; place-items: center; color: #7b877c; font-size: 8px; }
td:nth-child(2) { max-width: 330px; }
.row-actions { width: 79px; text-align: right; white-space: nowrap; }
.row-actions a, .row-actions button { width: 27px; height: 27px; display: inline-grid; place-items: center; border: 1px solid #e1e5dc; color: var(--forest); background: transparent; font-size: 13px; }
.row-actions form { display: inline; margin: 0; }
.row-actions button:hover { color: #9a3528; border-color: #e9c6bb; }
.record-form { max-width: 950px; padding: 22px; }
.record-form-heading { margin-bottom: 19px; padding-bottom: 15px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); }
.record-form-heading .admin-eyebrow { margin: 0 0 4px; }
.record-form-heading h2 { margin: 0; color: var(--deep); font-family: var(--display); font-size: 19px; }
.quiet-link { color: #68756b; font-size: 11px; }
.record-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.record-field { gap: 6px; font-size: 10px; }
.record-field.field-wide { grid-column: 1 / -1; }
.record-field input, .record-field textarea, .record-field select, .setting-field input, .setting-field textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dce0d7; border-radius: 0; outline: none; color: var(--ink); background: white; font-size: 11px; font-weight: 400; }
.record-field textarea, .setting-field textarea { resize: vertical; }
.record-field input:focus, .record-field textarea:focus, .record-field select:focus, .setting-field input:focus, .setting-field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(23,75,59,.08); }
.image-field { gap: 8px; }
.image-upload-layout { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(260px, 1.15fr); gap: 18px; padding: 14px; border: 1px solid var(--line); background: #f7f8f4; }
.image-preview { min-height: 190px; aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; overflow: hidden; background: #e8ece5; }
.image-preview::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(16,55,45,.08); pointer-events: none; }
.image-preview img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.image-preview-empty { color: #77867a; font-size: 11px; font-weight: 600; }
.image-upload-options { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.image-upload-drop { min-height: 108px; padding: 12px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 1px dashed #aab9a9; color: var(--deep); background: var(--white); text-align: center; cursor: pointer; }
.image-upload-drop:hover, .image-upload-drop:focus-within { border-color: var(--blue); background: #f0f6f8; }
.image-upload-drop strong { font-size: 11px; }
.image-upload-drop small { color: var(--muted); font-size: 9px; font-weight: 400; }
.image-upload-drop input { width: 100%; height: 100%; padding: 0; position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-upload-icon { width: 25px; height: 25px; margin-bottom: 2px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 16px; }
.image-file-name { min-height: 13px; margin: -4px 0 2px; overflow: hidden; color: #748076; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.image-url-label { display: flex; flex-direction: column; gap: 5px; color: #526056; font-size: 9px; font-weight: 700; }
.image-url-label input { min-height: 35px; }
.gallery-batch-panel { margin: 0 0 18px; padding: 19px 21px; border: 1px solid var(--line); background: var(--white); }
.gallery-batch-heading { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gallery-batch-heading .admin-eyebrow { margin-bottom: 4px; }
.gallery-batch-heading h2 { margin: 0; color: var(--deep); font-family: var(--display); font-size: 18px; }
.gallery-batch-heading p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.gallery-batch-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--deep); background: var(--gold); font-size: 20px; }
.gallery-batch-form { display: grid; grid-template-columns: minmax(230px, .95fr) minmax(250px, 1.05fr); gap: 13px 17px; }
.gallery-batch-drop { min-height: 132px; padding: 15px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #9fb5a5; color: var(--deep); background: #f5f8f2; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.gallery-batch-drop:hover, .gallery-batch-drop:focus-within { border-color: var(--blue); background: #f0f6f8; }
.gallery-batch-drop strong { font-size: 11px; }
.gallery-batch-drop small { color: var(--muted); font-size: 9px; font-weight: 400; }
.gallery-batch-drop input { width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gallery-upload-icon { width: 29px; height: 29px; margin-bottom: 2px; display: grid; place-items: center; color: white; background: var(--blue); font-size: 17px; }
.gallery-batch-fields { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.gallery-batch-fields label { display: flex; flex-direction: column; gap: 5px; color: #526056; font-size: 10px; font-weight: 700; }
.gallery-batch-fields label > span { margin-left: 5px; display: inline; color: #909990; font-size: 9px; font-weight: 400; }
.gallery-batch-fields input { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dce0d7; outline: none; color: var(--ink); background: white; font-size: 11px; font-weight: 400; }
.gallery-batch-fields input:focus { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(23,75,59,.08); }
.gallery-batch-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.gallery-upload-status { margin: 0; color: #6c796e; font-size: 10px; }
.gallery-batch-preview { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.gallery-batch-preview:empty { display: none; }
.gallery-preview-item { min-width: 0; padding: 6px; display: flex; align-items: center; gap: 9px; border: 1px solid #e3e7de; background: #fafbf8; }
.gallery-preview-item img { width: 44px; height: 38px; flex: 0 0 44px; object-fit: cover; background: #e6ebe3; }
.gallery-preview-item span { min-width: 0; overflow: hidden; color: #59675d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { margin-top: 20px; padding-top: 16px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.settings-form { padding: 21px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.setting-field { gap: 7px; font-size: 10px; }
.setting-field > span { display: flex; justify-content: space-between; gap: 10px; }
.setting-field small { color: #929b90; font-size: 9px; font-weight: 400; }
.setting-new { align-self: start; padding: 12px; display: flex; background: #f2f3ed; }
.setting-new input { background: white; }

.login-body { min-height: 100vh; background: var(--paper); }
.login-layout { min-height: 100vh; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand { position: absolute; top: 26px; left: 5%; z-index: 2; display: flex; align-items: center; gap: 10px; color: white; font-family: var(--display); font-size: 9px; line-height: 1.35; font-weight: 700; }
.login-brand .brand-mark { color: var(--deep); background: var(--gold); }
.login-brand .brand-logo { width: 70px; height: 70px; }
.login-brand b { color: var(--gold); }
.login-image { min-height: 100vh; position: relative; overflow: hidden; background: var(--forest); }
.login-image::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(13,43,32,.85), transparent); }
.login-image > img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.login-image > div { position: absolute; z-index: 1; left: 9%; bottom: 8%; color: white; }
.login-image > div > span { color: var(--gold); font-size: 9px; font-weight: 700; }
.login-image > div > p { margin: 12px 0 0; font-family: var(--display); font-size: 36px; line-height: 1.2; font-weight: 600; }
.login-panel { width: min(410px, 82%); margin: auto; padding: 35px 0; }
.login-panel h1 { margin: 0; color: var(--deep); font-family: var(--display); font-size: 53px; line-height: 1.03; }
.login-copy { margin: 13px 0 29px; color: #778078; font-size: 12px; }
.login-panel form { display: flex; flex-direction: column; gap: 16px; }
.login-panel label { display: flex; flex-direction: column; gap: 7px; color: #526056; font-size: 10px; font-weight: 700; }
.login-panel input { height: 43px; padding: 0 11px; border: 1px solid #d4d9cf; border-radius: 0; outline: none; background: var(--white); font-size: 12px; font-weight: 400; }
.login-panel input:focus { border-color: var(--forest); }
.login-panel .admin-button { min-height: 44px; margin-top: 5px; justify-content: space-between; padding: 0 16px; }
.login-panel .admin-alert { margin: -13px 0 19px; }
.back-home { margin-top: 24px; display: inline-block; color: #647168; font-size: 10px; }
.login-footer { position: absolute; right: 5%; bottom: 18px; color: #879087; font-size: 9px; }

@media (max-width: 1050px) {
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
    .admin-content { padding-right: 25px; padding-left: 25px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upcoming-panel { grid-column: 1 / -1; }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .quick-actions .admin-eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .admin-sidebar { width: 250px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 25px rgba(0,0,0,.12); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-topbar { height: 56px; padding: 0 16px; }
    .sidebar-toggle { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--forest); background: transparent; }
    .breadcrumbs { margin-right: auto; margin-left: 10px; }
    .admin-profile > span:not(.profile-avatar) { display: none; }
    .admin-content { padding: 27px 17px 40px; }
    .dashboard-welcome { min-height: 160px; padding: 21px; }
    .welcome-summary { min-width: 124px; padding-left: 14px; }
    .page-title-row { align-items: start; }
    .page-title-row h1 { font-size: 25px; }
    .admin-subtitle { max-width: 400px; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .upcoming-panel { grid-column: auto; }
    .quick-actions { grid-template-columns: 1fr; }
    .quick-actions .admin-eyebrow { grid-column: 1; }
    .admin-footer { padding: 0 17px; }
    .login-layout { grid-template-columns: 1fr; }
    .login-image { min-height: 250px; }
    .login-brand { top: 18px; left: 6%; }
    .login-image > div { left: 7%; bottom: 8%; }
    .login-image > div > p { font-size: 27px; }
    .login-panel { width: min(430px, 86%); padding: 35px 0 60px; }
    .login-footer { display: none; }
}
@media (max-width: 520px) {
    .metric-grid { gap: 9px; }
    .metric-card { min-height: 125px; padding: 12px; }
    .metric-card > strong { font-size: 29px; }
    .metric-card small { font-size: 8px; }
    .page-title-row { flex-direction: column; }
    .page-title-row > .admin-button { align-self: start; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 16px; }
    .welcome-summary { min-width: 0; padding: 10px 0 0; flex-direction: row; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.28); border-left: 0; }
    .welcome-summary > strong { margin: 0; font-size: 23px; }
    .welcome-summary > a { margin-left: auto; }
    .table-toolbar { align-items: start; flex-direction: column; }
    .table-search { width: 100%; }
    .record-form { padding: 15px; }
    .record-fields, .settings-grid { grid-template-columns: 1fr; }
    .record-field.field-wide { grid-column: 1; }
    .image-upload-layout { grid-template-columns: 1fr; }
    .image-preview { min-height: 0; }
    .gallery-batch-panel { padding: 15px; }
    .gallery-batch-form { grid-template-columns: 1fr; }
    .gallery-batch-bottom, .gallery-batch-preview { grid-column: 1; }
    .gallery-batch-bottom { align-items: flex-start; flex-direction: column; }
    .gallery-batch-preview { grid-template-columns: 1fr; }
    .setting-field > span { flex-direction: column; gap: 2px; }
    .admin-footer { min-height: 50px; align-items: start; flex-direction: column; justify-content: center; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
