/* Monte seu plano */
.mp { max-width: 680px; margin: 0 auto; --mp-folga: #16a34a; --mp-limite: #d97706; --mp-trava: #dc2626; }
.mp-intro, .mp-result { text-align: center; }
.mp-intro h2 { margin: 6px 0 4px; }
.mp-legend { display: grid; gap: 6px; justify-content: center; text-align: left; margin: 14px 0; font-size: 14.5px; }
.mp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.mp-legend .folga { background: var(--mp-folga); } .mp-legend .limite { background: var(--mp-limite); } .mp-legend .trava { background: var(--mp-trava); }
.mp-bar { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; color: var(--pf-muted); margin-bottom: 12px; }
.mp-score { color: var(--brand-text); white-space: nowrap; }
.mp-fam { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--pf-soft); }
.mp-fam .e { font-size: 34px; line-height: 1; }
.mp-fam b { display: block; font-size: 17px; }
.mp-fam small { color: var(--pf-muted); }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; min-height: 44px; }
.mp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1.5px solid var(--pf-line); background: var(--pf-card); font-size: 14px; transition: transform .35s ease-in, opacity .35s; }
.mp-chip .e { font-size: 20px; line-height: 1; }
.mp-chip small { color: var(--pf-muted); font-variant-numeric: tabular-nums; }
.mp-chip.gone { transform: translateY(40px) scale(.6); opacity: .18; }
.mp-ask { margin: 10px 0 12px; }

.mp-tubes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; align-items: end; }
.mp-tube { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 2px solid var(--pf-line); border-radius: 16px; background: var(--pf-card); color: var(--pf-ink); font: inherit; cursor: pointer; min-width: 0; transition: border-color .15s, opacity .2s, transform .15s; }
.mp-tube:not(:disabled):hover { border-color: var(--brand); transform: translateY(-2px); }
.mp-tube:disabled { cursor: default; }
.mp-tube b { font-size: 14.5px; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.mp-tube small { font-size: 11.5px; color: var(--pf-muted); text-align: center; line-height: 1.2; }
.mp-tube .tankw { position: relative; display: grid; justify-items: center; width: 100%; margin: 12px 0 4px; }
.mp-tank { display: block; width: min(60px, 82%); height: auto; overflow: visible; --c: var(--mp-folga); }
.mp-tank .back { fill: var(--pf-soft); }
.mp-tank .liq { transform: translateY(calc((1 - var(--lv, 0)) * var(--hf) * 1px)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.mp-tube:not(.wet) .mp-tank .liq { opacity: 0; }
.mp-tank .liq polygon { fill: var(--c); transition: fill .2s; }
.mp-tank .liq .s0 { filter: brightness(1.18); }
.mp-tank .liq .s1 { filter: brightness(.9); }
.mp-tank .liq .s2 { filter: brightness(.7); }
.mp-tank .glassline { fill: none; stroke: var(--pf-muted); stroke-width: 2; stroke-linejoin: round; }
.mp-tank .shine { stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .35; }
.mp-tank .mark { fill: none; stroke: var(--pf-ink); stroke-width: 1.6; stroke-dasharray: 4 3; opacity: .6; }
.mp-tank .lbl { font-size: 7.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-anchor: middle; fill: var(--pf-ink); opacity: .75; }
.mp-tube .spill { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-size: 20px; opacity: 0; pointer-events: none; }
.mp-tube[data-v="limite"] .mp-tank { --c: var(--mp-limite); }
.mp-tube[data-v="trava"] .mp-tank { --c: var(--mp-trava); animation: mp-shake .35s linear 3; }
.mp-tube[data-v="trava"] .spill { opacity: 1; animation: mp-spill .7s ease-in-out infinite; }
.mp-tube.chosen { border-color: var(--brand); }
.mp-tube.chosen[data-v="folga"] { border-color: var(--mp-folga); } .mp-tube.chosen[data-v="limite"] { border-color: var(--mp-limite); } .mp-tube.chosen[data-v="trava"] { border-color: var(--mp-trava); }
.mp-tube.dim { opacity: .5; }
.mp-tube.ideal { opacity: 1; border-color: var(--mp-folga); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mp-folga) 25%, transparent); }
.mp-tube.ideal b::before { content: "✓ "; color: var(--mp-folga); }
@keyframes mp-spill { 50% { transform: translateX(-50%) translateY(-5px) scale(1.2); } }
@keyframes mp-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.mp-fb { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--pf-soft); border-left: 5px solid var(--mp-folga); }
.mp-fb.limite { border-color: var(--mp-limite); } .mp-fb.trava { border-color: var(--mp-trava); }
.mp-fb h4 { margin: 0 0 4px; font-size: 17px; }
.mp-fb p { margin: 0 0 10px; }

.mp-mine h2 { margin: 0 0 4px; }
.mp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 14px 0; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--pf-line); border-radius: 14px; background: var(--pf-card); transition: border-color .12s, background .12s; }
.mp-item.on { border-color: var(--brand); background: var(--brand-soft, var(--pf-soft)); }
.mp-item .e { font-size: 26px; line-height: 1; }
.mp-item .n { flex: 1; min-width: 0; display: grid; }
.mp-item .n b { font-size: 14.5px; line-height: 1.2; }
.mp-item .n small { font-size: 12px; color: var(--pf-muted); }
.mp-item .ctr { display: flex; align-items: center; gap: 4px; flex: none; }
.mp-item .ctr button { width: 40px; height: 38px; border: 0; border-radius: 10px; background: var(--pf-soft); color: var(--pf-ink); font-size: 20px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.mp-item .ctr button.plus { background: var(--brand); color: var(--brand-ink, #fff); }
.mp-item output { min-width: 24px; text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.mp-live { position: sticky; bottom: 8px; z-index: 4; padding: 10px 12px 12px; border-radius: 16px; background: var(--pf-card); border: 1px solid var(--pf-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); margin-bottom: 14px; }
.mp-live .mp-tube { padding: 6px 2px; border-width: 1.5px; }
.mp-live .tankw { margin-top: 8px; }
.mp-live .mp-tank { width: min(40px, 80%); }
.mp-live .mp-tank .lbl { display: none; }
.mp-live .spill { font-size: 15px; top: -14px; }
.mp-peak { margin: 0 0 6px; text-align: center; font-size: 14px; }
.mp-peak b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mp-result h2 { margin: 4px 0 8px; }
.mp-result .mp-tubes { margin: 16px 0; }
.mp-tip { padding: 10px 14px; border-radius: 12px; background: var(--pf-soft); text-align: left; }
@media (max-width: 480px) {
  .mp-tubes { gap: 6px; }
  .mp-tube b { font-size: 12.5px; }
  .mp-tube small { font-size: 10.5px; }
  .mp-round.pf-card-box, .mp-mine.pf-card-box { padding-left: 12px; padding-right: 12px; }
  .mp-live .mp-tube small { display: none; }
}
.mp-round { scroll-margin-top: 84px; }
