.gallery-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:zoom-in}.gallery-photo-open:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}.gallery-photo-open span{display:block;padding:10px 14px;font-size:13px}.gallery-viewer{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#101114;color:#f1f1f5;overflow:hidden;font-family:inherit}.gallery-viewer[open]{display:flex;flex-direction:column}.gallery-viewer::backdrop{background:#101114}.gallery-viewer button{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;border:1px solid #484650;border-radius:10px;background:#24242c;color:#f1f1f5;font:inherit;cursor:pointer}.gallery-viewer button:hover:not(:disabled){background:#393447}.gallery-viewer button:focus-visible{outline:3px solid #c8bcff;outline-offset:2px}.gallery-viewer button:disabled{opacity:.4;cursor:default}.gallery-viewer button svg{width:22px;height:22px}.gallery-viewer__toolbar{display:flex;align-items:center;gap:8px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #303038;flex-shrink:0}.gallery-viewer__title{flex:1;min-width:0;display:grid;gap:4px;padding:0 8px}.gallery-viewer__title strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px}.gallery-viewer__title span{font-size:12px;color:#bab8c6}.gallery-viewer__body{flex:1;min-height:0;display:flex;align-items:stretch;gap:10px;padding:12px}.gallery-viewer__arrow{align-self:center}.gallery-viewer__stage{min-width:0;min-height:0;flex:1;overflow:hidden;touch-action:pan-y pinch-zoom;display:grid;place-items:center;position:relative}.gallery-viewer__stage[data-zoomed=true]{display:block;overflow:auto;touch-action:auto}.gallery-viewer__canvas{display:flex;align-items:center;justify-content:center;flex-shrink:0}.gallery-viewer__canvas img{display:block;max-width:none;max-height:none;object-fit:contain;-webkit-user-select:none;user-select:none}.gallery-viewer__stage p{color:inherit}.gallery-viewer__footer{flex-shrink:0;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;padding:8px 16px max(12px,env(safe-area-inset-bottom));font-size:13px;color:#c3c1d0}.gallery-viewer__info{display:flex;gap:16px;flex-wrap:wrap;padding:12px 20px;background:#202028;overflow-wrap:anywhere;font-size:13px;color:#d4d1e0;max-height:25dvh;overflow:auto;flex-shrink:0}.gallery-viewer__feedback{padding:16px;text-align:center;overflow-wrap:anywhere;max-width:100%}.gallery-viewer__feedback p{color:#f1f1f5}@media(max-width:600px){.gallery-viewer__toolbar{flex-wrap:wrap;gap:6px;padding-left:10px;padding-right:10px}.gallery-viewer__title{flex-basis:calc(100% - 70px)}.gallery-viewer__toolbar>button:nth-of-type(2){margin-left:auto}.gallery-viewer__body{gap:4px;padding:8px 4px}.gallery-viewer__arrow{padding:4px!important}.gallery-viewer__footer{font-size:12px}.gallery-viewer__info{padding:10px 14px}}.gallery-photo-card{min-height:280px}.gallery-photo-placeholder{min-height:180px;display:grid;place-items:center}.gallery-viewer__thumbnails{flex-shrink:0;padding:8px 12px 0;border-top:1px solid #303038}.gallery-viewer__thumb-list{display:flex;gap:8px;justify-content:center}.gallery-viewer .gallery-viewer__thumb{width:84px;min-width:0;display:flex;flex-direction:column;gap:4px;padding:4px;border-radius:8px}.gallery-viewer__thumb[aria-current=true]{outline:2px solid #c8bcff;outline-offset:1px}.gallery-viewer__thumb img{display:block;width:72px;height:48px;max-width:100%;object-fit:contain}.gallery-viewer__thumb span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.gallery-viewer__thumbnails>p{font-size:11px;color:#c3c1d0;text-align:center;margin:8px 0 0}.gallery-viewer .gallery-viewer__footer{margin-top:0}@media(max-width:600px){.gallery-viewer .gallery-viewer__thumb{width:56px}.gallery-viewer__thumb-list{gap:6px}.gallery-viewer__thumb img{height:36px}}.gallery-viewer__video{position:absolute;inset:0;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center}.gallery-viewer__video video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.gallery-viewer__video video[hidden]{display:none}.gallery-viewer__video-load{position:absolute}.gallery-photo-open{position:relative}.gallery-photo-open .gallery-video-badge{position:absolute;bottom:8px;left:8px;background:#17171ee8;color:#fff;border-radius:6px;padding:5px 8px;font-size:12px}.gallery-viewer__video-load[role=status]{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;background:#17171ee8;color:#fff}.gallery-viewer .gallery-viewer__video-play{display:flex;align-items:center;justify-content:center;width:64px;height:64px;padding:0;border:1px solid #ffffff66;border-radius:50%;background:#17171ecc;color:#fff;cursor:pointer}.gallery-viewer .gallery-viewer__video-play:hover{background:#17171ef2}.gallery-viewer .gallery-viewer__video-play:focus-visible{outline:2px solid #fff;outline-offset:4px}.gallery-viewer .gallery-viewer__video-play svg{width:28px;height:28px;fill:currentColor;transform:translate(1px)}.gallery-page{max-width:1148px}.gallery-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.gallery-photo-card{min-height:0}.gallery-photo-card .gallery-photo-open{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:14px;overflow:hidden;background:var(--surface)}.gallery-photo-card .gallery-photo-open img{display:block;width:100%;height:100%;object-fit:cover}.gallery-photo-card .gallery-photo-placeholder{display:grid;place-items:center;min-height:180px;padding:20px;color:var(--muted)}.gallery-photo-open .gallery-photo-placeholder{height:100%;margin:0}.gallery-page .gallery-selection-card .gallery-photo-card{height:100%;border-radius:14px}.gallery-page .gallery-selection-card button:disabled{opacity:1}.gallery-page .gallery-selection-card:has(button:focus-visible){outline:3px solid var(--accent);outline-offset:4px}.gallery-page .gallery-dropzone{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;padding:24px 16px;margin:8px 0 20px;border:2px dashed var(--border);border-radius:14px;background:var(--bg);color:var(--text);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.gallery-dropzone svg{width:28px;height:28px;color:var(--accent)}.gallery-dropzone span{font-size:13px;color:var(--muted)}.gallery-page .gallery-dropzone:not(:disabled):hover,.gallery-page .gallery-dropzone[data-dragging=true]{border-color:var(--accent);background:var(--accent-bg);box-shadow:0 0 18px color-mix(in srgb,var(--accent) 14%,transparent);transform:translateY(-2px)}.gallery-page .gallery-dropzone:not(:disabled):active{transform:scale(.99)}.gallery-page .gallery-upload-submit{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.gallery-page .gallery-upload-submit:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 24%,transparent);filter:brightness(1.08)}.gallery-page .gallery-upload-submit:not(:disabled):active{transform:translateY(0) scale(.98)}.gallery-upload-spinner{animation:gallery-upload-spin 1s linear infinite}.gallery-upload-progress{display:block;width:100%;height:6px;margin:12px 0 18px;accent-color:var(--accent)}@keyframes gallery-upload-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.gallery-page .gallery-dropzone,.gallery-page .gallery-upload-submit{transition:none}.gallery-page .gallery-dropzone:not(:disabled):hover,.gallery-page .gallery-dropzone[data-dragging=true],.gallery-page .gallery-dropzone:not(:disabled):active,.gallery-page .gallery-upload-submit:not(:disabled):hover,.gallery-page .gallery-upload-submit:not(:disabled):active{transform:none}.gallery-upload-spinner{animation:none}}.gallery-page .gallery-dropzone[aria-disabled=true]{opacity:.55;cursor:default;transform:none;box-shadow:none;background:var(--bg);border-color:var(--border)}.gallery-page .gallery-selection-card .gallery-photo-open:focus-visible{outline:none}.gallery-upload-layout[hidden]{display:none}.gallery-source-switch{display:flex;gap:10px;flex-wrap:wrap;padding:16px 20px}.gallery-source-switch button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-bg)}.gallery-existing{padding:20px}.gallery-edit-toolbar,.gallery-edit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.gallery-edit-toolbar{justify-content:space-between}.gallery-edit-toolbar h2{margin:0}.gallery-edit-toolbar p{margin:8px 0}.gallery-edit-actions{margin:16px 0}.gallery-edit-actions label{display:grid;gap:6px;max-width:100%;font-size:13px}.gallery-edit-actions select{min-width:200px;max-width:100%}.gallery-edit-confirm{border:1px solid var(--accent);border-radius:14px;padding:20px;margin:20px 0;background:var(--surface)}.gallery-edit-confirm h3{margin:0}.gallery-delete{color:var(--text);border-style:dashed}.gallery-selection-grid{padding:10px 6px}.gallery-selection-card{position:relative;min-width:0;border:2px solid transparent;border-radius:16px;background:var(--surface);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.gallery-selection-card[data-selected=true]{transform:translateY(-4px) scale(1.015);border-color:var(--accent);box-shadow:0 0 22px color-mix(in srgb,var(--accent) 22%,transparent),0 8px 20px #0002;z-index:1}.gallery-selection-card .memory-card{border:0;background:transparent}.gallery-select-label{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;font-size:13px;overflow-wrap:anywhere;cursor:pointer}.gallery-select-label input{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent);margin:0}.gallery-select-label span{min-width:0}.gallery-page .gallery-photo-open span{font-size:13px}@media(prefers-reduced-motion:reduce){.gallery-selection-card{transition:none}.gallery-selection-card[data-selected=true]{transform:none}}.gallery-page .gallery-back{padding:0;min-height:44px;margin:-12px 0 10px;font-size:12px}.gallery-album-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.gallery-album-heading>div{min-width:0}.gallery-album-heading h1{font-size:34px;line-height:1.2;letter-spacing:-1px;margin:0 0 12px;overflow-wrap:anywhere}.gallery-album-heading p{font-size:14px;line-height:1.6;margin:0}.gallery-album-heading>.btn{flex-shrink:0}.gallery-page .gallery-limits{margin-top:24px;font-size:13px}.gallery-album-layout,.gallery-upload-layout{display:grid;grid-template-columns:minmax(0,744fr) minmax(0,380fr);gap:24px;align-items:start}.gallery-page .gallery-panel{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px}.gallery-page .gallery-panel h2{font-size:20px;line-height:1.3;margin:0 0 16px}.gallery-page .gallery-panel p{font-size:14px;line-height:1.6}.gallery-album-sidebar{display:grid;gap:20px;min-width:0;position:sticky;top:20px}.gallery-page .gallery-preview .memory-card{border:0;border-radius:0;background:transparent;min-height:0}.gallery-page .gallery-preview img{height:240px;object-fit:contain;background:var(--bg);border:1px solid var(--border);border-radius:12px}.gallery-page .gallery-preview .gallery-photo-open span{padding:14px 0;color:var(--accent)}.gallery-page .gallery-preview .gallery-photo-placeholder{min-height:240px;margin:0;display:grid;place-items:center}.gallery-page .gallery-preview .memory-card p{margin:0 0 16px}.gallery-page .gallery-metadata h2{font-size:17px;overflow-wrap:anywhere}.gallery-page .gallery-metadata dl{margin:0}.gallery-page .gallery-metadata dl>div+div{margin-top:18px}.gallery-page .gallery-metadata dt{font-size:12px;color:var(--muted);margin-bottom:6px}.gallery-page .gallery-metadata dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.gallery-page .gallery-files table,.gallery-page .gallery-upload-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.gallery-page .gallery-files th,.gallery-page .gallery-upload-table th{font-size:12px;font-weight:400;color:var(--muted);text-align:left;padding:14px 10px;border-bottom:1px solid var(--border)}.gallery-page .gallery-files td,.gallery-page .gallery-upload-table td{padding:14px 10px;border-bottom:1px solid var(--border);vertical-align:middle;overflow-wrap:anywhere}.gallery-page .gallery-files th:first-child{width:52%}.gallery-page .gallery-files th:last-child{width:72px}.gallery-page .gallery-files tr[data-selected=true]{background:var(--accent-bg)}.gallery-page .gallery-file-select{font:inherit;text-align:left;color:var(--text);min-height:44px;padding:8px 0;overflow-wrap:anywhere;max-width:100%;font-weight:500}.gallery-page .gallery-file-state{font-size:12px;color:var(--muted)}.gallery-page .gallery-file-state.ready{color:var(--green,var(--accent))}.gallery-page .gallery-file-state.failed{color:var(--text)}.gallery-page .gallery-file-open{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--border);border-radius:10px;color:var(--accent);font-size:11px;padding:4px}.gallery-file-open svg{width:18px;height:18px}.gallery-page button:focus-visible,.gallery-page summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.gallery-page .gallery-manage{margin:20px 0}.gallery-page .gallery-authoring{border:1px solid var(--border);border-radius:14px;background:var(--surface);margin:12px 0;overflow:hidden}.gallery-page .gallery-authoring>summary{padding:16px 22px;font-size:14px;font-weight:600;color:var(--accent);cursor:pointer;min-height:52px}.gallery-page .gallery-authoring[open]>summary{border-bottom:1px solid var(--border)}.gallery-page .gallery-authoring .panel{max-width:none;margin:0;border:0;border-radius:0}.gallery-page .gallery-upload-layout{padding:24px;background:var(--bg)}.gallery-page .gallery-upload-layout .gallery-panel{padding:20px}.gallery-page .gallery-upload-table th:first-child{width:35%}.gallery-page .gallery-upload-table th:last-child{width:90px}.gallery-page .gallery-upload-table .btn{padding:8px;font-size:12px;margin:0}.gallery-page .gallery-upload-destination{display:grid;gap:20px}.gallery-page .gallery-upload-destination strong{display:block;overflow-wrap:anywhere;margin-top:8px}.gallery-page .gallery-upload-destination p{color:var(--muted);margin:0}.gallery-page .gallery-upload-table .upload-state{font-size:12px;line-height:1.5}.gallery-page .gallery-queue-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.gallery-page .gallery-upload-status{font-size:13px;color:var(--muted);margin:12px 0}.gallery-page .gallery-mobile-status{display:none}@media(max-width:1100px){.gallery-album-layout,.gallery-upload-layout{grid-template-columns:minmax(0,1fr)}.gallery-album-sidebar{position:static}.gallery-album-sidebar[data-ready=true]{display:none}.gallery-page .gallery-upload-destination{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-page .gallery-files th:first-child{width:48%}}@media(max-width:600px){.gallery-page .gallery-panel{padding:18px}.gallery-page .gallery-files th,.gallery-page .gallery-files td{padding:10px 6px}.gallery-page .gallery-files th:last-child{width:54px}.gallery-page .gallery-authoring>summary{padding:16px 18px}.gallery-page .gallery-upload-layout{padding:12px;gap:16px}.gallery-page .gallery-upload-destination{grid-template-columns:minmax(0,1fr)}.gallery-page .gallery-upload-table th:last-child{width:76px}.gallery-page .gallery-upload-table th,.gallery-page .gallery-upload-table td{padding:12px 4px;font-size:12px}.gallery-page .gallery-upload-table .btn{padding:4px;font-size:11px}.gallery-page .gallery-queue-actions .btn{width:100%;margin-right:0}}@media(max-width:600px){.gallery-album-heading{align-items:flex-start;flex-direction:column;gap:12px}.gallery-album-heading h1{font-size:28px}.gallery-album-heading>.btn{margin:0}}:is(.gallery-photo-open,.gallery-calendar-card)[data-hold]{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.gallery-calendar-card[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.gallery-edit-dock[aria-label="Действия с альбомом"] .gallery-edit-selection>p{margin:0 0 8px;overflow-wrap:anywhere}.gallery-edit-modal[data-choosing=true]{inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;background:var(--bg);padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overscroll-behavior:contain}.gallery-edit-modal[data-choosing=true]>*{max-width:950px;margin-inline:auto}.gallery-edit-modal[data-choosing=true]>.gallery-calendar-grid{margin-top:20px}.gallery-destination-header{position:sticky;z-index:2;top:0;min-height:62px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--bg);border-bottom:1px solid var(--border);padding:0 0 10px}.gallery-destination-header>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gallery-destination-header h2{margin:0;font-size:clamp(18px,4vw,24px)}.gallery-destination-header h2:focus{outline:none}.gallery-return-edit:empty{display:none}.gallery-editor[data-editing=true]{padding-bottom:calc(130px + env(safe-area-inset-bottom))}.gallery-editor[data-editing=true] .gallery-selection-grid{padding:0}.gallery-editor[data-editing=true] .gallery-selection-card{border:0}.gallery-editor[data-editing=true] .gallery-selection-card[data-selected=true]{outline:2px solid var(--accent)}.gallery-edit-dock{position:fixed;z-index:21;inset:auto auto calc(16px + env(safe-area-inset-bottom)) 50%;transform:translate(-50%);width:min(580px,calc(100% - 32px));padding:8px 12px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 6px 30px #0004}.gallery-edit-dock p{margin:0;font-size:13px}.gallery-edit-dock>p{margin-top:8px}.gallery-edit-selection{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 8px}.gallery-edit-selection>p{font-weight:700}.gallery-edit-selection .btn{padding:8px;color:var(--text);background:transparent}.gallery-edit-commands{display:flex;gap:6px}.gallery-edit-commands .btn{flex:1;min-width:0;padding:6px;gap:5px}.gallery-edit-commands svg{width:18px;height:18px}.gallery-edit-commands .btn.gallery-edit-delete{color:light-dark(#a12438,#ff9ca8)}.gallery-edit-modal .gallery-edit-actions{justify-content:flex-end;margin-bottom:0}.gallery-edit-modal select{width:100%;min-height:44px}@media(max-width:760px){.gallery-return-bar:has(.gallery-return-edit:not(:empty)) .gallery-return-years{display:none}.gallery-edit-dock{inset:auto 0 0;width:auto;transform:none;padding:6px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-width:1px 0 0;border-radius:16px 16px 0 0}}@media(max-width:460px){.gallery-edit-commands .btn{flex-direction:column;gap:1px;font-size:11px;min-height:48px}.gallery-edit-selection .btn{font-size:12px;padding-inline:6px}}.gallery-page .gallery-year-crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 24px;font-size:13px;color:var(--muted)}.gallery-year-crumbs .btn{margin:0;padding:8px;min-height:44px;color:var(--accent);font-size:13px}.gallery-year-crumbs [aria-current]{overflow-wrap:anywhere;min-width:0}.gallery-calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 26px}.gallery-calendar-heading h1{margin:10px 0 14px;font-size:38px;letter-spacing:-1px;line-height:1.15}.gallery-calendar-heading p{margin:0}.gallery-calendar-heading>.btn{flex-shrink:0;margin:0}.gallery-calendar-toolbar{display:flex;align-items:flex-end;gap:16px;margin:24px 0}.gallery-calendar-toolbar .btn{margin:0}.gallery-page .gallery-calendar-search{display:grid;gap:8px;color:var(--muted);font-size:12px;max-width:560px;width:100%;margin:20px 0}.gallery-calendar-toolbar .gallery-calendar-search{margin:0}.gallery-calendar-search input{min-width:0;max-width:100%;width:100%;min-height:46px}.gallery-calendar-summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:28px 0 18px}.gallery-calendar-summary h2{margin:0;font-size:20px}.gallery-calendar-summary p{font-size:12px}.gallery-calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-calendar-card{display:block;min-width:0;width:100%;text-align:left;padding:0;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;cursor:pointer;transition:transform .18s,border-color .18s}.gallery-calendar-card:hover{border-color:var(--accent);transform:translateY(-2px)}.gallery-calendar-cover{display:flex;align-items:center;justify-content:center;aspect-ratio:1.55;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 28%,var(--surface)),color-mix(in srgb,var(--surface) 80%,var(--bg)));color:var(--accent)}.gallery-calendar-cover>svg{width:40px;height:40px;opacity:.6}.gallery-calendar-cover>img{width:100%;height:100%;object-fit:cover;display:block}.gallery-calendar-info{display:grid;gap:10px;padding:20px;overflow-wrap:anywhere}.gallery-calendar-info>strong{font-size:19px;line-height:1.35}.gallery-calendar-year{font-size:30px;letter-spacing:-.6px;font-weight:650}.gallery-calendar-info>.muted{font-size:12px}.gallery-calendar-hint{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted);margin:24px 0}.gallery-calendar-hint svg{flex-shrink:0;width:18px;height:18px}.gallery-calendar-empty{text-align:center;border:1px dashed var(--border);border-radius:16px;padding:48px 24px;margin:24px 0;background:var(--surface)}.gallery-calendar-empty>svg{width:36px;height:36px;color:var(--accent)}.gallery-calendar-empty h2{font-size:22px}.gallery-calendar-empty p{font-size:14px;line-height:1.6}.gallery-year-settings .panel>input{max-width:220px}.gallery-year-settings .panel>p{font-size:13px;line-height:1.6}@media(max-width:1050px){.gallery-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gallery-calendar-heading{align-items:flex-start;flex-direction:column;gap:20px}.gallery-calendar-heading h1{font-size:30px}.gallery-calendar-heading p.muted{font-size:13px;line-height:1.65}.gallery-calendar-grid{gap:10px}.gallery-calendar-info{padding:14px;gap:8px}.gallery-calendar-info>strong{font-size:16px}.gallery-calendar-year{font-size:26px}.gallery-calendar-cover{aspect-ratio:1.15}.gallery-calendar-toolbar{gap:10px;flex-wrap:wrap}.gallery-calendar-summary{align-items:flex-start;flex-direction:column;gap:0}.gallery-year-crumbs{gap:3px}.gallery-calendar-empty{padding:30px 18px}.gallery-calendar-hint{align-items:flex-start;line-height:1.7}.gallery-tabs{display:flex;flex-wrap:wrap;gap:8px}.gallery-page .gallery-tabs .btn{margin:0}.gallery-calendar-toolbar .btn{width:100%}}@media(prefers-reduced-motion:reduce){.gallery-calendar-card{transition:none}.gallery-calendar-card:hover{transform:none}}.gallery-return-bar{position:sticky;top:8px;z-index:20;display:flex;align-items:center;gap:12px;padding:10px;margin:0 0 16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 4px 16px #0002}.gallery-return-bar .btn{margin:0;min-height:44px;flex-shrink:0}.gallery-return-bar strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-album-delete{display:flex;justify-content:flex-end}.gallery-delete-dialog{width:min(540px,calc(100% - 32px));max-height:85dvh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:18px;padding:24px}.gallery-delete-dialog::backdrop{background:#0009}.gallery-delete-dialog h2{margin-top:0}.gallery-delete-dialog label{display:grid;gap:8px;margin:16px 0}.gallery-delete-dialog input{min-width:0;width:100%}.gallery-delete-dialog .gallery-delete-ack{display:flex;align-items:flex-start}.gallery-delete-ack input{width:22px;height:22px;flex-shrink:0}.gallery-editor .gallery-edit-toolbar{position:sticky;top:84px;background:var(--surface);z-index:10;padding:12px;border:1px solid var(--border);border-radius:12px}.gallery-selection-card[data-selected=true]:after{content:"✓";position:absolute;right:10px;top:10px;border-radius:50%;background:var(--accent);color:var(--bg);width:28px;height:28px;text-align:center;pointer-events:none;font-weight:700}.gallery-delete-dialog .btn{min-height:44px}@media(max-width:600px){.gallery-return-bar{gap:6px;padding:6px;top:6px;font-size:13px}.gallery-return-bar .btn{padding:8px;font-size:13px}.gallery-delete-dialog{padding:20px}.gallery-editor .gallery-edit-toolbar{top:76px}}:root{color-scheme:dark;font-family:system-ui,sans-serif;--bg: #10141b;--surface: #1a212c;--text: #edf2fb;--muted: #aab7cb;--border: #303a4a;--accent: #adcaff;--accent-bg: #243955;--green: #8dd8ac;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0}main,.gallery-shell{margin:auto;max-width:1200px;padding:1rem clamp(1rem,4vw,2.25rem)}.gallery-shell{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.2rem}.gallery-shell a{font-size:1.15rem;font-weight:700;text-decoration:none}.gallery-shell span,.muted,.eyebrow{color:var(--muted)}a{color:var(--accent)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}.btn{padding:.5rem .8rem;border:1px solid var(--border);border-radius:.65rem;color:var(--text);background:var(--surface)}.btn.primary{color:var(--accent);background:var(--accent-bg)}.btn.ghost{background:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}:root[data-theme=light]{color-scheme:light;--bg: #f6f8fc;--surface: #fff;--text: #192230;--muted: #4d5b6e;--border: #cdd7e5;--accent: #214d96;--accent-bg: #e0ebfc;--green: #166138}:root[data-embedded] main{padding:.5rem clamp(.5rem,2vw,1.25rem)}
