/* Copied from front/public/css/site.css as served on dev0.dphub.net (2026-10-18) for demo20 — do not edit; site look only. */
/*
 * front — site styles. Copied from album/public/css/album.css (the DEPO Album design: tokens,
 * fonts, animated background, header, cards, forms) so the new front and the album look the same.
 * Album rules come first and are kept in sync by hand; front additions are at the end.
 * Per-screen styles live in public/css/pages/<area>.css (View::useStyle()).
 */

/* ── fonts (copied from front/public/fonts) ─────────────────────────── */
@font-face { font-family: "Lato"; src: url("/demo20/fonts/Lato-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/demo20/fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/demo20/fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/demo20/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/demo20/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lazurski"; src: url("/demo20/fonts/LazurskiBold.woff2") format("woff2"), url("/demo20/fonts/LazurskiBold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ── tokens ──────────────────────────────────────────────────────────── */
:root {
    --bg: #18171a;            /* front body: rgba(24, 23, 26) */
    --surface: #27262b;       /* $blackColor */
    --surface-2: #2d2c31;
    --surface-3: #36353b;
    --line: rgb(255 255 255 / 0.08);
    --line-strong: rgb(255 255 255 / 0.16);
    --text: #fff;
    --muted: #a1a1aa;
    --gray: #71717a;          /* $grayColor */
    --yellow: #ffb500;        /* $yellowColor — first accent */
    --green: #469a58;         /* $greenColor — second accent */
    --primary: #469a58;       /* primary buttons: front globals.css .btn-green */
    --primary-hover: #53b167; /* .btn-green:hover */
    --on-primary: #fff;
    --spot: 83 245 126;       /* background spots (Ellipses) */
    --danger: #ef4444;
    --like: #ff4d6d;
    --radius: 10px;           /* $mainRadius */
    --radius-lg: 18px;
    --shadow: 0 2px 3px rgb(0 0 0 / 0.1), 0 8px 24px rgb(0 0 0 / 0.25);
    --trans: 280ms ease-in-out; /* $standartTrans */
    --header-h: 70px;
    --font: "Lato", "Source Sans 3", system-ui, sans-serif;
    --font-head: "Poppins", "Lato", sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0; }

[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.accent { color: var(--yellow); }
.hint { color: var(--gray); font-size: 13px; }

/* ── animated background: removed here — demo20/js/background.js draws it (see docs/demo20.md) ── */

/* ── layout ──────────────────────────────────────────────────────────── */
.app-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; padding: 24px 0 64px; }
.container { width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.container--narrow { max-width: 980px; }
.section { margin-top: 40px; }
.section--first { margin-top: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { font-size: 22px; margin-bottom: 16px; }
.section__head .section__title { margin-bottom: 0; }
.section__meta { color: var(--muted); font-size: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--yellow); font-weight: 700; margin-bottom: 12px; }
.panel {
    background: rgb(39 38 43 / 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}
.crumbs { margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); transition: color var(--trans); }
.crumbs a:hover { color: var(--text); }

/* Header, footer, toasts: css/site-chrome.css (one set of rules for every page). */

/* ── buttons & chips ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
    font: 500 15px/1 var(--font-head); cursor: pointer; white-space: nowrap;
    transition: background var(--trans), border-color var(--trans), color var(--trans), transform 120ms ease, box-shadow var(--trans);
    background: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 3px rgb(0 0 0 / 0.1), 0 8px 3px rgb(0 0 0 / 0.1); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(70 154 88 / 0.35), 0 0 0 2px var(--bg); }
.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.btn--danger { border-color: rgb(239 68 68 / 0.4); color: var(--danger); }
.btn--danger:hover { background: rgb(239 68 68 / 0.12); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--xs { height: 28px; width: 28px; padding: 0; }
.btn--icon { width: 44px; padding: 0; }
.btn--sm.btn--icon { width: 36px; }
.btn--block { width: 100%; }
.btn--like { border-color: var(--line-strong); color: var(--text); }
.btn--like.is-liked { color: var(--like); border-color: rgb(255 77 109 / 0.5); background: rgb(255 77 109 / 0.1); }
.btn--like.is-liked .icon,
.chip--like.is-liked .icon { fill: currentColor; }
.btn--like.is-pop .icon,
.chip--like.is-pop .icon { animation: pop 380ms ease; }
@keyframes pop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.chip {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
    border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; font-weight: 700;
    background: rgb(0 0 0 / 0.45); color: #fff; backdrop-filter: blur(6px);
    transition: background var(--trans), color var(--trans);
}
.chip:hover { background: rgb(0 0 0 / 0.65); }
.chip .icon { width: 15px; height: 15px; }
.chip--like.is-liked { color: var(--like); }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-weight: 700; font-size: 14px; }
.link-more .icon { width: 16px; height: 16px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: rgb(70 154 88 / 0.18); color: #7bd38f; margin-bottom: 12px;
}
.badge .icon { width: 14px; height: 14px; }
.badge--private { background: rgb(255 181 0 / 0.14); color: var(--yellow); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface-3); font-size: 13px; transition: background var(--trans); }
.tag:hover { background: #45444b; }
.tag .icon { width: 14px; height: 14px; }

/* ── avatars ─────────────────────────────────────────────────────────── */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.avatar--initials { display: inline-grid; place-items: center; font: 600 14px/1 var(--font-head); color: var(--bg); background: linear-gradient(135deg, var(--yellow), #7bd38f); }
.avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--md { width: 48px; height: 48px; }
.avatar--xl { width: 96px; height: 96px; font-size: 32px; }
.author-row strong { display: block; }
.author-row small { display: block; color: var(--muted); font-size: 13px; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(24px, 6vw, 72px); }
.hero__text { max-width: 720px; }
.hero__title { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.hero__lead { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 560px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: flex; gap: 32px; }
.stat__value { display: block; font: 600 40px/1 var(--font-head); }
.stat__label { color: var(--muted); font-size: 14px; }

/* ── masonry gallery ─────────────────────────────────────────────────── */
.masonry { column-gap: 16px; columns: 5 260px; }
.card {
    position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius);
    overflow: hidden; background: var(--surface); opacity: 0; transform: translateY(12px);
    animation: card-in 500ms ease forwards;
}
@keyframes card-in { to { opacity: 1; transform: none; } }
.card__media { display: block; background: var(--surface-2); }
.card__media img { width: 100%; height: auto; transition: transform 600ms ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__overlay {
    position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 28px 10px 10px; background: linear-gradient(to top, rgb(0 0 0 / 0.72), transparent);
    opacity: 0; transition: opacity var(--trans);
}
.card:hover .card__overlay,
.card:focus-within .card__overlay { opacity: 1; }
@media (hover: none) { .card__overlay { opacity: 1; } }
.card__author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; min-width: 0; }
.card__stats { display: flex; gap: 6px; flex: none; }
.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* ── albums ──────────────────────────────────────────────────────────── */
.album-card__empty .icon { width: 40px; height: 40px; }
.album-card__badge .icon { width: 13px; height: 13px; }


.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.profile__info { flex: 1; min-width: 200px; }
.profile__actions { display: flex; gap: 8px; }

/* ── photo page ──────────────────────────────────────────────────────── */
.photo-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .photo-page__grid { grid-template-columns: 1fr; } }
.viewer { position: relative; display: grid; place-items: center; min-height: 50vh; border-radius: var(--radius-lg); background: rgb(0 0 0 / 0.35); overflow: hidden; }
.viewer__frame { display: block; cursor: zoom-in; }
.viewer__frame img { max-height: calc(100vh - var(--header-h) - 120px); width: auto; margin: 0 auto; }
.viewer__nav {
    position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%; background: rgb(0 0 0 / 0.5); backdrop-filter: blur(6px);
    transition: background var(--trans);
}
.viewer__nav:hover { background: rgb(0 0 0 / 0.8); }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.photo-side { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.photo-side__caption { font-size: 15px; }
.photo-side__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-side__actions form { margin: 0; }
.meta-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.meta-list dt { color: var(--gray); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.meta-list dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.inline-field { display: flex; gap: 8px; }
.inline-field .input { flex: 1; }

.comments { margin-top: 24px; padding: 24px; }
.comments__list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; animation: card-in 400ms ease both; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.comment__author { font-weight: 700; }
.comment__delete { margin-left: auto; }
.comment__text { margin-top: 2px; overflow-wrap: anywhere; }
.comment-form { display: flex; align-items: flex-end; gap: 10px; }
.comment-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; }

/* ── forms ───────────────────────────────────────────────────────────── */
.form { padding: 28px; display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__grid, .form__row { grid-template-columns: 1fr; } }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 700; font-size: 14px; color: #e4e4e7; }
.label .muted { font-weight: 400; }
.input {
    width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius);
    background: rgb(24 23 26 / 0.7); border: 1px solid var(--line-strong); color: var(--text);
    transition: border-color var(--trans), box-shadow var(--trans);
}
.input::placeholder { color: var(--gray); }
.input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(255 181 0 / 0.18); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { resize: vertical; }
.has-error .input { border-color: var(--danger); }
.field__error { color: #fca5a5; font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.check.has-error span { color: #fca5a5; }
.password { position: relative; }
.password .input { padding-right: 44px; }
.password__toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.alert--error { background: rgb(239 68 68 / 0.12); color: #fca5a5; border: 1px solid rgb(239 68 68 / 0.3); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented__item { cursor: pointer; }
.segmented__item > span {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); transition: border-color var(--trans), background var(--trans);
}
.segmented__item .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); }
.segmented__item small { color: var(--muted); font-size: 13px; }
.segmented__item input:checked + span { border-color: var(--yellow); background: rgb(255 181 0 / 0.08); }
.segmented__item input:checked + span .icon { color: var(--yellow); }

.picker__group { font-size: 15px; margin: 12px 0 10px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 460px; overflow: auto; padding: 2px; }
.picker__item { position: relative; border-radius: var(--radius); overflow: hidden; }
.picker__photo { display: block; aspect-ratio: 1; cursor: pointer; }
.picker__photo input { position: absolute; opacity: 0; }
.picker__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans), opacity var(--trans); opacity: 0.75; }
.picker__check {
    position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid #fff; background: rgb(0 0 0 / 0.3); color: transparent; transition: background var(--trans), color var(--trans);
}
.picker__check .icon { width: 14px; height: 14px; }
.picker__item.is-selected .picker__photo img { opacity: 1; transform: scale(0.92); }
.picker__item.is-selected { outline: 2px solid var(--yellow); outline-offset: -2px; }
.picker__cover { position: absolute; right: 6px; bottom: 6px; cursor: pointer; }
.picker__cover input { position: absolute; opacity: 0; }
.picker__cover span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(0 0 0 / 0.5); color: var(--gray); font-size: 14px; transition: color var(--trans), background var(--trans); }
.picker__cover input:checked + span { color: #18171a; background: var(--yellow); }
.picker__item:not(.is-selected) .picker__cover { display: none; }

.danger-zone { margin-top: 24px; display: flex; justify-content: flex-end; }

/* ── upload ──────────────────────────────────────────────────────────── */
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 48px 20px; border-radius: var(--radius-lg); border: 2px dashed var(--line-strong); cursor: pointer;
    transition: border-color var(--trans), background var(--trans);
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:hover,
.dropzone.is-over { border-color: var(--yellow); background: rgb(255 181 0 / 0.05); }
.dropzone__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 181 0 / 0.12); color: var(--yellow); margin-bottom: 8px; }
.dropzone__icon .icon { width: 28px; height: 28px; }
.upload-queue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.upload-queue:empty { display: none; }
.upload-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 3px; background: rgb(0 0 0 / 0.5); overflow: hidden; }
.upload-item__bar span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 200ms ease; }
.upload-item__state { position: absolute; top: 8px; left: 8px; right: 8px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.55); width: fit-content; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item.is-done .upload-item__bar span { background: #7bd38f; }
.upload-item.is-error .upload-item__bar span { background: var(--danger); width: 100% !important; }
.upload-item.is-error .upload-item__state { color: #fca5a5; white-space: normal; }
.upload-item__remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 0.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.upload-item__remove .icon { width: 14px; height: 14px; }

/* ── auth ────────────────────────────────────────────────────────────── */
.auth { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 16px; animation: card-in 500ms ease both; }
.auth__card--wide { max-width: 640px; }
.auth__title { font-size: 28px; }
.auth__switch { text-align: center; font-size: 14px; }

/* ── misc ────────────────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty .icon { width: 36px; height: 36px; color: var(--gray); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination__item { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); }
.pagination__item.is-muted { opacity: 0.4; }
.error-page { text-align: center; padding-top: 10vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error-page__code { font: 600 clamp(80px, 14vw, 160px)/1 var(--font-head); background: linear-gradient(135deg, var(--yellow), rgb(var(--spot))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── album owner tools, sharing, admin ───────────────────────────────── */
.card--manage .card__overlay { opacity: 1; }
.card__select span .icon { width: 15px; height: 15px; }
.card.is-selected { outline: 3px solid var(--yellow); outline-offset: -3px; }
.card__tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.card__tools form { margin: 0; }
.chip.is-cover { background: var(--yellow); color: #18171a; }
.chip--danger:hover { background: var(--danger); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge--muted { background: var(--surface-3); color: var(--muted); }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form--inline .field { flex: 1; min-width: 180px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: 0; }
.danger-zone { flex-direction: column; align-items: flex-end; gap: 8px; }
.card picture { display: block; }

/* ── hero (home + album main photo), rails — after the client's reference design ─ */
.has-hero .main { padding-top: 0; }
.hero {
    position: relative; display: flex; align-items: center; min-height: 620px; height: 74vh; max-height: 880px;
    margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 40px) 0 110px;
    background: var(--surface) center 36% / cover no-repeat;
    /* Fade the photo into the page (and the animated background) instead of a hard edge. */
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(9 11 12 / 0.94) 0%, rgb(9 11 12 / 0.6) 40%, transparent 80%), linear-gradient(0deg, var(--bg), transparent 42%);
}
.hero__inner { position: relative; }
.hero__inner > * { max-width: 640px; }
.eyebrow.eyebrow { font-size: 11px; letter-spacing: 0.25em; color: var(--yellow); text-transform: uppercase; margin: 0; }
.hero__title { font: 600 clamp(42px, 6vw, 84px)/1.02 var(--font-head); letter-spacing: -0.03em; margin: 18px 0 16px; text-wrap: balance; }
.hero__text { font-size: 18px; color: #dcdcdc; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__credit { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero__credit:hover { color: var(--text); }
.hero__back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); margin-bottom: 18px; }
.hero__back:hover { color: var(--text); }
.hero__author { margin-top: 18px; }
.hero__hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero--album { min-height: 520px; height: 64vh; }
.hero--album .hero__title { font-size: clamp(36px, 5vw, 68px); }
.btn--glass { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.28); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgb(255 255 255 / 0.24); }
.album-body { position: relative; margin-top: -48px; }
@media (max-width: 700px) {
    .hero { align-items: flex-end; height: 70vh; min-height: 520px; padding-bottom: 96px; background-position: 60% center; }
    .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgb(11 13 14 / 0.86) 22%, transparent 85%), linear-gradient(90deg, rgb(0 0 0 / 0.5), transparent); }
    .hero__text { font-size: 15px; }
}

.home-rails { position: relative; margin-top: -72px; }
.rail-section { margin-bottom: 40px; }
.rail-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rail-section__title { font-size: 23px; letter-spacing: -0.01em; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile {
    position: relative; flex: 0 0 260px; height: 170px; border-radius: var(--radius); overflow: hidden;
    background: var(--surface-2); scroll-snap-align: start; display: block;
}
.tile--portrait { flex-basis: 190px; height: 260px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.85)); }
.tile__info { position: absolute; z-index: 1; left: 13px; right: 12px; bottom: 11px; }
.tile__info strong { display: block; font: 600 15px/1.25 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__info small { color: #d2d2d2; font-size: 12px; }
.tile__badge { position: absolute; z-index: 1; top: 10px; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / 0.55); color: var(--yellow); }
.tile__badge .icon { width: 14px; height: 14px; }
.tile--new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line-strong); background: transparent; color: var(--muted); }
.tile--new::after { display: none; }
.tile--new .icon { width: 28px; height: 28px; }
.photographer { flex: 0 0 156px; text-align: center; scroll-snap-align: start; }
.photographer__link { display: block; }
.photographer__ring { display: inline-block; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), rgb(var(--spot))); }
.photographer__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg); font-size: 28px; }
.photographer strong { display: block; margin-top: 8px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photographer small { display: block; color: var(--muted); font-size: 12px; }
.photographer form { margin: 8px 0 0; }
.follow {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
    background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2); color: #fff; font-size: 13px; font-weight: 700;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.follow .icon { width: 14px; height: 14px; }
.follow:hover { border-color: var(--like); }
.follow.is-liked { background: rgb(255 77 109 / 0.15); color: var(--like); border-color: rgb(255 77 109 / 0.5); }
.follow.is-liked .icon { fill: currentColor; }
.follow--static { cursor: default; margin-top: 8px; }
.home-more { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.admin-hero-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); }
.field--narrow { flex: 0 0 110px !important; min-width: 0 !important; }
@media (max-width: 700px) {
    .home-rails { margin-top: -60px; }
    .tile { flex-basis: 200px; height: 140px; }
    .tile--portrait { flex-basis: 140px; height: 200px; }
    .photographer { flex-basis: 118px; }
    .photographer__img { width: 76px; height: 76px; }
}

/* ── info pages (legal from backend content pages, FAQ, contact) ───── */
.legal__head { margin: 8px 0 24px; }
.legal__head .mk-status { display: inline-flex; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.legal__layout { display: grid; gap: 24px; }
.legal__layout.has-nav { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
@media (max-width: 991px) { .legal__layout.has-nav { grid-template-columns: 1fr; } }
.legal__nav { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.legal__nav ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.legal__nav a:hover { color: var(--yellow); }
.legal__body { padding: clamp(20px, 4vw, 40px); max-width: 920px; line-height: 1.7; color: #dadada; }
.legal__section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__section + .legal__section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal__section h2 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.legal__section h3, .legal__section h4 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }
.legal__section p { margin: 0 0 12px; }
.legal__section ul, .legal__section ol { margin: 0 0 12px; padding-left: 22px; }
.legal__section li > p { margin-bottom: 4px; }
.legal__section a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }

.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 600 16px/1.4 var(--font-head); list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron { transition: transform var(--trans); color: var(--yellow); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 20px; color: #dadada; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; transition: border-color var(--trans), transform var(--trans); }
.contact-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.contact-card .icon { width: 26px; height: 26px; color: var(--yellow); margin-bottom: 6px; }
.contact-company { padding: 24px; line-height: 1.8; color: #dadada; }

/* ── lightbox ────────────────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr auto;
    background: rgb(12 12 14 / 0.94); backdrop-filter: blur(8px); opacity: 0; transition: opacity 220ms ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__top,
.lightbox__bottom { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.lightbox__top { justify-content: space-between; }
.lightbox__meta small { color: var(--muted); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; transition: opacity 200ms ease; }
.lightbox__stage img.is-loading { opacity: 0.25; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgb(255 255 255 / 0.18); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__bottom { justify-content: center; }
.lightbox__counter { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
    .lightbox__stage { padding: 0 8px; }
    .lightbox__nav { bottom: 12px; top: auto; translate: none; }
}
body.has-lightbox { overflow: hidden; }


/* ═══ front additions ═══════════════════════════════════════════════ */

/* Dropdowns, user menu, header menus (notifications, messages, magazines, search results), modals,
   list rows, inline forms: at the end of this file. Header bar: header.css; footer, toasts: site-chrome.css. */

/* tabs (links) */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs__item { padding: 8px 16px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); transition: color var(--trans), background var(--trans); }
.tabs__item:hover { color: var(--text); }
.tabs__item.is-active { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }

/* prose (legal, blog, marketing texts coming as HTML from the API) */
.prose { line-height: 1.7; color: #e4e4e7; }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose a { color: var(--yellow); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1em 0; }

button.is-loading { opacity: 0.7; cursor: progress; }


/* Pricing cards (Billing tab plans popup, sign-up step three): same look as the old front (front/hooks/components/PublishersModal.module.scss
   .card / .premiumCard / .cardStyle*) and the admin plan preview (admin/public/css/admin.css
   .pp-*). Card style, border color and ribbon come from the plan (admin → Subscriptions). */
.account-plans__cards { padding-top: 14px; }
.account-plan-card {
  position: relative; display: flex; flex-direction: column; padding: 25px 35px; border-radius: 20px; color: #fff;
  background: rgba(54, 56, 63, 0.5); border: 1px solid rgba(77, 77, 77, 1); backdrop-filter: blur(15px);
}
.account-plan-card.is-style-premium {
  border: 6px solid transparent; color: rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)) padding-box,
    conic-gradient(from 42.63deg at 55.6% 35.31%, #469a58 0deg, #459757 10.62deg, #365e41 79.62deg, #29302f 133.31deg,
      #282b2d 144.58deg, #5b4c22 167.04deg, #c38e0d 238.07deg, #ffb500 310.14deg, #469a58 360deg) border-box;
}
.account-plan-card.is-style-gold { border: 3px solid rgba(255, 181, 0, 1); box-shadow: 0 0 28px rgba(255, 181, 0, 0.35); }
.account-plan-card.is-style-emerald { border: 3px solid #469a58; box-shadow: 0 0 28px rgba(70, 154, 88, 0.35); }
.account-plan-card.is-style-minimal { background: transparent; backdrop-filter: none; border: 1px solid rgba(255, 255, 255, 0.35); }
.account-plan-card.has-custom-border { border-color: var(--plan-border-color) !important; }
.account-plan-card.is-style-premium.has-custom-border {
  border-color: transparent !important;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)) padding-box,
    linear-gradient(var(--plan-border-color), var(--plan-border-color)) border-box;
}
.account-plan-card__badge {
  position: absolute; top: -15px; right: -20px; z-index: 1; padding: 5px 15px; border-radius: 50px;
  background: rgba(255, 181, 0, 1); color: #fff; font-size: 18px; font-weight: 700; transform: rotate(35deg); white-space: nowrap;
}
.account-plan-card__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 30px; line-height: 130%; font-weight: 300; color: #fff; }
.account-plan-card__title.is-gradient {
  font-weight: 700; letter-spacing: -2px;
  background: conic-gradient(from 206.05deg at 39.46% -8.33%, #469a58 0deg, #459757 10.62deg, #365e41 79.62deg, #29302f 133.31deg,
    #282b2d 144.58deg, #5b4c22 167.04deg, #c38e0d 238.07deg, #ffb500 310.14deg, #469a58 360deg);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.account-plan-card__subtitle { margin: -5px 0 10px; font-size: 16px; line-height: 130%; color: rgba(255, 255, 255, 0.7); }
.account-plan-card__features { flex: 1; list-style: none; margin: 0 0 20px; padding: 0; }
.account-plan-card__features li { position: relative; margin-bottom: 5px; padding-left: 30px; font-size: 14px; line-height: 130%; color: rgba(255, 255, 255, 0.8); }
.account-plan-card__features li::before { content: "\2713"; position: absolute; left: 4px; top: 0; color: rgba(255, 255, 255, 0.85); }
.account-plan-card__features strong { font-weight: 900; color: #fff; }
.account-plan-card__footer { margin-top: auto; }
.account-plan-card__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-plan-card__price p { margin: 0; font-size: 34px; line-height: 130%; color: #fff; }
.account-plan-card__price .account-plan-card__old { font-size: 24px; font-weight: 700; color: #888; text-decoration: line-through; }
.account-plan-card__billed { margin: 5px 0 0; font-size: 16px; color: rgba(217, 217, 217, 1); }
.account-plan-card__save {
  display: inline-block; margin: 8px 0 0; padding: 5px 15px; border-radius: 50px; font-size: 14px;
  color: rgba(255, 181, 0, 1); border: 1px solid rgba(255, 181, 0, 1);
}
.account-plan-card form { margin: 16px 0 0; }
.account-plan-card__button {
  display: block; width: 100%; padding: 10px; border: 0; border-radius: 50px; cursor: pointer; text-align: center;
  background: rgba(63, 127, 78, 1); color: #fff; font: inherit; font-size: 24px; line-height: 130%; transition: filter .15s;
}
.account-plan-card__button:hover:not(:disabled) { filter: brightness(1.12); }
.account-plan-card__button.is-free { background: rgba(148, 148, 148, 0.4); }
.account-plan-card__button:disabled { cursor: default; opacity: .6; }
.account-plan-card .hint { margin: 10px 0 0; }
@media (max-width: 700px) {
  .account-plan-card { padding: 22px 22px; }
  .account-plan-card__price p { font-size: 28px; }
  .account-plan-card__button { font-size: 20px; }
  .account-plan-card__badge { right: -6px; font-size: 15px; }
}

/* Turbo Drive pilot (docs/front/turbo.md): page-load bar of a Turbo visit, in the site green. */
.turbo-progress-bar { height: 3px; background: var(--primary); box-shadow: 0 0 8px rgb(70 154 88 / 0.6); }

/* Page banner (partials/page_banner.php): one block on every page that has one — edge to edge as
   the first thing in <main>, right under the header, 8:3 (the banner images) up to 480px high.
   Before Swiper starts, and with one slide, only the first slide shows. */
.page-banner { position: relative; width: 100%; aspect-ratio: 8 / 3; max-height: 480px; margin: 0 0 24px; overflow: hidden; background: var(--surface-2); }
.main > .page-banner:first-child { margin-top: -24px; }
.page-banner__swiper, .page-banner .swiper-wrapper, .page-banner .swiper-slide { height: 100%; }
.page-banner .swiper-wrapper { display: flex; }
.page-banner .swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.page-banner__slide { display: block; height: 100%; user-select: none; }
/* Legacy pages (connect): their .page top padding made room for the old fixed header, and the
   empty panels block spaced the old banner; under the banner they only push the content away. */
.page-banner + .page, .page-banner-frame + .page { padding-top: 0 !important; }
/* Banner width "content" (admin: Banners → Width on the site): inside .container, aligned with the
   page content, below the header with the normal <main> top padding, rounded like the cards. */
.page-banner-frame { margin-bottom: 24px; }
.page-banner--content { margin: 0; border-radius: var(--radius); }
.page-banner + .page .Publish_pagePublish__panels { margin-bottom: 0; }

/* ── marketing, legal and blog: shared blocks (.mk-; pages/marketing.css, pages/blog.css) ── */
.mk-center { text-align: center; }
.mk-center-row { justify-content: center; }
.mk-lead { font-size: 18px; line-height: 1.6; color: #e4e4e7; }
.mk-green { color: var(--green); }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #dadada; }
.mk-banner { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.mk-text { padding: clamp(20px, 4vw, 40px); line-height: 1.7; color: #dadada; }
.mk-text p { margin: 0 0 12px; }
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.mk-crumbs a:hover { color: var(--yellow); }
.mk-crumbs [aria-current] { color: var(--text); }
.mk-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mk-legal-links a:hover { color: var(--yellow); }
.mk-legal-links .is-active { color: var(--yellow); }
.mk-plain h2 { font-size: 18px; margin: 24px 0 8px; color: var(--text); }
.mk-plain h2:first-child { margin-top: 0; }
.mk-tiptap table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.mk-tiptap th, .mk-tiptap td { border: 1px solid var(--line-strong); padding: 8px 10px; vertical-align: top; }
.mk-tiptap li[data-type="taskItem"] { list-style: none; display: flex; gap: 8px; }
.mk-tiptap blockquote { margin: 0 0 12px; padding-left: 16px; border-left: 3px solid var(--yellow); }

.mk-hero { text-align: center; max-width: 860px; margin: 32px auto 0; }
.mk-hero .hero__lead { margin-left: auto; margin-right: auto; max-width: 720px; }
.mk-hero .hero__actions { justify-content: center; }
.mk-hero__sub { font-size: 16px; letter-spacing: 0.14em; color: var(--yellow); margin-top: 12px; }

.mk-cta { padding: clamp(24px, 5vw, 56px); text-align: center; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-cta .hero__actions { justify-content: center; margin-top: 8px; }

/* ═══ dropdowns, user menu, modals, cookie dialog, list rows (formerly site-header.css) ═══ */
/* dropdown menu (user menu): [data-dropdown-toggle=name] opens [data-dropdown=name] */
.dropdown { position: relative; }
.dropdown__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; padding: 8px;
    background: rgb(39 38 43 / 0.92); border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.dropdown__item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
    background: none; color: var(--muted); text-align: left; cursor: pointer; font-size: 14px;
    transition: color var(--trans), background var(--trans);
}
.dropdown__item:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.dropdown__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.dropdown__head { padding: 8px 12px 10px; }
.dropdown__head strong { display: block; font-size: 14px; }
.dropdown__head span { font-size: 12px; color: var(--gray); }

@media (max-width: 1199px) {
    .dropdown__panel { position: static; margin-top: 8px; background: transparent; border: 0; box-shadow: none; padding: 0; }
}

/* header user menu (front/public/styles/Header.module.scss .dropdown / .userMenu) */
.user-menu.dropdown__panel {
    top: calc(100% + 16px); width: 330px; max-width: calc(100vw - 32px); padding: 35px;
    max-height: calc(100vh - var(--header-h, 70px) - 24px); overflow-y: auto; overscroll-behavior: contain;
    /* Next.js uses 0.7 over its dark pages; over photos that reads washed out, so (nearly) solid here. */
    background: rgb(54 56 63 / 0.97); border: 0; border-radius: 20px; color: #fff; font-size: 16px; line-height: 1.3;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.user-menu a, .user-menu .link-button { color: #fff; }
.user-menu__header { position: relative; display: flex; flex-direction: column; min-height: 46px; margin-bottom: 20px; padding: 5.5px 0 0 62px; }
.user-menu__photo { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.user-menu__photo .avatar { width: 46px; height: 46px; }
.user-menu__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.user-menu__badge { width: auto; height: 22px; max-width: 82px; object-fit: contain; }
.user-menu__name { font-weight: 600; overflow-wrap: anywhere; }
.user-menu__email { color: #71717a; font-size: 10px; overflow-wrap: anywhere; }
.user-menu__box { display: flex; flex-direction: column; gap: 18px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #d9d9d9; }
.user-menu__box-title-row { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.user-menu__box-title { font-weight: 600; text-transform: uppercase; overflow-wrap: anywhere; }
.user-menu__box-badge { width: auto; height: 15px; flex: none; }
.user-menu__list, .user-menu__links { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.user-menu__list a, .user-menu__list .link-button { display: flex; align-items: center; gap: 16px; }
.user-menu__list .link-button { font: inherit; line-height: inherit; text-align: left; color: inherit; }
.user-menu__list .link-button:hover span { text-decoration: underline; }
.user-menu__list .link-button:focus-visible { outline: 2px solid #469a58; outline-offset: 2px; border-radius: 4px; }
.user-menu__list .link-button[aria-disabled="true"] { opacity: .6; cursor: default; }
.user-menu__list .link-button[aria-disabled="true"]:hover span { text-decoration: none; }
.user-menu__list .icon { width: 20px; height: 20px; stroke-width: 1.5; }
/* Notification switches (header.php): text, then an on / off track at the row end. */
.user-menu__list .user-menu__switch-row { width: 100%; }
.user-menu__switch-row > span { flex: 1 1 auto; min-width: 0; }
.user-menu__switch { position: relative; flex: none; width: 32px; height: 18px; border-radius: 9px; background: #c9c9c9; transition: background-color .2s ease; }
.user-menu__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.user-menu__switch-row[aria-pressed="true"] .user-menu__switch { background: #469a58; }
.user-menu__switch-row[aria-pressed="true"] .user-menu__switch::after { transform: translateX(14px); }
@media (prefers-reduced-motion: reduce) { .user-menu__switch, .user-menu__switch::after { transition: none; } }
.user-menu__list a:hover span, .user-menu__links a:hover, .user-menu__links .link-button:hover { text-decoration: underline; }
.user-menu__list a:focus-visible, .user-menu__links a:focus-visible, .user-menu__links .link-button:focus-visible, .user-menu__header:focus-visible { outline: 2px solid #469a58; outline-offset: 2px; border-radius: 4px; }
.user-menu__links .link-button { font: inherit; line-height: 1.3; text-align: left; }
@media (max-width: 1199px) {
    .user-menu-wrap { flex-basis: 100%; }
    .user-menu.dropdown__panel { width: 100%; max-width: none; max-height: none; margin-top: 8px; padding: 20px 15px; background: rgb(54 56 63 / 0.7); border-radius: 20px; }
}

/* modal: [data-modal=name], closed by [data-modal-close], Esc or overlay click */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.6); }
.modal__card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; }
.modal__title { font-size: 20px; margin-bottom: 12px; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

/* cookie consent dialog (partials/cookie_consent.php, public/js/analytics.js): above every other layer */
.cookie-consent { z-index: 90; }
.cookie-consent__card { width: min(640px, 100%); text-align: center; }
.cookie-consent__logo { display: block; width: 120px; height: auto; margin: 0 auto 12px; }
.cookie-consent__title { color: var(--primary); }
.cookie-consent__text { font-size: 14px; line-height: 1.5; }
.cookie-consent__actions { justify-content: center; }
.cookie-consent__actions .btn { min-width: 150px; }

/* generic list rows (notifications, chats, settings lists) */
.list { display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background var(--trans); }
.list__item:last-child { border-bottom: 0; }
a.list__item:hover { background: rgb(255 255 255 / 0.03); }
.list__item.is-unread { background: rgb(255 181 0 / 0.05); }
.list__body { flex: 1; min-width: 0; }
.list__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__text { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__meta { color: var(--gray); font-size: 12px; white-space: nowrap; }

.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* ═══ header menus: notifications / messages / magazines panels, search results (formerly header-menus.css) ═══ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.header__icon.link-button { width: 40px; height: 40px; border-radius: 999px; color: var(--muted); }
.header__icon.link-button:hover { color: var(--text); background: rgb(255 255 255 / 0.08); }

.header-menu { width: min(380px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.header-menu__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.header-menu__filter { min-height: 32px; width: auto; max-width: 150px; padding: 4px 32px 4px 10px; font-size: 13px; }
.header-menu__list { max-height: min(60vh, 460px); overflow-y: auto; }
.header-menu__list .list__item { padding: 10px 16px; gap: 10px; }
.header-menu__list .list__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
.header-menu__empty { padding: 18px 16px; margin: 0; text-align: center; font-size: 14px; }
.header-menu__all { display: block; width: 100%; padding: 10px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 700; }
.header-menu__all:hover { color: var(--yellow); }
.header-menu .notification { cursor: pointer; }
.header-menu .notification__meta { display: flex; align-items: center; gap: 8px; flex: none; }
.header-menu .notification__dot { width: 10px; height: 10px; border-radius: 50%; background: #6c6b70; }
.header-menu .notification__dot.is-unread { background: var(--yellow); }
.header-menu .notification__online { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.header-menu .notification__online.is-online { background: var(--green); }

.search-modal__field { position: relative; display: block; }
.search-modal__field > .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-modal__field .input { padding-left: 40px; }
.search-modal__results { margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.search-modal__list { list-style: none; margin: 0; padding: 0; }
.search-modal__list .list__item { padding: 10px 6px; gap: 10px; }
.search-modal__empty { margin: 8px 0; text-align: center; font-size: 14px; }

.magazine-switch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.magazine-switch__item { display: block; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color var(--trans), color var(--trans); }
.magazine-switch__create { color: var(--muted); border-style: dashed; }

@media (max-width: 1199px) {
    .header-menu { width: 100%; }
}
/* Content pages in the header search results (kind "page"). */
.search-modal__page-icon { display: inline-grid; place-items: center; flex: none; background: var(--surface-3); color: var(--green); }
.search-modal__page-icon .icon { width: 14px; height: 14px; }

/* Results: start right at the bottom edge of the header, under the field (header-menus.js places them). */
.header-search__results {
    position: fixed; z-index: 60; max-height: min(65vh, 520px); margin: 0; padding: 6px 8px 8px; overflow-y: auto;
    border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 14px 14px;
    background: rgb(24 23 26 / 0.98); box-shadow: 0 16px 32px rgb(0 0 0 / 0.45); backdrop-filter: blur(10px);
    animation: header-search-drop .22s ease both;
}
.header-search__results[hidden] { display: none; }
.header-search__results .list__item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.header-search__results .list__item:hover, .header-search__results .list__item:focus-visible { background: rgb(255 255 255 / 0.06); }
.header-search__results .list__item .avatar { width: 32px; height: 32px; flex: none; }
.header-search__results .list__title { font-size: 14px; font-weight: 600; line-height: 1.25; }
.header-search__results .list__text { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
@keyframes header-search-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .header-search__results { animation: none; }
}

/* ═══ shared declarations: identical rules of several areas merged into one (2026-10-17) ═══ */
:focus-visible,
.segmented__item input:focus-visible + span,
.picker__photo input:focus-visible ~ .picker__check,
.account-plan-card__button:focus-visible,
.card__select input:focus-visible + span,
.sign-up__chip input:focus-visible + span,
.plans__cycle-item input:focus-visible + span,
.plans__card input:focus-visible + .plans__body,
.dash__color input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.btn--outline:hover,
.tile--new:hover,
.magazine-switch__item:hover,
.add-media:hover,
.mk-awards__reward-card--gold { border-color: var(--yellow); color: var(--yellow); }
.author-row,
.account-referrals__link,
.account-credit-card__lead,
.send-material__type { display: flex; align-items: center; gap: 12px; }
.card__author span,
.lightbox__meta strong,
.mag-team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-to-album,
.account-photo-row__media,
.mag-team__list { display: flex; flex-direction: column; gap: 8px; }
.segmented__item input,
.sign-up__chip input,
.plans__cycle-item input,
.plans__card input,
.dash__color input,
.mk-mode input { position: absolute; opacity: 0; pointer-events: none; }
.picker__item.is-selected .picker__check,
.pagination__item.is-active,
.card__select input:checked + span { background: var(--yellow); border-color: var(--yellow); color: #18171a; }
.tile__empty,
.album-card__empty,
.person-card__empty { display: grid; place-items: center; height: 100%; color: var(--gray); }
.lightbox__meta,
.header-search__results .list__body,
.send-material__file-copy { display: flex; flex-direction: column; min-width: 0; }
.page-banner__slide img,
.page-banner__slide video,
.mag-cover-photos__item img,
.attach-row__tile img,
.attach-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-switches,
.sign-up__group,
.sign-up__agree,
.mail-side__description,
.mag-calls__item,
.mag-team,
.mag-cover-layout { display: flex; flex-direction: column; gap: 10px; }
.account-billing,
.account-photo-row__data,
.dash__label-form,
.mag-plan-list { display: flex; flex-direction: column; gap: 16px; }
.account-photo-rows,
.dash-stats,
.mag-form { display: flex; flex-direction: column; gap: 20px; }
.account-tile__fav:focus-visible,
.gallery-card__like:focus-visible,
.gallery-card__fav:focus-visible { outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }
.mail-theme__left,
.mag-type__title,
.mag-price { display: flex; align-items: center; gap: 10px; }

/* ── payment method choice (templates/partials/payment_method.php, docs/front/payments.md) ── */
.pay-method { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; text-align: left; }
.pay-method__title { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.pay-method__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.pay-method__option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pay-method__option:hover { border-color: var(--muted); }
.pay-method__option:has(input:checked) { border-color: var(--green); background: rgba(70, 154, 88, .1); }
.pay-method__option input { margin: 3px 0 0; accent-color: var(--green); flex: none; }
.pay-method__option:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.pay-method__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-method__name { font-weight: 600; }
.pay-method__hint { font-size: 12px; color: var(--muted); }
.pay-method__remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pay-method__remember input { accent-color: var(--green); }

/* Live like from someone else (site.js "live likes", docs/front/realtime.md): the heart glows and
   grows a little, the count grows and settles back. Transforms only, so nothing around moves. */
/* A card overlay shown only on hover stays visible while its heart pulses. */
.card__overlay:has(.is-live-pulse) { opacity: 1; }
.is-live-pulse :is(svg, img, .icon) { animation: live-heart 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-live-pulse :is([data-like-count], [data-comment-like-label]) {
    display: inline-block; animation: live-count 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes live-heart {
    0% { transform: scale(1); filter: none; }
    30% { transform: scale(1.25); color: var(--like); fill: var(--like); filter: drop-shadow(0 0 6px rgb(255 77 109 / 0.9)) drop-shadow(0 0 12px rgb(255 77 109 / 0.5)); }
    100% { transform: scale(1); filter: none; }
}
@keyframes live-count {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .is-live-pulse :is(svg, img, .icon),
    .is-live-pulse :is([data-like-count], [data-comment-like-label]) { animation: none; }
}
