*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f9fafb;color:#1f2937;line-height:1.5;overflow-x:hidden}.app-header{background:linear-gradient(135deg,#319795,#285e61);color:#fff;padding:12px 32px;position:relative;text-align:center}.header-text{text-align:center}.app-header .tab-selector{position:absolute;right:32px;top:50%;transform:translateY(-50%)}.app-header h1{font-size:1.5rem;font-weight:700;margin-bottom:0}.app-header p{font-size:.85rem;opacity:.9}.app-container{max-width:1100px;margin:0 auto;padding:16px 20px 32px}.controls-card{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014;margin-bottom:24px;overflow:visible}.controls-card-header{padding:16px 24px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between}.controls-card-header h2{font-size:1.1rem;font-weight:600;color:#1d4044;margin:0}.calculate-btn{padding:10px 28px;background:#319795;color:#fff;border:none;border-radius:10px;font-family:inherit;font-size:.95rem;font-weight:600;cursor:pointer;transition:background .15s;white-space:nowrap}.calculate-btn:hover{background:#285e61}.controls-section{padding:16px 24px 20px;border-bottom:1px solid #e5e7eb}.controls-section:last-child{border-bottom:none}.controls-section-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#319795;margin-bottom:14px}.controls-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px 28px;align-items:end}.control-group{background:none;padding:0;border-radius:0;box-shadow:none}.control-group h3{color:#285e61;font-size:.7rem;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px;font-weight:600;display:flex;align-items:center;gap:5px}.info-tooltip-wrapper{position:relative;display:inline-flex;align-items:center;cursor:pointer}.info-tooltip-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#319795;color:#fff;font-size:.55rem;font-weight:600;font-style:italic;font-family:Georgia,Times New Roman,serif;text-transform:lowercase;line-height:1;flex-shrink:0}.info-tooltip-box{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%);background:#1e293b;color:#fff;border-radius:10px;padding:14px 16px;width:260px;z-index:100;box-shadow:0 4px 16px #0003}.info-tooltip-title{font-size:.85rem;font-weight:700;margin-bottom:4px;text-transform:none;letter-spacing:0}.info-tooltip-desc{font-size:.8rem;font-weight:400;line-height:1.45;color:#cbd5e1;text-transform:none;letter-spacing:0}.info-tooltip-arrow{position:absolute;bottom:-6px;left:50%;transform:translate(-50%);width:12px;height:12px;background:#1e293b;clip-path:polygon(0 0,100% 0,50% 100%)}.control-select{width:100%;padding:10px 36px 10px 14px;border:1.5px solid #d1d5db;border-radius:10px;background:#fff;color:#1f2937;font-family:inherit;font-size:.95rem;font-weight:500;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;transition:border-color .15s}.control-select:hover{border-color:#9ca3af}.control-select:focus{outline:none;border-color:#319795;box-shadow:0 0 0 3px #3197951a}.control-select-inline{padding:4px 26px 4px 10px;font-size:.78rem;border-radius:6px;border-width:1px;width:auto;background-position:right 8px center}.chart-section>.control-group{align-self:center;margin:8px 0 4px}.intro-text{font-size:1.1rem;color:#4b5563;line-height:1.55;margin:24px 0 28px;padding:0}.intro-text a{color:#319795;text-decoration:none}.intro-text a:hover{text-decoration:underline}.section-description{font-size:1.08rem;color:#6b7280;line-height:1.55;margin-bottom:8px}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.chart-grid .chart-section{margin-bottom:0;display:flex;flex-direction:column}.chart-grid .chart-section .chart-container{flex:1;min-height:380px}@media(max-width:768px){.chart-grid{grid-template-columns:1fr}}.chart-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}.chart-section-header h2{margin-bottom:0}.chart-section-header .control-group{padding:0;flex-shrink:0}.chart-section{background:#fff;border-radius:10px;box-shadow:0 1px 4px #00000014;padding:16px 20px;margin-bottom:24px}.chart-section h2{font-size:1.15rem;font-weight:600;color:#1d4044;margin-bottom:2px}.chart-subtitle{font-size:.9rem;color:#6b7280;margin-bottom:8px}.chart-container{width:100%}.revenue-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:0}.revenue-card{background:#f9fafb;border-radius:8px;padding:12px;text-align:center}.revenue-card .label{font-size:.8rem;color:#6b7280;margin-bottom:2px}.revenue-card .value{font-size:1.35rem;font-weight:700;color:#319795}.loading-state,.error-state{text-align:center;padding:60px 20px;color:#6b7280}.error-state{color:#ef4444}.app-footer{text-align:center;padding:16px;color:#9ca3af;font-size:.85rem}.app-footer a{color:#319795;text-decoration:none}.app-footer a:hover{text-decoration:underline}.tab-selector{display:flex;gap:4px;padding:3px;background:#fff3;border-radius:10px}.tab-button{padding:6px 14px;border:none;background:transparent;color:#fffc;border-radius:8px;cursor:pointer;font-family:inherit;font-size:.85rem;font-weight:500;transition:all .2s;white-space:nowrap}.tab-button:hover{color:#fff;background:#ffffff26}.tab-button.active{background:#fff;color:#319795;box-shadow:0 1px 3px #0000001a}@media(max-width:768px){.app-header{padding-bottom:52px}.app-header .tab-selector{position:absolute;right:50%;top:auto;bottom:12px;transform:translate(50%)}.controls-row{grid-template-columns:1fr;gap:16px}}.methodology-note{background:#f0fdfa;border:1px solid #99f6e4;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:.9rem;color:#115e59}.methodology-note strong{color:#0d9488}.error-state code{background:#fee2e2;padding:2px 6px;border-radius:4px;font-size:.8rem}
