.scl-dialog{width:420px;max-width:94%;max-height:88%;min-height:240px;color:#48433b}
.scl-shell{display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden}
.scl-shell .popup__header{flex:none}
.scl-shell .popup__content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.scl-tabs,.scl-actions,.scl-confirm{display:flex;gap:6px;align-items:center}
.scl-tabs{flex:none;padding:10px 12px;border-bottom:1px solid #eae4dc}
.scl-dialog .button,.sxp .button{min-width:0;border:0;cursor:pointer;font-family:inherit;line-height:1.15}
.scl-dialog .button{height:32px;font-size:13px;padding:0 12px}
.scl-tabs .button{flex:1;padding:0 4px}
.scl-dialog .button:disabled,.sxp .button:disabled{cursor:default;opacity:.65}
.scl-dialog :focus-visible,.sxp :focus-visible{outline:2px solid #327ea8;outline-offset:2px}
.scl-panel{padding:12px 15px 18px;font-size:14px;line-height:1.35}
.scl-panel h3{margin:12px 0 8px;font-size:15px;color:#54483c}
.scl-panel h3:first-child{margin-top:0}
.scl-note,.scl-empty p,.sxp-activity{color:#766c62;font-size:12px;line-height:1.45;margin:5px 0 10px}
.scl-empty{text-align:center;padding:16px 6px 8px}
.scl-empty strong{font-size:16px}
.scl-timer{text-align:center;font-size:12px;color:#705a32;margin:8px 0}
.scl-timer time{display:inline-block;font-weight:bold;font-variant-numeric:tabular-nums}
.scl-card{padding:12px 10px 8px;background:linear-gradient(#fff6d6,#fff9ec);border:1px solid #eddfb8;border-radius:10px}
.scl-versus{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.scl-side{display:flex;align-items:center;flex-direction:column;gap:4px;min-width:0;text-align:center}
.scl-logo{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;border-radius:9px;color:#fff;background:linear-gradient(#fff2c6,#e9c97d);box-shadow:inset 0 0 0 1px #d9af66;font:20px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif}
.scl-logo--wolf,.scl-logo--shield{background:linear-gradient(#e4f4fb,#a6c9dc);box-shadow:inset 0 0 0 1px #8cb2c9}
.scl-logo--dragon,.scl-logo--eagle{background:linear-gradient(#e5efc6,#b7cd86);box-shadow:inset 0 0 0 1px #9db86b}
.scl-side .scl-logo,.scl-identity .scl-logo{width:42px;height:42px;font-size:26px}
.scl-name,.scl-row span,.scl-row strong,.scl-members h3,.scl-identity div,.scl-history summary,.sxp-title{overflow-wrap:anywhere}
.scl-name{font-size:14px}
.scl-score{font-size:23px;color:#755b30;line-height:1;font-variant-numeric:tabular-nums}
.scl-won{color:#7a580a;font-weight:bold}
.scl-divider{font-size:19px;color:#aa936b}
.scl-difference{text-align:center;font-size:12px;font-weight:bold;margin:10px 0 3px}
.scl-members{margin:8px 0 14px}
.scl-members h3{font-size:13px;margin:0 0 3px;color:#675e50}
.scl-row,.scl-identity{display:flex;align-items:center;gap:9px}
.scl-row{justify-content:space-between;min-height:36px;padding:5px 3px;border-bottom:1px solid #eee8df}
.scl-row strong{font-size:13px}
.scl-row small,.scl-desc small,.scl-history small{color:#756a60;font-size:11px}
.scl-paid{display:block;text-align:right}
.scl-desc{min-width:0;flex:1}
.scl-desc small,.scl-history summary span,.scl-history summary strong,.scl-history small{display:block}
.scl-row .button{flex:none}
.scl-mine{background:#fffae8}
.scl-identity{margin-bottom:14px}
.scl-identity h3,.scl-identity .scl-note{margin:0}
.scl-leave,.scl-actions,.scl-confirm{margin-top:12px}
.scl-confirm{flex-wrap:wrap}
.scl-confirm .scl-note{flex-basis:100%;margin:0}
.scl-form{margin-top:18px;border-top:1px solid #ded5ca;padding-top:12px}
.scl-form>label,.scl-form legend{font-weight:bold;font-size:12px}
.scl-form input[name="clan-name"]{display:block;width:100%;box-sizing:border-box;margin:5px 0 9px;border:1px solid #cfc6b8;border-radius:6px;background:#fff;padding:8px;color:#494238;font:inherit;font-size:16px}
.scl-form fieldset{margin:0 0 12px;border:0;padding:0;min-width:0}
.scl-logos{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.scl-logos label{position:relative;cursor:pointer}
.scl-logos label>span:first-of-type{display:grid;place-items:center;width:33px;height:32px;font-size:19px;border-radius:6px;border:1px solid #d9d1c4}
.scl-logos input:checked+span{background:#fff2ad;border-color:#c09335}
.scl-logos input:focus-visible+span{outline:2px solid #327ea8}
.scl-logos input,.scl-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.scl-history{margin-bottom:6px;border:1px solid #e5ded3;border-radius:8px;padding:8px 10px}
.scl-history-switch{display:flex;gap:6px;margin-bottom:10px}
.scl-history-switch .button{flex:1}
.scl-history summary,.sxp-rewards summary{cursor:pointer}
.scl-history summary:focus-visible,.sxp-rewards summary:focus-visible{outline-offset:1px}
.scl-history[open] .scl-card{margin-top:9px}
.scl-error{padding:8px 12px;background:#ffe7dc;color:#893a22;font-size:12px}
.scl-error .button{margin-left:5px;font-size:11px;height:25px}
.sxp{margin:4px 0 9px;padding:7px 9px;border:1px solid #e7dec8;border-radius:7px;background:#fff9e9;color:#544a3a;font-size:12px;text-align:left;line-height:1.3}
.sxp-head,.sxp-progress,.sxp-reward{display:flex;align-items:center;gap:6px}
.sxp-head{justify-content:space-between;flex-wrap:wrap}
.sxp-level{display:inline-block;border-radius:8px;background:#f8d880;color:#644908;padding:2px 7px;font-size:12px}
.sxp-title{color:#785825;font-size:11px;font-weight:bold}
.sxp-progress{margin-top:5px;align-items:center}
.sxp-progress progress{appearance:none;min-width:32px;flex:1;width:55%;height:7px;border:0;border-radius:8px;overflow:hidden;background:#eadfc5;accent-color:#8bad3b}
.sxp-progress progress::-webkit-progress-bar{background:#eadfc5;border-radius:8px}
.sxp-progress progress::-webkit-progress-value{background:linear-gradient(#b7d855,#80a635);border-radius:8px}
.sxp-progress progress::-moz-progress-bar{background:#91b541}
.sxp-progress span,.sxp-remaining,.sxp-reward small,.sxp-equipped{font-size:10px}
.sxp-remaining{margin-top:2px;color:#75664f}
.sxp-rewards{margin-top:4px}
.sxp-rewards summary{font-size:11px;font-weight:bold;color:#705c3c}
.sxp-reward{margin-top:5px}
.sxp-reward .sxp-reward-name{flex:1;min-width:0}
.sxp-reward-name small{display:block;color:#746856}
.sxp-reward img,.sxp-reward-icon{flex:none}
.sxp-reward-icon{width:24px;text-align:center;color:#877a61}
.sxp-reward.earned .sxp-reward-icon{color:#ae7720}
.sxp-equipped{color:#4b6b1d;font-weight:bold}
.sxp .sxp-equip{height:23px;padding:0 7px;font-size:11px}
.sxp-activity{font-size:10px;margin:5px 0 0}
@media(max-height:440px){.scl-dialog{max-height:95%;min-height:0}.scl-tabs{padding:5px 10px}.scl-panel{padding-top:8px}}

.scl-dialog{--clan-ink:#233a38;--clan-gold:#edc572;width:466px;max-width:calc(100% - 20px);max-height:90%;border-radius:14px;background:#f8f6ef;color:#293a36;box-shadow:0 8px 26px #17291c55,0 1px 2px #19342540;isolation:isolate}
.scl-shell{border-radius:inherit}
.scl-dialog .scl-shell>.popup__header{position:relative;overflow:visible;box-sizing:border-box;flex:0 0 46px;padding:0 48px 0 16px;border-radius:14px 14px 0 0;background:linear-gradient(110deg,#193635,#324742);border-bottom:1px solid #d3b26b}
.scl-dialog .popup__header .popup__title{position:static;display:block;text-align:left;color:#fff4d8;line-height:1.2;font-weight:800;font-size:19px}
.scl-dialog .popup__header .popup__close--dlg{top:7px;right:9px;box-shadow:none}
.scl-tabs{padding:6px 10px;background:#263e3b;border:0;gap:4px}
.scl-dialog .scl-tabs .button,.scl-history-switch .button{height:34px;border-radius:6px;font-weight:bold;box-shadow:none;text-shadow:none}
.scl-dialog .scl-tabs .button{color:#e3ece4;background:transparent}
.scl-dialog .scl-tabs .button[aria-pressed=true]{color:#312a17;background:linear-gradient(#ffe2a3,#e7be68);box-shadow:0 1px 3px #15242066}
.scl-dialog .scl-tabs .button:focus-visible{outline-color:#ffe6ab;outline-offset:-2px}
.scl-level-notice{flex:none;padding:6px 12px;background:#f6e8bb;color:#4b3d1d;text-align:center;font-size:12px;font-weight:bold}.scl-level-notice:empty{position:absolute;overflow:hidden;height:0;padding:0}
.scl-panel{padding:13px 15px 17px;line-height:1.4}
.scl-panel h3{color:var(--clan-ink);font-size:16px;margin:16px 0 8px}
.scl-note,.scl-empty p,.scl-row small,.scl-desc small,.scl-history small{color:#58645d}
.scl-dialog .scl-panel .button{font-weight:bold;height:auto;min-height:33px;line-height:1.2;padding:7px 12px}
.scl-dialog .scl-panel .button--confirm,.scl-dialog .scl-history-switch .button--info{color:#fff;background:#34634c}
.scl-dialog .scl-panel .button--cancel{color:#284a40;background:#e6ebe0}
.scl-dialog .scl-panel .button--danger{color:#fff;background:#9a4944}
.scl-battle-idle{text-align:center}
.scl-invite-art{display:block;margin:8px auto 0;max-width:100%;object-fit:contain}
.scl-empty{padding:10px 5px 3px}
.scl-timer{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;color:#4a574d}
.scl-timer time{color:#354938;background:#eeebd9;border:1px solid #ddd6b8;border-radius:4px;padding:2px 6px}
.scl-identity-card{overflow:hidden;background:#243c38;color:#fcf8e7;text-align:left;border:1px solid #29443c;border-radius:10px;box-shadow:0 2px 6px #243b2317}
.scl-identity{margin:0;gap:11px;padding:12px 14px;background:linear-gradient(110deg,#355448,#243f3c)}
.scl-identity .scl-desc{min-width:0}
.scl-identity .scl-desc h3{color:#fff7e3;font-size:20px;line-height:1.16;margin:0 0 3px}
.scl-identity .scl-desc>span{font-size:11px;color:#d0ddd2}
.scl-identity .scl-logo{width:35px;height:35px;font-size:22px;border-radius:8px}
.scl-rank{--rank-fill:#e4bb72;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;padding:12px 14px 13px;background:linear-gradient(115deg,#2d3439,#1d2f31 82%);border-top:1px solid #ffffff14;line-height:1.25}
.scl-material-bronze{--rank-fill:#e5ad80}.scl-material-silver{--rank-fill:#b4dbeb}.scl-material-gold{--rank-fill:#fbd574}.scl-material-emerald{--rank-fill:#75d6a5}.scl-material-sapphire{--rank-fill:#a3bcff}.scl-material-ruby{--rank-fill:#ff9bc2}.scl-material-diamond{--rank-fill:#a3e7ef}
.scl-insignia{display:grid;place-items:center;isolation:isolate;position:relative}
.scl-insignia:before{content:"";position:absolute;inset:-2px -8px;z-index:-1;background:radial-gradient(ellipse,#fcda9d27,transparent 71%)}
.scl-cup{display:block;object-fit:contain;max-width:100%;height:auto;flex:none}
.scl-insignia .scl-cup{width:76px;filter:drop-shadow(0 2px 4px #02131077)}
.scl-rank-summary{display:flex;gap:3px 8px;align-items:baseline;flex-wrap:wrap}
.scl-rank-summary strong{font-size:18px;color:#fffdf2}
.scl-rank-summary span{color:var(--rank-fill);font-weight:bold;font-size:12px;overflow-wrap:anywhere}
.scl-progress-label{display:flex;justify-content:space-between;gap:4px;margin:7px 0 3px;align-items:baseline;color:#e3e9dd;font-size:11px;font-variant-numeric:tabular-nums}
.scl-progress-label strong{color:var(--rank-fill);font-size:12px}
.scl-gauge{appearance:none;display:block;width:100%;height:8px;overflow:hidden;border:0;border-radius:4px;background:#101e20;accent-color:var(--rank-fill);box-shadow:0 0 0 1px #b7cbbb38}
.scl-gauge::-webkit-progress-bar{background:#101e20}
.scl-gauge::-webkit-progress-value{background:var(--rank-fill);border-radius:4px}
.scl-gauge::-moz-progress-bar{background:var(--rank-fill);border-radius:4px}
.scl-rank-remaining{display:block;color:#c0cdc3;margin-top:5px;font-size:10px}
.scl-rank-mini{--rank-fill:#dfb477;display:inline-flex;flex-direction:column;align-items:stretch;min-width:58px;max-width:100%;font-weight:bold;font-size:10px;line-height:1.1;color:#42574b}
.scl-rank-mini.scl-material-bronze{--rank-fill:#dfa273}.scl-rank-mini.scl-material-silver{--rank-fill:#9dcedf}.scl-rank-mini.scl-material-gold{--rank-fill:#e5bb52}.scl-rank-mini.scl-material-emerald{--rank-fill:#78b78c}.scl-rank-mini.scl-material-sapphire{--rank-fill:#94adee}.scl-rank-mini.scl-material-ruby{--rank-fill:#e98dab}.scl-rank-mini.scl-material-diamond{--rank-fill:#98dce3}
.scl-mini-heading,.scl-mini-progress{display:flex;align-items:center;gap:3px}
.scl-mini-progress{gap:4px;font-size:9px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.scl-mini-progress .scl-gauge{width:40px;height:4px;flex:1}
.scl-desc .scl-rank-mini{margin-top:3px}
.scl-rank-mini .scl-cup{width:19px;height:19px}
.scl-ladder,.scl-history{border:1px solid #d6dbcd;background:#fffdf7;border-radius:8px}
.scl-ladder{margin:9px 0 12px;padding:8px 11px}
.scl-ladder summary{cursor:pointer;font-weight:bold;font-size:13px;color:#354e40}
.scl-ladder ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:8px 0 0;padding:0;list-style:none}
.scl-ladder li{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 3px;border-radius:5px}
.scl-ladder li>span{min-width:0}.scl-ladder li strong,.scl-ladder li small{display:block;overflow-wrap:anywhere}
.scl-ladder li strong{color:#394840;font-size:11px}.scl-ladder li small{font-size:10px;color:#5c695e}
.scl-ladder li.scl-current-tier{background:#f5edd0;box-shadow:inset 2px 0 #bf9249}
.scl-ladder .scl-current-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.scl-card{border:1px solid #c9d4c8;background:linear-gradient(150deg,#f7f3df,#eaf1e5);border-radius:10px;padding:13px 10px 8px}
.scl-side{gap:3px}.scl-score{font-size:28px;color:#2e4c3e}
.scl-divider{color:#77715a;font-weight:800;font-size:13px;letter-spacing:.04em}
.scl-difference{border-top:1px solid #c3ccba;padding-top:6px;color:#465b4d}
.scl-members{padding:9px 10px 3px;border:1px solid #d6dbcd;border-radius:8px;background:#fffdf7}
.scl-members h3{margin:0;color:#314c3e;font-size:13px}
.scl-row{border-bottom-color:#dcded3;gap:7px}.scl-row:last-child{border-bottom:0}
.scl-roster-row{padding:6px 8px;min-height:31px}
.scl-member{border-bottom:1px solid #dcded3}
.scl-member .scl-roster-row{border:0}
.scl-roster-row>span:first-child{flex:1;min-width:0}
.scl-member-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 8px 8px}
.scl-member-actions p{flex-basis:100%;margin:0}
.scl-member .button{height:auto;min-height:28px;padding:4px 8px;font-size:11px;line-height:1.25;white-space:normal}
.sxp-photo-level{position:absolute;bottom:5px;left:6px;pointer-events:none;border-radius:7px;padding:2px 6px;background:#382a14e8;color:#ffe297;font-family:inherit;font-size:13px;line-height:17px;font-weight:bold;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px #efc774}
.sxp-photo-level~.user-profile__zodiac{bottom:31px}
.scl-mine{color:#274a37;background:#e8efdd;border-radius:5px}
.scl-form{border-top-color:#d1d7cb}.scl-form input[name="clan-name"]{border-color:#abb9aa}
@media(max-width:340px){.scl-panel{padding:10px}.scl-identity,.scl-rank{padding:10px}.scl-rank{grid-template-columns:58px minmax(0,1fr);gap:7px}.scl-ladder li .scl-cup{width:26px}.scl-tabs{padding:5px 7px}}
@media(max-height:440px){.scl-dialog{max-height:96%;min-height:0}.scl-dialog .scl-shell>.popup__header{flex-basis:37px}.scl-dialog .popup__header .popup__close--dlg{top:3px}.scl-tabs{padding:4px 9px}}
