.link-heading{margin-bottom:28px}
.link-heading h1{margin:4px 0 8px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em}
.link-heading>p:last-child{margin:0;color:var(--muted)}
.account-subheading{margin-top:36px}
.link-steps{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.link-panel,.linked-account{display:flex;gap:18px;padding:26px;background:linear-gradient(145deg,#171d25,#13181f);border:1px solid #2c3541;border-radius:16px}
.link-panel.start{max-width:680px}
.step-number,.success-mark{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#2d2415;border:1px solid #675027;color:var(--gold);font-weight:900}
.step-number.done,.success-mark{background:#173525;border-color:#2e6846;color:#73e49c}
.link-panel>div:last-child{min-width:0;flex:1}
.link-panel h2,.linked-account h2{margin:3px 0 8px;font-size:1.2rem}
.link-panel p,.linked-account p{margin:0 0 20px;color:var(--muted);line-height:1.55}
.link-panel form{margin:0}
.command-row{display:flex;gap:9px;margin:4px 0 10px}
.command-row code{display:flex;align-items:center;min-width:0;overflow:auto;padding:12px 14px;background:#090d12;border:1px solid #303b48;border-radius:9px;color:#ffe0a0;white-space:nowrap}
.command-row button{padding:10px 13px}
.link-panel small{display:block;margin-top:10px;color:var(--muted)}
.new-code-form{margin-top:10px!important}
.text-button{padding:6px 0;background:transparent;color:var(--muted);font-weight:600}
.linked-account{align-items:center;max-width:680px}
.linked-account p{margin:0}
.linked-account code{color:#badea3;overflow-wrap:anywhere}
.profile-color-panel,.avatar-panel,.showcase-panel,.password-panel{align-items:center;max-width:760px;margin-bottom:18px}
.profile-color-preview{flex:0 0 92px;height:92px;border-radius:16px;border:1px solid #394656;box-shadow:inset 0 0 0 2px #0003}
.profile-color-form{display:grid;grid-template-columns:80px minmax(120px,170px) auto;gap:10px;align-items:end}
.profile-color-form input[type=color]{height:46px;padding:4px}
.profile-color-form input[readonly]{height:46px;text-align:center;color:var(--text);background:#0c1117;border:1px solid #303b48;border-radius:9px}
.avatar-editor{display:grid;place-items:center;flex:0 0 180px;width:180px;height:180px;border-radius:18px;background:#0c1117;border:1px solid #394656;box-shadow:inset 0 0 0 2px #0003;overflow:hidden}
.avatar-editor canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}
.avatar-editor canvas:active{cursor:grabbing}
.avatar-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,220px) auto;gap:10px;align-items:end}
.avatar-form input[type=file]{min-width:0;color:var(--muted)}
.avatar-form input[type=range]{width:100%}
.avatar-file,.avatar-zoom{display:grid;gap:6px;margin:0;color:var(--muted)}
.showcase-preview-card{display:grid;place-items:center;flex:0 0 260px;aspect-ratio:2/1;border-radius:0;background:#0c1117;border:1px solid #394656;box-shadow:inset 0 0 0 2px #0003;overflow:hidden;color:var(--muted);font-weight:900}
.showcase-preview-card img{width:100%;height:100%;object-fit:cover;border-radius:0}
.profile-cover-preview{flex-basis:320px;aspect-ratio:1200/260}
.profile-cover-editor{aspect-ratio:1200/260}
.hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.showcase-editor{display:grid;place-items:center;width:min(80vw,820px);aspect-ratio:2/1;border-radius:0;background:#0c1117;border:1px solid #394656;box-shadow:inset 0 0 0 2px #0003;overflow:hidden}
.showcase-editor canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}
.showcase-editor canvas:active{cursor:grabbing}
.showcase-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.showcase-form button:disabled{opacity:.45;cursor:not-allowed}
.showcase-form input[type=file]{min-width:0;color:var(--muted)}
.showcase-form input[type=range]{width:100%}
.showcase-zoom{display:grid;gap:6px;margin:0;color:var(--muted)}
.showcase-modal[hidden]{display:none}
.showcase-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:#02050add}
.showcase-modal-card{width:min(900px,100%);padding:22px;background:#151b23;border:1px solid #35404d;border-radius:18px;box-shadow:0 24px 80px #000a}
.showcase-modal-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.showcase-modal-head h3{margin:0 0 6px;font-size:1.45rem}
.showcase-modal-head p{margin:0;color:var(--muted)}
.showcase-modal-close{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%;background:#0c1117;color:var(--text);border:1px solid #35404d;font-size:1.5rem;line-height:1}
.showcase-modal .showcase-zoom{margin-top:14px}
.showcase-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.password-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.password-form label{display:grid;gap:6px;color:var(--muted)}
.password-form input{width:100%;color:var(--text);background:#0c1117;border:1px solid #303b48;border-radius:9px;padding:12px;font:inherit}
.password-form button{grid-column:1/-1}
.whitelist-form{display:grid;gap:14px;max-width:440px}
.whitelist-form label{display:grid;gap:6px;color:var(--muted)}
.whitelist-form input{width:100%;color:var(--text);background:#0c1117;border:1px solid #303b48;border-radius:9px;padding:12px;font:inherit}
.whitelist-entry code{color:#badea3;overflow-wrap:anywhere}
@media(max-width:760px){
  .link-steps{grid-template-columns:1fr}
  .link-heading{margin-bottom:18px}.link-heading h1{font-size:clamp(1.7rem,9vw,2.35rem);line-height:1.05}.link-heading>p:last-child{font-size:.94rem;line-height:1.45}
  .link-panel,.linked-account{flex-direction:column;padding:18px;gap:14px;border-radius:14px}
  .command-row{flex-direction:column;align-items:stretch}
  .profile-color-panel,.avatar-panel,.showcase-panel,.password-panel{align-items:stretch;max-width:none}
  .profile-color-form,.avatar-form,.showcase-form,.password-form{grid-template-columns:1fr;gap:10px}
  .whitelist-form{max-width:none}
  .profile-color-preview,.avatar-editor{width:min(100%,230px);max-width:none;height:auto;aspect-ratio:1/1;flex-basis:auto;border-radius:16px;margin:0 auto}
  .profile-color-form input[type=color]{width:100%;height:58px}.profile-color-form button,.avatar-form button,.showcase-form button,.password-form button{width:100%}
  .avatar-file,.avatar-zoom{width:100%}.avatar-editor{flex:0 0 auto}
  .showcase-preview-card{width:100%;max-width:none;flex-basis:auto;min-height:120px}
  .showcase-editor{width:100%}
  .showcase-modal{padding:10px}.showcase-modal-card{padding:14px;border-radius:14px}.showcase-modal-head{gap:12px}.showcase-modal-head h3{font-size:1.1rem}.showcase-modal-head p{font-size:.86rem;line-height:1.35}.showcase-modal-actions{flex-direction:column}.showcase-modal-actions button{width:100%}
  .password-form label{margin:0}
}
@media(max-width:460px){
  .link-panel,.linked-account{padding:16px}.link-panel h2,.linked-account h2{font-size:1.08rem;line-height:1.25}.link-panel p,.linked-account p{font-size:.9rem;line-height:1.45;margin-bottom:14px}.link-panel small{font-size:.82rem;line-height:1.35}
  .profile-color-preview,.avatar-editor{width:min(100%,190px)}.showcase-preview-card{min-height:96px}.step-number,.success-mark{width:38px;height:38px;flex-basis:38px}
}
