/* ============================================================
   PRODUCT SELECTOR — intro screen, mode toggle, sliding panels,
   product grid, product modal, BOM modal
   ============================================================ */

/* ── Intro / Mode-selection cards (rendered inside #preloader) ────────────── */

.intro-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.intro-logo-img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.intro-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.25;
}

.intro-subtitle {
    font-size: var(--dc-text-lg);
    opacity: 0.75;
    margin-bottom: 40px;
}

.intro-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.intro-card {
    background: rgba(255,255,255,0.95);
    color: var(--dc-c-dark);
    border-radius: 10px;
    padding: 32px 28px;
    width: 220px;
    cursor: pointer;
    /* Bespoke shadow/lift kept: this hero card sits on the dark preloader,
       where the light-surface elevation tokens would not read. */
    transition: transform var(--dc-transition), box-shadow var(--dc-transition), background var(--dc-transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    background: white;
}

/* The four cards used emoji — 🗺️ 📦 🔧 📐 — drawn by the operating system, so they
   came out differently on Windows, on a Mac and in a PDF, would not take a colour and
   did not scale. These are the product's own icons instead: images/icon_mode_*.svg,
   painted through a mask so they read as one family with the rest of the set and can
   be recoloured. See .icon-btn--settings in ui-primitives.css for the same technique. */
.intro-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: var(--dc-c-accent);
    background-color: currentColor;
    -webkit-mask: var(--intro-icon) center / contain no-repeat;
            mask: var(--intro-icon) center / contain no-repeat;
}
.intro-card-icon--plan        { --intro-icon: url('../images/icon_mode_plan.svg'); }
.intro-card-icon--catalog     { --intro-icon: url('../images/icon_mode_catalog.svg'); }
.intro-card-icon--odf-build   { --intro-icon: url('../images/icon_mode_odf_build.svg'); }
.intro-card-icon--odf-gallery { --intro-icon: url('../images/icon_mode_odf_gallery.svg'); }

.intro-card-title {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dc-c-dark);
}

.intro-card-desc {
    font-size: var(--dc-text-sm);
    color: var(--dc-n-750);
    line-height: 1.5;
}

/* What the badge looks like is .badge .badge--accent .badge--solid .badge--md
   (index.html). What is left here is where it sits on the card — placement belongs
   to the card, the same way the corner badges keep their own position. */
.intro-card-badge { margin-top: 14px; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.header-text {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}

/* Eye (focus/preview) button — Wizard & ODF Configurator only */
.header-eye-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 0;
    height: 30px;
    background: rgba(0,0,0,0.05);
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    color: var(--dc-n-800);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header-eye-btn:hover {
    background: rgba(0,0,0,0.1);
    color: var(--dc-n-1000);
    border-color: rgba(0,0,0,0.25);
}
.header-eye-btn.active {
    background: rgba(39,174,96,0.12);
    border-color: var(--dc-c-success);
    color: var(--dc-c-success);
}

/* Spacer pushes right-side controls to the far right */
.header-spacer { flex: 1; }

/* Close button — returns to welcome screen */
.header-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 0;
    height: 30px;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    color: var(--dc-n-750);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header-close-btn:hover {
    background: rgba(231,76,60,0.1);
    border-color: rgba(231,76,60,0.4);
    color: var(--dc-c-error);
}

/* Save cluster: save button + caret opening the save menu */
.header-save-wrap {
    position: relative;
    display: flex;
    flex-shrink: 0;
}

.header-save-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--dc-c-success);
    border: 1.5px solid var(--dc-c-success);
    border-radius: var(--dc-radius-sm) 0 0 var(--dc-radius-sm);
    color: var(--dc-n-0);
    padding: 5px 12px;
    font-size: var(--dc-text-sm);
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background var(--dc-transition), border-color var(--dc-transition);
}
.header-save-btn:hover {
    background: var(--dc-c-success-hover);
    border-color: var(--dc-c-success-hover);
}
.header-save-btn:focus-visible {
    outline: none;
    box-shadow: var(--dc-focus-ring);
}

.header-save-caret {
    background: var(--dc-c-success);
    border: 1.5px solid var(--dc-c-success);
    border-left-color: rgba(255,255,255,0.35);
    border-radius: 0 var(--dc-radius-sm) var(--dc-radius-sm) 0;
    color: var(--dc-n-0);
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--dc-transition), border-color var(--dc-transition);
}
.header-save-caret:hover {
    background: var(--dc-c-success-hover);
    border-color: var(--dc-c-success-hover);
}
.header-save-caret:focus-visible {
    outline: none;
    box-shadow: var(--dc-focus-ring);
}

/* Auto-save is off and the edits live only in this tab — make the button the
   thing the eye lands on, because nothing else will write them. */
.header-save-btn--pending,
.header-save-btn--pending + .header-save-caret {
    background: var(--dc-c-warning);
    border-color: var(--dc-c-warning);
}
.header-save-btn--pending:hover,
.header-save-btn--pending + .header-save-caret:hover {
    background: var(--dc-c-warning);
    border-color: var(--dc-c-warning);
    filter: brightness(0.93);
}

.header-save-menu {
    min-width: 210px;
}
.header-save-menu .header-user-menu-action:disabled {
    opacity: 0.4;
    cursor: default;
    background: none;
}

.header-project-name {
    background: var(--dc-n-25);
    border: 1.5px solid var(--dc-n-150);
    border-radius: var(--dc-radius-sm);
    color: var(--dc-n-950);
    font-size: var(--dc-text-md);
    font-weight: 500;
    padding: 5px 10px;
    width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
    outline: none;
    transition: background var(--dc-transition), border-color var(--dc-transition), box-shadow var(--dc-transition);
}
input.header-project-name::placeholder {
    color: var(--dc-n-400);
    font-style: italic;
}
input.header-project-name:focus {
    background: var(--dc-n-0);
    border-color: var(--dc-field-border-focus);
    box-shadow: var(--dc-focus-ring);
}

.autosave-status {
    font-size: var(--dc-text-xs);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s;
    color: var(--dc-n-400);
}
.autosave-dirty  { color: var(--dc-c-warning); }
.autosave-saving { color: var(--dc-n-600); }
.autosave-saved  { color: var(--dc-c-success); }
.autosave-local  { color: var(--dc-n-300); }
.autosave-error  { color: var(--dc-c-error); }
.autosave-off    { color: var(--dc-c-warning); font-weight: 600; }
.autosave-paused { color: var(--dc-n-500); }

/* The cost is .badge .badge--outline .badge--md (index.html). It keeps this rule
   for one thing: it lives in the header's flex row and must not be squeezed. */
.project-cost-badge { flex-shrink: 0; }

.cost-invalid-warn {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--dc-c-error);
    color: var(--dc-n-0);
    font-size: var(--dc-text-xs);
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 4px;
}


/* ── Header user button ───────────────────────────────────────────────────── */

.header-user-wrap {
    position: relative;
    flex-shrink: 0;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,0.05);
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 20px;
    color: var(--dc-n-950);
    padding: 5px 13px 5px 10px;
    font-size: var(--dc-text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.header-user-btn:hover {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.25);
}
#headerUserName:empty + * { display: none; }

.header-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dc-n-0);
    border: 1px solid var(--dc-n-150);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 10000;
    overflow: hidden;
}
.header-user-menu.open { display: block; }

.header-user-menu-email {
    padding: 11px 14px 8px;
    font-size: var(--dc-text-sm);
    color: var(--dc-n-800);
    border-bottom: 1px solid var(--dc-n-50);
    word-break: break-all;
}

.header-user-menu-signout {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    text-align: left;
    font-size: var(--dc-text-md);
    color: var(--dc-c-error-hover);
    cursor: pointer;
    font-weight: 500;
}
.header-user-menu-signout:hover { background: #fdf2f2; }

/* ODF configurator overlay uses the same .header class */
.odf-overlay-header {
    background: var(--dc-n-0);
    padding: 8px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--dc-n-100);
}

/* Focus mode — hide sidebar, show only canvas */
.focus-mode .controls,
.focus-mode #sidebarResizeHandle {
    display: none !important;
}
.focus-mode .canvas-area {
    flex: 1 !important;
}

/* ── Sidebar sliding structure ────────────────────────────────────────────── */

/* These two rules override controls-panel.css .controls */
#controlsPanel {
    overflow: hidden !important;
    padding: 0 !important;
}

.controls-slider {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#wizardPanel {
    width: 50%;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 15px;
    height: 100%;
    box-sizing: border-box;
}

#productSelectorPanel {
    width: 50%;
    flex-shrink: 0;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    background: var(--dc-n-50);
    display: flex;
    flex-direction: column;
}

/* Wizard active: show wizard (translateX 0), PS is off-screen right */
body.mode-wizard .controls-slider {
    transform: translateX(0);
}

/* PS active: slide slider left so PS panel is visible */
body.mode-product-selector .controls-slider {
    transform: translateX(-50%);
}

/* In PS mode expand the controls panel to fill available space */
body.mode-product-selector #controlsPanel {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 0% !important;
}

body.mode-product-selector .canvas-area {
    display: none;
}

.ps-bom-btn {
    display: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dc-c-accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: var(--dc-text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.ps-bom-btn:hover { background: var(--dc-c-accent-hover); }

.ps-bom-count {
    background: white;
    color: var(--dc-c-dark);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: var(--dc-text-xs);
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.ps-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    height: 36px;
    font-size: var(--dc-text-sm);
    background: var(--dc-n-0);
    border-top: 0.5px solid var(--dc-n-150);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}

.ps-breadcrumb-item {
    cursor: pointer;
    color: var(--dc-n-700);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.15s;
}

.ps-breadcrumb-item:hover { color: var(--dc-n-1000); }

.ps-breadcrumb-item.active {
    color: var(--dc-n-1000);
    font-weight: 400;
    cursor: default;
}

.ps-breadcrumb-sep {
    color: var(--dc-n-400);
    font-size: var(--dc-text-sm);
    margin: 0 6px;
    user-select: none;
}

/* ── Content area (animated) ─────────────────────────────────────────────── */

.ps-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ps-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 16px;
}

/* ── Product grid ─────────────────────────────────────────────────────────── */

.ps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.ps-card {
    background: white;
    border-radius: var(--dc-radius-md);
    border: 1px solid var(--dc-n-150);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--dc-transition), box-shadow var(--dc-transition);
    display: flex;
    flex-direction: column;
}

.ps-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dc-elev-md);
}

.ps-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: var(--dc-n-0);
    padding: 12px;
    box-sizing: border-box;
    display: block;
}

/* ── Carousel ──────────────────────────────────────────────────────────────── */

.ps-carousel {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--dc-n-50);
}

.ps-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

.ps-carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--dc-n-0);
    padding: 12px;
    box-sizing: border-box;
}

.ps-card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--dc-c-accent-light) 0%, #d4ede8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-c-accent);
    font-size: 28px;
}

.ps-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-card-name {
    font-size: var(--dc-text-sm);
    font-weight: 600;
    color: var(--dc-c-dark);
    line-height: 1.35;
}

.ps-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}


/* ── Product modal ────────────────────────────────────────────────────────── */

.ps-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dc-overlay-backdrop);
    backdrop-filter: blur(var(--dc-overlay-blur));
    /* Kept one step below .modal windows (was 1500 vs 2000) */
    z-index: calc(var(--dc-z-modal) - 100);
    align-items: center;
    justify-content: center;
}

.ps-modal-overlay.active {
    display: flex;
    animation: dcModalBackdropIn 0.2s ease both;
}

.ps-modal-overlay.active > .ps-modal-box {
    animation: dcModalPopIn var(--dc-anim-in) var(--dc-ease-pop) both;
}

@media (prefers-reduced-motion: reduce) {
    .ps-modal-overlay.active,
    .ps-modal-overlay.active > .ps-modal-box {
        animation: none;
    }
}

.ps-modal-box {
    background: var(--dc-modal-surface);
    border-radius: var(--dc-radius-lg);
    width: 480px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: var(--dc-elev-modal);
    display: flex;
    flex-direction: column;
}

.ps-modal-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--dc-radius-lg) var(--dc-radius-lg) 0 0;
    background: var(--dc-n-0);
    display: block;
    padding: 12px;
    box-sizing: border-box;
}

.ps-modal-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--dc-c-accent-light) 0%, #d0ebe5 100%);
    border-radius: var(--dc-radius-lg) var(--dc-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--dc-c-accent);
}

.ps-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ps-modal-title {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    color: var(--dc-c-dark);
    line-height: 1.3;
}

.ps-modal-img-wrap {
    position: relative;
}

/* ── Filters in modal ─────────────────────────────────────────────────────── */

.ps-filter-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-filter-label {
    font-size: var(--dc-text-xs);
    font-weight: 600;
    color: var(--dc-n-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ps-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ps-pill {
    padding: 5px 13px;
    border-radius: 16px;
    border: 1.5px solid var(--dc-n-200);
    background: white;
    color: var(--dc-n-900);
    font-size: var(--dc-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ps-pill:hover {
    border-color: var(--dc-c-accent);
    color: #2a8068;
}

.ps-pill.selected {
    background: var(--dc-c-accent);
    border-color: var(--dc-c-accent);
    color: white;
}

.ps-pill.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.ps-length-select {
    padding: 7px 9px;
    border: 1.5px solid var(--dc-field-border);
    border-radius: var(--dc-field-radius);
    font-size: var(--dc-text-md);
    width: 100%;
    max-width: 180px;
    background: var(--dc-field-bg);
    color: var(--dc-field-text);
    cursor: pointer;
    transition: border-color var(--dc-transition), box-shadow var(--dc-transition);
}

.ps-length-select:focus {
    outline: none;
    border-color: var(--dc-field-border-focus);
    box-shadow: var(--dc-focus-ring);
}

/* ── Qty row ──────────────────────────────────────────────────────────────── */

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

.ps-qty-label {
    font-size: var(--dc-text-sm);
    font-weight: 600;
    color: var(--dc-n-800);
    min-width: 60px;
}

.ps-qty-input {
    width: 70px;
    padding: 6px 9px;
    border: 1.5px solid var(--dc-field-border);
    border-radius: var(--dc-field-radius);
    font-size: var(--dc-text-md);
    text-align: center;
    color: var(--dc-field-text);
    transition: border-color var(--dc-transition), box-shadow var(--dc-transition);
}

.ps-qty-input:focus {
    outline: none;
    border-color: var(--dc-field-border-focus);
    box-shadow: var(--dc-focus-ring);
}

/* ── Links row ────────────────────────────────────────────────────────────── */

.ps-links-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ps-ext-link {
    font-size: var(--dc-text-sm);
    color: var(--dc-c-accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-ext-link:hover { text-decoration: underline; }

/* ── Add to BOM button ────────────────────────────────────────────────────── */

.ps-add-btn {
    background: var(--dc-c-accent);
    color: white;
    border: none;
    border-radius: var(--dc-radius-sm);
    padding: 10px 20px;
    font-size: var(--dc-text-md);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dc-transition);
    width: 100%;
}

.ps-add-btn:hover { background: var(--dc-c-accent-hover); }
.ps-add-btn:focus-visible { outline: none; box-shadow: var(--dc-focus-ring); }
.ps-add-btn:disabled { background: var(--dc-n-300); cursor: not-allowed; }

.ps-variant-warning {
    font-size: var(--dc-text-sm);
    color: var(--dc-c-warning);
    background: #fef9ec;
    border: 1px solid #f0d080;
    border-radius: 5px;
    padding: 6px 10px;
    display: none;
}

.ps-variant-warning.visible { display: block; }

/* ── BOM modal ────────────────────────────────────────────────────────────── */

.ps-bom-modal-box {
    width: 680px;
    max-width: calc(100vw - 40px);
}

.ps-bom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0;
    flex-shrink: 0;
}

.ps-bom-title {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    color: var(--dc-c-dark);
}

.ps-bom-body {
    padding: 16px 22px 22px;
}

/* BOM empty message uses the .empty-state primitive */

.ps-bom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--dc-text-md);
    margin-bottom: 16px;
}

.ps-bom-table th {
    background: var(--dc-n-50);
    color: var(--dc-n-800);
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid var(--dc-n-150);
    white-space: nowrap;
}

.ps-bom-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--dc-n-50);
    vertical-align: middle;
    color: var(--dc-n-950);
}

.ps-bom-table tr:hover td { background: var(--dc-n-25); }

.ps-bom-qty-input {
    width: 56px;
    padding: 4px 6px;
    border: 1.5px solid var(--dc-field-border);
    border-radius: var(--dc-radius-xs);
    font-size: var(--dc-text-md);
    text-align: center;
    color: var(--dc-field-text);
    transition: border-color var(--dc-transition), box-shadow var(--dc-transition);
}

.ps-bom-qty-input:focus {
    outline: none;
    border-color: var(--dc-field-border-focus);
    box-shadow: var(--dc-focus-ring);
}

/* .ps-bom-remove-btn uses the .icon-btn--delete primitive */

.ps-bom-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid var(--dc-n-50);
}

.ps-bom-actions button {
    font-size: var(--dc-text-md);
    padding: 8px 16px;
}

.ps-bom-auth-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ── Slide animation for internal PS navigation ───────────────────────────── */

@keyframes psSlideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes psSlideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

@keyframes psSlideOutLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes psSlideOutRight {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}
