/* A contextual assistant; its controls do not alter the upload form layout. */
.leya-artist-launcher {
    display:flex;
    justify-content:flex-end;
    grid-column:1 / -1;
    margin-block:0 12px;
    min-width:0;
}
.leya-artist-launcher .leya-artist-help {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:0;
    min-height:38px;
    margin:0;
    padding:8px 13px;
    border:1px solid #27758a;
    border-radius:9px;
    background:#0a2530;
    color:#57d8f1;
    font:inherit;
    font-size:13px;
    font-weight:600;
    white-space:normal;
    cursor:pointer;
}
.leya-artist-panel {
    --leya-artist-bg:#0b171f;
    --leya-artist-text:#eff8fc;
    --leya-artist-muted:#aec4ce;
    --leya-artist-border:#294b59;
    --leya-artist-surface:#10252f;
    --leya-artist-accent:#47d6ee;
    position:fixed;
    inset-inline-end:16px;
    inset-block-start:90px;
    inset-block-end:132px;
    z-index:100010;
    width:min(374px,calc(100vw - 32px));
    max-height:calc(100dvh - 116px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-sizing:border-box;
    margin:0;
    border:1px solid var(--leya-artist-border);
    border-radius:17px;
    background:var(--leya-artist-bg);
    color:var(--leya-artist-text);
    box-shadow:0 16px 55px rgba(0,0,0,.35);
    font-family:inherit;
    font-size:14px;
    line-height:1.5;
    text-align:start;
    color-scheme:dark;
}
.leya-artist-panel * { box-sizing:border-box; }
.leya-artist-panel [hidden] { display:none !important; }
.leya-artist-panel[data-leya-in-dialog='true'] { inset-block-start:22px; inset-block-end:22px; max-height:calc(100dvh - 44px); }
.leya-artist-panel .leya-artist-panel-head {
    flex:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
    padding:15px 16px;
    border-bottom:1px solid var(--leya-artist-border);
    background:linear-gradient(110deg,#102e3b,#075367);
    color:#f0fbfd;
}
.leya-artist-panel .leya-artist-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.leya-artist-panel .leya-artist-identity strong { font-size:15px; line-height:1.35; color:inherit; overflow-wrap:anywhere; }
.leya-artist-panel .leya-artist-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid #3bc8e0; border-radius:50%; color:#65e4f7; background:#0c2531; font-size:18px; }
.leya-artist-panel .leya-artist-panel-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px; scrollbar-width:thin; scrollbar-color:#397385 transparent; }
.leya-artist-panel .leya-artist-track-context { margin-bottom:16px; color:var(--leya-artist-muted); font-size:12px; overflow-wrap:anywhere; }
.leya-artist-panel h2 { margin:0 0 8px; color:var(--leya-artist-text); font-size:18px; line-height:1.35; font-weight:600; }
.leya-artist-panel h3 { margin:0 0 10px; color:var(--leya-artist-accent); font-size:13px; line-height:1.4; font-weight:600; }
.leya-artist-panel p { margin:0; color:var(--leya-artist-text); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.leya-artist-panel .leya-artist-intro { color:var(--leya-artist-muted); font-size:13px; }
.leya-artist-panel .leya-artist-generation-actions,
.leya-artist-panel .leya-artist-result-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; }
.leya-artist-panel .leya-artist-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:auto;
    min-width:0;
    min-height:40px;
    height:auto;
    margin:0;
    padding:9px 12px;
    border:1px solid var(--leya-artist-border);
    border-radius:9px;
    background:var(--leya-artist-surface);
    color:var(--leya-artist-text);
    font:inherit;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
    white-space:normal;
    overflow-wrap:anywhere;
    cursor:pointer;
}
.leya-artist-panel .leya-artist-primary { background:#057f9b; border-color:#1b9ab6; color:#fff; }
.leya-artist-panel .leya-artist-close { flex:none; min-width:40px; width:40px; padding:5px; font-size:25px; line-height:1; background:#0d2c38; border-color:#286174; color:#eafcff; }
.leya-artist-panel .leya-artist-action:disabled { cursor:default; opacity:.55; }
.leya-artist-panel .leya-artist-action:focus-visible,
.leya-artist-launcher .leya-artist-help:focus-visible { outline:2px solid #54d7ee; outline-offset:3px; }
.leya-artist-panel .leya-artist-message:empty { display:none; }
.leya-artist-panel .leya-artist-message { margin-top:16px; color:var(--leya-artist-muted); font-size:13px; }
.leya-artist-panel .leya-artist-message.is-error { color:#ffb2ac; }
.leya-artist-panel .leya-artist-result { margin-top:20px; padding-top:18px; border-top:1px solid var(--leya-artist-border); }
.leya-artist-panel .leya-artist-result-text { white-space:pre-wrap; user-select:text; }
.leya-artist-panel .leya-artist-confirm { margin-top:18px; padding:13px; border:1px solid #8f7545; border-radius:10px; background:var(--leya-artist-surface); }
.leya-artist-panel .leya-artist-confirm p { font-size:13px; }
body.light-theme .leya-artist-panel {
    --leya-artist-bg:#f5fbfc;
    --leya-artist-text:#153b4a;
    --leya-artist-muted:#426474;
    --leya-artist-border:#b5d5df;
    --leya-artist-surface:#e7f3f7;
    --leya-artist-accent:#006b82;
    color-scheme:light;
}
body.light-theme .leya-artist-launcher .leya-artist-help { color:#00617a; background:#e3f4f8; border-color:#69a7b7; }
body.light-theme .leya-artist-panel .leya-artist-message.is-error { color:#a42c28; }
@media (max-width:760px) {
    .leya-artist-panel {
        inset-inline:8px;
        inset-block-start:auto;
        inset-block-end:calc(var(--paxor-mobile-bottom-nav-height,58px) + var(--paxor-mobile-player-height,64px) + env(safe-area-inset-bottom,0px) + 6px);
        width:auto;
        max-height:min(70dvh,calc(100dvh - 180px));
        border-radius:17px 17px 10px 10px;
    }
    .leya-artist-panel[data-leya-in-dialog='true'] { inset-block-start:auto; inset-block-end:10px; max-height:calc(100dvh - 30px); }
    .leya-artist-panel .leya-artist-action,
    .leya-artist-launcher .leya-artist-help { min-height:44px; }
}
@media (max-height:560px) {
    .leya-artist-panel { inset-block-start:10px; inset-block-end:10px; max-height:calc(100dvh - 20px); }
}

/* Read-only release checks share the existing help panel. */
.leya-artist-panel .leya-artist-tabs {
    display:flex; gap:6px; margin:0 0 17px; padding:4px;
    border:1px solid var(--leya-artist-border); border-radius:11px;
    background:var(--leya-artist-surface);
}
.leya-artist-panel .leya-artist-tab {
    flex:1 1 0; min-width:0; padding:8px 10px; border-color:transparent;
    background:transparent; color:var(--leya-artist-muted);
}
.leya-artist-panel .leya-artist-tab[aria-selected='true'] {
    background:#08687d; border-color:#258da2; color:#fff;
}
.leya-artist-panel .leya-release-scope {
    display:inline-block; margin:0 0 9px; color:var(--leya-artist-accent);
    font-size:12px; font-weight:650;
}
.leya-artist-panel .leya-release-summary { display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.leya-artist-panel .leya-release-summary:empty { display:none; }
.leya-artist-panel .leya-release-count {
    padding:4px 8px; border:1px solid var(--leya-artist-border); border-radius:20px;
    background:var(--leya-artist-surface); color:var(--leya-artist-text); font-size:11px;
}
.leya-artist-panel .leya-release-results { display:grid; gap:10px; margin-top:14px; }
.leya-artist-panel .leya-release-card {
    padding:12px; border:1px solid var(--leya-artist-border); border-inline-start-width:3px;
    border-radius:11px; background:var(--leya-artist-surface); min-width:0;
}
.leya-artist-panel .leya-release-card.is-ok { border-inline-start-color:#59cfa0; }
.leya-artist-panel .leya-release-card.is-warning { border-inline-start-color:#e0bd67; }
.leya-artist-panel .leya-release-card.is-error { border-inline-start-color:#f3938c; }
.leya-artist-panel .leya-release-card.is-pending { border-inline-start-color:#5ac4e6; }
.leya-artist-panel .leya-release-card-heading { display:flex; align-items:flex-start; gap:7px; min-width:0; margin-bottom:6px; }
.leya-artist-panel .leya-release-card-heading h3 { flex:1; min-width:0; margin:0; color:var(--leya-artist-text); overflow-wrap:anywhere; }
.leya-artist-panel .leya-release-status-icon { flex:none; min-width:17px; color:var(--leya-artist-accent); font-weight:700; text-align:center; }
.leya-artist-panel .is-error .leya-release-status-icon { color:#ffb2ac; }
.leya-artist-panel .is-warning .leya-release-status-icon { color:#edcb79; }
.leya-artist-panel .is-ok .leya-release-status-icon { color:#6cdeb1; }
.leya-artist-panel .leya-release-status-label { flex:0 1 90px; max-width:90px; font-size:10px; color:var(--leya-artist-muted); text-align:end; overflow-wrap:anywhere; }
.leya-artist-panel .leya-release-card p { font-size:12px; line-height:1.55; }
.leya-artist-panel .leya-release-facts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3px 8px; margin:9px 0; font-size:11px; }
.leya-artist-panel .leya-release-facts dt { color:var(--leya-artist-muted); }
.leya-artist-panel .leya-release-facts dd { margin:0; text-align:end; color:var(--leya-artist-text); overflow-wrap:anywhere; }
.leya-artist-panel .leya-release-why { margin-top:8px; color:var(--leya-artist-text); }
.leya-artist-panel .leya-release-why summary { cursor:pointer; color:var(--leya-artist-accent); font-size:12px; }
.leya-artist-panel .leya-release-why p { margin-top:7px; color:var(--leya-artist-muted); }
.leya-artist-panel .leya-release-open-field { min-height:34px; margin-top:9px; padding:6px 9px; font-size:11px; }
body.light-theme .leya-artist-panel .is-error .leya-release-status-icon { color:#9c3730; }
body.light-theme .leya-artist-panel .is-warning .leya-release-status-icon { color:#805e12; }
body.light-theme .leya-artist-panel .is-ok .leya-release-status-icon { color:#16744e; }
body.light-theme .leya-artist-panel .leya-artist-panel-head .leya-artist-identity strong,
html[data-theme='light'] body .leya-artist-panel .leya-artist-panel-head .leya-artist-identity strong {
    color:#f0fbfd !important;
}
body.light-theme .leya-artist-panel .leya-artist-panel-head .leya-artist-close,
html[data-theme='light'] body .leya-artist-panel .leya-artist-panel-head .leya-artist-close {
    color:#eafcff !important; background:#0d2c38 !important;
}
body.light-theme .leya-artist-panel .leya-artist-panel-head .leya-artist-avatar,
html[data-theme='light'] body .leya-artist-panel .leya-artist-panel-head .leya-artist-avatar {
    color:#65e4f7 !important;
}
@media (max-width:760px) {
    .leya-artist-panel .leya-release-card { padding:11px; }
    .leya-artist-panel .leya-release-status-label { flex-basis:78px; max-width:78px; }
    .leya-artist-panel .leya-release-open-field { min-height:40px; }
}
