:root {
    --ink: #162434;
    --muted: #667485;
    --line: #dfe5eb;
    --soft: #f4f7f9;
    --white: #ffffff;
    --brand: #123a55;
    --brand-2: #1b5d82;
    --danger: #b93434;
    --success: #26734d;
    --warning: #9b6715;
    --shadow: 0 16px 45px rgba(21, 39, 55, .08);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--soft); }
body { margin: 0; min-height: 100%; color: var(--ink); background: var(--soft); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.admin-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-header__inner { width: min(1240px, calc(100% - 40px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: -.01em; }
.brand__mark, .auth-logo span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: linear-gradient(145deg, var(--brand-2), var(--brand)); font-weight: 800; }
.admin-nav { display: flex; align-items: center; gap: 22px; }
.admin-nav a, .link-button { border: 0; background: none; padding: 8px 0; color: #4e5d6c; text-decoration: none; font-weight: 600; }
.admin-nav a:hover, .link-button:hover { color: var(--brand); }
.admin-nav form { margin: 0; }

.admin-main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.page-heading--compact { align-items: flex-start; }
.page-heading h1 { margin: 3px 0 4px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.page-heading p { margin: 0; }
.eyebrow { margin: 0 0 4px; color: var(--brand-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-weight: 650; }
.back-link:hover { color: var(--brand); }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; line-height: 1.2; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button-primary:hover { background: #0d2e44; }
.button-light { color: var(--ink); background: #fff; border-color: var(--line); }
.button-light:hover { border-color: #bdc8d2; }
.button-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #982b2b; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.button-large { width: 100%; min-height: 50px; }
.icon-button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--brand); background: #fff; font-weight: 700; white-space: nowrap; }
.icon-button:hover { background: #f7fafc; }
.text-action { border: 0; padding: 0; color: var(--brand-2); background: none; font-weight: 750; }
.text-action:hover { text-decoration: underline; }
.text-action-danger { color: var(--danger); }

.alert { margin: 0 0 20px; padding: 13px 15px; border: 1px solid; border-radius: 11px; }
.alert-success { color: #1e6544; background: #ecf8f1; border-color: #b9dfc9; }
.alert-error { color: #8f2929; background: #fff0f0; border-color: #ecc0c0; }
.alert-warning { color: #7f5515; background: #fff8e7; border-color: #ecd9a8; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 22px rgba(21,39,55,.035); }
.empty-state { display: grid; justify-items: center; padding: 75px 28px; text-align: center; background: #fff; border: 1px dashed #cbd5dd; border-radius: var(--radius); }
.empty-state__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 14px; border-radius: 19px; color: var(--brand); background: #eaf2f7; font-size: 28px; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

.gallery-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-admin-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(21,39,55,.045); }
.gallery-admin-card.is-expired { opacity: .88; }
.gallery-admin-card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe8ed; }
.gallery-admin-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #dce9f0, #b9cdd8); }
.cover-placeholder span { display: grid; width: 62px; height: 62px; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; color: white; font-size: 28px; font-weight: 900; }
.gallery-status { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 99px; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gallery-status.is-published { background: rgba(27, 94, 66, .9); }
.gallery-status.is-draft { background: rgba(88, 97, 107, .9); }
.gallery-admin-card__body { padding: 18px; }
.gallery-admin-card h2 { margin: 0 0 2px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.gallery-address { margin: 0 0 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-row { display: flex; gap: 14px; margin: 13px 0; color: var(--muted); font-size: 12px; }
.stats-row strong { color: var(--ink); }
.expiry-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 9px 11px; border-radius: 9px; color: #526171; background: #f3f6f8; font-size: 12px; }
.expiry-row.is-danger { color: #923333; background: #fff0f0; }
.public-link-row { display: flex; gap: 7px; margin-bottom: 14px; }
.public-link-row input { min-width: 0; flex: 1; height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #536271; background: #fafcfd; font-size: 12px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.card-footer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f2; font-size: 12px; }
.card-footer-actions form { margin: 0; }

.form-panel { max-width: 880px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span, .summary-label { color: #3b4b5b; font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cfd8df; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #5b8eaa; box-shadow: 0 0 0 3px rgba(44, 115, 154, .1); }
.field small { color: var(--muted); font-size: 12px; }
.slug-field { display: flex; align-items: center; min-height: 45px; overflow: hidden; border: 1px solid #cfd8df; border-radius: 10px; background: #f6f8fa; }
.slug-field > span { max-width: 55%; padding-left: 12px; color: #6a7784; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.slug-field input { min-width: 120px; border: 0; border-radius: 0; background: #fff; box-shadow: none !important; }
.check-field { display: flex; align-items: flex-start; gap: 10px; padding-top: 25px; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.check-field span { display: grid; gap: 2px; }
.check-field small { color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.gallery-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 22px; padding: 18px 20px; }
.public-link-row--wide { margin: 7px 0 0; }
.public-link-row--wide input { font-size: 14px; }
.summary-expiry { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 12px; min-width: 195px; padding-left: 24px; border-left: 1px solid var(--line); }
.summary-expiry .summary-label { grid-column: 1 / -1; }
.summary-expiry strong { font-size: 18px; }
.summary-expiry form { margin: 0; }
.summary-expiry.is-danger strong { color: var(--danger); }

.media-panel { margin-top: 22px; padding: 24px; }
.media-panel__heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.media-panel h2 { margin: 0 0 3px; font-size: 26px; letter-spacing: -.025em; }
.upload-zone { position: relative; display: grid; min-height: 160px; place-items: center; align-content: center; gap: 3px; padding: 24px; border: 2px dashed #b8c6cf; border-radius: 14px; color: #5b6976; background: #f8fafb; text-align: center; transition: .15s ease; }
.upload-zone:hover, .upload-zone.is-dragover { border-color: var(--brand-2); background: #eef5f9; }
.upload-zone > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone__icon { color: var(--brand-2); font-size: 33px; line-height: 1; }
.upload-zone strong { color: var(--ink); font-size: 16px; }
.upload-zone span { font-size: 13px; }
.upload-progress { position: relative; z-index: 2; width: min(520px, 90%); margin-top: 12px; pointer-events: none; }
.upload-progress__bar { height: 8px; overflow: hidden; border-radius: 99px; background: #dce5ea; }
.upload-progress__bar span { display: block; width: 0; height: 100%; background: var(--brand-2); transition: width .2s ease; }
.upload-progress__text { margin-top: 6px; color: #435260; font-size: 12px; }
.media-empty { padding: 28px 0 4px; color: var(--muted); text-align: center; }
.media-bulk-selection { margin-top: 18px; }
.media-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fb; }
.media-bulk-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-bulk-toolbar form { margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.media-card.is-selected { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(27,93,130,.14); }
.media-select-control { position: absolute; z-index: 3; top: 8px; left: 8px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(12,29,42,.18); cursor: pointer; }
.media-select-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-select-control span { display: grid; width: 20px; height: 20px; place-items: center; border: 2px solid #94a4b1; border-radius: 6px; color: transparent; background: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.media-select-control input:checked + span { color: #fff; border-color: var(--brand-2); background: var(--brand-2); }
.media-select-control input:focus-visible + span { outline: 3px solid rgba(27,93,130,.22); outline-offset: 2px; }
.media-card.is-dragging { opacity: .35; }
.media-card__preview { position: relative; display: grid; aspect-ratio: 3 / 2; overflow: hidden; place-items: center; background: #eef2f4; }
.media-card__preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #fff; }
.cover-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; border-radius: 99px; color: #fff; background: rgba(13, 52, 76, .87); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.drag-handle { position: absolute; top: 7px; right: 7px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #fff; background: rgba(12, 29, 42, .65); cursor: grab; font-size: 20px; }
.file-preview { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #e8eef2, #ccd9e0); }
.file-preview span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: var(--brand); font-size: 16px; font-weight: 850; }
.file-preview--video span { border-radius: 50%; font-size: 23px; }
.file-preview--document span { width: 68px; border-radius: 14px; padding: 0 6px; font-size: 13px; letter-spacing: .04em; }
.media-card__body { display: grid; gap: 2px; min-height: 62px; padding: 11px; }
.media-card__body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.media-card__body span { color: var(--muted); font-size: 11px; }
.media-card__actions { display: flex; justify-content: space-between; gap: 8px; min-height: 38px; padding: 10px 11px; border-top: 1px solid #edf0f2; font-size: 11px; }
.media-card__actions form { margin: 0; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 30px 18px; background: radial-gradient(circle at 50% -20%, #d6e7f0, transparent 55%), #eef3f6; }
.auth-shell { width: min(430px, 100%); }
.install-shell { width: min(720px, 100%); }
.auth-card { padding: 34px; border: 1px solid rgba(197,209,218,.85); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.auth-logo { margin-bottom: 20px; }
.auth-logo span { width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }
.auth-card h1 { margin: 0 0 7px; font-size: 31px; line-height: 1.1; letter-spacing: -.035em; }
.auth-card > .muted { margin: 0 0 24px; }
.stack-form { display: grid; gap: 17px; margin-top: 24px; }
.stack-form label { display: grid; gap: 7px; color: #3b4b5b; font-size: 13px; font-weight: 750; }
.stack-form input { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid #cbd6de; border-radius: 10px; outline: none; }
.stack-form input:focus { border-color: #5b8eaa; box-shadow: 0 0 0 3px rgba(44,115,154,.1); }
.stack-form small { color: var(--muted); font-weight: 400; }
.requirements { display: grid; gap: 8px; margin: 24px 0; }
.requirement { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.requirement__icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; font-weight: 900; }
.requirement.is-ok .requirement__icon { color: #1e6945; background: #dff2e7; }
.requirement.is-bad .requirement__icon { color: #9a2e2e; background: #f8dddd; }
.requirement strong { font-size: 12px; }
.help-box { padding: 15px; border-radius: 11px; color: #735016; background: #fff6df; }
.help-box p { margin: 6px 0 0; }


/* Gallery list metadata and filters — 1.0.18 */
.page-heading__actions { display: flex; align-items: center; gap: 10px; }
.gallery-card-markers { position: absolute; z-index: 2; top: 44px; left: 12px; display: flex; max-width: calc(100% - 24px); flex-direction: column; align-items: flex-start; gap: 5px; }
.gallery-client-marker, .gallery-txt-marker { display: block; max-width: 100%; overflow: hidden; border-radius: 99px; box-shadow: 0 2px 8px rgba(12,29,42,.08); font-size: 10px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gallery-client-marker { padding: 5px 8px; color: #173247; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.93); }
.gallery-txt-marker { padding: 4px 7px; color: #fff; background: rgba(12,29,42,.78); letter-spacing: .07em; }
.gallery-filter { position: relative; z-index: 12; }
.gallery-filter__trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.gallery-filter__count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 99px; color: #fff; background: var(--brand); font-size: 10px; font-weight: 850; line-height: 1; }
.gallery-filter__menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(12,29,42,.16); }
.gallery-filter__menu strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 12px; }
.gallery-filter__menu label { display: flex; align-items: center; gap: 9px; min-height: 34px; color: #384957; font-size: 13px; cursor: pointer; }
.gallery-filter__menu input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.gallery-filter__clear { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.filter-empty-state { margin-top: 24px; padding: 34px 24px; border: 1px dashed #c8d3da; border-radius: 14px; color: var(--muted); text-align: center; background: #fafcfd; }
.filter-empty-state h2 { margin: 0 0 5px; color: var(--ink); font-size: 20px; }
.filter-empty-state p { margin: 0; font-size: 13px; }

@media (max-width: 1050px) {
    .gallery-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .admin-header__inner, .admin-main { width: min(100% - 24px, 1240px); }
    .admin-header__inner { min-height: 60px; }
    .brand span:last-child { display: none; }
    .admin-nav { gap: 15px; }
    .admin-main { padding-top: 26px; }
    .page-heading, .manage-heading { align-items: stretch; flex-direction: column; }
    .page-heading__actions { width: 100%; }
    .page-heading__actions > .button { flex: 1; }
    .gallery-filter { flex: 0 0 auto; }
    .gallery-filter__menu { right: auto; left: 0; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .gallery-admin-grid { grid-template-columns: 1fr; }
    .form-panel, .media-panel { padding: 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .check-field { padding-top: 0; }
    .gallery-summary { grid-template-columns: 1fr; }
    .summary-expiry { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-bulk-toolbar { align-items: stretch; flex-direction: column; }
    .media-bulk-toolbar__actions, .media-bulk-toolbar form, .media-bulk-toolbar .button { width: 100%; }
    .slug-field { display: grid; }
    .slug-field > span { max-width: 100%; padding: 8px 12px 0; }
    .requirement { grid-template-columns: 28px 1fr; }
    .requirement strong { grid-column: 2; }
}

@media (max-width: 460px) {
    .page-heading h1 { font-size: 32px; }
    .page-heading > .button { width: 100%; }
    .page-heading__actions { align-items: stretch; flex-direction: column; }
    .gallery-filter, .gallery-filter__trigger, .page-heading__actions > .button { width: 100%; }
    .gallery-filter__menu { width: 100%; }
    .media-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .auth-card { padding: 26px 21px; }
    .stats-row { flex-wrap: wrap; }
}


/* Gallery statistics — 1.0.20 */
.card-footer-actions__admin { display: flex; align-items: center; gap: 12px; }
.card-footer-actions__admin form { margin: 0; }
.gallery-card-analytics { display: inline-flex; align-items: center; gap: 11px; margin-left: auto; color: #73808c; }
.gallery-card-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; }
.gallery-card-stat svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gallery-card-stat strong { color: #4c5a67; font-size: 11px; font-weight: 750; }
.gallery-statistics-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f9fbfc; }
.gallery-statistics-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.gallery-statistics-panel__heading > div:first-child { display: grid; gap: 4px; }
.gallery-statistics-panel__heading small { color: var(--muted); font-size: 11px; }
.gallery-statistics-panel__counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gallery-statistics-panel__counts span { padding: 6px 9px; border: 1px solid #dce4e9; border-radius: 99px; color: var(--muted); background: #fff; font-size: 11px; white-space: nowrap; }
.gallery-statistics-panel__counts strong { color: var(--ink); font-size: 12px; }
.gallery-email-history { padding: 16px 18px 18px; }
.gallery-email-history > .muted { margin: 7px 0 0; font-size: 12px; }
.gallery-email-history__list { display: grid; gap: 8px; margin-top: 10px; }
.gallery-email-history__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 1px solid #e2e8ec; border-radius: 9px; background: #fff; }
.gallery-email-history__item strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gallery-email-history__item span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }

@media (max-width: 760px) {
    .gallery-statistics-panel__heading { align-items: stretch; flex-direction: column; }
    .gallery-statistics-panel__counts { justify-content: flex-start; }
    .gallery-email-history__item { align-items: flex-start; flex-direction: column; gap: 3px; }
    .gallery-email-history__item span { white-space: normal; }
}

@media (max-width: 460px) {
    .card-footer-actions { align-items: flex-end; }
    .card-footer-actions__admin { flex-wrap: wrap; gap: 8px 12px; }
    .gallery-card-analytics { gap: 8px; }
}

/* Expired gallery reminder — 1.0.10 */
.expired-reminder { margin: 0 0 28px; overflow: hidden; border: 1px solid #e7c8bf; border-radius: 16px; background: linear-gradient(135deg, #fffaf8, #fff); box-shadow: 0 12px 35px rgba(80,42,31,.08); }
.expired-reminder__heading { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: start; padding: 22px 24px 18px; border-bottom: 1px solid #f0ded8; }
.expired-reminder__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--danger); font-size: 22px; font-weight: 900; }
.expired-reminder__heading h2 { margin: 2px 0 5px; font-size: 22px; letter-spacing: -.02em; }
.expired-reminder__heading p:last-child { margin: 0; color: #71615c; font-size: 13px; }
.expired-reminder__list { display: grid; }
.expired-reminder__item { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 24px; border-top: 1px solid #f3e7e3; }
.expired-reminder__item:first-child { border-top: 0; }
.expired-reminder__item > div:first-child { min-width: 0; display: grid; gap: 3px; }
.expired-reminder__item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.expired-reminder__item span { color: #826d66; font-size: 12px; }
.expired-reminder__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.expired-reminder__actions form { margin: 0; }

@media (max-width: 760px) {
    .expired-reminder__heading { padding: 19px 18px 16px; }
    .expired-reminder__item { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px 18px; }
    .expired-reminder__actions { width: 100%; }
    .expired-reminder__actions form { flex: 1; }
    .expired-reminder__actions .button { width: 100%; }
}

@media (max-width: 480px) {
    .expired-reminder__heading { grid-template-columns: 36px 1fr; gap: 11px; }
    .expired-reminder__icon { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
    .expired-reminder__actions { flex-direction: column; }
}

/* Guest gallery entry — 1.0.12 */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #8a97a3; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-guest-button { color: var(--brand); background: #f8fbfc; }
.auth-guest-button:hover { border-color: #b9c8d2; background: #eef5f8; }
