/* Mi Ruta · Fase 3: dinero, música, inglés y desafío trimestral. */
.md-actions{display:flex;gap:8px;flex-wrap:wrap}
.md-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.md-jars{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.md-jar{background:var(--paper);border:1px solid var(--line);border-top:5px solid var(--jar);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}
.md-jar h3{font-size:15px}.md-jar small{font-size:12px;color:var(--muted);line-height:1.4}
.md-jar-icon{font-size:26px;line-height:1}
.md-big{font-size:28px;font-weight:800;color:var(--green);letter-spacing:-.6px;line-height:1.1}
.md-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.md-list>li{display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid #eef1e8;padding-bottom:8px}
.md-list>li:last-child{border-bottom:0}
.md-list>li>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.md-list small{font-size:12px;color:var(--muted)}
.md-goal .progress-track{margin-top:4px}
.md-move-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef2e6;font-weight:800;flex-shrink:0}
.md-gasto .md-move-icon{background:#fbeee3;color:#9a4f12}.md-interes .md-move-icon{background:#e3f0f5}
.md-amount{font-weight:800;white-space:nowrap}.md-gasto .md-amount{color:#9a4f12}.md-ingreso .md-amount,.md-interes .md-amount{color:var(--green)}
.md-note{background:#eef6f9;border-radius:10px;padding:8px 12px;font-size:14px}
.md-chart{width:100%;height:auto;font-size:11px;fill:var(--muted)}
.md-chart path{fill:none;stroke-width:2.5}
.md-chart .md-grid{stroke:#e6eadf;stroke-width:1}
.md-chart .md-compound{stroke:#2f6f8f}.md-chart .md-simple{stroke:#c9822b;stroke-dasharray:6 5}.md-chart .md-real{stroke:#8a9a8c;stroke-width:1.5}
.md-legend{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.md-legend i{display:inline-block;width:22px;height:0;border-top:3px solid;margin-right:8px;vertical-align:middle}
.md-legend i.md-compound{border-color:#2f6f8f}.md-legend i.md-simple{border-color:#c9822b;border-top-style:dashed}.md-legend i.md-real{border-color:#8a9a8c;border-top-width:2px}
.md-split{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
.md-split p,.md-split button{grid-column:1/-1}
.md-bar{height:10px;border-radius:10px;background:#f3d9c2;overflow:hidden}.md-bar span{display:block;height:100%;background:#3b7d5a}
.md-bar-goal{background:#e2e7d9}.md-bar-goal span{background:#789752}
.md-week{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.md-week li{display:grid;grid-template-columns:150px 1fr;gap:4px 12px;align-items:center}
.md-week li small{grid-column:2;font-size:12px;color:var(--muted)}
.md-skill{align-items:center}
.md-ladder{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.md-ladder span{font-size:12px;font-weight:700;padding:3px 8px;border-radius:12px;border:1px solid #d9e0d0;color:var(--muted)}
.md-ladder span.on{background:#e3f0cf;border-color:#9fc27a;color:#2b5c22}
.md-spark{width:120px;height:28px;flex-shrink:0}.md-spark polyline{fill:none;stroke:#2f6f8f;stroke-width:2}
.md-dialog{max-height:80vh;overflow-y:auto}
.md-reader form{display:flex;flex-direction:column;gap:8px;width:100%}
.md-reader{display:block!important}
.md-rubric{display:flex;flex-direction:column;gap:8px}
.md-quarter-item form{display:flex;flex-direction:column;gap:6px;width:100%}
.md-quarter-item{display:block!important}
.md-quarter-item.done .rb-check-label{text-decoration:line-through;text-decoration-color:#9bb889}
.md-inline{display:flex;gap:8px}
.md-inline input{flex:1;min-width:0;min-height:42px;border-radius:10px;border:1px solid #d7dece;padding:6px 10px;font-size:14px}
@media(max-width:680px){
  .rb-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .rb-tabs::-webkit-scrollbar{display:none}
  .rb-tabs button{flex:0 0 auto}
  .md-week li{grid-template-columns:1fr}.md-week li small{grid-column:1}
  .md-split{grid-template-columns:1fr}
  .md-big{font-size:24px}
}
