:root {
    color-scheme: light;
    --bg: #f7f8f9;
    --surface: #fff;
    --surface-muted: #f0f2f4;
    --text: #18202b;
    --muted: #707a87;
    --line: #e5e8ec;
    --accent: #287b69;
    --accent-hover: #206557;
    --accent-soft: #e9f5f1;
    --danger: #bd3e4b;
    --success: #248065;
    --shadow-sm: 0 4px 16px rgba(23, 34, 48, .08);
    --shadow-md: 0 18px 48px rgba(23, 34, 48, .16);
    --gallery-mobile-columns: 2;
    --gallery-tablet-columns: 3;
    --gallery-desktop-columns: 4;
    --gallery-gap: 12px;
    --gallery-radius: 14px;
    font-family: Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { display: flex; min-height: 100%; min-height: 100dvh; margin: 0; overflow-x: hidden; flex-direction: column; background: var(--bg); color: var(--text); }
body.lightbox-open { overflow: hidden; }
button, a { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.gallery-closed-page { display: grid; min-height: 100dvh; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 20%, var(--accent-soft), var(--bg) 48%); }
.gallery-closed-card { display: grid; width: min(460px, 100%); place-items: center; padding: 42px 28px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-md); text-align: center; }
.closed-brand { margin-bottom: 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.closed-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); }
.closed-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.gallery-closed-card h1 { margin: 22px 0 8px; font-size: clamp(20px, 4vw, 27px); }
.gallery-closed-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.shell { width: min(1560px, calc(100% - 40px)); min-height: 0; margin-inline: auto; padding: 20px 0 32px; flex: 1 1 auto; }
.gallery-topbar { margin-bottom: 8px; padding: 10px 0 13px; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.gallery-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.gallery-mark { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 5px 16px rgba(40,123,105,.18); font: 800 11px/1 Arial; letter-spacing: .04em; }
.gallery-mark:has(img) { padding: 3px; border: 1px solid rgba(0,0,0,.06); background: #fff; overflow: hidden; }
.gallery-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.gallery-brand-copy { min-width: 0; }
.gallery-identity h1 { margin: 0; overflow: hidden; font-size: clamp(20px, 2vw, 22px); line-height: 1.25; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.gallery-identity p { max-width: 720px; margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.selection-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.selection-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.selection-toggle:hover, .selection-toggle[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); color: var(--accent); }

.breadcrumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; overflow-x: auto; color: var(--muted); font-size: 13px; scrollbar-width: none; white-space: nowrap; overscroll-behavior-inline: contain; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a, .breadcrumbs span { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; }
.breadcrumbs a { color: var(--muted); transition: color .18s ease, border-color .18s ease; }
.breadcrumbs a:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--text); }
.breadcrumbs span { color: var(--text); font-weight: 700; }
.breadcrumbs svg { flex: 0 0 auto; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(180deg); }

.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.folder-heading-copy { min-width: 0; }
.gallery-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.current-folder-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.current-folder-meta span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.current-folder-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.current-folder-meta b { font-weight: 600; }
.folder-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--muted); }
.folder-heading-actions > span { font-size: 13px; white-space: nowrap; }
.heading-separator { opacity: .55; }

.folder-section { margin-bottom: 28px; }
.folder-section > h2, .images-section > h2 { margin: 0 0 12px; font-size: 15px; }
.folder-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.folder-card { position: relative; display: grid; min-width: 0; aspect-ratio: 2 / 3; grid-template-rows: minmax(0, 80%) minmax(0, 20%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: 0 3px 14px rgba(23,34,48,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .18s ease; }
.folder-card:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.folder-card.is-loading { opacity: .58; pointer-events: none; }
.folder-cover { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(145deg, #f6f7f8, var(--surface-muted)); }
.folder-preview-image { position: absolute; top: 9%; left: 13%; display: block; width: 74%; height: 82%; object-fit: cover; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(23,34,48,.13); transition: transform .25s ease; }
.folder-preview-image.preview-position-1 { z-index: 3; transform: rotate(0deg); }
.folder-preview-image.preview-position-2 { z-index: 2; opacity: .92; transform: rotate(4deg) translate(-5px, 2px); }
.folder-preview-image.preview-position-3 { z-index: 1; opacity: .85; transform: rotate(-4deg) translate(5px, -2px); }
.preview-count-1 .folder-preview-image { top: 7%; left: 10%; width: 80%; height: 86%; }
.preview-count-2 .folder-preview-image { top: 8%; left: 11%; width: 78%; height: 84%; }
.folder-preview-image.is-preview-error { display: none; }
.folder-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.folder-cover:not(.preview-count-0) .folder-placeholder { display: none; }
.folder-cover.is-cover-error img { display: none; }
.folder-cover.is-cover-error .folder-placeholder { display: grid; }
.folder-placeholder svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.folder-card-copy { display: flex; min-width: 0; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; }
.folder-card-copy h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.folder-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.folder-meta span { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; white-space: nowrap; }
.folder-meta svg { flex: 0 0 auto; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.folder-meta b { font-weight: 600; }

.site-footer { flex: 0 0 auto; flex-shrink: 0; margin-top: auto; padding: 11px 16px; border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent); color: var(--muted); text-align: center; }
.site-footer p { display: flex; margin: 0; align-items: center; justify-content: center; gap: 7px; font-size: 12px; }
.site-footer img { width: 22px; height: 22px; padding: 2px; border: 1px solid rgba(0,0,0,.06); border-radius: 50%; background: #fff; object-fit: contain; }

.gallery { display: grid; grid-template-columns: repeat(var(--gallery-desktop-columns), minmax(0, 1fr)); gap: var(--gallery-gap); transition: opacity .18s ease; }
.gallery[aria-busy="true"] { opacity: .48; pointer-events: none; }
.gallery-item { position: relative; min-width: 0; aspect-ratio: var(--gallery-aspect-ratio, 4 / 3); padding: 0; overflow: hidden; border: 0; border-radius: var(--gallery-radius); outline: none; background: var(--surface-muted); box-shadow: 0 1px 2px rgba(23,34,48,.04); cursor: zoom-in; animation: gallery-item-in .3s ease both; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease, filter .2s ease; }
.image-fallback { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; padding: 12px; background: var(--surface-muted); color: var(--muted); text-align: center; }
.image-fallback svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.image-fallback small { font-size: 11px; }
.gallery-item.is-image-error img { display: none; }
.gallery-item.is-image-error .image-fallback { display: grid; }
.gallery-item.is-image-error .item-info { display: none; }
.gallery-item::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(20, 46, 40, .2); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.gallery-item:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 52%, transparent); }
.selection-mode .gallery-item { cursor: pointer; }
.selection-mode .gallery-item.is-selected { transform: scale(.975); box-shadow: 0 0 0 3px var(--accent), var(--shadow-sm); }
.selection-mode .gallery-item.is-selected::after { opacity: 1; }
.selection-indicator { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(18,22,27,.3); color: transparent; opacity: 0; transform: scale(.82); box-shadow: 0 2px 9px rgba(0,0,0,.22); backdrop-filter: blur(7px); transition: .18s ease; }
.selection-indicator svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.selection-mode .selection-indicator { opacity: 1; transform: scale(1); }
.selection-mode .gallery-item.is-selected .selection-indicator { border-color: var(--accent); background: var(--accent); color: #fff; }
.item-info { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 32px 11px 10px; background: linear-gradient(transparent, rgba(8,12,17,.75)); color: #fff; text-align: right; opacity: 1; transition: .18s ease; }
.item-info strong { display: block; overflow: hidden; font-size: .62rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover { box-shadow: var(--shadow-sm); }
    .gallery-item:hover img { transform: scale(1.025); }
    .gallery-item:hover .item-info { padding-bottom: 12px; }
}

.gallery-navigation { display: grid; place-items: center; min-height: 72px; margin-top: 18px; }
.load-more-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 190px; min-height: 60px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 4px 14px rgba(23,34,48,.05); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.load-more-button:hover { border-color: color-mix(in srgb, var(--text) 18%, var(--line)); box-shadow: 0 9px 25px rgba(23,34,48,.09); transform: translateY(-2px); }
.load-more-button > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.load-more-copy { display: grid; gap: 2px; text-align: right; }
.load-more-copy strong { font-size: 14px; }
.load-more-copy small { color: var(--muted); font-size: 11px; font-weight: 400; }
.load-more-button > i { display: none; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.load-more-button.is-loading > svg { display: none; }
.load-more-button.is-loading > i { display: block; }
.load-more-button.is-loading { pointer-events: none; }
.pagination { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .66rem; }
.pagination a { padding: 8px 13px; border-radius: 9px; background: var(--surface); color: var(--text); text-decoration: none; }
.js .fallback-pagination { display: none; }

.selection-toolbar { position: fixed; z-index: 40; right: 50%; bottom: 16px; display: flex; align-items: center; gap: 20px; width: min(720px, calc(100% - 28px)); padding: 10px 12px 10px 16px; border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-md); transform: translateX(50%); backdrop-filter: blur(18px); }
.selection-summary { display: grid; gap: 2px; min-width: 126px; }
.selection-summary strong { font-size: .68rem; }
.selection-summary span { color: var(--muted); font-size: .54rem; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-right: auto; }
.selection-actions button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .61rem; font-weight: 700; cursor: pointer; }
.selection-actions button:hover:not(:disabled) { background: var(--surface-muted); color: var(--text); }
.selection-actions button:disabled { cursor: not-allowed; opacity: .45; }
.selection-actions .download-selected-button { display: inline-flex; align-items: center; gap: 7px; padding-inline: 16px; border-radius: 999px; background: var(--accent); color: #fff; }
.selection-actions .download-selected-button:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.download-selected-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.download-selected-button.is-loading svg { animation: spin .8s linear infinite; }
.selection-mode .shell { padding-bottom: 130px; }

.public-toast-region { position: fixed; z-index: 70; top: 16px; left: 16px; display: grid; width: min(360px, calc(100% - 32px)); gap: 8px; pointer-events: none; }
.public-toast { padding: 12px 15px; border-right: 4px solid var(--success); border-radius: 11px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); font-size: .67rem; line-height: 1.7; pointer-events: auto; animation: toast-in .22s ease both; }
.public-toast.is-error { border-right-color: var(--danger); }
.public-toast.is-leaving { animation: toast-out .25s ease both; }

.empty-state { display: grid; place-items: center; min-height: 280px; padding: 36px; border-radius: 14px; background: var(--surface); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-state > span svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { margin: 14px 0 6px; font-size: .9rem; }
.empty-state p { margin: 0; color: var(--muted); font-size: .65rem; }

.lightbox { position: relative; isolation: isolate; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #080a0e; color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 60px minmax(0, 1fr); }
.lightbox[open].has-download { grid-template-rows: 60px minmax(0, 1fr) 68px; }
.lightbox::backdrop { background: #080a0e; }
.lightbox-backdrop-image { position: absolute; z-index: -3; inset: -50px; background-repeat: no-repeat; background-position: center; background-size: cover; filter: blur(35px); opacity: 0; transform: scale(1.08); transition: opacity .42s ease; will-change: opacity; }
.lightbox-backdrop-image.is-visible { opacity: .62; }
.lightbox-shade { position: absolute; z-index: -2; inset: 0; background: rgba(8,10,14,.45); pointer-events: none; }
.studio-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(14px, 2.5vw, 34px); }
.lightbox-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lightbox-copy strong { overflow: hidden; max-width: min(60vw, 680px); font-size: .68rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-copy span { color: rgba(255,255,255,.62); font: .65rem/1 Arial; direction: ltr; white-space: nowrap; }
.studio-circle-button { display: grid; place-items: center; width: 40px; height: 40px; margin-right: auto; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(20,20,20,.5); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: .18s ease; }
.studio-circle-button svg, .nav-button svg, .studio-toolbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; padding: 22px 76px; overflow: hidden; touch-action: pan-y; }
.lightbox-stage img { display: block; width: auto; height: auto; max-width: min(82vw, 1280px); max-height: 78vh; border-radius: 6px; object-fit: contain; user-select: none; box-shadow: 0 22px 72px rgba(0,0,0,.42); }
.nav-button { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(20,20,20,.52); color: #fff; transform: translateY(-50%); cursor: pointer; backdrop-filter: blur(8px); transition: .18s ease; }
.nav-button:hover { background: rgba(55,55,55,.72); transform: translateY(-50%) scale(1.05); }
.studio-circle-button:hover { background: rgba(55,55,55,.72); transform: scale(1.04); }
.next { right: 20px; }
.previous { left: 20px; }
.studio-toolbar { position: relative; z-index: 5; align-self: center; justify-self: center; display: grid; place-items: center; }
.studio-toolbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 108px; height: 44px; padding: 0 21px; border-radius: 999px; background: #fff; color: #171a1f; box-shadow: 0 8px 26px rgba(0,0,0,.28); font-size: .68rem; font-weight: 700; text-decoration: none; transition: .18s ease; }
.studio-toolbar a:hover { background: #edf0f3; transform: translateY(-1px); }
.lightbox :focus-visible, .selection-toggle:focus-visible { outline: 2px solid #74cdb9; outline-offset: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gallery-item-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-10px); } }

@media (min-width: 1600px) {
    .next { right: max(28px, calc((100vw - min(82vw, 1280px)) / 2 - 62px)); }
    .previous { left: max(28px, calc((100vw - min(82vw, 1280px)) / 2 - 62px)); }
}

@media (max-width: 1199px) {
    .gallery { grid-template-columns: repeat(var(--gallery-tablet-columns), minmax(0, 1fr)); }
    .folder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lightbox-stage img { max-width: 86vw; max-height: 76vh; }
}

@media (max-width: 1023px) {
    .gallery { grid-template-columns: repeat(var(--gallery-tablet-columns), minmax(0, 1fr)); }
    .folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shell { width: min(100% - 28px, 1560px); padding-top: 18px; }
    .lightbox-stage img { max-width: 90vw; max-height: 76vh; }
}

@media (max-width: 599px) {
    .shell { width: calc(100% - 20px); padding: 0 0 16px; }
    .gallery-topbar { margin-bottom: 7px; padding: 11px 0 12px; }
    .gallery-mark { width: 40px; height: 40px; font-size: 10px; }
    .gallery-identity h1 { font-size: 20px; }
    .gallery-identity p { max-width: 100%; font-size: 13px; }
    .breadcrumbs { margin-inline: -2px; margin-bottom: 16px; }
    .gallery-heading { align-items: center; flex-direction: row; gap: 10px; margin-bottom: 12px; }
    .gallery-heading h2 { font-size: 17px; }
    .gallery-heading p { display: block; }
    .folder-heading-actions { width: auto; }
    .heading-separator { display: none; }
    .selection-toggle { min-height: 38px; padding-inline: 12px; }
    .gallery { grid-template-columns: repeat(var(--gallery-mobile-columns), minmax(0, 1fr)); gap: var(--gallery-gap); }
    .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .folder-card-copy { padding: 8px; }
    .folder-card-copy h3 { font-size: 14px; }
    .folder-meta { gap: 7px; }
    .folder-meta span { font-size: 10px; }
    .site-footer { padding: 11px 16px max(11px, env(safe-area-inset-bottom)); }
    .selection-indicator { top: 7px; right: 7px; width: 29px; height: 29px; }
    .item-info { padding: 24px 8px 7px; }
    .gallery-navigation { min-height: 70px; margin-top: 14px; }
    .load-more-button { width: min(230px, 100%); min-height: 60px; }
    .selection-toolbar { bottom: max(8px, env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 7px; padding: 10px; border-radius: 14px; }
    .selection-summary { display: flex; align-items: center; justify-content: space-between; min-width: 0; padding-inline: 3px; }
    .selection-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0; }
    .selection-actions .download-selected-button { grid-column: 1 / -1; grid-row: 1; justify-content: center; min-height: 46px; }
    .selection-actions button { min-height: 39px; }
    .selection-mode .shell { padding-bottom: 210px; }
    .public-toast-region { top: 10px; left: 10px; width: calc(100% - 20px); }
    .lightbox[open], .lightbox[open].has-download { grid-template-rows: 58px minmax(0, 1fr); }
    .studio-header { padding-inline: 11px; }
    .lightbox-copy { gap: 7px; }
    .lightbox-copy strong { max-width: 58vw; font-size: .62rem; }
    .lightbox-stage { padding: 7px; }
    .lightbox-stage img { max-width: 100%; max-height: calc(100vh - 142px); }
    .nav-button { width: 44px; height: 44px; opacity: .82; }
    .next { right: 8px; }
    .previous { left: 8px; }
    .studio-toolbar { position: fixed; z-index: 6; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); left: 0; width: 100%; padding-inline: 16px; pointer-events: none; }
    .studio-toolbar a { width: min(100%, 340px); height: 48px; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
