/* Profile tools share the minimal dashboard's neutral surfaces and controls. */
html[data-main-template="minimal"] .station-profile-overlay{padding:24px;background:rgba(24,24,27,.32);backdrop-filter:blur(4px)}
html[data-main-template="minimal"] .station-profile-panel{width:min(880px,100%);max-height:calc(100dvh - 48px);border:1px solid #e4e4e7;border-radius:16px;box-shadow:0 24px 80px #18181b24;color:#27272a;font-variant-numeric:tabular-nums}
html[data-main-template="minimal"] .profile-panel-api .station-profile-panel{width:min(660px,100%)}
html[data-main-template="minimal"] .station-profile-panel>header{padding:20px 24px;border-bottom:1px solid #e9e9ec}
html[data-main-template="minimal"] .station-profile-panel>header h2{font-size:20px;font-weight:650;letter-spacing:-.4px;color:#18181b}
html[data-main-template="minimal"] .station-profile-close{background:#f4f4f5;color:#52525b;border-radius:8px}
html[data-main-template="minimal"] .station-profile-panel-body.my-page{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:24px;max-width:none;background:#fff}
html[data-main-template="minimal"] .profile-panel-account .station-profile-panel-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[data-main-template="minimal"] .station-profile-panel .my-section{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0}
html[data-main-template="minimal"] .station-profile-panel .section-header{padding-bottom:0;margin-bottom:20px;border:0;gap:12px}
html[data-main-template="minimal"] .station-profile-panel .section-icon{width:36px;height:36px;background:#f4f4f5;color:#3f3f46;border-radius:9px;box-shadow:none}
html[data-main-template="minimal"] .station-profile-panel .section-title{font-size:15px;font-weight:650;color:#27272a}
html[data-main-template="minimal"] .station-profile-panel .section-desc{font-size:12px;color:#8b8b94;margin-top:4px;line-height:1.5}
html[data-main-template="minimal"] .station-profile-panel .profile-overview{border:0;border-radius:10px;background:#f6f6f7;box-shadow:none;padding:16px;gap:12px;flex-wrap:wrap}
html[data-main-template="minimal"] .station-profile-panel .profile-name{font-size:19px;color:#18181b;overflow-wrap:anywhere}
html[data-main-template="minimal"] .station-profile-panel .profile-balance{background:none;border:0;padding:0;min-width:0;text-align:left}
html[data-main-template="minimal"] .station-profile-panel .profile-balance strong{color:#18181b;font-size:21px}
html[data-main-template="minimal"] .station-profile-panel .profile-membership-badge{background:#eeeef0;border:0;color:#52525b;font-size:11px;font-weight:500}
html[data-main-template="minimal"] .station-profile-panel .profile-info-list{display:flex;flex-direction:column;gap:0;margin:16px 0}
html[data-main-template="minimal"] .station-profile-panel .profile-info-row{border:0;border-bottom:1px solid #eeeef0;border-radius:0;padding:12px 0;background:none;min-height:42px;gap:12px;flex-wrap:wrap}
html[data-main-template="minimal"] .station-profile-panel .profile-label{color:#777780;font-size:12px;font-weight:400;flex-shrink:0}
html[data-main-template="minimal"] .station-profile-panel .profile-value{font-size:13px;color:#303036;overflow-wrap:anywhere;min-width:0;font-weight:500;max-width:100%}
html[data-main-template="minimal"] .station-profile-panel .profile-actions-bottom{margin-top:16px;padding-top:0;border:0}
html[data-main-template="minimal"] .station-profile-panel button:not(.station-profile-close){min-height:34px;padding:7px 12px;border:1px solid #dedee3;border-radius:7px;background:#fff;color:#3f3f46;font-size:12px;font-weight:500;box-shadow:none;transition:background .15s,border-color .15s}
html[data-main-template="minimal"] .station-profile-panel button:not(.station-profile-close):hover{background:#f4f4f5;border-color:#bdbdc5;transform:none}
html[data-main-template="minimal"] .station-profile-panel .profile-change-pwd-btn{width:auto;background:#27272a!important;color:#fff!important;border-color:#27272a!important}
html[data-main-template="minimal"] .station-profile-panel button:focus-visible,html[data-main-template="minimal"] .station-profile-panel input:focus-visible{outline:2px solid #71717a;outline-offset:3px}
html[data-main-template="minimal"] .station-profile-panel button:disabled{opacity:.5;cursor:not-allowed}
html[data-main-template="minimal"] .station-profile-panel .my-login-mode-wrap{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0 0 24px;padding:16px;background:#f6f6f7;border:0;border-radius:10px}
html[data-main-template="minimal"] .station-profile-panel .my-login-mode-options{display:flex;flex-wrap:wrap;gap:8px;margin:0}
html[data-main-template="minimal"] .station-profile-panel .my-login-mode-options label{flex:1;justify-content:center;background:#fff;border:1px solid #e4e4e7;border-radius:7px;padding:10px 8px;font-size:12px;color:#52525b;white-space:nowrap}
html[data-main-template="minimal"] .station-profile-panel .my-login-mode-options label:has(:checked){border-color:#52525b;color:#18181b}
html[data-main-template="minimal"] .station-profile-panel input[type=radio]{accent-color:#27272a}
html[data-main-template="minimal"] .station-profile-panel .security-subhead{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:14px}
html[data-main-template="minimal"] .station-profile-panel .security-subhead span{font-size:14px;color:#27272a}
html[data-main-template="minimal"] .station-profile-panel .security-subhead small{color:#8b8b94;font-size:12px}
html[data-main-template="minimal"] .station-profile-panel .my-session-toolbar{gap:8px;margin-bottom:16px}
html[data-main-template="minimal"] .station-profile-panel .my-session-toolbar .danger{color:#a34242;border-color:#ead9d9}
html[data-main-template="minimal"] .station-profile-panel .my-session-item{padding:14px 0;border:0;border-top:1px solid #eeeef0;border-radius:0;background:none;box-shadow:none}
html[data-main-template="minimal"] .station-profile-panel .my-session-info{color:#52525b;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
html[data-main-template="minimal"] .station-profile-panel .api-connect-head{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:24px}
html[data-main-template="minimal"] .station-profile-panel .api-connect-title-wrap .section-title{display:none}
html[data-main-template="minimal"] .station-profile-panel .api-connect-title-wrap .section-desc{font-size:14px;color:#71717a;margin:0}
html[data-main-template="minimal"] .station-profile-panel .api-connect-title-wrap .section-icon{display:none}
html[data-main-template="minimal"] .station-profile-panel .api-connect-note{font-size:12px;line-height:1.6;background:#f6f6f7;border:0;border-radius:8px;padding:10px 12px;color:#71717a;align-self:stretch}
html[data-main-template="minimal"] .station-profile-panel .api-connect-grid{border:0;border-radius:0;background:none}
html[data-main-template="minimal"] .station-profile-panel .api-connect-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:20px 0;border:0;border-top:1px solid #e9e9ec;background:none}
html[data-main-template="minimal"] .station-profile-panel .api-connect-label{grid-column:1/-1;font-size:12px;font-weight:500;color:#71717a}
html[data-main-template="minimal"] .station-profile-panel .api-connect-label i{color:#71717a}
html[data-main-template="minimal"] .station-profile-panel .api-connect-token-row .api-connect-value{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:wrap}
html[data-main-template="minimal"] .station-profile-panel .api-connect-url,html[data-main-template="minimal"] .station-profile-panel .api-token-text{font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#27272a;overflow-wrap:anywhere;white-space:normal;align-self:center}
html[data-main-template="minimal"] .star-profile-page .star-grid:not(.star-tool-grid){grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:680px){
 html[data-main-template="minimal"] .station-profile-overlay{padding:12px}
 html[data-main-template="minimal"] .station-profile-panel{max-height:calc(100dvh - 24px);border-radius:12px}
 html[data-main-template="minimal"] .station-profile-panel>header{padding:16px 20px}
 html[data-main-template="minimal"] .profile-panel-account .station-profile-panel-body{grid-template-columns:minmax(0,1fr)}
 html[data-main-template="minimal"] .station-profile-panel-body.my-page{padding:20px;gap:28px}
 html[data-main-template="minimal"] .station-profile-panel .security-card{padding-top:24px;border-top:1px solid #e4e4e7}
 html[data-main-template="minimal"] .station-profile-panel .api-connect-row{grid-template-columns:minmax(0,1fr)}
 html[data-main-template="minimal"] .station-profile-panel .my-token-actions{justify-content:flex-start}
 html[data-main-template="minimal"] .star-profile-page .star-grid:not(.star-tool-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
}
html[data-main-template="minimal"] .station-profile-panel .api-connect-note{max-width:none;width:100%;text-align:left}
html[data-main-template="minimal"] .station-profile-panel .section-card{animation:none!important;opacity:1!important;transform:none!important}

/* A singleton native dialog sits above settings without stacking backdrops. */
dialog.station-password-dialog{position:fixed;inset:0;margin:auto;display:block;width:min(440px,calc(100% - 32px));height:fit-content;max-height:calc(100dvh - 32px);padding:0;overflow:auto;box-sizing:border-box;border:1px solid #e4e4e7;border-radius:16px;background:#fff;color:#27272a;box-shadow:0 24px 80px #18181b24;backdrop-filter:none;font-family:inherit;animation:none;transform:none}
dialog.station-password-dialog:not([open]){display:none}
dialog.station-password-dialog::backdrop{background:rgba(24,24,27,.32);backdrop-filter:blur(4px)}
.station-password-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid #eeeef0}
.station-password-dialog h2{margin:0;color:#18181b;font-size:20px;font-weight:650;line-height:1.4}
.station-password-dialog header p{margin:8px 0 0;color:#71717a;font-size:13px;line-height:1.6}
.station-password-dialog button{font:inherit;cursor:pointer;border:1px solid #dedee3;border-radius:8px;background:#fff;color:#3f3f46;box-shadow:none;transition:background .18s}
.station-password-dialog .password-close{width:32px;height:32px;padding:0;flex-shrink:0;background:#f4f4f5;border:0;font-size:24px;line-height:1}
.station-password-dialog .password-fields{display:flex;flex-direction:column;padding:24px;gap:9px}
.station-password-dialog label{font-size:13px;font-weight:550;color:#3f3f46}
.station-password-dialog input{box-sizing:border-box;width:100%;min-width:0;height:44px;border:1px solid #dedee3;border-radius:8px;padding:0 12px;background:#fff;color:#18181b;font:inherit;font-size:16px;box-shadow:none;margin:0 0 11px}
.station-password-dialog input:last-of-type{margin-bottom:0}
.station-password-dialog input::placeholder{color:#a1a1aa;font-size:14px}
.station-password-dialog :is(input,button):focus-visible{outline:2px solid #71717a;outline-offset:3px}
.station-password-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #eeeef0;background:#fafafa}
.station-password-dialog footer button{min-height:40px;padding:9px 20px;font-size:14px;font-weight:550}
.station-password-dialog .password-submit{background:#27272a;color:#fff;border-color:#27272a}
.station-password-dialog button:hover{background:#eeeef0}
.station-password-dialog .password-submit:hover{background:#3f3f46}
.station-password-dialog button:disabled{opacity:.55;cursor:wait}
.station-password-dialog .password-error{color:#b42318;font-size:13px;line-height:1.5;margin:4px 0 0}
@media(max-width:480px){.station-password-dialog header,.station-password-dialog .password-fields{padding:20px}.station-password-dialog footer{padding:16px 20px}.station-password-dialog footer button{flex:1}}
