*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;font-size:14px;color:#1f2933;background:#f5f7fa}button{font-family:inherit;font-size:inherit;cursor:pointer}input,select,textarea{font-family:inherit;font-size:inherit}a{color:#1e6ee8}.app-shell{max-width:1100px;margin:0 auto;padding:24px}.app-layout{display:flex;min-height:100vh}.sidebar{width:260px;flex-shrink:0;background:#1f2933;color:#e4ecf3;padding:16px 14px;display:flex;flex-direction:column;gap:10px}.sidebar-brand{font-size:20px;font-weight:700;color:#fff;padding:4px 6px 10px}.sidebar-extract{width:100%;text-align:left}.sidebar-newblank{width:100%;text-align:left;color:#9fb3c8}.sidebar-newblank:hover{color:#fff}.sidebar-section-label{margin-top:14px;padding:0 6px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#829ab1}.client-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto}.client-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:6px;cursor:pointer}.client-item:hover{background:#323f4b}.client-item.active{background:#3b82f6}.client-item.active .client-meta{color:#dbeafe}.client-name{font-size:14px;font-weight:500;color:#fff}.client-meta{font-size:11px;color:#9fb3c8}.client-delete{background:transparent;border:none;color:#829ab1;font-size:13px;padding:2px 6px;border-radius:4px;opacity:0}.client-item:hover .client-delete{opacity:1}.client-delete:hover{background:#ffffff26;color:#fff}.main-area{flex:1;padding:24px 28px;max-width:1200px}.app-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}.app-header h1{font-size:22px;margin:0}.app-header .meta{color:#627d98;font-size:13px}.tab-bar{display:flex;gap:4px;border-bottom:1px solid #d9e2ec;margin-bottom:16px}.tab{background:transparent;border:1px solid transparent;border-bottom:none;padding:8px 16px;border-radius:6px 6px 0 0;color:#486581}.tab.active{background:#fff;color:#1f2933;border-color:#d9e2ec;font-weight:600}.tab:hover:not(.active){background:#eaf0f6}.tab-panel{background:#fff;border:1px solid #d9e2ec;border-radius:0 8px 8px;padding:20px}.tab-placeholder{color:#829ab1;font-style:italic;padding:24px 0;text-align:center}.section{border:1px solid #e4ecf3;border-radius:6px;padding:16px;margin-bottom:16px;background:#fff}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-header h2{font-size:16px;margin:0}.section-header .section-actions{display:flex;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.form-field{display:flex;flex-direction:column;gap:4px}.form-field label{font-size:12px;color:#486581;font-weight:500}.form-field input,.form-field select,.form-field textarea{padding:6px 8px;border:1px solid #d9e2ec;border-radius:4px;background:#fff}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:#1e6ee8;box-shadow:0 0 0 2px #1e6ee826}.btn{background:#1e6ee8;color:#fff;border:none;padding:7px 14px;border-radius:4px;font-weight:500}.btn:hover{background:#1856b8}.btn:disabled{background:#9aa5b1;cursor:not-allowed}.btn-secondary{background:#fff;color:#1f2933;border:1px solid #d9e2ec}.btn-secondary:hover{background:#f5f7fa}.btn-ghost{background:transparent;color:#486581;border:none;padding:7px 10px}.btn-ghost:hover{color:#1f2933}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50;padding:24px}.modal{background:#fff;border-radius:8px;max-width:720px;width:100%;max-height:90vh;overflow:auto;padding:24px;box-shadow:0 20px 40px #0f172a33}.modal h3{margin:0 0 8px}.modal .modal-meta{color:#627d98;font-size:13px;margin-bottom:16px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.banner{padding:10px 14px;border-radius:6px;margin-bottom:16px;font-size:13px}.banner.error{background:#fee2e2;color:#842029;border:1px solid #f5c2c7}.banner.info{background:#e7f1fc;color:#1856b8;border:1px solid #b8d2f0}.subhead{font-size:13px;color:#627d98;text-transform:uppercase;letter-spacing:.04em;margin:16px 0 8px}.muted{color:#829ab1;font-size:13px}.row-actions{display:flex;gap:8px;margin-top:12px}.calc-table{width:100%;border-collapse:collapse;font-size:13px}.calc-table th,.calc-table td{border:1px solid #e4ecf3;padding:6px 10px;text-align:right}.calc-table th:first-child,.calc-table td:first-child{text-align:left}.calc-table thead th{background:#f0f4f8;color:#486581;font-weight:600;font-size:12px}.calc-table input{width:90px;padding:4px 6px;border:1px solid #d9e2ec;border-radius:4px;text-align:right}.calc-table.results td.recommended{background:#eaf5ec;color:#1f6f3f}.calc-table .total-row td{background:#f7f9fb;border-top:2px solid #cfd9e3;font-size:14px}.rationale-list{margin-top:12px;padding:10px 12px;background:#f7f9fb;border-radius:6px}.calc-table.arive td.rowlabel{font-weight:500}.calc-table.arive .method-cell select{width:100%;padding:4px 6px;border:1px solid #d9e2ec;border-radius:4px}.calc-table.arive .method-cell input{width:100%}.calc-table.arive .trend.increasing{color:#1f9d55}.calc-table.arive .trend.decreasing{color:#d64545}.qualifying-banner{display:flex;align-items:baseline;justify-content:space-between;margin-top:16px;padding:14px 16px;border-top:2px solid #cfd9e3}.qualifying-banner>span:first-child{font-size:16px;font-weight:600;color:#1f2933}.big-green{font-size:22px;font-weight:700;color:#1f9d55}.method-legend{margin-top:14px;font-size:12px;line-height:1.5}textarea{padding:8px;border:1px solid #d9e2ec;border-radius:4px;font-family:inherit;resize:vertical}
