.admin-app { --ink: #202932; --navy: #263d4f; --red: #126d80; --shadow: none; --radius: 4px; background: #fff; font-size: 14px; }
.admin-app h1 { font-size: 24px; line-height: 1.35; margin: 0; }
.admin-app h2 { font-size: 19px; line-height: 1.4; }
.admin-app h3 { font-size: 16px; }
.admin-app button, .admin-app a, .admin-app summary { -webkit-tap-highlight-color: transparent; }
.admin-app button:focus-visible, .admin-app a:focus-visible, .admin-app summary:focus-visible, .admin-app input:focus-visible { outline: 2px solid #126d80; outline-offset: 3px; }
.admin-app button:disabled { opacity: .55; cursor: wait; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-app .admin-header { min-height: 76px; padding: 10px 28px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; gap: 16px; flex-direction: row; }
.admin-app .admin-brand { gap: 12px; min-width: 0; font-weight: 650; }
.admin-brand img { width: 66px; height: 50px; object-fit: cover; }
.admin-app .admin-brand strong { font-size: 15px; line-height: 1.5; }
.admin-app .admin-brand span { display: block; width: auto; height: auto; border: 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.quiet-button, .primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 4px; border: 1px solid var(--line); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; background: #fff; color: var(--ink); }
.quiet-button:hover { background: #f0f5f6; }
.primary-button { background: #126d80; border-color: #126d80; color: #fff; }
.primary-button:hover { background: #0d5868; }
.admin-login { width: min(400px, calc(100% - 40px)); margin: 80px auto; }
.admin-login h1 { margin-bottom: 24px; }
.login-modes { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.login-modes button { padding: 12px 8px; background: transparent; color: var(--ink); border: 0; border-bottom: 2px solid transparent; border-radius: 0; font: inherit; cursor: pointer; }
.login-modes button[aria-pressed=true] { color: #075968; border-bottom-color: #126d80; font-weight: 650; }
.permission-fields { border: 1px solid var(--line); padding: 16px; }
.permission-fields > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-fields .checkbox-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.permission-fields input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; }
[data-admin-users] .admin-item, [data-admin-audit-list] .admin-item { overflow-wrap: anywhere; }
[data-admin-identity] { font-size: 12px; color: var(--muted); }
[data-password-error] { color: #a42d32; }
@media (max-width: 650px) {
  [data-admin-identity] { display: none; }
  [data-change-password] span { display: none; }
  .permission-fields > div { grid-template-columns: 1fr; }
  [data-admin-users] .item-actions { flex-wrap: wrap; }
}
.admin-app .token-panel { border: 0; background: transparent; padding: 0; box-shadow: none; }
.admin-app .token-panel input { min-height: 46px; }
.admin-app .token-panel button { min-height: 44px; }
.admin-app .admin-workspace { display: grid; grid-template-columns: 202px minmax(0, 1fr); padding: 0; min-height: calc(100vh - 76px); }
.workspace-sidebar { padding: 24px 14px; border-right: 1px solid var(--line); background: #f6f8f8; }
.workspace-nav { display: grid; gap: 5px; }
.workspace-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: 4px; font-weight: 550; color: #56636b; }
.workspace-nav a:hover { background: #eaf0f0; }
.workspace-nav a[aria-current=page] { color: #075968; background: #e1eff0; box-shadow: inset 3px 0 #126d80; }
.system-menu { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 13px; color: var(--muted); }
.system-menu summary { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.system-menu summary::-webkit-details-marker { display: none; }
.system-menu a { display: block; padding: 8px 14px 8px 44px; }
.system-menu a:hover, .system-menu a[aria-current=page] { color: #075968; }
.workspace-body { min-width: 0; padding: 28px 36px 56px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.workspace-heading p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.workspace-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); min-height: 43px; margin-bottom: 22px; overflow-x: auto; }
.workspace-tabs a { white-space: nowrap; padding: 8px 0 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.workspace-tabs a[aria-current=page] { color: #075968; border-bottom-color: #126d80; font-weight: 650; }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.workspace-search { display: flex; gap: 8px; align-items: center; width: min(300px, 100%); padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: #738086; }
.workspace-search input { width: 100%; min-width: 0; height: 38px; border: 0; outline-offset: 0; background: transparent; font: inherit; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-app .admin-section { border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; background: transparent; }
.admin-app .two-column, .admin-app .registry-admin-grid { display: block; }
.admin-app .admin-section > .section-title, .admin-app .admin-section > div > .section-title { display: none; }
.admin-app .admin-section .eyebrow { display: none; }
.admin-app .admin-section .compact-title { display: flex; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-app .admin-section .admin-section-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.admin-app .admin-section .form-stack:empty, .admin-app .registry-form-stack:empty { display: none; }
.admin-app .admin-table, .admin-app .admin-list, .admin-app [data-site-content-list] { display: grid; gap: 0; }
.admin-app .admin-item, .admin-app .admin-row, .admin-app .admin-list-row { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; min-width: 0; overflow-wrap: anywhere; }
.admin-app .admin-list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-app .admin-list-row p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.admin-app .admin-list-row button { flex-shrink: 0; }
.admin-app .admin-row { gap: 20px; }
.admin-app .admin-row strong, .admin-app .admin-item strong { font-size: 15px; font-weight: 600; }
.admin-app .admin-row small, .admin-app .admin-item small { font-size: 12px; }
.admin-app .row-actions, .admin-app .item-actions { align-items: center; gap: 8px; }
.admin-app .row-actions button, .admin-app .item-actions button { background: #fff; color: #345060; border: 1px solid var(--line); font-weight: 500; border-radius: 4px; }
.admin-app .row-actions button:hover, .admin-app .item-actions button:hover { background: #f0f6f6; }
.admin-app .record-edit { display: inline-flex; align-items: center; gap: 5px; }
.record-edit .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.row-menu { position: relative; font-size: 12px; }
.row-menu summary { display: flex; align-items: center; gap: 4px; padding: 5px 9px; min-height: 32px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu[open] > div { position: absolute; z-index: 6; right: 0; top: 100%; display: grid; gap: 4px; width: max-content; min-width: 100px; max-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 16px #182f4320; border-radius: 4px; }
.row-menu[open] button { text-align: left; }
.admin-app .status { border-radius: 3px; font-weight: 550; min-width: 64px; }
.admin-app .registry-list-panel { margin-bottom: 28px; }
.admin-app .dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 36px; border-block: 1px solid var(--line); }
.admin-app .dashboard-grid article { background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 20px; }
.admin-app .dashboard-grid article:last-child { border-right: 0; }
.admin-app .dashboard-grid a { display: block; }
.admin-app .dashboard-grid strong { font-size: 30px; color: #126d80; font-weight: 550; }
.admin-app .dashboard-grid span { font-size: 13px; font-weight: 400; }
.admin-app .workbench-subtitle { font-size: 16px; margin: 26px 0 12px; }
.workbench-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 10px 0; }
.workbench-links a { color: #126d80; font-weight: 550; }
.workbench-status a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workbench-status span { color: var(--muted); font-size: 13px; text-align: right; }
.empty-state { padding: 42px 16px; margin: 0; text-align: center; color: #6d7880; background: #f9fbfb; border-block: 1px solid #edf1f2; }
.admin-app .workflow-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; }
.admin-app .readiness-check, .admin-app .scorecard-dimension { min-width: 0; overflow-wrap: anywhere; }
.admin-app .readiness-check > div { min-width: 0; }
.admin-editor { width: min(740px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 6px; padding: 0; color: var(--ink); background: #fff; }
.admin-editor::backdrop { background: #142d405c; }
.editor-heading { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; }
.editor-heading h2 { font-size: 18px; }
.editor-heading button { width: 34px; height: 34px; padding: 7px; border: 0; background: #f2f5f5; border-radius: 4px; cursor: pointer; }
.admin-app .admin-editor .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px; border: 0; margin: 0; }
.admin-editor .admin-form > h3 { display: none; }
.admin-editor .admin-form > label:has(textarea), .admin-editor .admin-form > label.checkbox-row,
.admin-editor .admin-form > .site-content-languages, .admin-editor .admin-form > details,
.admin-editor .admin-form > .localized-content-editor, .admin-editor .admin-form > p,
.admin-editor .admin-form > div:not(.editor-heading), .admin-editor .admin-form > strong,
.admin-editor .admin-form > button[type=submit] { grid-column: 1 / -1; }
.admin-editor .admin-form > button[type=submit] { justify-self: end; min-width: 120px; margin-top: 4px; }
.admin-editor .admin-form .site-content-languages { grid-template-columns: 1fr; }
.admin-editor .admin-form fieldset { border: 0; padding: 0; margin: 0; }
.admin-editor .admin-form legend { display: none; }
.admin-editor .admin-form fieldset label { margin-bottom: 16px; }
.admin-editor .admin-form textarea { resize: vertical; }
.admin-editor .admin-form label.checkbox-row { grid-template-columns: 18px minmax(0, 1fr); align-items: start; font-weight: 400; }
.admin-editor .checkbox-row input { width: 16px; min-height: 16px; height: 16px; margin-top: 3px; }
.editor-error { color: #b32738; font-size: 13px; }
@media (max-width: 1000px) {
  .admin-app .admin-workspace { grid-template-columns: 170px minmax(0, 1fr); }
  .workspace-body { padding: 24px; }
  .workspace-sidebar { padding: 20px 10px; }
  .workspace-nav a { padding: 10px; gap: 8px; }
  .admin-app .admin-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .admin-app .admin-header { position: static; padding: 10px 14px; min-height: 66px; align-items: center; }
  .admin-brand img { width: 45px; height: 40px; }
  .admin-app .admin-brand { gap: 8px; }
  .admin-app .admin-brand strong { font-size: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .quiet-button { font-size: 12px; padding: 7px; border: 0; }
  .header-actions .ui-icon { display: none; }
  .header-actions [data-change-password] .ui-icon { display: block; }
  .admin-app .admin-workspace { display: block; }
  .workspace-sidebar { padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .workspace-nav a { justify-content: center; gap: 6px; min-height: 40px; padding: 8px 4px; font-size: 13px; }
  .system-menu { margin: 6px 0 0; padding: 0; border: 0; }
  .system-menu summary { padding: 7px 4px; gap: 8px; }
  .system-menu a { display: inline-block; padding: 6px 16px 6px 28px; }
  .workspace-body { padding: 20px 16px 40px; }
  .workspace-heading { margin-bottom: 16px; }
  .admin-app h1 { font-size: 22px; }
  .workspace-tabs { gap: 22px; margin-bottom: 16px; }
  .workspace-toolbar { gap: 12px; }
  .workspace-search { width: 100%; }
  .workspace-actions { width: 100%; }
  .admin-app .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-app .dashboard-grid article { padding: 18px 12px; }
  .admin-app .dashboard-grid article:nth-child(2) { border-right: 0; }
  .admin-app .dashboard-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workbench-status a { flex-direction: column; gap: 4px; }
  .workbench-status span { text-align: left; }
  .admin-app .admin-row { grid-template-columns: 1fr; }
  .admin-app .row-actions { justify-content: flex-start; }
  .admin-app .admin-editor .admin-form { grid-template-columns: 1fr; padding: 18px; }
  .editor-heading { padding: 14px 18px; }
  .admin-editor { width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  .admin-app .readiness-grid, .admin-app .scorecard-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-app .workflow-board { grid-template-columns: 1fr; }
}
