﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    color: #111827;
    min-height: 100vh;
    padding-top: 64px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.sidebar-open {
    overflow: hidden;
}

body {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

button,
input,
a {
    font: inherit;
}

img {
    max-width: 100%;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(320px, 500px) minmax(170px, 1fr);
    align-items: center;
    padding: 0 18px;
    z-index: 1100;
    backdrop-filter: blur(18px);
    column-gap: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.header-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe2ea;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mobile-header-admin-btn {
    display: none !important;
}

.mobile-header-share-btn {
    display: none !important;
}

.mobile-header-about-btn {
    display: none !important;
}

.mobile-menu-btn svg {
    width: 17px;
    height: 17px;
}

.logo-e {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    border-radius: 10px;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    text-transform: uppercase;
}

.brand-logo-image {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #fff;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.brand-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.brand-slogan {
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    font-weight: 600;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-self: center;
}

.header-search input {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(203, 213, 225, 0.9);
    height: 38px;
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-search .btn-secondary {
    height: 38px;
    border-radius: 10px;
    padding: 0 10px;
    flex-shrink: 0;
    min-width: 52px;
    font-size: 12px;
    font-weight: 700;
}

.header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}

.header-admin-form {
    margin: 0;
}

.header-action-btn {
    min-height: 46px;
    padding: 0 4px;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #374151;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.header-share-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
}

.header-share-btn svg {
    width: 21px;
    height: 21px;
}

.header-action-btn:hover {
    background: transparent !important;
    color: #111827;
    transform: scale(1.04);
}

.sidebar-backdrop {
    display: none;
}

.mobile-quickbar {
    display: none;
}

.sidebar-search-mobile {
    display: none;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(226, 232, 240, 0.95);
    height: calc(100vh - 64px);
    position: fixed;
    top: 64px;
    left: 0;
    padding: 16px 12px 18px;
    overflow-y: auto;
    backdrop-filter: blur(18px);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.4);
}

.sidebar-top-group {
    display: grid;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 14px;
}

.sidebar-desktop-only {
    display: grid;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 14px 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-section-link {
    color: inherit;
    text-decoration: none;
}

.sidebar-section-link:hover {
    color: #2563eb;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 3px;
    position: relative;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.sidebar-tab {
    background: transparent;
    justify-content: flex-start;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.sidebar-tab .sidebar-icon {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.sidebar-tab .sidebar-icon svg {
    width: 14px;
    height: 14px;
}

.sidebar-tab.active .sidebar-icon {
    color: #2563eb;
}

.sidebar-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.25;
}

.sidebar-link-toggle {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.sidebar-toggle-btn {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-link span:last-child {
    white-space: nowrap;
}

.sidebar-chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: transform 0.18s ease;
}

.sidebar-chevron svg {
    width: 12px;
    height: 12px;
}

.sidebar-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 5px;
    color: #6b7280;
    line-height: 1;
}

.sidebar-icon svg {
    width: 13px;
    height: 13px;
}

.sidebar-item:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.sidebar-item.active {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.sidebar-item.active .sidebar-icon {
    color: #2563eb;
}

.sidebar-sort-group {
    display: grid;
    gap: 2px;
}

.sidebar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.sidebar-tag-item {
    width: auto;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-tag-item:hover {
    background: #ffffff;
    border-color: rgba(96, 165, 250, 0.55);
}

.sidebar-tag-item.active {
    background: #eff6ff;
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
}

.sidebar-tag-item .sidebar-link {
    gap: 4px;
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 999px;
}

.sidebar-tag-item .sidebar-icon {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.sidebar-tag-item .sidebar-icon svg {
    width: 11px;
    height: 11px;
}

.sidebar-tag-item .sidebar-link span:last-child {
    color: #374151;
    font-size: 11px;
    font-weight: 600;
}

.sidebar-tag-item.active .sidebar-link span:last-child {
    color: #111827;
    font-weight: 700;
}

.sidebar-sort-item {
    display: grid;
    gap: 2px;
}

.sidebar-folder-toggle.is-expanded .sidebar-chevron {
    transform: rotate(90deg);
}

.sidebar-sort-item.dragging {
    opacity: 0.55;
}

.sidebar-sort-item.drop-target > .sidebar-item {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.drag-handle {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: grab;
}

.drag-handle svg {
    width: 14px;
    height: 14px;
}

.drag-handle,
.folder-card-move-controls {
    display: none !important;
}

.drag-handle:active {
    cursor: grabbing;
}

.sidebar-tree {
    display: none;
    margin-left: 4px;
    padding-left: 8px;
}

.sidebar-tree.is-open {
    display: grid;
}

.third-level {
    margin-left: 6px;
}

.sidebar-empty {
    color: #6b7280;
    font-size: 12px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.admin-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.sidebar-item:hover .admin-actions {
    opacity: 1;
    pointer-events: auto;
}

.btn-mini {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    padding: 3px 7px;
    font-size: 10px;
    color: #4b5563;
    line-height: 1;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-mini svg {
    width: 12px;
    height: 12px;
}

.btn-mini:hover {
    border-color: #0ea5e9;
    color: #0369a1;
}

.btn-mini.del:hover {
    border-color: #ef4444;
    color: #b91c1c;
}

.btn-mini.add:hover {
    border-color: #10b981;
    color: #047857;
}

.product-hide-toggle .icon-group-muted {
    display: none;
}

.catalog-card.is-hidden-post {
    opacity: 0.42;
    filter: grayscale(0.75);
}

.catalog-card.is-hidden-post .product-hide-toggle {
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}

.catalog-card.is-hidden-post .product-hide-toggle .icon-group-visible {
    display: none;
}

.catalog-card.is-hidden-post .product-hide-toggle .icon-group-muted {
    display: block;
}

.btn-examples {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    border-color: rgba(147, 197, 253, 0.9);
    background: rgba(239, 246, 255, 0.95);
}

.btn-examples:hover {
    border-color: #60a5fa;
    color: #1e3a8a;
    background: #dbeafe;
}

.btn-examples-inline {
    width: auto;
    padding: 0 9px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #fff;
    border: 1px solid #d1d5db;
    white-space: nowrap;
}

.btn-examples-inline:hover {
    border-color: #0ea5e9;
    color: #0369a1;
    background: #f8fafc;
}

.btn-examples-inline:disabled,
.btn-examples-inline[aria-disabled="true"] {
    opacity: 0.46;
    cursor: not-allowed;
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
}

a.btn-examples-inline[aria-disabled="true"] {
    pointer-events: none;
}

.btn-examples-inline:disabled:hover,
.btn-examples-inline[aria-disabled="true"]:hover {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.btn-text {
    padding: 1px 8px;
}

.main-content {
    flex: 1 0 auto;
    margin-left: 280px;
    padding: 22px 22px 24px;
}

.site-credit-bar {
    flex-shrink: 0;
    margin-left: 280px;
    padding: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.45);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
}

.site-credit-full-link {
    display: grid;
    grid-template-columns: 36px minmax(240px, 1fr) minmax(110px, 0.7fr);
    align-items: center;
    justify-items: center;
    gap: 10px;
    padding: 10px 20px 14px;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}

.site-credit-copy {
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    text-align: left;
    justify-self: start;
    white-space: nowrap;
}

.site-credit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.site-credit-link strong {
    color: inherit;
}

.site-credit-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.9);
    text-decoration: none;
}

.site-credit-full-link:hover .site-credit-info-link {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(219, 234, 254, 0.96);
}

.site-credit-info-link svg {
    width: 18px;
    height: 18px;
}

.site-credit-link-center {
    justify-self: end;
}

.site-credit-link-right {
    justify-self: center;
}

.floating-whatsapp-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1240;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.3), 0 5px 12px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.floating-whatsapp-button:hover {
    transform: translateY(-2px);
    background: #16a34a;
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.34), 0 7px 16px rgba(15, 23, 42, 0.16);
}

.floating-whatsapp-button svg {
    width: 27px;
    height: 27px;
}

body.product-gallery-open .floating-whatsapp-button {
    z-index: 900;
    pointer-events: none;
}

.about-page-grid {
    display: block;
}

.about-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.admin-page-grid {
    display: grid;
    gap: 14px;
}

.admin-page-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-page-main {
    display: grid;
    gap: 14px;
}

.admin-page-tabs {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-page-tab {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid #dbe5f0;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.admin-page-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.08);
}

.admin-page-tab.active {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(239, 246, 255, 0.98));
    color: #1d4ed8;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.admin-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.admin-page-notice {
    display: grid;
    gap: 6px;
}

.admin-tab-panel {
    display: grid;
    gap: 14px;
}

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

.admin-page-card {
    padding: 16px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-page-login-card {
    max-width: 560px;
}

.drafts-page-grid {
    display: grid;
    gap: 14px;
}

.drafts-page-columns {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.drafts-page-columns-single {
    grid-template-columns: 1fr;
}

.drafts-upload-card,
.drafts-publish-card,
.drafts-grid-shell {
    align-content: start;
}

.drafts-grid-shell {
    gap: 14px;
}

.drafts-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.drafts-page-actions {
    margin-left: auto;
}

.drafts-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.secondary-trigger {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.secondary-trigger:hover {
    background: #dbeafe;
}

.drafts-inline-upload-field {
    gap: 10px;
}

.about-summary-card {
    padding: 20px;
    display: grid;
    gap: 12px;
    position: sticky;
    top: 84px;
}

.about-summary-badge {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.92);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.about-summary-card h2 {
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.about-summary-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.about-contact-list {
    display: grid;
    gap: 8px;
}

.about-contact-list span {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
}

.about-form-card {
    padding: 14px;
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

.about-logo-card {
    display: block;
    position: relative;
}

.about-logo-frame {
    width: 100%;
    min-height: 124px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.about-logo-card .about-inline-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.about-logo-frame.is-empty {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.about-hero-content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.about-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.about-section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.about-section-block {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 100%;
    align-content: start;
}

.about-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.about-info-list {
    display: grid;
    gap: 8px;
}

.about-info-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.about-profile-card {
    min-height: 124px;
    align-items: flex-start;
}

.about-info-copy .about-profile-title {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
    font-weight: 800;
}

.about-info-copy .about-profile-slogan {
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.about-profile-text {
    font-size: 13px;
    line-height: 1.38;
    color: #334155;
    margin-top: 6px;
}

.about-profile-text p {
    margin: 0;
}

.about-profile-text p + p {
    margin-top: 7px;
}

.about-info-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.about-info-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.about-info-copy strong {
    font-size: 13px;
    line-height: 1.45;
    color: #1e293b;
    font-weight: 700;
    white-space: pre-line;
}

.about-info-link {
    font-size: 13px;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.about-info-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.about-info-logo {
    width: 82px;
    height: 82px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 24px;
    background: transparent;
    border: 0;
    padding: 0;
}

.about-inline-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-inline-btn svg {
    width: 14px;
    height: 14px;
}

.about-add-panel {
    display: grid;
    gap: 6px;
}

.about-add-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.about-add-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.about-add-chip {
    border: 1px dashed #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.about-add-chip:hover {
    background: #dbeafe;
}

.about-empty-state {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 12px;
}

.about-field-form textarea,
.about-field-form input {
    width: 100%;
}

.about-logo-upload {
    display: grid;
    gap: 10px;
}

.about-logo-preview {
    width: 100%;
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.about-logo-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.about-field-form textarea {
    min-height: 120px;
    resize: vertical;
}

.about-field-actions {
    justify-content: space-between;
}

.about-member-source-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.about-member-source-toggle[hidden] {
    display: none;
}

.about-member-source-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.about-profile-source-toggle {
    margin-top: 8px;
}

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

.page-heading,
.detail-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.page-heading-copy {
    min-width: 0;
}

.back-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.back-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
}

.back-button svg {
    width: 17px;
    height: 17px;
}

.page-header h1 {
    font-size: 21px;
    margin-bottom: 2px;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: #6b7280;
    font-size: 11px;
}

.catalog-folder-strip {
    display: grid;
    --folder-strip-columns: var(--catalog-category-columns-desktop, 4);
    --folder-strip-gap: 12px;
    --folder-cell-size: calc((100% - ((var(--folder-strip-columns) - 1) * var(--folder-strip-gap))) / var(--folder-strip-columns));
    grid-template-columns: repeat(var(--catalog-category-columns-desktop, 4), minmax(0, 1fr));
    gap: var(--folder-strip-gap);
    margin-bottom: 18px;
    grid-auto-flow: row;
    align-items: start;
}

.catalog-folder-strip.gallery-folder-strip {
    --folder-strip-columns: var(--gallery-category-columns-desktop, 4);
    --folder-strip-gap: 12px;
    grid-template-columns: repeat(var(--gallery-category-columns-desktop, 4), minmax(0, 1fr));
    gap: var(--folder-strip-gap);
}

.gallery-sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -6px 0 14px;
}

.gallery-sort-row .gallery-page-sort {
    position: relative;
}

.gallery-sort-row .gallery-date-title {
    margin: 0;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 11px;
}

.catalog-folder-card-shell {
    position: relative;
    min-height: 0;
    height: auto;
    cursor: grab;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
}

.catalog-folder-card-shell .catalog-folder-card,
.catalog-folder-card-shell .catalog-folder-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.45 / 1 !important;
}

.catalog-folder-card-shell.layout-nano .catalog-folder-card,
.catalog-folder-card-shell.layout-nano .catalog-folder-media {
    aspect-ratio: 1 / 0.48;
}

.catalog-folder-card-shell.layout-standard .catalog-folder-card,
.catalog-folder-card-shell.layout-standard .catalog-folder-media {
    aspect-ratio: 1 / 1;
}

.catalog-folder-card-shell.layout-micro .catalog-folder-card,
.catalog-folder-card-shell.layout-micro .catalog-folder-media {
    aspect-ratio: 1 / 0.6;
}

.catalog-folder-card-shell.layout-compact .catalog-folder-card,
.catalog-folder-card-shell.layout-compact .catalog-folder-media {
    aspect-ratio: 1 / 0.72;
}

.catalog-folder-card-shell.layout-wide {
    --folder-span: 1.35;
    grid-column: span 2;
}

.catalog-folder-card-shell.layout-wide .catalog-folder-card,
.catalog-folder-card-shell.layout-wide .catalog-folder-media {
    aspect-ratio: 1.28 / 1;
}

.catalog-folder-card-shell.layout-feature {
    --folder-span: 1.7;
    grid-column: span 2;
}

.catalog-folder-card-shell.layout-feature .catalog-folder-card,
.catalog-folder-card-shell.layout-feature .catalog-folder-media {
    aspect-ratio: 1.45 / 1;
}

.catalog-folder-card-shell.layout-tall .catalog-folder-card,
.catalog-folder-card-shell.layout-tall .catalog-folder-media {
    aspect-ratio: 0.82 / 1;
}

.catalog-folder-card-shell.layout-hero {
    --folder-span: 2;
    grid-column: span 2;
}

.catalog-folder-card-shell.layout-hero .catalog-folder-card,
.catalog-folder-card-shell.layout-hero .catalog-folder-media {
    aspect-ratio: 1.4 / 1;
}

.catalog-folder-strip .catalog-folder-card-shell {
    grid-column: auto !important;
    grid-row: auto !important;
}

.catalog-folder-strip .catalog-folder-card,
.catalog-folder-strip .catalog-folder-media {
    height: auto;
    aspect-ratio: 1.45 / 1 !important;
}

.catalog-folder-card-shell.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.catalog-folder-card-shell.drop-target .catalog-folder-card {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.4), 0 18px 36px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px) scale(1.01);
}

.catalog-folder-add-card {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.45 / 1;
    border: 2px solid rgba(37, 99, 235, 0.46);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(219, 234, 254, 0.72) 100%);
    color: #2563eb;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.catalog-folder-add-card:hover {
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.catalog-folder-add-card span {
    font-size: 13px;
}

.catalog-folder-add-card strong {
    font-size: 58px;
    line-height: 0.72;
    font-weight: 300;
}

.catalog-folder-card {
    display: block;
    position: relative;
    z-index: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.catalog-folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.catalog-folder-card.active {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35), 0 18px 36px rgba(15, 23, 42, 0.18);
}

.catalog-folder-card.dragging {
    opacity: 0.6;
}

.catalog-folder-card.drop-target {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.4), 0 18px 36px rgba(15, 23, 42, 0.2);
}

.folder-admin-topbar {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 12;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: auto;
}

.folder-admin-topbar-left,
.folder-admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-admin-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.folder-admin-action-btn svg {
    width: 14px;
    height: 14px;
}

.folder-admin-action-btn:hover {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.48);
}

.folder-admin-action-btn.is-danger:hover {
    background: rgba(127, 29, 29, 0.82);
    border-color: rgba(254, 202, 202, 0.52);
}

.folder-drag-hint {
    border-style: dashed;
    border-color: rgba(191, 219, 254, 0.5);
    background: rgba(15, 23, 42, 0.42);
    color: rgba(239, 246, 255, 0.92);
    cursor: grab;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    pointer-events: none;
}

.folder-drag-hint svg {
    width: 12px;
    height: 12px;
}

.catalog-folder-card-shell:hover .folder-drag-hint,
.catalog-folder-card-shell.dragging .folder-drag-hint,
.catalog-folder-card-shell.drop-target .folder-drag-hint {
    border-color: rgba(147, 197, 253, 0.72);
    background: rgba(29, 78, 216, 0.28);
    color: #eff6ff;
}

.catalog-folder-card.is-hidden-category {
    opacity: 0.7;
}

.catalog-folder-card {
    aspect-ratio: 1 / 1;
    grid-column: span 1;
    grid-row: auto;
}

.folder-card-move-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.folder-card-move-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.folder-card-move-btn svg {
    width: 14px;
    height: 14px;
}

.catalog-folder-strip.is-nested {
    --folder-strip-columns: var(--catalog-category-columns-desktop, 4);
    grid-template-columns: repeat(var(--catalog-category-columns-desktop, 4), minmax(0, 1fr));
}

.catalog-folder-strip.gallery-folder-strip.is-nested {
    --folder-strip-columns: var(--gallery-category-columns-desktop, 4);
    grid-template-columns: repeat(var(--gallery-category-columns-desktop, 4), minmax(0, 1fr));
}

.catalog-folder-strip.is-nested .catalog-folder-card,
.catalog-folder-strip.is-nested .catalog-folder-media {
    min-height: 0;
}

.catalog-folder-strip.is-nested .catalog-folder-card strong {
    font-size: 15px;
}

.catalog-folder-strip.is-nested .catalog-folder-content {
    padding: 14px;
}

.catalog-folder-strip.is-third-level {
    grid-template-columns: repeat(var(--catalog-category-columns-desktop, 4), minmax(0, 1fr));
}

.catalog-folder-strip.is-third-level .catalog-folder-card,
.catalog-folder-strip.is-third-level .catalog-folder-media {
    min-height: 0;
}

.catalog-folder-strip.is-third-level .catalog-folder-card strong {
    font-size: 14px;
}

.catalog-folder-media {
    position: relative;
    min-height: 0;
    height: 100%;
    background: linear-gradient(135deg, #5b6470 0%, #2b2f35 100%);
}

.catalog-folder-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-folder-media.no-cover {
    background:
        linear-gradient(180deg, rgba(16, 24, 40, 0.2) 0%, rgba(16, 24, 40, 0.45) 100%),
        linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
}

.catalog-folder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.catalog-folder-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    text-align: center;
}

.catalog-folder-card strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.catalog-folder-content p {
    margin: 4px 10px 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-folder-content span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.layout-switch {
    display: inline-flex;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    padding: 4px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

.layout-btn {
    padding: 9px 14px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 700;
    font-size: 12px;
    border-radius: 10px;
    line-height: 1;
}

.layout-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.btn-main,
.btn-secondary,
.btn-save {
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-main {
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    font-size: 12px;
    min-height: 34px;
    padding: 9px 14px;
    line-height: 1;
}

.btn-catalog-style {
    background: linear-gradient(180deg, #22c55e 0%, #10b981 100%);
}

.btn-gallery-style {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.btn-draft-style {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.btn-draft-manage {
    min-height: 34px;
    padding: 9px 14px;
    font-size: 12px;
}

.btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    min-height: 40px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary.ghost {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-save {
    background: linear-gradient(180deg, #22c55e 0%, #10b981 100%);
    color: #fff;
    min-height: 42px;
}

input {
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 13px;
}

input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.15);
    border-color: #60a5fa;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

textarea {
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    color: #0f172a;
    resize: vertical;
    min-height: 74px;
}

textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.15);
    border-color: #60a5fa;
}

select {
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    color: #0f172a;
}

select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.15);
    border-color: #60a5fa;
}

.gallery.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery.grid-view.gallery-layout {
    display: block;
    column-count: 4;
    column-gap: 10px;
}

.gallery-date-title {
    display: block;
    width: 100%;
    margin: 4px 0 10px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
}

.gallery-date-head {
    position: relative;
    width: 100%;
    min-height: 42px;
    margin: 4px 0 10px;
    padding-right: 196px;
}

.gallery-sort-row.gallery-date-head {
    margin: -2px 0 14px;
}

.gallery-date-head .gallery-date-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.gallery-date-head .gallery-page-sort {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 40;
    transform: translateY(-50%);
}

.gallery.grid-view.gallery-layout .gallery-date-title {
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    column-span: all;
}

.gallery.grid-view.gallery-layout .gallery-date-head {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    column-span: all;
    padding-right: 0;
    min-height: 0;
}

.gallery.list-view.gallery-layout .gallery-date-title {
    grid-column: 1 / -1;
}

.gallery.grid-view.gallery-layout .gallery-card {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 10px;
    width: 100%;
}

.gallery.grid-view.gallery-layout .card-media-button,
.gallery.grid-view.gallery-layout .img-placeholder {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    display: block;
}

.gallery.grid-view.gallery-layout .card-media-button {
    overflow: hidden;
}

.gallery.grid-view.gallery-layout .card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(248, 250, 252, 0.95));
}

.gallery.list-view.gallery-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    justify-content: stretch;
    align-items: stretch;
}

.gallery.list-view.gallery-layout .gallery-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.feed-media-stack {
    display: grid;
    gap: 8px;
    position: relative;
    background: #fff;
}

.feed-media-date {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.feed-media-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
    border-radius: 18px 18px 0 0;
    aspect-ratio: 1 / 1;
}

.feed-media-track::-webkit-scrollbar {
    display: none;
}

.feed-media-slide {
    scroll-snap-align: start;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.feed-media-stack .card-media-button,
.feed-media-stack .img-placeholder {
    width: 100%;
    height: 100%;
}

.feed-media-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8fafc;
}

.feed-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    z-index: 2;
    cursor: pointer;
}

.feed-media-nav.prev {
    left: 8px;
}

.feed-media-nav.next {
    right: 8px;
}

.feed-media-nav svg {
    width: 13px;
    height: 13px;
}

.feed-media-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -2px;
    padding-bottom: 4px;
}

.feed-media-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.feed-media-dot.active {
    background: rgba(59, 130, 246, 0.9);
}

.gallery.list-view.gallery-layout .card-media-button,
.gallery.list-view.gallery-layout .img-placeholder {
    width: 100%;
    height: 360px;
}

.gallery.list-view.gallery-layout .card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.gallery.list-view.gallery-layout .feed-media-stack .card-media-button,
.gallery.list-view.gallery-layout .feed-media-stack .img-placeholder,
.gallery.list-view.gallery-layout .feed-media-stack .feed-media-slide,
.gallery.list-view.gallery-layout .feed-media-stack .feed-media-track,
.gallery.list-view.gallery-layout .feed-media-stack img {
    height: auto;
}

.gallery.list-view.gallery-layout .feed-media-stack .feed-media-track {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
    touch-action: pan-y;
}

.gallery.list-view.gallery-layout .feed-media-stack .card-media-button,
.gallery.list-view.gallery-layout .feed-media-stack .img-placeholder,
.gallery.list-view.gallery-layout .feed-media-stack .feed-media-slide,
.gallery.list-view.gallery-layout .feed-media-stack img {
    width: 100%;
    height: 100%;
}

.gallery.list-view.gallery-layout .feed-media-stack img {
    object-fit: cover;
    background: #f8fafc;
}

.gallery.list-view.gallery-layout .feed-media-stack .feed-media-nav {
    display: inline-flex;
}

.gallery.list-view.gallery-layout .feed-media-stack .feed-media-dots {
    display: flex;
}

.gallery.list-view.gallery-layout .card-body {
    padding: 12px 12px 10px;
    gap: 6px;
}

.feed-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 82px;
    padding: 8px 12px 10px;
}

.feed-card-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #111827;
    min-height: 32px;
}

.feed-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    min-height: 20px;
}

.feed-card-tags span {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
}

.feed-media-actions,
.feed-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.feed-media-actions .btn-mini,
.feed-admin-actions .btn-mini {
    min-width: 22px;
    min-height: 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(209, 213, 219, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.feed-media-actions .btn-mini svg,
.feed-admin-actions .btn-mini svg {
    width: 10px;
    height: 10px;
}

.gallery.grid-view.catalog-layout {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gallery.grid-view.catalog-layout .catalog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.gallery.grid-view.catalog-layout .card-media-button,
.gallery.grid-view.catalog-layout .img-placeholder {
    width: 100%;
    height: 168px;
    background: #f8fafc;
}

.gallery.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.gallery.grid-view .card img,
.img-placeholder {
    width: 100%;
    height: 190px;
    object-fit: contain;
    display: block;
}

.gallery.grid-view.catalog-layout .card img {
    width: 100%;
    height: 168px;
    background: #f8fafc;
}

.gallery.grid-view.catalog-layout .card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery.grid-view.catalog-layout .btn-examples {
    align-self: flex-start;
}

.gallery.grid-view.catalog-layout .tag-row {
    display: none;
}

.gallery.grid-view.catalog-layout .card-top {
    align-items: flex-start;
}

.gallery.grid-view.catalog-layout .card-top strong {
    line-height: 1.2;
}

.gallery.grid-view.catalog-layout .card-meta {
    line-height: 1.35;
}

.gallery.grid-view.catalog-layout .price-tag {
    align-self: start;
    margin-top: 0;
}

.gallery.grid-view.catalog-layout .product-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery.grid-view.catalog-layout .product-admin-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.gallery.grid-view.catalog-layout .btn-examples-inline {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 9px;
}

.gallery.grid-view.catalog-layout .product-admin-actions .btn-mini,
.gallery.grid-view.catalog-layout .product-admin-stack .btn-mini {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 9px;
}

.gallery.grid-view.catalog-layout .product-admin-actions .btn-examples-inline {
    width: auto;
    min-width: 92px;
    justify-content: center;
}

.gallery.grid-view.catalog-layout .product-admin-actions .btn-mini svg,
.gallery.grid-view.catalog-layout .product-admin-stack .btn-mini svg {
    width: 11px;
    height: 11px;
}


.card-media-button {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    display: block;
    cursor: zoom-in;
}

.card-media-button img {
    width: 100%;
    display: block;
}

.gallery.list-view .card {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.gallery.list-view.catalog-layout .catalog-card {
    grid-template-columns: 112px minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    min-height: 0;
}

.gallery.list-view .card img,
.gallery.list-view .img-placeholder {
    height: 100%;
    min-height: 140px;
}

.gallery.list-view.catalog-layout .catalog-card img,
.gallery.list-view.catalog-layout .catalog-card .img-placeholder {
    min-height: 88px;
    height: 88px;
    width: 88px;
    border-radius: 6px;
}

.gallery.list-view.catalog-layout .catalog-card img {
    object-fit: contain;
    background: #f8fafc;
}

.gallery.list-view.catalog-layout .catalog-card .card-media-button,
.gallery.list-view.catalog-layout .catalog-card > .img-placeholder {
    grid-row: 1 / span 2;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    color: #475569;
    font-weight: 700;
}

.card-body {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-price-panel {
    display: none;
}

.product-admin-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: center;
}

.gallery.list-view.catalog-layout .catalog-card .catalog-price-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    width: 120px;
    min-width: 120px;
    padding: 0 0 2px 10px;
    border-left: none;
    background: transparent;
}

.gallery.list-view.catalog-layout .catalog-card .card-body .price-tag {
    display: none;
}

.gallery.list-view.catalog-layout {
    gap: 10px;
}

.catalog-group {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.catalog-group:last-child {
    margin-bottom: 0;
}

.catalog-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-group-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.catalog-group-sort {
    margin-left: auto;
    position: relative;
}

.catalog-group-hide-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 12px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.catalog-group-hide-toggle:hover {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.85);
    color: #0f172a;
    transform: translateY(-1px);
}

.catalog-group-hide-toggle svg {
    width: 17px;
    height: 17px;
}

.catalog-group-hide-toggle .icon-group-muted {
    display: none;
}

.catalog-group-is-muted {
    position: relative;
}

.catalog-group-is-muted .catalog-group-title,
.catalog-group-is-muted .catalog-group-sort,
.catalog-group-is-muted .gallery {
    opacity: 0.38;
    filter: grayscale(0.75);
}

.catalog-group-is-muted .catalog-group-hide-toggle {
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}

.catalog-group-is-muted .catalog-group-hide-toggle .icon-group-visible {
    display: none;
}

.catalog-group-is-muted .catalog-group-hide-toggle .icon-group-muted {
    display: block;
}

.group-sort-trigger {
    min-width: 176px;
    width: auto;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.group-sort-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-1px);
}

.custom-sort-menu.open .group-sort-trigger::after {
    transform: rotate(-135deg) translateY(-1px);
}

.group-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(209, 213, 219, 0.92);
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    display: none;
}

.custom-sort-menu.open .group-sort-menu {
    display: grid;
    gap: 4px;
}

.group-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.group-sort-option:hover,
.group-sort-option.active {
    background: rgba(15, 23, 42, 0.06);
}

.group-sort-default-toggle {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #ef4444;
    background: #fff;
    flex: 0 0 14px;
    cursor: pointer;
}

.group-sort-default-toggle.active {
    background: #ef4444;
    box-shadow: inset 0 0 0 2px #fff;
}

.gallery.list-view.catalog-layout .catalog-card .card-body {
    grid-row: 1 / span 2;
    padding: 0 8px 0 0;
    gap: 2px;
    justify-content: center;
}

.gallery.list-view.catalog-layout .catalog-card .btn-examples {
    margin: 2px 0 1px;
}

.gallery.list-view.catalog-layout .catalog-card .card-top {
    align-items: center;
    gap: 8px;
}

.gallery.list-view.catalog-layout .catalog-card .card-top strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.gallery.list-view.catalog-layout .catalog-card .card-top::after {
    display: none;
}

.gallery.list-view.catalog-layout .catalog-card .card-meta {
    font-size: 12px;
    color: #111827;
    line-height: 1.2;
}

.gallery.list-view.catalog-layout .catalog-card .catalog-price-panel .price-tag {
    color: #0f8f7a;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.12;
    white-space: nowrap;
}

.price-tag .price-main,
.price-tag .price-unit {
    display: block;
}

.gallery.list-view.catalog-layout .catalog-card .catalog-price-panel .price-unit {
    font-size: 12px;
    font-weight: 400;
    color: #111827;
    line-height: 1.2;
}

.gallery.list-view.catalog-layout .catalog-card .tag-row {
    display: none;
}

.gallery.list-view.catalog-layout .catalog-card .product-admin-actions {
    padding-left: 0;
}

.gallery.list-view.catalog-layout .catalog-card .product-admin-actions,
.gallery.grid-view.catalog-layout .catalog-card .product-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery.list-view.catalog-layout .catalog-card .product-admin-actions {
    display: contents;
}

.gallery.list-view.catalog-layout .catalog-card .product-admin-actions > .btn-examples-inline {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    margin-top: 2px;
}

.gallery.list-view.catalog-layout .catalog-card .product-admin-stack {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
}

.product-admin-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-inline-link {
    display: inline-flex;
    width: fit-content;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.card-top strong {
    min-width: 0;
}

.card-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
}

.card-meta {
    color: #6b7280;
    font-size: 12px;
}

.price-tag {
    color: #047857;
    font-weight: 800;
    font-size: 13px;
}

.price-muted {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    background: #eef6ff;
    color: #0f766e;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.alert-box,
.empty-state {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.alert-box {
    border-color: #fca5a5;
    background: #fff5f5;
    color: #991b1b;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.modal-content {
    box-sizing: border-box;
    width: min(100%, 460px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    padding: 22px;
    position: relative;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overflow-x: hidden;
    margin-inline: auto;
}

.modal-wide {
    width: min(100%, 640px);
}

.modal-drafts {
    width: min(100%, 980px);
}

#modalAdminLogin .modal-content {
    width: min(100%, 760px);
    max-height: calc(100vh - 24px);
}

#modalManageTags .modal-content {
    width: min(100%, 620px);
}

#modalUploadCatalog .modal-content,
#modalUploadGallery .modal-content,
#modalEditGallery .modal-content,
#modalEditPost .modal-content,
#modalBulkDraftUpload .modal-content {
    width: min(100%, 540px);
    padding: 18px;
}

#modalEdit .modal-content,
#modalAdd .modal-content {
    width: min(100%, 520px);
}

#modalFolderLayout .modal-content {
    width: min(100%, 560px);
}

#modalUploadCatalog .form-stack,
#modalUploadGallery .form-stack,
#modalEditGallery .form-stack,
#modalEditPost .form-stack,
#modalBulkDraftUpload .form-stack {
    gap: 10px;
    margin-top: 12px;
}

#modalUploadCatalog .form-split,
#modalUploadGallery .form-split,
#modalEditGallery .form-split,
#modalEditPost .form-split,
#modalBulkDraftUpload .form-split {
    gap: 10px;
}

#modalUploadCatalog .category-builder,
#modalUploadCatalog .tag-builder,
#modalUploadGallery .category-builder,
#modalUploadGallery .tag-builder,
#modalEditGallery .category-builder,
#modalEditGallery .tag-builder,
#modalEditPost .category-builder,
#modalEditPost .tag-builder {
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
}

#modalUploadCatalog .category-builder-head,
#modalUploadGallery .category-builder-head,
#modalEditGallery .category-builder-head,
#modalEditPost .category-builder-head {
    gap: 2px;
}

#modalUploadCatalog .category-builder-head strong,
#modalUploadCatalog .tag-builder-label,
#modalUploadGallery .category-builder-head strong,
#modalUploadGallery .tag-builder-label,
#modalEditGallery .category-builder-head strong,
#modalEditGallery .tag-builder-label,
#modalEditPost .category-builder-head strong,
#modalEditPost .tag-builder-label {
    font-size: 13px;
}

#modalUploadCatalog .category-builder-head span,
#modalUploadGallery .category-builder-head span,
#modalEditGallery .category-builder-head span,
#modalEditPost .category-builder-head span {
    font-size: 11px;
}

#modalUploadCatalog input,
#modalUploadCatalog select,
#modalUploadGallery input,
#modalUploadGallery select,
#modalEditGallery input,
#modalEditGallery select,
#modalEditPost input,
#modalEditPost select,
#modalBulkDraftUpload input,
#modalBulkDraftUpload select,
#modalBulkDraftUpload textarea {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 12px;
}

#modalUploadCatalog .btn-save,
#modalUploadGallery .btn-save,
#modalEditGallery .btn-save,
#modalEditPost .btn-save,
#modalBulkDraftUpload .btn-save {
    min-height: 40px;
}

#modalUploadCatalog .file-field,
#modalUploadGallery .file-field,
#modalEditGallery .file-field,
#modalEditPost .file-field {
    gap: 6px;
}

.bulk-upload-help {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.draft-upload-field {
    display: grid;
    gap: 6px;
}

.draft-upload-field span {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.draft-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.compact-empty-state {
    padding: 14px 16px;
    border-radius: 16px;
}

.compact-empty-state h2 {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.compact-empty-state p {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 0;
}

.draft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.draft-grid-group + .draft-grid-group {
    margin-top: 18px;
}

.draft-group-label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.85);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.12);
}

.draft-grid-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #f8fafc;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.draft-grid-card.is-selected {
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.draft-grid-media {
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 1 / 1;
}

.draft-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.draft-grid-info {
    display: grid;
    gap: 4px;
}

.draft-grid-info strong {
    font-size: 13px;
    line-height: 1.35;
    color: #0f172a;
}

.draft-select-toggle,
.draft-grid-delete {
    position: absolute;
    top: 16px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.draft-select-toggle {
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: transparent;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.draft-grid-card.is-selected .draft-select-toggle {
    background: #2563eb;
    color: #fff;
}

.draft-select-check {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.draft-grid-delete {
    right: 16px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.draft-grid-delete:hover {
    background: rgba(220, 38, 38, 0.9);
}

.draft-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.draft-mode-badge.is-gallery {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.draft-mode-badge.is-catalog {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.draft-grid-help {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.draft-selection-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.draft-selection-copy {
    display: grid;
    gap: 2px;
}

.draft-selection-copy strong {
    font-size: 14px;
    color: #0f172a;
}

.draft-selection-copy span {
    font-size: 12px;
    color: #64748b;
}

.draft-selection-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
}

.draft-selection-actions button {
    min-height: 44px;
    white-space: nowrap;
}

.draft-selection-bar button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bulk-publish-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 8px;
    justify-content: start;
}

.draft-publish-mode-note {
    margin: -4px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
}

.bulk-publish-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.bulk-publish-action-btn {
    width: 100%;
    min-height: 44px;
}

.bulk-publish-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
}

.bulk-publish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bulk-publish-title-overlay {
    position: absolute;
    z-index: 2;
    left: 6px;
    right: 6px;
    bottom: 6px;
    min-height: 24px;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    outline: none;
}

.bulk-publish-title-overlay:focus {
    border-color: rgba(96, 165, 250, 0.92);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22), 0 6px 14px rgba(15, 23, 42, 0.2);
}

#modalUploadCatalog .gallery-upload-topbar,
#modalUploadGallery .gallery-upload-topbar,
#modalEditGallery .gallery-upload-topbar,
#modalEditPost .gallery-upload-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 44px;
}

#modalUploadCatalog .gallery-upload-topbar h2,
#modalUploadGallery .gallery-upload-topbar h2,
#modalEditGallery .gallery-upload-topbar h2,
#modalEditPost .gallery-upload-topbar h2 {
    margin: 0;
}

#modalUploadCatalog .gallery-upload-field,
#modalUploadGallery .gallery-upload-field,
#modalEditGallery .gallery-upload-field,
#modalEditPost .gallery-upload-field {
    align-items: stretch;
}

#modalUploadCatalog .gallery-upload-actions,
#modalUploadGallery .gallery-upload-actions,
#modalEditGallery .gallery-upload-actions {
    display: flex;
    justify-content: flex-end;
}

#modalUploadCatalog .file-trigger,
#modalUploadGallery .file-trigger,
#modalEditGallery .file-trigger,
#modalEditPost .file-trigger {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
}

#modalUploadCatalog .image-preview-box,
#modalUploadGallery .image-preview-box,
#modalEditGallery .image-preview-box,
#modalEditPost .image-preview-box {
    max-width: 150px;
    min-height: 96px;
    border-radius: 14px;
}

#modalUploadCatalog .image-preview-box img,
#modalUploadGallery .image-preview-box img,
#modalEditGallery .image-preview-box img,
#modalEditPost .image-preview-box img {
    height: 96px;
}

#modalUploadCatalog .file-field .image-overlay-title,
#modalUploadGallery .file-field .image-overlay-title,
#modalEditGallery .file-field .image-overlay-title,
#modalEditPost .file-field .image-overlay-title {
    left: 8px;
    right: 8px;
    bottom: 6px;
    min-height: 26px;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 9px;
}

#modalUploadCatalog .tag-chip,
#modalUploadCatalog .tag-suggestion,
#modalUploadGallery .tag-chip,
#modalUploadGallery .tag-suggestion,
#modalEditGallery .tag-chip,
#modalEditGallery .tag-suggestion,
#modalEditPost .tag-chip,
#modalEditPost .tag-suggestion {
    padding: 6px 10px;
    font-size: 11px;
}

.product-gallery-modal {
    padding: 20px;
    background: rgba(0, 0, 0, 0.84);
}

.product-gallery-shell {
    position: relative;
    width: min(1200px, 100%);
    min-height: min(820px, calc(100vh - 40px));
    margin: 0 auto;
    display: block;
}

.product-gallery-counter {
    position: absolute;
    top: 16px;
    left: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 700;
    z-index: 3;
}

.product-gallery-actions {
    position: absolute;
    top: 16px;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.gallery-action-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.gallery-action-btn:hover {
    background: rgba(30, 41, 59, 0.96);
    transform: translateY(-1px);
}

.gallery-action-btn.active {
    background: rgba(37, 99, 235, 0.9);
}

.product-gallery-viewer {
    position: relative;
    width: min(92vw, 880px);
    margin: 0 auto;
}

.gallery-action-btn svg {
    width: 18px;
    height: 18px;
}

.product-gallery-panel {
    background: transparent;
    border-radius: 0;
    padding: 36px 0 0;
    position: relative;
    box-shadow: none;
    width: 100%;
    min-height: min(820px, calc(100vh - 40px));
    display: grid;
    place-items: center;
}

.product-gallery-stage {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    height: min(66vh, 700px);
    margin: auto;
    min-height: min(520px, calc(100vh - 180px));
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: default;
    user-select: none;
}

.product-gallery-stage img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.18s ease;
    transform-origin: center center;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
}

.product-gallery-stage.is-zoomed {
    overflow: hidden;
    touch-action: none;
    cursor: default;
}

.product-gallery-stage img.is-zoomed {
    cursor: default;
}

.product-gallery-stage.is-panning,
.product-gallery-stage.is-panning img {
    cursor: default;
}

.product-gallery-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    padding: 0 8px;
    color: #fff;
    max-width: min(92vw, 760px);
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: end;
}

.product-gallery-info-main,
.product-gallery-info-side {
    min-width: 0;
}

.product-gallery-info-side {
    justify-self: end;
    text-align: right;
}

.product-gallery-title {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.product-gallery-meta {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 520px;
    text-align: left;
}

.product-gallery-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 560px;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.product-gallery-tags span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-gallery-price {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    min-height: 17px;
    color: #86efac;
    font-size: 14px;
    font-weight: 800;
}

.product-gallery-examples {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 24px;
    margin-top: 10px;
    padding: 3px 11px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border-color: rgba(203, 213, 225, 0.95);
    font-size: 11px;
}

.product-gallery-examples[hidden] {
    display: none !important;
}

.product-gallery-folder {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    text-align: right;
}

.product-gallery-folder a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 0;
}

.product-gallery-folder a:hover {
    color: #fff;
    border-bottom-color: transparent;
}

.product-gallery-folder-separator {
    color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 821px) {
    .product-gallery-shell {
        width: min(1280px, 100%);
        min-height: min(860px, calc(100vh - 40px));
        padding-top: 48px;
    }

    .product-gallery-panel {
        padding: 36px 0 110px;
        min-height: min(760px, calc(100vh - 110px));
    }

    .product-gallery-counter {
        top: 8px;
        left: 0;
        z-index: 5;
    }

    .product-gallery-actions {
        top: 0;
        right: 0;
        z-index: 5;
    }

    .product-gallery-stage {
        width: 100%;
        height: min(68vh, 680px);
        min-height: 0;
        margin: 0 auto;
    }

    .product-gallery-viewer {
        width: min(72vw, 820px);
    }

    .product-gallery-info {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 12px;
        transform: translateX(-50%);
        width: min(72vw, 820px);
        max-width: min(72vw, 820px);
        padding: 0;
        text-align: left;
    }

    .product-gallery-tags {
        justify-content: flex-end;
        max-width: 100%;
    }

    .product-gallery-folder {
        margin-top: 7px;
    }

    .product-gallery-meta,
    .product-gallery-title,
    .product-gallery-folder {
        max-width: 100%;
    }
}

@media (max-width: 920px) {
    .product-gallery-modal {
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
    }

    .product-gallery-shell {
        width: 100%;
        min-height: 100dvh;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .product-gallery-counter {
        position: fixed;
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: 12px;
        z-index: 2105;
        max-width: calc(100vw - 220px);
        font-size: 13px;
        line-height: 1.25;
    }

    .product-gallery-actions {
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: 10px;
        z-index: 2110;
        gap: 6px;
        max-width: calc(100vw - 24px);
        overflow: visible;
    }

    .gallery-action-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        flex: 0 0 38px;
    }

    .gallery-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .product-gallery-panel {
        padding-top: 58px;
        min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}

.product-gallery-folder:empty,
.product-gallery-title:empty,
.product-gallery-meta:empty,
.product-gallery-tags:empty {
    display: none;
}

.product-gallery-date {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    margin-top: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    z-index: 4;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.gallery-nav:hover {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.gallery-nav svg {
    width: 18px;
    height: 18px;
}

.gallery-nav.prev {
    left: 14px;
}

.gallery-nav.next {
    right: 14px;
}

.gallery-close {
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.modal-text {
    color: #4b5563;
    margin-top: 10px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

#modalLicenseBlocked .modal-content {
    width: min(100%, 380px);
    padding: 18px;
    border-radius: 18px;
}

#modalLicenseBlocked h2 {
    margin: 0 28px 6px 0;
    font-size: 17px;
}

#modalLicenseBlocked .modal-text {
    margin-top: 0;
    font-size: 14px;
}

#modalLicenseBlocked .modal-actions {
    margin-top: 14px;
    gap: 8px;
}

#modalAppAlert .modal-content {
    width: min(100%, 420px);
}

#modalAppAlert {
    z-index: 2600;
}

#modalAppAlert h2 {
    margin: 0 28px 6px 0;
    font-size: 18px;
}

#modalAppAlert .modal-actions {
    margin-top: 14px;
    gap: 8px;
}

#modalAppAlert .btn-secondary,
#modalAppAlert .btn-save {
    min-height: 38px;
    padding: 9px 14px;
}

#modalLicenseBlocked .btn-secondary,
#modalLicenseBlocked .btn-save {
    min-height: 38px;
    padding: 9px 14px;
}

.admin-login-state {
    display: grid;
    gap: 14px;
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 34px;
    margin-bottom: 12px;
}

.admin-modal-head h2 {
    margin: 0;
}

.admin-logout-inline-form {
    margin: 0;
}

.admin-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-logout-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-color: rgba(220, 38, 38, 0.42);
    background: #fff1f2;
    color: #be123c;
    border-radius: 12px;
    line-height: 1;
    text-decoration: none;
}

.admin-logout-inline:hover {
    border-color: rgba(190, 18, 60, 0.55);
    background: #ffe4e6;
}

.admin-logout-inline svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.admin-logout-button::before,
.admin-logout-button::after {
    content: none;
}

.admin-install-inline {
    min-height: 32px;
    padding: 7px 12px;
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.admin-install-inline:hover {
    border-color: rgba(37, 99, 235, 0.38);
    background: #eff6ff;
}

.admin-reset-inline {
    min-height: 32px;
    padding: 7px 12px;
    border-color: rgba(239, 68, 68, 0.24);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

.admin-reset-inline:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: #fff1f2;
}

.admin-login-state p {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.admin-login-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.admin-login-success {
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}

.membership-inline-success,
.settings-inline-success {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
}

.license-sync-flash {
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #047857;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-card p.license-sync-flash,
.admin-status-card p.license-sync-flash.admin-login-success {
    color: #047857;
}

.license-sync-flash.admin-login-error {
    color: #dc2626;
}

.admin-status-card p.license-sync-flash.admin-login-error {
    color: #dc2626;
}

.admin-layout-form {
    padding-top: 4px;
    border-top: 1px solid #e2e8f0;
}

.admin-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-layout-field {
    display: grid;
    gap: 4px;
}

.admin-layout-field span {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.admin-layout-field input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}

.admin-layout-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.admin-layout-field input[type="number"]::-webkit-inner-spin-button,
.admin-layout-field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.admin-layout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-layout-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.admin-layout-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.admin-number-stepper {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: stretch;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.admin-number-stepper input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 800;
    background: transparent;
}

.admin-number-stepper input:focus {
    outline: none;
    box-shadow: none;
}

.admin-number-stepper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-number-stepper-button {
    width: 36px;
    min-width: 36px;
    border: 0;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.admin-number-stepper-button:hover,
.admin-number-stepper-button:focus-visible {
    background: #dbeafe;
    color: #1e40af;
}

.admin-number-stepper-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.admin-layout-help {
    margin: -2px 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.login-section-copy {
    display: grid;
    gap: 4px;
}

.login-section-copy strong {
    font-size: 14px;
    color: #0f172a;
}

.login-section-copy p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.member-status-card,
.admin-status-card,
.membership-panel {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #f8fafc;
    padding: 14px;
}

.membership-panel {
    margin-top: 0;
}

.member-form-field {
    display: grid;
    gap: 8px;
}

.member-form-field-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    padding-left: 2px;
    letter-spacing: 0.01em;
}

.member-form-field input[readonly] {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
}

.member-form-field-help {
    margin-top: -2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.member-form-link {
    align-self: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.member-form-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.member-form-link:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
    border-radius: 8px;
}

.member-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.member-password-wrap input {
    padding-right: 48px;
}

.member-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.member-password-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.member-password-toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 1px;
}

.member-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.member-password-toggle .icon-hide {
    display: none;
}

.member-password-toggle.is-visible .icon-show {
    display: none;
}

.member-password-toggle.is-visible .icon-hide {
    display: block;
}

.membership-panel-compact {
    gap: 10px;
}

.member-status-head,
.admin-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.member-status-head strong,
.admin-status-row strong {
    font-size: 14px;
    color: #0f172a;
}

.member-status-head span,
.admin-status-row span {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    padding: 5px 8px;
}

.admin-status-row span.is-active {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
}

.admin-status-row span.is-expired {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.16);
}

.admin-status-row span.is-pending {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
}

.member-status-card p,
.admin-status-card p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

.admin-status-card p strong {
    color: #0f172a;
}

.info-contact-card.has-logo {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.info-contact-logo {
    width: 116px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.info-contact-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px;
}

.info-contact-copy {
    min-width: 0;
}

.info-contact-copy a {
    text-decoration: none;
}

.info-contact-copy a:hover {
    text-decoration: none;
}

.admin-status-card p.license-sync-separator {
    border-top: 1px solid rgba(148, 163, 184, 0.32);
    margin-top: 14px;
    padding-top: 12px;
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(17, 24, 39, 0.82)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 18px, rgba(255, 255, 255, 0.02) 18px 42px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.global-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.global-loading-panel {
    width: min(430px, calc(100vw - 48px));
    padding: 30px 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(31, 41, 55, 0.9)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 16px, rgba(255, 255, 255, 0.02) 16px 34px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    color: #fff;
}

.global-loading-panel strong {
    display: block;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.global-loading-track {
    position: relative;
    height: 18px;
    margin-top: 24px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.65);
    border-radius: 999px;
    background: #0b1117;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.72);
}

.global-loading-track span {
    position: absolute;
    inset: 2px auto 2px 2px;
    width: 64%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e 0%, #6dff20 74%, rgba(109, 255, 32, 0) 100%);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
    animation: global-loading-sweep 1.1s ease-in-out infinite alternate;
}

.global-loading-panel p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

@keyframes global-loading-sweep {
    from {
        width: 38%;
    }
    to {
        width: 86%;
    }
}

.member-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.member-status-meta span {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.admin-license-grid {
    display: grid;
    gap: 8px;
}

.admin-license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-update-actions {
    justify-content: space-between;
}

.admin-update-actions .btn-secondary,
.admin-update-actions .btn-save {
    flex: 1 1 180px;
}

.admin-license-actions .btn-save,
.admin-license-actions .btn-secondary {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
}

.admin-license-actions .btn-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-license-whatsapp {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-color: #86efac;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.14);
}

.admin-license-whatsapp:hover,
.admin-license-whatsapp:focus-visible {
    background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
    color: #14532d;
}

.admin-license-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    padding: 0;
    flex: 0 0 36px;
}

.admin-license-refresh svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.admin-license-field {
    display: grid;
    gap: 6px;
}

.admin-license-url-field {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    position: relative;
}

.admin-license-url-field label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-license-url-dropdown {
    position: relative;
    display: block;
}

.admin-license-url-dropdown .admin-license-url-input {
    width: 100%;
    padding-right: 38px;
}

.admin-license-url-save {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-license-url-picker {
    display: grid;
    height: 0;
    position: relative;
    z-index: 30;
}

.admin-license-url-picker-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 34px;
    height: calc(100% - 2px);
    border: 0;
    border-left: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0 11px 11px 0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.admin-license-url-picker-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transform: translate(-50%, -35%);
}

.admin-license-url-picker-toggle[aria-expanded="true"]::before {
    border-top: 0;
    border-bottom: 6px solid currentColor;
    transform: translate(-50%, -55%);
}

.admin-license-url-add,
.admin-license-url-option-use,
.admin-license-url-option-remove {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.admin-license-url-option-use,
.admin-license-url-option-remove {
    width: 36px;
    min-width: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.admin-license-url-option-use svg,
.admin-license-url-option-remove svg {
    width: 16px;
    height: 16px;
}

.admin-license-url-picker-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.admin-license-url-picker-panel[hidden] {
    display: none;
}

.admin-license-url-options {
    display: grid;
    gap: 7px;
}

.admin-license-url-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
}

.admin-license-url-option-row input {
    min-height: 36px;
    font-size: 12px;
}

.admin-license-url-option-remove {
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.35);
    background: #fff1f2;
}

.admin-license-url-add {
    width: 100%;
}

.admin-license-app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr) auto;
    align-items: end;
    gap: 10px;
}

.admin-license-version-grid {
    grid-template-columns: minmax(120px, 1fr) auto;
}

.admin-license-app-save {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-license-field span {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    padding-left: 2px;
}

.admin-license-field input,
.admin-license-field select {
    min-height: 40px;
}

.admin-license-field input:disabled[data-license-sync-key-display] {
    color: #334155;
    background: #f8fafc;
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .admin-license-url-field {
        grid-template-columns: 1fr;
    }

    .admin-license-url-save {
        justify-self: stretch;
    }

    .admin-license-url-picker {
        grid-column: 1 / -1;
        justify-items: stretch;
    }

    .admin-license-url-picker-panel {
        position: static;
        width: 100%;
    }

    .admin-license-url-option-row {
        grid-template-columns: 1fr;
    }

    .admin-license-app-grid {
        grid-template-columns: 1fr;
    }

    .admin-license-app-save {
        justify-self: stretch;
    }
}

.admin-status-card-muted {
    display: grid;
    gap: 10px;
}

.license-gate-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.license-gate-card {
    width: min(100%, 460px);
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.license-gate-logo {
    width: auto;
    max-width: 180px;
    max-height: 56px;
}

.license-gate-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.license-gate-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

.license-gate-card h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.license-gate-text,
.license-gate-meta,
.license-gate-warning {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.license-gate-text,
.license-gate-meta {
    color: #475569;
}

.license-gate-warning {
    color: #b45309;
    font-weight: 700;
}

.license-gate-form {
    margin-top: 4px;
}

.license-gate-actions {
    display: flex;
    justify-content: flex-start;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-currency-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 96px;
    gap: 8px;
    min-width: 0;
}

.price-currency-control input,
.price-currency-control select {
    min-width: 0;
}

.price-unit-input {
    text-align: center;
    font-weight: 700;
    padding-inline: 8px;
}

#modalUploadCatalog .form-split > input[name="description"],
#modalEditPost .form-split > #editPostDescription {
    grid-column: 1 / -1;
}

#modalUploadCatalog .form-split > .price-currency-control,
#modalEditPost .form-split > .price-currency-control {
    grid-column: 1 / -1;
}

#modalUploadCatalog .tag-builder .gallery-inline-field,
#modalUploadGallery .tag-builder .gallery-inline-field,
#modalEditPost .tag-builder .gallery-inline-field {
    grid-template-columns: 1fr;
}

#modalUploadCatalog .tag-builder-label,
#modalUploadGallery .tag-builder-label,
#modalEditPost .tag-builder-label {
    display: none;
}

#modalUploadCatalog .category-builder-head strong,
#modalUploadGallery .category-builder-head strong,
#modalEditPost .category-builder-head strong {
    display: none;
}

.currency-select {
    font-weight: 800;
    text-align: center;
    padding-inline: 8px;
}

.category-builder {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #f8fafc;
}

.category-builder-head {
    display: grid;
    gap: 3px;
}

.category-builder-head strong {
    font-size: 14px;
    color: #0f172a;
}

.category-builder-head span {
    font-size: 12px;
    color: #64748b;
}

.category-field {
    display: grid;
    gap: 8px;
}

.category-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
}

.category-inline-add-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.category-inline-add-btn:hover,
.category-inline-add-btn:focus-visible {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.category-inline-add-btn svg {
    width: 14px;
    height: 14px;
}

.category-builder-note {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.tag-builder {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #f8fafc;
}

.tag-builder-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.tag-entry-box {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tag-entry-box:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.tag-entry-box input {
    flex: 1 1 160px;
    min-width: 120px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tag-entry-box input:focus {
    outline: none;
    box-shadow: none;
}

.tag-chip-list,
.tag-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-entry-box .tag-chip-list {
    width: auto;
    flex: 0 1 auto;
    gap: 6px;
}

.tag-chip,
.tag-suggestion {
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    white-space: nowrap;
}

.tag-suggestion {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(203, 213, 225, 0.72);
    color: #64748b;
    font-weight: 600;
    opacity: 0.86;
}

.tag-suggestion:hover,
.tag-chip:hover {
    border-color: rgba(59, 130, 246, 0.35);
    color: #2563eb;
}

.hidden-input {
    display: none;
}

.file-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.file-field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    color: #334155;
}

.file-field input[type="text"] {
    background: #fff;
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
}

.image-preview-box {
    position: relative;
    width: 100%;
    max-width: 190px;
    min-height: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
}

.image-preview-box img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.multi-image-preview-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

#modalUploadCatalog .gallery-form-single,
#modalUploadGallery .gallery-form-single,
#modalEditGallery .gallery-form-single,
#modalEditPost .gallery-form-single {
    grid-template-columns: 1fr;
}

#modalUploadCatalog .gallery-inline-field,
#modalUploadGallery .gallery-inline-field,
#modalEditGallery .gallery-inline-field,
#modalEditPost .gallery-inline-field {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 10px;
}

#modalUploadCatalog .category-builder .gallery-inline-field,
#modalUploadGallery .category-builder .gallery-inline-field,
#modalEditPost .category-builder .gallery-inline-field {
    grid-template-columns: 1fr;
}

#modalUploadCatalog .category-builder-head,
#modalUploadGallery .category-builder-head,
#modalEditPost .category-builder-head {
    display: none;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#modalUploadCatalog .category-builder-head .inline-check,
#modalEditPost .category-builder-head .inline-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#modalUploadCatalog .category-field .inline-check,
#modalEditPost .category-field .inline-check {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: auto;
    gap: 6px;
    margin-top: 8px;
    white-space: nowrap;
}

#modalUploadCatalog .gallery-inline-field .category-builder-head,
#modalUploadCatalog .gallery-inline-field .tag-builder-label,
#modalUploadGallery .gallery-inline-field .category-builder-head,
#modalUploadGallery .gallery-inline-field .tag-builder-label,
#modalEditGallery .gallery-inline-field .category-builder-head,
#modalEditGallery .gallery-inline-field .tag-builder-label,
#modalEditPost .gallery-inline-field .category-builder-head,
#modalEditPost .gallery-inline-field .tag-builder-label {
    margin: 0;
}

#modalUploadCatalog .gallery-inline-field .category-field,
#modalUploadGallery .gallery-inline-field .category-field,
#modalEditGallery .gallery-inline-field .category-field,
#modalEditPost .gallery-inline-field .category-field {
    gap: 0;
}

#modalUploadCatalog .gallery-inline-field input,
#modalUploadCatalog .gallery-inline-field select,
#modalUploadGallery .gallery-inline-field input,
#modalUploadGallery .gallery-inline-field select,
#modalEditGallery .gallery-inline-field input,
#modalEditGallery .gallery-inline-field select,
#modalEditPost .gallery-inline-field input,
#modalEditPost .gallery-inline-field select {
    width: 100%;
}

.inline-check {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    column-gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.15;
    max-width: none;
    text-align: left;
    white-space: nowrap;
}

.inline-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    margin-top: 1px;
}

.inline-check-under {
    margin-top: 4px;
}

.member-remember-field {
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
}

.member-remember-field input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.multi-image-preview-box[hidden],
.image-preview-box[hidden] {
    display: none !important;
}

.multi-image-preview-main {
    width: 104px;
    max-width: 104px;
}

#modalUploadGallery .multi-image-preview-main.image-preview-box,
#modalUploadGallery .multi-image-thumb,
#modalUploadGallery .multi-image-thumb img,
#modalEditGallery .multi-image-preview-main.image-preview-box,
#modalEditGallery .multi-image-thumb,
#modalEditGallery .multi-image-thumb img {
    width: 104px !important;
    max-width: 104px !important;
}

.multi-image-preview-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.multi-image-thumb {
    position: relative;
    width: 104px;
}

.bulk-draft-thumb {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bulk-draft-thumb.active img {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.multi-image-preview-strip img {
    width: 104px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.multi-image-preview-main.image-preview-box {
    min-height: 104px;
    height: 104px;
    border-radius: 10px;
}

.multi-image-preview-main.image-preview-box img {
    width: 104px;
    height: 104px;
}

#modalUploadGallery .multi-image-preview-main.image-preview-box,
#modalUploadGallery .multi-image-thumb,
#modalEditGallery .multi-image-preview-main.image-preview-box,
#modalEditGallery .multi-image-thumb {
    min-height: 104px !important;
    height: 104px !important;
}

.multi-image-thumb-title {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    font-size: 10px;
    line-height: 1.15;
    color: #fff;
    border-radius: 7px;
    padding: 3px 5px;
    min-height: 20px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    z-index: 1;
}

.multi-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.multi-image-remove:hover {
    background: rgba(220, 38, 38, 0.88);
}

#modalBulkDraftUpload .modal-content {
    width: min(100%, 520px);
}

#modalBulkDraftUpload .modal-content {
    width: min(100%, 500px);
    max-height: min(calc(100vh - 28px), 540px);
    padding: 16px;
    overflow-x: hidden;
}

#modalBulkDraftUpload .gallery-upload-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    padding-right: 24px;
}

#modalBulkDraftUpload .gallery-upload-topbar h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.15;
}

#modalBulkDraftUpload .drafts-upload-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#modalBulkDraftUpload .file-trigger {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

#modalBulkDraftUpload .form-stack {
    gap: 8px;
    margin-top: 10px;
}

#modalBulkDraftUpload .bulk-upload-help {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
}

#modalBulkDraftUpload textarea {
    min-height: 72px;
    max-height: 96px;
}

#modalBulkDraftUpload .btn-save {
    min-height: 38px;
}

#modalBulkDraftUpload .multi-image-preview-box {
    display: grid;
    gap: 8px;
}

#modalBulkDraftUpload .multi-image-preview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

#modalBulkDraftUpload .multi-image-thumb {
    width: 100%;
    min-width: 0;
}

#modalBulkDraftUpload .multi-image-preview-strip img {
    width: 100%;
    height: 96px;
}

#modalBulkDraftUpload .bulk-draft-thumb {
    border-radius: 10px;
}

#modalBulkDraftUpload .bulk-draft-thumb {
    position: relative;
    overflow: hidden;
}

#modalBulkDraftUpload .bulk-draft-title-overlay {
    left: 6px;
    right: 6px;
    bottom: 6px;
    min-height: 24px;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.25;
    border-radius: 8px;
}

#modalBulkDraftUpload .bulk-draft-remove {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 22px !important;
    height: 22px !important;
}

@media (max-width: 640px) {
    #modalBulkDraftUpload .modal-content {
        width: min(100%, 440px);
        max-height: calc(100vh - 20px);
        padding: 14px;
    }

    #modalBulkDraftUpload .gallery-upload-topbar {
        gap: 8px;
        padding-right: 20px;
    }

    #modalBulkDraftUpload .gallery-upload-topbar h2 {
        font-size: 16px;
    }

    #modalBulkDraftUpload .file-trigger {
        min-height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }

    #modalBulkDraftUpload textarea {
        min-height: 64px;
    }
}

#modalUploadGallery .multi-image-preview-main .multi-image-remove,
#modalUploadGallery .multi-image-thumb .multi-image-remove,
#modalEditGallery .multi-image-preview-main .multi-image-remove,
#modalEditGallery .multi-image-thumb .multi-image-remove {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
}

.multi-image-preview-main .image-overlay-title {
    left: 4px;
    right: 4px;
    bottom: 4px;
    min-height: 20px;
    padding: 3px 5px;
    font-size: 10px;
    border-radius: 7px;
}

.file-field .image-overlay-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    width: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    min-height: 32px;
    line-height: 1.3;
}

.image-overlay-title:not(.is-editing) {
    caret-color: transparent;
}

.image-overlay-title.is-editing {
    caret-color: #ffffff;
}

.file-field .image-overlay-title:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.82);
}

.hidden-form {
    display: none;
}

.section-actions {
    display: flex;
    gap: 6px;
}

.compact-stack {
    gap: 10px;
}

.modal-inline-actions {
    display: flex;
    justify-content: flex-start;
}

.modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 34px;
    margin-bottom: 12px;
}

.modal-title-row h2 {
    margin: 0;
}

.modal-layout-picker h2 {
    margin-bottom: 14px;
}

.folder-layout-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    justify-items: center;
}

.folder-layout-option {
    position: relative;
    display: grid;
    gap: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.folder-layout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.folder-layout-option-label {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}

.folder-layout-preview {
    width: 48px;
    height: 36px;
    position: relative;
    border-radius: 8px;
    border: 1px solid #d7d9e2;
    background:
        linear-gradient(to right, rgba(158, 162, 173, 0.24) 1px, transparent 1px) 0 0 / 25% 100%,
        linear-gradient(to bottom, rgba(158, 162, 173, 0.24) 1px, transparent 1px) 0 0 / 100% 25%,
        #f2f3f7;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.folder-layout-preview span {
    display: none;
}

.folder-layout-preview::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc((100% - 6px) * var(--layout-width, 2) / 4);
    height: calc((100% - 6px) * var(--layout-height, 2) / 4);
    border-radius: 5px;
    background: linear-gradient(135deg, #2f80ed 0%, #2563eb 100%);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.folder-layout-option input:checked + .folder-layout-preview {
    border-color: #2f80ed;
    box-shadow:
        0 0 0 2px rgba(47, 128, 237, 0.95),
        0 2px 6px rgba(15, 23, 42, 0.1);
}

.folder-layout-option input:checked ~ .folder-layout-option-label {
    color: #1d4ed8;
}

.order-list {
    display: grid;
    gap: 8px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #f8fafc;
}

.order-item-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.order-item-actions {
    display: flex;
    gap: 6px;
}

.nested-order-item {
    background: #fff;
}

.tag-manage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-manage-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: auto;
    padding: 2px 4px 2px 7px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tag-manage-item .order-item-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 2px 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.tag-manage-item .order-item-actions {
    gap: 2px;
}

.tag-manage-item .order-item-actions .btn-mini {
    width: 24px;
    height: 24px;
}

.btn-compact {
    width: auto;
    min-width: 0;
    padding: 10px 14px;
}

.btn-compact-inline {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
}

.btn-danger {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.detail-page {
    padding: 22px;
}

.detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

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

.detail-type {
    color: #6b7280;
    margin-bottom: 6px;
}

.detail-price {
    font-size: 26px;
    font-weight: 800;
    color: #047857;
    margin-bottom: 20px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.detail-meta-grid div {
    background: #f8fbfd;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.detail-meta-grid span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.detail-gallery {
    display: grid;
    gap: 10px;
}

.detail-gallery img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 1080px) {
    .catalog-folder-strip {
        --folder-strip-columns: var(--catalog-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--catalog-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .catalog-folder-strip.gallery-folder-strip {
        --folder-strip-columns: var(--gallery-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .catalog-folder-strip.all-square-layout,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout,
    .catalog-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.all-square-layout.is-third-level,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-third-level {
        --folder-strip-columns: var(--catalog-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--catalog-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .catalog-folder-strip.gallery-folder-strip.all-square-layout,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-third-level {
        --folder-strip-columns: var(--gallery-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .catalog-folder-strip.is-nested,
    .catalog-folder-strip.is-third-level {
        --folder-strip-columns: var(--catalog-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--catalog-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .catalog-folder-strip.gallery-folder-strip.is-nested,
    .catalog-folder-strip.gallery-folder-strip.is-third-level {
        --folder-strip-columns: var(--gallery-category-columns-tablet, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-tablet, 3), minmax(0, 1fr));
    }

    .top-header {
        grid-template-columns: minmax(140px, 1fr) minmax(260px, 420px) auto;
        padding-inline: 14px;
    }

    .header-action-btn {
        font-size: 12px;
        gap: 4px;
    }

    .gallery.list-view.gallery-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery.grid-view.catalog-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .product-gallery-modal {
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
    }

    .gallery.grid-view.gallery-layout {
        column-count: 3;
    }

    .gallery-date-title {
        margin: 2px 0 8px;
        padding: 0;
        font-size: 12px;
    }

    .gallery-date-head {
        margin: 2px 0 8px;
        padding-right: 0;
        min-height: 0;
        display: grid;
        gap: 8px;
    }

    .gallery-date-head .gallery-page-sort {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
    }

    .top-header {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        height: 58px;
        padding: 8px 12px;
        gap: 8px;
    }

    .header-brand-row {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        order: 2;
        flex: 1;
    }

    .brand-link {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .brand-name {
        font-size: 14px;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-slogan {
        display: block;
        font-size: 10px;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-logo-image,
    .logo-e {
        width: 30px;
        height: 30px;
    }

    .about-info-copy .about-profile-title {
        font-size: 14px;
    }

    .top-header .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        position: static;
        width: 38px;
        height: 38px;
        order: 1;
        flex: 0 0 auto;
    }

    .sidebar-search-mobile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        margin: 0 6px 12px;
    }

    .sidebar-desktop-only {
        display: none;
    }

    .sidebar-search-mobile input {
        min-width: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(203, 213, 225, 0.9);
        height: 38px;
        border-radius: 10px;
        padding: 0 12px;
    }

    .sidebar-search-mobile .btn-secondary {
        min-width: 46px;
        height: 38px;
        border-radius: 10px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .gallery.list-view.gallery-layout {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-content: stretch;
    }

    .gallery.grid-view.catalog-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #modalUploadCatalog .gallery-inline-field,
    #modalUploadGallery .gallery-inline-field,
    #modalEditGallery .gallery-inline-field,
    #modalEditPost .gallery-inline-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .feed-media-actions,
    .feed-admin-actions {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .feed-media-date {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 3px 7px;
    }

    .feed-media-actions .btn-mini,
    .feed-admin-actions .btn-mini {
        min-width: 22px;
        min-height: 22px;
        width: 22px;
        height: 22px;
    }

    .category-builder-head-inline {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #modalUploadCatalog .category-field-with-toggle {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gallery.grid-view.catalog-layout .card-media-button,
    .gallery.grid-view.catalog-layout .img-placeholder,
    .gallery.grid-view.catalog-layout .card img {
        height: 150px;
    }

    body {
        padding-top: 56px;
    }

    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        height: 56px;
        padding: 9px 10px;
        gap: 8px;
        z-index: 1260;
    }

    .header-brand-row {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        max-width: 100%;
    }

    .mobile-menu-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        align-self: center;
        order: 1;
        flex: 0 0 auto;
        margin: 0;
    }

    .header-brand-row {
        order: 2;
    }

    .mobile-header-share-btn,
    .mobile-header-about-btn,
    .mobile-header-admin-btn {
        display: inline-flex !important;
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0;
    }

    .mobile-header-about-btn {
        order: 3;
    }

    .mobile-header-share-btn {
        order: 5;
    }

    .mobile-header-admin-btn {
        order: 4;
    }

    .mobile-header-share-btn svg,
    .mobile-header-about-btn svg,
    .mobile-header-admin-btn svg {
        width: 24px;
        height: 24px;
    }

    .brand-link {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .brand-copy {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-slogan {
        font-size: 8px;
    }

    .brand-logo-image,
    .logo-e {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .top-header .header-search,
    .header-search {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        width: min(80vw, 292px);
        height: calc(100vh - 56px);
        border-right: 1px solid #e5e7eb;
        border-bottom: none;
        z-index: 1300;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        padding-top: 12px;
        background: #ffffff;
        backdrop-filter: none;
    }

    .sidebar-search-mobile {
        margin-top: 0;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 1200;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .main-content,
    .detail-page {
        margin-left: 0;
        padding: 12px 12px calc(128px + env(safe-area-inset-bottom, 0px));
    }

    .site-credit-bar {
        margin-left: 0;
        margin: 12px 12px calc(92px + env(safe-area-inset-bottom, 0px));
        padding: 0;
        border: 1px solid rgba(147, 197, 253, 0.38);
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .site-credit-full-link {
        gap: 7px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .site-credit-copy,
    .site-credit-link {
        width: 100%;
        text-align: center;
        line-height: 1.25;
    }

    .site-credit-link-center,
    .site-credit-link-right {
        justify-self: auto;
    }

    .floating-whatsapp-button {
        right: 18px;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
    }

    .floating-whatsapp-button svg {
        width: 25px;
        height: 25px;
    }

    body.about-page-mode .main-content {
        padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    }

    .page-header,
    .detail-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .page-heading,
    .detail-heading {
        align-items: flex-start;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-heading-copy {
        min-width: 0;
        flex: 1 1 auto;
    }

    .page-actions {
        width: auto;
        gap: 8px;
        flex: 0 0 auto;
        align-items: center;
        flex-wrap: nowrap;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page-header .page-heading {
        width: 100%;
    }

    .admin-page-header .page-heading-copy {
        display: block;
        overflow: visible;
    }

    .admin-page-header .page-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-page-header-actions {
        margin-left: 0;
    }


    .catalog-folder-strip {
        --folder-strip-columns: var(--catalog-category-columns-mobile, 2);
        --folder-strip-gap: 8px;
        grid-template-columns: repeat(var(--catalog-category-columns-mobile, 2), minmax(0, 1fr));
        gap: var(--folder-strip-gap);
    }

    .catalog-folder-strip.gallery-folder-strip {
        --folder-strip-columns: var(--gallery-category-columns-mobile, 3);
        --folder-strip-gap: 8px;
        grid-template-columns: repeat(var(--gallery-category-columns-mobile, 3), minmax(0, 1fr));
        gap: var(--folder-strip-gap);
    }

    .catalog-folder-strip.is-nested,
    .catalog-folder-strip.is-third-level {
        --folder-strip-columns: var(--catalog-category-columns-mobile, 2);
        grid-template-columns: repeat(var(--catalog-category-columns-mobile, 2), minmax(0, 1fr));
    }

    .catalog-folder-strip.gallery-folder-strip.is-nested,
    .catalog-folder-strip.gallery-folder-strip.is-third-level {
        --folder-strip-columns: var(--gallery-category-columns-mobile, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-mobile, 3), minmax(0, 1fr));
    }

    .gallery-sort-row {
        margin: -2px 0 12px;
    }

    .page-actions .btn-main,
    .page-actions .layout-switch {
        width: auto;
    }

    .layout-switch {
        display: inline-flex;
        grid-template-columns: none;
    }

    .layout-btn {
        justify-content: center;
        display: inline-flex;
        min-height: 40px;
        padding-inline: 10px;
    }

    .header-search {
        width: 100%;
        max-width: none;
    }

    .header-actions {
        display: none;
    }

    .gallery.list-view .card {
        grid-template-columns: 1fr;
    }

    .gallery.grid-view {
        grid-template-columns: 1fr;
    }

    .gallery.list-view.catalog-layout .catalog-card {
        grid-template-columns: 72px minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: center;
    }

    .gallery.list-view.catalog-layout .catalog-card .catalog-price-panel {
        display: flex;
        width: 86px;
        min-width: 86px;
        grid-column: 3;
        grid-row: 1;
        justify-content: center;
        padding: 0 0 2px 4px;
        align-self: end;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-body .price-tag {
        display: none;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-top::after {
        display: none;
    }

    .gallery.list-view.catalog-layout .catalog-card img,
    .gallery.list-view.catalog-layout .catalog-card .img-placeholder {
        width: 72px;
        height: 72px;
        min-height: 72px;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-body {
        grid-row: 1 / span 2;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        min-width: 0;
    }

    .gallery.list-view.catalog-layout .catalog-card .product-admin-actions {
        display: contents;
    }

    .gallery.list-view.catalog-layout .catalog-card .btn-examples-inline {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
        align-self: start;
        min-height: 26px;
        padding: 0 8px;
        font-size: 10px;
    }

    .gallery.list-view.catalog-layout .catalog-card .product-admin-stack .btn-mini {
        min-width: 28px;
        min-height: 28px;
        width: 28px;
        height: 28px;
        padding: 0;
    }

    .gallery.list-view.catalog-layout .catalog-card .product-admin-stack .btn-mini svg {
        width: 11px;
        height: 11px;
    }

    .gallery.list-view.catalog-layout .catalog-card .product-admin-stack {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-top {
        display: block;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-top strong {
        display: block;
        white-space: normal;
        line-height: 1.1;
    }

    .gallery.list-view.catalog-layout .catalog-card .card-meta {
        display: block;
        margin-top: 0;
        line-height: 1.2;
        max-width: none;
    }

    .gallery.list-view.catalog-layout .catalog-card .catalog-price-panel {
        padding-left: 0;
    }

    .gallery.list-view.catalog-layout .catalog-card .catalog-price-panel .price-tag,
    .gallery.list-view.catalog-layout .catalog-card .catalog-price-panel .price-muted {
        display: block;
        white-space: nowrap;
        font-size: 13px;
    }

    .catalog-group {
        gap: 10px;
        margin-bottom: 20px;
    }

    .catalog-group-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .catalog-group-title {
        width: auto;
        max-width: calc(100% - 140px);
        justify-content: flex-start;
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        min-width: 0;
    }

    .catalog-group-sort {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .catalog-group-hide-toggle {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 10px;
    }

    .catalog-group-hide-toggle svg {
        width: 15px;
        height: 15px;
    }

    .catalog-group-sort .group-sort-trigger {
        width: auto;
        min-width: 136px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .group-sort-menu {
        left: 0;
        right: auto;
        min-width: 100%;
    }

    .modal-content {
        width: min(100%, calc(100vw - 18px));
        max-height: calc(100vh - 18px);
        overflow-y: auto;
        margin: 9px;
        padding: 16px;
        border-radius: 18px;
    }

    #modalUploadCatalog .modal-content,
    #modalUploadGallery .modal-content,
    #modalEditGallery .modal-content,
    #modalEditPost .modal-content,
    #modalManageTags .modal-content {
        width: min(100%, calc(100vw - 18px));
    }

    .folder-layout-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .folder-layout-preview {
        width: 100%;
        max-width: 60px;
        justify-self: center;
    }

    .folder-layout-option {
        gap: 6px;
    }

    .folder-layout-option-label {
        font-size: 10px;
        white-space: normal;
    }

    .gallery-upload-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
    }

    .gallery-upload-topbar h2 {
        font-size: 18px;
        line-height: 1.2;
        min-width: 0;
    }

    .file-trigger {
        min-height: 40px;
        padding-inline: 12px;
        white-space: nowrap;
    }

    #modalUploadCatalog .file-trigger,
    #modalUploadGallery .file-trigger,
    #modalEditGallery .file-trigger,
    #modalEditPost .file-trigger,
    #modalEdit .file-trigger {
        display: none;
    }

    #modalUploadCatalog .visually-hidden-file,
    #modalUploadGallery .visually-hidden-file,
    #modalEditGallery .visually-hidden-file,
    #modalEditPost .visually-hidden-file,
    #modalEdit .visually-hidden-file {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        padding: 10px 12px;
        margin: 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        background: #fff;
        font-size: 13px;
        color: #0f172a;
        appearance: auto;
        -webkit-appearance: auto;
    }

    #modalUploadCatalog .visually-hidden-file::file-selector-button,
    #modalUploadGallery .visually-hidden-file::file-selector-button,
    #modalEditGallery .visually-hidden-file::file-selector-button,
    #modalEditPost .visually-hidden-file::file-selector-button,
    #modalEdit .visually-hidden-file::file-selector-button {
        margin-right: 10px;
        padding: 8px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #fff;
        color: #0f172a;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .form-stack {
        gap: 10px;
    }

    .category-builder,
    .tag-builder {
        padding: 10px;
        border-radius: 14px;
    }

    .tag-chip-list,
    .tag-suggestion-list,
    .multi-image-preview-strip {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .tag-entry-box .tag-chip-list {
        overflow: visible;
        padding-bottom: 0;
    }

    .form-split,
    .gallery-inline-field,
    .form-row,
    .modal-inline-actions {
        gap: 8px;
    }

    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-page-columns {
        grid-template-columns: 1fr;
    }

    .drafts-page-columns {
        grid-template-columns: 1fr;
    }

    .admin-page-shell {
        grid-template-columns: 1fr;
    }

    .admin-page-tabs {
        position: static;
        grid-template-columns: 1fr;
    }

    .admin-page-tab {
        text-align: left;
    }

    .admin-page-header-actions {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }

    .admin-page-header .admin-page-header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

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

    .admin-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .about-summary-card {
        position: static;
        top: auto;
        padding: 16px;
    }

    .about-form-card {
        padding: 14px;
    }

    .about-section-block {
        padding: 12px;
    }

    .about-info-item {
        flex-direction: column;
        align-items: stretch;
    }

    .info-contact-card.has-logo {
        grid-template-columns: 1fr;
    }

    .info-contact-logo {
        width: 100%;
        min-height: 70px;
    }

    .about-inline-btn {
        width: 32px;
        min-width: 32px;
        align-self: flex-end;
    }

    .about-hero-layout,
    .about-lower-grid {
        grid-template-columns: 1fr;
    }

    .about-logo-card {
        width: 100%;
    }

    .product-gallery-shell {
        gap: 10px;
        width: 100%;
        min-height: 100dvh;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .product-gallery-counter {
        position: fixed;
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: 12px;
        z-index: 2105;
        max-width: calc(100vw - 220px);
        font-size: 13px;
        line-height: 1.25;
    }

    .product-gallery-actions {
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: 10px;
        z-index: 2110;
        gap: 6px;
        max-width: calc(100vw - 24px);
        overflow: visible;
    }

    .gallery-action-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        flex: 0 0 38px;
    }

    .gallery-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .gallery-nav {
        width: 42px;
        height: 42px;
        top: calc(50% - 28px);
    }

    .gallery-nav svg {
        width: 16px;
        height: 16px;
    }

    .product-gallery-panel {
        padding: 58px 0 96px;
        border-radius: 0;
        min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .product-gallery-viewer {
        width: 100%;
    }

    .product-gallery-stage {
        min-height: 280px;
        border-radius: 0;
        height: min(52vh, 440px);
    }

    .product-gallery-stage img {
        max-width: 100%;
        max-height: 54vh;
    }

    .product-gallery-info {
        padding: 0;
        bottom: 0;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-gallery-info-side {
        justify-self: start;
        text-align: left;
    }

    .product-gallery-tags {
        justify-content: flex-start;
    }

    .product-gallery-folder {
        font-size: 10px;
        line-height: 1.2;
        justify-content: flex-start;
        text-align: left;
    }

    .product-gallery-meta {
        font-size: 12px;
    }

    .product-gallery-tags span {
        font-size: 10px;
        padding: 3px 7px;
    }

    .gallery.grid-view .card img,
    .img-placeholder {
        height: 210px;
    }

    .card {
        border-radius: 16px;
    }

    .card-body {
        padding: 12px;
    }

    .card-top {
        gap: 8px;
    }

    .card-link {
        font-size: 11px;
    }

    .btn-mini,
    .sidebar-item,
    .layout-btn,
    .btn-secondary,
    .btn-main {
        min-height: 42px;
    }

    .admin-actions {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-quickbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
        border-radius: 18px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
        border: 1px solid rgba(148, 163, 184, 0.22);
        box-shadow:
            0 16px 34px rgba(15, 23, 42, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        z-index: 1250;
    }

    .quickbar-btn {
        min-height: 52px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
        color: #334155;
        border-radius: 14px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        box-shadow:
            0 4px 10px rgba(15, 23, 42, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
        padding: 6px 4px;
    }

    .quickbar-menu-btn {
        display: inline-flex;
    }

    .quickbar-btn.active {
        background:
            linear-gradient(180deg, rgba(239, 246, 255, 1), rgba(219, 234, 254, 0.98));
        color: #1d4ed8;
        border-color: rgba(96, 165, 250, 0.68);
        box-shadow:
            0 10px 22px rgba(59, 130, 246, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .quickbar-icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: #64748b;
    }

    .quickbar-icon svg {
        width: 18px;
        height: 18px;
    }

    .quickbar-btn.active .quickbar-icon {
        color: #2563eb;
    }
}

@media (max-width: 620px) {
    .member-status-head,
    .admin-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .license-gate-card {
        padding: 20px;
    }

    .license-gate-card h1 {
        font-size: 24px;
    }

    .draft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .draft-selection-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .draft-selection-actions {
        grid-template-columns: 1fr;
    }

    .draft-selection-actions button,
    .draft-selection-bar .btn-save {
        width: 100%;
    }

    .empty-state h2 {
        font-size: 15px;
    }

    .empty-state p {
        font-size: 13px;
        line-height: 1.45;
    }

    .compact-empty-state h2 {
        font-size: 14px;
    }

    .compact-empty-state p {
        font-size: 11px;
        line-height: 1.35;
    }

    .bulk-publish-preview {
        grid-template-columns: repeat(auto-fill, 96px);
        justify-content: start;
    }

    .bulk-publish-actions {
        grid-template-columns: 1fr;
    }

    .install-prompt-card {
        left: 0;
        right: 0;
        top: 12px;
        margin: 0 auto;
        transform: translateY(-24px);
        width: min(340px, calc(100vw - 24px));
        padding: 14px 14px 12px;
        border-radius: 16px;
    }

    .install-prompt-card.is-visible {
        transform: translateY(0);
    }

    .install-prompt-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gallery.grid-view.gallery-layout {
        column-count: 2;
        column-gap: 8px;
    }

    .top-header {
        height: 56px;
        padding: 9px 10px;
        gap: 8px;
    }

    .top-header .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-slogan {
        font-size: 9px;
    }

    .brand-logo-image,
    .logo-e {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .header-search {
        display: none;
    }

    .gallery.list-view.gallery-layout .card-media-button,
    .gallery.list-view.gallery-layout .img-placeholder,
    .gallery.list-view.gallery-layout .card img {
        height: 240px;
    }

    .gallery.list-view.gallery-layout .feed-media-stack .card-media-button,
    .gallery.list-view.gallery-layout .feed-media-stack .img-placeholder,
    .gallery.list-view.gallery-layout .feed-media-stack .feed-media-slide,
    .gallery.list-view.gallery-layout .feed-media-stack .feed-media-track,
    .gallery.list-view.gallery-layout .feed-media-stack img {
        height: 100%;
    }

    .brand-name {
        font-size: 14px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .main-content,
    .detail-page,
    .detail-card {
        padding: 12px 12px calc(128px + env(safe-area-inset-bottom, 0px));
    }

    .site-credit-bar {
        margin: 10px 10px calc(88px + env(safe-area-inset-bottom, 0px));
        padding: 0;
    }

    .site-credit-full-link {
        padding: 10px 12px;
    }

    .floating-whatsapp-button {
        right: 14px;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    .floating-whatsapp-button svg {
        width: 24px;
        height: 24px;
    }

    .modal-content {
        width: min(100%, calc(100vw - 12px));
        max-height: calc(100vh - 12px);
        margin: 6px;
        padding: 14px;
        border-radius: 16px;
    }

    .header-search input,
    .header-search .btn-secondary {
        height: 40px;
    }

    .header-search .btn-secondary {
        min-width: 42px;
        padding-inline: 8px;
        font-size: 11px;
    }

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

    .page-header h1 {
        font-size: 20px;
    }

    .catalog-folder-strip {
        --folder-strip-columns: var(--catalog-category-columns-mobile, 2);
        --folder-strip-gap: 8px;
        grid-template-columns: repeat(var(--catalog-category-columns-mobile, 2), minmax(0, 1fr));
        gap: var(--folder-strip-gap);
    }

    .catalog-folder-strip.all-square-layout,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout,
    .catalog-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.all-square-layout.is-third-level,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-third-level {
        --folder-strip-columns: var(--catalog-category-columns-mobile, 2);
        --folder-strip-gap: 6px;
        grid-template-columns: repeat(var(--catalog-category-columns-mobile, 2), minmax(0, 1fr));
        gap: var(--folder-strip-gap);
    }

    .catalog-folder-strip.gallery-folder-strip.all-square-layout,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-nested,
    .catalog-folder-strip.gallery-folder-strip.all-square-layout.is-third-level {
        --folder-strip-columns: var(--gallery-category-columns-mobile, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-mobile, 3), minmax(0, 1fr));
    }

    .catalog-folder-card,
    .catalog-folder-media,
    .catalog-folder-add-card,
    .catalog-folder-strip.is-nested .catalog-folder-card,
    .catalog-folder-strip.is-nested .catalog-folder-media,
    .catalog-folder-strip.is-nested .catalog-folder-add-card,
    .catalog-folder-strip.is-third-level .catalog-folder-card,
    .catalog-folder-strip.is-third-level .catalog-folder-media,
    .catalog-folder-strip.is-third-level .catalog-folder-add-card {
        aspect-ratio: 1 / 1 !important;
        min-height: 0;
    }

    .catalog-folder-strip .catalog-folder-card,
    .catalog-folder-strip .catalog-folder-media,
    .catalog-folder-strip .catalog-folder-add-card {
        aspect-ratio: 1 / 1 !important;
    }

    .catalog-folder-strip.gallery-folder-strip {
        --folder-strip-columns: var(--gallery-category-columns-mobile, 3);
        --folder-strip-gap: 5px;
        grid-template-columns: repeat(var(--gallery-category-columns-mobile, 3), minmax(0, 1fr));
        gap: var(--folder-strip-gap);
    }

    .catalog-folder-card-shell.layout-standard {
        grid-row: span 9;
    }

    .catalog-folder-card-shell.layout-wide {
        --folder-span: 1.35;
        grid-column: span 1;
        grid-row: span 8;
    }

    .catalog-folder-card-shell.layout-wide .catalog-folder-card,
    .catalog-folder-card-shell.layout-wide .catalog-folder-media {
        min-height: 0;
    }

    .catalog-folder-card-shell.layout-feature {
        --folder-span: 1.7;
        grid-column: span 2;
        grid-row: span 9;
    }

    .catalog-folder-card-shell.layout-tall,
    .catalog-folder-card-shell.layout-tall .catalog-folder-card,
    .catalog-folder-card-shell.layout-tall .catalog-folder-media {
        grid-row: span 11;
        min-height: 0;
    }

    .catalog-folder-card-shell.layout-compact,
    .catalog-folder-card-shell.layout-compact .catalog-folder-card,
    .catalog-folder-card-shell.layout-compact .catalog-folder-media {
        grid-row: span 7;
        min-height: 0;
    }

    .catalog-folder-card-shell.layout-hero {
        --folder-span: 2;
        grid-column: span 2;
        grid-row: span 11;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-compact,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-compact .catalog-folder-card,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-compact .catalog-folder-media {
        grid-row: span 6;
        min-height: 0;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-wide,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-wide .catalog-folder-media {
        --folder-span: 1.35;
        grid-column: span 1;
        grid-row: span 6;
        min-height: 0;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-tall,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-tall .catalog-folder-card,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-tall .catalog-folder-media {
        grid-row: span 8;
        min-height: 0;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-feature,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-feature .catalog-folder-media {
        --folder-span: 1.7;
        grid-column: span 2;
        grid-row: span 8;
        min-height: 0;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-hero,
    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card-shell.layout-hero .catalog-folder-media {
        --folder-span: 2;
        grid-column: span 2;
        grid-row: span 10;
        min-height: 0;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-content {
        padding: 7px 5px;
        gap: 5px;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card strong {
        font-size: 11px;
        line-height: 1.12;
        letter-spacing: -0.01em;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-wrap: balance;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-content p {
        display: -webkit-box;
        font-size: 10px;
        line-height: 1.2;
        margin: 2px 4px 0;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-content span {
        left: 6px;
        right: 6px;
        bottom: 8px;
        font-size: 10px;
        line-height: 1.12;
        white-space: normal;
        text-align: center;
    }

    .catalog-folder-strip.gallery-folder-strip .catalog-folder-card {
        padding: 0;
        border-radius: 14px;
    }

    .catalog-folder-strip.gallery-folder-strip .folder-admin-topbar {
        top: 5px;
        left: 5px;
        right: 5px;
    }

    .catalog-folder-strip.gallery-folder-strip .folder-admin-topbar-left,
    .catalog-folder-strip.gallery-folder-strip .folder-admin-topbar-right {
        gap: 3px;
    }

    .catalog-folder-strip.gallery-folder-strip .folder-admin-action-btn {
        width: 22px;
        height: 22px;
    }

    .catalog-folder-strip.gallery-folder-strip .folder-admin-action-btn svg {
        width: 11px;
        height: 11px;
    }

    .catalog-folder-strip.gallery-folder-strip.is-nested,
    .catalog-folder-strip.gallery-folder-strip.is-third-level {
        --folder-strip-columns: var(--gallery-category-columns-mobile, 3);
        grid-template-columns: repeat(var(--gallery-category-columns-mobile, 3), minmax(0, 1fr));
    }

    .gallery-sort-row {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .gallery-sort-row.gallery-date-head {
        display: flex;
        margin: 0 0 10px;
        padding-right: 0;
        min-height: 0;
    }

    .gallery-date-head .gallery-page-sort {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
    }

    .gallery-sort-row .gallery-page-sort {
        width: auto;
        flex: 0 0 auto;
    }

    .gallery-sort-row .gallery-date-title {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        font-size: 12px;
        padding: 6px 10px;
        min-height: 0;
        margin: 0;
        column-span: none;
        break-inside: auto;
        -webkit-column-break-inside: auto;
        line-height: 1.2;
    }

    .gallery-sort-row .group-sort-trigger {
        min-width: 136px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .gallery-sort-row .group-sort-trigger-label {
        white-space: nowrap;
    }

    .catalog-folder-card {
        padding: 0;
        border-radius: 16px;
    }

    .about-summary-card h2 {
        font-size: 22px;
    }

    .about-summary-card p,
    .about-contact-list span {
        font-size: 13px;
    }

    .catalog-folder-content {
        padding: 12px;
    }

    body.catalog-mobile-compact-text .catalog-folder-strip:not(.gallery-folder-strip) .catalog-folder-content {
        padding: 7px 5px;
        gap: 5px;
    }

    body.catalog-mobile-compact-text .catalog-folder-strip:not(.gallery-folder-strip) .catalog-folder-card strong {
        font-size: 11px;
        line-height: 1.12;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-wrap: balance;
    }

    body.catalog-mobile-compact-text .catalog-folder-strip:not(.gallery-folder-strip) .catalog-folder-content p {
        font-size: 10px;
        line-height: 1.18;
        margin: 2px 4px 0;
        -webkit-line-clamp: 2;
        text-align: center;
    }

    body.catalog-mobile-compact-text .catalog-folder-strip:not(.gallery-folder-strip) .catalog-folder-content span {
        left: 6px;
        right: 6px;
        bottom: 8px;
        font-size: 10px;
        line-height: 1.12;
        white-space: normal;
        text-align: center;
    }

    .page-actions {
        gap: 6px;
    }

    .layout-switch {
        padding: 3px;
    }

    .layout-btn {
        font-size: 11px;
        min-width: 54px;
        padding-inline: 12px;
    }

    .gallery-upload-topbar h2 {
        font-size: 16px;
    }

    .file-trigger {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 12px;
    }

    .category-builder,
    .tag-builder {
        padding: 9px;
    }

    .detail-card {
        border-radius: 18px;
    }

    .detail-gallery img {
        border-radius: 14px;
    }

    .mobile-quickbar {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        padding: 8px;
    }

    .quickbar-btn {
        min-height: 50px;
        font-size: 11px;
        gap: 4px;
    }
}
