/* KRYS Express 5 – modularer Stylesheet-Einstieg */
@import url('css/legacy.css');
@import url('css/base.css');
@import url('css/components.css');
@import url('css/navigation.css');
@import url('css/tables.css');
@import url('css/transfer.css');
@import url('css/responsive.css');

/* Mehrsprachigkeit · v5.2 */
.language-picker{display:inline-flex;align-items:center;margin:0;color:var(--muted)}
.language-picker select{width:auto;min-width:82px;margin:0;padding:7px 30px 7px 10px;border-color:var(--line);background:#090c0e;color:var(--text);font-weight:700;letter-spacing:.04em}
.language-picker.compact select{min-height:36px;font-size:.78rem}
.account-public-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
@media(max-width:700px){.account-public-actions{width:100%;justify-content:space-between}.language-picker select{min-width:92px}}

/* Sprachumschalter als sicheres POST-Formular */
form.language-picker{display:inline-flex;align-items:center;margin:0}
form.language-picker label{display:block;margin:0}
form.language-picker select{width:auto;min-width:150px;margin:0;padding:8px 30px 8px 10px}
.language-picker input[type="hidden"]{display:none}
@media(max-width:600px){form.language-picker select{min-width:130px}}

@import url("css/hive.css");

/* v5.4.1 · Mein Profil */
.self-profile-page .profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:end}
.self-profile-page .profile-form-grid .profile-note{grid-column:1/-1}
.self-profile-page textarea{width:100%;margin-top:7px;border:1px solid var(--line);padding:11px 12px;background:#090c0e;color:var(--text);resize:vertical}
.self-profile-chart-card{margin:20px 0}
.profile-chart-controls{display:flex;gap:8px;flex-wrap:wrap}
.self-power-chart{width:100%;min-height:300px;overflow-x:auto}
.self-power-chart svg{display:block;width:100%;min-width:780px;height:auto}
.profile-chart-grid{stroke:rgba(255,255,255,.09);stroke-width:1}
.profile-chart-label{fill:var(--muted);font:12px "Exo 2",sans-serif}
@media(max-width:700px){.self-profile-page .profile-form-grid{grid-template-columns:1fr}.self-profile-page .profile-form-grid .profile-note{grid-column:auto}.self-profile-chart-card .section-head{align-items:flex-start;flex-direction:column}.profile-chart-controls{width:100%}.profile-chart-controls .button{flex:1}}

/* v5.4.3 – Profil: kombinierter KK-Verlauf und Wochenwerte */
.profile-chart-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 12px;color:var(--muted);font-size:.82rem}
.profile-chart-legend span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.profile-chart-legend i{display:inline-block;width:20px;height:4px;box-shadow:0 0 8px rgba(255,255,255,.08)}
.self-profile-weekly{margin:20px 0}
.self-profile-week-controls{margin:0 0 18px}
.self-profile-weekly .weekly-self-grid{margin-top:0}
@media(max-width:700px){.profile-chart-legend{gap:8px 12px}.profile-chart-legend span{font-size:.75rem}}

/* v5.4.4 – getrennte Profil-Diagramme */
.self-profile-chart-stack{display:grid;gap:18px}
.self-profile-chart-block{padding:16px;border:1px solid var(--line);background:rgba(255,255,255,.018)}
.self-profile-chart-block h3{margin:0 0 12px;font-size:1rem}

/* v5.5.2 – manuelle Zuordnung beim Hive-CSV-Import */
.hive-import-preview-table select{min-width:240px;margin:0}
.hive-import-preview-table td{vertical-align:middle}
.hive-import-confirm-actions{display:flex;align-items:end;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-top:18px}
.hive-import-confirm-actions label{min-width:min(360px,100%)}
@media(max-width:700px){.hive-import-preview-table select{min-width:210px}.hive-import-confirm-actions{align-items:stretch}.hive-import-confirm-actions label,.hive-import-confirm-actions .button{width:100%}}


/* 5.8.7 – manuelle VS-/Spenden-Ränge */
.weekly-ranking-cell{min-width:96px}.weekly-rank-input{width:100%;min-width:78px;padding:.58rem .62rem;border:1px solid var(--line,#30363d);background:#080d10;color:inherit;font:inherit;font-variant-numeric:tabular-nums;text-align:center}


/* 5.8.9 – kompakte Karriere- und API-Kill-Anzeige in der Mitgliederliste */
.member-career-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.28rem;min-width:120px}
.member-career-stack small{display:block;margin:0;color:var(--muted);font-size:.72rem;line-height:1.1}
.member-career-stack .transfer-career-badge{max-width:100%;white-space:nowrap}


/* Vision-AI-Import in den Wochenwerten */
.ranking-import-modal[hidden]{display:none!important}.ranking-import-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px}.ranking-import-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(3px)}.ranking-import-dialog{position:relative;width:min(1500px,96vw);max-height:92vh;overflow:auto;background:#111619;border:1px solid #343c42;padding:22px;box-shadow:0 25px 80px rgba(0,0,0,.65)}.ranking-import-header,.ranking-import-actions,.ranking-import-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.ranking-import-header h2{margin:.2rem 0 0}.ranking-import-fields{display:grid;grid-template-columns:1.2fr .55fr .55fr 2fr;gap:14px;margin:18px 0}.ranking-import-fields label{display:grid;gap:7px;font-weight:700}.ranking-import-fields input,.ranking-import-fields select{width:100%}.ranking-import-actions{justify-content:flex-start;flex-wrap:wrap}.ranking-import-actions progress{width:min(420px,100%)}.ranking-import-summary{padding:14px 0}.ranking-import-table-wrap{max-height:48vh}.ranking-import-table-wrap table{width:100%}.ranking-import-table-wrap input,.ranking-import-table-wrap select{width:100%;min-width:110px}.ranking-import-footer{justify-content:flex-end;padding-top:16px}.modal-open{overflow:hidden}@media(max-width:900px){.ranking-import-fields{grid-template-columns:1fr 1fr}.ranking-import-files{grid-column:1/-1}}@media(max-width:560px){.ranking-import-modal{padding:8px}.ranking-import-dialog{padding:14px}.ranking-import-fields{grid-template-columns:1fr}.ranking-import-files{grid-column:auto}}

.ranking-import-table-wrap tr.ranking-import-unassigned td{background:rgba(202,45,35,.12);border-top-color:rgba(255,82,72,.55);border-bottom-color:rgba(255,82,72,.55)}.ranking-import-table-wrap tr.ranking-import-unassigned select{border-color:#d6453a;box-shadow:0 0 0 1px rgba(214,69,58,.25)}.ranking-import-warning{color:#ff7066}


/* 5.9.8 – Verfeinerter Durchschnittsvergleich in der Mitgliederverwaltung */
.member-average-row th{position:sticky;top:var(--member-table-head-height,42px);z-index:3;padding:.55rem .7rem;background:#11181c;border-bottom:2px solid var(--line);font-size:.76rem;white-space:nowrap}
.member-average-row th:first-child{text-align:left}.member-average-label{display:block;color:var(--text);font-weight:800}.member-average-row small{display:block;margin-top:.12rem;color:var(--muted);font-weight:500}.member-average-value{text-align:center;color:#dce4e8;font-variant-numeric:tabular-nums}.member-average-legend{display:flex;align-items:center;justify-content:flex-end;gap:.42rem;color:var(--muted);font-weight:600}.member-average-legend i{display:inline-block;width:.72rem;height:.72rem;border:1px solid rgba(255,255,255,.18);border-radius:2px}.member-average-legend .metric-above{background:#8ee6a4}.member-average-legend .metric-average{background:#ffe08a}.member-average-legend .metric-below{background:#ff9ca6}.member-average-metric{font-weight:800;font-variant-numeric:tabular-nums;text-align:center}.member-average-metric span{display:inline-block;min-width:4rem}.member-average-metric.metric-above span{color:#8ee6a4}.member-average-metric.metric-average span{color:#ffe08a}.member-average-metric.metric-below span{color:#ff9ca6}.member-average-metric.metric-neutral span{color:var(--muted)}
@media(max-width:900px){.member-average-legend{justify-content:flex-start}.member-average-row th{position:static}}


/* 6.0.0 · Systemprüfung und Foundation */
.system-summary-grid .system-ok strong{color:#2bb673}.system-summary-grid .system-warning strong{color:#e6b84a}.system-summary-grid .system-error strong{color:#e05a67}
.system-check-list{display:grid;gap:.65rem}.system-check-item{display:grid;grid-template-columns:2rem minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.8rem .95rem;border:1px solid var(--line,#313640);border-radius:12px;background:rgba(255,255,255,.025)}
.system-check-item>div{min-width:0}.system-check-item strong{display:block}.system-check-item small{display:block;margin-top:.18rem;color:var(--muted,#9aa1ad);overflow-wrap:anywhere}.system-check-icon{display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:999px;font-weight:900}.system-check-item.is-ok .system-check-icon{background:rgba(43,182,115,.16);color:#55d798}.system-check-item.is-warning .system-check-icon{background:rgba(230,184,74,.16);color:#f1c85e}.system-check-item.is-error .system-check-icon{background:rgba(224,90,103,.16);color:#f17884}.status-chip.warning{border-color:rgba(230,184,74,.45);color:#f1c85e;background:rgba(230,184,74,.1)}
@media(max-width:700px){.system-check-item{grid-template-columns:2rem minmax(0,1fr)}.system-check-item>.status-chip{grid-column:2;justify-self:start}}


/* Mitgliederstatus 6.0.1 */
.member-status-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.28rem}
.member-substatus{font-weight:700;color:var(--text,#e6e8eb);line-height:1.2}


/* Mitgliederhierarchie und Eigenschaften 6.0.2 */
.member-hierarchy-badge{display:inline-flex;align-items:center;min-height:1.45rem;padding:.16rem .48rem;border:1px solid transparent;border-radius:999px;font-size:.72rem;font-weight:800;line-height:1.1;white-space:nowrap}
.member-hierarchy-badge.hierarchy-leadership{color:#ff8b94;background:rgba(214,45,58,.16);border-color:rgba(255,91,105,.45)}
.member-hierarchy-badge.hierarchy-top-performer{color:#ffbf76;background:rgba(224,124,34,.16);border-color:rgba(255,161,68,.45)}
.member-hierarchy-badge.hierarchy-core-group{color:#ffe27c;background:rgba(213,170,33,.16);border-color:rgba(255,216,78,.45)}
.member-hierarchy-badge.hierarchy-active{color:#8ee6a4;background:rgba(43,182,115,.16);border-color:rgba(76,211,132,.45)}
.member-hierarchy-badge.hierarchy-casual{color:#8bc9ff;background:rgba(47,132,210,.16);border-color:rgba(84,165,238,.45)}
.member-hierarchy-badge.hierarchy-follower{color:#c5cad1;background:rgba(148,157,168,.14);border-color:rgba(180,188,198,.4)}
.member-hierarchy-badge.hierarchy-other{color:#a7adb5;background:rgba(85,91,100,.2);border-color:rgba(130,139,150,.38)}
.member-rating-f2p{color:#8ee6a4}


/* Buddy-System 6.0.3 */
#editPrimaryField[hidden],#editBuddyField[hidden]{display:none!important}
.buddy-profile{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(280px,1.3fr);gap:18px}
.buddy-profile>div{padding:15px;border:1px solid var(--line);background:rgba(255,255,255,.018)}
.buddy-profile small{display:block;margin-bottom:.45rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.buddy-profile strong{font-size:1.05rem}.buddy-profile ul{display:flex;flex-wrap:wrap;gap:8px;margin:.5rem 0 0;padding:0;list-style:none}
.buddy-profile li a{display:inline-flex;padding:.35rem .62rem;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);font-weight:700}
@media(max-width:700px){.buddy-profile{grid-template-columns:1fr}}

/* Buddy table/filter 6.0.4 */
.member-buddy-link{font-weight:700;text-decoration:none}.member-buddy-link:hover{text-decoration:underline}
