/* SPDX-License-Identifier: AGPL-3.0-or-later */
.sq-nav-host>[data-flx="app.guilds-layout.guild-list.guild-list-scroll-container"]{height:calc(100% - 60px)!important}
.sq-store-launcher-slot{position:absolute;bottom:0;inset-inline:0;height:58px;display:flex;align-items:center;justify-content:center;background:var(--background-secondary,#1b1b20);border-top:1px solid var(--background-modifier-accent,#303038);z-index:3}
.sq-store-launcher{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:14px;background:var(--background-tertiary,#29292f);color:var(--text-normal,#c8c8d0);cursor:pointer;transition:background .15s,color .15s}
.sq-store-launcher:hover{background:#9f332b;color:#fff}.sq-store-launcher:focus-visible{outline:2px solid #fb8a54;outline-offset:3px}
.sq-store-dialog{--sq-bg:#19191e;--sq-panel:#232329;--sq-border:#3a393f;--sq-text:#f4f0eb;--sq-dim:#aaa6ac;--sq-accent:#ff8753;color-scheme:dark;margin:auto;padding:0;width:min(1230px,calc(100vw - 64px));max-width:none;height:min(920px,calc(100dvh - 64px));max-height:none;background:var(--sq-bg);color:var(--sq-text);border:1px solid #454148;border-radius:16px;box-shadow:0 30px 120px #000a;font:14px/1.5 Arial,Helvetica,sans-serif;overflow:hidden}
.sq-store-dialog::backdrop{background:#08080bb8;backdrop-filter:blur(5px)}
.sq-store-dialog *{box-sizing:border-box}.sq-store-dialog button,.sq-store-dialog input,.sq-store-dialog textarea{font:inherit}.sq-store-dialog button{cursor:pointer}.sq-store-dialog button:disabled{cursor:default}.sq-store-dialog button:focus-visible,.sq-store-dialog a:focus-visible,.sq-store-dialog input:focus-visible,.sq-store-dialog textarea:focus-visible{outline:2px solid var(--sq-accent);outline-offset:4px}.sq-store-dialog h1,.sq-store-dialog h2,.sq-store-dialog h3,.sq-store-dialog p{margin:0}.sq-store-dialog button{border:0}.sq-store-dialog [hidden]{display:none!important}.sq-store-dialog img{object-fit:contain;user-select:none;-webkit-user-drag:none}
.sq-store-header{display:flex;align-items:center;gap:26px;min-height:68px;padding:0 22px;border-bottom:1px solid var(--sq-border);background:#1c1b20}.sq-store-label{display:flex;align-items:center;gap:10px;color:#d9d3d2}.sq-store-label svg{color:#be7770}.sq-store-label h1{font-size:16px;font-weight:700;letter-spacing:-.2px}.sq-store-header nav{display:flex;gap:24px;align-self:stretch}.sq-store-header nav button{border-bottom:2px solid transparent;background:transparent;padding:0;color:#a9a3ab;font-size:13px}.sq-store-header nav button[aria-current="page"]{border-color:#f18763;color:#fff}.sq-store-header nav button:hover{color:#fff}.sq-close{margin-left:auto;flex-shrink:0;display:grid;place-items:center;background:none;color:#aca6ae;font-size:28px!important;width:34px;height:34px;border-radius:8px}.sq-close:hover{color:#fff;background:#343038}.sq-store-scroll{height:calc(100% - 68px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#49434b transparent;padding:25px 30px 0}.sq-store-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:208px;border-radius:13px;overflow:hidden;margin-bottom:25px;padding:32px;background:linear-gradient(100deg,#1e1315f2 22%,#1e1315b0 65%,#160e12b3),url('/atelier/assets/cardinal-scene.png') center/cover;border:1px solid #62322d}.sq-store-hero>div{z-index:1;position:relative;max-width:78%}.sq-kicker{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#dba89b;margin-bottom:12px!important;line-height:1.5}.sq-store-hero h2{font-size:clamp(24px,2.4vw,33px);font-weight:700;letter-spacing:-1px;line-height:1.18}.sq-store-hero h2 span{color:#fc986c}.sq-store-hero p:last-child{font-size:12px;color:#c5ada9;margin-top:15px}.sq-store-hero>img{position:absolute;right:9px;bottom:-32px;width:215px;height:245px;transform:rotate(-7deg);filter:drop-shadow(0 12px 24px #0008)}
.sq-store-grid{display:grid;grid-template-columns:1.18fr 1fr;align-items:start;gap:26px}.sq-product{background:var(--sq-panel);border:1px solid var(--sq-border);border-radius:13px;overflow:hidden}.sq-product-art{height:238px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 35% 40%,#ae3a2040,transparent 58%),linear-gradient(135deg,#23161b,#3e191b 65%,#191319)}.sq-product-art:before{content:'';position:absolute;inset:0;background:url('/atelier/assets/cardinal-scene.png') center/cover;opacity:.35}.sq-tag{position:absolute;left:17px;top:15px;z-index:2;font-size:8px;font-weight:700;letter-spacing:1px;color:#f5c6ae;border:1px solid #a15c43;background:#371b1bc4;border-radius:5px;padding:4px 7px}.sq-card-frame{position:absolute;left:13%;top:54px;z-index:2}.sq-card-mascot{position:absolute;height:240px;width:210px;right:-7px;bottom:-2px;z-index:1;filter:drop-shadow(0 10px 16px #0008)}.sq-card-nameplate{position:absolute;left:30px;right:28px;bottom:18px;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:10px 17px;background:linear-gradient(100deg,#401b20f5,#a83c32d9);border:1px solid #c3644880;border-radius:8px;box-shadow:0 10px 20px #0005;font-size:11px;font-weight:700;letter-spacing:1.2px;color:#ffe0c2;transform:rotate(-3deg)}.sq-product-copy{padding:22px}.sq-product-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.sq-product-heading .sq-kicker{font-size:8px;margin-bottom:7px!important;color:#a99ca4}.sq-product-heading h3{font-size:20px;letter-spacing:-.5px;line-height:1.25}.sq-free{font-size:11px;color:#adc9ab;background:#3443316b;border:1px solid #546b4b75;padding:5px 9px;border-radius:6px;white-space:nowrap}.sq-product-copy>p{font-size:12px;color:var(--sq-dim);line-height:1.8;margin:15px 0 19px}.sq-item-list{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sq-item{display:flex;flex-direction:column;align-items:stretch;padding:7px!important;text-align:left;background:#19191f;border:1px solid #39353d!important;border-radius:8px;color:#d3ccd2;min-width:0}.sq-item:hover,.sq-item.is-selected{border-color:#d77b55!important;background:#2b2024}.sq-item-art{position:relative;display:block;height:70px;border-radius:5px;overflow:hidden;background:#30252b;margin-bottom:8px}.sq-item-art img{width:100%;height:100%}.sq-item-art-frame img{padding:4px}.sq-item-art-nameplate{background:linear-gradient(110deg,#41202a,#9e3b32)}.sq-item-art-nameplate img{object-position:right;height:110%;width:85%;margin-left:18%}.sq-item-art-background img{object-fit:cover}.sq-item strong{font-size:10px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.sq-item>span:last-child{font-size:9px;color:#9e939d;line-height:1.4;margin-top:4px}.sq-product-bottom{border-top:1px solid #3c343c;margin-top:21px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.sq-muted{color:var(--sq-dim);font-size:11px;line-height:1.7}.sq-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border-radius:8px;background:var(--sq-accent);color:#24170f;font-weight:700!important;font-size:12px!important;padding:11px 22px;transition:background .15s}.sq-action:hover{background:#ffa676}.sq-action:disabled{background:#3f3b42;color:#8f8991}.sq-action.sq-action-owned{color:#b0cfad;background:#36432f}.sq-fitting{position:sticky;top:0;border:1px solid var(--sq-border);border-radius:13px;padding:21px;background:#1d1c22}.sq-fitting-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.sq-fitting-title h3{font-size:17px}.sq-fitting-title>span{font-size:10px;color:#918791}.sq-preview-tabs{display:flex;background:#141419;border-radius:8px;padding:4px;margin-bottom:18px;gap:3px}.sq-preview-tabs button{flex:1;padding:8px 4px;background:none;border-radius:5px;color:#a89aa5;font-size:10px!important;white-space:nowrap}.sq-preview-tabs button.is-selected{color:#f6e7db;background:#453039}.sq-preview-stage{min-height:285px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,#62302933,transparent 70%);border-radius:10px}.sq-profile-preview{width:100%;max-width:300px;background:#222127;border:1px solid #454047;border-radius:11px;overflow:hidden;box-shadow:0 12px 25px #0004}.sq-profile-art{height:92px;background:#49404a}.sq-profile-art-equipped{background:url('/atelier/assets/cardinal-scene.png') center/cover}.sq-profile-info{padding:0 18px 18px;position:relative}.sq-profile-info>.sq-preview-avatar{margin-top:-36px;margin-bottom:15px}.sq-preview-avatar{display:inline-block;position:relative;isolation:isolate;width:var(--sq-avatar-size);height:var(--sq-avatar-size);flex-shrink:0;vertical-align:middle}.sq-portrait{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;background:#232329;box-shadow:0 0 0 5px #222127}.sq-preview-frame{position:absolute;inset:-15%;width:130%;height:130%;max-width:none!important;pointer-events:none;z-index:2}.sq-preview-name{position:relative;display:flex;align-items:center;gap:15px;min-height:36px;padding:5px 0}.sq-preview-name strong{font-size:15px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sq-preview-name-equipped{background:linear-gradient(110deg,#66232c,#9b382e70);border:1px solid #a2513a7a;border-radius:6px;padding:9px 40px 9px 11px;min-width:0}.sq-preview-name>img{position:absolute;right:1px;bottom:0;width:35px;height:43px;object-position:bottom}.sq-preview-handle{font-size:10px;color:#bda5b1;margin-top:6px!important}.sq-preview-divider{height:1px;background:#42343d;margin:16px 0 12px}.sq-small-label{font-size:8px;font-weight:700;letter-spacing:1.5px;color:#95868f}.sq-profile-caption{font-size:11px;color:#c7b6c0;margin-top:6px!important}.sq-slot-controls{border:0;padding:0;margin:22px 0 18px;display:flex;gap:15px;flex-wrap:wrap}.sq-slot-controls legend{font-size:10px;color:#a99ea7;margin-bottom:10px}.sq-slot-controls label{display:flex;align-items:center;gap:7px;font-size:11px;cursor:pointer;color:#d1c0cc}.sq-slot-controls input{accent-color:#ed865c;width:14px;height:14px;margin:0;cursor:pointer}.sq-fitting-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.sq-apply{flex:1;min-width:140px}.sq-fitting-actions>p{font-size:10px;width:100%;text-align:center}.sq-text-button{background:none;color:#b9a6b3;font-size:11px!important;padding:8px 0}.sq-text-button:hover{color:#fff}.sq-status{font-size:11px;line-height:1.7;color:#bad3ae;margin-top:14px;min-height:0;overflow-wrap:anywhere}.sq-status:empty{margin:0}.sq-status-error{color:#ffaf9d}.sq-isolated{min-height:285px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center;padding:20px 6px}.sq-isolated h3{font-size:16px;margin-top:8px}.sq-isolated p{color:#b3a3ae;font-size:11px;line-height:1.7;max-width:230px}.sq-feather-stage>.sq-preview-avatar{margin:18px}.sq-isolated h3+p{margin-top:-12px}.sq-preview-row{display:flex;align-items:center;gap:16px;width:100%;padding:20px 14px;background:#28242c;border-radius:9px}.sq-preview-row .sq-preview-name{flex:1;max-width:calc(100% - 50px)}.sq-background-detail>img{width:100%;height:130px;object-fit:cover;border-radius:7px;border:1px solid #4b343d}.sq-store-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:25px;padding:18px 0;color:#7f727c;border-top:1px solid #302a32;font-size:9px}.sq-store-footer a{color:#8c7c88;text-decoration:none}.sq-store-footer a:hover{color:#d8bdcb}.sq-loading,.sq-empty{min-height:430px;display:flex;align-items:center;justify-content:center;gap:22px;flex-direction:column;text-align:center;color:#b8a9b4}.sq-empty h2{font-size:24px;color:#eee1e8}.sq-empty p{font-size:13px;color:#aaa0aa}.sq-empty>img{height:180px;max-width:190px}.sq-spinner{width:28px;height:28px;border:2px solid #59444f;border-top-color:#e78a61;border-radius:50%;animation:sq-spin .8s linear infinite}@keyframes sq-spin{to{transform:rotate(360deg)}}.sq-admin{max-width:670px;margin:28px auto 55px}.sq-admin h2{font-size:30px;margin-bottom:14px}.sq-admin form{margin-top:26px}.sq-admin form>label:not(.sq-check){display:block;font-size:12px;color:#c7b7c2;margin-bottom:20px}.sq-admin input:not([type="checkbox"]),.sq-admin textarea{display:block;margin-top:9px;width:100%;background:#121216;color:#eee4eb;border:1px solid #52414d;border-radius:8px;padding:12px;font-size:14px}.sq-admin textarea{min-height:140px;resize:vertical}.sq-check{display:flex;align-items:center;gap:9px;font-size:13px;color:#c7b7c2}.sq-check input{accent-color:#ef865a}.sq-admin-actions{display:flex;justify-content:space-between;align-items:center;margin-top:28px}
/* Native avatar/profile hooks only; no user names, messages, or IDs are rewritten. */
[data-flx-user-id][data-flx-size].sq-avatar-frame{isolation:isolate}
[data-flx-user-id][data-flx-size].sq-avatar-frame:after{content:'';position:absolute;inset:-15%;background:url('/atelier/assets/cardinal-frame.png') center/100% 100% no-repeat;pointer-events:none;z-index:2}
.sq-avatar-frame [data-flx="ui.base-avatar.status-container"]{z-index:3}
[data-member-list-focus-item].sq-nameplate{position:relative;background:linear-gradient(105deg,#71242a55,#b6462b22)!important;box-shadow:inset 2px 0 #db674877;border-radius:6px}
[data-member-list-focus-item].sq-nameplate:after{content:'';position:absolute;right:4px;bottom:0;width:26px;height:34px;background:url('/atelier/assets/cardinal-mascot.png') bottom/contain no-repeat;pointer-events:none;opacity:.8}
.sq-message-nameplate{background:linear-gradient(100deg,#78272c55,#9a41272b);border-radius:4px;padding-inline:5px}
[data-flx="user.profile.profile-card.profile-card-banner.banner"].sq-profile-backdrop{background-image:url('/atelier/assets/cardinal-scene.png')!important;background-position:center!important;background-size:cover!important}
.sq-profile-nameplate [data-flx="user.profile.profile-card.profile-card-content.content-section"]{background:linear-gradient(150deg,#551b2328,transparent 70%)}
@media(max-width:950px){.sq-store-dialog{width:calc(100vw - 36px);height:calc(100dvh - 36px)}.sq-store-scroll{padding:20px 20px 0}.sq-store-grid{gap:18px;grid-template-columns:1.1fr 1fr}.sq-product-copy{padding:17px}.sq-product-heading h3{font-size:17px}.sq-product-heading{gap:8px}.sq-free{font-size:10px;padding:4px 7px}.sq-fitting{padding:16px}.sq-card-frame{left:11%}.sq-card-mascot{width:180px;right:-18px}.sq-card-nameplate{left:20px;right:18px}.sq-product-art{height:225px}.sq-store-hero h2{font-size:27px}.sq-store-hero>img{right:-18px;opacity:.85}.sq-item strong{font-size:9px}.sq-product-bottom{gap:8px}.sq-product-bottom .sq-muted{font-size:10px}.sq-action{padding-inline:17px}.sq-slot-controls{gap:12px}.sq-store-header nav{gap:20px}}
@media(max-width:720px){.sq-store-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px);border-radius:12px}.sq-store-header{padding:0 15px;gap:20px;flex-wrap:wrap;min-height:96px;position:relative;padding-top:12px}.sq-store-label h1{font-size:15px}.sq-store-label svg{width:21px}.sq-close{position:absolute;right:12px;top:11px}.sq-store-header nav{order:3;flex-basis:100%;height:43px;gap:24px}.sq-store-header nav button{font-size:12px}.sq-store-scroll{height:calc(100% - 96px);padding:15px 14px 0}.sq-store-hero{min-height:175px;padding:22px;margin-bottom:18px}.sq-store-hero>div{max-width:76%}.sq-store-hero .sq-kicker{font-size:7px;letter-spacing:1.3px}.sq-store-hero h2{font-size:22px;letter-spacing:-.5px}.sq-store-hero p:last-child{font-size:10px;margin-top:13px;max-width:200px}.sq-store-hero>img{height:185px;width:155px;right:-24px;bottom:-24px;opacity:.78}.sq-store-grid{grid-template-columns:1fr;gap:18px}.sq-product-art{height:235px}.sq-card-frame{left:14%;top:58px}.sq-card-mascot{right:2px;height:242px;width:200px}.sq-card-nameplate{left:25px;right:24px}.sq-product-copy{padding:18px}.sq-product-heading h3{font-size:19px}.sq-product-heading{align-items:flex-start}.sq-product-copy>p{font-size:12px}.sq-item strong{font-size:10px}.sq-item>span:last-child{font-size:9px}.sq-item-art{height:72px}.sq-fitting{position:static;padding:20px}.sq-preview-stage{min-height:285px}.sq-product-bottom .sq-muted{font-size:11px}.sq-store-footer{font-size:8px}.sq-admin{margin:20px auto 40px}.sq-admin h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){.sq-store-dialog *, .sq-store-launcher{animation:none!important;transition:none!important}}

/* The native user panel overlays the bottom of the rail on desktop. */
.sq-store-launcher-slot{bottom:var(--layout-user-area-overlay-height,0px)}
.sq-nav-host>[data-flx="app.guilds-layout.guild-list.guild-list-scroll-container"]{height:calc(100% - 60px - var(--layout-user-area-overlay-height,0px))!important}

.sq-profile-backdrop{background-image:url('/atelier/assets/cardinal-scene.png')!important;background-position:center!important;background-size:cover!important}
.sq-profile-nameplate [data-flx="user.profile.profile-card.profile-card-user-info.name-row"],.sq-profile-nameplate [data-flx="user.user-profile-modal.user-info.div--5"]{background:linear-gradient(100deg,#66232c99,#9b382e44);border:1px solid #a2513a66;border-radius:6px;padding:7px 10px}
.sq-account-notice{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:8px 42px 8px 16px;background:#352626;color:#f5ebe5;font:600 13px/1.5 Arial,sans-serif;text-align:center;overflow-wrap:anywhere}
.sq-account-notice a{background:#ff8753;color:#20140e;padding:4px 10px;border-radius:5px;text-decoration:none;flex-shrink:0}.sq-account-notice a:hover{background:#ff9a70}
.sq-account-notice>button{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:none;color:#ddd;font-size:24px;cursor:pointer;padding:0 5px}.sq-account-notice>button:hover{color:#ff8753}
