.mg-region { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; font-weight: 600; }
.mg-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.mg-pair { display: flex; gap: 8px; align-items: center; }
.mg-pair > input { flex: 1 1 90px; min-width: 0; }
.mg-pct { display: flex; align-items: center; gap: 4px; flex: 0 0 92px; }
.mg-pct input { min-width: 0; }
.mg-pct i { font-style: normal; color: var(--muted); font-weight: 700; }
#mg-terms { flex: none; }
#mg-terms button { padding: 6px 9px; }
.mg-check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 4px 0 10px; }
.mg-extra summary { cursor: pointer; }
.mg-small { font-size: 13.5px; margin: 4px 0 0; }
.mg-res { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mg-big span { color: var(--muted); font-weight: 700; font-size: 14px; display: block; }
.mg-big b { font-size: clamp(32px, 9vw, 46px); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; background: var(--line); }
.mg-bar i { display: block; height: 100%; }
.mg-legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.mg-legend li span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.mg-res .stat { background: var(--card); }
.mg-res .stat b { font-size: clamp(17px, 4.6vw, 22px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mg-save { margin: 12px 0 0; background: color-mix(in srgb, var(--ok) 10%, var(--card)); border: 1px solid var(--ok); border-radius: 12px; padding: 10px 12px; }
.mg-sched { margin-top: 18px; }
.mg-sched-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mg-sched-head h3 { margin: 0; font-size: 18px; }
.mg-tw { overflow: auto; max-height: 460px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; }
.mg-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.mg-table th, .mg-table td { padding: 7px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mg-table th:first-child, .mg-table td:first-child { text-align: left; }
.mg-table thead th { position: sticky; top: 0; background: var(--bg); }
@media (max-width: 560px) { .mg-table { font-size: 12.5px; } .mg-table th, .mg-table td { padding: 6px; } }
#mg-start { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; min-height: 44px; width: 100%; }
