/*
 * 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("/demo52/fonts/Lato-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/demo52/fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/demo52/fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/demo52/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/demo52/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lazurski"; src: url("/demo52/fonts/LazurskiBold.woff2") format("woff2"), url("/demo52/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; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

[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 (port of front Ellipses) ───────────────────── */
@property --a-x { syntax: "<percentage>"; inherits: false; initial-value: 72%; }
@property --a-y { syntax: "<percentage>"; inherits: false; initial-value: 24%; }
@property --b-x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --b-y { syntax: "<percentage>"; inherits: false; initial-value: 76%; }
@property --a-alpha { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --b-alpha { syntax: "<number>"; inherits: false; initial-value: 0; }

.ellipses {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    --a-x: 72%;
    --a-y: 24%;
    --b-x: 20%;
    --b-y: 76%;
    --a-alpha: 0;
    --b-alpha: 0;
    background-image:
        radial-gradient(circle 42vmax at var(--a-x) var(--a-y),
            rgb(var(--spot) / var(--a-alpha)) 0%,
            rgb(var(--spot) / calc(var(--a-alpha) * 0.78)) 18%,
            rgb(var(--spot) / calc(var(--a-alpha) * 0.45)) 40%,
            rgb(var(--spot) / calc(var(--a-alpha) * 0.18)) 62%,
            rgb(var(--spot) / calc(var(--a-alpha) * 0.05)) 82%,
            transparent 100%),
        radial-gradient(circle 42vmax at var(--b-x) var(--b-y),
            rgb(var(--spot) / var(--b-alpha)) 0%,
            rgb(var(--spot) / calc(var(--b-alpha) * 0.78)) 18%,
            rgb(var(--spot) / calc(var(--b-alpha) * 0.45)) 40%,
            rgb(var(--spot) / calc(var(--b-alpha) * 0.18)) 62%,
            rgb(var(--spot) / calc(var(--b-alpha) * 0.05)) 82%,
            transparent 100%);
    animation:
        fade-relocate-a 16s linear -4.8s infinite,
        fade-relocate-b 16s linear -8.8s infinite;
}

@keyframes fade-relocate-a {
    0%, 100% { --a-alpha: 0; }
    3% { --a-alpha: 0.15; }
    16% { --a-alpha: 0.24; }
    30% { --a-alpha: 0.34; }
    50% { --a-alpha: 0.27; }
    68% { --a-alpha: 0.2; }
    82% { --a-alpha: 0.16; }
    96% { --a-alpha: 0; }
}

@keyframes fade-relocate-b {
    0%, 100% { --b-alpha: 0; }
    3% { --b-alpha: 0.14; }
    16% { --b-alpha: 0.25; }
    30% { --b-alpha: 0.38; }
    50% { --b-alpha: 0.3; }
    68% { --b-alpha: 0.21; }
    82% { --b-alpha: 0.16; }
    96% { --b-alpha: 0; }
}

/* Like depo.place, the background keeps animating even with "reduce motion" (slow fades only). */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ── 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--outline:hover { border-color: var(--yellow); color: var(--yellow); }
.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 { display: flex; align-items: center; gap: 12px; }
.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__author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__stats { display: flex; gap: 6px; flex: none; }
.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* ── albums ──────────────────────────────────────────────────────────── */
.albums-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 20px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.albums-row > * { scroll-snap-align: start; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.album-card { position: relative; display: block; padding-top: 10px; }
.album-card__stack,
.album-card__stack::before {
    position: absolute; left: 8%; right: 8%; top: 0; height: 30px; border-radius: var(--radius); background: var(--surface-3);
    transition: transform var(--trans);
}
.album-card__stack::before { content: ""; left: 6%; right: 6%; top: 5px; background: #45444b; }
.album-card__cover { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.album-card:hover .album-card__cover img { transform: scale(1.05); }
.album-card:hover .album-card__stack { transform: translateY(-4px); }
.album-card__empty { display: grid; place-items: center; height: 100%; color: var(--gray); }
.album-card__empty .icon { width: 40px; height: 40px; }
.album-card__badge {
    position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px);
}
.album-card__badge .icon { width: 13px; height: 13px; }
.album-card__badge.is-private { color: var(--yellow); }
.album-card__body { display: block; padding: 12px 2px 0; }
.album-card__title { display: block; font: 600 16px/1.3 var(--font-head); }
.album-card__meta { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.album-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 28px; margin-bottom: 24px; }
.album-head__info { max-width: 720px; }
.album-head__desc { color: var(--muted); margin: 4px 0 16px; }
.album-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.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; }
.add-to-album { display: flex; flex-direction: column; gap: 8px; }
.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 input { position: absolute; opacity: 0; pointer-events: none; }
.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); }
.segmented__item input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.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__item.is-selected .picker__check { background: var(--yellow); border-color: var(--yellow); color: #18171a; }
.picker__photo input:focus-visible ~ .picker__check { 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-active { background: var(--yellow); color: #18171a; border-color: var(--yellow); }
.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 { position: absolute; top: 10px; left: 10px; z-index: 3; cursor: pointer; }
.card__select input { position: absolute; opacity: 0; }
.card__select span {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid #fff; background: rgb(0 0 0 / 0.35); color: transparent; transition: background var(--trans), color var(--trans);
}
.card__select span .icon { width: 15px; height: 15px; }
.card__select input:checked + span { background: var(--yellow); border-color: var(--yellow); color: #18171a; }
.card__select input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.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); }
.bulk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge--shared { background: rgb(83 245 126 / 0.12); color: rgb(var(--spot)); }
.badge--muted { background: var(--surface-3); color: var(--muted); }
.owner-tools { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.owner-tools__row { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-tools__row form { margin: 0; }
.share-result { padding: 20px; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; border-color: var(--yellow); }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .segmented--3 { grid-template-columns: 1fr; } }
.share-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.share-list__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.share-list__item form { margin: 0 0 0 auto; }
.share-list__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.share-list__meta { font-size: 13px; }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form--inline .field { flex: 1; min-width: 180px; }
.field--wide { grid-column: 1 / -1; }
.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__empty { display: grid; place-items: center; height: 100%; color: var(--gray); }
.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:hover { border-color: var(--yellow); color: var(--yellow); }
.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__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 { display: flex; flex-direction: column; min-width: 0; }
.lightbox__meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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 ═══════════════════════════════════════════════ */

/* Header icons, counters, dropdowns, modals, list rows, inline forms: css/site-header.css (also used by DEPO Album). */

/* 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:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.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; }
.page-banner__slide img, .page-banner__slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 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; }
