/* V2331 · Persönliche Chartliste */
.mtcl-wrap{display:flex;align-items:stretch;gap:0;width:100%;min-height:0;overflow:hidden}
.mtcl-chartcol{flex:1 1 auto;min-width:0;min-height:0}
html body.mt-detail-page main.page button.mtcl-rail, html body button.mtcl-rail{flex:0 0 34px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #638fc0;border-left:0;background:#20477b!important;color:#eef4fb;cursor:pointer;border-radius:0 10px 10px 0;font:600 12px/1.2 inherit;padding:10px 0}
.mtcl-rail span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.mtcl-rail i{font-style:normal;font-size:16px;color:#b58a00}
html body.mt-detail-page main.page button.mtcl-rail:hover, html body button.mtcl-rail:hover{background:#20477b}
.mtcl-side{flex:0 0 300px;width:300px;min-height:0;border:1px solid #638fc0;border-left:0;background:#20477b;display:flex;flex-direction:column;overflow:hidden;border-radius:0 10px 10px 0}
.mtcl-side[hidden],.mtcl-rail[hidden],.mtcl-mbtn[hidden],.mtcl-sheet[hidden]{display:none!important}
.mtcl-head{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-bottom:1px solid #638fc0}
.mtcl-head b{font-size:14px;color:#eef4fb}
.mtcl-hb{display:flex;gap:6px}
html body.mt-detail-page main.page :is(.mtcl-hb button,.mtcl-mbtn), html body :is(.mtcl-hb button,.mtcl-mbtn){border:1px solid #638fc0;background:#20477b;border-radius:8px;padding:6px 10px;font:600 12px inherit;cursor:pointer;color:#eef4fb}
html body.mt-detail-page main.page button.mtcl-add, html body button.mtcl-add{background:#ffd34d!important;border-color:#ffd34d!important;color:#20477b!important}
.mtcl-search{padding:8px 12px;border-bottom:1px solid #638fc0}
.mtcl-search input{width:100%;box-sizing:border-box;border:1px solid #5a86b8;border-radius:8px;padding:8px 10px;font:14px inherit}
.mtcl-res{max-height:240px;overflow:auto}
.mtcl-res button{display:flex;gap:8px;align-items:center;width:100%;border:0;background:none;padding:6px 2px;text-align:left;cursor:pointer}
.mtcl-res button:hover{background:#20477b}
.mtcl-res small{display:block;color:#dce9f8;font-size:11px}
html body.mt-detail-page main.page button.mtcl-ev, html body button.mtcl-ev{margin:8px 12px 0;border:0;background:#20477b;color:#ffd34d;border-radius:8px;padding:6px 8px;font:600 12px inherit;cursor:pointer;text-align:left}
.mtcl-sort{display:block;padding:8px 12px;font-size:12px;color:#dce9f8}
.mtcl-sort select{font:12px inherit;border:1px solid #638fc0;border-radius:6px;padding:3px 4px}
.mtcl-guest{margin:0 12px 6px;font-size:12px;color:#dce9f8}
.mtcl-list{flex:1 1 0;overflow-x:hidden;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.mtcl-row{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-top:1px solid #638fc0;cursor:pointer;position:relative}
.mtcl-row:hover{background:#24528c}
.mtcl-row.active{background:#20477b;box-shadow:inset 3px 0 0 #ffd34d}
.mtcl-row.loading{cursor:progress;opacity:.72}
.mtcl-row.drag{opacity:.5}
.mtcl-logo,.mtcl-row img,.mtcl-res img{width:28px;height:28px;flex:0 0 28px;border-radius:6px;object-fit:contain}
.mtcl-ini{display:inline-flex;align-items:center;justify-content:center;background:#638fc0;font:700 11px inherit;color:#eef4fb}
.mtcl-main{flex:1 1 auto;min-width:0}
.mtcl-n{font:600 13px/1.25 inherit;color:#eef4fb;overflow-wrap:anywhere}
.mtcl-m{font-size:11px;color:#dce9f8;margin:1px 0 4px}
.mtcl-q{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.mtcl-chg.up{color:#3dffaa}.mtcl-chg.dn{color:#ff939d}.mtcl-chg.nt{color:#dce9f8}
.mtcl-st{display:inline-block;margin-top:4px;font:600 11px inherit;border-radius:999px;padding:2px 8px}
.mtcl-st.on{background:rgba(22,163,74,.16);color:#3dffaa}.mtcl-st.off{background:rgba(220,38,38,.16);color:#ff939d}.mtcl-st.nd{background:#638fc0;color:#dce9f8}
.mtcl-new{display:inline-block;margin-left:6px;background:#ffd34d;color:#eef4fb;border-radius:999px;font:700 10px inherit;padding:1px 6px;vertical-align:1px}
html body.mt-detail-page main.page button.mtcl-dots, html body button.mtcl-dots{border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:#dce9f8;padding:0 2px}
.mtcl-empty{padding:12px;font-size:12px;color:#dce9f8;margin:0}
.mtcl-menu{position:absolute;z-index:2147483001;background:#20477b;border:1px solid #638fc0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);display:flex;flex-direction:column;min-width:220px;overflow:hidden}
.mtcl-menu button{border:0;background:none;text-align:left;padding:9px 12px;font:13px inherit;cursor:pointer;color:#eef4fb}
.mtcl-menu button:hover{background:#20477b}
.mtcl-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#24528c;color:#fff;padding:9px 14px;border-radius:10px;font:13px inherit;z-index:2147483002}
.mtcl-toast.err{background:#ff939d}
.mtcl-mbtn{display:block;width:100%;margin:8px 0;text-align:left}
.mtcl-sheet{position:fixed;inset:0;z-index:2147483000}
.mtcl-sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.mtcl-sheet-in{position:absolute;left:0;right:0;bottom:0;height:min(80vh,720px);max-height:80vh;overflow:hidden;background:#20477b;border-radius:16px 16px 0 0;display:flex;flex-direction:column}
.mtcl-sheet-in .mtcl-list{overflow-x:hidden;overflow-y:auto}
@media (min-width:901px){.mtcl-mbtn{display:none!important}}
@media (max-width:900px){.mtcl-rail,.mtcl-side{display:none!important}}
.mtcl-q b{color:#eef4fb;font-weight:700}
.mtcl-new{color:#20477b!important}
.mtcl-toast{background:#ffd34d;color:#20477b}
.mtcl-search input{background:#173d6d;color:#eef4fb}
.mtcl-sort select{background:#173d6d;color:#eef4fb}

/* V2341 · Chart bleibt fest stehen, Liste endet bündig und scrollt innen */
.mtcl-wrap{contain:layout}.mtcl-chartcol{overflow:hidden}
/* V2492: globale Knopf-Farbe der Community-Einbindung für die Chartliste auf Neues Design umbiegen */
.mtcl-rail,.mtcl-side,.mtcl-sheet,.mtcl-mbtn{--mt-ui-action-surface:#20477b;--mt-global-button-secondary:#20477b}

/* V2643 · Sanfter Übergang beim Wertwechsel, Chart behält feste Größe */
@view-transition{navigation:auto}
@media (min-width:901px){.mtcl-wrap{contain:layout}.mtcl-list{contain:content}}

/* V2646 · Chart und Liste behalten während Auswahl, Sortierung und Laden exakt ihre Position. */
@media (min-width:901px){
  .mtcl-wrap,.mtcl-chartcol,.mtcl-side,.mtcl-rail{min-height:0!important;max-height:100%!important}
  .mtcl-wrap{overflow:hidden!important;overflow-anchor:none;contain:size layout paint}
  .mtcl-chartcol{overflow:hidden!important;contain:size layout paint}
  .mtcl-side{overflow:hidden!important;contain:size layout paint}
  .mtcl-list{overscroll-behavior:contain;overflow-anchor:none}
}
#chartWrap{position:relative}
.mt-chart-asset-loading{position:absolute;z-index:2147482000;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 14px;border:1px solid #638fc0;border-radius:7px;background:#20477b;color:#eef4fb;font:600 13px/1.2 inherit;pointer-events:none}
.mt-chart-asset-loading{display:none!important}
/* V2749 · Listenquelle */
.mtcl-head .mtcl-src{flex:1 1 auto;min-width:0;max-width:100%;min-height:34px;padding:4px 8px;border-radius:8px;border:1px solid #2c4b6c;background:#24528c;color:#e8eef6;font-weight:700;font-size:13px}
.mtcl-head .mtcl-src optgroup,.mtcl-head .mtcl-src option{background:#24528c;color:#e8eef6}
.mtcl-empty a{color:#ffd34d}.mtcl-srcretry{margin-left:6px;min-height:30px;padding:4px 10px;border-radius:8px;border:1px solid #2c4b6c;background:#24528c;color:#e8eef6;font-weight:700;cursor:pointer}
