body .app .content { max-width: none; padding-bottom: 50px; }
body .app .page-head p { font-size: 13px; }
body .app button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.helper { color: #7c8799; font-size: 12px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: end; }
.form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.form-field>span { font-size: 12px; color: #62708a; font-weight: 650; }
.form-field input,.form-field select,.filter-row select,.library-toolbar select { width: 100%; height: 40px; border: 1px solid #dfe4ee; border-radius: 8px; background: #fff; color: #34445e; padding: 0 11px; outline: none; }
.form-field input:focus,.form-field select:focus,.rate-input:focus,.rate-select:focus { border-color: #4263d8; box-shadow: 0 0 0 3px #edf0fc; }
.workflow { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 0 0 22px; }
.workflow>div { display: flex; gap: 13px; align-items: center; padding: 17px 20px; background: #fff; border: 1px solid #e4e7ef; border-radius: 12px; }
.workflow>div>span { color: #4263d8; background: #edf0fc; width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.workflow strong { display: block; font-size: 13px; color: #34445e; }
.workflow small { display: block; font-size: 11px; color: #8995a8; margin-top: 5px; }
.comparison-controls { margin-bottom: 22px; }
.large-action { height: 40px !important; }
.empty-state { padding: 65px 25px; text-align: center; background: #fff; border: 1px dashed #d7ddeb; border-radius: 14px; margin: 20px 0; }
.empty-state h3 { color: #34445e; font-size: 18px; }
.empty-state p { color: #8290a5; font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.empty-symbol { font-size: 38px; color: #abb9e3; }
.notice { padding: 14px 18px; background: #fbf7ef; border: 1px solid #ebdecb; border-radius: 10px; color: #9a7c4c; line-height: 1.9; font-size: 12px; margin: 20px 0; }
.notice .text-link { margin-left: 14px; }
.loading-state { padding: 65px; text-align: center; color: #7c8799; }
.editor-heading { margin-bottom: 20px; }
.editor-caption p { font-size: 12px; color: #7c8799; }
.work-tabs { display: flex; gap: 5px; margin: 24px 0 16px; border-bottom: 1px solid #dfe4ee; }
.work-tabs button { padding: 13px 20px; border: 0; background: transparent; color: #8390a4; font-size: 13px; border-bottom: 2px solid transparent; }
.work-tabs button.active { color: #4263d8; border-bottom-color: #4263d8; font-weight: 700; }
.filter-row { display: flex; align-items: center; gap: 12px; }
.filter-row select { min-width: 135px; width: auto; }
.filter-row label { color: #7c8799; font-size: 12px; white-space: nowrap; }
body .app .rate-editor { margin-top: 0; }
body .app .rate-editor .table-wrap { max-height: 590px; overflow: auto; }
body .app .wide-table { min-width: 1150px; }
body .app .wide-table th,body .app .wide-table td { padding: 13px 12px; }
body .app .wide-table th { position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.rate-input { width: 85px; height: 34px; padding: 0 7px; border: 1px solid #e4e7ef; border-radius: 6px; color: #34445e; background: #fff; outline: none; }
.rate-select { min-width: 100px; height: 34px; border: 1px solid #e4e7ef; border-radius: 6px; color: #34445e; background: #fff; }
body .app td.sticky-label { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 210px; max-width: 280px; }
body .app td small { display: block; font-size: 10px; line-height: 1.7; margin-top: 5px; color: #93a0b2; }
body .app tr.edited td { background: #f1f4ff; }
.warning-text { color: #b28a50 !important; font-size: 12px; line-height: 1.7; }
.table-foot .page-actions { align-items: center; flex-wrap: wrap; }
.table-foot { gap: 15px; }
body .app .small-btn { height: 32px; padding: 0 10px; white-space: nowrap; }
.business-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 22px 0; }
.form-footer { display: flex; gap: 25px; justify-content: space-between; align-items: center; }
.form-footer button { flex-shrink: 0; }
.import-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.import-panel .text-link { margin-right: 15px; font-size: 12px; }
.upload-button { padding: 12px 16px; font-size: 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.scope-row { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f5; padding: 17px 0; font-size: 12px; color: #8290a5; }
.scope-row b { color: #526481; text-align: right; }
.download-link { display: inline-flex; align-items: center; text-decoration: none; }
.import-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 15px; margin-bottom: 25px; }
.import-summary>div { padding: 20px; border: 1px solid #e4e7ef; background: #fff; border-radius: 12px; }
.import-summary strong { display: block; font-size: 25px; color: #34445e; }
.import-summary span { display: block; color: #8995a8; font-size: 12px; margin-top: 8px; }
.library-toolbar { display: flex; align-items: center; gap: 25px; }
.library-toolbar label { display: flex; align-items: center; gap: 15px; font-size: 12px; white-space: nowrap; }
.library-toolbar select { width: 180px; }
.work-modal { max-height: 90vh; overflow-y: auto; width: 650px; max-width: calc(100vw - 32px); }
.work-modal .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 25px 0; }
.full-textarea { width: 100%; border: 1px solid #dfe4ee; border-radius: 8px; padding: 13px; color: #34445e; font-size: 13px; line-height: 1.9; }
.field-help { color: #64738a; font-size: 13px; line-height: 1.9; }
.calc-explanation { min-width: 300px; max-width: 480px; font-size: 12px; color: #64738a; line-height: 1.8; }
details summary { cursor: pointer; font-size: 12px; color: #4263d8; }
.edit-one { display: block; font-size: 11px; margin-top: 8px; }
.work-modal .outline { background: #4263d8; color: #fff; border-color: #4263d8; border-radius: 8px; padding: 10px 16px; font-size: 12px; }
body .app .metric strong.negative { color: #268674; }
body .app .metric strong.positive { color: #b78754; }
.login .login-options { justify-content: flex-start; }
@media(max-width:1100px){ .form-grid,.business-form { grid-template-columns: repeat(2,minmax(0,1fr)); }.workflow { gap: 10px; }.workflow>div { padding: 14px 10px; }.import-summary { grid-template-columns: repeat(3,1fr); }.section-head { flex-wrap: wrap; }.form-footer,.import-panel { align-items: flex-start; flex-direction: column; } }
@media(max-width:720px){ .workflow { grid-template-columns: 1fr; }.form-grid,.business-form { grid-template-columns: 1fr; }.work-tabs { overflow-x: auto; }.work-tabs button { white-space: nowrap; padding: 12px; }.import-summary { grid-template-columns: repeat(2,1fr); }.filter-row { flex-wrap: wrap; }.library-toolbar { flex-wrap: wrap; }.work-modal .form-grid { grid-template-columns: 1fr; } }
