/* Secondary admin surfaces: compact records, complete content, unchanged controls.
   Loaded after reference-shell.css by the integration owner. */
body.admin-shell[data-page="clients"] #main,
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) {
  font-size:14px;
  line-height:1.5;
}
body.admin-shell[data-page="clients"] #main .panel,
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) .panel {
  padding:14px 16px;
  border-radius:6px;
  min-width:0;
  box-shadow:none;
}
body.admin-shell[data-page="clients"] #main :is(h2,h3),
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) :is(h2,h3) {
  font-size:15px;
  line-height:1.4;
  letter-spacing:-.015em;
  margin-block:0 8px;
}
body.admin-shell[data-page="clients"] #main .panel > p,
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) .panel > p {
  margin-block:8px;
}
body.admin-shell[data-page="clients"] #main .section-heading,
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) .section-heading {
  gap:8px 16px;
  margin-bottom:8px;
}
body.admin-shell[data-page="clients"] #main .lead,
body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace) .lead {
  font-size:14px;
  line-height:1.5;
  margin-block:4px 0;
}
body.admin-shell :is(.web-heading,.numbering-heading,.finance-heading,.production-heading) h1 {
  font-size:24px;
  line-height:1.2;
}

/* Directory list: identity, contact and actual counts share a compact record. */
body.admin-shell[data-page="clients"] #main > .list-heading { margin-block:16px 8px; }
body.admin-shell[data-page="clients"] #main > .inquiry-card { padding:12px 16px; margin-bottom:8px; }
body.admin-shell[data-page="clients"] #main > .inquiry-card .section-heading { margin:0; }
body.admin-shell[data-page="clients"] #main > .inquiry-card h3 { margin:0; }
body.admin-shell[data-page="clients"] #main > .inquiry-card h3 a { display:inline-flex; align-items:center; min-height:44px; }
body.admin-shell[data-page="clients"] #main > .inquiry-card > p { margin:4px 0; font-size:13px; overflow-wrap:anywhere; }
body.admin-shell[data-page="clients"] #main .metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 16px; margin:12px 0 0; }
body.admin-shell[data-page="clients"] #main .metrics > div { min-width:0; }
body.admin-shell[data-page="clients"] #main .metrics dt { font-size:11px; }
body.admin-shell[data-page="clients"] #main .metrics dd { margin:2px 0 0; text-align:right; font-size:15px; font-variant-numeric:tabular-nums; }
body.admin-shell[data-page="clients"] #main .confirmation-grid { gap:16px; margin-block:12px; }
body.admin-shell[data-page="clients"] #main .detail-list { margin-block:8px; }
body.admin-shell[data-page="clients"] #main .detail-list > div { gap:16px; padding-block:7px; align-items:baseline; }
body.admin-shell[data-page="clients"] #main .detail-list dd { text-align:left; min-width:0; }
body.admin-shell[data-page="clients"] #main .client-directory { margin-block:20px; }
body.admin-shell[data-page="clients"] #main .client-directory .panel { margin-block:12px; }
body.admin-shell[data-page="clients"] #main :is(.directory-list,.directory-fields-grid,.directory-columns) { gap:12px; }
body.admin-shell[data-page="clients"] #main :is(.directory-card,.directory-events > li) { padding-block:10px; }
body.admin-shell[data-page="clients"] #main .directory-actions { gap:8px; margin-top:8px; }
body.admin-shell[data-page="clients"] #main .client-directory label { margin-block:8px; gap:4px; }
@media(min-width:1100px) {
  body.admin-shell[data-page="clients"] #main > .inquiry-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(240px,1.1fr); gap:4px 20px; align-items:start; }
  body.admin-shell[data-page="clients"] #main > .inquiry-card .section-heading { grid-column:1/-1; }
  body.admin-shell[data-page="clients"] #main > .inquiry-card .metrics { margin:4px 0; gap:8px; }
}

/* CMS rows keep stage, revision, publication warnings and both editor links. */
body.admin-shell .web-admin section { margin-bottom:16px; }
body.admin-shell .web-admin .web-tabs { gap:6px; padding-bottom:8px; margin:12px 0 16px; }
body.admin-shell .web-admin .web-tabs a { border-radius:6px; padding:10px 12px; }
body.admin-shell .web-admin .web-section-title { gap:8px 16px; margin-block:8px; }
body.admin-shell .web-admin .web-section-title h2 { margin:0; }
body.admin-shell .web-admin .web-content-row { padding:10px 12px; gap:16px; align-items:center; background:var(--surface); }
body.admin-shell .web-admin .web-content-row > div { min-width:0; }
body.admin-shell .web-admin .web-content-row .eyebrow { margin:0; font-size:10px; }
body.admin-shell .web-admin .web-content-row h3 { font-size:15px; line-height:1.4; margin:3px 0; }
body.admin-shell .web-admin .web-content-row .fine { margin:3px 0 0; font-size:12px; overflow-wrap:anywhere; }
body.admin-shell .web-admin .web-row-status { grid-template-columns:auto auto; align-items:center; gap:4px 16px; max-width:360px; flex-shrink:0; }
body.admin-shell .web-admin .web-row-status > small { grid-column:1/-1; max-width:34ch; }
body.admin-shell .web-admin .web-row-status > .text-link { display:inline-flex; align-items:center; min-height:44px; }
body.admin-shell .web-admin .web-row-status > span.badge { min-height:0; padding:4px 8px; font-size:11px; }
body.admin-shell .web-admin :is(.web-notice,.web-preview-note) { padding:10px 12px; border-radius:6px; font-size:13px; line-height:1.5; margin-block:10px; }
body.admin-shell .web-admin .web-metrics { gap:12px; margin-block:12px; }
body.admin-shell .web-admin .web-metrics article { padding:14px 16px; gap:6px; border-radius:6px; }
body.admin-shell .web-admin .web-metrics strong { font-size:26px; line-height:1.2; }
body.admin-shell .web-admin .product-web-area { padding:16px; }
body.admin-shell .web-admin .web-editor-grid { gap:16px; margin-block:16px; }
body.admin-shell .web-admin :is(.web-editor-grid fieldset,.web-publish-panel) { padding:14px 16px; border-radius:6px; }
body.admin-shell .web-admin label { gap:5px; margin-bottom:12px; font-size:13px; }
body.admin-shell .web-admin .web-editor-side { gap:12px; }
body.admin-shell .web-admin .web-check { min-height:44px; margin-top:12px; }
body.admin-shell .web-admin .web-history { margin-top:20px; }
body.admin-shell .web-admin :is(th,td) { padding:9px 12px; }
body.admin-shell[data-page="web"] .web-admin .web-table-wrap :is(th,td):nth-child(2) { text-align:right; font-variant-numeric:tabular-nums; }
body.admin-shell[data-page="web-editor"] .web-admin .web-table-wrap :is(th,td):nth-child(2) { text-align:left; font-variant-numeric:normal; }
body.admin-shell .web-admin .web-machine-row { padding-block:10px; gap:8px 12px; }

/* Number series are facts, not oversized metric cards. All explanations stay. */
body.admin-shell .numbering-page .numbering-grid { gap:12px; margin-block:16px; }
body.admin-shell .numbering-page .numbering-card { border-radius:6px; padding:14px 16px; }
body.admin-shell .numbering-page .numbering-card > header { gap:12px; padding-bottom:10px; }
body.admin-shell .numbering-page .numbering-letter { width:36px; height:36px; border-radius:6px; font-size:20px; }
body.admin-shell .numbering-page .numbering-card h2 { margin:0; }
body.admin-shell .numbering-page .numbering-card header p { margin:2px 0 0; font-size:12px; }
body.admin-shell .numbering-page .numbering-card dl { gap:0; margin-block:10px; }
body.admin-shell .numbering-page .numbering-card dl > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:baseline; gap:12px; padding-block:6px; border-bottom:1px solid var(--line); }
body.admin-shell .numbering-page .numbering-card dt { font-size:12px; }
body.admin-shell .numbering-page .numbering-card dd { margin:0; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
body.admin-shell .numbering-page .numbering-card .numbering-counter { text-align:right; font-size:20px; font-variant-numeric:tabular-nums; }
body.admin-shell .numbering-page .numbering-card h3 { margin:12px 0 4px; }
body.admin-shell .numbering-page .numbering-card > p { margin:4px 0 0; font-size:13px; line-height:1.5; }
body.admin-shell .numbering-page .numbering-empty { padding:8px 10px; }
body.admin-shell .numbering-page .numbering-explanation { padding-block:14px; }
body.admin-shell .numbering-page .numbering-explanation > p { margin-bottom:0; }

/* Finance and process workspaces retain visible operational and TEST notices. */
body.admin-shell :is(.finance-workspace,.production-workspace,.profile-workspace) { gap:12px; }
body.admin-shell :is(.finance-notice,.production-notice) { padding:10px 12px; margin-block:0; border-radius:6px; font-size:13px; line-height:1.5; }
body.admin-shell :is(.finance-notice,.production-notice) p { margin-block:6px; }
body.admin-shell .finance-workspace :is(.finance-detail-grid,.finance-fields,.finance-facts,.finance-totals) { gap:12px 16px; }
body.admin-shell .finance-workspace .finance-totals strong { font-size:24px; line-height:1.25; }
body.admin-shell .finance-workspace label { margin-block:8px; gap:5px; }
body.admin-shell .finance-workspace fieldset { padding:12px 14px; margin-block:12px; border-radius:6px; }
body.admin-shell .finance-workspace .finance-row { min-height:0; padding:10px 0; gap:12px; font-size:13px; }
body.admin-shell .finance-workspace .finance-facts dd { font-size:13px; }
body.admin-shell .production-workspace .production-heading { padding-top:0; }
body.admin-shell .production-workspace .production-grid { gap:16px; }
body.admin-shell .production-workspace .production-summary { gap:12px; }
body.admin-shell .production-workspace .production-summary h2 { font-size:15px; margin:0 0 6px; }
body.admin-shell .production-workspace .production-summary p { margin-block:6px; }
body.admin-shell .production-workspace .production-count { font-size:22px; line-height:1.3; }
body.admin-shell .production-workspace .production-facts > div { padding-block:7px; font-size:13px; }
body.admin-shell .production-workspace fieldset { gap:10px; }
body.admin-shell .production-workspace legend { margin-bottom:10px; }
body.admin-shell .production-workspace :is(.production-release,.production-reassign) { margin-top:16px; padding-top:16px; }
body.admin-shell .production-workspace :is(form + form,details) { margin-top:12px; }
body.admin-shell .production-workspace .production-steps li { padding:7px 10px; border-radius:6px; font-size:12px; }
body.admin-shell .production-workspace .production-row { padding-block:9px; }
body.admin-shell .production-workspace .production-row-main > span { display:block; overflow:visible; }
body.admin-shell .production-workspace .production-column { padding:10px; border-radius:6px; }
body.admin-shell .production-workspace .production-column .production-row { padding:10px; margin-top:8px; border-radius:6px; }
body.admin-shell .production-workspace .production-history { margin-block:12px 0; }
body.admin-shell .production-workspace .production-history li { padding-block:8px; font-size:13px; }
body.admin-shell .production-workspace .production-history p { margin-block:5px; }

/* Pricing uses the same compact panels; native values and form units are intact. */
body.admin-shell #pricing-workspace { gap:16px; }
body.admin-shell #pricing-workspace :is(.pricing-values,.form-grid,.comparison-grid) { gap:12px; }
body.admin-shell #pricing-workspace .pricing-values { margin-block:12px; }
body.admin-shell #pricing-workspace .pricing-values > div { padding:10px 12px; border-radius:6px; }
body.admin-shell #pricing-workspace .pricing-values dd { font-size:16px; text-align:right; font-variant-numeric:tabular-nums; }
body.admin-shell #pricing-workspace .pricing-expert { padding:12px; margin-block:16px; border-radius:6px; }
body.admin-shell #pricing-workspace .comparison-card { padding:12px; border-radius:6px; }
body.admin-shell #pricing-workspace .comparison-card strong { font-size:20px; text-align:right; font-variant-numeric:tabular-nums; }
body.admin-shell #pricing-workspace .pricing-history { margin-top:16px; }
body.admin-shell #pricing-workspace .history-row { padding-block:12px; }
body.admin-shell .profile-workspace :is(.profile-grid,.profile-review) { gap:12px; }
body.admin-shell .profile-workspace .profile-families a { min-height:56px; gap:3px; padding:9px 12px; border-radius:6px; }
body.admin-shell .profile-workspace .profile-families span { font-size:12px; }
body.admin-shell .profile-workspace fieldset { gap:10px; }
body.admin-shell .profile-workspace .form-grid { gap:12px; }
body.admin-shell .profile-workspace form + form { margin-top:16px; }
body.admin-shell .profile-workspace .profile-history { gap:10px; margin-block:12px 0; }
body.admin-shell .profile-workspace .profile-approved { gap:6px 12px; font-size:13px; }
body.admin-shell .profile-workspace input[inputmode="decimal"] { text-align:right; font-variant-numeric:tabular-nums; }

/* The internal offer list has a work heading, not a marketing hero. */
body.admin-shell[data-page="offers"] #main > .intro { padding:0; border:0; border-radius:0; background:none; min-height:0; }
body.admin-shell[data-page="offers"] #main > .intro > div { min-width:0; }
body.admin-shell[data-page="offers"] #main > .intro p { margin-block:4px; font-size:13px; line-height:1.5; }
body.admin-shell[data-page="offers"] #main > .intro h1 { font-size:24px; line-height:1.2; }

@media(max-width:900px) {
  body.admin-shell .web-admin .web-row-status { grid-template-columns:auto auto; justify-content:start; justify-items:start; gap:4px 12px; max-width:100%; flex-shrink:1; }
  body.admin-shell .web-admin .web-row-status > small { text-align:left; max-width:none; }
  body.admin-shell .web-admin .web-content-row { align-items:stretch; gap:6px; }
}
@media(max-width:700px) {
  body.admin-shell[data-page="clients"] #main .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
  body.admin-shell[data-page="clients"] #main .detail-list > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:10px; }
  body.admin-shell[data-page="clients"] #main .detail-list dd { max-width:none; }
  body.admin-shell .web-admin .web-content-row { padding:10px 12px; flex-direction:column; }
  body.admin-shell .web-admin .web-row-status { grid-template-columns:minmax(0,1fr) auto; }
  body.admin-shell .web-admin .web-content-row h3 a { display:inline-flex; align-items:center; min-height:44px; }
  body.admin-shell .numbering-page .numbering-card dl > div { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  body.admin-shell :is(.web-admin,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
  body.admin-shell[data-page="clients"] #main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { font-size:16px; min-height:44px; }
  body.admin-shell :is(.web-admin,.numbering-page,.finance-workspace,.production-workspace,.profile-workspace,#pricing-workspace) :is(.button,.text-button,summary),
  body.admin-shell[data-page="clients"] #main :is(.button,.text-button,summary) { min-height:44px; }
  body.admin-shell .web-admin .web-machine-row > button { min-height:44px; }
  body.admin-shell .finance-workspace .finance-filters label { min-width:0; flex-basis:100%; }
}
