.gv-admin .gv-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:10px 0}.gv-admin label{display:grid;gap:4px;font-size:12px;color:#f2ddaa;min-width:0}.gv-admin input,.gv-admin select{box-sizing:border-box;max-width:100%;width:100%;min-width:0;height:32px;background:#171006;color:#ffedc4;border:1px solid #ddc38a;border-radius:6px;padding:3px 7px}.gv-admin input[type=checkbox]{width:18px;height:18px}.gv-admin .gv-check{display:flex;align-items:center;gap:8px}.gv-admin h4{grid-column:1/-1;margin:6px 0 0;color:#ffe097}.gv-admin .gf-toolbar{flex-wrap:wrap;gap:5px}.gv-admin .gf-table{overflow:auto;max-width:100%}.gv-admin .gf-table table{min-width:520px}.gv-admin .gf-table td{font-size:12px;padding:6px}.gv-admin small{display:block;overflow-wrap:anywhere}.gv-admin .gf-primary{font-size:12px;min-height:32px;padding:5px 12px}.gv-admin [aria-current=page]{background:#604015!important;color:#ffedb3!important}.gv-state{color:#ffdfa2}@media(max-width:420px){.gv-admin .gv-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.gv-admin .gf-card{padding:10px}.gv-admin .gf-toolbar button{font-size:11px!important;padding:4px 6px!important}}

/* Tier editor: explicit groups prevent the generic grid mixing period fields. */
.modal-card:has(.gv-level-editor){box-sizing:border-box;width:min(680px,96vw);padding:12px;overflow:hidden;max-height:92vh;background:#17120c;border-color:#c8a45e}
.gv-level-editor{display:flex;flex-direction:column;max-height:calc(92vh - 26px);min-height:0}
.gv-level-editor .gv-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 7px;border-bottom:1px solid #816431}
.gv-level-editor .gv-editor-head h3{margin:0;font-size:17px;color:#ffe1a0}.gv-level-editor .gv-editor-head span{font-size:11px;color:#cbb783;white-space:nowrap}
.gv-level-editor .gv-editor-body{overflow-y:auto;min-height:0;display:grid;gap:7px;padding:7px 2px 7px 0}
.gv-level-editor fieldset{min-width:0;margin:0;padding:7px 9px 8px;border:1px solid #78602f;border-radius:7px;background:#100e09}
.gv-level-editor legend{padding:0 5px;color:#f3d38c;font-size:12px;font-weight:600}
.gv-level-editor .gv-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px}
.gv-level-editor label{margin:0;gap:3px;font-size:11px;line-height:1.25}.gv-level-editor input,.gv-level-editor select{height:28px;min-height:28px;padding:2px 6px;font-size:12px;border-color:#9f854a}
.gv-level-editor .gv-wide{grid-column:1/-1}.gv-level-editor .gv-period-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gv-level-editor .gv-editor-note{margin:0;font-size:11px;line-height:1.4;color:#c8b88d;overflow-wrap:anywhere}
.gv-level-editor fieldset .gv-editor-note{margin-top:5px}.gv-level-editor .gv-formula{margin:6px 0 0;font-size:11px;line-height:1.4;color:#ffdc91;overflow-wrap:anywhere}
.gv-level-editor .gv-editor-footer{flex:none;border-top:1px solid #816431;padding-top:7px;background:#17120c}.gv-level-editor .gv-editor-footer>div{display:flex;justify-content:flex-end;gap:7px}
.gv-level-editor #gvLevelProblem{margin:0 0 6px;color:#ffb1a0;font-size:12px;overflow-wrap:anywhere}.gv-level-editor #gvLevelProblem:empty{display:none}
.gv-level-editor .gv-editor-footer button{min-height:29px;padding:4px 11px;font-size:12px}.gv-level-editor input:disabled{opacity:.5}
@media(max-width:520px){.modal:has(.gv-level-editor){padding:8px}.modal-card:has(.gv-level-editor){width:100%;max-height:94vh;padding:9px}.gv-level-editor{max-height:calc(94vh - 20px)}.gv-level-editor .gv-period-grid{grid-template-columns:1fr}.gv-level-editor .gv-editor-head h3{font-size:16px}.gv-level-editor fieldset{padding:5px 7px 7px}.gv-level-editor .gv-editor-fields{gap:5px 7px}}

/* All tier fields stay visible as compact columns; small screens scroll the grid. */
.gv-admin .gv-config-list table{table-layout:fixed;min-width:740px;width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.gv-admin .gv-config-list :is(th,td){padding:4px 3px;font-size:11px;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;border:1px solid #a58a504d}
.gv-admin .gv-config-list th{font-size:10px;color:#ffe4a4;background:#312510}.gv-admin .gv-config-list thead tr:first-child th[colspan]{background:#4b3715}
.gv-admin .gv-config-list tbody tr:nth-child(even){background:#d6a74a08}
.gv-admin .gv-config-list tbody td:first-child,.gv-admin .gv-config-list thead tr:first-child th:first-child{position:sticky;left:0;background:#201b10;z-index:1}
.gv-admin .gv-config-list tbody td:last-child{position:sticky;right:0;background:#201b10;z-index:1}
.gv-admin .gv-config-list button{min-height:24px;height:24px;padding:2px 5px;font-size:10px!important;white-space:nowrap;border-radius:4px}

.gv-admin .gv-config-list tbody :is(td:nth-child(4),td:nth-child(5)){font-size:10px}.gv-admin .gv-config-list thead tr:first-child th:last-child{position:sticky;right:0;z-index:2;background:#312510}

/* Budget tab only: separate read-only listing from explicit calculation controls. */
.gv-budget-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px;margin-top:14px;align-items:start}
.gv-budget-list,.gv-budget-calculation{min-width:0;border:1px solid var(--line,#b89d5945);border-radius:8px;padding:12px}
.gv-panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.gv-panel-title h4{font-size:14px;margin:0;color:var(--gold,#e4c783)}.gv-panel-title span{font-size:11px;color:var(--muted,#b7ad96)}
.gv-budget-list .gf-table{margin:0}.gv-budget-list table{width:100%;font-size:12px}.gv-budget-list th,.gv-budget-list td{padding:7px 9px;white-space:nowrap}.gv-budget-list td:nth-child(3),.gv-budget-list td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.gv-budget-list th:nth-child(3),.gv-budget-list th:nth-child(4){text-align:right}
.gv-budget-controls{display:grid;gap:10px}.gv-budget-controls label{margin:0;font-size:12px;display:grid;gap:5px}.gv-budget-controls input,.gv-budget-controls select,.gv-budget-controls button,.gv-budget-list button{height:28px;min-height:28px;padding:3px 8px;font-size:12px;box-sizing:border-box}.gv-budget-calculation>p{font-size:11px;margin:0 0 12px}.gv-budget-controls button{justify-self:start;margin-top:2px}
@media(max-width:1050px){.gv-budget-layout{grid-template-columns:1fr}.gv-budget-controls{grid-template-columns:150px 190px auto;align-items:end}.gv-budget-controls button{margin:0}}@media(max-width:600px){.gv-budget-controls{grid-template-columns:1fr}.gv-budget-list .gf-table{overflow:auto}}

.gv-cycles{margin-top:12px}.gv-cycles .vc-note,.gv-cycles .vc-unavailable{font-size:12px;color:var(--muted,#b6ad98)}.gv-cycles #vcMessage{font-size:12px;color:#e4c783}.vc-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.vc-setting{border:1px solid var(--line,#b89d5945);border-radius:7px;padding:12px}.vc-setting h4,.vc-list-title h4,.vc-details h4{margin:0 0 10px;font-size:14px}.vc-setting-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.vc-setting label{display:grid;font-size:12px;gap:4px;margin:0}.vc-setting .vc-check{display:flex;grid-column:1/-1;align-items:center;gap:6px}.vc-setting footer{display:flex;gap:8px;margin-top:12px}.vc-setting footer input{min-width:0;flex:1}.gv-cycles input:not([type=checkbox]),.gv-cycles select,.gv-cycles button{min-height:28px;height:28px;font-size:12px;padding:3px 8px;box-sizing:border-box}.gv-cycles input[type=checkbox]{width:16px;height:16px;accent-color:#d4b16a}.vc-list-title{display:flex;justify-content:space-between;align-items:center;margin:14px 0 8px}.gv-cycles table{font-size:12px}.gv-cycles td{vertical-align:middle}.vc-pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:10px 0;font-size:12px}.vc-details{border-top:1px solid var(--line,#b89d5945);padding-top:12px;margin-top:14px}.vc-legacy{margin-top:14px;font-size:12px;color:var(--muted,#b6ad98)}.vc-settings>summary,.vc-legacy>summary{cursor:pointer;font-size:12px;color:#e4c783}@media(max-width:900px){.vc-settings-grid{grid-template-columns:1fr}}@media(max-width:500px){.vc-setting-fields{grid-template-columns:1fr}.vc-setting footer{flex-wrap:wrap}}

.gv-cycles .vc-budget-input{display:block;width:110px;margin-top:4px}.gv-cycles .gf-table{overflow:auto}.gv-cycles .gf-table td:last-child{min-width:160px}
