.square-page{max-width:1320px;margin:0 auto;padding:26px 24px;color:#e8e6df}.square-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.square-heading h2{font-size:30px;margin:6px 0}.square-heading p,.square-help,.square-sync-info{color:#aaaeb9;font-size:13px}.square-eyebrow{letter-spacing:3px;color:#d9b75a!important;font-size:11px!important}.square-actions{display:flex;flex-wrap:wrap;gap:8px}.square-page button,.square-field-row button,.square-user-row button{cursor:pointer;color:#ecd493;border:1px solid #705e37;background:#d6af4510;border-radius:9px;padding:9px 14px;font-size:13px}.square-page button:hover{background:#d6af4524}.square-page button:disabled{opacity:.35;cursor:default}.square-filters{display:flex;flex-wrap:wrap;gap:12px;background:#171b26;border:1px solid #343745;border-radius:14px;padding:18px}.square-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#b4bac8;min-width:110px}.square-filters input,.square-filters select{background:#10141d;border:1px solid #3c4150;border-radius:7px;color:#e8e6df;padding:9px;min-width:0;width:100%;box-sizing:border-box}.square-advanced{width:100%;border-top:1px solid #303442;padding-top:12px}.square-advanced summary{cursor:pointer;color:#dbc27e;margin-bottom:12px}.square-attribute-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.square-range{display:flex;gap:5px}.square-text-filters{margin:14px 0}.square-text-row{display:grid;grid-template-columns:140px 120px 1fr 40px;gap:8px;align-items:end;margin:8px 0}.square-text-row button{height:36px}.square-help{margin-left:10px}.square-results-bar{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:20px 0 12px;color:#bec4d1}.square-grid{display:grid;grid-template-columns:repeat(var(--square-columns,6),minmax(0,1fr));gap:16px}.square-tile{min-width:0;position:relative;background:#171c27;border:1px solid #333a49;border-radius:12px;overflow:hidden;transition:transform .15s,border-color .15s}.square-tile:hover{transform:translateY(-3px);border-color:#a38b4b}.square-page .square-image-button{width:100%;padding:8px;border:0;border-radius:0;background:transparent}.square-card-image{aspect-ratio: .69;background:linear-gradient(150deg,#453b2d,#171e2b);border-radius:6px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.square-card-image img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.square-card-placeholder{font-size:15px;line-height:1.7;text-align:center;padding:16px;color:#d0ba83}.square-official .square-card-image{aspect-ratio:1}.square-official .square-card-image img{object-fit:cover}.square-tile-info{padding:8px 10px 12px}.square-tile-info h3{font-size:13px;line-height:1.5;margin:0 0 8px;min-height:39px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.square-tile-info p{font-size:11px;color:#939caf;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere}.square-badge{display:inline-block;font-size:10px;padding:3px 6px;border-radius:4px;background:#ffffff0a;color:#b7c0cf}.square-badge.approved{background:#56c99514;color:#82c9a8}.square-badge.pending{background:#e7c04b14;color:#d5ba6a}.square-badge.rejected{background:#d76d7714;color:#d798a0}.square-check{position:absolute;left:12px;top:12px;z-index:2;padding:3px;background:#10141dcc;border-radius:4px}.square-check input{width:17px;height:17px;accent-color:#d8b966}.square-pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin:24px 0;font-size:13px}.square-empty{grid-column:1/-1;padding:50px;text-align:center;color:#a2abbc}.square-detail{display:grid;grid-template-columns:220px 1fr;gap:22px}.square-detail img{max-width:100%;border-radius:8px;align-self:start}.square-detail dl{display:grid;grid-template-columns:120px 1fr;gap:6px;font-size:12px}.square-detail dt{color:#939caf}.square-detail dd{margin:0;overflow-wrap:anywhere}.square-description{white-space:pre-wrap;font-size:14px;line-height:1.9}.account-modal textarea.square-script{height:300px;font-family:Consolas,monospace;font-size:12px}.square-field-row,.square-user-row,.square-message{padding:12px 0;border-bottom:1px solid #363b4b;display:flex;align-items:center;justify-content:space-between;gap:12px}.square-user-row{flex-wrap:wrap}.square-user-row input{max-width:140px}.square-user-row label{margin:0!important}.square-message{display:block;white-space:pre-wrap;line-height:1.8}.square-pack-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.square-pack-cards button{font-size:12px!important}.square-sync-info{line-height:1.7}#review-page:not(.active){display:none!important}[hidden]{display:none!important}
@media(max-width:900px){.square-grid{grid-template-columns:repeat(min(var(--square-columns),4),minmax(0,1fr))}.square-attribute-filters{grid-template-columns:repeat(2,1fr)}.square-heading{align-items:start;flex-direction:column}.square-page{padding:18px 12px}}
@media(max-width:560px){.square-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.square-text-row{grid-template-columns:1fr 1fr 36px}.square-text-row label:nth-child(3){grid-column:1/3;grid-row:2}.square-text-row button{grid-column:3;grid-row:2}.square-filters label{min-width:0}.square-detail{grid-template-columns:1fr}.square-detail img{max-width:180px;margin:auto}.square-pack-cards{grid-template-columns:repeat(2,1fr)}.square-help{display:block;margin:10px 0}.square-filters{padding:12px}}

.square-active .header-steps-bar{display:none!important}.square-active .header-brand{flex-shrink:0;min-width:245px}.square-active .brand-title{white-space:nowrap;font-size:18px}.square-active .brand-version{white-space:nowrap;font-size:10px}.square-active .header-actions{gap:8px}.square-active .studio-header{justify-content:space-between}
body.square-active .mobile-flow-action-bar{display:none!important}
@media(max-width:800px){.square-active .header-brand{min-width:0}.square-active .brand-title{font-size:14px}.square-active .header-actions{gap:4px;flex-wrap:wrap}.square-active .studio-header{height:auto;min-height:70px;flex-wrap:wrap;padding:10px}}

.square-image-button{position:relative}.square-page .square-representative{position:absolute;width:36%;height:45%;object-fit:contain;bottom:14px;right:12px;border:2px solid #d7bd77;border-radius:5px;background:#111927;box-shadow:0 4px 15px #0009}

.effect-links-preview{margin-top:10px;padding:12px 14px;border:1px solid #424661;border-radius:10px;background:#0d1122}
.effect-links-preview small{display:block;margin-bottom:8px;color:#9eaac1;font-size:12px}
.effect-linked-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;color:#f1f5f9}
.effect-links-preview section+section{border-top:1px solid #30384a;margin-top:10px;padding-top:8px}
.effect-links-preview section>span{display:block;margin-bottom:4px;color:#9eaac1;font-size:11px}
.effect-link-tools{display:flex;align-items:center;gap:9px;margin-top:6px;color:#8d99ae;font-size:11px}
.effect-link-tools button.effect-quote-insert{width:auto;min-width:40px;height:32px;min-height:32px;padding:3px 8px;border:1px solid #596280;border-radius:4px;background:#182334;color:#f0cc7b;font-size:16px;line-height:1;cursor:pointer}
.effect-link-tools button.effect-quote-insert:hover{background:#263750}
.input-field{position:relative}
.effect-link-suggestions{position:absolute;z-index:40;left:0;right:0;top:calc(100% - 2px);max-height:220px;overflow-y:auto;border:1px solid #46536a;border-radius:4px;background:#111a29;box-shadow:0 8px 20px #0008}
.effect-link-suggestion{display:block;width:100%;min-height:38px;padding:8px 12px;border:0;border-bottom:1px solid #283346;border-radius:0;background:transparent;color:#e5edf7;text-align:left;cursor:pointer}
.effect-link-suggestion[data-kind=field]{color:#f0cc7b}
.effect-link-suggestion:hover,.effect-link-suggestion:focus-visible{background:#22324a;outline:none}
body .effect-text-link,body .account-modal .account-panel .effect-text-link{display:inline;width:auto;min-width:0;height:auto;min-height:0;max-height:none;margin:0;padding:0;border:0;border-radius:2px;background:transparent;color:#67d8ed;font:inherit;line-height:inherit;text-align:inherit;vertical-align:baseline;white-space:inherit;text-decoration:underline;text-decoration-color:#67d8ed88;text-underline-offset:3px;cursor:pointer;box-shadow:none}
body .effect-text-link-field,body .account-modal .account-panel .effect-text-link-field{color:#f0cc7b;text-decoration-color:#f0cc7b88}
body .effect-text-link:hover,body .account-modal .account-panel .effect-text-link:hover{background:#17657b66;color:#c4f7ff}
body .effect-text-link:focus-visible,body .account-modal .account-panel .effect-text-link:focus-visible{outline:2px solid #67d8ed;outline-offset:3px}

/* The square uses complete portrait card faces and compact square pack covers. */
.square-card-image{aspect-ratio:1394/2031}
.square-card-image img{object-fit:contain}
.square-pack-tile .square-card-image{aspect-ratio:1;background:#0b182c}
.square-pack-tile .square-card-image img{object-fit:cover}
.square-pack-tile .square-tile-info h3{min-height:0;text-align:center;margin-bottom:10px;cursor:pointer}
.square-pack-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#80b6d2}
.square-pack-meta span{color:#e5bf65}
.square-pack-tile{display:flex;flex-direction:column}
.square-pack-tile .square-image-button{flex:none}
.square-pack-tile .square-tile-info{flex:1;display:flex;flex-direction:column}
.square-pack-tile .square-pack-meta{margin-top:auto;padding-top:4px;align-items:flex-end;min-height:28px}
.square-pack-meta time{white-space:nowrap}
.ai-script-actions{display:flex;flex-wrap:wrap;gap:10px}
.ai-script-actions .btn{flex:1;min-height:40px;margin:0}
#aiScriptSection p{font-size:13px;line-height:1.8;color:#b7c7db}
#aiScriptStatus{color:#d9be78!important}
.square-pack-context{display:flex;align-items:center;gap:14px;margin-top:18px;flex-wrap:wrap}
.square-pack-context strong{font-size:16px}
.account-modal .account-panel.square-card-dialog{position:relative;width:min(94vw,1180px);height:min(82vh,650px);max-height:none;overflow:hidden;padding:0;margin:0;border-radius:14px;background:#0d1122}
.square-card-dialog>h2{display:none}
.square-card-dialog .square-detail{display:grid;grid-template-columns:34% minmax(0,1fr);gap:0;height:100%;min-height:0}
.square-detail-art{display:flex;align-items:center;justify-content:center;background:#161b2c;padding:10px;min-height:0;overflow:hidden;border-right:1px solid #424661}
.square-card-dialog .square-detail-art img{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:4px;align-self:center}
.square-detail-content{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.square-detail-content header{padding:18px 58px 14px 22px;background:linear-gradient(110deg,#222a48,#211834);border-bottom:1px solid #3b3d59}
.square-detail-content h3{font-size:25px;line-height:1.35;margin:0 0 8px;overflow-wrap:anywhere}
.square-detail-content header span{color:#9eaac1;font-size:12px}
.square-compact-attributes{font-size:13px;line-height:1.7;color:#b7c7e1;margin:12px 22px 4px}
.square-detail-tabs{display:flex;gap:10px;margin:8px 22px 0}
.account-modal .square-detail-tabs button{width:auto;padding:7px 13px;margin:0;font-size:12px;background:#1d2841;color:#aebcd8;border:1px solid #38425e}
.account-modal .square-detail-tabs button[aria-pressed=true]{color:#f1d18d;border-color:#a58b53;background:#38301e}
.square-detail-scroll,.square-detail-script{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#596a8e #13192b;margin:14px 8px 8px 22px;padding-right:14px}
.square-detail-scroll .square-description{margin:0;font-size:18px;line-height:1.9;overflow-wrap:anywhere}
.square-detail-script{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 Consolas,monospace;color:#b9c9e6}
.square-banlists{font-size:12px;color:#8e9bb5;line-height:1.7;margin-top:24px}
.square-detail-actions{display:flex;gap:10px;justify-content:flex-end;padding:10px 22px;border-top:1px solid #30344c;min-height:18px}
.account-modal .square-detail-actions button{width:auto;padding:8px 13px;font-size:12px;margin:0}
.account-modal .square-detail-tabs,.account-modal .square-detail-actions{display:flex;align-items:stretch}
.account-modal .square-detail-tabs button,.account-modal .square-detail-actions button{box-sizing:border-box;flex:1 1 0;min-width:0;min-height:38px;height:38px;max-height:38px;line-height:20px;padding:8px 12px;border:1px solid #596280;border-radius:8px;margin:0;font-size:12px;display:flex;align-items:center;justify-content:center}
.account-modal .square-detail-actions:empty{display:none}
.account-modal .account-panel .square-detail-tabs button+button,.account-modal .account-panel .square-detail-actions button+button{margin-top:0}
.account-modal .account-panel .square-trash-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex-shrink:0}
.square-trash-actions .square-trash-note{grid-column:1/-1;margin:0;line-height:1.6;font-size:13px}
.account-modal .account-panel .square-trash-actions select,.account-modal .account-panel .square-trash-actions input{box-sizing:border-box;min-width:0;width:100%;margin:0;font-size:13px}
.account-modal .account-panel .square-trash-actions button{flex:none;min-width:0;width:100%;height:auto;min-height:42px;max-height:none;white-space:nowrap;font-size:14px;line-height:22px;padding:10px 12px}
.account-modal .square-card-dialog .studio-dialog-close{position:absolute;top:12px;right:12px;width:32px;height:32px;line-height:26px;padding:0;margin:0;border:1px solid #596280;background:#151b2b;color:#ccd6e8;font-size:24px}
@media(max-width:650px){.account-modal .account-panel.square-card-dialog{height:88vh;width:94vw}.square-card-dialog .square-detail{grid-template-columns:1fr;grid-template-rows:36% minmax(0,1fr)}.square-detail-art{border-right:0;border-bottom:1px solid #424661}.square-card-dialog .square-detail-art img{width:auto;max-width:100%}.square-detail-content header{padding:10px 48px 8px 14px}.square-detail-content h3{font-size:18px;margin:0 0 4px}.square-compact-attributes{margin:8px 14px 0;font-size:11px}.square-detail-tabs{margin:8px 14px 0}.square-detail-scroll,.square-detail-script{margin-left:14px}.square-detail-scroll .square-description{font-size:15px}.square-detail-actions{padding:8px 14px}.square-pack-meta{flex-wrap:wrap}}
