/* Page-level layouts layered over the shared technical theme. */
.admin-workspace,.admin-content,.panel,.form-panel,.panel-grid>* { min-width:0; }
.admin-content { display:flex; flex-direction:column; align-items:stretch; }
.admin-content > * { flex-shrink:0; }
.admin-content .section-heading { margin:0; gap:16px; flex-wrap:wrap; }
.section-heading h2,.page-heading h1 { margin:0 0 5px; font-size:19px; line-height:1.45; }
.section-heading p { max-width:850px; margin:0; font-size:12px; color:var(--muted); }
.page-heading,.page-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0; }
.page-heading p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.page-sections { display:flex; flex-wrap:wrap; gap:6px; padding:8px; border:1px solid var(--line); background:#fff; border-radius:7px; }
.page-sections a { padding:8px 13px; font-size:11px; font-weight:650; color:#51657d; border-radius:4px; }
.page-sections a:hover { color:#85004a; background:#f8edf3; }
section[id],article[id] { scroll-margin-top:24px; }
.result-count,.page-hint,.field-hint,.login-footnote { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.page-hint { border-left:2px solid #9aacbf; padding:3px 12px; }
.empty-state,.media-empty,.empty { padding:22px; border:1px dashed #ccd8e5; border-radius:7px; color:#6a7d93; background:#f8fafc; font-size:12px; line-height:1.8; text-align:center; }
.empty-state h3 { margin-top:0; color:var(--ink); }
.table-wrap,.table-responsive,.responsive-table-wrap { border:1px solid var(--line); background:#fff; border-radius:7px; overflow:auto; max-width:100%; }
.table-wrap table,.table-responsive table,.responsive-table-wrap table { margin:0; }
.table-wrap:focus-visible,.table-responsive:focus-visible { outline:3px solid #477caa; outline-offset:2px; }
.actions-cell { white-space:normal; min-width:150px; }
.actions-cell > * { margin:3px 6px 3px 0; }
.admin-content :where(td,dd,code,.resource-row strong,.media-path) { overflow-wrap:anywhere; }
.badge { line-height:1.5; border-radius:4px; padding:4px 8px; font-size:10px; }
.badge.danger { color:#a12242; background:#fff0f3; }
.badge.success { color:#167548; background:#e8f7ef; }
.filter-bar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:0; padding:16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.filter-bar>input:not([type=hidden]) { flex:1 1 230px; min-width:140px; }
.filter-bar>select { flex:0 1 230px; min-width:140px; }
.filter-bar button,.filter-bar a { flex-shrink:0; }
.filter-field,.collection-tools label { display:grid; gap:6px; font-size:10px; color:#62758c; }
.filter-field input { width:100%; }
.audit-filter .filter-field { flex:1 1 145px; max-width:190px; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 0; margin:0; font-size:11px; }
.pagination a { background:#fff; border:1px solid var(--line); padding:8px 12px; border-radius:5px; }
.collection-tools { display:flex; align-items:end; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.collection-tools label { flex:1 1 260px; max-width:460px; }
.collection-tools input { width:100%; }
.collection-tools .result-count { padding-block:10px; }
.form-panel { max-width:none; margin:0; padding:24px; border:1px solid var(--line); background:#fff; border-radius:9px; box-shadow:none; gap:20px; }
.form-panel label,.admin-form:not(.bundle-form) > label { display:grid; gap:7px; font-size:12px; font-weight:600; color:#465a72; }
.form-panel label:has(input[type=checkbox]),.admin-form > label:has(input[type=checkbox]) { display:flex; align-items:center; gap:9px; }
.form-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.form-panel textarea,.form-panel select { width:100%; }
.form-grid,.form-grid.two-columns { gap:20px; }
.form-section { margin:0; padding-top:20px; border-top:1px solid #e8eef4; }
.form-section h3 { margin:0 0 14px; font-size:13px; }
.inline-checks { gap:20px; flex-wrap:wrap; }
.form-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.editor-actions { position:sticky; bottom:0; z-index:8; margin:8px -8px -8px; padding:14px 8px 8px; background:#fffffffa; border-top:1px solid #e5ebf2; }
.editor-state { display:inline-flex; align-items:center; gap:8px; width:fit-content; margin:0; padding:7px 10px; border:1px solid #dce5ef; background:#f5f8fc; color:#5c7290; border-radius:5px; font-size:11px; }
.editor-state.is-dirty { border-color:#e7cf9d; color:#8a600d; background:#fff8e8; }
.validation:empty,.validation-summary-valid,.field-validation-valid { display:none; }
.validation-summary-errors { border:1px solid #ebbac6; background:#fff3f6; padding:12px; border-radius:6px; }
.validation-summary-errors ul { margin:0; padding-left:20px; }
.input-validation-error { border-color:#b4325a!important; }
.permission-grid,.check-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:10px; }
.permission-card,.check-card { border-radius:6px; border-color:var(--line); padding:13px; align-items:start; background:#fff; min-width:0; }
.permission-card strong { font-family:Consolas,monospace; font-size:11px; overflow-wrap:anywhere; }
.permission-card em { font-style:normal; line-height:1.6; }
.permission-card:has(input:checked),.check-card:has(input:checked) { background:#fcf5f9; border-color:#dcb9ce; }
.permission-card:not(:has(input:checked)) { background:#fff; border-color:var(--line); }
.permission-catalogue { display:grid; gap:10px; }
.permission-catalogue article { background:#fff; border:1px solid var(--line); border-radius:7px; padding:18px; gap:16px; }
.permission-catalogue h3 { font-size:13px; }
.permission-catalogue p { color:var(--muted); font-size:12px; margin-bottom:0; }
.role-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; }
.role-card { border:1px solid var(--line); border-radius:8px; box-shadow:none; padding:22px; }
.role-card h3 { margin-top:10px; }
.role-card>p { min-height:40px; font-size:12px; color:var(--muted); }
.role-card-head>strong { background:#f0f4f9; color:#516983; padding:8px; border-radius:5px; font-size:21px; }
.cms-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr)); gap:18px; }
.cms-card { border:1px solid var(--line); border-radius:8px; padding:20px; box-shadow:none; }
.cms-card h3 { font-size:15px; }
.cms-card header { gap:12px; flex-wrap:wrap; }
.cms-language-grid { gap:10px; }
.cms-language-card { min-width:0; border:1px solid #e1e8f1; border-radius:6px; padding:14px; background:#f8fafc; }
.cms-language-head { flex-wrap:wrap; gap:8px; }
.cms-actions { display:flex; flex-wrap:wrap; gap:6px; }
.cms-preview-grid { grid-template-columns:minmax(230px,300px) minmax(0,1fr); gap:20px; }
.cms-preview-meta { align-self:start; }
.structured-editor-form { padding:24px; }
.structured-editor-head { flex-wrap:wrap; gap:12px; padding:0 0 16px; border-bottom:1px solid var(--line); }
.structured-editor-root { min-width:0; }
.structured-card,.structured-group { border-radius:7px; border-color:var(--line); box-shadow:none; }
.json-editor { font-family:Consolas,monospace; font-size:12px; line-height:1.8; tab-size:2; }
.advanced-json-preview pre,.json-preview { border-radius:6px; background:#172638; color:#d9e5f2; padding:18px; font:12px/1.8 Consolas,monospace; max-height:440px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.content-search-form label { min-width:0; }
.content-search-summary { border-radius:8px; background:#fff; border:1px solid var(--line); }
.content-search-hit { border-radius:8px; border-color:var(--line); }
.content-hit-head { flex-wrap:wrap; gap:10px; }
.content-hit-body { min-width:0; }
.content-hit-preview { overflow-wrap:anywhere; font-size:13px; }
.selection-toolbar { position:sticky; top:8px; z-index:7; box-shadow:0 4px 12px #1a304d0a; }
.contact-status-grid { gap:10px; }
.contact-status-card { border:1px solid var(--line); border-radius:7px; padding:16px; box-shadow:none; }
.contact-status-card.is-active { border-color:#b26f96; background:#fcf4f8; }
.contact-detail-grid { grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:20px; }
.contact-message-text { background:#f7f9fc; border:1px solid #e2e9f1; border-radius:6px; padding:20px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; }
.media-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:18px; }
.media-card { border:1px solid var(--line); border-radius:8px; box-shadow:none; }
.media-preview { background:#f0f4f8; }
.media-card-body h3 { font-size:14px; overflow-wrap:anywhere; }
.media-card-body p { font-size:11px; }
.media-upload-panel { display:grid; grid-template-columns:1.5fr 1fr 1fr auto; align-items:end; gap:16px; }
.media-edit-grid { grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr); gap:20px; }
.media-edit-grid>div { display:grid; gap:20px; align-content:start; }
.media-edit-preview { background:#f2f5f9; border-radius:7px; }
.media-edit-preview img { max-height:450px; object-fit:contain; margin:auto; }
.media-path { display:block; margin-top:12px; color:#637b95; }
.danger-panel { border:1px solid #edc9d3; background:#fffafb; }
.danger-panel h3 { color:#a1294a; }
.database-status-grid { gap:18px; }
.database-card .definition-grid { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
.definition-grid { gap:16px; }
.definition-grid strong { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.definition-grid span { color:#73859b; font-size:10px; }
.audit-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.audit-event-panel { grid-column:1/-1; }
.resource-card { border:1px solid var(--line); border-radius:7px; background:#fff; margin-top:14px; padding:18px; }
.resource-card .inline-actions { border-top:1px solid #e7edf4; padding-top:14px; margin-top:16px; gap:8px; flex-wrap:wrap; }
.inline-actions form { display:flex; flex-wrap:wrap; gap:6px; }
.resource-row { gap:12px; }
.server-storage-grid,.deployment-card-grid,.health-control-grid { gap:16px; }
.deployment-top-grid { align-items:start; }
.deployment-card { padding:18px; }
.deployment-card h3 { overflow-wrap:anywhere; }
.project-storage-summary { border-top:1px solid var(--line); padding-top:14px; }
.project-storage-summary dl div { gap:12px; }
.agent-update-form,.service-deploy { min-width:230px; }
.inline-delete-form { display:block; margin:12px 0 0; }
.service-filter { display:flex; align-items:end; flex-wrap:wrap; gap:20px; }
.service-filter label:first-child { flex:1 1 250px; max-width:400px; }
.service-actions { display:flex; flex-wrap:wrap; gap:6px; min-width:180px; }
.service-actions button { font:600 11px/1.5 inherit; padding:7px 9px; border-radius:5px; border:1px solid var(--line); background:#f5f8fb; cursor:pointer; }
.service-actions button[value=Stop] { color:#a4294c; background:#fff5f7; border-color:#edcdd6; }
.service-deploy { display:grid; gap:8px; }
.service-deploy select { width:100%; }
button:disabled { opacity:.45; cursor:not-allowed; }
.proxy-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.proxy-form details,.proxy-form>button { grid-column:1/-1; }
.service-observation-note { font-size:11px; color:var(--muted); }
.refresh-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; font-size:10px; color:var(--muted); }
.refresh-controls [aria-pressed=true] { color:#8a600d; background:#fff3d6; }
.install-monitor-grid { align-items:start; gap:20px; }
.install-monitor-stage,.health-control-card { border:1px solid var(--line); border-radius:7px; box-shadow:none; }
.install-monitor-log,.live-log { background:#152436; color:#dce7f3; border:1px solid #2b4058; border-radius:6px; font-family:Consolas,monospace; }
.live-log { min-height:250px; max-height:540px; }
.log-line { grid-template-columns:80px 100px minmax(0,1fr); font-size:11px; }
.log-line span { overflow-wrap:anywhere; }
.live-log-panel,.deployment-monitor-grid>section { min-width:0; }
.timeline-step>div { border-radius:6px; border-color:var(--line); min-width:0; }
.timeline-step>span { border-radius:5px; }
.deployment-job-hero { border-top:3px solid #8ca1b9; }
.deployment-action-cluster { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.storage-refresh-state { font-size:11px; color:#a46c12; background:#fff8e8; padding:10px 14px; border-radius:5px; }
.ops-hero { border-radius:9px; }
.ops-settings-body { gap:18px; }
.ops-settings-body>section { min-width:0; }
.ops-settings-body dl { display:grid; gap:8px; }
.ops-settings-body dt { font-size:11px; color:var(--muted); }
.ops-settings-body dd { margin:0 0 9px; }
.ops-settings-body form { margin:12px 0; }
.ops-settings-body form:has(textarea) { display:grid; gap:14px; }
.ops-settings-body .notice { margin-top:12px; }
.ops-panel,.ops-server-card { border-radius:8px; }
.ops-table-wrap { border-radius:6px; }
.ops-dashboard details { scroll-margin-top:12px; }
.login-body .login-card { width:min(100%,460px); }
.login-card h2 { font-size:26px; }
.login-back { display:inline-flex; margin-top:20px; font-size:11px; color:#647b95; }
.login-footnote { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.state-code { display:inline-flex; align-items:center; justify-content:center; min-width:45px; min-height:36px; padding:6px 10px; border:1px solid #dfc7d4; border-radius:5px; color:#85004a; background:#fcf3f8; font:700 16px Consolas,monospace; margin-bottom:16px; }
.full-page-state,.consent-page { grid-column:1/-1; min-height:100vh; }
.consent-card { max-width:650px!important; width:100%; }
.consent-card p { font-size:12px; line-height:1.9; }
.consent-details { display:grid; gap:10px; background:#f5f8fb; padding:16px; border-radius:6px; }
.consent-details dd { margin:0; overflow-wrap:anywhere; }
.demo-label { border:1px solid #ccd9e8; background:#edf3fa; color:#4f6888; padding:12px 16px; border-radius:6px; font-size:11px; }
.coming-soon { min-height:360px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.coming-soon-mark { border-radius:8px; background:#f0f4fa; color:#617994; box-shadow:none; }
.coming-soon-inner { display:grid; justify-items:center; gap:12px; }
.health-body { background:#f2f5f8; color:#182536; }
.health-shell { max-width:1160px; padding:32px 24px; }
.health-hero { border-radius:10px; box-shadow:none; border:1px solid #dce4ec; }
.health-hero h1 { font-size:clamp(24px,3vw,36px); line-height:1.45; }
.health-summary-grid article,.health-components { border:1px solid #dce4ec; border-radius:8px; box-shadow:none; background:#fff; }
.health-component { border-radius:6px; }
.health-orbit { border-radius:9px; width:160px; height:100px; }
.health-pulse { display:none; }
.health-hero.is-healthy { background:linear-gradient(120deg,#fff,#eef7f4); }
.health-hero.is-unhealthy { background:linear-gradient(120deg,#fff,#fff2f4); }
@media(min-width:1500px) { .admin-content[data-page=dashboard] .dashboard-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:1200px) { .media-upload-panel { grid-template-columns:1fr 1fr; } .cms-language-grid { grid-template-columns:1fr; } }
@media(max-width:1000px) { .cms-preview-grid,.media-edit-grid,.contact-detail-grid,.audit-detail-grid { grid-template-columns:1fr; } .audit-event-panel { grid-column:auto; } .health-summary-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:720px) { .admin-content { gap:16px; } .form-panel { padding:18px 14px; } .media-upload-panel,.proxy-form { grid-template-columns:1fr; } .proxy-form details,.proxy-form>button { grid-column:auto; } .form-grid,.form-grid.two-columns { grid-template-columns:1fr; } .wide-field { grid-column:auto; } .editor-actions { position:static; } .selection-toolbar { position:static; } .form-actions>* { flex:1 1 auto; text-align:center; } .contact-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .log-line { grid-template-columns:65px minmax(0,1fr); } .log-line span { grid-column:1/-1; } .health-shell { padding:20px 12px; } .health-hero { padding:24px; } .health-orbit { display:none; } .health-component { grid-template-columns:12px minmax(0,1fr); } .health-state { grid-column:2; justify-self:start; } .health-summary-grid { grid-template-columns:1fr; } .audit-filter .filter-field { max-width:none; } .page-sections { gap:4px; } .page-sections a { padding:8px; } }
.site-health-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:3px solid #8299b2; }
.site-lifecycle-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; }
.lifecycle-retirement { flex-basis:100%; padding:16px; border-radius:7px; }
.lifecycle-retirement form { display:grid; gap:14px; }
.artifact-connection-key { display:block; overflow-wrap:anywhere; padding:10px; background:#fff; border:1px solid #e6d1ac; }
.admin-topbar { flex-wrap:wrap; }
.topbar-title-wrap { flex:1 1 280px; }
.topbar-actions { max-width:100%; flex-wrap:wrap; }
.admin-content .deployment-form label { align-content:start; align-items:start; }
.admin-content .deployment-form :is(input:not([type=checkbox]),select,textarea) { border-color:#d4dfea; border-radius:6px; font-size:12px; }
.form-grid { align-items:start; }
button.primary-action { border:1px solid transparent; cursor:pointer; }
@media(max-width:720px) { .ops-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; } .ops-hero { display:block; } }

/* Collapsed totals keep application cards compact; full figures remain accessible. */
.project-storage-summary > summary { cursor:pointer; font-size:13px; line-height:1.6; }
.project-storage-summary > summary strong { font-variant-numeric:tabular-nums; margin-left:6px; }
.page-sections a[aria-current="page"] { background:var(--ink,#183d34); color:white; }
.lifecycle-archive form label { display:block; margin:12px 0; }
.lifecycle-archive form input:not([type="hidden"]) { max-width:360px; width:100%; margin-top:6px; }

/* 2.3.5: card contents retain their natural size; detail opens outside the grid. */
.deployment-card-grid { align-items:start; }
.deployment-card { align-content:start; align-self:start; }
.project-storage-summary { margin-top:0; }
.storage-total { display:flex; align-items:center; gap:12px; width:100%; padding:12px; border:1px solid #d8e5e9; border-radius:8px; background:#f2f8f8; color:#163d45; text-align:left; cursor:pointer; font:inherit; }
.storage-total strong { margin-left:auto; white-space:nowrap; font-variant-numeric:tabular-nums; }
.storage-dialog { width:min(640px,calc(100vw - 32px)); max-height:85dvh; box-sizing:border-box; padding:24px; border:1px solid #cbdadf; border-radius:14px; color:#18343f; background:#fff; box-shadow:0 24px 90px #102d4940; }
.storage-dialog::backdrop { background:#0d293c70; }
.storage-dialog-head { display:flex; justify-content:space-between; align-items:start; gap:16px; margin-bottom:16px; }
.storage-dialog h3 { margin:6px 0 0; }
.storage-dialog dl { display:grid; gap:0; margin:20px 0; }
.storage-dialog dl div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; padding:10px 0; border-top:1px solid #e4edef; }
.storage-dialog dt { max-width:none; color:#526772; }
.storage-dialog dd { margin:0; font-weight:600; text-align:right; }
.storage-dialog p,.storage-dialog small { line-height:1.6; }
.solution-choice { border:0; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:12px; }
.solution-choice legend { font-weight:700; margin-bottom:8px; }
.deployment-form .solution-choice label { display:flex; align-items:center; padding:12px; border:1px solid #d9e4eb; border-radius:8px; }
.deployment-form .solution-choice input { width:auto; accent-color:#147d77; }
.deployment-form [hidden] { display:none; }
.site-advanced { padding-top:12px; border-top:1px solid #e1e9ee; }
.site-advanced summary,.starter-source-actions summary { cursor:pointer; }
.site-advanced > div { margin-top:16px; }
.available-update { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; background:#edf9f4; border:1px solid #c7e5d8; border-radius:8px; }
.available-update > div { display:grid; gap:4px; }
.available-update span { font-size:12px; color:#34715d; }
@media(max-width:480px) { .storage-dialog { padding:18px; }.storage-dialog dl div { grid-template-columns:1fr; gap:4px; }.storage-dialog dd { text-align:left; } }
.page-sections.deployments-navigation a.deployments-console-button { background: var(--annovia, #85004a); color: #fff; }
.page-sections.deployments-navigation a.deployments-console-button:hover { background: var(--annovia-dark, #6e003d); }
