:root {
  color-scheme: light;
  --paper: #f5f2ea; --ink: #181914; --linen: #eae5da; --rule: #cbc5b9;
  --moss: #68705e; --clay: #9a4438; --veil: #10110eee; --white: #ffffff;
  --display: "Source Serif 4", Georgia, serif;
  --ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fast: 120ms; --base: 220ms; --slow: 420ms;
  --space-0: 0px; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 48px;
  --space-10: 64px; --space-11: 80px; --space-12: 112px; --space-13: 160px;
  --radius-control: 2px; --radius-panel: 4px; --radius-pill: 999px;
  --border-hairline: 1px; --border-focus: 2px;
  --content-max: 1560px; --control-min: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body { margin: 0; font: 16px/1.5 var(--ui); min-width: 320px; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100svh; display: flex; flex-direction: column; }
.owner-header { height: 80px; padding: 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; width: min-content; flex-direction: column; font: 20px/.78 var(--display); text-decoration: none; letter-spacing: -.04em; }
.wordmark span + span { padding-left: 12px; }
.owner-header nav { display: flex; align-items: stretch; height: 100%; gap: 32px; }
.owner-header nav a { display: grid; place-items: center; text-decoration: none; font-size: 14px; position: relative; }
.owner-header nav a[aria-current]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.profile { justify-self: end; min-height: 44px; border: 0; background: none; display: inline-flex; align-items: center; gap: 10px; }
.profile > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; }
main:not(.auth-layout, .client-gallery) { flex: 1; }
.owner-footer { margin-top: auto; min-height: 64px; padding: 0 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 12px; color: #57594f; }
.owner-footer nav, .client-footer nav, .legal-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.session-banner { padding: 12px 40px; background: var(--linen); border-bottom: 1px solid var(--rule); text-align: center; }
.session-banner button { border: 0; padding: 8px; background: none; text-decoration: underline; min-height: 44px; }

.dashboard, .editor-page { width: min(100%, 1560px); margin-inline: auto; padding: 80px clamp(32px, 6vw, 96px) 112px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 650; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
.dashboard h1, .editor-heading h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: .98; }
.lead { max-width: 560px; margin: 20px 0 0; font-size: 18px; color: #52544c; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--ink); border-radius: 2px; padding: 12px 22px; background: var(--ink); color: var(--paper); text-decoration: none; transition: background var(--fast), color var(--fast); }
.button:hover:not(:disabled) { background: var(--moss); border-color: var(--moss); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--linen); border-color: var(--ink); }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); background: transparent; }
.icon-button:hover { background: var(--linen); }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
.usage { margin-bottom: 80px; padding: 20px 0; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; border-block: 1px solid var(--rule); font-size: 13px; }
.usage > div { display: flex; justify-content: space-between; gap: 20px; }
progress { width: 100%; height: 4px; border: 0; accent-color: var(--moss); }
.gallery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 28px; margin-bottom: 64px; }
.gallery-card { min-width: 0; }
.card-art { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px; text-decoration: none; overflow: hidden; }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--base); }
.card-art.has-cover:hover img { transform: scale(1.015); }
.card-index, .placeholder-label { position: relative; z-index: 1; padding: 6px 8px; background: #f5f2eae6; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.card-meta { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.card-meta h2 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.card-meta h2 a { text-decoration: none; }
.card-meta p { margin-bottom: 0; color: #5c5e55; font-size: 13px; }
.status { display: flex; gap: 7px; align-items: center; text-transform: uppercase; letter-spacing: .1em; font-size: 10px !important; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }
.empty-state { min-height: 400px; border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 12px; }
.empty-state > p:not(.eyebrow) { max-width: 440px; color: #57594f; }
.empty-mark { width: 64px; height: 64px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; }
.skeleton-list > div { height: 360px; background: linear-gradient(100deg, var(--linen) 20%, #f0ece3 38%, var(--linen) 56%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.auth-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(320px, .95fr) minmax(420px, 1.05fr); }
.auth-editorial { min-height: 100svh; padding: 48px clamp(32px, 6vw, 96px); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.wordmark.inverse { color: var(--paper); }
.auth-editorial h1 { max-width: 720px; margin-bottom: 28px; font-size: clamp(54px, 8vw, 120px); line-height: .84; }
.auth-editorial > div > p:last-child { max-width: 460px; color: #c9c6bc; font-size: 18px; }
.auth-footnote { color: #9e9e94; font-size: 12px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; }
.auth-form { width: min(100%, 430px); }
.auth-form h2 { margin-bottom: 40px; font-size: clamp(36px, 5vw, 54px); }
label { display: grid; gap: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
label > span { color: #6a6c64; font-size: 12px; font-weight: 400; }
input { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #888a80; border-radius: 2px; background: #faf8f2; }
select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #888a80; border-radius: 2px; background: #faf8f2; color: var(--ink); font: inherit; }
input:disabled { color: #63655e; background: var(--linen); }
select:disabled { color: #63655e; background: var(--linen); }
.auth-form .button { width: 100%; margin-top: 8px; }
.auth-switch { margin-top: 28px; color: #57594f; font-size: 13px; }
.auth-legal { margin-top: 18px; color: #6a6c64; font-size: 11px; }
.form-error { margin: -8px 0 20px; padding: 12px; border-left: 3px solid var(--clay); background: #f2e5df; font-size: 14px; }

.back-link { display: inline-block; margin-bottom: 48px; font-size: 14px; }
.editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.step { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.editor-layout { margin-top: 40px; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr); gap: 24px; }
.panel { min-height: 460px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--rule); }
.panel h2, .upload-list h2 { margin-bottom: 32px; font-size: clamp(32px, 4vw, 48px); }
.metadata-form { display: flex; flex-direction: column; }
.metadata-form .button { align-self: flex-start; margin-top: auto; }
.next-step { display: grid; grid-template-columns: auto 1fr; gap: 32px; background: var(--linen); }
.step-number { font: 54px/1 var(--display); color: var(--moss); }
.next-step p:not(.eyebrow) { max-width: 470px; color: #57594f; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.share-link { min-width: 0; margin: 24px 0 0; }
.share-link input { font-weight: 400; cursor: text; }
.owner-photo-toolbar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; padding-top: 24px; }
.owner-photo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-photo-tabs button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--rule); background: transparent; }
.owner-photo-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.owner-preview-status { padding: 24px 0 12px; color: #57594f; }
.owner-preview-hero { margin: 0 0 28px; padding: 24px; background: var(--linen); text-align: center; }
.owner-preview-hero img { display: block; width: auto; max-width: 100%; max-height: min(72svh, 900px); height: auto; margin: auto; object-fit: contain; }
.owner-preview-hero figcaption { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; overflow-wrap: anywhere; }
.owner-preview-hero figcaption strong { font: 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.owner-photo-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 18px; }
.text-button.danger { color: var(--clay); }
.owner-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: start; gap: 16px; }
.owner-preview-tile { min-width: 0; height: fit-content; padding: 8px; border: 1px solid var(--rule); background: transparent; text-align: left; }
.owner-preview-tile.is-selected { border-color: var(--ink); background: var(--linen); }
.owner-preview-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--linen); }
.owner-preview-tile span { display: block; padding-top: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-count { display: block; padding-top: 5px; color: #8b3f43; font-size: 12px; }
.inline-note, .prototype-note { padding: 16px; border-left: 3px solid var(--moss); background: var(--linen); font-size: 14px; }
.drop-zone { min-height: 360px; border: 1px dashed #8d8e85; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.drop-zone:hover, .drop-zone:focus-within { border-color: var(--ink); background: var(--linen); }
.drop-zone.is-busy { cursor: wait; }
.drop-zone h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 8px; }
.upload-overall { margin-top: 20px; padding: 18px 20px; background: var(--linen); border: 1px solid var(--line); }
.upload-overall > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.upload-overall span { color: var(--muted); text-align: right; }
.fine-print { margin: 16px 0 0; font-size: 12px; color: #61635b; }
.upload-list { margin-top: 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); }
.upload-row { min-height: 96px; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--rule); }
.thumb { width: 64px; height: 64px; }
.upload-row > div:nth-child(2) { display: grid; gap: 4px; }
.upload-row span { font-size: 12px; color: #62645c; }
.state-mark { font-size: 18px !important; color: var(--moss) !important; }
.state-mark.upload-failed { color: var(--clay) !important; }
.prototype-note { max-width: 680px; margin-top: 48px; }
.prototype-note p { margin: 4px 0 0; }

.dialog-backdrop { position: fixed; z-index: 20; inset: 0; padding: 24px; display: grid; place-items: center; background: var(--veil); }
.dialog { position: relative; width: min(100%, 600px); max-height: calc(100svh - 48px); overflow: auto; padding: clamp(32px, 6vw, 64px); background: var(--paper); }
.dialog h2 { margin-bottom: 8px; font-size: clamp(38px, 6vw, 60px); }
.dialog > p:not(.eyebrow) { margin-bottom: 36px; color: #5c5e56; }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: 340px; background: var(--ink); color: var(--paper); padding: 14px 18px; transform: translateY(calc(100% + 40px)); transition: transform var(--base); }
.toast:not(:empty) { transform: translateY(0); }
.not-found { display: grid; place-items: start; align-content: center; min-height: 70svh; }

.client-gallery { background: var(--paper); }
.client-access { min-height: 100svh; display: grid; place-items: center; padding: 32px; background: var(--linen); }
.client-access > section { width: min(100%, 520px); padding: clamp(32px, 7vw, 72px); background: var(--paper); border: 1px solid var(--rule); }
.client-access h1 { margin: 36px 0; font-size: clamp(48px, 8vw, 82px); line-height: .9; }
.client-access form { display: grid; gap: 24px; }
.gallery-cover { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: clamp(24px, 7vw, 112px); color: var(--white); }
.gallery-cover { background-size: cover; background-position: center; }
.gallery-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(15deg, #090b08c7, transparent 68%); }
.cover-copy, .scroll-cue { position: relative; z-index: 1; }
.cover-copy p, .cover-copy span { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; }
.cover-copy h1 { margin: 12px 0 28px; font-size: clamp(52px, 10vw, 144px); line-height: .76; color: var(--white); }
.scroll-cue { position: absolute; right: clamp(24px, 7vw, 112px); bottom: clamp(24px, 7vw, 112px); min-height: 44px; display: flex; align-items: center; color: var(--white); }
.gallery-bar { min-height: 72px; padding: 0 clamp(20px, 5vw, 80px); display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; background: #f5f2eaf2; backdrop-filter: blur(12px); }
.gallery-bar > span { font-family: var(--display); font-size: 18px; }
.gallery-bar button { justify-self: end; min-height: 44px; display: flex; align-items: center; gap: 8px; border: 0; background: none; }
.download-all-status { margin: 0; padding: 10px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--rule); color: #5b5d55; font-size: 13px; text-align: right; }
.client-section-tabs { position: sticky; top: 72px; z-index: 4; display: flex; gap: 30px; overflow-x: auto; padding: 0 clamp(20px, 6vw, 96px); border-bottom: 1px solid var(--rule); background: #f5f2eaf2; backdrop-filter: blur(12px); scrollbar-width: none; }
.client-section-tabs::-webkit-scrollbar { display: none; }
.client-section-tabs button { flex: 0 0 auto; min-height: 58px; padding: 2px 0 0; border: 0; border-bottom: 2px solid transparent; background: none; color: #66675f; font: 13px var(--ui); cursor: pointer; }
.client-section-tabs button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.client-section-tabs button span { margin-left: 5px; color: #85867e; font-size: 11px; }
.series { max-width: 1560px; margin-inline: auto; padding: 112px clamp(20px, 6vw, 96px) 160px; }
.section-title { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; margin-bottom: 64px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; }
.section-title::after { content: ''; grid-column: 2; grid-row: 1; height: 1px; background: var(--rule); }
.section-title p { margin: 0; }
.section-download { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.section-download svg { width: 14px; height: 14px; }
.section-download:disabled { border-bottom-color: transparent; color: #77786f; cursor: wait; }
.gallery-section + .gallery-section { padding-top: 0; }
.folder-panel { align-content: start; }
.folder-list { list-style: none; margin: 8px 0 24px; padding: 0; border-top: 1px solid var(--rule); }
.folder-list li { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); }
.folder-list small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.folder-actions { display: flex; align-items: center; gap: 12px; }
.upload-folder { display: grid; gap: 8px; max-width: 520px; margin: 28px 0; }
.client-photo-grid { columns: 2; column-gap: 16px; }
.client-photo-grid article { position: relative; break-inside: avoid; margin-bottom: 16px; }
.client-photo-grid img { display: block; width: 100%; height: auto; background: var(--linen); }
.photo-download { position: absolute; right: 14px; bottom: 14px; width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid #ffffffc7; border-radius: 50%; background: #11130f24; color: var(--white); box-shadow: 0 2px 14px #11130f38; backdrop-filter: blur(4px); transition: opacity var(--fast), transform var(--fast), background var(--fast), color var(--fast); }
.photo-download:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.photo-download svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .photo-download { opacity: 0; transform: translateY(4px); pointer-events: none; }
  .client-photo-grid article:hover .photo-download, .photo-download:focus-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
}
.photo-favorite { position: absolute; right: 12px; top: 12px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #f5f2eae8; color: #77786f; font-size: 24px; }
.photo-favorite.is-selected { color: #9a3439; background: #fffaf3f2; }
.favorite-summary { justify-self: end; font: 12px var(--ui) !important; letter-spacing: .08em; text-transform: uppercase; }
.client-footer { padding: 80px clamp(20px, 6vw, 96px); background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; align-items: end; }
.client-footer p { margin: 0; font: clamp(34px, 5vw, 64px)/1 var(--display); }
.client-footer nav { justify-content: flex-end; font-size: 12px; color: #c9c6bc; }
.legal-shell { min-height: 100svh; display: flex; flex-direction: column; }
.legal-header { min-height: 80px; padding: 18px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--rule); }
.legal-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; font-size: 13px; }
.legal-header nav a { text-decoration: none; }
.legal-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.legal-page { width: min(100%, 1180px); margin: 0 auto; padding: 80px clamp(20px, 6vw, 80px) 120px; }
.legal-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 48px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--ink); }
.legal-hero h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 8vw, 104px); line-height: .86; }
.legal-hero > p { margin: 0; color: #55574f; font-size: 17px; }
.legal-draft { margin: 24px 0 72px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border: 1px solid var(--rule); background: var(--linen); font-size: 13px; }
.legal-draft span { color: #5d5f57; }
.legal-content { margin-left: min(20vw, 220px); }
.legal-content section { display: grid; grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr); column-gap: 48px; padding: 36px 0; border-top: 1px solid var(--rule); }
.legal-content section:first-child { border-top-color: var(--ink); }
.legal-content h2 { margin: 0; font: 28px/1.05 var(--display); }
.legal-content p, .legal-content ul { grid-column: 2; color: #44463f; }
.legal-content p:last-child, .legal-content ul:last-child { margin-bottom: 0; }
.legal-content li + li { margin-top: 8px; }
.legal-content code { padding: 1px 4px; background: var(--linen); }
.legal-footer { margin-top: auto; padding: 32px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; gap: 32px; border-top: 1px solid var(--rule); color: #57594f; font-size: 12px; }
.tone-umber { background: linear-gradient(135deg, #3f352f, #a9856d 62%, #d6b797); }.tone-sage { background: linear-gradient(145deg, #334039, #82927b 56%, #d3cbb6); }.tone-slate { background: linear-gradient(140deg, #2d353a, #687c81 55%, #c6bfb0); }.tone-sand { background: linear-gradient(145deg, #9b795e, #d2b68f 50%, #eee0c7); }.tone-night { background: linear-gradient(125deg, #17201e, #45534c 50%, #9a8a72); }.tone-rose { background: linear-gradient(130deg, #5d3e3d, #ad7770 55%, #ddbaa8); }

@media (max-width: 1023px) {
  .owner-header { padding-inline: 28px; }
  .dashboard, .editor-page { padding: 64px 40px 96px; }
  .editor-layout { grid-template-columns: 1fr; }
  .panel { min-height: 390px; }
}

@media (max-width: 767px) {
  .owner-header { height: 68px; padding-inline: 20px; grid-template-columns: 1fr auto; }
  .owner-header nav { display: none; }
  .profile-name, .owner-footer span:last-child { display: none; }
  .dashboard, .editor-page { padding: 48px 20px 80px; }
  .dashboard-heading { align-items: stretch; flex-direction: column; margin-bottom: 40px; }
  .dashboard-heading .button { width: 100%; }
  .usage { grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
  .gallery-list { grid-template-columns: 1fr; gap: 56px; }
  .owner-footer { padding-inline: 20px; }
  .owner-footer nav { display: none; }
  .auth-layout { display: block; background: var(--paper); }
  .auth-editorial { min-height: 260px; padding: 28px 20px; }
  .auth-editorial h1 { margin-bottom: 16px; font-size: 52px; }
  .auth-editorial > div > p:last-child, .auth-footnote { display: none; }
  .auth-form-wrap { padding: 48px 20px; }
  .editor-heading { align-items: start; flex-direction: column; }
  .editor-layout { margin-top: 20px; }
  .panel { min-height: 0; padding: 28px 20px; }
  .next-step { grid-template-columns: 1fr; }
  .dialog-backdrop { padding: 0; align-items: end; }
  .dialog { width: 100%; height: 100svh; max-height: none; padding: 72px 20px 24px; }
  .dialog-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .upload-row { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .thumb { width: 52px; height: 64px; }
  .gallery-bar { grid-template-columns: 1fr auto; }
  .gallery-bar > span { display: none; }
  .client-section-tabs { gap: 24px; padding-inline: 20px; }
  .gallery-cover { padding: 24px 20px 80px; }
  .scroll-cue { right: 20px; bottom: 20px; }
  .series { padding: 72px 16px; }
  .client-footer { padding: 64px 20px; align-items: start; flex-direction: column; gap: 28px; }
  .client-footer nav { justify-content: flex-start; }
  .client-photo-grid { columns: 1; }
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-header nav { justify-content: flex-start; }
  .legal-page { padding-top: 56px; }
  .legal-hero { grid-template-columns: 1fr; gap: 28px; }
  .legal-draft { margin-bottom: 48px; }
  .legal-content { margin-left: 0; }
  .legal-content section { grid-template-columns: 1fr; gap: 20px; }
  .legal-content p, .legal-content ul { grid-column: 1; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 359px) {
  .dialog-actions { grid-template-columns: 1fr; }
  .profile { display: none; }
}

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