.macrc-wrap{max-width:820px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#1a1a1a}
.macrc-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.macrc-icon{font-size:34px;line-height:1}
.macrc-title{font-size:22px!important;font-weight:600!important;margin:0 0 3px!important;padding:0!important;border:none!important;color:#1a1a1a!important}
.macrc-sub{font-size:13px;color:#666;margin:0}
.macrc-grid{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
@media(max-width:680px){.macrc-grid{grid-template-columns:1fr}}
.macrc-inputs-col{background:#fafafa;border:1px solid #e8e8e8;border-radius:12px;padding:16px}
.macrc-section-lbl{font-size:11px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px}
.macrc-unit-toggle,.macrc-sex-toggle{display:flex;border:1px solid #d0d0d0;border-radius:8px;overflow:hidden}
.macrc-ubtn{flex:1;padding:8px;font-size:13px;font-weight:500;border:none;border-right:1px solid #d0d0d0;background:#fff;color:#555;cursor:pointer;transition:background .13s}
.macrc-ubtn:last-child{border-right:none}
.macrc-ubtn.act{background:#d1fae5;color:#065F46;font-weight:600}
.macrc-ubtn:hover:not(.act){background:#f0fdf4}
.macrc-group{margin-bottom:10px}
.macrc-lbl{display:block;font-size:13px;font-weight:500;color:#555;margin-bottom:4px}
.macrc-iw{position:relative}
.macrc-iw input{width:100%;box-sizing:border-box;padding:8px 36px 8px 12px;border:1px solid #d0d0d0;border-radius:8px;font-size:14px;color:#1a1a1a;background:#fff;outline:none;transition:border-color .15s;-moz-appearance:textfield}
.macrc-iw input::-webkit-inner-spin-button,.macrc-iw input::-webkit-outer-spin-button{-webkit-appearance:none}
.macrc-iw input:focus{border-color:#10B981;box-shadow:0 0 0 3px rgba(16,185,129,.1)}
.macrc-suf{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:11px;color:#999;pointer-events:none}
.macrc-select{width:100%;box-sizing:border-box;padding:8px 12px;border:1px solid #d0d0d0;border-radius:8px;font-size:13px;color:#1a1a1a;background:#fff;outline:none;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;font-family:inherit}
.macrc-select:focus{border-color:#10B981}
.macrc-custom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
/* Results */
.macrc-results-col{animation:macrc-in .22s ease}
@keyframes macrc-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.macrc-tdee-card{background:linear-gradient(135deg,#10B981,#059669);border-radius:12px;padding:16px 20px;color:#fff;margin-bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.macrc-tdee-item{text-align:center}
.macrc-tdee-val{font-size:28px;font-weight:800;font-family:monospace}
.macrc-tdee-lbl{font-size:12px;opacity:.8;margin-top:2px}
/* Macro bars */
.macrc-macro-card{background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:16px 18px;margin-bottom:14px}
.macrc-macro-title{font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:12px}
.macrc-macro-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.macrc-macro-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}
.macrc-macro-name{font-size:13px;font-weight:600;color:#555;width:60px;flex-shrink:0}
.macrc-macro-track{flex:1;height:10px;background:#f3f4f6;border-radius:5px;overflow:hidden}
.macrc-macro-fill{height:100%;border-radius:5px;transition:width .5s ease}
.macrc-macro-grams{font-size:14px;font-weight:700;font-family:monospace;color:#1a1a1a;white-space:nowrap}
.macrc-macro-cal{font-size:11px;color:#888;white-space:nowrap}
/* Donut */
.macrc-donut-row{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.macrc-donut-legend{flex:1}
.macrc-legend-item{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}
.macrc-legend-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.macrc-legend-txt{color:#555;flex:1}
.macrc-legend-pct{font-weight:700;color:#1a1a1a}
/* Per meal */
.macrc-meal-card{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:14px 16px;margin-bottom:14px}
.macrc-meal-title{font-size:13px;font-weight:700;color:#065F46;margin-bottom:10px}
.macrc-meal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
@media(max-width:400px){.macrc-meal-grid{grid-template-columns:repeat(2,1fr)}}
.macrc-meal-item{text-align:center;background:#fff;border-radius:8px;padding:8px}
.macrc-meal-val{font-size:17px;font-weight:700;font-family:monospace;color:#065F46}
.macrc-meal-lbl{font-size:11px;color:#888;margin-top:1px}
/* Per kg */
.macrc-perkg-card{background:#fafafa;border:1px solid #e8e8e8;border-radius:10px;padding:12px 16px;margin-bottom:4px;font-size:13px;color:#555}
.macrc-disclaimer{font-size:11px;color:#bbb;text-align:center;margin-top:10px}
