/* Rental Yield Calculator — rental-yield.css v2.1 */
.ry-wrap *,.ry-wrap *::before,.ry-wrap *::after{box-sizing:border-box;margin:0;padding:0}
.ry-wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#1e293b;max-width:960px;margin:0 auto;background:#fff;border-radius:16px;border:1px solid #e2e8f0;overflow:hidden}
.ry-header{display:flex;align-items:center;gap:14px;padding:20px 24px;background:#14532d}
.ry-header-icon{width:44px;height:44px;background:rgba(255,255,255,.15);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#86efac;flex-shrink:0}
.ry-title{font-size:19px;font-weight:700;color:#fff;margin-bottom:3px}
.ry-subtitle{font-size:12.5px;color:#86efac}
.ry-body{display:flex;flex-direction:column}
@media(min-width:720px){.ry-body{flex-direction:row;align-items:flex-start}.ry-form{width:52%;border-right:1px solid #e2e8f0}.ry-results{width:48%;position:sticky;top:0;max-height:100vh;overflow-y:auto}}
.ry-form{padding:20px;display:flex;flex-direction:column;gap:14px}
.ry-field{display:flex;flex-direction:column;gap:6px}
.ry-section-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;padding-bottom:4px;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;gap:8px;margin-top:4px}
.ry-section-tag{font-size:9.5px;font-weight:600;background:#dcfce7;color:#15803d;padding:2px 7px;border-radius:20px;text-transform:none;letter-spacing:0}
.ry-label{font-size:13px;font-weight:600;color:#334155}
.ry-hint{font-size:11.5px;color:#94a3b8;line-height:1.4}
.ry-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:480px){.ry-row-2{grid-template-columns:1fr}}

/* Label row with badge/toggle on right */
.ry-label-row-space{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}

/* Management header — always flex, never breaks */
.ry-mgmt-header{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%}
.ry-mgmt-header .ry-label{flex:1;min-width:0;margin:0}

/* Mini toggle */
.ry-mini-toggle{display:flex;border:1.5px solid #e2e8f0;border-radius:8px;overflow:hidden;flex-shrink:0}
.ry-mini-btn{padding:7px 13px;border:none;background:#f8fafc;font-size:12.5px;font-weight:600;color:#64748b;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s;line-height:1}
.ry-mini-btn:not(:last-child){border-right:1px solid #e2e8f0}
.ry-mini-btn.active{background:#14532d;color:#fff}
.ry-mini-btn:hover:not(.active){background:#f0fdf4;color:#14532d}

/* Auto badge */
.ry-auto-badge{font-size:10.5px;font-weight:600;background:#dcfce7;color:#15803d;padding:2px 8px;border-radius:20px;flex-shrink:0}

.ry-btn-group{display:grid;gap:7px}
.ry-btn-4{grid-template-columns:repeat(4,1fr)}
.ry-choice{padding:9px 8px;border:1.5px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:13px;font-weight:600;color:#475569;cursor:pointer;transition:all .15s;text-align:center}
.ry-choice:hover{border-color:#16a34a;color:#16a34a}
.ry-choice.active{background:#14532d;border-color:#14532d;color:#fff}
.ry-prefix-wrap{display:flex;align-items:center;border:1.5px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#f8fafc;transition:border-color .18s}
.ry-prefix-wrap:focus-within{border-color:#16a34a;background:#fff}
.ry-prefix{padding:0 11px;font-size:13px;font-weight:600;color:#64748b;background:#f1f5f9;height:44px;display:flex;align-items:center;border-right:1px solid #e2e8f0;flex-shrink:0}
.ry-input{flex:1;border:none;background:transparent;padding:0 12px;height:44px;font-size:14px;color:#1e293b;outline:none;-moz-appearance:textfield;min-width:0}
.ry-input::-webkit-outer-spin-button,.ry-input::-webkit-inner-spin-button{-webkit-appearance:none}
.ry-slider-wrap{display:flex;align-items:center;gap:12px}
.ry-slider{flex:1;-webkit-appearance:none;height:4px;background:#e2e8f0;border-radius:4px;outline:none}
.ry-slider::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#16a34a;cursor:pointer;border:2px solid #fff;box-shadow:0 0 0 2px #16a34a}
.ry-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#16a34a;cursor:pointer;border:2px solid #fff}
.ry-slider-val{font-size:15px;font-weight:700;color:#15803d;min-width:44px;text-align:right}
.ry-disclaimer{display:flex;align-items:flex-start;gap:8px;background:#fefce8;border:1px solid #fde047;border-radius:9px;padding:10px 14px;font-size:12px;color:#854d0e;line-height:1.5}
.ry-disclaimer svg{flex-shrink:0;margin-top:1px;color:#ca8a04}

/* Results */
.ry-results{background:#f0fdf4;padding:20px}
.ry-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;gap:14px;color:#94a3b8;text-align:center}
.ry-placeholder p{font-size:13.5px;line-height:1.6;max-width:220px}
.ry-metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.ry-metric-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px;text-align:center}
.ry-gross{border-color:#bbf7d0}
.ry-net{border-color:#16a34a;background:#f0fdf4}
.ry-metric-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin-bottom:4px}
.ry-metric-val{font-size:24px;font-weight:800;color:#1e293b;line-height:1}
.ry-net .ry-metric-val{color:#15803d;font-size:28px}
.ry-metric-sub{font-size:11px;color:#94a3b8;margin-top:3px}
.ry-true-yield-card{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1.5px solid #bbf7d0;border-radius:10px;padding:12px 14px;margin-bottom:12px}
.ry-true-icon{font-size:22px;flex-shrink:0}
.ry-true-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#15803d;margin-bottom:2px}
.ry-true-val{font-size:22px;font-weight:800;color:#14532d}
.ry-true-sub{font-size:11.5px;color:#64748b;margin-top:2px;line-height:1.4}
.ry-quality{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin-bottom:12px;display:flex;align-items:center;gap:12px}
.ry-quality-bar-wrap{flex:1;height:10px;background:#f1f5f9;border-radius:6px;overflow:hidden}
.ry-quality-bar{height:100%;border-radius:6px;transition:width .4s ease,background .3s}
.ry-quality-label{font-size:12.5px;font-weight:700;min-width:80px}
.ry-cashflow,.ry-acquisition{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:12px}
.ry-cf-title,.ry-exp-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:10px}
.ry-cf-row{display:flex;justify-content:space-between;padding:6px 0;font-size:13px;color:#475569;border-bottom:1px solid #f1f5f9}
.ry-cf-row:last-child{border-bottom:none}
.ry-cf-row span:last-child{font-weight:600;color:#1e293b}
.ry-cf-neg span:last-child{color:#dc2626}
.ry-cf-divider{height:1px;background:#e2e8f0;margin:4px 0}
.ry-cf-net{font-weight:700}
.ry-cf-net span:last-child{font-size:15px}
.ry-cf-annual span:last-child{color:#15803d;font-weight:700}
.ry-expenses{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:12px}
.ry-exp-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:7px;font-size:12.5px}
.ry-exp-name{min-width:120px;color:#475569}
.ry-exp-bar-wrap{flex:1;height:8px;background:#f1f5f9;border-radius:4px;overflow:hidden}
.ry-exp-bar{height:100%;background:#16a34a;border-radius:4px;transition:width .4s ease}
.ry-exp-val{min-width:56px;text-align:right;font-weight:600;color:#1e293b;font-size:12px}
.ry-exp-total{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:#1e293b;padding-top:8px;border-top:1px solid #e2e8f0;margin-top:4px}
.ry-benchmark{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px}
.ry-bench-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:10px}
.ry-bench-row{display:flex;justify-content:space-between;font-size:13px;color:#475569;padding:5px 0;border-bottom:1px solid #f1f5f9}
.ry-bench-row:last-child{border-bottom:none}
.ry-bench-row span:last-child{font-weight:600}
@media(max-width:480px){.ry-header,.ry-form,.ry-results{padding:14px}.ry-title{font-size:17px}.ry-metric-val{font-size:20px}.ry-net .ry-metric-val{font-size:24px}.ry-btn-4{grid-template-columns:repeat(2,1fr)}}
