/* fixer gallery: client pages. Builds on fixer.css (colors, type, buttons, fields). */
body.client { background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }

/* Header and footer */
.c-head { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.c-studio { font-family: Fraunces, Georgia, serif; font-weight: 700; font-variation-settings: "SOFT" 50; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1; }
.c-icon-btn { margin-left: auto; width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--border2); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.c-icon-btn:hover { background: var(--hover); }
.c-foot { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; font-size: 12px; color: var(--muted); }

/* Centered panels: password, agreement, messages, downloads */
.c-center { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(24px, 8vh, 80px) 16px; }
.c-panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.c-panel.wide { max-width: 720px; }
.c-panel h1 { font-size: 32px; }
.c-panel p { margin: 0; }
.c-lock { width: 44px; height: 44px; border-radius: 99px; background: var(--acc-soft); color: var(--acc-ink); display: inline-flex; align-items: center; justify-content: center; }
.c-agreement { border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.c-agreement h2 { font-size: 20px; }
.c-agreement-text { max-height: 46vh; overflow-y: auto; padding-right: 8px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.c-agreement-text p { margin: 0 0 12px; }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; }
.c-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.c-dl { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--hair); padding-top: 14px; }
.c-dl h2 { font-size: 20px; }
.c-dl-parts { display: flex; flex-direction: column; gap: 8px; }
.c-dl-parts .btn { justify-content: flex-start; height: auto; min-height: 48px; padding: 10px 14px; flex-wrap: wrap; }
.c-dl-parts .btn .muted { margin-left: auto; }

/* Hero */
.c-hero { position: relative; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) 24px; }
.c-hero.has-cover { min-height: min(56vh, 520px); display: flex; align-items: flex-end; color: #fff; padding-top: 120px; }
.c-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.c-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.c-hero h1 { font-size: clamp(36px, 6vw, 64px); }
.c-hero p { margin: 0; font-size: 15px; opacity: .9; }
.c-hero.has-cover p, .c-hero.has-cover .c-crumbs a { color: #fff; }
.c-crumbs { font-size: 13px; }
.c-crumbs a { color: var(--muted); text-decoration: none; }
.c-crumbs a:hover { text-decoration: underline; }
.c-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.c-hero.has-cover .btn { background: rgba(255,255,255,.94); color: #1A1715; border-color: transparent; }

/* Toolbar */
.c-bar { position: sticky; top: 69px; z-index: 15; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.c-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.c-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: var(--ink2); font: inherit; font-size: 14px; cursor: pointer; }
.c-tabs button span { color: var(--muted); font-size: 12px; }
.c-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--border2); color: var(--ink); font-weight: 600; }
.c-tabs .i { width: 15px; height: 15px; }
.c-picks { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Photo grid: rows of equal height, each photo at its own shape */
.c-main { padding: 16px clamp(8px, 3vw, 40px) 24px; }
.c-empty { text-align: center; padding: 48px 0; }
.jgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.jgrid::after { content: ""; flex-grow: 999999; }
.ph { position: relative; margin: 0; flex-grow: var(--ar); flex-basis: calc(var(--ar) * 230px); aspect-ratio: var(--ar); background: var(--surface2); border-radius: 4px; overflow: hidden; }
@media (max-width: 600px) { .ph { flex-basis: calc(var(--ar) * 130px); } .jgrid { gap: 4px; } }
.ph-open, .ph img { display: block; width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.ph.hidden-by-filter { display: none; }
.ph-actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.ph:hover .ph-actions, .ph:focus-within .ph-actions, .ph-btn[aria-pressed="true"] { opacity: 1; }
.ph:has(.ph-btn[aria-pressed="true"]) .ph-actions { opacity: 1; }
@media (hover: none) { .ph-actions { opacity: 1; } }
.ph-btn { width: 36px; height: 36px; border-radius: 99px; border: 0; background: rgba(20,18,16,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); }
.ph-btn:hover { background: rgba(20,18,16,.8); }
.ph-fav[aria-pressed="true"] { background: #fff; color: var(--red); }
.ph-fav[aria-pressed="true"] .i { fill: currentColor; }
.ph-pick[aria-pressed="true"] { background: #F4F0E8; color: #1A1715; }
.ph-actions .i { width: 18px; height: 18px; }

/* Folder cards */
.c-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.c-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.c-card-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface2); display: block; }
.c-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.c-card:hover img { transform: scale(1.03); }
.c-card-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.c-card-empty .i { width: 40px; height: 40px; stroke-width: 1.4; }
.c-card-lock { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 99px; background: rgba(20,18,16,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.c-card-lock .i { width: 16px; height: 16px; }
.c-card-title { font-weight: 600; font-size: 16px; }
.c-card-meta { font-size: 13px; color: var(--muted); }

/* Dialog and toast */
.c-dialog { border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: min(480px, calc(100% - 32px)); background: var(--surface); color: var(--ink); }
.c-dialog::backdrop { background: rgba(0,0,0,.5); }
.c-dialog form { display: flex; flex-direction: column; gap: 14px; }
.c-dialog p { margin: 0; }
.c-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--page); padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

/* Studio logo and contact */
.c-studio { display: inline-flex; align-items: center; min-width: 0; }
.c-logo { display: inline-flex; align-items: center; height: 36px; }
.c-logo img { height: 36px; width: auto; max-width: min(240px, 55vw); object-fit: contain; display: block; }
.c-foot { flex-direction: column; gap: 14px; }
.c-made { display: inline-flex; align-items: center; gap: 8px; }
.c-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; color: var(--ink2); }
.c-contact a { color: var(--ink2); }
.c-message-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
