.customer-key-list{display:grid;gap:12px}
.customer-key-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid var(--border,#cbd5e1);border-radius:12px;margin-block:12px}
.customer-key-card>div:first-child{display:grid;gap:8px;min-width:0}
.customer-key-card code,.customer-key-card small{overflow-wrap:anywhere}
.customer-key-card .form-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.customer-usage-grid,.customer-limit-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.customer-usage-card{display:grid;gap:10px;border:1px solid var(--border,#cbd5e1);padding:18px;border-radius:12px}
.customer-usage-card meter{width:100%}
.customer-usage-card.quota-over{border-color:#d97706}
.customer-inline{display:flex;align-items:center;gap:8px}
.customer-inline input[type=checkbox]{width:auto;min-width:18px;min-height:18px}
.customer-publication{border:1px solid var(--border,#cbd5e1);border-radius:12px;padding:16px;overflow-wrap:anywhere}
.customer-publication-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.customer-publication textarea{width:100%;box-sizing:border-box;min-height:72px;resize:vertical}
.customer-publication code{white-space:normal;overflow-wrap:anywhere}
body[data-workspace-mode=customer] #operator-first-install,
body[data-workspace-mode=customer] #operator-global-search,
body[data-workspace-mode=customer] #operator-global-create,
body[data-workspace-mode=customer] #operator-alert-center{display:none}
@media(max-width:650px){.customer-key-card{align-items:stretch;flex-direction:column}.customer-limit-fields{grid-template-columns:1fr}}
/* On a phone the records come first: the zone name stays, while the validity and
   count tiles (the banner already says "valid") and the version line step aside. */
@media(max-width:520px){
  .record-workspace-lead>.record-workspace-summary{display:none}
  .customer-publication{padding:12px}
  .customer-publication [data-publication-generations]{display:none}
  .customer-publication-heading h3{margin:0;font-size:15px}
}
/* Customer zone tools: record filters, zone-file import and undo. */
.cz-record-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cz-record-actions [hidden],#rr-filter-empty[hidden],.record-table-toolbar + .table-wrap[hidden]{display:none}
.record-table-toolbar #rr-type-filter{width:auto;min-width:9rem;max-width:12rem;margin-top:0}
#rr-filter-empty{display:grid;gap:8px;justify-items:start;margin-block:12px}
.cz-import-zone{margin:0}
.cz-import-mode{border:0;padding:0;margin:0;display:grid;gap:6px}
.cz-import-mode legend{padding:0;margin-bottom:4px;font-weight:600}
.cz-import-errors ul{margin:8px 0 0;padding-inline-start:18px;display:grid;gap:6px}
.cz-import-errors li{overflow-wrap:anywhere}
.cz-import-errors li>span{display:block}
.cz-import-errors code{white-space:pre-wrap;overflow-wrap:anywhere}
.cz-change-summary{margin:4px 0}
.cz-changes{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px;max-height:min(50vh,420px);overflow:auto}
.cz-change{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;align-items:start;padding:8px 10px;border:1px solid var(--line,#cbd5e1);border-radius:10px}
.cz-change .pill{grid-row:span 2;align-self:start;margin:0}
.cz-change-name{font-weight:600;overflow-wrap:anywhere}
.cz-change-values{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.cz-change-pair{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.cz-before{text-decoration:line-through;color:var(--ink-3,#64748b)}
@media(max-width:700px){.record-table-toolbar #rr-type-filter{max-width:none;width:100%}.cz-record-actions{width:100%}.cz-record-actions button{flex:1 1 auto}}
/* A customer's changes publish on their own and the publication box refreshes
   itself, so operator activity, density, API health, changesets and the second
   refresh button only add noise. */
body[data-workspace-mode=customer] #operator-active-jobs,
body[data-workspace-mode=customer] #operator-density,
body[data-workspace-mode=customer] #api-status,
body[data-workspace-mode=customer] #changeset-disclosure,
body[data-workspace-mode=customer] #refresh-zone-workspace,
body[data-workspace-mode=customer] #operator-alert-center{display:none!important}
