[data-view="model-keys"] .key-order-hint{margin:6px 0 16px;color:#7d8b9d;font-size:12px;line-height:1.7}
[data-view="model-keys"] .key-name-order{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:150px}
[data-view="model-keys"] .key-order-label{min-width:0;flex:1}
[data-view="model-keys"] .key-order-arrows{display:flex;flex-direction:column;gap:4px;flex:none}
[data-view="model-keys"] .key-order-step{display:flex;align-items:center;justify-content:center;width:29px;height:27px;min-height:0;margin:0;padding:4px;border:1px solid #e0e7f2;border-radius:6px;background:#fff;color:#60728d;box-shadow:none}
[data-view="model-keys"] .key-order-step svg{display:block;width:16px;height:16px}
[data-view="model-keys"] .key-order-step:hover:not(:disabled){color:#405ee8;background:#eef2ff;border-color:#c5cffa}
[data-view="model-keys"] .key-order-step:focus-visible{outline:2px solid #7187f4;outline-offset:2px}
[data-view="model-keys"] .key-order-step:disabled{color:#bdc6d5;background:#f8fafe;border-color:#edf1f7;opacity:.65;cursor:default}
[data-view="model-keys"] [data-key-order-status]:empty{display:none}
[data-view="model-keys"] .key-service-limits{display:grid;gap:3px;min-width:142px;font-size:12px;line-height:1.5}
[data-view="model-keys"] .key-service-limits>span{display:flex;justify-content:space-between;gap:10px}
[data-view="model-keys"] .key-service-limits strong{font-variant-numeric:tabular-nums;white-space:nowrap}
[data-view="model-keys"] .key-contract{min-width:72px;line-height:1.5}
[data-view="model-keys"] .key-contract strong{font-size:15px;white-space:nowrap}
.key-contract-dialog table{min-width:0!important;width:100%}
.key-contract-dialog h3{margin:16px 0 8px}
[data-view="model-keys"] .key-order-label{min-width:125px}
[data-view="model-keys"] [data-key-contract]{min-width:82px}
[data-view="model-keys"] [data-key-usage]{min-width:135px}
[data-view="model-keys"] .key-usage-metrics{display:grid;gap:9px}
[data-view="model-keys"] .key-usage-metrics>div{display:grid;gap:3px}
[data-view="model-keys"] .key-usage-metrics span{font-size:11px;color:#758397}
[data-view="model-keys"] .key-usage-metrics strong{font-size:14px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#customer-keys-card .key-usage-metrics strong small{display:inline;margin:0;font-size:10px;font-weight:400;color:inherit}
.price-correction-dialog{width:min(900px,calc(100vw - 32px));max-height:90dvh;padding:24px}
.price-correction-dialog>.section-heading{align-items:flex-start;gap:20px}
.price-correction-dialog>.section-heading>button{flex:none;margin-left:auto}
.price-correction-dialog .editor-form{padding:0;border:0;box-shadow:none}
.price-correction-dialog .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.price-correction-dialog .form-grid input,.price-correction-dialog .form-grid select{width:100%;min-width:0}
.price-correction-formula{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;background:#f1f5ff;border-radius:10px}
.price-correction-formula span{display:grid;gap:5px;font-size:13px;color:#526075}
.price-correction-formula strong{font-size:20px;color:#263b64;font-variant-numeric:tabular-nums}
.price-correction-formula small{font-size:12px;font-weight:400}
.price-correction-comparison{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px 0}
.price-correction-comparison>div{display:grid;gap:6px;color:#64748b;font-size:13px}
.price-correction-comparison strong{font-size:16px;color:#24344c;font-variant-numeric:tabular-nums}
.price-correction-dialog [data-correction-history]{margin-top:22px}
.price-correction-dialog>.manage-actions,.price-correction-dialog form>.manage-actions{justify-content:flex-end}
@media(max-width:700px){.price-correction-dialog{padding:16px}.price-correction-dialog .form-grid{grid-template-columns:1fr}.price-correction-formula{gap:6px;padding:12px}.price-correction-formula strong{font-size:15px}.price-correction-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 [data-view="model-keys"] .key-name-order{width:100%;min-width:0;gap:14px}
 [data-view="model-keys"] .key-order-arrows{flex-direction:row;gap:8px}
 [data-view="model-keys"] .key-order-step{width:38px;height:36px;padding:8px}
 [data-view="model-keys"] .key-order-hint{margin:8px 0 14px;font-size:11px}
}

/* Only the existing operations cell changes: buttons first, sync status underneath. */
#customer-keys-card .customer-row-actions{display:flex;flex-wrap:wrap;align-items:center;align-content:start;gap:6px;width:176px;max-width:100%;min-width:148px}
#customer-keys-card .customer-row-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;margin:0;padding:5px 9px;border-radius:6px;font-size:12px;line-height:18px;white-space:nowrap}
#customer-keys-card .customer-row-actions>.provider-key-sync{order:1;flex:1 0 100%;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:5px;min-width:0;max-width:none;margin:4px 0 0;padding:9px 0 0;border-top:1px solid var(--xy-border-soft,#edf0f4)}
#customer-keys-card .customer-row-actions .provider-key-sync>small{grid-column:1;margin:0;font-size:11px;line-height:1.6}
#customer-keys-card .customer-row-actions .provider-key-sync>button{grid-column:1;justify-self:start;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;margin:0;padding:5px 9px;border-radius:6px;font-size:12px;line-height:18px;white-space:nowrap}
#customer-keys-card .customer-row-actions .provider-key-sync>.error-text{grid-column:1 / -1;overflow-wrap:anywhere}
@media(max-width:760px){
 #customer-keys-card .customer-row-actions{width:100%;min-width:0;gap:7px}
 #customer-keys-card .customer-row-actions>button,#customer-keys-card .customer-row-actions .provider-key-sync>button{min-height:34px;padding:6px 10px}
 #customer-keys-card .customer-row-actions>.provider-key-sync{gap:6px 8px;padding-top:10px}
}
