/* Auth screens and panel skeletons. Extends the tokens declared in app.css. */

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-shell { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.auth-shell.auth-shell-paytr { max-width: 920px; width: 100%; margin-inline: auto; }
/* PayTR: avoid 100vh + center crop; allow page scroll on small screens (see app.css). */
.auth-body:has(.auth-shell-paytr) {
    place-items: safe center;
    overflow-y: auto;
}
@media (max-width: 640px) {
    .auth-body:has(.auth-shell-paytr) {
        display: block;
        min-height: 0;
        padding: 12px 10px 32px;
    }
}
.auth-brand { justify-content: center; }
.auth-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-title { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
.auth-subtitle { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-links { margin: 20px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-links a { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 650; color: var(--muted); }
.field input, .field select, .field textarea {
    min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit;
}
.field input[type="file"] {
    padding: 8px 10px;
    color: var(--text);
}
.field input[type="file"]::file-selector-button {
    margin-inline-end: 12px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.button-block { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }

.flash-stack { display: flex; flex-direction: column; gap: 8px; }
.flash { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: #3f7a2e; color: #2f6b21; }
.flash-error { border-color: #a33f34; color: #a33f34; }
:root[data-theme="dark"] .flash-success { color: #a9e08a; }
:root[data-theme="dark"] .flash-error { color: #f0a79c; }

.panel-body { min-height: 100vh; --panel-header-height: 57px; }
.panel-header {
    position: sticky; top: 0; z-index: 7; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.panel-header-start { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-header-start .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.panel-header-actions form { margin: 0; }
.panel-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}
.panel-menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-menu-icon {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.panel-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.42);
}
.panel-nav-backdrop[hidden] { display: none; }
.panel-nav-mobile-footer {
    display: none;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.panel-nav-mobile-footer form { margin: 0; }
.panel-nav-mobile-link,
.panel-nav-mobile-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.panel-nav-mobile-link:hover,
.panel-nav-mobile-button:hover { color: var(--text); background: var(--bg); }
.panel-user { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.panel-user:hover { color: var(--text); }
.company-switcher select {
    min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--text); font-family: inherit;
}
.panel-nav {
    position: sticky; top: var(--panel-header-height); z-index: 4; display: flex; gap: 4px; overflow-x: auto;
    padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--surface);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.panel-nav::-webkit-scrollbar { display: none; }
.panel-nav-link {
    padding: 13px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0;
}
.panel-nav-link:hover { color: var(--text); }
.panel-nav-link.is-active { color: var(--text); border-bottom-color: var(--accent); }

.panel-shell { max-width: 1180px; margin: 0 auto; padding: 28px 24px 72px; display: flex; flex-direction: column; gap: 20px; }
.panel-intro-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-intro-row .eyebrow a { text-decoration: underline; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.field-inline { min-width: 180px; }
.field-inline input, .field-inline select { min-height: 42px; }
.field textarea {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); color: var(--text); font: inherit; font-size: 15px; resize: vertical;
}
.embed-snippet {
    min-height: 132px;
    font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.embed-callout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 2px solid #c47a12;
    border-radius: 14px;
    background: #fff4d6;
    color: #3d2a0a;
}
.embed-callout-alert {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: #7a3f00;
}
.embed-callout-body {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #5c3a12;
}
.embed-callout .field-label { color: #6a4a16; }
.embed-callout .embed-snippet {
    min-height: 96px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d9a24a;
    border-radius: 12px;
    background: #fffdf8;
    color: #1c1508;
    caret-color: #1c1508;
    resize: vertical;
}
.embed-callout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.embed-callout-warning { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.embed-callout .button-secondary {
    background: #1c1508;
    color: #fffdf8;
    border-color: #1c1508;
}
.embed-callout .button-secondary:hover { background: #2a1f0c; }
.data-table td.embed-cell {
    white-space: normal;
    background: transparent;
    padding: 8px 16px 16px;
}
.data-table tr.embed-follow td { border-top: 0; }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.field > .field-hint { margin-top: 3px; }
.field + .field-hint,
.field-grid + .field-hint { margin-top: 8px; }
.auth-form > .field + .field-hint,
.auth-form > .field-grid + .field-hint,
.form-card > .field + .field-hint,
.form-card > .field-grid + .field-hint,
.stacked-form > .field + .field-hint,
div[data-billing-panel] > .field + .field-hint,
div[data-billing-panel] > .field-grid + .field-hint {
    margin-top: -6px;
}
.field-hint.is-invalid { color: #a33f34; }
.bulk-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.bulk-bar-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.bulk-check-col { width: 36px; }

.stacked-form { display: flex; flex-direction: column; gap: 20px; }
.stacked-form + .form-card { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

@media (max-width: 1000px) {
    .form-grid { grid-template-columns: 1fr; }
}
.form-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.form-card + .form-card { margin-top: 0; }
.form-card-danger { border-color: #a33f34; }
.form-card > .panel-section-title { margin: 0; }

.panel-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

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

.panel-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.panel-card .stacked-form {
    gap: 16px;
}

.panel-card .stacked-form .form-actions {
    margin-top: 4px;
}

.panel-card .table-scroll {
    margin-top: 4px;
}

.panel-card .panel-empty {
    margin-top: 4px;
}

[data-xml-import] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.xml-import-table .col-name {
    min-width: 120px;
    max-width: 200px;
    white-space: normal;
}

.xml-import-table .col-url {
    min-width: 180px;
    max-width: 360px;
    white-space: normal;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.45;
}

.xml-import-table .col-sync {
    white-space: nowrap;
}

.xml-import-table .col-actions {
    white-space: nowrap;
    width: 1%;
}

.xml-import-table .table-actions {
    align-items: center;
}

.xml-import-table .table-actions .button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
}

.xml-import-table .table-actions .table-action-danger {
    border-color: color-mix(in srgb, #a33f34 45%, var(--line));
    color: #a33f34;
}

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

.source-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.source-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.source-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.source-card-url,
.source-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    min-width: 0;
}

.source-card-label {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.source-card-value {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    word-break: break-all;
}

.source-card-meta .source-card-value {
    color: var(--muted);
}

.source-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-card-actions form {
    margin: 0;
}

.source-card-actions .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
}

.source-card-delete {
    color: #a33f34;
    border-color: color-mix(in srgb, #a33f34 45%, var(--line));
}

:root[data-theme="dark"] .source-card-delete {
    color: #f0a79c;
}

@media (min-width: 769px) {
    .source-card {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }

    .source-card-actions {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        min-width: 220px;
    }

    .source-card-actions .button {
        width: auto;
        flex: 1 1 auto;
    }
}

:root[data-theme="dark"] .xml-import-table .table-actions .table-action-danger {
    color: #f0a79c;
}

.import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.import-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.import-option-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.import-option .products-import-form {
    margin-top: auto;
}

.import-option-xml {
    justify-content: space-between;
}

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.form-actions form { margin: 0; }
.button-danger { min-height: 44px; padding: 0 18px; background: #a33f34; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.button-primary, .button-secondary { cursor: pointer; font-family: inherit; }
button.button-primary, button.button-secondary { border: 0; }
button.button-secondary { border: 1px solid var(--line); }

.locale-block { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.locale-block > summary {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    cursor: pointer; font-size: 14px; font-weight: 600; list-style: none;
}
.locale-block > summary::-webkit-details-marker { display: none; }
.locale-block > summary .muted { font-weight: 500; font-size: 13px; }
.locale-fields { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 18px; }
.locale-fields .button-secondary { align-self: flex-start; }

.subsection-title { margin: 4px 0 0; font-size: 15px; letter-spacing: -.01em; }
.repeat-list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.repeat-row { display: grid; gap: 10px; align-items: end; }
.repeat-row-pieces { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 0.9fr) 72px 40px; }
.repeat-row-specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 40px; }
.field-narrow input { min-width: 0; }

/* Single item: no piece name, no quantity, no delete. */
.is-single-piece .piece-label-field,
.is-single-piece .piece-quantity-field,
.is-single-piece .repeat-remove { display: none; }
.is-single-piece .repeat-row-pieces { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr); }

.switch { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { cursor: pointer; }

.panel-body input[type="checkbox"]:not(.uploader-input),
.panel-body input[type="radio"],
.auth-body input[type="checkbox"],
.auth-body input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--line);
    background: var(--bg);
    cursor: pointer;
    vertical-align: middle;
}
.panel-body input[type="checkbox"]:not(.uploader-input),
.auth-body input[type="checkbox"] { border-radius: 5px; }
.panel-body input[type="radio"],
.auth-body input[type="radio"] { border-radius: 50%; }
.panel-body input[type="checkbox"]:not(.uploader-input):checked,
.auth-body input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23172000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}
.panel-body input[type="radio"]:checked,
.auth-body input[type="radio"]:checked {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 0 4px, var(--bg) 5px);
}
.panel-body input[type="checkbox"]:not(.uploader-input):focus-visible,
.panel-body input[type="radio"]:focus-visible,
.auth-body input[type="checkbox"]:focus-visible,
.auth-body input[type="radio"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.computed-box { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.computed-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.computed-box strong { display: block; margin-top: 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.piece-add { align-self: flex-start; }

@media (max-width: 900px) {
    .repeat-row-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)) 40px; }
    .repeat-row-specs { grid-template-columns: minmax(0, 1fr) 40px; }
}

.product-cell { display: flex; align-items: center; gap: 12px; }
.product-cell a { color: inherit; text-decoration: none; }
.product-cell a:hover strong { text-decoration: underline; }
.product-cell strong { display: block; }
.product-cell small { display: block; color: var(--muted); font-size: 12px; }
.product-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg); border: 1px solid var(--line); display: block; }
.product-thumb-btn { padding: 0; border: none; background: none; cursor: zoom-in; flex-shrink: 0; border-radius: 10px; }
.product-thumb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-thumb-empty { display: inline-block; }
.smart-page-avatar-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.muted-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.image-tile { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.image-tile.is-primary { border-color: var(--accent); }
.image-tile-preview { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.image-tile-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.image-tile-preview img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.image-tile-empty { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--bg); }
.image-tile figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; font-size: 12px; }
.image-tile form { margin: 0; }
.uploader { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.uploader-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 32px 24px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--bg);
    text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.uploader-drop:hover { border-color: var(--text); }
.uploader-drop.is-dragging { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.uploader-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.uploader-input:focus-visible + .uploader-icon { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }
.uploader-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.uploader-title { font-size: 15px; font-weight: 650; }
.uploader-subtitle { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.uploader-hint { margin-top: 4px; font-size: 12px; color: var(--muted); }

.uploader-files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.uploader-file {
    display: flex; flex-direction: column; gap: 8px; padding: 9px 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px;
    transition: border-color .15s ease, opacity .3s ease;
}
.uploader-file-main { display: flex; align-items: center; gap: 10px; }
.uploader-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploader-file-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.uploader-file.is-invalid { border-color: #a33f34; }
.uploader-file.is-invalid .uploader-file-size { color: #a33f34; }
.uploader-file.is-done { border-color: var(--accent); opacity: .75; }
.uploader-file.is-done .uploader-file-size { color: var(--accent); }
.uploader-file-retry { flex: none; }

.uploader-file-progress {
    height: 6px; border-radius: 999px; overflow: hidden;
    background: color-mix(in srgb, var(--line) 70%, transparent);
}
.uploader-file-bar {
    height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
    transition: width .2s ease;
}

.image-grid.is-busy { opacity: .55; pointer-events: none; }
.image-grid[hidden], .panel-empty[hidden] { display: none !important; }

/* Category Quick Add */
.field-category-group { position: relative; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.field-label-row .field-label { margin-bottom: 0; }
.field-action-link {
    background: none; border: none; padding: 0; color: var(--accent);
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
    text-decoration: underline; text-underline-offset: 2px;
}
.field-action-link:hover { color: var(--text); }
.category-quick-box {
    margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--surface);
}
.category-quick-box[hidden] { display: none !important; }
.category-quick-row { display: flex; gap: 8px; align-items: center; }
.category-quick-input {
    flex: 1; min-width: 0; padding: 7px 12px; font-size: 13px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
    color: var(--text); font-family: inherit;
}
.category-quick-input:focus { outline: none; border-color: var(--accent); }
.button-sm { padding: 6px 12px; font-size: 12px; min-height: 32px; line-height: 1.2; }
.category-quick-error { margin: 6px 0 0; font-size: 12px; color: #a33f34; }
.select-pulse-success { animation: selectPulse 1.6s ease; }
@keyframes selectPulse {
    0%, 100% { border-color: var(--line); }
    30%, 70% { border-color: #2e7d32; box-shadow: 0 0 0 2px color-mix(in srgb, #2e7d32 30%, transparent); }
}

/* Staged Files for Product Image Upload */
.uploader-area { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.uploader-staged { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.uploader-staged[hidden] { display: none !important; }
.uploader-staged-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 600; color: var(--text);
}
.uploader-staged-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px;
}
.uploader-staged-item {
    position: relative; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
}
.uploader-staged-thumb {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--bg);
}
.uploader-staged-info {
    padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 11px;
}
.uploader-staged-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.uploader-staged-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.uploader-staged-remove {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
    border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; border: none;
    display: grid; place-items: center; cursor: pointer; font-size: 16px; line-height: 1;
    transition: background .15s ease;
}
.uploader-staged-remove:hover { background: #a33f34; }
.uploader-staged-item.is-invalid { border-color: #a33f34; }
.uploader-staged-item.is-invalid .uploader-staged-size { color: #a33f34; font-weight: 600; }

/* Product Save Progress Bar */
.product-save-progress {
    margin-top: 14px; display: flex; flex-direction: column; gap: 6px; max-width: 480px;
}
.product-save-progress[hidden] { display: none !important; }
.product-save-progress-text { font-size: 13px; font-weight: 600; color: var(--text); }
.product-save-progress-track {
    height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent);
    overflow: hidden;
}
.product-save-progress-bar {
    height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
    transition: width .2s ease;
}

.repeat-remove {
    align-self: end; width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit;
}
.repeat-remove:hover { border-color: #a33f34; color: #a33f34; }

.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.link-danger { color: #a33f34; }
.row-actions { display: flex; align-items: center; gap: 14px; }
.row-actions form { margin: 0; }
.row-actions a { text-decoration: underline; }

.pagination { display: flex; align-items: center; gap: 14px; font-size: 14px; }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.notice p { margin: 0; font-size: 14px; line-height: 1.55; }
.notice-warning { border-color: #b58b1f; }
.notice-payment {
    border-color: #a33f34;
    border-width: 2px;
    background: color-mix(in srgb, #a33f34 8%, var(--surface));
}
.notice-copy { display: flex; flex-direction: column; gap: 4px; min-width: min(100%, 220px); flex: 1 1 240px; }
.notice-copy strong { font-size: 16px; letter-spacing: -.02em; }
.notice-payment .button-primary {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 700;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.notice form { margin: 0; }
@media (max-width: 640px) {
    .notice-payment { flex-direction: column; align-items: stretch; }
    .notice-payment .button-primary { width: 100%; text-align: center; }
}

.panel-intro { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.panel-intro-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.panel-intro-row > div { min-width: 0; flex: 1 1 auto; }
.panel-title { margin: 4px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.panel-lead { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stat-card span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-card strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -.04em; }

.panel-section { display: flex; flex-direction: column; gap: 14px; }
.panel-section-title { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.panel-empty { margin: 0; color: var(--muted); font-size: 14px; }
.panel-empty-block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; white-space: nowrap; }
.data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.data-table tbody tr + tr td { border-top: 1px solid var(--line); }
.data-table a { text-decoration: underline; }
.data-table .table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.data-table .table-action {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.data-table .table-action[aria-expanded="true"] {
    border-color: var(--accent);
}
.data-table .table-action-muted {
    opacity: 0.45;
    cursor: not-allowed;
}
.muted { color: var(--muted); }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.badge-published, .badge-active, .badge-paid { border-color: #3f7a2e; }
.badge-draft, .badge-pending { border-color: var(--line); }
.badge-inactive, .badge-archived, .badge-suspended, .badge-failed, .badge-cancelled { border-color: #a33f34; }

.admin-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.admin-search input[type="search"] {
    flex: 1; min-width: 220px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
    color: var(--text); font: inherit;
}
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-acting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-acting p { margin: 0; }
.data-table .table-actions form { margin: 0; }

.admin-plan-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.admin-plan-form select {
    min-width: 0;
    max-width: 130px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 12px;
}

.xml-import-progress-card[hidden] { display: none !important; }

.xml-import-progress {
    margin-top: 12px;
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--line) 70%, transparent);
    overflow: hidden;
}

.xml-import-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
    transition: width .25s ease;
}

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quick-action {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
    transition: border-color .15s ease, transform .15s ease;
}
.quick-action:hover { border-color: var(--text); transform: translateY(-2px); }
.quick-action strong { font-size: 15px; }
.quick-action span { color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .panel-header { flex-wrap: nowrap; }
    .panel-user { display: none; }
    .panel-logout-form { display: none; }
    .panel-shell { padding: 16px 12px 48px; }
    .auth-card { padding: 24px; }
    .stat-grid, .choice-grid, .template-grid, .form-grid, .field-grid, .image-grid, .quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .panel-menu-toggle { display: grid; place-items: center; flex-shrink: 0; }

    .panel-header-actions .lang-name { display: none; }

    .panel-nav-backdrop:not([hidden]) { display: block; }

    .panel-nav {
        position: fixed;
        top: var(--panel-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        display: none;
        flex-direction: column;
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px 12px 20px;
        border-bottom: 0;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

    .panel-nav.is-open { display: flex; }

    .panel-nav-link {
        padding: 14px 16px;
        border-bottom: 0;
        border-left: 3px solid transparent;
        border-radius: 12px;
        white-space: normal;
    }

    .panel-nav-link.is-active {
        border-left-color: var(--accent);
        background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    }

    .panel-nav-mobile-footer { display: flex; flex-direction: column; gap: 4px; }

    body.is-panel-nav-open { overflow: hidden; }

    .panel-intro-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .panel-intro-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .panel-intro-actions .button,
    .panel-intro-actions .badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .panel-intro-actions .button-primary {
        order: -1;
    }

    .panel-card {
        padding: 14px;
        gap: 12px;
    }

    .products-import-card .import-options {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .products-import-card .import-option {
        gap: 10px;
        padding: 14px 0 0;
        margin-top: 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        border-top: 1px solid var(--line);
    }

    .products-import-card .import-option:first-child {
        padding-top: 0;
        margin-top: 0;
        border-top: 0;
    }

    .products-import-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .products-import-form .field,
    .products-import-form .form-actions,
    .import-option .form-actions {
        width: 100%;
        flex: none;
    }

    .products-import-form .form-actions .button,
    .import-option .form-actions .button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .import-option .field input[type="file"] {
        width: 100%;
        box-sizing: border-box;
    }

    .panel-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .field-inline,
    .filter-bar .button {
        width: 100%;
        min-width: 0;
    }

    .bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-bar .field-inline,
    .bulk-bar .button {
        width: 100%;
        min-width: 0;
    }

    .bulk-bar-label { white-space: normal; }

    .form-actions .button {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
    }

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

    .admin-search {
        flex-direction: column;
    }

    .admin-search input[type="search"],
    .admin-search .button {
        width: 100%;
        min-width: 0;
    }

    .editor-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-view {
        margin-left: 0;
        width: 100%;
    }

    .table-scroll {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .table-scroll .data-table {
        display: block;
        width: 100%;
    }

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

    .table-scroll .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .table-scroll .data-table tr:not(.embed-follow) {
        display: block;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface);
        overflow: hidden;
    }

    .table-scroll .data-table tr.embed-follow {
        display: block;
        margin-top: -6px;
        border: 0;
        background: transparent;
    }

    .table-scroll .data-table tr.embed-follow td {
        display: block;
        padding: 0 0 12px;
    }

    .table-scroll .data-table tbody tr + tr td {
        border-top: 0;
    }

    .table-scroll .data-table td {
        display: block;
        padding: 11px 14px;
        white-space: normal;
        word-break: break-word;
        border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    }

    .table-scroll .data-table tr:not(.embed-follow) td:first-child {
        border-top: 0;
    }

    .table-scroll .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 650;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted);
        line-height: 1.45;
    }

    .table-scroll .data-table td[data-label=""]::before,
    .table-scroll .data-table td:not([data-label])::before {
        display: none;
    }

    .table-scroll .data-table td.bulk-check-col {
        text-align: right;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .table-scroll .data-table td.bulk-check-col::before {
        display: none;
    }

    .table-scroll .data-table .table-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .table-scroll .data-table .table-actions .table-action,
    .table-scroll .data-table .table-actions .button {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .table-scroll .data-table .product-cell {
        width: 100%;
    }

    .table-scroll .data-table td.embed-cell {
        padding: 0 0 4px;
    }

    .table-scroll .data-table td.embed-cell::before {
        display: none;
    }

    .xml-import-table .col-name,
    .xml-import-table .col-url,
    .xml-import-table .col-sync,
    .xml-import-table .col-actions {
        width: auto;
        max-width: none;
        white-space: normal;
    }
}

.choice-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
.choice-card, .template-card {
    display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid var(--line);
    border-radius:16px; background:var(--bg); cursor:pointer;
}
.choice-card:has(input:checked), .template-card:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.choice-card input, .template-card > input { accent-color:var(--accent); }
.field-color { display:flex; align-items:center; gap:8px; }
.field-color input[type="color"] {
    width:46px; min-height:46px; padding:4px; border-radius:12px; cursor:pointer;
}
.field-color input[type="text"] { flex:1; min-width:0; }
.color-swatches { display:inline-flex; gap:4px; vertical-align:middle; }
.color-swatches svg { display:block; width:16px; height:16px; border-radius:50%; border:1px solid var(--line); }
.choice-card span, .template-card span { color:var(--muted); font-size:13px; line-height:1.45; }
.billing-type-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.billing-type-fieldset legend { padding: 0; margin: 0; }
.billing-period-grid { margin-top: 4px; }
div[data-billing-panel] { display: flex; flex-direction: column; gap: 16px; }
[data-billing-panel][hidden] { display: none !important; }
.admin-invoice-cell { min-width: 220px; max-width: 320px; font-size: 13px; line-height: 1.45; }
.admin-invoice-cell strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.template-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; }
.template-preview { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; height:72px; padding:8px; border-radius:10px; background:var(--surface); border:1px solid var(--line); }
.template-preview span { display:block; border-radius:4px; background:color-mix(in srgb, var(--accent) 35%, var(--line)); }
.template-preview-lookbook-wide, .template-preview-clean-lines, .template-preview-tasting-list, .template-preview-quote-list, .template-preview-night-menu { grid-template-columns:1fr; }
.template-preview-gallery-masonry, .template-preview-compact-cards { grid-template-columns:repeat(4, 1fr); }
.template-preview-dense-table, .template-preview-dealer-sheet { grid-template-columns:1fr; }
.template-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.template-fieldset legend { padding: 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.cover-preview-frame {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    max-height: 280px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    overflow: hidden;
}
.cover-preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 256px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
[data-cover-panel] { display: flex; flex-direction: column; gap: 14px; }
[data-cover-panel][hidden] { display: none; }
.editor-nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin: 0; padding-bottom: 4px; border-bottom:1px solid var(--line); }
.editor-view { margin-left:auto; display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:13px; color:var(--muted); }
.editor-view a { text-decoration:underline; }
.order-input { width:72px; min-height:38px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); font:inherit; }
.item-picker-table input[type="text"] { width:110px; min-height:38px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); font:inherit; }
.item-picker-table tr.is-dragging { opacity:.5; }
.item-picker-table tr[hidden] { display:none; }

.products-sort-hint { margin: 0 0 12px; }
.sort-handle-col { width: 36px; padding-inline: 6px !important; }
.sort-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 28px;
    color: var(--muted);
    cursor: grab;
    user-select: none;
    touch-action: none;
    letter-spacing: -0.15em;
    font-size: 14px;
    line-height: 1;
}
.sort-handle:active { cursor: grabbing; }
.products-sort-table tr.is-dragging { opacity: .55; }

.notice-info {
    display: block;
    margin-bottom: 18px;
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.import-error-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}
.products-import-card {
    margin-bottom: 18px;
}
.products-import-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}
.products-import-form .field {
    flex: 1 1 220px;
    margin: 0;
    min-width: 0;
}
.products-import-form .form-actions {
    margin: 0;
    flex: 0 0 auto;
}

.panel-subsection-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.catalog-theme-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.catalog-theme-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 20px;
    align-items: start;
}

.catalog-theme-preview {
    --surface: color-mix(in srgb, var(--bg) 92%, var(--text));
    --line: color-mix(in srgb, var(--bg) 78%, var(--text));
    --muted: color-mix(in srgb, var(--bg) 42%, var(--text));
    --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--surface));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%),
        var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.catalog-theme-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.catalog-theme-preview-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.catalog-theme-preview-header strong {
    font-size: 13px;
    line-height: 1.3;
}

.catalog-theme-preview-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.catalog-theme-preview-image {
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent) 28%, var(--surface)));
    min-height: 72px;
}

.catalog-theme-preview-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.catalog-theme-preview-chip {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.catalog-theme-preview-body strong {
    font-size: 13px;
    line-height: 1.25;
}

.catalog-theme-preview-body p {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}

.catalog-theme-preview-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.catalog-theme-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text, #171814);
    font-size: 12px;
    font-weight: 700;
}

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

.panel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
}

.panel-lightbox[hidden] { display: none; }

.panel-lightbox img {
    max-width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.panel-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.panel-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

body.is-panel-lightbox-open { overflow: hidden; }
