:root {
    --bg-base: #f7f7f8;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f0f1f3;
    --bg-elevated: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --border-color: rgba(0, 0, 0, 0.08);
    --primary: #1a1a1a;
    --primary-soft: rgba(0, 0, 0, 0.05);
    --accent: #c9a227;
    --danger: #dc2626;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-main: 'Montserrat', system-ui, sans-serif;
    --font-display: 'Montserrat', system-ui, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --topbar-h: 56px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --tap-scale: 0.97;
}

[data-theme="dark"] {
    --bg-base: #0e0e10;
    --bg-surface: #18181b;
    --bg-surface-hover: #222226;
    --bg-elevated: #1f1f23;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-soft: #71717a;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #f4f4f5;
    --primary-soft: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-main);
    background: var(--bg-base);
    color: var(--text-main);
    min-height: 100dvh;
}

input, button { font-family: inherit; }
.hidden { display: none !important; }

/* Display caps — брендовый Montserrat */
.cl-caps,
.cl-page-head h1,
.cl-auth-card h1,
.cl-album-hero h1,
.cl-home-greet h1,
.cl-topbar__label,
.cl-section-label,
.cl-field label,
.cl-placeholder h2,
.cl-request-form h2,
.cl-modal__card h2,
.cl-notif-drawer__head h2,
.cl-nav-item span,
.cl-stat__l,
.cl-album-hero__eyebrow {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cl-page-head h1,
.cl-auth-card h1,
.cl-home-greet h1 { letter-spacing: 0.06em; font-size: clamp(22px, 4.5vw, 28px); font-weight: 500; }
.cl-album-hero h1 { font-weight: 500; letter-spacing: 0.08em; }
.cl-auth-card h1 { font-weight: 500; }
.cl-stat__n { font-weight: 600; letter-spacing: -0.02em; text-transform: none; }

@keyframes tabIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.cl-tab--enter { animation: tabIn 0.38s var(--ease-out) both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Loader */
.cl-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: var(--bg-base);
}
.cl-loader__text { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.cl-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-main);
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Screens */
.cl-screen { min-height: 100dvh; display: flex; flex-direction: column; }

/* Topbar */
.cl-topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--topbar-h);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .cl-topbar { background: rgba(14, 14, 16, 0.92); }
.cl-topbar--center { justify-content: center; }
.cl-topbar--album { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.cl-topbar__brand { display: flex; align-items: center; gap: 8px; }
.cl-topbar__brand--compact { justify-content: center; }
.cl-topbar__logo { height: 32px; }
.cl-topbar__logo--sm { height: 28px; }
.cl-topbar__label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.cl-topbar__actions { display: flex; gap: 6px; justify-self: end; }

.cl-icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: transform 0.15s var(--ease-out), background 0.2s, border-color 0.2s;
}
.cl-icon-btn:hover { background: var(--bg-surface-hover); }
.cl-icon-btn:active { transform: scale(var(--tap-scale)); }

.cl-back {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: transparent;
    color: var(--text-main); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Page */
.cl-page {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px calc(24px + var(--safe-bottom));
}
.cl-page--gallery { padding-top: 8px; max-width: 1200px; }

.cl-page-head { margin-bottom: 24px; }
.cl-page-head h1 { font-size: 28px; font-weight: 500; letter-spacing: 0.06em; margin-bottom: 4px; }
.cl-page-head p { color: var(--text-muted); font-size: 14px; }

/* Login */
.cl-login {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.cl-login-card {
    width: 100%; max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
}
.cl-login-card h1 { font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.cl-login-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.cl-field { margin-bottom: 14px; }
.cl-field label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.cl-input {
    width: 100%; padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-main);
    font-size: 15px; outline: none;
}
.cl-input:focus { border-color: var(--text-muted); }

.cl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: var(--radius-md);
    border: none; font-size: 13px; font-weight: 600; cursor: pointer;
    letter-spacing: 0.04em;
    transition: transform 0.15s var(--ease-out), opacity 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}
.cl-btn:active:not(:disabled) { transform: scale(var(--tap-scale)); }
.cl-btn--primary { width: 100%; background: var(--text-main); color: var(--bg-base); }
[data-theme="dark"] .cl-btn--primary { background: #fff; color: #111; }
.cl-btn--primary:hover:not(:disabled) { opacity: 0.92; box-shadow: var(--shadow-sm); }
.cl-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.cl-btn.is-loading { pointer-events: none; }
.cl-btn__spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin 0.65s linear infinite; flex-shrink: 0;
}

.cl-error {
    margin-top: 12px; padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger); font-size: 13px; font-weight: 600;
}

/* Album grid (home) */
.cl-album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .cl-album-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
    .cl-album-grid { grid-template-columns: repeat(4, 1fr); }
}

.cl-album-tile {
    position: relative;
    aspect-ratio: 4 / 5;
    border: none; padding: 0; cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    text-align: left;
    color: inherit;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.cl-album-tile:active { transform: scale(0.98); }
.cl-album-tile:hover { box-shadow: var(--shadow-md); }
.cl-album-tile__cover {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.35s ease;
}
.cl-album-tile:hover .cl-album-tile__cover { transform: scale(1.03); }
.cl-album-tile__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft);
    color: var(--text-soft); font-size: 32px;
}
.cl-album-tile__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
}
.cl-album-tile__title {
    font-size: 14px; font-weight: 700; color: #fff;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-album-tile__meta {
    font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 4px;
}
.cl-album-tile__badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 8px; border-radius: 20px;
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 11px; font-weight: 700;
}

/* Album hero */
.cl-album-hero {
    text-align: center;
    padding: 28px 20px 12px;
    max-width: 720px; margin: 0 auto;
}
.cl-album-hero__eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px;
}
.cl-album-hero h1 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.2; text-transform: uppercase;
}
.cl-album-hero__meta {
    margin-top: 8px; font-size: 14px; color: var(--text-muted);
}

/* Toolbar (Wfolio-style) */
.cl-toolbar {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border-color);
    max-width: 720px; margin: 0 auto;
}
.cl-toolbar__btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 10px;
    background: none; border: none; border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.15s var(--ease-out), opacity 0.2s, background 0.2s, color 0.2s;
}
.cl-toolbar__btn:hover { opacity: 1; background: var(--primary-soft); }
.cl-toolbar__btn:active { transform: scale(var(--tap-scale)); }
.cl-toolbar__btn.is-active { color: var(--accent); opacity: 1; }
.cl-toolbar__btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Masonry gallery */
.cl-masonry {
    column-count: 2;
    column-gap: 6px;
}
@media (min-width: 540px) { .cl-masonry { column-count: 3; column-gap: 8px; } }
@media (min-width: 900px) { .cl-masonry { column-count: 4; column-gap: 10px; } }
@media (min-width: 1200px) { .cl-masonry { column-count: 5; } }

.cl-photo-card {
    break-inside: avoid;
    margin-bottom: 6px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
    animation: fadeIn 0.45s var(--ease-out) both;
}
.cl-photo-card:active { transform: scale(0.98); }
@media (min-width: 540px) { .cl-photo-card { margin-bottom: 8px; } }

.cl-photo-card img {
    width: 100%; display: block;
    transition: opacity 0.2s;
}
.cl-photo-card:hover img { opacity: 0.92; }

.cl-photo-card__actions {
    position: absolute; top: 6px; right: 6px;
    display: flex; gap: 4px; opacity: 0;
    transition: opacity 0.2s;
}
.cl-photo-card:hover .cl-photo-card__actions,
.cl-photo-card:focus-within .cl-photo-card__actions { opacity: 1; }
@media (hover: none) {
    .cl-photo-card__actions { opacity: 1; }
}

.cl-photo-card__btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(0,0,0,0.5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    backdrop-filter: blur(4px);
}
.cl-photo-card__btn.is-fav,
.cl-photo-card__btn.is-fav i { color: #ff6b8a; }

/* Empty */
.cl-empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.cl-empty i { font-size: 40px; margin-bottom: 14px; opacity: 0.35; display: block; }
.cl-empty p { font-size: 14px; line-height: 1.6; }

/* Footer */
.cl-footer {
    text-align: center; padding: 20px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--border-color);
}
.cl-footer a {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-soft);
    text-decoration: none;
}
.cl-footer a:hover { color: var(--text-muted); }

/* Lightbox */
.cl-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0, 0, 0, 0.96);
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.cl-lightbox__loader {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.35);
    z-index: 2;
}
.cl-lightbox__loader .cl-spinner { width: 40px; height: 40px; border-color: rgba(255,255,255,0.2); border-top-color: #fff; }
.cl-lightbox__stage img { transition: opacity 0.3s ease; }
.cl-lightbox__stage img.is-loading { opacity: 0.3; }
.cl-lightbox__top {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px; padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.cl-lightbox__counter {
    margin-right: auto;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7);
}
.cl-lightbox__icon {
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.1);
    color: #fff; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.cl-lightbox__icon.is-fav,
.cl-lightbox__icon.is-fav i { color: #ff6b8a; }

.cl-lightbox__stage {
    grid-column: 2;
    display: flex; align-items: center; justify-content: center;
    min-height: 0; padding: 0 8px;
    touch-action: pan-y pinch-zoom;
}
.cl-lightbox__stage img {
    max-width: 100%; max-height: calc(100dvh - 140px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.cl-lightbox__nav {
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.08);
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
}
.cl-lightbox__nav--prev { grid-column: 1; }
.cl-lightbox__nav--next { grid-column: 3; }
@media (max-width: 600px) {
    .cl-lightbox__nav { width: 36px; height: 36px; font-size: 14px; opacity: 0.7; }
}

.cl-lightbox__bottom {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
}
.cl-lightbox__name {
    font-size: 12px; color: rgba(255,255,255,0.55);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
}
.cl-lightbox__download {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent; color: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer;
    flex-shrink: 0;
}
.cl-lightbox__download:hover { background: rgba(255,255,255,0.08); }

/* Toast */
.cl-toast-wrap {
    position: fixed; bottom: calc(20px + var(--safe-bottom)); left: 50%;
    transform: translateX(-50%); z-index: 4000;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.cl-toast {
    padding: 10px 18px; border-radius: 24px;
    background: var(--text-main); color: var(--bg-base);
    font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.25s ease;
    white-space: nowrap;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth extras */
.cl-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.cl-auth-card { width: 100%; max-width: 400px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-md); }
.cl-auth-card--wide { max-width: 480px; }
.cl-auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.cl-link { background: none; border: none; color: var(--text-main); font-weight: 700; cursor: pointer; text-decoration: underline; }
.cl-pin-fallback { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.cl-pin-fallback summary { cursor: pointer; font-weight: 600; }
.cl-input--code { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-weight: 800; }
.cl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-btn--text { background: none; border: none; color: var(--text-muted); font-size: 13px; margin-top: 10px; cursor: pointer; width: 100%; }
.cl-btn--ghost { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.cl-btn--danger { color: var(--danger); border-color: rgba(220,38,38,0.3); }
.cl-btn--sm { padding: 8px 14px; font-size: 12px; width: auto; }

/* App shell */
.cl-app { min-height: 100dvh; display: flex; flex-direction: column; }
.cl-app-body { flex: 1; overflow-y: auto; }
.cl-tab { max-width: 1100px; margin: 0 auto; padding: 16px; width: 100%; }
.cl-tab--album { max-width: 1200px; padding-top: 0; }
.cl-bottom-nav {
    position: sticky; bottom: 0; z-index: 200;
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    padding: 8px 6px calc(8px + var(--safe-bottom));
    min-height: calc(68px + var(--safe-bottom));
}
[data-theme="dark"] .cl-bottom-nav { background: rgba(14,14,16,0.96); }

.cl-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 6px 4px;
    border: none; border-radius: var(--radius-sm);
    background: none;
    color: var(--text-soft);
    font-size: 10px; font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s, background 0.2s;
}
.cl-nav-item i {
    font-size: 22px;
    line-height: 1;
    display: block;
}
.cl-bottom-nav .cl-nav-item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 64px;
    text-align: center;
}
.cl-nav-item:active { transform: scale(var(--tap-scale)); }
.cl-nav-item.is-active {
    color: var(--text-main);
    background: var(--primary-soft);
}

.cl-home-greet { margin-bottom: 20px; }
.cl-home-greet h1 { font-size: 26px; font-weight: 800; }
.cl-home-greet__sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.cl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cl-stat { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; text-align: center; }
.cl-stat__n { display: block; font-size: 32px; font-weight: 800; }
.cl-stat__l { font-size: 12px; color: var(--text-muted); }
.cl-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.cl-last-album__card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); cursor: pointer; text-align: left; color: inherit; margin-bottom: 20px; }
.cl-last-album__img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cl-last-album__info { flex: 1; min-width: 0; }
.cl-last-album__info strong { display: block; font-size: 14px; }
.cl-last-album__info small { color: var(--text-muted); font-size: 12px; }
.cl-quick-actions { display: flex; flex-direction: column; gap: 10px; }
.cl-quick-btn {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius-md); border: 1px solid var(--border-color);
    background: var(--bg-surface); font-size: 14px; font-weight: 600;
    cursor: pointer; color: inherit;
    transition: transform 0.15s var(--ease-out), background 0.2s, box-shadow 0.2s;
}
.cl-quick-btn:active { transform: scale(0.98); background: var(--bg-surface-hover); }
.cl-quick-btn i { width: 20px; color: var(--text-muted); }
.cl-placeholder { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.cl-placeholder i { font-size: 48px; opacity: 0.25; margin-bottom: 16px; display: block; }
.cl-placeholder h2 { font-size: 20px; color: var(--text-main); margin-bottom: 8px; }
.cl-profile-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.cl-profile-row { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.cl-profile-row:last-child { border-bottom: none; }
.cl-profile-row span { color: var(--text-muted); }
.cl-select-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; font-size: 13px; font-weight: 600; }
.cl-photo-card.is-selected { outline: 3px solid var(--text-main); outline-offset: -3px; }
.cl-photo-card__check { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; }
.cl-photo-card__check.is-on { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.cl-back--album { width: auto; margin: 0 auto 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

/* Photo requests (client) */
.cl-page-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cl-page-head--row h1 { margin: 0; }
.cl-request-list { display: flex; flex-direction: column; gap: 12px; }
.cl-request-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; }
.cl-request-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cl-request-card__meta { font-size: 13px; color: var(--text-muted); }
.cl-request-card__comment { font-size: 13px; margin-top: 8px; color: var(--text-main); line-height: 1.45; }
.cl-req-badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 20px; background: var(--primary-soft); white-space: nowrap; }
.cl-req-badge--new { background: rgba(234,179,8,0.15); color: #b45309; }
.cl-req-badge--prog { background: rgba(59,130,246,0.12); color: #2563eb; }
.cl-req-badge--uploaded { background: rgba(139,92,246,0.12); color: #7c3aed; }
.cl-req-badge--done { background: rgba(34,197,94,0.12); color: #16a34a; }
.cl-request-form-wrap { margin-top: 8px; }
.cl-request-form { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px 16px; }
.cl-request-form h2 { font-size: 18px; margin-bottom: 16px; }
.cl-field-hint { font-size: 12px; color: var(--text-soft); margin: -4px 0 8px; }
.cl-textarea { min-height: 80px; resize: vertical; }
.cl-input--file { padding: 10px; font-size: 13px; }
.cl-attach-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cl-attach-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cl-form-actions { display: flex; gap: 10px; margin-top: 8px; }
.cl-form-actions .cl-btn--primary { flex: 1; }

/* Share modal */
.cl-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cl-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.cl-modal__card { position: relative; width: min(100%, 420px); background: var(--bg-surface); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-md); }
.cl-modal__card h2 { font-size: 20px; margin-bottom: 8px; }
.cl-modal__hint { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin-bottom: 16px; }
.cl-share-field { display: flex; gap: 8px; margin-bottom: 16px; }
.cl-share-field .cl-input { flex: 1; font-size: 13px; }
.cl-share-field .cl-btn { min-width: 48px; padding: 0 14px; }

/* Notifications */
.cl-icon-btn--badge { position: relative; }
.cl-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.cl-notif-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.cl-notif-item { display: block; width: 100%; text-align: left; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; color: inherit; }
.cl-notif-item--unread { border-color: rgba(201,162,39,0.35); background: rgba(201,162,39,0.06); }
.cl-notif-item__title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cl-notif-item__body { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.cl-notif-item__time { font-size: 11px; color: var(--text-soft); margin-top: 8px; }
.cl-notif-drawer { position: fixed; inset: 0; z-index: 180; }
.cl-notif-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.cl-notif-drawer__panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 380px);
    background: var(--bg-base); box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; padding: 16px;
    animation: slideInRight 0.35s var(--ease-out);
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.cl-modal__card { animation: scaleIn 0.3s var(--ease-out); }

/* Flatpickr */
.flatpickr-calendar {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    font-family: var(--font-main) !important;
}
.flatpickr-months .flatpickr-month { color: var(--text-main); }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--text-main) !important;
    border-color: var(--text-main) !important;
}
.flatpickr-day:hover { background: var(--primary-soft) !important; }
input.flatpickr-input.cl-input { cursor: pointer; }
.cl-notif-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cl-notif-drawer__head h2 { font-size: 18px; }
.cl-notif-drawer .cl-notif-list { flex: 1; overflow: auto; }
