/* Portrait-first KOL selection and an independent, scrollable profile window. */
#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;height:clamp(320px,52vh,610px);gap:18px;padding:3px 10px 12px 3px;scroll-padding:12px}
#launchView #characterList.kol-portrait-grid .kol-portrait-card{min-height:0;margin:0;padding:0;border:1px solid #382b45;border-radius:16px;background:#17121e;overflow:hidden;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:hover{transform:translateY(-3px);border-color:#a67dcd;box-shadow:0 10px 24px #0005}
#launchView #characterList.kol-portrait-grid .kol-portrait-card.is-selected{border-color:#c6a1ff;box-shadow:0 0 0 1px #c6a1ff55}
.kol-portrait-button{display:block;position:relative;width:100%;padding:0;background:#23182f;border:0;cursor:pointer;text-align:left;overflow:hidden}
.kol-card-photo{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;background:radial-gradient(ellipse at 30% 20%,#765098,#2b1a40 70%)}
.kol-card-photo:after{content:'';position:absolute;inset:0;box-shadow:inset 0 -35px 35px -30px #1b102ccc;pointer-events:none}
.kol-card-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.75,.25,1)}
.kol-portrait-button:hover .kol-card-photo img{transform:scale(1.045)}
.kol-photo-initial{display:grid;place-items:center;position:absolute;inset:0;font:500 46px 'Space Grotesk',sans-serif;color:#e2caff}
.kol-card-caption{display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:58px}
#launchView .kol-card-name{min-width:0;flex:1;font-size:15px;font-weight:500;line-height:1.4;letter-spacing:-.3px;overflow-wrap:anywhere}
.kol-x-link{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:8px;color:#ac9abb;transition:background .2s,color .2s}
.kol-x-link:hover{background:#352441;color:#fff}
.kol-x-link svg,.kol-profile-x svg{width:14px;height:14px;fill:currentColor;stroke:none}
.kol-selected-badge{position:absolute;right:10px;top:10px;border:1px solid #cba4ff70;background:#241435e6;backdrop-filter:blur(10px);color:#e5d1ff;padding:5px 9px;border-radius:20px;font-size:11px}
.kol-portrait-button:focus-visible{outline:3px solid #d5b8ff;outline-offset:-4px}
html{scrollbar-gutter:stable}
.kol-dialog-open{overflow:hidden}
#kolProfileDialog{width:min(760px,calc(100vw - 40px));max-width:none;height:auto;max-height:min(900px,88dvh);padding:0;margin:auto;border:1px solid #735489;border-radius:24px;background:#100d16;color:#eee5fa;box-shadow:0 32px 140px #000a,0 0 80px #8250b31a;overflow:hidden;overscroll-behavior:contain}
#kolProfileDialog[open]{display:flex;flex-direction:column;animation:kol-profile-enter .28s cubic-bezier(.2,.8,.2,1) both}
#kolProfileDialog::backdrop{background:#09070dd1;backdrop-filter:blur(12px);animation:kol-backdrop-enter .28s ease both}
#kolProfileDialog.is-closing{animation:kol-profile-exit .16s ease both;pointer-events:none}
#kolProfileDialog.is-closing::backdrop{animation:kol-backdrop-exit .16s ease both}
#kolProfileDialog .kol-profile-close{position:absolute;right:18px;top:18px;z-index:2;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #6c517c;border-radius:50%;background:#21152edf;color:#ddc7ef;font-size:24px;line-height:1;transition:background .2s,transform .2s}
#kolProfileDialog .kol-profile-close:hover{background:#483057;transform:rotate(90deg)}
#kolProfileDialog .kol-profile-header{display:flex;align-items:center;gap:18px;padding:22px 66px 20px 30px;background:radial-gradient(ellipse at 10% 10%,#46255680,transparent 80%),#191021;border-bottom:1px solid #3c2949;flex-shrink:0}
.kol-profile-photo{position:relative;display:block;width:90px;height:90px;flex-shrink:0;overflow:hidden;border-radius:22px;background:#362144;box-shadow:0 8px 24px #0004;border:1px solid #b587d044}
.kol-profile-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.kol-profile-photo .kol-photo-initial{font-size:28px}
.kol-profile-identity{min-width:0}
#kolProfileDialog .kol-profile-eyebrow{display:block;font-size:9px;color:#b399ca;letter-spacing:1.4px;margin-bottom:9px}
#kolProfileDialog h2{font-size:30px;line-height:1.15;letter-spacing:-1px;margin:0 0 10px;overflow-wrap:anywhere}
.kol-profile-x{display:inline-flex;align-items:center;gap:8px;color:#cbb0e3;font-size:13px;overflow-wrap:anywhere}
#kolProfileDialog .kol-profile-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 30px 30px;scrollbar-width:thin;scrollbar-color:#72518c #17101f}
.kol-profile-overview{display:grid;grid-template-columns:1fr auto;gap:25px;padding:0 0 18px;border-bottom:1px solid #32243d}
.kol-profile-overview>div>span{display:block;color:#ab99ba;font-size:12px;margin-bottom:7px}
.kol-profile-overview strong{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:27px;color:#ead6ff;display:block;margin:0;line-height:1.2}
.kol-profile-overview>div:last-child{text-align:right}
#kolProfileDialog .kol-profile-guidance{font-size:12px;line-height:1.7;color:#a99ab5;margin:12px 0 14px}
.kol-profile-status{padding:12px;border:1px solid #86629d;border-radius:9px;font-size:13px;line-height:1.6;margin-bottom:16px}
#kolProfileDialog .kol-profile-wallet{padding:18px 22px;border:1px solid #44314f;border-radius:14px;background:linear-gradient(135deg,#1c1325,#141019);margin-top:16px;min-width:0}
#kolProfileDialog .kol-wallet-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.kol-wallet-number{display:block;color:#9b7cad;font-size:9px;letter-spacing:1.4px;margin-bottom:7px}
#kolProfileDialog h3{font-size:17px;font-weight:500;margin:0;color:#eadcf5}
#kolProfileDialog .kol-select{min-height:var(--primary-height,42px);font-size:12px;padding:8px 12px;border-radius:8px;border:1px solid #b285da;background:#c3a0f0;color:#241432;cursor:pointer;font-weight:600}
#kolProfileDialog .kol-select:hover{background:#d7b9fb}
#kolProfileDialog .kol-select:disabled{opacity:.5;cursor:default}
#kolProfileDialog .kol-select.selected{background:#30223d;color:#dcc1f5}
#kolProfileDialog .kol-wallet-address{display:block;overflow-wrap:anywhere;word-break:break-word;font:12px/1.6 monospace;color:#ab94bd;margin:10px 0 12px}
#kolProfileDialog .kol-holdings-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:18px;border-top:1px solid #3a2a44}
#kolProfileDialog h4{font-size:12px;font-weight:500;color:#b5a0c6;margin:0 0 7px}
#kolProfileDialog .kol-balance{display:block;font:500 23px/1.3 'Space Grotesk',sans-serif;color:#e6d2f5;margin:0}
#kolProfileDialog .kol-refresh{background:transparent;border-color:#5a416b;color:#bea3d2;font-weight:400;min-height:34px;padding:7px 12px}
.kol-snapshot-time{font-size:11px;line-height:18px;height:18px;color:#8f7b9c;margin:8px 0 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kolProfileDialog .kol-assets{margin:16px 0 0;font-size:12px}
.kol-assets-summary{line-height:1.6;color:#b7a0c7;font-size:12px;margin:0 0 12px}
.kol-token-list{padding:0;list-style:none;margin:0}
#kolProfileDialog .kol-token-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #302238;margin:0}
.kol-token-list li>div:first-child{min-width:0}
#kolProfileDialog .kol-token-list .kol-link{font-size:12px;color:#d1b3e7}
.kol-token-list small{display:block;font-size:11px;color:#9d89ab;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}
.kol-token-value{flex-shrink:0;font-size:13px;color:#e3d1f0;font-variant-numeric:tabular-nums}
.kol-token-value strong{font-weight:500}
#kolProfileDialog .kol-muted{font-size:12px;line-height:1.7;color:#a18bab;margin:10px 0}
#kolProfileDialog .kol-profile-sources{padding-top:18px;margin-top:18px;border-top:1px solid #3a2a44}
#kolProfileDialog .kol-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
#kolProfileDialog .kol-meta .kol-link{font-size:12px;color:#c7a4e0;line-height:1.6}
#kolProfileDialog .kol-meta>span{font-size:11px;color:#93809e}
#kolProfileDialog .kol-actions{margin-top:22px;padding-top:18px;border-top:1px solid #382841}
@keyframes kol-profile-enter{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes kol-profile-exit{to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes kol-backdrop-enter{from{opacity:0}to{opacity:1}}
@keyframes kol-backdrop-exit{to{opacity:0}}
@media(max-width:1150px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:740px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));height:440px}.kol-card-caption{padding:9px 10px;gap:4px}#launchView .kol-card-name{font-size:13px}.kol-x-link{width:28px;height:32px}}
@media(max-width:520px){
 #launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;height:390px;padding-right:5px}
 #launchView #characterList.kol-portrait-grid .kol-portrait-card{border-radius:12px}.kol-card-caption{padding:8px 9px;min-height:49px}.kol-x-link{width:26px;height:32px}.kol-x-link svg{width:12px;height:12px}#launchView .kol-card-name{font-size:12px}
 #kolProfileDialog{width:calc(100vw - 24px);max-height:90dvh;border-radius:19px}
 #kolProfileDialog .kol-profile-header{padding:23px 48px 20px 18px;gap:13px}.kol-profile-photo{width:62px;height:62px;border-radius:16px}
 #kolProfileDialog .kol-profile-eyebrow{font-size:7px;letter-spacing:.7px;margin-bottom:7px}#kolProfileDialog h2{font-size:24px;margin-bottom:7px}.kol-profile-x{font-size:11px;gap:6px}
 #kolProfileDialog .kol-profile-close{right:12px;top:12px;width:30px;height:30px;font-size:22px}
 #kolProfileDialog .kol-profile-content{padding:18px 15px 22px}.kol-profile-overview{gap:12px}.kol-profile-overview strong{font-size:23px}.kol-profile-overview>div>span{font-size:11px}
 #kolProfileDialog .kol-profile-wallet{padding:16px 13px}#kolProfileDialog .kol-wallet-top{gap:10px}#kolProfileDialog h3{font-size:16px}#kolProfileDialog .kol-select{font-size:11px;padding:9px 11px}
 #kolProfileDialog .kol-wallet-address{font-size:11px}#kolProfileDialog .kol-balance{font-size:21px}.kol-token-value{font-size:12px}.kol-token-list small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#kolProfileDialog[open],#kolProfileDialog.is-closing,#kolProfileDialog::backdrop{animation:none}.kol-card-photo img,#launchView #characterList.kol-portrait-grid .kol-portrait-card,#kolProfileDialog .kol-profile-close{transition:none}#launchView #characterList.kol-portrait-grid .kol-portrait-card:hover,.kol-portrait-button:hover .kol-card-photo img{transform:none}}
/* Square portraits with a translucent caption that dissolves into the image. */
#launchView #characterList.kol-portrait-grid .kol-portrait-card{position:relative;aspect-ratio:1;border-radius:18px;background:#23182f}
.kol-portrait-card .kol-portrait-button{height:100%}
.kol-portrait-card .kol-card-photo{height:100%;aspect-ratio:auto}
.kol-portrait-card .kol-card-caption{position:absolute;inset:auto 0 0;z-index:1;min-height:40%;padding:35px 16px 14px;align-items:flex-end;background:linear-gradient(0deg,rgba(17,10,25,.88),rgba(23,14,34,.57) 42%,rgba(23,14,34,0));pointer-events:none}
#launchView .kol-portrait-card .kol-card-name{margin:0 0 5px;color:#fff;text-shadow:0 1px 8px #000a}
.kol-portrait-card .kol-x-link{pointer-events:auto;color:#e6d9f0;background:#25173135}
.kol-portrait-card .kol-x-link:hover{background:#33203ca8}
#kolProfileDialog .kol-token-list li{gap:12px;min-height:64px}
.kol-token-identity{display:flex;align-items:center;gap:12px;min-width:0}
.kol-token-icon{position:relative;display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;overflow:hidden;background:#392647;color:#ddc6ef;font-size:13px}
.kol-token-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.kol-token-copy{min-width:0}
#kolProfileDialog .kol-token-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px;color:#e4d0f3;font-size:13px}
#kolProfileDialog .kol-token-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}
.kol-token-list.has-more li:last-child{mask-image:linear-gradient(#000 5%,#0009 85%,#0003);-webkit-mask-image:linear-gradient(#000 5%,#0009 85%,#0003)}
.kol-holdings-teaser{display:flex;align-items:center;gap:12px;height:53px;opacity:.28;filter:blur(3px);user-select:none;pointer-events:none;mask-image:linear-gradient(#000,transparent)}
.kol-teaser-icon{width:36px;height:36px;border-radius:11px;background:#b393ca}
.kol-teaser-lines{flex:1;display:grid;gap:8px}.kol-teaser-lines:before,.kol-teaser-lines:after{content:'';height:8px;border-radius:5px;background:#b393ca;width:100px}.kol-teaser-lines:after{width:65px;height:6px}
.kol-teaser-value{height:10px;width:48px;border-radius:5px;background:#b393ca}
#kolProfileDialog .kol-load-holdings{display:block;width:100%;margin:-7px 0 12px;position:relative;background:#30203e;border:1px solid #745289;color:#e3c9f7;font-size:12px;min-height:38px;border-radius:9px;transition:background .2s,transform .2s}
#kolProfileDialog .kol-load-holdings:hover{background:#432b56;transform:translateY(-1px)}
#kolProfileDialog .kol-load-holdings:disabled{opacity:.6;cursor:wait}
@media(max-width:520px){.kol-portrait-card .kol-card-caption{padding:26px 10px 9px;min-height:44%}#launchView .kol-portrait-card .kol-card-name{margin-bottom:6px}.kol-token-icon{width:30px;height:30px;border-radius:9px}.kol-token-identity{gap:8px}#kolProfileDialog .kol-token-name,#kolProfileDialog .kol-token-copy small{max-width:145px}#kolProfileDialog .kol-token-name{font-size:12px}#kolProfileDialog .kol-token-list li{gap:8px}}
@media(prefers-reduced-motion:reduce){#kolProfileDialog .kol-load-holdings{transition:none;transform:none}}

/* Size the directory by its available content width, including compact sidebars. */
#launchView[data-step="1"] .editor{container-type:inline-size;container-name:kol-editor}
#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr));height:clamp(280px,45dvh,520px)}
.kol-portrait-card .kol-card-caption{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:7px;align-items:end;padding:32px 13px 12px}
#launchView .kol-portrait-card .kol-card-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:normal;word-break:normal;line-height:1.35;margin:0 0 4px}
.kol-portrait-card .kol-x-link{width:30px;height:30px}
@container kol-editor (max-width:880px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@container kol-editor (max-width:560px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kol-portrait-card .kol-card-caption{padding:30px 11px 10px}#launchView .kol-portrait-card .kol-card-name{font-size:13px}}
@container kol-editor (max-width:240px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:1fr}}

#kolProfileDialog .kol-native-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px;padding:12px 0 17px;margin-bottom:2px}
#kolProfileDialog .kol-native-balance .kol-token-name{font-weight:500}
.kol-native-balance .kol-sol-icon{background:#15121e}

/* Crossfade fixed violet/lavender shadows without animating blur or color paints. */
#launchView[data-step="1"] #characterList.kol-portrait-grid{padding:28px;scroll-padding:28px}
#launchView #characterList.kol-portrait-grid .kol-portrait-card{overflow:visible;isolation:isolate}
.kol-portrait-card .kol-portrait-button{border-radius:inherit}
.kol-portrait-card .kol-card-caption{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open){
 border-color:#c5a4ef;
 box-shadow:0 0 0 1px #c6a4ef80;
}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::before,
#launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::after{
 content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;will-change:opacity;
}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::before{
 box-shadow:0 0 0 1px #d2b2f5a6,0 0 16px 3px #b482e88c;
 opacity:.65;animation:kol-selected-glow 7s ease-in-out infinite;
}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::after{
 box-shadow:0 0 0 1px #ccc0ffa6,0 0 16px 3px #a392ed8c;
 opacity:0;animation:kol-selected-lavender 7s ease-in-out infinite;
}
@keyframes kol-selected-glow{
 0%,100%{opacity:.65}
 50%{opacity:0}
}
@keyframes kol-selected-lavender{
 0%,100%{opacity:0}
 50%{opacity:1}
}
@media(prefers-reduced-motion:reduce){
 #launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::before,
 #launchView #characterList.kol-portrait-grid .kol-portrait-card:is(.is-selected,.is-profile-open)::after{animation:none;opacity:.4;will-change:auto}
}

/* Keep the first launch step within the viewport; only the portraits scroll. */

body:has(#launchView[data-step="1"]:not([hidden])) .topbar{flex-shrink:0}
#launchView[data-step="1"]{flex:1;min-height:0;width:100%;max-width:1440px;padding-top:16px;padding-bottom:14px;display:flex;flex-direction:column}



#launchView[data-step="1"]>.stepper{flex-shrink:0;padding:10px 0;margin:0 0 14px}
#launchView[data-step="1"]>.workspace{flex:1;min-height:0;align-items:stretch}
#launchView[data-step="1"] .editor{min-height:0;padding:20px;display:flex;flex-direction:column}
#launchView #step1{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,420px);grid-template-rows:auto auto minmax(0,1fr) auto auto;column-gap:24px}
#launchView #step1>.panel-heading{grid-column:1;grid-row:1;margin:0;align-self:center}
#launchView #step1>.panel-heading h3{font-size:22px}
#launchView #step1>.panel-heading p{font-size:13px;margin-top:4px}
#launchView #step1>.directory-toolbar{grid-column:2;grid-row:1;display:flex;align-items:center;margin:0;gap:10px}
#launchView #step1 .directory-toolbar #directoryViews:has(>button:only-child){display:none}
#launchView #step1 .directory-toolbar .search-field{flex:1;min-width:0;margin:0}
#launchView #step1>.list-heading{grid-column:1/-1;grid-row:2;margin:12px 0 4px}
#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-column:1/-1;grid-row:3;min-height:0;height:auto;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px;padding:20px;scroll-padding:20px;overscroll-behavior:contain}
#launchView[data-step="1"] #characterList .kol-portrait-card{width:100%;max-width:220px;justify-self:center}
#launchView #step1>.directory-info{grid-column:1/-1;grid-row:4;max-height:120px;overflow:auto;margin:6px 0 0;padding:4px 0;border:0}
#launchView #step1>.directory-info>summary{min-height:20px;line-height:20px;font-size:11px}
#launchView #step1>.panel-actions{grid-column:1/-1;grid-row:5;flex-direction:row;align-items:center;justify-content:space-between;flex-shrink:0;min-height:60px;margin-top:8px;padding:8px 12px}

@media(max-width:1000px){#launchView #step1{grid-template-columns:minmax(0,1fr) minmax(210px,1fr);column-gap:16px}#launchView #step1>.panel-heading p{display:none}#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}}
@media(max-width:740px){#launchView[data-step="1"]{padding-top:12px;padding-bottom:12px}#launchView #step1{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto auto}#launchView #step1>.panel-heading{grid-column:1;grid-row:1;margin-bottom:10px}#launchView #step1>.directory-toolbar{grid-column:1;grid-row:2}#launchView #step1>.list-heading{grid-row:3;margin-top:10px}#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-row:4;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;padding:16px;scroll-padding:16px}#launchView #step1>.directory-info{grid-row:5}#launchView #step1>.panel-actions{grid-row:6}#launchView[data-step="1"] .editor{padding:16px}}
@media(max-width:520px){#launchView[data-step="1"]>.stepper{padding:9px 0;margin-bottom:10px}#launchView[data-step="1"] .editor{padding:12px}#launchView #step1>.panel-heading h3{font-size:20px}#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px;scroll-padding:14px}#launchView[data-step="1"] #characterList .kol-portrait-card{max-width:122px}#launchView #step1>.panel-actions{padding:8px;min-height:60px}#launchView #step1>.panel-actions>span{min-width:0;max-width:150px}#launchView #step1>.panel-actions .primary{flex-shrink:0}}
/* Short viewports and large text retain ordinary page scrolling rather than clipping controls. */
@media(max-height:620px){#launchView[data-step="1"]{flex:auto}#launchView[data-step="1"] #characterList.kol-portrait-grid{height:260px}#launchView[data-step="1"]>.workspace{flex:auto}}
#launchView #step1>.directory-toolbar>.profile-search-row{flex:1;min-width:0}
#launchView #step1>.panel-actions{display:flex;flex-wrap:nowrap}
#launchView #step1>.panel-actions>span{width:auto;flex:1;min-width:0}
#launchView #step1>.panel-actions .primary{width:auto;flex-shrink:0}

/* Even portrait tracks follow the panel width, including browser zoom. */
#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
#launchView[data-step="1"] #characterList .kol-portrait-card{max-width:none;justify-self:stretch}
@container kol-editor (max-width:1240px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container kol-editor (max-width:1040px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container kol-editor (max-width:760px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container kol-editor (max-width:420px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Smaller phone tiles expose more of the directory without shrinking profile names. */
@media(max-width:520px){
 #launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;scroll-padding:8px}
 #launchView #characterList.kol-portrait-grid .kol-portrait-card{border-radius:12px}
 #launchView .kol-portrait-card .kol-card-caption{display:flex;inset:0;align-items:flex-end;min-height:0;padding:24px 6px 6px;background:linear-gradient(0deg,#110a19ed,transparent 65%)}
 #launchView .kol-portrait-card .kol-card-name{font-size:12px;line-height:1.25;margin:0;overflow-wrap:anywhere}
 #launchView .kol-portrait-card .kol-x-link{position:absolute;right:4px;top:4px;bottom:auto;width:24px;height:24px;background:#17101dcc;border-radius:6px}
 #launchView .kol-portrait-card .kol-selected-badge{top:4px;left:4px;right:auto;display:grid;place-items:center;width:22px;height:22px;padding:0;font-size:0}
 #launchView .kol-portrait-card .kol-selected-badge::after{content:"✓";font-size:12px}
}
/* A balanced search row: matching control heights, text scale and icon alignment. */
#launchView #step1 .profile-search-row{align-items:center;gap:8px}
#launchView #step1 .live-directory-search{flex-shrink:0;height:var(--field-height,38px);min-height:var(--field-height,38px);padding:0 10px;border-radius:8px;font-size:12px;line-height:20px}
#launchView .search-field kbd{flex-shrink:0}
@media(max-width:520px),(pointer:coarse){
 #launchView .search-field kbd{display:none}
 }

/* Compact cash balance; disclosure keeps individual amounts available without another holdings row. */
#kolProfileDialog .kol-holdings-header{align-items:flex-start;flex-wrap:wrap}
#kolProfileDialog .kol-cash-balance{flex:0 1 auto;max-width:100%;min-width:210px;margin-left:auto;border:1px solid #604774;border-radius:16px;background:linear-gradient(135deg,#30203e,#21162d);box-shadow:inset 0 1px 0 #ffffff08;color:#eddef9}
#kolProfileDialog .kol-cash-summary{display:flex;align-items:center;gap:11px;padding:11px 13px;cursor:pointer;list-style:none;user-select:none;border-radius:15px}
#kolProfileDialog .kol-cash-summary::-webkit-details-marker{display:none}
#kolProfileDialog .kol-cash-summary:hover{background:#a975d50c}
#kolProfileDialog .kol-cash-summary:focus-visible{outline:2px solid #c29bef;outline-offset:3px}
.kol-cash-icons{display:flex;align-items:center;padding-right:2px;flex:none}
.kol-cash-icons img{width:28px;height:28px;border:2px solid #30203e;border-radius:50%;background:#17121f}
.kol-cash-icons img+img{margin-left:-9px}
.kol-cash-copy{display:grid;gap:4px;min-width:0}
#kolProfileDialog .kol-cash-label{font-size:9px;letter-spacing:.12em;color:#bda3cf;font-weight:500}
#kolProfileDialog .kol-cash-total{font-size:15px;line-height:1.25;letter-spacing:-.02em;white-space:nowrap;color:#f0e2fb;font-variant-numeric:tabular-nums}
.kol-cash-chevron{width:6px;height:6px;margin-left:auto;border-right:1.5px solid #bca0d3;border-bottom:1.5px solid #bca0d3;transform:rotate(45deg);flex:none}
.kol-cash-balance[data-expanded="true"] .kol-cash-chevron{transform:rotate(225deg)}
#kolProfileDialog .kol-cash-breakdown{display:grid;gap:13px;padding:13px;margin:0 10px;border-top:1px solid #654d784d}
#kolProfileDialog .kol-cash-line{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;font-variant-numeric:tabular-nums}
#kolProfileDialog .kol-cash-line>span{display:grid;gap:4px}
#kolProfileDialog .kol-cash-asset{color:#d1b6e4;font-size:10px}
#kolProfileDialog .kol-cash-quantity{color:#a892ba;font-size:11px;overflow-wrap:anywhere}
#kolProfileDialog .kol-cash-line strong{font-size:12px;font-weight:500;white-space:nowrap}
@media(max-width:580px){#kolProfileDialog .kol-cash-balance{margin-left:0;min-width:0;width:fit-content;align-self:flex-start}#kolProfileDialog .kol-cash-summary{padding:10px 12px}.kol-cash-copy{display:flex;align-items:center;gap:10px}#kolProfileDialog .kol-cash-total{font-size:14px}#kolProfileDialog .kol-cash-breakdown{padding:12px 2px}}

/* Cash details float above holdings, preserving the list's position. */
#kolProfileDialog .kol-cash-balance{position:relative;z-index:2;overflow:visible}
#kolProfileDialog .kol-cash-summary{width:100%;margin:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;box-shadow:none;transition:background .2s}
.kol-cash-chevron{transition:transform .28s cubic-bezier(.22,1,.36,1)}
#kolProfileDialog .kol-cash-breakdown{position:absolute;top:calc(100% + 8px);right:-1px;left:-1px;margin:0;padding:17px 15px;z-index:3;border:1px solid #76588d;border-radius:14px;background:linear-gradient(135deg,#332240,#24192f);box-shadow:0 16px 36px #08050f80,inset 0 1px 0 #ffffff0c;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.97);transform-origin:top right;transition:opacity .2s,transform .28s cubic-bezier(.22,1,.36,1),visibility .28s}
#kolProfileDialog .kol-cash-balance[data-expanded="true"] .kol-cash-breakdown{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
@media(prefers-reduced-motion:reduce){#kolProfileDialog .kol-cash-breakdown,#kolProfileDialog .kol-cash-summary,.kol-cash-chevron{transition:none}}

/* Loading indicators settle into the same space as the resolved token. */
.kol-token-icon img{opacity:0;transition:opacity .28s ease}
.kol-token-icon img[data-image-state="loaded"]{opacity:1}
.kol-token-icon::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 20%,#e0bef54d 50%,transparent 80%);opacity:0;transform:translateX(-110%)}
.kol-token-icon:has(img[data-image-state="pending"])::after,
.kol-token-icon:has(img[data-image-state="loading"])::after,
.kol-token-icon[data-metadata-loading="true"]:not(:has(img[data-image-state="loaded"]))::after{opacity:1;animation:kol-loader-shimmer 1.6s ease-in-out infinite}
.kol-token-icon:has(img[data-image-state="pending"]),
.kol-token-icon:has(img[data-image-state="loading"]){color:transparent}
.kol-cash-icons img[data-image-state="pending"],.kol-cash-icons img[data-image-state="loading"]{animation:kol-loader-pulse 1.6s ease-in-out infinite}
.kol-snapshot-time[data-loading="true"]::before,.kol-load-holdings:disabled::before{content:'';display:inline-block;width:9px;height:9px;margin-right:7px;border:1.5px solid #a884c33d;border-top-color:#c5a0e5;border-radius:50%;vertical-align:-1px;animation:kol-loader-spin .9s linear infinite}
.kol-token-skeleton{position:relative;overflow:hidden;pointer-events:none}
.kol-token-skeleton::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 25%,#c49ce81a 50%,transparent 75%);transform:translateX(-110%);animation:kol-loader-shimmer 1.8s ease-in-out infinite}
.kol-token-skeleton:nth-child(2)::after{animation-delay:.12s}.kol-token-skeleton:nth-child(3)::after{animation-delay:.24s}
.kol-skeleton-icon{display:block;width:36px;height:36px;border-radius:11px;flex:none;background:#392647}
.kol-skeleton-copy{display:grid;gap:9px}
.kol-skeleton-name,.kol-skeleton-amount,.kol-skeleton-value{display:block;height:9px;border-radius:6px;background:#a985c22b}
.kol-skeleton-name{width:112px}.kol-skeleton-amount{width:72px;height:7px;background:#a985c21a}.kol-skeleton-value{width:56px}
@keyframes kol-loader-shimmer{to{transform:translateX(110%)}}
@keyframes kol-loader-spin{to{transform:rotate(360deg)}}
@keyframes kol-loader-pulse{0%,100%{opacity:.4}50%{opacity:.8}}
@media(max-width:520px){.kol-skeleton-icon{width:30px;height:30px;border-radius:9px}.kol-skeleton-name{width:92px}.kol-skeleton-value{width:44px}}
@media(prefers-reduced-motion:reduce){
 .kol-token-icon img{transition:none}
 .kol-token-icon::after,.kol-token-skeleton::after,.kol-snapshot-time[data-loading="true"]::before,.kol-load-holdings:disabled::before,.kol-cash-icons img[data-image-state]{animation:none!important}
 .kol-token-icon::after,.kol-token-skeleton::after{transform:none}
}

/* Use the shared page heading and one document scroll area at every size. */
#launchView .step-label{font-weight:inherit}

#launchView,#launchView[data-step="1"]{max-width:1390px;padding:28px 38px 0;--launch-sidebar:206px;--launch-gutter:38px}
#launchView[data-step="1"]{display:block}
#launchView[data-step="1"]>.workspace{flex:none;padding-bottom:calc(var(--launch-actions-height,72px) + 24px + env(safe-area-inset-bottom))}
#launchView>.page-heading .text-button{margin-top:18px}
#launchView>.stepper,#launchView[data-step="1"]>.stepper{padding-block:15px;margin-bottom:26px}
#launchView[data-step="1"]>.workspace{display:block}
#launchView[data-step="1"] .editor{display:block;container-type:normal;padding:24px}
#launchView #step1{grid-template-rows:repeat(5,auto)}
#launchView[data-step="1"] #characterList.kol-portrait-grid{height:auto;max-height:none;overflow:visible;overscroll-behavior:auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding:16px 4px;scroll-padding:0}
#launchView[data-step="1"] #characterList .kol-portrait-card{max-width:none}
#launchView #step1>.directory-info{max-height:none;overflow:visible;padding:0;margin-top:8px}
#launchView #step1>.directory-info>div{display:grid;gap:6px;padding:6px 0 4px}
#launchView #step1>.directory-info>div :is(p,.selection-note){margin:0;font-size:12px;line-height:18px}
#launchView #step1>.panel-actions{position:fixed;left:calc(50% + var(--launch-sidebar)/2);right:auto;transform:translate(-50%,var(--launch-actions-offset,0px));width:calc(100% - var(--launch-sidebar) - 2*var(--launch-gutter));max-width:1314px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:8;min-height:72px;margin:0;padding:12px 16px;gap:12px;background:var(--glass-panel-background);backdrop-filter:var(--glass-panel-filter);-webkit-backdrop-filter:var(--glass-panel-filter);border-color:var(--glass-panel-border);box-shadow:var(--glass-panel-shadow)}
#launchView #step1>.panel-actions>span{max-width:none;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#launchView #step1>.panel-actions .primary{min-height:var(--primary-height,42px);padding:8px 12px}
#launchView #step1>.panel-actions .primary:disabled{color:#f5efff}

@media(min-width:1500px){#launchView,#launchView[data-step="1"]{padding-top:35px}}
@media(max-width:1200px){#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){#launchView,#launchView[data-step="1"]{padding-top:24px;padding-inline:24px;--launch-sidebar:176px;--launch-gutter:24px}}
@media(max-width:1000px){#launchView,#launchView[data-step="1"]{--launch-sidebar:76px}}
@media(max-width:740px){
 #launchView,#launchView[data-step="1"]{--launch-sidebar:0px}
 #launchView>.page-heading .text-button{margin-top:0}
 #launchView .stepper{gap:12px}
 #launchView .stepper li{flex:0 0 auto;gap:9px;font-size:13px}
 #launchView .stepper li.current{flex:1}
 #launchView .stepper li>span{width:26px;height:26px;flex:none;margin:0}
 #launchView .stepper li::after{display:none}
 #launchView .stepper li:not(.current) .step-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #launchView[data-step="1"] .editor{padding:18px 12px}
 #launchView #step1{display:block}
 #launchView #step1>.panel-heading{margin-bottom:18px}
 #launchView #step1>.panel-heading h3{font-size:22px}
 #launchView #step1>.directory-toolbar{margin-bottom:18px}
 #launchView #step1>.list-heading{margin:0 0 12px}
 #launchView[data-step="1"] #characterList.kol-portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:4px}
 #launchView #step1>.panel-actions{width:calc(100% - 24px);padding:12px;bottom:calc(10px + env(safe-area-inset-bottom))}
 #launchView #step1>.panel-actions>span{font-size:12px}
}
@media(max-width:520px){
 #launchView,#launchView[data-step="1"]{padding-top:17px;padding-inline:17px;--launch-gutter:17px}
 #launchView[data-step="1"] .editor{padding:18px 10px}
 #launchView[data-step="1"] #characterList.kol-portrait-grid{gap:8px}
 #launchView .kol-portrait-card .kol-card-caption{padding:24px 6px 6px}
 #launchView .kol-portrait-card .kol-card-name{font-size:12px;line-height:1.25}
}

/* Edge roll and gentle sway are separate, so scroll never restarts the sway. */
#launchView #characterList.kol-portrait-grid{position:relative}
#launchView #characterList.kol-portrait-grid .kol-portrait-card{
 transform:perspective(420px) translateY(var(--card-lift,0px)) rotateX(var(--scroll-roll,0deg)) scale(var(--scroll-scale,1));
 transform-origin:center var(--roll-origin,50%);
 animation:kol-directory-sway var(--sway-duration,6s) ease-in-out var(--sway-delay,0s) infinite;
 animation-play-state:paused;
 transition:border-color .22s ease,box-shadow .22s ease;
}
#launchView #characterList.kol-portrait-grid[data-motion-active="true"] .kol-portrait-card[data-motion-visible="true"]{animation-play-state:running}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:hover{--card-lift:-3px}
@keyframes kol-directory-sway{
 0%,50%,100%{translate:0 0;rotate:0deg}
 25%{translate:0 1.2px;rotate:.4deg}
 75%{translate:0 -1.2px;rotate:-.4deg}
}
/* The shared dark glass keeps plain text legible even over bright portraits. */
#launchView #step1>.panel-actions>#selectionStatus{color:#fff;font-weight:500;text-shadow:none}
@media(forced-colors:active){#launchView #step1>.panel-actions>#selectionStatus{color:CanvasText;text-shadow:none}}
@media(prefers-reduced-motion:reduce){
 #launchView #characterList.kol-portrait-grid .kol-portrait-card{animation:none;transform:none;translate:none;rotate:none}
}

/* Metadata may arrive after balances; keep the same row and reserve its identity. */
.kol-token-list li[data-identity-loading="true"] .kol-token-name{position:relative;display:block;width:112px;max-width:100%;height:18px;overflow:hidden;border-radius:5px;background:#a985c22b;color:transparent!important}
.kol-token-list li[data-identity-loading="true"] .kol-token-name::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 20%,#e0bef54d 50%,transparent 80%);transform:translateX(-110%);animation:kol-loader-shimmer 1.6s ease-in-out infinite}
.kol-token-list li[data-identity-loading="true"] .kol-token-icon:not(:has(img)){color:transparent}
@media(prefers-reduced-motion:reduce){.kol-token-list li[data-identity-loading="true"] .kol-token-name::after{animation:none}}

/* Queued identities and image downloads share the same visible progress cue. */
.kol-token-list li[data-identity-loading="true"] .kol-token-icon:not(:has(img[data-image-state="loaded"]))::after{opacity:1;animation:kol-loader-shimmer 1.25s ease-in-out infinite}
.kol-token-icon::after{background:linear-gradient(105deg,transparent 15%,#e0bef570 50%,transparent 85%)}

/* Keep initials out of the transition from metadata to downloaded artwork. */
.kol-token-icon[data-metadata-loading="true"],.kol-token-icon:has(img){color:transparent}
.kol-token-list li:not([data-identity-loading="true"]) .kol-token-icon[data-metadata-loading="false"]:not(:has(img))::before{content:'';width:13px;height:13px;border:1px solid #c2a6d766;border-radius:50%;box-shadow:inset 0 0 0 3px #392647, inset 0 0 0 4px #c2a6d733}

/* Home portraits, launch cards and profile headers share the coin-icon reflection. */
:is(.kol-portrait,.kol-card-photo,.kol-profile-photo)::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 15%,#e0bef570 50%,transparent 85%);opacity:0;transform:translateX(-110%)}
:is(.kol-portrait,.kol-card-photo,.kol-profile-photo):has(img:is([data-image-state="pending"],[data-image-state="loading"]))::before{opacity:1;animation:kol-loader-shimmer 1.25s ease-in-out infinite}
:is(.kol-portrait,.kol-card-photo,.kol-profile-photo):has(img) :is(.kol-portrait-initial,.kol-photo-initial){visibility:hidden}
:is(.kol-portrait,.kol-card-photo,.kol-profile-photo) img[data-image-state]{opacity:0}
:is(.kol-portrait,.kol-card-photo,.kol-profile-photo) img[data-image-state="loaded"]{opacity:1}
.kol-portrait img,.kol-profile-photo img{transition:opacity .28s ease}
.kol-card-photo img{transition:transform .45s cubic-bezier(.2,.75,.25,1),opacity .28s ease}
.kol-window.is-inactive .kol-portrait::before{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){:is(.kol-portrait,.kol-card-photo,.kol-profile-photo)::before{animation:none!important;transform:none}:is(.kol-portrait,.kol-card-photo,.kol-profile-photo) img{transition:none}}

.kol-wallet-badges{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.kol-wallet-badge{font-size:12px;line-height:1.5;color:var(--text-muted,#c5b4d5);border:1px solid rgba(187,155,224,.3);background:rgba(170,135,212,.08);border-radius:6px;padding:3px 8px}

.kol-management-button{border:1px solid var(--border,#493655);border-radius:9px;background:transparent;color:inherit;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer}.kol-management-button:hover{background:rgba(189,157,231,.1)}.kol-management-button:disabled{opacity:.5;cursor:wait}.kol-wallet-top{flex-wrap:wrap}.kol-removed-wallets{margin:24px 0;padding:16px;border:1px solid var(--border,#493655);border-radius:12px}.kol-removed-wallets summary{cursor:pointer}.kol-removed-wallet{display:flex;align-items:center;gap:12px;margin-top:12px}.kol-removed-wallet a{min-width:0;overflow-wrap:anywhere;font-size:12px}.kol-removed-wallet button{margin-left:auto;flex-shrink:0}

.kol-wallet-footer{margin-top:20px}.kol-wallet-footer,#kolProfileDialog .kol-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.kol-management-button{max-width:100%;text-align:left}.kol-management-help{margin:0;font-size:12px;line-height:1.5;color:var(--text-muted,#c5b4d5);max-width:62ch}

.kol-wallet-top>div{flex:1 1 220px;min-width:0}.kol-wallet-attribution{font-size:12px;line-height:1.5;color:var(--text-muted,#c5b4d5);margin:6px 0 0;max-width:66ch;overflow-wrap:anywhere}

#kolProfileDialog .kol-cash-summary{display:grid;grid-template-columns:auto minmax(0,1fr) 6px;gap:11px}#kolProfileDialog .kol-cash-copy{display:grid;gap:4px;text-align:center;justify-items:center}#kolProfileDialog .kol-cash-icons{justify-self:start}#kolProfileDialog .kol-cash-chevron{justify-self:end;margin-left:0}

/* Keep the wallet action beside its title; attribution gets its own full row. */
@media(max-width:580px){
 #kolProfileDialog .kol-wallet-top{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0;align-items:center}
 #kolProfileDialog .kol-wallet-top>div{display:contents}
 #kolProfileDialog .kol-wallet-top .kol-wallet-number{grid-column:1;grid-row:1}
 #kolProfileDialog .kol-wallet-top h3{grid-column:1;grid-row:2;overflow-wrap:anywhere}
 #kolProfileDialog .kol-wallet-top .kol-select{grid-column:2;grid-row:1 / 3;justify-self:end;white-space:nowrap;margin-left:auto}
 #kolProfileDialog .kol-wallet-top .kol-wallet-attribution{grid-column:1 / -1;grid-row:3;margin-top:12px}
}
#kolProfileDialog .kol-cash-line>span{min-width:0}

/* Names use the full portrait width; social links live in the profile dialog. */
#launchView .kol-portrait-card .kol-card-caption{grid-template-columns:minmax(0,1fr);gap:0}
#launchView .kol-portrait-card .kol-card-name{-webkit-line-clamp:2;line-height:1.2;overflow-wrap:anywhere}

/* Keep wallet shortcuts available above long holdings lists. */
#kolProfileDialog .kol-wallet-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:8px 20px;border-bottom:1px solid #3c2949;background:#191021}
#kolProfileDialog .kol-wallet-navigation[hidden]{display:none}
.kol-wallet-position{font-size:12px;color:#cbb0e3}
.kol-wallet-navigation-controls{display:flex;gap:8px}
#kolProfileDialog .kol-wallet-jump{display:grid;place-items:center;width:34px;height:32px;padding:0;border:1px solid #614570;border-radius:8px;background:#271b32;color:#e5d1ff;font-size:17px;line-height:1;cursor:pointer}
#kolProfileDialog .kol-wallet-jump:hover:enabled{background:#3c2850;border-color:#b58bd7}
#kolProfileDialog .kol-wallet-jump:disabled{opacity:.3;cursor:default}
#kolProfileDialog .kol-wallet-jump:focus-visible{outline:2px solid #d5b8ff;outline-offset:2px}
#kolProfileDialog .kol-wallet-jump svg{width:18px;height:18px;pointer-events:none}

@media(max-width:580px){
 #kolProfileDialog .kol-wallet-navigation{padding:6px 16px}
 #kolProfileDialog .kol-wallet-navigation-controls{gap:6px}
}

/* Public sorting and signed developer curation. */
.kol-sort-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.kol-sort-options,.kol-sort-actions{display:flex;gap:6px;align-items:center}.kol-sort-actions{margin-left:auto}
#launchView .kol-sort-toolbar button{padding:7px 13px;border:1px solid #574166;border-radius:9px;background:#21162d;color:#cbb7dc;font:inherit;font-size:12px;cursor:pointer}
#launchView .kol-sort-toolbar button[aria-pressed="true"],#launchView .kol-sort-toolbar .kol-sort-save{background:#c3a0ef;border-color:#c3a0ef;color:#241332}
#launchView .kol-sort-toolbar button:disabled{opacity:.5;cursor:default}
.kol-sort-notice{flex-basis:100%;margin:0;color:#bba4cc;font-size:12px;line-height:1.5}
#launchView .kol-sort-toolbar [hidden]{display:none}
#launchView .kol-portrait-card .kol-card-holdings{color:#decaee;font-size:12px;text-shadow:0 1px 5px #000;line-height:1.4}
#launchView #characterList.is-ordering .kol-portrait-card{position:relative;touch-action:none;user-select:none;cursor:grab;animation:none;transform:none;translate:none;rotate:none}
#launchView #characterList.is-ordering .kol-portrait-button{cursor:grab}
.kol-card-order{position:absolute;inset:8px 8px auto;z-index:3;display:flex;gap:4px;align-items:center;padding:4px;border-radius:9px;background:#160e22ed}
.kol-order-number{margin-right:auto;padding:0 6px;color:#dfc8f2;font-size:12px}
#launchView .kol-card-order button{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:1px solid #78578e;border-radius:6px;background:#30203f;color:#f2e1ff;font-size:17px;line-height:1;touch-action:none}
#launchView .kol-card-order button:disabled{opacity:.3}
#launchView .kol-card-order .kol-drag-handle{cursor:grab}
#launchView #characterList .kol-portrait-card.is-dragging{opacity:.55;border-color:#e3c4ff}
#launchView #characterList .kol-portrait-card.is-drop-target{outline:3px solid #cca1f3;outline-offset:-3px}
@media(max-width:580px){.kol-sort-toolbar{gap:8px}#launchView .kol-sort-toolbar button{padding:6px 10px}.kol-card-order{inset:5px 5px auto;gap:3px}.kol-order-number{padding:0 3px}#launchView .kol-card-order button{width:25px;height:27px}}

@media(max-width:580px){#launchView #characterList.is-ordering .kol-portrait-card{touch-action:pan-y}.kol-card-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:center}.kol-order-number{margin-right:0}}

#launchView #characterList[data-sort="price"] .kol-card-caption{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:3px;min-height:55%;padding:20px 12px 12px}
#launchView #characterList[data-sort="price"] .kol-card-name{flex:none;width:100%;margin:0}
@media(max-width:580px){#launchView #characterList[data-sort="price"] .kol-card-caption{padding:16px 6px 6px}#launchView #characterList[data-sort="price"] .kol-card-holdings{font-size:10px}}

@media(min-width:741px){#launchView #step1{grid-template-rows:repeat(6,auto)}#launchView #step1>.kol-sort-toolbar{grid-column:1/-1;grid-row:3;margin:8px 0 0}#launchView[data-step="1"] #characterList.kol-portrait-grid{grid-row:4}#launchView #step1>.directory-info{grid-row:5}#launchView #step1>.panel-actions{grid-row:6}}

/* Sorting opens from the filter beside search. */
#launchView .kol-sort-toolbar[hidden]{display:none}
.kol-sort-filter{position:relative;flex:none;z-index:5}
#launchView .kol-sort-toggle{display:grid;place-items:center;width:var(--field-height,38px);height:var(--field-height,38px);min-height:var(--field-height,38px);padding:0;border:1px solid #574166;border-radius:8px;background:#21162d;color:#ccb8de;cursor:pointer}
#launchView .kol-sort-toggle svg{display:block;width:18px;height:18px;margin:0;align-self:center;justify-self:center;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#launchView .kol-sort-toggle:hover,#launchView .kol-sort-toggle[aria-expanded="true"]{background:#362345;border-color:#b28dce;color:#f0dcff}
#launchView .kol-sort-toggle:disabled{opacity:.45;cursor:default}
#launchView .kol-sort-filter .kol-sort-options{position:absolute;right:0;top:calc(100% + 7px);display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:142px;padding:6px;border:1px solid #604671;border-radius:11px;background:#1d1428;box-shadow:0 12px 32px #0008}
#launchView .kol-sort-filter .kol-sort-options[hidden]{display:none}
#launchView .kol-sort-filter .kol-sort-button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:var(--utility-height,36px);padding:6px 10px;border:0;border-radius:7px;background:transparent;color:#d3bfdf;font:inherit;font-size:13px;text-align:left;cursor:pointer}
#launchView .kol-sort-filter .kol-sort-button:hover{background:#34223f}
#launchView .kol-sort-filter .kol-sort-button[aria-pressed="true"]{background:#3c2850;color:#efdfff}
#launchView .kol-sort-filter .kol-sort-button[aria-pressed="true"]::after{content:'✓';font-size:12px;color:#d8b4f6}
#launchView .kol-sort-filter button:focus-visible{outline:2px solid #cba6ef;outline-offset:2px}


/* Compact, single-line Price tags keep the same height while loading. */
#launchView .kol-portrait-card .kol-card-holdings[hidden]{display:none}
#launchView #characterList[data-sort="price"] .kol-card-holdings{position:relative;display:block;box-sizing:border-box;width:max-content;max-width:100%;height:1.4em;flex:none;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;overflow:hidden}
#launchView #characterList[data-sort="price"] .kol-card-holdings[data-state="loading"]{width:8ch;color:transparent;text-shadow:none;border-radius:3px;background:#a985c21a}
#launchView #characterList[data-sort="price"] .kol-card-holdings[data-state="loading"]::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 15%,#e0bef570 50%,transparent 85%);transform:translateX(-110%);animation:kol-loader-shimmer 1.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#launchView #characterList .kol-card-holdings[data-state="loading"]::after{animation:none}}

/* Persona backs belong to the rotating faces, never the stationary card shell. */
.persona-card-back{background:#08080b url('/assets/persona-logo-3d.png') center/cover no-repeat}
.kol-portrait::before{display:none}
#launchView #characterList.kol-portrait-grid .kol-portrait-card{perspective:850px;border:0;background:transparent;overflow:visible;box-shadow:none}
.kol-directory-turn{position:absolute;inset:0;border-radius:inherit;transform-style:preserve-3d;transform:rotateY(0deg)}
.kol-directory-front,.kol-directory-back{position:absolute;inset:0;border-radius:inherit;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 8px 24px #0004}
.kol-directory-front{transform:rotateY(180deg);background:#17121e}
.kol-directory-back{transform:rotateY(0deg);pointer-events:none}
.kol-portrait-card.is-face-up .kol-directory-turn{transform:rotateY(180deg)}
.kol-portrait-card.is-intro-card.is-face-up .kol-directory-turn{transition:transform .85s cubic-bezier(.2,.7,.2,1)}


/* Loading backs and live backs occupy the same square without an initial tilt. */
#characterList .kol-directory-placeholder.persona-card-back{border-radius:18px;overflow:hidden;box-shadow:0 8px 24px #0004}
#launchView #characterList.kol-portrait-grid .kol-portrait-card.is-intro-card:not(.is-face-up){animation:none;translate:none;rotate:none}
@media(max-width:520px){#characterList .kol-directory-placeholder.persona-card-back{border-radius:12px}}
@media(prefers-reduced-motion:reduce){.kol-portrait-card.is-intro-card.is-face-up .kol-directory-turn{transition:none}}

/* Reflective rims and highlights are attached to the faces, so they flip too. */
.kol-card-front,.kol-directory-front{box-shadow:0 8px 24px #0005;transition:box-shadow .25s ease}
.kol-card-front::before,.kol-directory-front::before{content:'';position:absolute;inset:0;z-index:3;padding:1.5px;border-radius:inherit;pointer-events:none;background:linear-gradient(140deg,#f3e8ffbb 0%,#d8bcff66 16%,#9470bc33 38%,#e9d9ff88 60%,#75529c55 79%,#d0acfa88 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:.8;transition:opacity .25s ease}
.kol-card-front::after,.kol-directory-front::after{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;background:linear-gradient(125deg,#eee1ff18 0%,transparent 30%,#fff1 44%,#fff2 47%,transparent 59%);background-size:220% 100%;background-position:100% 0;opacity:.45;transition:background-position .65s ease,opacity .25s ease}
.kol-portrait:hover .kol-card-front,.kol-portrait:focus-visible .kol-card-front,.kol-portrait-card:hover .kol-directory-front,.kol-portrait-card:has(:focus-visible) .kol-directory-front{box-shadow:0 8px 28px #0006,0 0 20px #b689f540,0 0 3px #d4b4ff70}
.kol-portrait:hover .kol-card-front::before,.kol-portrait:focus-visible .kol-card-front::before,.kol-portrait-card:hover .kol-directory-front::before,.kol-portrait-card:has(:focus-visible) .kol-directory-front::before{opacity:1}
.kol-portrait:hover .kol-card-front::after,.kol-portrait:focus-visible .kol-card-front::after,.kol-portrait-card:hover .kol-directory-front::after,.kol-portrait-card:has(:focus-visible) .kol-directory-front::after{background-position:0 0;opacity:.75}
#launchView #characterList.kol-portrait-grid .kol-portrait-card:hover{box-shadow:none}
#launchView #characterList .kol-portrait-card.is-selected .kol-directory-front::before{padding:2px;background:linear-gradient(140deg,#f2e1ff,#c6a1ff 45%,#e9d3ff);opacity:1}
@media(prefers-reduced-motion:reduce){.kol-card-front,.kol-directory-front,.kol-card-front::before,.kol-directory-front::before,.kol-card-front::after,.kol-directory-front::after{transition:none}}

/* Match the launch portraits' hover zoom and three-pixel lift on Home. */
.kol-portrait{transition:translate .22s ease}
.kol-portrait:hover,.kol-portrait:focus-visible{translate:0 -3px}
.kol-portrait .kol-card-front img{transition:transform .45s cubic-bezier(.2,.75,.25,1),opacity .28s ease}
.kol-portrait:hover .kol-card-front img,.kol-portrait:focus-visible .kol-card-front img{transform:scale(1.045)}
@media(prefers-reduced-motion:reduce){.kol-portrait,.kol-portrait .kol-card-front img{transition:none}.kol-portrait:hover,.kol-portrait:focus-visible{translate:none}.kol-portrait:hover .kol-card-front img,.kol-portrait:focus-visible .kol-card-front img{transform:none}}

/* Keep wallet jumps under our control while asynchronous holdings change height. */
#kolProfileDialog .kol-profile-content{scroll-behavior:auto;overflow-anchor:none}
#kolProfileDialog .kol-holdings-controls{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
#kolProfileDialog .kol-holdings-teaser+.kol-holdings-controls{margin-top:-7px;position:relative}
#kolProfileDialog .kol-holdings-controls button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 140px;width:auto;margin:0;min-height:44px;padding:10px 16px;border:1px solid #594069;border-radius:10px;background:#281c33;color:#e5d2f5;font:inherit;font-size:12px;font-weight:500;transition:background .2s,border-color .2s,transform .2s}
#kolProfileDialog .kol-holdings-controls button::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
#kolProfileDialog .kol-holdings-controls .kol-collapse-holdings{background:transparent;color:#cdb4df}
#kolProfileDialog .kol-holdings-controls .kol-collapse-holdings::after{transform:translateY(2px) rotate(225deg)}
#kolProfileDialog .kol-holdings-controls button:disabled{opacity:.6;cursor:wait}
#kolProfileDialog .kol-holdings-controls button:disabled::after{display:none}
#kolProfileDialog .kol-holdings-controls button:focus-visible{outline:2px solid #c5a0e5;outline-offset:3px}
@media(hover:hover){#kolProfileDialog .kol-holdings-controls button:not(:disabled):hover{background:#392648;border-color:#9470ac;transform:translateY(-1px)}}
#kolProfileDialog .kol-holdings-controls button:not(:disabled):active{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){#kolProfileDialog .kol-holdings-controls button{transition:none;transform:none}}

/* Decorations behind the modal do not need to keep repainting its backdrop. */
.kol-dialog-open :is(#launchView,#homeView) *,
.kol-dialog-open :is(#launchView,#homeView) *::before,
.kol-dialog-open :is(#launchView,#homeView) *::after{animation-play-state:paused!important}
@media(pointer:coarse){
 #kolProfileDialog .kol-profile-close{width:44px;height:44px}
 @media(min-width:741px){#kolProfileDialog .kol-wallet-jump{width:44px;height:44px}}
}

@media(max-width:740px){
 #kolProfileDialog .kol-wallet-navigation-controls{gap:4px}
 #kolProfileDialog .kol-wallet-jump{width:32px;height:32px;border:0;background:transparent;border-radius:6px;font-size:18px}
 #kolProfileDialog .kol-wallet-jump:hover:enabled{background:#b890e014}
}

/* Mobile selection and profiles share the tighter spacing of the coin views. */
@media(max-width:740px){
 #launchView[data-step="1"] .editor{padding:12px}
 #launchView #step1>.panel-heading{margin-bottom:8px}
 #launchView #step1>.panel-heading h3{font-size:18px;line-height:1.3}
 #launchView #step1>.directory-toolbar{gap:8px;margin-bottom:0}
  #launchView #step1 :is(#findProfile,.kol-sort-toggle){height:var(--field-height);min-height:var(--field-height);font-size:12px}
 #launchView #step1 #findProfile{padding:0 10px}
 #launchView #step1>.list-heading{margin-top:8px;margin-bottom:0;font-size:10px;gap:8px}
 #launchView #step1>.kol-sort-toolbar{margin:6px 0 0;gap:6px}
 #launchView #step1 .kol-sort-toolbar button{min-height:32px;font-size:11px;padding:6px 10px}
 #launchView[data-step="1"] #characterList.kol-portrait-grid{gap:10px;padding:8px 0}
 #launchView #step1>.directory-info{margin-top:4px;padding:0}
 #launchView #step1>.directory-info>summary{padding:0;min-height:32px;font-size:12px}
 #kolProfileDialog .kol-profile-header{gap:10px;padding:12px 56px 12px 12px}
 #kolProfileDialog .kol-profile-photo{width:48px;height:48px;border-radius:12px}
 #kolProfileDialog .kol-profile-eyebrow{font-size:8px;letter-spacing:.6px;line-height:1.3;margin-bottom:4px}
 #kolProfileDialog h2{font-size:24px;letter-spacing:-.5px;margin-bottom:4px}
 #kolProfileDialog .kol-profile-x{font-size:12px;gap:6px}
 #kolProfileDialog .kol-profile-close{width:32px;height:32px;right:10px;top:10px;font-size:20px}
 #kolProfileDialog .kol-wallet-navigation{padding:4px 12px}
 #kolProfileDialog .kol-profile-content{padding:12px 12px 16px}
 #kolProfileDialog .kol-profile-overview{gap:14px;padding-bottom:12px}
 #kolProfileDialog .kol-profile-overview>div>span{font-size:11px;margin-bottom:4px}
 #kolProfileDialog .kol-profile-overview strong{font-size:23px}
 #kolProfileDialog .kol-profile-guidance{font-size:11px;line-height:1.55;margin:10px 0 12px}
 #kolProfileDialog .kol-profile-wallet{padding:12px;margin-top:10px}
 #kolProfileDialog .kol-wallet-top{gap:8px}
 #kolProfileDialog h3{font-size:15px}
 #kolProfileDialog .kol-wallet-number{margin-bottom:4px}
 #kolProfileDialog .kol-select{min-height:var(--primary-height);font-size:12px;padding:8px 10px}
 #kolProfileDialog .kol-wallet-address{font-size:11px;line-height:1.5;margin:8px 0 10px}
 #kolProfileDialog .kol-wallet-footer{gap:8px;margin-top:12px;padding-top:10px}
 #kolProfileDialog .kol-holdings-header{gap:10px;padding-top:12px}
 #kolProfileDialog .kol-balance{font-size:20px}
 #kolProfileDialog .kol-wallet-list-toolbar{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 8px}
 #kolProfileDialog .kol-management-button{min-height:var(--utility-height);padding:6px 10px;font-size:12px}
 #kolProfileDialog .kol-wallet-action-buttons{gap:8px}
 #kolProfileDialog .kol-wallet-attribution{margin-top:4px}
 #kolProfileDialog .kol-profile-sources{padding-top:10px;margin-top:12px}
 #kolProfileDialog .kol-actions{margin-top:12px;padding-top:12px}
 #kolProfileDialog .kol-holdings-control{margin-top:8px}
 #kolProfileDialog .kol-token-list li{padding-block:9px;gap:10px}
 #kolProfileDialog .kol-assets{margin-top:12px}
 #kolProfileDialog .kol-muted{margin-block:8px}
}

/* Reduce space inside each mobile wallet without shortening its address. */
@media(max-width:740px){
 #kolProfileDialog .kol-profile-content{padding:10px 12px 12px}
 #kolProfileDialog .kol-profile-overview{padding-bottom:10px}
 #kolProfileDialog .kol-profile-overview>div>span{margin-bottom:3px}
 #kolProfileDialog .kol-profile-guidance{margin:8px 0 10px}
 #kolProfileDialog .kol-wallet-list-toolbar{margin:10px 0 8px}
 #kolProfileDialog .kol-profile-wallet{padding:10px 12px;margin-top:8px}
 #kolProfileDialog .kol-wallet-top{row-gap:4px}
 #kolProfileDialog .kol-wallet-number{margin-bottom:0}
 #kolProfileDialog .kol-wallet-top .kol-wallet-attribution{margin-top:2px}
 #kolProfileDialog .kol-select{min-height:36px;padding:6px 10px}
 #kolProfileDialog .kol-wallet-address{margin:6px 0 8px}
 #kolProfileDialog .kol-holdings-header{gap:8px;padding-top:8px}
 #kolProfileDialog .kol-holdings-header h4{margin-bottom:4px}
 #kolProfileDialog .kol-cash-summary{padding:8px 10px}
 #kolProfileDialog .kol-cash-copy{gap:2px}
 #kolProfileDialog .kol-cash-breakdown{padding:12px;gap:8px}
 #kolProfileDialog .kol-snapshot-time{margin:6px 0 8px}
 #kolProfileDialog .kol-assets{margin-top:10px}
 #kolProfileDialog .kol-token-list li{padding-block:8px}
 #kolProfileDialog .kol-wallet-footer{margin-top:10px;padding-top:8px}
}
