/* RSustain Matrix Premium UI */
.rsmx-shell { --green:#1a7a3f; --green-2:#0f4625; --bg:#0b1220; --fg:#e8f3ea; --muted:#9db3a1;
  background: linear-gradient(180deg,#0f1b2b 0%, #0b1220 100%);
  color: var(--fg);
  padding: 10px 10px 24px;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.rsmx-header { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; background: rgba(255,255,255,0.04); border-radius: 16px; backdrop-filter: blur(6px); border:1px solid rgba(255,255,255,0.08); }
.rsmx-brand { display:flex; gap:12px; align-items:center; }
.rsmx-logo { width:34px; height:34px; border-radius:12px; background: radial-gradient(circle at 25% 25%, var(--green), var(--green-2)); box-shadow: inset 0 0 12px rgba(0,0,0,.25); }
.rsmx-title { font-weight:800; letter-spacing:.2px; }
.rsmx-sub { font-size:.72rem; color: var(--muted); margin-top: -2px; }
.rsmx-actions { display:flex; gap:8px; }
.rsmx-grid { display:grid; grid-template-columns: 1.25fr .75fr; gap:16px; margin-top:14px; }
.rsmx-pane, .rsmx-aside { display:flex; flex-direction:column; gap:14px; }
.rsmx-card { background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08);
  border-radius:16px; padding:14px; backdrop-filter: blur(8px); }
.rsmx-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 6px; }
.rsmx-badge { font-size:.6rem; padding:2px 8px; border-radius:999px; background: rgba(26,122,63,0.18); color:#a6e9be; text-transform:uppercase; letter-spacing:.08em; }
.rsmx-note { color: var(--muted); font-size:.78rem; margin: 6px 0 10px; }
.rsmx-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.rsmx-field { flex:1 1 200px; display:flex; flex-direction:column; gap:4px; }
.rsmx-field label { font-size:.7rem; color:#bfe6c8; }
.rsmx-field select { background: rgba(0,0,0,.25); color:#eaf6ee; border:1px solid rgba(255,255,255,0.12); border-radius:10px; padding:8px; font-size:.82rem; }
.rsmx-btn { background: linear-gradient(150deg, var(--green), var(--green-2)); color:white; border:none; border-radius: 12px; padding:8px 12px; font-weight:600; cursor:pointer; box-shadow: 0 8px 20px rgba(26,122,63,.35); }
.rsmx-btn.outline { background: transparent; color: #a9e6b8; border:1px solid rgba(166, 233, 184, .35); box-shadow:none; }
.rsmx-toggle { display:flex; gap:8px; align-items:center; color:#b5e1bf; }
.rsmx-questions { display:flex; flex-direction:column; gap:10px; max-height: 560px; overflow:auto; }
.rsmx-q { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:12px; border-radius:12px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.09); }
.rsmx-q-title { font-size:.88rem; font-weight:600; }
.rsmx-q-meta { display:flex; gap:6px; flex-wrap:wrap; margin-top:4px; }
.rsmx-tag { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); color:#d4f2dc; border-radius:999px; padding:2px 8px; font-size:.64rem; }
.rsmx-scale { display:flex; gap:6px; }
.rsmx-scale button { width:28px; height:28px; border-radius:999px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,.25); color:#d9f6e1; cursor:pointer; }
.rsmx-scale button.active { background: linear-gradient(150deg, var(--green), var(--green-2)); border-color: transparent; }
.rsmx-pager { display:flex; justify-content:center; gap:10px; align-items:center; margin-top:10px; }
.rsmx-pageinfo { font-size:.8rem; color:#cfe9d6; }
.rsmx-score { background: linear-gradient(160deg, var(--green), var(--green-2)); border-radius:18px; padding:16px; color:white; box-shadow: 0 20px 40px rgba(26,122,63,.25); }
.rsmx-score-head { font-size:.78rem; opacity:.9; }
.rsmx-score-val { font-size:2.4rem; font-weight:800; line-height:1; }
.rsmx-score-text { font-size:.74rem; opacity:.95; }
.rsmx-meter { height:8px; background: rgba(255,255,255,.25); border-radius:999px; overflow:hidden; margin:8px 0 4px; }
.rsmx-meter > div { height:100%; width:0; background: #fff; opacity:.9; transition: width .3s ease; }
.rsmx-pills { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.pill { background: rgba(255,255,255,.22); padding:2px 10px; border-radius:999px; font-size:.66rem; }
.pill.pro { background: rgba(255,255,255,.35); color:#0b1220; font-weight:700; }
.rsmx-mini { margin:0 0 6px; font-size:.84rem; }
.rsmx-bars { display:flex; flex-direction:column; gap:6px; }
.rsmx-bar { display:grid; grid-template-columns: 56px 1fr 38px; gap:8px; align-items:center; font-size:.72rem; }
.rsmx-bar > div { height:8px; background: rgba(255,255,255,.18); border-radius:999px; overflow:hidden; }
.rsmx-bar i { display:block; height:100%; background: linear-gradient(90deg,#a6f3c0,#e8fff0); }
.rsmx-list { margin: 6px 0 10px 18px; color:#d9f6e1; font-size:.8rem; }
.rsmx-modal { position: fixed; inset:0; background: rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:9999; }
.rsmx-modal-card { background: #0f1b2b; border:1px solid rgba(255,255,255,.12); color:#eaf6ee; padding:16px; border-radius:14px; width: min(560px, 92vw); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
@media (max-width: 980px) {
  .rsmx-grid { grid-template-columns: 1fr; }
  .rsmx-questions { max-height: none; }
}
