.xy-space-shop, .xy-space-dialog, .xy-space-preview-bar {
    --xs-accent: #345c89; --xs-ink: #26384e; --xs-muted: #60718a;
    --xs-line: #cbd5e3; --xs-paper: #f8fafd; --xs-soft: #eaf0f8;
}
/* Wardrobe. Scoped so default pages retain their existing appearance. */
.xy-space-shop { color: var(--xs-ink); padding-bottom: 20px; }
.xy-space-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.xy-space-eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--xs-accent); }
.xy-space-shop h2 { font-size: 28px; letter-spacing: .02em; margin: 7px 0 9px; color: var(--xs-ink); }
.xy-space-heading p { margin: 0; color: var(--xs-muted); font-size: 13px; }
.xy-space-shop .xy-space-wallet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 15px; border: 1px solid var(--xs-line); border-radius: 12px; background: var(--xs-paper); font-size: 12px; color: var(--xs-muted); }
.xy-space-wallet b { font-size: 19px; color: var(--xs-accent); }
.xy-space-product { border: 1px solid var(--xs-line); border-radius: 20px; background: var(--xs-paper); overflow: hidden; box-shadow: 0 8px 30px rgba(16,46,84,.05); }
.xy-space-cover { min-height: 300px; position: relative; isolation: isolate; background: #eaf0f8; overflow: hidden; }
.xy-space-cover > img { position: absolute; inset: 0 0 0 auto; width: 65%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 58%; z-index: -2; }
.xy-space-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #eaf0f8 12%, rgba(234,240,248,.94) 29%, rgba(234,240,248,0) 66%); z-index: -1; }
.xy-space-cover-copy { padding: 52px 38px 40px; max-width: 65%; color: #26384e; }
.xy-space-edition { font-size: 11px; letter-spacing: .16em; color: #60718a; }
.xy-space-cover-copy h3 { font-size: clamp(30px, 3vw, 43px); letter-spacing: .09em; margin: 17px 0 12px; color: #26384e; font-weight: 700; }
.xy-space-cover-copy p { font-size: 13px; margin-bottom: 28px; color: #60718a; }
.xy-space-cover-tag { font-size: 11px; padding: 7px 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); border-radius: 30px; }
.xy-space-product-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px 18px; }
.xy-space-product-info h3 { font-size: 18px; margin: 0 0 9px; color: var(--xs-ink); }
.xy-space-product-info p { font-size: 12px; color: var(--xs-muted); margin-bottom: 9px; }
.xy-space-permanent { font-size: 11px; color: var(--xs-muted); }
.xy-space-price { text-align: right; flex-shrink: 0; }
.xy-space-price strong { display: block; font-size: 35px; line-height: 1.25; color: var(--xs-accent); }
.xy-space-price span { color: var(--xs-muted); font-size: 11px; }
.xy-space-product-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 30px 24px; }
.xy-space-btn { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; background: var(--xs-accent, #345c89); color: #fff; font-family: inherit; font-size: 13px; line-height: 1.4; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: background-color .15s, box-shadow .15s; }
.xy-space-btn:hover { background: #25476e; color: #fff; box-shadow: 0 4px 14px rgba(16,46,84,.15); }
.xy-space-btn.is-secondary { color: var(--xs-accent, #345c89); background: var(--xs-paper, #f8fafd); border-color: var(--xs-line, #cbd5e3); }
.xy-space-btn.is-secondary:hover { background: var(--xs-soft, #eaf0f8); }
.xy-space-btn:disabled { opacity: .65; cursor: default; box-shadow: none; }
.xy-space-btn:focus-visible, .xy-space-wallet:focus-visible, .xy-space-entry:focus-visible { outline: 3px solid #6d91ba; outline-offset: 3px; }
.xy-space-status { font-size: 13px; color: var(--xs-accent); padding: 0 30px; margin: 0 0 18px; }
.xy-space-status:empty { display: none; }
.xy-space-status.is-error { color: #b23148; }
.xy-space-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 15px; }
.xy-space-section-title h3 { font-size: 17px; color: var(--xs-ink); margin: 0; }
.xy-space-section-title > span { font-size: 11px; color: var(--xs-muted); }
.xy-space-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xy-space-sample { min-width: 0; padding: 20px; background: var(--xs-paper); border: 1px solid var(--xs-line); border-radius: 14px; }
.xy-space-sample.is-profile { grid-column: 1 / -1; }
.xy-space-sample-label { display: block; color: var(--xs-muted); font-size: 11px; letter-spacing: .05em; margin-bottom: 15px; }
.xy-space-sample > p { font-size: 11px; color: var(--xs-muted); margin: 14px 0 0; }
.xy-space-profile-demo { display: flex; align-items: center; gap: 15px; min-height: 126px; padding: 24px; border-radius: 10px; border: 1px solid #cbd5e3; background: linear-gradient(90deg, #f8fafd 22%, rgba(248,250,253,.86) 65%, rgba(248,250,253,.4)), var(--sr-profile) right 51% / 370px auto; color: #26384e; }
.xy-space-demo-avatar { display: flex; justify-content: center; align-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; font-size: 25px; color: #345c89; background: #eaf0f8; border: 3px solid #fff; }
.xy-space-profile-demo b { display: block; overflow-wrap: anywhere; }
.xy-space-profile-demo small { display: block; font-size: 11px; color: #60718a; margin-top: 5px; }
.xy-space-demo-pill { font-size: 11px; color: #345c89; background: #f8fafd; border: 1px solid #cbd5e3; border-radius: 20px; padding: 6px 11px; margin-left: auto; white-space: nowrap; }
.xy-space-comment-demo b { font-size: 13px; color: #26384e; overflow-wrap: anywhere; }
.xy-space-comment-demo small { display: block; font-size: 10px; color: #60718a; margin: 3px 0 12px; }
.xy-space-comment-demo p { font-size: 12px; color: #26384e; margin: 0; line-height: 1.8; }
.simple-ulike-user-card.xy-space-card-demo { width: 100%; min-width: 0; max-width: none; min-height: 154px; padding: 18px; box-shadow: none; }
.xy-space-card-demo .simple-ulike-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.xy-space-card-demo .simple-ulike-card-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.xy-space-card-demo b { font-size: 13px; overflow-wrap: anywhere; }
.xy-space-card-demo small { color: #60718a; font-size: 11px; }
.xy-space-demo-stats { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 13px; border-top: 1px solid #cbd5e3; color: #60718a; font-size: 10px; }
.xy-space-default { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 24px; background: var(--xs-paper); border: 1px solid var(--xs-line); border-radius: 13px; margin-top: 20px; }
.xy-space-default b { font-size: 14px; }
.xy-space-default p { font-size: 12px; margin: 6px 0 0; color: var(--xs-muted); }
.xy-space-default button { flex-shrink: 0; }
.xy-space-notes { font-size: 11px; color: var(--xs-muted); line-height: 1.9; margin: 20px 4px 0; }
.xy-space-notes p { margin: 4px 0; }
.xy-space-preview-bar[hidden] { display: none; }
.xy-space-preview-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10010; width: max-content; max-width: calc(100vw - 28px); display: flex; align-items: center; gap: 28px; padding: 14px 18px 14px 22px; border: 1px solid var(--xs-line); border-radius: 16px; background: var(--xs-paper); color: var(--xs-ink); box-shadow: 0 10px 50px rgba(16,46,84,.2); }
.xy-space-preview-bar b { display: block; font-size: 13px; }
.xy-space-preview-bar span { display: block; font-size: 11px; color: var(--xs-muted); margin-top: 4px; }
body.xy-space-previewing { padding-bottom: 110px; }
.xy-space-dialog { width: 440px; max-width: calc(100vw - 32px); padding: 30px; border: 1px solid var(--xs-line); border-radius: 18px; background: var(--xs-paper); color: var(--xs-ink); box-shadow: 0 20px 90px rgba(16,46,84,.25); }
.xy-space-dialog::backdrop { background: rgba(10,25,45,.45); backdrop-filter: blur(3px); }
.xy-space-dialog h3 { font-size: 22px; color: var(--xs-ink); margin: 12px 0 20px; }
.xy-space-dialog p { font-size: 13px; line-height: 1.9; }
.xy-space-confirm-balance { color: var(--xs-muted); }
.xy-space-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

@media (max-width: 767px) {
    .xy-space-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .xy-space-shop h2 { font-size: 24px; }
    .xy-space-shop .xy-space-wallet { width: 100%; }
    .xy-space-cover { min-height: 270px; }
    .xy-space-cover > img { width: 78%; object-position: 53% 52%; }
    .xy-space-cover-copy { padding: 36px 20px; max-width: 78%; }
    .xy-space-cover-copy h3 { font-size: 32px; }
    .xy-space-cover-copy p { max-width: 150px; line-height: 1.8; }
    .xy-space-product-info { padding: 22px 20px 16px; align-items: flex-start; }
    .xy-space-product-info h3 { font-size: 16px; }
    .xy-space-product-info p { line-height: 1.8; }
    .xy-space-permanent { display: block; line-height: 1.8; }
    .xy-space-price strong { font-size: 29px; }
    .xy-space-product-actions { padding: 0 20px 22px; flex-direction: column-reverse; gap: 10px; }
    .xy-space-samples { grid-template-columns: 1fr; }
    .xy-space-section-title { flex-wrap: wrap; }
    .xy-space-sample { padding: 16px; }
    .xy-space-profile-demo { padding: 18px 14px; gap: 10px; }
    .xy-space-demo-pill { display: none; }
    .xy-space-default { padding: 18px; flex-wrap: wrap; gap: 14px; }
    .xy-space-preview-bar { bottom: 10px; gap: 12px; padding: 12px; }
    .xy-space-preview-bar .xy-space-btn { padding: 9px 12px; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { .xy-space-btn { transition: none; } }

.navbar .dropdown-menu .xy-space-entry { display: block; width: fit-content; padding: 5px 12px; margin: 0 0 14px; border-radius: 20px; font-size: 12px; color: #345c89; background: #eaf0f8; }
