/* Auto Use Soul Power modal (js/autoUseSoulPower/ui.js). Talent is purple, Body is red. */
.ausp {
    --ausp-talent: var(--ui-purple, #9b59b6);
    --ausp-body: var(--ui-red, #e74c3c);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3, 12px);
}
.ausp-intro { margin: 0; font-size: 0.85em; line-height: 1.45; color: var(--sect-text-dim, #9ca3af); }

.ausp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2, 8px);
}
.ausp-search {
    flex: 1 1 180px;
    min-width: 0;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 0.9em;
    color: var(--sect-text, #fff);
    background: var(--sect-surface-1, rgba(0, 0, 0, 0.4));
    border: 1px solid var(--sect-border-strong, #444);
    border-radius: var(--r-sm, 6px);
}
.ausp-search:focus { outline: none; border-color: var(--ui-teal, #4ecdc4); }
.ausp-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.ausp-filter {
    padding: 5px 11px;
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--sect-text-dim, #9ca3af);
    background: var(--sect-surface-1, rgba(0, 0, 0, 0.3));
    border: 1px solid var(--sect-border, #333);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ausp-filter:hover { color: var(--sect-text, #fff); border-color: var(--ui-teal, #4ecdc4); }
.ausp-filter--on {
    color: #04201d;
    background: var(--ui-teal, #4ecdc4);
    border-color: var(--ui-teal, #4ecdc4);
}
.ausp-filter__n { opacity: 0.7; margin-left: 4px; font-weight: 400; }

.ausp-legend { display: flex; align-items: center; gap: var(--sp-3, 12px); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--sect-text-dim, #9ca3af); }
.ausp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.ausp-legend .t i { background: var(--ausp-talent); }
.ausp-legend .b i { background: var(--ausp-body); }

.ausp-list { max-height: 56vh; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: var(--sp-3, 12px); }
.ausp-group__title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ui-gold, #ffd700);
}
.ausp-group__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

.ausp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name vals" "slider quick";
    align-items: center;
    gap: 4px 10px;
    padding: 8px 10px;
    background: var(--sect-surface-2, rgba(0, 0, 0, 0.25));
    border: 1px solid var(--sect-border, #333);
    border-radius: var(--r-md, 8px);
}
.ausp-row--custom { border-color: rgba(78, 205, 196, 0.35); }
.ausp-row[hidden] { display: none; }
.ausp-row__name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88em; font-weight: 700; color: var(--sect-text, #fff); }
.ausp-row__vals { grid-area: vals; font-size: 0.8em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ausp-row__vals .t { color: var(--ausp-talent); }
.ausp-row__vals .b { color: var(--ausp-body); }
.ausp-row__vals .sep { color: var(--sect-text-dim, #9ca3af); font-weight: 400; margin: 0 3px; }

.ausp-slider {
    grid-area: slider;
    --t: 50%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    margin: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--ausp-talent) 0 var(--t), var(--ausp-body) var(--t) 100%);
}
.ausp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.ausp-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 0, 0, 0.55); }

.ausp-quick { grid-area: quick; display: flex; gap: 3px; }
.ausp-quick button {
    min-width: 26px;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--sect-text-dim, #9ca3af);
    background: var(--sect-surface-1, rgba(0, 0, 0, 0.4));
    border: 1px solid var(--sect-border-strong, #444);
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.ausp-quick button:hover { color: var(--sect-text, #fff); border-color: var(--ui-teal, #4ecdc4); }
.ausp-quick .t:hover { border-color: var(--ausp-talent); color: var(--ausp-talent); }
.ausp-quick .b:hover { border-color: var(--ausp-body); color: var(--ausp-body); }
.ausp-quick .reset { visibility: hidden; }
.ausp-row--custom .ausp-quick .reset { visibility: visible; color: var(--ui-teal, #4ecdc4); }

.ausp-empty { padding: 18px; text-align: center; font-size: 0.9em; color: var(--sect-text-dim, #9ca3af); }
.ausp-max {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3, 12px);
    padding: 20px 16px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(78, 205, 196, 0.14), transparent 70%), var(--sect-surface-2, rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(78, 205, 196, 0.35);
    border-radius: var(--r-md, 8px);
}
.ausp-max__badge {
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #04201d;
    background: var(--ui-teal, #4ecdc4);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(78, 205, 196, 0.45);
}
.ausp-max__text { margin: 0; max-width: 38ch; font-size: 0.9em; line-height: 1.45; color: var(--sect-text, #fff); }
.ausp-max__bars { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ausp-max__bar { display: grid; grid-template-columns: 56px 1fr 44px; align-items: center; gap: 10px; font-size: 0.85em; font-weight: 700; }
.ausp-max__bar.t { color: var(--ausp-talent); }
.ausp-max__bar.b { color: var(--ausp-body); }
.ausp-max__bar span { text-align: left; }
.ausp-max__bar b { text-align: right; font-variant-numeric: tabular-nums; }
.ausp-max__track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ausp-max__track i { display: block; width: 100%; height: 100%; border-radius: inherit; background: currentColor; }
.ausp-max__note { margin: 0; font-size: 0.78em; color: var(--sect-text-dim, #9ca3af); }

@media (max-width: 720px) {
    .ausp-group__grid { grid-template-columns: 1fr; }
}
