/* modern.css */
/* Базовый современный слой поверх legacy.css */

:root {
    --bg: #f7fbfb;
    --bg-soft: #eef8f6;
    --bg-accent: #edf7ff;

    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-soft: #f9fcfc;

    --text: #1f2937;
    --text-soft: #667085;
    --text-muted: #8a94a6;

    --border: #dbe7e5;
    --border-strong: #c8dad6;

    --accent: #0f9f7f;
    --accent-hover: #0c7f66;
    --accent-soft: #dff7ef;

    --link: #0f9f7f;
    --link-hover: #0b7f65;

    --danger: #dc2626;
    --warning: #d97706;
    --success: #16a34a;

    --shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.12);
    --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.10);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --container: 1240px;
}

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

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

html,
body {
    background:
        radial-gradient(circle at top left, #ffffff 0%, #f6fffb 30%, transparent 55%),
        radial-gradient(circle at top right, #eef9ff 0%, #f8fcff 28%, transparent 50%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg-accent) 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body {
    margin: 0;
    font: 14px/1.5 Tahoma, Arial, sans-serif;
    color: var(--text);
    min-width: 320px;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    display: inline-block;
}

table {
    border-collapse: collapse;
}

td {
    color: inherit;
    font: inherit;
}

/* links */
a {
    color: var(--link);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* text helpers */
.text-muted {
    color: var(--text-muted);
}

.text-soft {
    color: var(--text-soft);
}

.text-danger,
.error {
    color: var(--danger);
}

.help_descr {
    font-size: 12px;
    color: var(--text-soft);
}

/* headings */
.headtext {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.heada,
.heada:hover {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

/* layout */
.site-shell {
    width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    margin-bottom: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 20px;
}

.card-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.card-subtitle {
    margin: -6px 0 16px;
    color: var(--text-soft);
    font-size: 13px;
}

/* legacy header helpers */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(219, 231, 229, 0.8);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-title {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--text-soft);
    font-size: 14px;
}

.nav-list a:hover {
    color: var(--text);
    text-decoration: none;
}

/* buttons */
.btn,
input[type="submit"],
input[type="button"],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font: 600 14px/1 Tahoma, Arial, sans-serif;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: #ffffff;
}

/* forms */
input,
select,
textarea {
    font: 14px/1.4 Tahoma, Arial, sans-serif;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

select {
    min-height: 42px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 159, 127, 0.12);
    background: #ffffff;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--accent);
}

/* legacy select classes */
select.formselect {
    width: 300px;
    max-width: 100%;
}

select.formselect2 {
    width: 230px;
    max-width: 100%;
}

select.formselect3 {
    width: 190px;
    max-width: 100%;
}

select.formselect4 {
    width: 370px;
    max-width: 100%;
}

/* messages and labels */
.textmessage {
    font-size: 18px;
    color: var(--text);
}

.mess_head {
    background-color: #fff3e8;
    color: #c2410c;
    font-weight: 700;
}

.mess_lines {
    background-color: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.mess_lines_n {
    color: #c2410c;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.lcopy {
    color: var(--text-soft);
}

.tdline {
    color: var(--text-soft);
    background-color: #edf3f2;
}

/* tags cloud */
.tag_a,
.tag_a:hover {
    font-size: 24px;
    color: #ef5014;
    font-weight: 700;
}

.tag_b,
.tag_b:hover {
    font-size: 18px;
    color: #4b9b15;
    font-weight: 700;
}

.tag_c,
.tag_c:hover {
    font-size: 14px;
    color: #0f9f7f;
    font-weight: 700;
}

/* photo UI */
.photo-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}

.photo-strip-item {
    flex: 0 0 auto;
    width: 100px;
}

.photo-strip-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: block;
}

.photo-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.photo-card-body {
    padding: 14px;
}

.photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.photo-meta {
    font-size: 13px;
    color: var(--text-soft);
}

/* upload blocks */
.upload-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,252,248,.85));
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

.upload-panel__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.upload-box {
    background: rgba(255,255,255,.85);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.upload-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.upload-form-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.upload-secondary-actions {
    margin-top: 4px;
}

.upload-extra-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.upload-field--full {
    grid-column: 1 / -1;
}

.upload-field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.upload-field__counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.upload-textarea {
    min-height: 110px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.84);
    color: var(--text);
    resize: vertical;
    outline: none;
}

.upload-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.12);
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.upload-option-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.upload-option-row--top {
    align-items: start;
}

.upload-option-label {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.upload-option-control {
    min-width: 0;
}

.upload-option-control .formselect2,
.upload-option-control select,
.upload-option-control textarea {
    width: 100%;
    max-width: 100%;
}

.upload-counter {
    margin-top: 8px;
}

.upload-counter input {
    width: 64px;
    text-align: center;
}

/* file picker */
.file-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px;
    border: 1px solid #dbe7e5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
    overflow: hidden;
}

.file-picker:hover {
    border-color: #bfe4d9;
    background: #ffffff;
}

.file-picker--inline {
    width: 100%;
}

.file-picker__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #0f9f7f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 159, 127, 0.16);
}

.file-picker__text {
    min-width: 0;
    flex: 1 1 auto;
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-picker__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* drag/drop compact */
.upload-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px dashed #bfe4d9;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(236,253,245,.9), rgba(255,255,255,.96));
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.upload-inline.is-dragover,
#dropUploadZone.is-dragover {
    border-color: var(--accent);
    background: rgba(49, 196, 141, 0.08);
    box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.12);
}

.upload-inline__main {
    flex: 1 1 auto;
    min-width: 0;
}

.upload-inline__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.upload-arrow-button {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #0f9f7f;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 159, 127, 0.18);
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.upload-arrow-button:hover {
    background: #0c7f66;
    transform: translateY(-1px);
}

.upload-arrow-button span {
    transform: translateX(1px);
}

.upload-arrow-button.is-loading {
    opacity: .7;
    pointer-events: none;
}

.upload-extra-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.upload-extra-row .file-picker {
    flex: 1 1 auto;
}

.upload-extra-remove {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.upload-extra-remove:hover {
    background: #fff;
}

.upload-secondary-actions + table,
.upload-extra-fields + table {
    margin-top: 6px;
}

/* advanced upload helpers */
.upload-inline--advanced {
    margin-bottom: 6px;
}

.upload-submit-button {
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.upload-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.22);
}

.upload-card-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.upload-card-group__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.upload-card-group__title em {
    font-style: normal;
    color: #ef4444;
}

.upload-card-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.upload-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.84);
    color: var(--text);
    outline: none;
}

.upload-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.12);
}

.upload-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    color: #334155;
}

.upload-note-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.upload-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.upload-note em {
    font-style: normal;
    color: #ef4444;
    font-weight: 700;
}

/* camera capture */
.camera-capture {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.camera-capture__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.camera-capture__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.camera-capture__subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.camera-capture__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.camera-capture__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.camera-capture__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.camera-capture__label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.camera-capture__stage {
    position: relative;
    min-height: 280px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
}

.camera-capture__video,
.camera-capture__preview,
.camera-capture__canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.camera-capture__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,.78);
    background: linear-gradient(180deg, rgba(15,23,42,.5), rgba(15,23,42,.75));
}

/* upload overlay */
.upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-overlay[hidden] {
    display: none;
}

.upload-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(6px);
}

.upload-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    padding: 28px 28px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.94);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.22),
        0 10px 30px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.upload-overlay__eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f766e;
}

.upload-overlay__title {
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.upload-overlay__status {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.upload-overlay__progress {
    position: relative;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #dbeafe 0%, #dcfce7 50%, #f0fdfa 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.upload-overlay__progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 35%, #38bdf8 100%);
    box-shadow:
        0 0 24px rgba(16, 185, 129, 0.28),
        inset 0 -1px 0 rgba(255,255,255,0.32);
    transition: width .2s ease;
}

.upload-overlay__meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.upload-overlay__percent {
    font-size: 18px;
    font-weight: 700;
    color: #0f766e;
}

.upload-overlay__files {
    font-size: 13px;
    color: #64748b;
}

.upload-overlay--success .upload-overlay__progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
}

.upload-overlay--error .upload-overlay__progress-bar {
    background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%);
}

/* folders / albums */
.album-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.album-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.album-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.album-card__cover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border);
}

.album-card__cover img {
    max-width: 70px;
    max-height: 70px;
}

.album-card__cover--create {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(223,247,239,.85));
}

.album-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
}

.album-card__action:hover {
    background: #ffffff;
    text-decoration: none;
}

.album-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.album-title a {
    color: inherit;
    text-decoration: none;
}

.album-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.album-meta {
    font-size: 13px;
    color: var(--text-soft);
}

/* main page layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.main-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.main-layout__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* cards */

.ui-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ui-card--soft {
    background: rgba(255, 255, 255, 0.76);
}

.ui-card__body {
    padding: 22px;
}

.ui-card__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f9f7f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* section head */

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
}

.section-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #0f9f7f;
    font-size: 12px;
    font-weight: 700;
}

/* hero */

.hero-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 32px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #eef9ff 100%);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.10);
}

.hero-panel__content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: center;
    padding: 34px;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    border: 1px solid #dbe7e5;
    color: #0f9f7f;
    font-size: 12px;
    font-weight: 700;
}

.hero-title {
    margin: 0 0 14px;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
}

.hero-text {
    margin: 0 0 24px;
    max-width: 680px;
    font-size: 16px;
    color: #667085;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hero-button--primary {
    background: #0f9f7f;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 159, 127, 0.18);
}

.hero-button--primary:hover {
    background: #0c7f66;
    color: #ffffff;
    text-decoration: none;
}

.hero-button--secondary {
    background: rgba(255,255,255,.76);
    border: 1px solid #dbe7e5;
    color: #1f2937;
}

.hero-button--secondary:hover {
    background: #ffffff;
    color: #111827;
    text-decoration: none;
}

.hero-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-preview {
    min-height: 150px;
    border-radius: 22px;
    background: linear-gradient(135deg, #dff7ef 0%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.hero-preview--wide {
    grid-column: 1 / -1;
    min-height: 220px;
    background: linear-gradient(135deg, #dff7ef 0%, #eef9ff 100%);
}

/* content split */

.content-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
}

.content-two-col__main,
.content-two-col__aside {
    min-width: 0;
}

/* misc */

.promo-banner {
    margin-top: 16px;
}

.promo-banner img {
    display: block;
    max-width: 100%;
    border-radius: 18px;
}

.ad-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.side-banner-link img {
    display: block;
    max-width: 100%;
}

/* action buttons instead of old image buttons */

.ui-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ui-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #0f9f7f;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 0;
    box-shadow: 0 10px 22px rgba(15, 159, 127, 0.18);
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.ui-action-button:hover {
    background: #0c7f66;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.ui-action-button--soft {
    background: rgba(255,255,255,.82);
    color: #1f2937 !important;
    border: 1px solid #dbe7e5;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.ui-action-button--soft:hover {
    background: #ffffff;
    color: #111827 !important;
}

.ui-divider {
    height: 1px;
    margin: 18px 0;
    border: 0;
    background: linear-gradient(
        90deg,
        rgba(15,159,127,0) 0%,
        rgba(15,159,127,.18) 20%,
        rgba(15,159,127,.18) 80%,
        rgba(15,159,127,0) 100%
    );
}

/* news */
.news-list,
.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item,
.news-card {
    border: 1px solid #e3efec;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.news-item {
    padding: 16px 18px;
}

.news-card {
    padding: 22px;
}

.news-card--single {
    background: rgba(255, 255, 255, 0.86);
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f9f7f;
    font-size: 12px;
    font-weight: 700;
}

.news-card__permalink {
    color: #0f9f7f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.news-card__permalink:hover {
    color: #0c7f66;
    text-decoration: none;
}

.news-item__title,
.news-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.news-item__text,
.news-card__content {
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.news-card__content p:first-child {
    margin-top: 0;
}

.news-card__content p:last-child {
    margin-bottom: 0;
}

.news-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.news-item__more,
.news-item__link {
    display: inline-flex;
    align-items: center;
    color: #0f9f7f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.news-item__more:hover,
.news-item__link:hover {
    color: #0c7f66;
    text-decoration: none;
}

.news-footer-link {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 159, 127, 0.12);
}

.news-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f9f7f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.news-archive-link:hover {
    color: #0c7f66;
    text-decoration: none;
}

.news-archive-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ecfdf5;
    font-size: 13px;
}

/* footer */
.footer-modern-wrap {
    margin-top: 40px;
    padding-bottom: 28px;
}

.footer-modern {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.footer-modern__top {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    padding: 28px 30px 22px;
}

.footer-modern__brand {
    min-width: 0;
}

.footer-modern__logo {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f9f7f;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.footer-modern__logo:hover {
    color: #0c7f66;
    text-decoration: none;
}

.footer-modern__text {
    margin: 0;
    max-width: 360px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.footer-modern__title {
    margin-bottom: 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.footer-modern__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-modern__list li + li {
    margin-top: 8px;
}

.footer-modern__list a {
    color: #667085;
    font-size: 14px;
    text-decoration: none;
}

.footer-modern__list a:hover {
    color: #0f9f7f;
    text-decoration: none;
}

.footer-modern__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 30px;
    border-top: 1px solid rgba(15, 159, 127, 0.10);
    background: rgba(255, 255, 255, 0.45);
}

.footer-modern__copy {
    color: #8a94a6;
    font-size: 13px;
}

.footer-modern__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-modern__bottom-links a {
    color: #667085;
    font-size: 13px;
    text-decoration: none;
}

.footer-modern__bottom-links a:hover {
    color: #0f9f7f;
    text-decoration: none;
}

/* card code form */
.card-code-form {
    margin-top: 4px;
}

.card-code-form__row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.card-code-form__label {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.card-code-form__field {
    min-width: 0;
}

.card-code-form__input {
    width: 100%;
}

.card-code-form__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* photo page */
.photo-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.photo-hero {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 10px 30px rgba(16,24,40,.08);
    transition: background-color .2s ease, background .2s ease;
}

.photo-hero__image-wrap {
    display: flex;
    justify-content: center;
    padding: 18px;
    border-radius: 22px;
    background: transparent;
}

.photo-hero__image {
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(16,24,40,.14);
}

.photo-hero__colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
}

.photo-meta-top__download,
.photo-meta-top__qr {
    text-align: center;
}

.photo-meta-top__qr {
    margin-top: 12px;
}

.photo-nav__row {
    display: grid;
    grid-template-columns: 1fr minmax(0, 2fr) 1fr;
    gap: 16px;
    align-items: center;
}

.photo-nav__side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.photo-nav__side--right {
    justify-content: flex-end;
}

.photo-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.photo-social,
.photo-promo {
    margin-top: 18px;
    text-align: center;
}

.photo-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.info-grid,
.link-grid,
.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row,
.comment-form__row {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 14px;
    align-items: start;
}

.info-label,
.comment-form__label,
.link-label {
    color: #475467;
    font-weight: 600;
}

.link-row,
.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subsection-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.rating-block,
.demotivator-form,
.comment-form,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-action,
.comment-form__actions {
    margin-top: 8px;
}

.photo-bottom-banner {
    margin-top: 8px;
}

/* auth modal */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

.auth-modal.is-open {
    display: block;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-modal__dialog {
    position: relative;
    width: min(460px, calc(100% - 24px));
    margin: 8vh auto 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 26px;
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 159, 127, 0.08);
    color: #0f9f7f;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.auth-modal__close:hover {
    background: rgba(15, 159, 127, 0.14);
    transform: none;
}

.auth-modal__header {
    margin-bottom: 20px;
}

.auth-modal__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f9f7f;
    font-size: 12px;
    font-weight: 700;
}

.auth-modal__title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #111827;
}

.auth-modal__subtitle {
    color: #667085;
    font-size: 14px;
}

.auth-modal__form {
    display: grid;
    gap: 16px;
}

.auth-modal__field {
    display: grid;
    gap: 8px;
}

.auth-modal__label {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.auth-modal__input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dbe7e5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 14px;
}

.auth-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.auth-modal__submit {
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 16px;
    background: #0f9f7f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-modal__submit:hover {
    background: #0c7f66;
}

.auth-modal__link {
    color: #0f9f7f;
    text-decoration: none;
    font-size: 14px;
}

.auth-modal__link:hover {
    color: #0c7f66;
    text-decoration: underline;
}

.auth-modal__footer {
    padding-top: 4px;
    color: #667085;
    font-size: 14px;
}

/* profile dropdown */

.profile-menu {
    position: relative;
}

.profile-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.profile-menu__trigger:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.profile-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #0f9f7f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.profile-menu__name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__arrow {
    color: #667085;
    font-size: 12px;
}

.profile-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
}

.profile-menu.is-open .profile-menu__dropdown {
    display: block;
}

.profile-menu__item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #344054;
    font-size: 14px;
    text-decoration: none;
}

.profile-menu__item:hover {
    background: #f3fbf8;
    color: #111827;
    text-decoration: none;
}

.profile-menu__item--danger {
    color: #dc2626;
}

.profile-menu__item--danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* auth panel */
.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-panel__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-panel__label {
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

.auth-panel__input {
    width: 100%;
}

.auth-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-panel__link {
    font-size: 13px;
    color: #667085;
    text-decoration: none;
}

.auth-panel__link:hover {
    color: #0f9f7f;
    text-decoration: none;
}

.auth-panel__register {
    margin-top: 4px;
}

.auth-panel__welcome {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-panel__welcome-text {
    color: #475467;
    font-size: 14px;
}

.auth-panel__welcome-text strong {
    color: #111827;
}

.auth-panel__logout {
    display: flex;
    justify-content: flex-start;
}

.auth-panel__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-panel__nav a {
    color: #0f9f7f;
    text-decoration: none;
    font-size: 14px;
}

.auth-panel__nav a:hover {
    color: #0c7f66;
    text-decoration: none;
}

/* modern sticky header */
.topbar-modern {
    position: sticky !important;
    top: 12px !important;
    z-index: 9999 !important;
    width: min(1240px, calc(100% - 32px)) !important;
    margin: 16px auto 24px !important;
    padding: 0 !important;
    display: block !important;
}

.topbar-modern__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 14px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.08) !important;
}

.topbar-modern__brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 180px !important;
}

.topbar-modern__brand-link {
    display: inline-block !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #0f9f7f !important;
    text-decoration: none !important;
    border: 0 !important;
}

.topbar-modern__brand-link:hover {
    color: #0c7f66 !important;
    text-decoration: none !important;
}

.topbar-modern__brand-subtitle {
    font-size: 12px !important;
    color: #667085 !important;
}

.topbar-modern__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    flex-wrap: wrap !important;
}

.topbar-modern__nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #475467 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease !important;
}

.topbar-modern__nav-link:hover {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: #dbe7e5 !important;
    color: #111827 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06) !important;
}

.topbar-modern__nav-link--active {
    background: #0f9f7f !important;
    color: #ffffff !important;
    border-color: #0f9f7f !important;
    box-shadow: 0 10px 22px rgba(15, 159, 127, 0.22) !important;
}

.topbar-modern__nav-link--active:hover {
    background: #0c7f66 !important;
    color: #ffffff !important;
    border-color: #0c7f66 !important;
}

.topbar-modern__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 110px !important;
}

.topbar-modern__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    background: #0f9f7f !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(15, 159, 127, 0.18) !important;
}

.topbar-modern__button:hover {
    background: #0c7f66 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.header-spacer {
    height: 8px;
}

/* legacy popup / highslide */
.highslide-wrapper div {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
}

.highslide-html {
    background-color: #ffffff;
}

.highslide-html-content {
    position: absolute;
    display: none;
}

.highslide-loading {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px 6px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: 8px 50%;
}

a.highslide-credits,
a.highslide-credits i {
    padding: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
}

a.highslide-credits:hover,
a.highslide-credits:hover i {
    color: var(--text);
    background-color: #f1f5f4;
}

.highslide-wrapper,
.rounded-white {
    background-color: #ffffff;
    border-radius: 18px;
}

.highslide-wrapper .highslide-html-content {
    width: 400px;
    padding: 0 10px 10px 10px;
}

.highslide-wrapper .highslide-header {
    padding-bottom: 8px;
}

.highslide-wrapper .highslide-header ul {
    margin: 0;
    padding: 0;
    text-align: right;
}

.highslide-wrapper .highslide-header ul li {
    display: inline;
    padding-left: 1em;
}

.highslide-wrapper .highslide-header ul li.highslide-previous,
.highslide-wrapper .highslide-header ul li.highslide-next {
    display: none;
}

.highslide-wrapper .highslide-header a {
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 11px;
}

.highslide-wrapper .highslide-header a:hover {
    color: var(--text);
}

.highslide-wrapper .highslide-header .highslide-move a {
    cursor: move;
}

.highslide-wrapper .highslide-footer {
    height: 15px;
}

.highslide-wrapper .highslide-footer .highslide-resize {
    float: right;
    margin-top: 4px;
    height: 11px;
    width: 11px;
    background: url(gfx/resize.gif);
}

.highslide-wrapper .highslide-body {
    color: var(--text);
    font: 14px/1.45 Tahoma, Arial, sans-serif;
}

.highslide-move {
    cursor: move;
}

.highslide-resize {
    cursor: nw-resize;
}

/* folders page */
.folders-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.folders-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.folders-sidebar__item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.folders-sidebar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.folders-sidebar__content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.folders-sidebar__content a {
    color: var(--link);
    text-decoration: none;
}

.folders-sidebar__content a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.folders-sidebar__copy {
    margin: 16px 0 4px;
}

.folders-copy-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.folders-copy-form input {
    flex: 1 1 auto;
    min-width: 0;
}

.folders-copy-form button {
    flex: 0 0 auto;
}

.folders-sidebar__menu {
    margin-top: 12px;
}

.folders-content {
    min-width: 0;
}

/* category page */
.photo-grid--category {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.photo-card__image-link {
    display: block;
    padding: 14px 14px 0;
    text-decoration: none;
}

.photo-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.photo-card__body {
    padding: 14px;
}

.photo-card__meta {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.photo-card__meta span {
    color: var(--text);
    font-weight: 600;
}

.photo-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 18px;
    margin-top: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pagination__item,
.pagination__edge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.pagination__item:hover,
.pagination__edge:hover {
    background: #ffffff;
    text-decoration: none;
}

.pagination__item--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.sort-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.sort-switch__item:hover {
    background: #ffffff;
    text-decoration: none;
}

.sort-switch__item--active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-hover);
    font-weight: 600;
}

.category-page__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.category-page__summary {
    font-size: 14px;
    color: var(--text-soft);
}

.category-page__controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.category-page__controls--bottom {
    margin-top: 22px;
    margin-bottom: 0;
}

.category-page__control {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.category-page__control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.category-page__control-content {
    min-width: 0;
}

.category-page__control-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.category-page__photos {
    min-width: 0;
}

/* folder page */
.folder-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.folder-page__layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.folder-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.folder-card__icon {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid var(--border);
}

.folder-card__title {
    line-height: 1.2;
}

.folder-card__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.folder-card__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.folder-card__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.folder-card__value {
    font-size: 14px;
    color: var(--text);
}

.folder-card__admin {
    margin-top: 14px;
}

.folder-page__summary {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-soft);
}

.folder-page__pagination-top,
.folder-page__pagination-bottom {
    margin-bottom: 18px;
}

.folder-page__pagination-bottom {
    margin-top: 18px;
    margin-bottom: 0;
}

.folder-page__photos {
    min-width: 0;
}

.section-title__muted {
    color: var(--text-soft);
    font-weight: 500;
}

/* album photos */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.album-photo-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.album-photo-card__image-link {
    display: block;
    padding: 14px 14px 0;
    text-decoration: none;
}

.album-photo-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.album-photo-card__body {
    padding: 14px;
}

.album-photo-card__meta {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.album-photo-card__meta span {
    color: var(--text);
    font-weight: 600;
}

.album-photo-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 18px;
    margin-top: 4px;
}

/* categories page */
.categories-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.category-card:hover {
    transform: translateY(-1px);
    border-color: #86efac;
    box-shadow: var(--shadow-md);
    color: #0f172a;
}

.category-card__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-card__icon img {
    display: block;
    max-width: 20px;
    max-height: 20px;
}

.category-card__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

/* search */
.search-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-form-modern {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.search-form-modern__top {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.search-form-modern__icon img {
    display: block;
    width: 70px;
    height: 70px;
}

.search-form-modern__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-form-modern__input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
}

.search-form-modern__input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    color: var(--text);
    outline: none;
}

.search-form-modern__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.12);
}

.search-form-modern__submit {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.search-form-modern__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.22);
}

.search-form-modern__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #334155;
    font-size: 14px;
}

.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.8);
    color: #475569;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-card {
    display: grid;
    grid-template-columns: 40px 90px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-sm);
}

.search-card__num {
    font-weight: 700;
    color: #0f766e;
    padding-top: 4px;
}

.search-card__media img {
    width: 85px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.search-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-card__content--wide {
    grid-column: 2 / 4;
}

.search-card__title {
    font-weight: 700;
    color: #0f172a;
}

.search-card__meta {
    color: #475569;
    line-height: 1.5;
    font-size: 14px;
}

.search-empty {
    padding: 34px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    text-align: center;
}

/* faq */
.faq-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.faq-layout__nav,
.faq-layout__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-intro-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.faq-intro-card__icon img {
    display: block;
    width: 70px;
    height: 70px;
}

.faq-intro-card__text {
    color: #475569;
    line-height: 1.55;
    font-size: 14px;
}

.faq-nav-group {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.faq-nav-group__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.faq-nav-group__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    background: rgba(255,255,255,.68);
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.faq-nav-link:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-1px);
}

.faq-nav-link__icon {
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-answer-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.faq-answer-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.faq-answer-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.faq-answer-card__body {
    color: #475569;
    line-height: 1.65;
}

.faq-answer-card__body p:first-child {
    margin-top: 0;
}

.faq-answer-card__body p:last-child {
    margin-bottom: 0;
}

/* responsive */
@media (max-width: 1100px) {
    .upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel__content {
        grid-template-columns: 1fr;
    }

    .content-two-col {
        grid-template-columns: 1fr;
    }

    .photo-grid--category {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .album-photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .topbar-modern__inner {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .topbar-modern__brand {
        text-align: center !important;
        align-items: center !important;
    }

    .topbar-modern__nav {
        justify-content: center !important;
    }

    .topbar-modern__actions {
        justify-content: center !important;
    }

    .footer-modern__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 920px) {
    .folders-layout {
        grid-template-columns: 1fr;
    }

    .folders-copy-form {
        flex-direction: column;
        align-items: stretch;
    }

    .folder-page__layout {
        grid-template-columns: 1fr;
    }

    .folder-card__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .photo-details-grid {
        grid-template-columns: 1fr;
    }

    .photo-nav__row {
        grid-template-columns: 1fr;
    }

    .info-row,
    .comment-form__row {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-intro-card {
        align-items: flex-start;
    }

    .camera-capture__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .topbar-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        gap: 12px;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .headtext,
    .heada,
    .heada:hover {
        font-size: 18px;
    }

    .hidden-mobile {
        display: none;
    }

    .ui-card__body {
        padding: 18px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel__content {
        padding: 22px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 15px;
    }

    .file-picker {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .file-picker__button {
        width: 100%;
    }

    .file-picker__text {
        text-align: center;
    }

    .upload-action-card {
        min-height: auto;
    }

    .upload-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-inline__action {
        width: 100%;
        align-self: center;
    }

    .upload-option-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .upload-option-label {
        font-size: 13px;
    }

    .card-code-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card-code-form__action {
        justify-content: stretch;
    }

    .card-code-form__action .ui-action-button {
        width: 100%;
    }

    .photo-grid--category {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-form-modern__top {
        grid-template-columns: 1fr;
    }

    .search-form-modern__icon {
        display: none;
    }

    .search-form-modern__input-row {
        grid-template-columns: 1fr;
    }

    .search-card {
        grid-template-columns: 32px 1fr;
    }

    .search-card__media,
    .search-card__content,
    .search-card__content--wide {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .upload-settings-grid {
        grid-template-columns: 1fr;
    }

    .upload-submit-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .topbar-modern {
        width: min(1240px, calc(100% - 20px)) !important;
        top: 8px !important;
        margin: 10px auto 18px !important;
    }

    .topbar-modern__inner {
        padding: 14px !important;
        border-radius: 22px !important;
    }

    .topbar-modern__brand-link {
        font-size: 24px !important;
    }

    .topbar-modern__nav {
        gap: 8px !important;
    }

    .topbar-modern__nav-link,
    .topbar-modern__button {
        min-height: 40px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
    }

    .auth-modal__dialog {
        padding: 20px;
        border-radius: 22px;
    }

    .auth-modal__title {
        font-size: 26px;
    }

    .auth-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-modal__submit {
        width: 100%;
    }

    .profile-menu__name {
        max-width: 90px;
    }

    .news-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-modern__top {
        grid-template-columns: 1fr;
        padding: 22px 18px 18px;
    }

    .footer-modern__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    .upload-overlay__dialog {
        padding: 22px 18px 20px;
        border-radius: 22px;
    }

    .upload-overlay__title {
        font-size: 22px;
    }

    .upload-overlay__meta {
        flex-direction: column;
        gap: 6px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .photo-grid--category {
        grid-template-columns: 1fr;
    }

    .album-photos-grid {
        grid-template-columns: 1fr;
    }
}
.camera-spoiler {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.camera-spoiler + .upload-secondary-actions,
.camera-spoiler + .upload-settings-grid {
    margin-top: 18px;
}

.camera-spoiler__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(236,253,245,.75), rgba(255,255,255,.9));
}

.camera-spoiler__summary::-webkit-details-marker {
    display: none;
}

.camera-spoiler__summary::after {
    content: "▾";
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    color: var(--accent);
    transition: transform .2s ease;
}

.camera-spoiler[open] .camera-spoiler__summary::after {
    transform: rotate(180deg);
}

.camera-spoiler__summary-text {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.camera-spoiler__summary-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
}

.camera-spoiler__body {
    padding: 0 20px 20px;
}

.camera-spoiler:not([open]) .camera-spoiler__body {
    display: none;
}
.photo-day-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-day-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(223,247,239,.86));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.photo-day-widget__badge-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.photo-day-widget__badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.photo-day-widget__badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.photo-day-widget__badge-text small {
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--text-soft);
}

.photo-day-widget__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--shadow);
}

.photo-day-widget__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-day-widget__media img {
    display: block;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.photo-day-widget__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.photo-day-widget__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.photo-day-widget__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-day-widget__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.photo-day-widget__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.photo-day-widget__value {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .photo-day-widget__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.photo-day-widget__value--rating {
    display: inline-flex;
    align-items: center;
    gap: 0.12em;
    white-space: nowrap;
    font-size: clamp(8px, 0.9vw, 13px);
    max-width: 100%;
}

.photo-day-widget__value--rating img {
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    display: block;
}
.new-photos-widget {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.new-photos-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-photos-widget__body {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.new-photos-widget__scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}
.new-photos-widget {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.new-photos-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-photos-widget__body {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.new-photos-widget__scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
}

.new-photos-widget__track {
    display: flex;
    justify-content: center; /* если фото мало — центрируем */
    align-items: flex-start;
    gap: 16px;
    min-width: max-content; /* если фото много — сохраняем горизонтальный скролл */
}

/* карточка миниатюры */
.new-photo-card {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
}

.new-photo-card__link {
    display: block;
    text-decoration: none;
}

.new-photo-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.10);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        border-color .22s ease;
}

.new-photo-card__link:hover .new-photo-card__thumb {
    transform: scale(1.08);
    border-color: rgba(15, 159, 127, 0.35);
    box-shadow:
        0 16px 34px rgba(16, 24, 40, 0.16),
        0 0 0 4px rgba(15, 159, 127, 0.10);
    filter: brightness(1.04) saturate(1.05);
}

.new-photo-card__title {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
}

.new-photo-card__meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}
.photowall-preview {
    position: relative;
    display: inline-block;
}

.photowall-preview__link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.photowall-preview__thumb {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.photowall-preview__link:hover .photowall-preview__thumb {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.18);
}

.photowall-preview__popup {
    position: absolute;
    left: calc(100% + 18px);
    top: 50%;
    z-index: 40;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(.96);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.photowall-preview__link:hover .photowall-preview__popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.photowall-preview__medium {
    display: block;
    width: 500px;
    max-width: min(500px, 60vw);
    height: auto;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
    background: #fff;
}

@media (max-width: 1100px) {
    .photowall-preview__popup {
        left: 0;
        top: calc(100% + 16px);
        transform: scale(.96);
    }

    .photowall-preview__link:hover .photowall-preview__popup {
        transform: scale(1);
    }

    .photowall-preview__medium {
        max-width: min(500px, 80vw);
    }
}
.camera-capture__placeholder[hidden],
.camera-capture__preview[hidden],
.camera-capture__canvas[hidden],
#cameraVideoPlaceholder[hidden],
#cameraPreviewPlaceholder[hidden],
#cameraCanvas[hidden],
#cameraPreview[hidden] {
    display: none !important;
}