/* Shared theme tokens: every EnyaAi page uses the same materials and states. */
:root, html .apple-workspace {
  --bg: #f6f6f7; --surface: #fff; --surface-solid: #fff; --surface-soft: #eeeef0;
  --text: #202124; --muted: #5f6368; --subtle: #5f6368;
  --line: #dcdde1; --line-strong: #bfc1c8;
  --accent: #245cc5; --accent-bright: #245cc5; --accent-soft: #e8effc;
  --control-bg: #eeeef0; --control-hover: #e3e3e7;
  --selected-bg: #e8effc; --selected-text: #214e9a;
  --primary-bg: #245cc5; --primary-hover: #1e4fae; --on-primary: #fff;
  --assistant-bg: #e5f1ee; --assistant-text: #185d57;
  --scroll-thumb: #a1a1aa; --scroll-thumb-hover: var(--muted);
  --success: #217a35; --success-soft: #edf7ee;
  --warning: #946200; --warning-soft: #fff8e8;
  --danger: #c9342e; --danger-soft: #fff1f0;
  --shadow: 0 2px 6px rgb(0 0 0 / 3%), 0 10px 28px rgb(0 0 0 / 4%);
  --shadow-hover: 0 3px 10px rgb(0 0 0 / 5%), 0 14px 36px rgb(0 0 0 / 6%);
  --shadow-floating: 0 4px 16px rgb(0 0 0 / 8%), 0 24px 72px rgb(0 0 0 / 16%);
  --chrome: rgb(255 255 255 / 90%); --hover-fill: #eeeef0;
  --motion-fast: 150ms; --motion-standard: 240ms; --motion-ease: cubic-bezier(.2, .8, .2, 1);
}
html { color-scheme: light; background: var(--bg); }
html.theme-dark { color-scheme: dark; }
html .apple-workspace {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
html.theme-dark, html.theme-dark .apple-workspace {
  --bg: #17181b; --surface: #222327; --surface-solid: #222327; --surface-soft: #2c2d32;
  --text: #f1f2f4; --muted: #b6b8bf; --subtle: #b6b8bf;
  --line: #3b3d43; --line-strong: #62656f;
  --accent: #a3bef2; --accent-bright: #a3bef2; --accent-soft: #293b5b;
  --control-bg: #2c2d32; --control-hover: #35363c;
  --selected-bg: #293b5b; --selected-text: #d7e4ff;
  --primary-bg: #3363c8; --primary-hover: #3b6acd; --on-primary: #fff;
  --assistant-bg: #203b38; --assistant-text: #a3ddd3;
  --scroll-thumb: #72747c; --scroll-thumb-hover: var(--muted);
  --success: #65c87a; --success-soft: #263a2d;
  --warning: #e7bc59; --warning-soft: #3e3522;
  --danger: #ff8a82; --danger-soft: #432c2c;
  --shadow: 0 2px 8px rgb(0 0 0 / 16%), 0 12px 32px rgb(0 0 0 / 14%);
  --shadow-hover: 0 3px 12px rgb(0 0 0 / 20%), 0 18px 40px rgb(0 0 0 / 18%);
  --shadow-floating: 0 4px 16px rgb(0 0 0 / 24%), 0 24px 72px rgb(0 0 0 / 34%);
  --chrome: rgb(34 35 39 / 94%); --hover-fill: #2c2d32;
}
html.theme-dark .apple-workspace { background: var(--bg); color: var(--text); }
html .apple-workspace *, html .apple-workspace *::before, html .apple-workspace *::after { box-sizing: border-box; }
html .apple-workspace [hidden] { display: none !important; }
html .apple-workspace :is(button, input, select, textarea) { font-family: inherit; font-size: 15px; font-weight: 400; }
html .apple-workspace :is(button, a, summary, input, select, textarea):focus-visible,
html[data-input-modality="keyboard"] .apple-workspace :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
html .apple-workspace button { min-height: 36px; border-radius: 10px; padding: 7px 12px; background: var(--control-bg); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-weight: 500; transform: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
html .apple-workspace button:hover { color: var(--text); background: var(--control-hover); border-color: var(--line-strong); box-shadow: none; transform: none; }
html .apple-workspace button.primary, html .apple-workspace button.primary:hover { color: var(--on-primary); border-color: transparent; background: var(--primary-bg); box-shadow: none; }
html .apple-workspace button.primary:hover { background: var(--primary-hover); }
html .apple-workspace button:disabled { opacity: .45; }
html .apple-workspace :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { max-width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px; color: var(--text); background: var(--surface); line-height: 1.5; }
html .apple-workspace :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
html .apple-workspace select option { background: var(--surface); color: var(--text); }
html .apple-workspace textarea { min-height: 110px; resize: vertical; }
html .apple-workspace :is(h1, h2, h3, strong) { color: var(--text); font-weight: 600; }
html .apple-workspace :is(p, small, label, summary) { line-height: 1.55; }
html .apple-workspace small { font-size: 13px; font-weight: 400; color: var(--muted); }
html .apple-workspace a { color: var(--accent); }
html .apple-workspace .shell { padding: 14px 14px 14px 228px; }
html .apple-workspace .sidebar { position: fixed; inset: 14px auto 14px 14px; width: 200px; height: auto; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--chrome); box-shadow: var(--shadow); overflow: hidden; }
html .apple-workspace .brand { gap: 10px; padding: 0 4px 24px; border: 0; }
html .apple-workspace .brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--on-primary); background: var(--primary-bg); box-shadow: none; font-size: 12px; font-weight: 600; }
html .apple-workspace .brand-mark::before { content: none; }
html .apple-workspace .brand h1 { margin: 0; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
html .apple-workspace .brand .eyebrow, html .apple-workspace .nav-section { display: none; }
html .apple-workspace .primary-navigation { flex: 1 1 auto; min-height: 0; align-content: start; overflow-y: auto; gap: 5px; margin-bottom: 12px; }
html .apple-workspace :is(nav a, .nav-group-summary) { min-height: 36px; padding: 7px 11px; color: var(--text); font-size: 14px; font-weight: 400; border-radius: 7px; transform: none; box-shadow: none; }
html .apple-workspace :is(nav a:hover, .nav-group-summary:hover) { color: var(--text); background: var(--control-hover); transform: none; }
html .apple-workspace :is(nav a.active, nav a[aria-current="page"]) { color: var(--text); background: var(--control-bg); box-shadow: none; font-weight: 600; }
html .apple-workspace .nav-group[open] .nav-group-summary { color: var(--text); background: transparent; }
html .apple-workspace .nav-group-children { padding-left: 28px; gap: 3px; }
html .apple-workspace .nav-group-children .nav-link { color: var(--muted); font-size: 14px; font-weight: 400; }
html .apple-workspace .nav-group-children .nav-link.active { color: var(--text); background: var(--control-bg); box-shadow: none; font-weight: 600; }
html .apple-workspace .nav-icon { color: var(--muted); font-size: 18px; }
html .apple-workspace .side-note { position: static; flex: 0 0 auto; width: auto; margin-top: auto; border: 0; background: transparent; padding: 8px 12px; gap: 10px; }
html .apple-workspace .side-note strong { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .side-note p { display: none; }
html .apple-workspace .pulse { width: 7px; height: 7px; box-shadow: none; }
html .apple-workspace .topbar { top: 14px; min-height: 56px; padding: 8px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--chrome); }
html .apple-workspace .topbar-leading { min-width: 0; gap: 8px; }
html .apple-workspace .breadcrumb { min-width: 0; gap: 10px; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
html .apple-workspace .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
html .apple-workspace .breadcrumb strong { color: var(--text); font-weight: 500; }
html .apple-workspace :is(.icon-button, .language-button, .command-trigger) { min-height: 36px; height: 36px; border-color: transparent; color: var(--muted); background: transparent; font-size: 14px; font-weight: 400; }
html .apple-workspace .icon-button { width: 36px; min-width: 36px; font-size: 20px; }
html .apple-workspace .command-trigger { padding: 0 10px; }
html .apple-workspace .command-trigger > span:first-child { color: var(--muted); }
html .apple-workspace kbd { color: var(--muted); background: var(--surface-soft); border-color: var(--line); font-size: 12px; }
html .apple-workspace .refresh-button { min-height: 32px; min-width: 0; font-size: 13px; padding: 6px 11px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); }
html .apple-workspace .ui-icon { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
html .apple-workspace .nav-icon { display: grid; place-items: center; }
html .apple-workspace nav a.active .nav-icon { color: currentColor; }
html .apple-workspace .icon-button { display: inline-grid; place-items: center; padding: 0; }
html .apple-workspace .account-menu-trigger { border: 0; background: transparent; box-shadow: none; padding: 3px; }
html .apple-workspace .account-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--text); font-size: 13px; font-weight: 500; }
html .apple-workspace .account-name { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .account-menu-popover { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hover); backdrop-filter: none; -webkit-backdrop-filter: none; transform-origin: top right; }
html .apple-workspace main { max-width: 1440px; padding: 16px 4px 32px; gap: 18px; }
html .apple-workspace :is(main, .app-area, .workspace-content, .overview-side-rail, .management-primary, .management-primary > div, .section-head > div) { min-width: 0; }
html .apple-workspace .workspace-head { padding: 0; border: 0; }
html .apple-workspace .workspace-head h2 { margin: 0; color: var(--text); font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
html .apple-workspace :is(.workspace-head, .section-head) .eyebrow { display: none; }
html .apple-workspace :is(.overview-heading-copy, .section-caption) { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
html .apple-workspace .section-head { gap: 12px; align-items: center; margin-bottom: 16px; }
html .apple-workspace .section-head h2 { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.2px; line-height: 1.4; }
html .apple-workspace .section-link { min-height: 28px; padding: 2px 0; color: var(--accent); background: transparent; border: 0; font-size: 13px; font-weight: 400; white-space: nowrap; }
html .apple-workspace :is(.panel, .metric-card, .agent-card, .route-card, .token-row, .resource-card, .project-card, .cloud-asset-card) { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
html .apple-workspace :is(.panel, .metric-card, .agent-card, .route-card, .token-row, .resource-card, .project-card, .cloud-asset-card)::after { content: none; }
html .apple-workspace .panel { padding: 20px; color: var(--text); border-radius: 20px; }
html .apple-workspace .overview-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
html .apple-workspace .overview-head-status { color: var(--muted); font-size: 13px; text-align: right; }
html .apple-workspace .overview-pulse { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; width: 100%; padding: 0; margin-top: 2px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
html .apple-workspace .overview-pulse-item { min-width: 0; padding: 14px 18px; border-color: var(--line); }
html .apple-workspace .overview-pulse-item span { font-size: 13px; font-weight: 400; color: var(--muted); }
html .apple-workspace .overview-pulse-item strong { display: block; margin: 5px 0 0; font-size: 24px; line-height: 1.25; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
html .apple-workspace .overview-pulse-item small { display: none; }
html .apple-workspace .operation-brief { min-height: 64px; padding: 12px 16px; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
html .apple-workspace .operation-brief-status { align-items: center; gap: 12px; }
html .apple-workspace .operation-brief strong { font-size: 15px; font-weight: 500; color: var(--text); }
html .apple-workspace .operation-brief p { margin-top: 3px; color: var(--muted); font-size: 14px; }
html .apple-workspace .operation-brief button { min-width: 88px; min-height: 34px; font-size: 13px; }
html .apple-workspace .overview-dashboard { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
html .apple-workspace .overview-dashboard .overview-panel { min-width: 0; padding: 18px; }
html .apple-workspace .overview-dashboard .section-head { margin-bottom: 12px; }
html .apple-workspace .overview-dashboard .section-head h2 { margin: 0; font-size: 17px; }
html .apple-workspace .overview-changes-panel { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--line); }
html .apple-workspace .overview-change-list { grid-template-columns: minmax(0, 1fr); }
html .apple-workspace .overview-change-row { padding: 12px 16px; }
html .apple-workspace .overview-change-row strong { color: var(--text); font-size: 14px; font-weight: 500; }
html .apple-workspace .overview-change-row small { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .runtime-health-strip { margin-bottom: 12px; padding-bottom: 16px; border-color: var(--line); }
html .apple-workspace :is(.runtime-health-primary p, .runtime-health-dependency p) { display: none; }
html .apple-workspace :is(.runtime-health-primary > span, .runtime-health-dependency > span, .visual-label, .request-legend) { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace :is(.runtime-health-primary strong, .runtime-health-dependency strong) { color: var(--text); font-size: 26px; font-weight: 500; }
html .apple-workspace .service-list-head { display: none; }
html .apple-workspace .service-row { grid-template-columns: 7px minmax(0, 1fr) auto; min-width: 0; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; gap: 10px; }
html .apple-workspace .service-row:hover { background: var(--surface-soft); color: var(--text); box-shadow: none; }
html .apple-workspace .service-row > div > strong { color: var(--text); font-size: 15px; font-weight: 400; }
html .apple-workspace :is(.service-row small, .service-row-usage, .service-row b) { display: none; }
html .apple-workspace .service-state { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .service-status-dot { width: 7px; height: 7px; box-shadow: none; }
html .apple-workspace .overview-action-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0; gap: 12px; box-shadow: none; }
html .apple-workspace .overview-action-row:hover { background: var(--surface-soft); box-shadow: none; }
html .apple-workspace .overview-action-kind, html .apple-workspace .overview-action-row small { display: none; }
html .apple-workspace .overview-action-row strong { color: var(--text); font-size: 15px; font-weight: 400; white-space: normal; }
html .apple-workspace .overview-action-row b { color: var(--accent); font-size: 14px; font-weight: 400; white-space: nowrap; }
html .apple-workspace .project-progress-summary { border-color: var(--line); gap: 7px; }
html .apple-workspace .project-progress-summary strong { font-size: 24px; font-weight: 500; color: var(--text); }
html .apple-workspace :is(.project-progress-summary span, .project-progress-summary small) { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .project-focus-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; padding: 10px 0; gap: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
html .apple-workspace :is(.service-row, .project-focus-row, .overview-action-row):last-child { border-bottom: 0; }
html .apple-workspace .project-focus-row > span, html .apple-workspace .project-focus-row small { display: none; }
html .apple-workspace .project-focus-row strong { font-size: 15px; font-weight: 400; color: var(--text); white-space: normal; }
html .apple-workspace .project-focus-row b { color: var(--accent); font-size: 14px; font-weight: 400; }
html .apple-workspace .overview-calm-state { padding: 12px 0; }
html .apple-workspace .overview-calm-state strong { color: var(--text); font-size: 16px; font-weight: 500; }
html .apple-workspace .overview-calm-state p { display: none; }
html .apple-workspace .overview-footer-link { color: var(--accent); font-size: 14px; font-weight: 400; }
html .apple-workspace .ui-disclosure { border: 0; background: transparent; }
html .apple-workspace .ui-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 400; list-style: none; }
html .apple-workspace .ui-disclosure > summary::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 140ms ease; flex: 0 0 auto; margin-right: 2px; }
html .apple-workspace .ui-disclosure[open] > summary::before { transform: rotate(135deg); }
html .apple-workspace .ui-disclosure > summary::-webkit-details-marker { display: none; }
html .apple-workspace .ui-disclosure[open] > summary { margin-bottom: 16px; }
html .apple-workspace .category-head { padding: 0 0 9px; margin-top: 18px; border: 0; background: transparent; }
html .apple-workspace .category-head h3 { font-size: 14px; font-weight: 500; color: var(--muted); }
html .apple-workspace .category-head > span { font-size: 13px; font-weight: 400; color: var(--muted); }
html .apple-workspace .management-list { gap: 0; overflow: hidden; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface); }
html .apple-workspace .management-row { display: flex; align-items: center; min-width: 0; min-height: 60px; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
html .apple-workspace .management-row:has(.entity-name-button, .entity-detail-button) { cursor: pointer; }
html .apple-workspace .management-row:hover { background: var(--surface-soft); }
html .apple-workspace .management-row:last-child { border-bottom: 0; }
html .apple-workspace .management-primary { flex: 1 1 auto; }
html .apple-workspace .management-primary h3 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
html .apple-workspace .management-primary small { margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .management-cell { flex: 0 0 auto; min-width: 0; max-width: 180px; text-align: right; }
html .apple-workspace .management-cell > span { font-size: 13px; color: var(--muted); font-weight: 400; }
html .apple-workspace .management-cell strong { font-size: 14px; font-weight: 400; color: var(--text); }
html .apple-workspace :is(.status, .release-state, .model-check-status) { font-size: 13px; font-weight: 500; border-radius: 6px; line-height: 1.5; padding: 3px 8px; box-shadow: none; max-width: 100%; white-space: nowrap; }
html .apple-workspace .status.running, html .apple-workspace .release-state.published { color: var(--success); background: var(--success-soft); border-color: transparent; }
html .apple-workspace .status.disabled { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
html .apple-workspace .status.stopped { color: var(--muted); background: var(--surface-soft); border-color: transparent; }
html .apple-workspace [aria-invalid="true"] { border-color: var(--danger); }
html .apple-workspace .entity-detail-button { color: var(--accent); border: 0; background: transparent; min-width: 44px; padding: 8px 4px; font-size: 14px; font-weight: 400; }
html .apple-workspace .entity-detail-button:hover { background: var(--surface-soft); }
html .apple-workspace .entity-name-button { display: block; width: 100%; min-height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); text-align: left; font-size: inherit; font-weight: 500; line-height: 1.5; box-shadow: none; }
html .apple-workspace .entity-name-button:hover { background: transparent; color: var(--accent); }
html .apple-workspace .entity-chevron { display: grid; place-items: center; width: 17px; height: 17px; color: var(--muted); font-size: 0; }
html .apple-workspace .operation-context > summary { min-height: 28px; font-size: 14px; font-weight: 400; color: var(--accent); }
html .apple-workspace .agent-runtime-summary { background: var(--surface-soft); border-color: var(--line); border-radius: 12px; }
html .apple-workspace .agent-runtime-summary-item { border-color: var(--line); padding: 16px; }
html .apple-workspace .agent-runtime-summary-item::before { content: none; }
html .apple-workspace .agent-runtime-summary-item span { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .agent-runtime-summary-item strong { font-size: 26px; font-weight: 500; color: var(--text); }
html .apple-workspace .agent-runtime-summary-item small { display: none; }
html .apple-workspace .ui-list-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
html .apple-workspace .ui-list-tools input { flex: 1 1 auto; max-width: 320px; min-width: 0; background: var(--surface-soft); border-color: transparent; }
html .apple-workspace .ui-list-tools input[type="search"] { max-width: 300px; }
html .apple-workspace .ui-list-tools output { color: var(--muted); font-size: 13px; }
html .apple-workspace .ui-list-empty { padding: 24px 0; color: var(--muted); font-size: 15px; }
html .apple-workspace :is(.release-empty, .release-error, .release-success, .composer-intro) { padding: 16px; border-radius: 10px; font-size: 15px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
html .apple-workspace .release-empty { color: var(--muted); background: var(--surface-soft); border: 0; }
html .apple-workspace :is(.gateway-management-grid, .control-asset-list) > :is(.release-empty, .release-error) { grid-column: 1 / -1; }
html .apple-workspace .token-row > p { color: var(--muted); font-size: 14px; }
html .apple-workspace .composer-intro strong { font-size: 15px; font-weight: 500; }
html .apple-workspace .composer-intro p { font-size: 14px; font-weight: 400; }
html .apple-workspace .panel.operations-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
html .apple-workspace .operations-panel > .section-head h2 { font-size: 26px; }
html .apple-workspace .operations-pulse { gap: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
html .apple-workspace .operations-pulse-item { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; padding: 14px 18px; }
html .apple-workspace .operations-pulse-item:last-child { border-right: 0; }
html .apple-workspace .operations-pulse-item::before { content: none; }
html .apple-workspace .operations-pulse-item span { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .operations-pulse-item strong { color: var(--text); font-size: 26px; font-weight: 500; }
html .apple-workspace .operations-pulse-item small { display: none; }
html .apple-workspace .operations-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
html .apple-workspace .operations-side { min-width: 0; display: grid; gap: 16px; }
html .apple-workspace :is(.operations-queue-panel, .operations-watch-panel, .operations-changes-panel) { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
html .apple-workspace .operations-panel-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
html .apple-workspace .operations-panel-head .eyebrow { display: none; }
html .apple-workspace .operations-panel-head h3 { margin: 0; color: var(--text); font-size: 17px; font-weight: 600; }
html .apple-workspace .operations-panel-head > button { padding: 2px 0; color: var(--accent); font-size: 13px; background: transparent; border: 0; }
html .apple-workspace .operations-task-row { grid-template-columns: 6px minmax(0, 1fr) auto; min-height: 64px; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; border-radius: 0; gap: 12px; padding: 12px 16px; }
html .apple-workspace .operations-task-row:last-child { border-bottom: 0; }
html .apple-workspace .operations-task-signal { width: 6px; height: 6px; }
html .apple-workspace :is(.operations-watch-row, .operations-change-row) { min-height: 60px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
html .apple-workspace :is(.operations-watch-row, .operations-change-row):last-child { border-bottom: 0; }
html .apple-workspace :is(.operations-watch-row, .operations-change-row):hover { background: var(--surface-soft); }
html .apple-workspace .operations-task-copy strong { white-space: normal; }
html .apple-workspace .operations-task-copy > span, html .apple-workspace .operations-task-copy p { display: none; }
html .apple-workspace .operations-task-copy strong { color: var(--text); font-size: 16px; font-weight: 500; }
html .apple-workspace :is(.operations-watch-row strong, .operations-change-row strong) { color: var(--text); font-size: 15px; font-weight: 500; }
html .apple-workspace .operations-watch-row small { font-size: 13px; }
html .apple-workspace :is(.operations-change-row small, .operations-change-row time) { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace :is(.agent-drawer, .release-composer, .asset-composer, .asset-archive-dialog, .command-palette, .managed-dialog) { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 48px rgb(0 0 0 / 16%); border-radius: 16px; }
html .apple-workspace .agent-drawer { width: min(620px, calc(100vw - 40px)); }
html .apple-workspace :is(.agent-drawer-head, .release-composer-head) { padding: 22px 24px; border-color: var(--line); }
html .apple-workspace :is(.agent-drawer-head, .release-composer-head) .eyebrow { display: none; }
html .apple-workspace :is(.agent-drawer-head h2, .release-composer-head h2) { color: var(--text); margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
html .apple-workspace :is(.agent-drawer-body, .release-composer-body) { padding: 24px; }
html .apple-workspace .drawer-tabs { gap: 4px; border-color: var(--line); padding: 4px; background: var(--surface-soft); border-radius: 9px; }
html .apple-workspace .drawer-tabs button { padding: 7px 10px; border: 0; color: var(--muted); font-size: 14px; font-weight: 400; background: transparent; }
html .apple-workspace .drawer-tabs button[aria-selected="true"] { color: var(--selected-text); background: var(--selected-bg); box-shadow: none; font-weight: 500; }
html .apple-workspace .drawer-section { border-color: var(--line); background: transparent; padding: 16px 0; }
html .apple-workspace .drawer-section > .eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
html .apple-workspace .drawer-facts { gap: 16px; }
html .apple-workspace .drawer-facts > span { color: var(--muted); font-size: 13px; }
html .apple-workspace .drawer-facts strong { color: var(--text); font-size: 15px; font-weight: 400; margin-top: 3px; }
html .apple-workspace .drawer-copy { color: var(--muted); font-size: 15px; font-weight: 400; }
html .apple-workspace .drawer-health { background: var(--surface-soft); border-color: transparent; border-radius: 10px; }
html .apple-workspace .drawer-health p { font-size: 14px; color: var(--muted); }
html .apple-workspace .drawer-config-details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
html .apple-workspace .drawer-config-details summary { color: var(--accent); font-size: 14px; font-weight: 400; cursor: pointer; }
html .apple-workspace :is(pre, .drawer-log, .log-view) { color: var(--text); background: var(--surface-soft); border-color: var(--line); font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; border-radius: 10px; }
html .apple-workspace .release-field > span, html .apple-workspace .release-field > legend { color: var(--text); font-size: 15px; font-weight: 500; }
html .apple-workspace .release-field small { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace .release-form-grid { gap: 18px; }
html .apple-workspace .release-form-actions { gap: 10px; padding-top: 16px; border-color: var(--line); }
html .apple-workspace .ui-flow-steps { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0 0 16px; list-style: none; color: var(--muted); font-size: 14px; }
html .apple-workspace .ui-flow-steps li { display: flex; align-items: center; gap: 7px; }
html .apple-workspace .ui-flow-steps li > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; }
html .apple-workspace .ui-flow-steps li[aria-current="step"] { color: var(--accent); font-weight: 500; }
html .apple-workspace .ui-flow-steps li[aria-current="step"] > span { border-color: var(--accent); background: var(--accent-soft); }
html .apple-workspace .ui-flow-pane { min-width: 0; padding: 0; margin: 0; border: 0; }
html .apple-workspace .ui-flow-pane > legend { margin-bottom: 14px; font-size: 20px; font-weight: 600; color: var(--text); }
html .apple-workspace .ui-flow-pane > legend:focus { outline: none; }
html .apple-workspace .ui-flow-help { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
html .apple-workspace .ui-flow-advanced { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
html .apple-workspace .ui-flow-advanced > summary { color: var(--accent); font-size: 14px; cursor: pointer; }
html .apple-workspace .ui-flow-advanced .release-form-grid { margin-top: 16px; }
html .apple-workspace .ui-flow-review { margin: 0; display: grid; grid-template-columns: minmax(88px, .4fr) minmax(0, 1fr); gap: 16px; }
html .apple-workspace .ui-flow-review dt { color: var(--muted); font-size: 14px; }
html .apple-workspace .ui-flow-review dd { margin: 0; color: var(--text); font-size: 16px; font-weight: 400; overflow-wrap: anywhere; }
html .apple-workspace .ui-flow-validation { grid-column: 1 / -1; color: var(--danger); font-size: 14px; }
html .apple-workspace :is(.ui-toast, .xy-toast) {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90; display: flex; align-items: flex-start; gap: 10px;
  max-width: min(420px, calc(100vw - 32px)); padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-floating);
  font-size: 13px; font-weight: 400; line-height: 1.55; overflow-wrap: anywhere;
}
html .apple-workspace :is(.ui-toast-message, .xy-toast-content) { flex: 1; min-width: 0; }
html .apple-workspace .xy-toast > svg { flex: 0 0 auto; margin-top: 3px; color: var(--muted); }
html .apple-workspace .xy-toast-success > svg { color: var(--success); }
html .apple-workspace .xy-toast-warning > svg { color: var(--warning); }
html .apple-workspace :is(.ui-toast, .xy-toast) :is(.ui-toast-close, .xy-toast-close) {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; min-width: 28px;
  height: 28px; min-height: 28px; padding: 0; margin: -3px -4px -3px 0;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-size: 18px; line-height: 1; box-shadow: none;
}
html .apple-workspace :is(.ui-toast, .xy-toast) :is(.ui-toast-close, .xy-toast-close):hover { color: var(--text); background: var(--control-hover); transform: none; }
@media (max-width: 820px) {
  html .apple-workspace :is(.ui-toast, .xy-toast) { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  html .apple-workspace :is(.ui-toast, .xy-toast) :is(.ui-toast-close, .xy-toast-close) { width: 36px; min-width: 36px; height: 36px; min-height: 36px; margin-top: -7px; margin-bottom: -7px; }
}
html .apple-workspace .ui-toast.is-error { border-color: var(--danger); color: var(--danger); background: var(--surface); }
html .apple-workspace .managed-gateway :is(th, td) { font-size: 14px; line-height: 1.5; padding: 14px 12px; border-color: var(--line); }
html .apple-workspace .managed-gateway th { font-weight: 500; color: var(--muted); }
html .apple-workspace .managed-gateway td { color: var(--text); }
html .apple-workspace .managed-gateway table { display: block; max-width: 100%; overflow-x: auto; }
html .apple-workspace .managed-dialog :is(label, input, select, textarea) { font-size: 15px; }
html .apple-workspace .mgmt { gap: 20px; }
html .apple-workspace :is(.mgmt-section, .mgmt-headline, .mgmt-risk, .mgmt-service, .mgmt-server-card, .mgmt-sources-card) { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: none; color: var(--text); }
html .apple-workspace :is(.mgmt h2, .mgmt h3) { color: var(--text); font-weight: 600; }
html .apple-workspace :is(.mgmt strong, .mgmt b) { font-weight: 500; }
html .apple-workspace .mgmt-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 1.5; }
html .apple-workspace .mgmt-conclusion { margin: 0; font-size: 15px; font-weight: 500; }
html .apple-workspace .mgmt-attention-link { color: var(--accent); font-size: 13px; text-decoration: none; }
html .apple-workspace .mgmt-attention-link:hover { text-decoration: underline; }
html .apple-workspace .mgmt-headline-details { position: relative; margin: 0 0 0 auto; font-weight: 400; }
html .apple-workspace .mgmt-headline-details > .mgmt-disclosure-summary { min-height: 32px; padding: 2px 0; font-size: 13px; color: var(--muted); }
html .apple-workspace .mgmt-headline-details > .mgmt-disclosure-body { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(340px, calc(100vw - 48px)); padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 10%); font-size: 14px; }
html .apple-workspace :is(.mgmt-chip, .mgmt-badge) { font-size: 13px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
html .apple-workspace .mgmt-state { justify-self: start; min-width: 0; max-width: 100%; padding: 3px 6px; white-space: normal; font-size: 13px; font-weight: 500; border-radius: 6px; }
html .apple-workspace .mgmt-state.is-ok { color: var(--success); background: var(--success-soft); }
html .apple-workspace .mgmt-state.is-attention, html .apple-workspace .mgmt-chip.is-warning { color: var(--warning); background: var(--warning-soft); }
html .apple-workspace :is(.mgmt-state.is-unknown, .mgmt-state.is-stopped) { color: var(--muted); background: var(--surface-soft); }
html .apple-workspace .mgmt-monitoring-status { flex-basis: 100%; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
html .apple-workspace .mgmt-monitoring-status.is-interrupted { color: var(--warning); }
html .apple-workspace .mgmt-stamp { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html .apple-workspace .mgmt :is(summary, a):focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
html .apple-workspace #refreshButton[aria-disabled="true"] { cursor: progress; }
html .apple-workspace .mgmt-heading > .eyebrow { display: none; }
html .apple-workspace .mgmt-heading h2 { font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: -.5px; }
html .apple-workspace .mgmt-heading-copy { font-size: 14px; font-weight: 400; color: var(--muted); }
html .apple-workspace :is(.mgmt-stamp, .mgmt-caption, .mgmt-service-meta, .entity-id, .resource-meta, .head-meta span, .ops-panel p) { color: var(--muted); font-size: 13px; font-weight: 400; }
html .apple-workspace :is(.mgmt-risk-title, .mgmt-service-name, .mgmt-risk-heading) { font-size: 15px; font-weight: 500; }
html .apple-workspace .mgmt-risk-body { font-size: 15px; color: var(--text); }
html .apple-workspace .mgmt-risk-foot { font-size: 13px; color: var(--muted); }
html .apple-workspace .mgmt-service-purpose { font-size: 14px; color: var(--muted); }
html .apple-workspace .mgmt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr); gap: 16px; align-items: start; }
html .apple-workspace .mgmt-panel { min-width: 0; padding: 0; }
html .apple-workspace .mgmt-attention-panel:target { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
html .apple-workspace .mgmt-panel > .section-head { margin: 0; padding: 18px; }
html .apple-workspace .mgmt-panel > .section-head h2 { font-size: 17px; }
html .apple-workspace :is(.mgmt-service-list, .mgmt-risk-list) { gap: 0; }
html .apple-workspace .mgmt-disclosure-summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; list-style: none; }
html .apple-workspace .mgmt-disclosure-summary::-webkit-details-marker { display: none; }
html .apple-workspace .mgmt-disclosure-action { margin-left: auto; color: var(--accent); font-size: 14px; font-weight: 400; white-space: nowrap; }
html .apple-workspace :is(.mgmt-service-row, .mgmt-directory-labels) { display: grid; grid-template-columns: minmax(0, 1fr) 76px 94px 16px; align-items: center; gap: 12px; }
html .apple-workspace .mgmt-directory-labels { padding: 9px 18px; border-block: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 12px; }
html .apple-workspace .mgmt-service-record { padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
html .apple-workspace .mgmt-service-record:last-child { border-bottom: 0; }
html .apple-workspace .mgmt-service-row { min-height: 52px; border: 0; border-radius: 0; background: transparent; padding: 10px 18px; box-shadow: none; }
html .apple-workspace .mgmt-service-name { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
html .apple-workspace .mgmt-service-entry { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; color: var(--accent); white-space: nowrap; text-decoration: none; }
html .apple-workspace .mgmt-service-entry:hover { text-decoration: underline; }
html .apple-workspace .mgmt-service-row .mgmt-service-meta { grid-column: auto; margin: 0; min-width: 0; color: var(--muted); font-size: 13px; }
html .apple-workspace .mgmt-risk { padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
html .apple-workspace .mgmt-risk > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; min-height: 76px; gap: 12px; }
html .apple-workspace .mgmt-risk-heading { display: grid; min-width: 0; gap: 4px; }
html .apple-workspace .mgmt-risk-title { flex: none; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
html .apple-workspace .mgmt-risk-issue { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
html .apple-workspace :is(.mgmt-risk, .mgmt-service-record) > summary:hover { background: var(--surface-soft); }
html .apple-workspace :is(.mgmt-risk, .mgmt-service-record)[open] > summary { background: var(--surface-soft); }
html .apple-workspace .mgmt-disclosure-body { padding: 14px 18px 18px; font-size: 14px; border-top: 1px solid var(--line); }
html .apple-workspace .ui-chevron { display: block; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 140ms ease; flex: 0 0 auto; }
html .apple-workspace .mgmt-disclosure[open] > summary > .ui-chevron { transform: rotate(90deg); }
html .apple-workspace .mgmt-capacity-strip { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
html .apple-workspace .mgmt-capacity-strip h3 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
html .apple-workspace .mgmt-attention-panel .mgmt-capacity-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
html .apple-workspace .mgmt-attention-panel .mgmt-server > .mgmt-kv { display: grid; gap: 3px; }
html .apple-workspace .mgmt-attention-panel .mgmt-server > .mgmt-kv dd { text-align: left; }
html .apple-workspace .mgmt-server { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; min-width: 0; }
html .apple-workspace .mgmt-server > .mgmt-kv:nth-child(1) { grid-area: 1 / 1; }
html .apple-workspace .mgmt-server > .mgmt-kv:nth-child(3) { grid-area: 1 / 2; }
html .apple-workspace .mgmt-server > .mgmt-meter:nth-child(2) { grid-area: 2 / 1; }
html .apple-workspace .mgmt-server > .mgmt-meter:nth-child(4) { grid-area: 2 / 2; }
html .apple-workspace .mgmt-server > .mgmt-technical-details { grid-column: 1 / -1; margin: 2px 0 0; }
html .apple-workspace .mgmt-kv { margin: 0; padding: 8px 0; font-size: 13px; }
html .apple-workspace .mgmt-kv dd { font-weight: 400; overflow-wrap: anywhere; }
html .apple-workspace .mgmt-server > .mgmt-kv { padding: 0; border: 0; }
html .apple-workspace .mgmt-meter { height: 4px; margin: 0; }
html .apple-workspace .mgmt-sources { padding: 12px 18px; border-top: 1px solid var(--line); }
html .apple-workspace .mgmt-sources > .mgmt-technical-details { margin: 0; }
html .apple-workspace .mgmt-technical-details > summary { font-size: 14px; color: var(--accent); cursor: pointer; }
html .apple-workspace .mgmt-technical-details { margin-top: 14px; }
html .apple-workspace .mgmt-technical-details code { font-size: 13px; overflow-wrap: anywhere; }
html .apple-workspace .mgmt-headline.is-unknown, html .apple-workspace .mgmt-badge.is-unknown { background: var(--surface-soft); color: var(--muted); }
html .apple-workspace .sidebar-collapsed { padding-left: 96px; }
html .apple-workspace .sidebar-collapsed .sidebar { width: 68px; padding-inline: 12px; }
html .apple-workspace .sidebar-collapsed .nav-group:has(.nav-link[aria-current="page"]) > .nav-group-summary { color: var(--text); background: var(--control-bg); font-weight: 600; }
html .apple-workspace .sidebar-collapsed .nav-group:has(.nav-link[aria-current="page"]) > .nav-group-summary .nav-icon { color: currentColor; }
html .apple-workspace .navigation-backdrop { position: fixed; inset: 0; z-index: 40; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgb(0 0 0 / 24%); }
html .apple-workspace .navigation-close { display: none; }
html .apple-workspace.apple-login { background: var(--bg); }
html .apple-workspace.apple-login .login-page { display: grid; min-height: 100svh; place-items: center; max-width: none; padding: 48px 20px; }
html .apple-workspace.apple-login .login-card { display: block; width: min(440px, 100%); min-height: 0; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 28px rgb(0 0 0 / 4%); }
html .apple-workspace.apple-login .login-intro { padding: 0 0 24px; border: 0; background: transparent; }
html .apple-workspace.apple-login .login-panel { padding: 0; background: transparent; }
html .apple-workspace.apple-login :is(.intro-copy, .intro-points, .intro-status, .login-cursor, .login-panel-copy .eyebrow) { display: none; }
html .apple-workspace.apple-login .login-brand { color: var(--text); font-size: 20px; font-weight: 600; }
html .apple-workspace.apple-login .login-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-bg); box-shadow: none; }
html .apple-workspace.apple-login .login-panel h2 { font-size: 28px; line-height: 1.3; font-weight: 600; color: var(--text); }
html .apple-workspace.apple-login .login-panel-copy > p { font-size: 14px; color: var(--muted); }
html .apple-workspace.apple-login .field-label { color: var(--text); font-size: 15px; font-weight: 500; }
html .apple-workspace.apple-login .field-shell { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
html .apple-workspace.apple-login .field-shell input { min-height: 46px; border: 0; font-size: 16px; box-shadow: none; }
html .apple-workspace.apple-login .field-shell input::placeholder { color: var(--muted); }
html .apple-workspace.apple-login .field-shell > span { display: none; }
html .apple-workspace.apple-login .login-form button[type="submit"] { width: 100%; min-height: 44px; border: 0; color: var(--on-primary); background: var(--primary-bg); font-size: 16px; }
html .apple-workspace.apple-login .login-footer { font-size: 13px; line-height: 1.5; color: var(--muted); }
html .apple-workspace .preview-notice { position: static; margin: 0; padding: 3px 7px; color: var(--muted); font-size: 12px; line-height: 18px; white-space: nowrap; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; flex: 0 0 auto; }
@media (min-width: 821px) and (max-width: 1280px) {
  html .apple-workspace .preview-notice { display: none; }
}
@media (max-width: 1120px) {
  html .apple-workspace .overview-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .apple-workspace .overview-runtime-panel { grid-column: 1 / -1; }
  html .apple-workspace .mgmt-grid { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .operations-layout { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .management-cell { max-width: 130px; }
}
@media (max-width: 820px) {
  html .apple-workspace :is(button, input, select) { min-height: 44px; }
  html .apple-workspace :is(.icon-button, .refresh-button, .entity-name-button, .entity-detail-button) { min-height: 44px; }
  html .apple-workspace .icon-button { width: 44px; min-width: 44px; height: 44px; }
  html .apple-workspace :is(input, select, textarea) { font-size: 16px; }
  html .apple-workspace .shell, html .apple-workspace .shell.sidebar-collapsed { padding: 10px; }
  html .apple-workspace .sidebar, html .apple-workspace .sidebar-collapsed .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 260px; max-width: calc(100vw - 48px); height: 100svh; padding: 24px 12px; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 160ms ease; border-right: 1px solid var(--line); background: var(--surface); }
  html .apple-workspace .shell.sidebar-open .sidebar { transform: translateX(0); }
  html .apple-workspace .sidebar-collapsed :is(.brand-copy, nav a span:last-child, .side-note > div) { display: block; }
  html .apple-workspace .sidebar-collapsed .nav-group-summary { grid-template-columns: 19px minmax(0, 1fr) auto; justify-items: stretch; padding-inline: 11px; }
  html .apple-workspace .sidebar-collapsed .nav-group-summary > span:not(.nav-icon) { display: block; }
  html .apple-workspace .sidebar-collapsed .nav-group-children { display: grid; }
  html .apple-workspace .sidebar-collapsed nav a { justify-content: flex-start; padding-inline: 11px; }
  html .apple-workspace .sidebar .primary-navigation { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; }
  html .apple-workspace :is(.sidebar nav a, .sidebar .nav-group-summary, .section-link, .ui-disclosure > summary, .mgmt-headline-details > summary, .mgmt-technical-details > summary) { min-height: 44px; }
  html .apple-workspace .brand { width: 100%; justify-content: flex-start; }
  html .apple-workspace .navigation-close { display: grid; margin-left: auto; place-items: center; }
  html .apple-workspace .side-note { position: static; margin-top: 16px; }
  html .apple-workspace .topbar { position: sticky; top: 10px; min-height: 60px; padding: 6px 8px; gap: 8px; }
  html .apple-workspace .topbar-leading { gap: 6px; min-width: 0; }
  html .apple-workspace .breadcrumb { display: flex; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
  html .apple-workspace .breadcrumb > span { display: none; }
  html .apple-workspace .topbar-actions { gap: 3px; }
  html .apple-workspace :is(.command-trigger, .language-button, .account-name, .account-menu-caret) { display: none; }
  html .apple-workspace .refresh-button { min-height: 44px; white-space: nowrap; font-size: 13px; padding: 8px 10px; }
  html .apple-workspace main { width: 100%; padding: 24px 16px 40px; gap: 20px; }
  html .apple-workspace .overview-dashboard { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .overview-runtime-panel { grid-column: auto; }
  html .apple-workspace .overview-change-list { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .overview-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html .apple-workspace .workspace-head h2 { font-size: 26px; }
  html .apple-workspace .overview-head-status { display: flex; gap: 8px; text-align: left; font-size: 13px; }
  html .apple-workspace .overview-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  html .apple-workspace .overview-pulse-item { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  html .apple-workspace .overview-pulse-item:nth-child(2) { border-right: 0; }
  html .apple-workspace .overview-pulse-item:nth-child(n + 3) { border-bottom: 0; }
  html .apple-workspace .overview-side-rail { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .panel { padding: 20px 16px; }
  html .apple-workspace .section-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
  html .apple-workspace .panel.mgmt-panel { padding: 0; }
  html .apple-workspace .section-head h2 { font-size: 18px; }
  html .apple-workspace .section-caption { font-size: 13px; }
  html .apple-workspace .operation-brief { align-items: stretch; flex-direction: column; padding: 18px; gap: 14px; }
  html .apple-workspace .operation-brief-status { align-items: flex-start; }
  html .apple-workspace .operation-brief button { align-self: flex-start; }
  html .apple-workspace .runtime-health-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html .apple-workspace .service-row { grid-template-columns: 7px minmax(0, 1fr) auto; gap: 10px; }
  html .apple-workspace .service-row > div > strong { font-size: 15px; }
  html .apple-workspace .service-state { font-size: 13px; }
  html .apple-workspace .agent-runtime-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .apple-workspace .agent-runtime-summary-item { padding: 14px; }
  html .apple-workspace .management-row { gap: 10px; padding: 14px 12px; }
  html .apple-workspace .management-row .management-cell { display: none; }
  html .apple-workspace .management-primary h3 { font-size: 15px; }
  html .apple-workspace .management-primary small { font-size: 13px; }
  html .apple-workspace .management-row .status { font-size: 13px; padding: 3px 6px; }
  html .apple-workspace .entity-detail-button { font-size: 13px; }
  html .apple-workspace .ui-list-tools { flex-wrap: wrap; }
  html .apple-workspace .ui-list-tools input[type="search"] { max-width: none; }
  html .apple-workspace :is(.agent-drawer, .release-composer, .asset-composer, .asset-archive-dialog, .managed-dialog) { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100svh - 16px); border-radius: 14px; }
  html .apple-workspace :is(.agent-drawer-head, .release-composer-head) { padding: 18px; }
  html .apple-workspace :is(.agent-drawer-head h2, .release-composer-head h2) { font-size: 22px; }
  html .apple-workspace :is(.agent-drawer-body, .release-composer-body) { padding: 18px; }
  html .apple-workspace .drawer-facts, html .apple-workspace .release-form-grid, html .apple-workspace .managed-dialog .managed-fields { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .drawer-tabs { display: flex; overflow-x: auto; }
  html .apple-workspace .drawer-tabs button { flex: 0 0 auto; min-height: 44px; }
  html .apple-workspace .ui-flow-steps { gap: 12px; font-size: 13px; }
  html .apple-workspace .operations-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html .apple-workspace .operations-pulse-item { padding: 12px; }
  html .apple-workspace .operations-pulse-item strong { font-size: 22px; }
  html .apple-workspace .operations-task-row { grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  html .apple-workspace .operations-task-row > button { grid-column: auto; justify-self: auto; font-size: 13px; }
  html .apple-workspace :is(.mgmt-service-row, .mgmt-directory-labels) { grid-template-columns: minmax(0, 1fr) 70px 66px 16px; gap: 8px; padding-inline: 12px; }
  html .apple-workspace .mgmt-service-row { min-height: 64px; }
  html .apple-workspace .mgmt-service-entry { min-height: 44px; }
  html .apple-workspace .mgmt-service-name { font-size: 14px; }
  html .apple-workspace .mgmt-capacity-strip { grid-template-columns: minmax(0, 1fr); }
  html .apple-workspace .mgmt-server { column-gap: 16px; }
  html .apple-workspace .mgmt-server > .mgmt-kv { display: grid; gap: 3px; }
  html .apple-workspace .mgmt-server > .mgmt-kv dd { text-align: left; }
  html .apple-workspace .mgmt-headline-details { margin-left: 0; }
  html .apple-workspace .mgmt-headline-details > .mgmt-disclosure-body { right: auto; left: 0; }
  html .apple-workspace .mgmt-service-row .mgmt-disclosure-action { display: none; }
  html .apple-workspace .mgmt-risk-heading { min-width: 0; }
  html .apple-workspace.apple-login .login-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html .apple-workspace *, html .apple-workspace *::before, html .apple-workspace *::after { animation: none !important; transition: none !important; }
}

/* Materials belong to navigation and floating controls, not the data itself. */
html .apple-workspace :is(.topbar, .sidebar) {
  background: var(--chrome);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
html .apple-workspace .sidebar { background: var(--chrome); }
html .apple-workspace .topbar { box-shadow: 0 1px 0 rgb(0 0 0 / 2%); }
html .apple-workspace :is(nav a, .nav-group-summary, .drawer-tabs) { border-radius: 10px; }
html .apple-workspace button:not(.service-row):not(.overview-action-row):not(.project-focus-row):not(.entity-name-button) { border-radius: 10px; }
html .apple-workspace :is(.status, .release-state, .model-check-status, .mgmt-state, .mgmt-badge, .mgmt-chip) { border-radius: 999px; }
html .apple-workspace :is(.overview-panel, .mgmt-panel, .operations-queue-panel, .operations-watch-panel, .operations-change-panel) { box-shadow: var(--shadow); }
html .apple-workspace .mgmt-panel { overflow: clip; }
html .apple-workspace .operations-pulse { border-radius: 18px; box-shadow: var(--shadow); }
html .apple-workspace.apple-login .login-card { border-radius: 24px; box-shadow: var(--shadow-floating); }
html .apple-workspace :is(.multi-select-popover, .mgmt-headline-details > .mgmt-disclosure-body) {
  border-radius: 18px; background: var(--surface-solid); color: var(--text);
  border-color: var(--line); box-shadow: var(--shadow-floating);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transform-origin: top right;
}
html .apple-workspace :is(.account-menu-popover strong, .multi-select-option strong) { color: var(--text); }
html .apple-workspace .multi-select-popover { transform-origin: top left; }
html .apple-workspace :is(.multi-select > summary, .field-shell, .drawer-config-details, .drawer-health) { border-radius: 12px; }
html .apple-workspace :is(.agent-drawer, .release-composer, .asset-composer, .asset-archive-dialog, .command-palette, .managed-dialog) { border-radius: 24px; box-shadow: var(--shadow-floating); }
html .apple-workspace dialog:not([open]) { pointer-events: none; }
html .apple-workspace .agent-drawer {
  inset: 12px 12px 12px auto; margin: 0;
  height: calc(100svh - 24px); max-height: calc(100svh - 24px);
  border-radius: 24px; overflow: hidden;
}
html .apple-workspace .agent-drawer-body { max-height: calc(100svh - 112px); }
html .apple-workspace dialog::backdrop { background: rgb(0 0 0 / 24%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html .apple-workspace :is(.management-row, .service-row, .overview-action-row, .project-focus-row, .mgmt-disclosure-summary, nav a, .nav-group-summary) {
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
html .apple-workspace :is(.management-row, .service-row, .overview-action-row, .project-focus-row, .mgmt-disclosure-summary):hover { background: var(--hover-fill); }
html .apple-workspace .entity-chevron { transition: transform var(--motion-fast) var(--motion-ease), color var(--motion-fast) ease; }
html .apple-workspace .ui-chevron { transition: transform var(--motion-fast) var(--motion-ease); }

@media (prefers-reduced-motion: no-preference) {
  html .apple-workspace .workspace-content > [data-view].is-active { animation: apple-content-in var(--motion-standard) var(--motion-ease) both; }
  html .apple-workspace .workspace-content > [data-view].is-active:nth-child(2) { animation-delay: 30ms; }
  html .apple-workspace .workspace-content > [data-view].is-active:nth-child(3) { animation-delay: 50ms; }
  html .apple-workspace .ui-flow-pane:not([hidden]) { animation: apple-pane-in 180ms var(--motion-ease); }
  html .apple-workspace :is(.account-menu-popover, .multi-select-popover, .mgmt-headline-details[open] > .mgmt-disclosure-body) { animation: apple-popover-in 180ms var(--motion-ease); }
  html .apple-workspace dialog:not(.agent-drawer) {
    opacity: 0; transform: translateY(10px) scale(.975);
    transition: opacity 180ms ease, transform var(--motion-standard) var(--motion-ease), display var(--motion-standard) allow-discrete, overlay var(--motion-standard) allow-discrete;
  }
  html .apple-workspace .agent-drawer {
    opacity: 0; transform: translateX(32px);
    transition: opacity 180ms ease, transform var(--motion-standard) var(--motion-ease), display var(--motion-standard) allow-discrete, overlay var(--motion-standard) allow-discrete;
  }
  html .apple-workspace dialog[open] { opacity: 1; transform: none; }
  html .apple-workspace dialog::backdrop {
    opacity: 0; transition: opacity 180ms ease, display var(--motion-standard) allow-discrete, overlay var(--motion-standard) allow-discrete;
  }
  html .apple-workspace dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    html .apple-workspace dialog[open]:not(.agent-drawer) { opacity: 0; transform: translateY(10px) scale(.975); }
    html .apple-workspace .agent-drawer[open] { opacity: 0; transform: translateX(32px); }
    html .apple-workspace dialog[open]::backdrop { opacity: 0; }
  }
  @supports selector(details::details-content) {
    html .apple-workspace :is(.mgmt-service-record, .mgmt-risk, .ui-disclosure, .mgmt-technical-details, .composer-advanced, .drawer-config-details)::details-content {
      opacity: 0; transform: translateY(-4px); content-visibility: hidden;
      transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease), content-visibility var(--motion-fast) allow-discrete;
    }
    html .apple-workspace :is(.mgmt-service-record, .mgmt-risk, .ui-disclosure, .mgmt-technical-details, .composer-advanced, .drawer-config-details)[open]::details-content {
      opacity: 1; transform: none; content-visibility: visible;
    }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html .apple-workspace button { transition: transform var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
  html .apple-workspace button:not(:disabled):not(.entity-name-button):not(.entity-detail-button):not(.section-link):not(.service-row):not(.overview-action-row):not(.project-focus-row):not(.navigation-backdrop):hover { transform: translateY(-1px); }
  html .apple-workspace button:not(:disabled):not(.entity-name-button):not(.entity-detail-button):not(.section-link):not(.service-row):not(.overview-action-row):not(.project-focus-row):not(.navigation-backdrop):active { transform: scale(.96); transition-duration: 150ms; transition-timing-function: ease-out; }
  html .apple-workspace .management-row:hover .entity-chevron { color: var(--accent); transform: translateX(3px); }
}
@keyframes apple-content-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes apple-pane-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes apple-popover-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  html .apple-workspace .sidebar { border-radius: 0 24px 24px 0; box-shadow: var(--shadow-floating); }
  html .apple-workspace .agent-drawer { inset: 8px; width: calc(100vw - 16px); height: calc(100svh - 16px); max-height: calc(100svh - 16px); border-radius: 20px; }
  html .apple-workspace .agent-drawer-body { max-height: calc(100svh - 108px); }
}
@media (prefers-reduced-transparency: reduce) {
  html .apple-workspace :is(.topbar, .sidebar, .account-menu-popover, .multi-select-popover, .mgmt-headline-details > .mgmt-disclosure-body) { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html .apple-workspace dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html .apple-workspace *, html .apple-workspace *::before, html .apple-workspace *::after, html .apple-workspace dialog::backdrop { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Component craft: explicit buttons, data graphics and useful row actions. */
html .apple-workspace button.ui-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 12px;
  font-size: 15px; line-height: 1.4; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%), inset 0 1px 0 rgb(255 255 255 / 20%);
}
html .apple-workspace button.ui-button.primary {
  color: var(--on-primary); background: var(--primary-bg); border-color: rgb(0 0 0 / 6%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%), 0 3px 8px rgb(0 0 0 / 8%), inset 0 1px 0 rgb(255 255 255 / 22%);
}
html .apple-workspace :is(.ui-button-icon, [data-ui-symbol]) { display: inline-grid; place-items: center; flex: 0 0 auto; }
html .apple-workspace .ui-button-icon .ui-icon { width: 18px; height: 18px; stroke-width: 2; }
html .apple-workspace .ui-icon { stroke-width: 1.5; }
html .apple-workspace .ui-icon > * { vector-effect: non-scaling-stroke; }
html .apple-workspace .ui-button-label { min-width: 0; }
html .apple-workspace .ui-row-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
html .apple-workspace .ui-row-actions .ui-row-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 10px 6px 8px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--text);
  font-size: 13px; line-height: 1.4; font-weight: 500; text-decoration: none;
  box-shadow: 0 1px 1px rgb(0 0 0 / 2%); cursor: pointer;
}
html .apple-workspace .ui-row-action .ui-icon { width: 16px; height: 16px; stroke-width: 2; }
html .apple-workspace .ui-row-action > [data-ui-symbol] { color: var(--muted); }
html .apple-workspace .entity-chevron { transition: color 150ms ease-out; }
html .apple-workspace a.mgmt-service-entry { justify-self: start; justify-content: center; gap: 4px; max-width: 100%; min-height: 36px; padding: 6px 6px 6px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--accent); font-weight: 500; text-decoration: none; }
html .apple-workspace a.mgmt-service-entry .ui-icon { width: 16px; height: 16px; stroke-width: 2; }
html .apple-workspace .management-primary h3 { font-size: 16px; font-weight: 500; }
html .apple-workspace .category-head h3 { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
html .apple-workspace .workspace-head h2 { font-size: 28px; letter-spacing: -.025em; font-optical-sizing: auto; }
html .apple-workspace .agent-runtime-summary-item strong { font-size: 32px; letter-spacing: -.025em; font-optical-sizing: auto; font-variant-numeric: tabular-nums; }
html .apple-workspace .overview-pulse {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0;
}
html .apple-workspace .overview-pulse:not(:has(.overview-pulse-item)) { min-height: 170px; align-items: center; color: var(--muted); font-size: 14px; }
html .apple-workspace .overview-pulse-item {
  display: grid; gap: 8px; min-height: 170px; padding: 18px; min-width: 0;
  border: 1px solid transparent; border-radius: 20px; background: var(--surface);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 5%), 0 2px 4px rgb(0 0 0 / 3%), 0 10px 28px rgb(0 0 0 / 4%);
}
html.theme-dark .apple-workspace .overview-pulse-item { box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 8px 24px rgb(0 0 0 / 18%); }
html .apple-workspace .ui-metric-head { display: flex; align-items: center; gap: 8px; min-height: 26px; min-width: 0; }
html .apple-workspace .ui-metric-head > [data-ui-symbol] { width: 26px; height: 26px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); }
html .apple-workspace .ui-metric-head .ui-icon { width: 15px; height: 15px; stroke-width: 2; }
html .apple-workspace .ui-metric-head > span:last-child { color: var(--muted); font-size: 13px; font-weight: 500; }
html .apple-workspace .ui-metric-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; min-width: 0; }
html .apple-workspace .ui-metric-value > strong {
  margin: 0; color: var(--text); font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; font-optical-sizing: auto; font-variant-numeric: tabular-nums;
}
html .apple-workspace .ui-metric-ring { flex: 0 0 auto; width: 64px; height: 64px; overflow: visible; }
html .apple-workspace .ui-metric-ring circle { fill: none; stroke-width: 5; }
html .apple-workspace .ui-ring-track { stroke: var(--line); }
html .apple-workspace .ui-chart-progress { stroke: var(--accent-bright); stroke-linecap: round; }
html .apple-workspace .ui-metric-ring.is-empty .ui-chart-progress { stroke: none; }
html .apple-workspace .ui-metric-ring text { fill: var(--muted); font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; font-variant-numeric: tabular-nums; }
html .apple-workspace .ui-metric-art { width: 56px; height: 56px; border-radius: 18px; color: var(--muted); background: var(--surface-soft); }
html .apple-workspace .ui-metric-art .ui-icon { width: 28px; height: 28px; stroke-width: 1.5; }
html .apple-workspace .ui-metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
html .apple-workspace .ui-metric-foot small { display: block; font-size: 13px; color: var(--muted); }
html .apple-workspace .ui-metric-foot a { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 13px; text-decoration: none; white-space: nowrap; }
html .apple-workspace .ui-metric-foot .ui-icon { width: 12px; height: 12px; stroke-width: 1.5; }
html .apple-workspace :is(.agent-drawer-body, .release-composer-body, .multi-select-options, .sidebar .primary-navigation) { overscroll-behavior: contain; }
html .apple-workspace :is(input:not([type=checkbox]):not([type=radio]), select, textarea, .field-shell, .multi-select > summary) { border-color: var(--line-strong); }

html .apple-workspace [aria-invalid=true] { border-color: var(--danger); }
html .apple-workspace .drawer-panel.is-active { animation: none; }
@media (hover: hover) {
  html .apple-workspace button.ui-button:hover { background: var(--surface-soft); border-color: var(--line-strong); }
  html .apple-workspace button.ui-button.primary:hover { color: var(--on-primary); background: var(--primary-hover); border-color: rgb(0 0 0 / 8%); }
  html .apple-workspace .ui-row-actions .ui-row-action:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--line-strong); }
  html .apple-workspace .ui-row-action:hover > [data-ui-symbol] { color: var(--accent); }
  html .apple-workspace .ui-metric-foot a:hover { text-decoration: underline; }
}
@media (hover: none) {
  html .apple-workspace :is(.management-row, .service-row, .overview-action-row, .project-focus-row):hover { background: transparent; }
  html .apple-workspace button.ui-button.primary:hover { background: var(--primary-bg); }
}
@media (prefers-reduced-motion: no-preference) {
  html .apple-workspace .ui-flow-pane { animation: none; opacity: 0; transition: opacity 150ms ease-out; }
  html .apple-workspace .ui-flow-pane:not([hidden]) { animation: none; opacity: 1; }
  @starting-style { html .apple-workspace .ui-flow-pane:not([hidden]) { opacity: 0; } }
  html .apple-workspace .ui-metric-enter { animation: ui-metric-in 300ms ease-out both; }
  html .apple-workspace .ui-metric-enter:nth-child(2) { animation-delay: 100ms; }
  html .apple-workspace .ui-metric-enter:nth-child(3) { animation-delay: 200ms; }
  html .apple-workspace .ui-metric-enter:nth-child(4) { animation-delay: 300ms; }
  html .apple-workspace .ui-ring-enter { animation: ui-ring-draw 600ms cubic-bezier(.2, 0, 0, 1) both; }
  html .apple-workspace #refreshButton:is(:disabled, [aria-busy="true"]) .ui-button-icon { animation: ui-refresh-spin 650ms linear infinite; }
  html .apple-workspace button.ui-button:not(:disabled):active { transform: scale(.96); transition: transform 150ms ease-out; }
}
@keyframes ui-metric-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ui-ring-draw { from { stroke-dashoffset: 100; } }
@keyframes ui-refresh-spin { to { rotate: 360deg; } }
@media (max-width: 1120px) { html .apple-workspace .overview-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  html .apple-workspace .overview-pulse { gap: 12px; }
  html .apple-workspace .overview-pulse-item { padding: 14px; min-height: 184px; border: 1px solid transparent; }
  html .apple-workspace .ui-metric-head { min-height: 32px; }
  html .apple-workspace .ui-metric-value > strong { font-size: 34px; }
  html .apple-workspace .ui-metric-ring { width: 52px; height: 52px; }
  html .apple-workspace .ui-metric-art { width: 48px; height: 48px; border-radius: 16px; }
  html .apple-workspace .ui-metric-foot { flex-wrap: wrap; gap: 5px; }
  html .apple-workspace .management-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; }
  html .apple-workspace .management-row > .status { grid-column: 2; justify-self: end; }
  html .apple-workspace .management-primary { grid-column: 1; }
  html .apple-workspace .ui-row-actions { grid-column: 1 / -1; justify-self: stretch; gap: 8px; }
  html .apple-workspace .ui-row-actions .ui-row-action { flex: 1; min-height: 44px; }
  html .apple-workspace .management-row:has(.ui-row-actions) > .entity-chevron { display: none; }
  html .apple-workspace button.ui-button { min-height: 44px; }
  html .apple-workspace a.mgmt-service-entry { min-height: 44px; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  html .apple-workspace :is(.overview-pulse-item, .ui-button, .ui-row-action) { border: 1px solid currentColor; }
  html .apple-workspace :is(.topbar, .sidebar, .account-menu-popover, .multi-select-popover) { background: var(--surface); backdrop-filter: none; }
}

/* The toolbar is one shared control family, including decorated action buttons. */
html .apple-workspace .topbar .topbar-actions { gap: 6px; flex: 0 0 auto; }
html .apple-workspace .topbar .topbar-leading > button,
html .apple-workspace .topbar .topbar-actions > button,
html .apple-workspace .topbar .account-menu-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; min-height: 36px; padding: 0 10px; border: 1px solid transparent;
  border-radius: 10px; background: transparent; color: var(--text);
  box-shadow: none; font-size: 13px; line-height: 1.2; font-weight: 500;
}
html .apple-workspace .topbar .topbar-leading > button:hover,
html .apple-workspace .topbar .topbar-actions > button:hover,
html .apple-workspace .topbar .account-menu-trigger:hover,
html .apple-workspace .topbar .account-menu[open] .account-menu-trigger {
  background: var(--hover-fill); color: var(--text); border-color: transparent; box-shadow: none; transform: none;
}
html .apple-workspace .topbar .topbar-leading > .icon-button,
html .apple-workspace .topbar .topbar-actions > .icon-button { width: 36px; min-width: 36px; padding: 0; }
html .apple-workspace .topbar .ui-icon { width: 17px; height: 17px; stroke-width: 1.7; }
html .apple-workspace .topbar .command-trigger > span:first-child { color: var(--muted); }
html .apple-workspace .topbar kbd { padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; box-shadow: none; }
html .apple-workspace .topbar .account-menu-trigger { padding: 0 8px 0 5px; }
html .apple-workspace .topbar .account-avatar { width: 26px; height: 26px; font-size: 12px; color: var(--text); background: var(--control-hover); }
html .apple-workspace .topbar :is(.account-name, .account-menu-caret) { color: var(--text); font-size: 13px; }
html .apple-workspace .account-menu-popover p { color: var(--muted); font-size: 12px; }
html .apple-workspace .account-menu-popover form { border-color: var(--line); }
html .apple-workspace .account-menu-popover button { color: var(--danger); background: transparent; border-color: transparent; text-align: left; box-shadow: none; }
html .apple-workspace .account-menu-popover button:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; box-shadow: none; }
html .apple-workspace button.danger-action { color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger); }
html .apple-workspace button.danger-action:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
html .apple-workspace :is(input[type=checkbox], input[type=radio]) { accent-color: var(--primary-bg); }
@media (max-width: 1120px) and (min-width: 821px) {
  html .apple-workspace .breadcrumb { max-width: 240px; }
  html .apple-workspace .topbar .command-trigger > span:nth-child(2),
  html .apple-workspace .topbar .command-trigger kbd,
  html .apple-workspace .topbar .account-name { display: none; }
}
@media (max-width: 820px) {
  html .apple-workspace .topbar .topbar-leading > button,
  html .apple-workspace .topbar .topbar-actions > button,
  html .apple-workspace .topbar .account-menu-trigger { min-height: 44px; height: 44px; }
  html .apple-workspace .topbar .topbar-leading > .icon-button,
  html .apple-workspace .topbar .topbar-actions > .icon-button { width: 44px; min-width: 44px; }
  html .apple-workspace .topbar .topbar-actions > :is(.command-trigger, .language-button) { display: none; }
  html .apple-workspace .topbar .topbar-actions { gap: 4px; }
  html .apple-workspace .topbar .account-menu-trigger { width: 44px; padding: 0; }
  html .apple-workspace .topbar .account-menu-caret { display: none; }
  html .apple-workspace .breadcrumb { padding: 4px 2px; }
}

/* A pointer click on the same keyboard-focused element can retain native :focus-visible. */
html[data-input-modality="pointer"] .apple-workspace :is(button, a, summary, input, select, textarea):focus {
  outline: none !important;
}
