/* Account navigation uses the dashboard's shared zinc and mbodi tokens. */
:root { color-scheme: dark; font-synthesis: none; --nav-width: 232px; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
html, body, #app { height: 100%; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
button { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
::selection { color: hsl(var(--foreground)); background: hsl(var(--brand) / .35); }
input { caret-color: hsl(var(--brand)); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 14px; font-weight: 600; }
.icon { width: 17px; height: 17px; flex-shrink: 0; vertical-align: middle; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 8px 14px; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.skip-link:focus { top: 8px; }
.app-shell { display: flex; height: 100dvh; min-height: 0; overflow: hidden; }
.sidebar { width: var(--nav-width); flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid hsl(var(--sidebar-border)); background: hsl(var(--sidebar-background)); color: hsl(var(--sidebar-foreground)); }
.sidebar-top { height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.brand img { object-fit: contain; }
.account-identity { margin: 12px 16px 22px; display: flex; align-items: center; gap: 10px; }
.account-avatar { display: grid; place-items: center; height: 32px; width: 32px; border: 1px solid hsl(var(--border)); border-radius: 6px; color: hsl(var(--muted-foreground)); font-weight: 500; }
.account-identity strong { display: block; font-size: 13px; font-weight: 600; }
.account-identity div > span { display: block; color: hsl(var(--muted-foreground)); font-size: 11px; }
.navigation { padding: 0 10px; flex: 1; overflow-y: auto; }
.nav-group + .nav-group { margin-top: 26px; }
.nav-group-label { padding: 0 10px 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; margin: 2px 0; padding: 7px 10px; border: 0; background: transparent; border-radius: 6px; text-align: left; font-size: 13px; color: inherit; }
.nav-item .icon { color: hsl(var(--muted-foreground)); }
.nav-item:hover { background: hsl(var(--sidebar-accent) / .65); }
.nav-item[aria-current] { background: hsl(var(--sidebar-accent)); font-weight: 550; }
.nav-item[aria-current] .icon { color: hsl(var(--sidebar-foreground)); }
.nav-count { margin-left: auto; color: hsl(var(--muted-foreground)); font-size: 11px; font-variant-numeric: tabular-nums; }
.workspace-tree { margin: 4px 0 0 18px; padding-left: 10px; border-left: 1px solid hsl(var(--border)); }
.workspace-tree .nav-item { font-size: 12px; min-height: 32px; padding-left: 8px; }
.workspace-tree .icon { height: 14px; width: 14px; }
.sidebar-footer { padding: 12px 10px; border-top: 1px solid hsl(var(--border)); }
.sidebar-footer .form-status:empty { display: none; }
.main-shell { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 48px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid hsl(var(--border)); }
.icon-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: hsl(var(--muted-foreground)); }
.icon-button:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; font-size: 13px; }
.breadcrumb a, .breadcrumb > span[aria-hidden] { color: hsl(var(--muted-foreground)); }
.breadcrumb a:hover { color: hsl(var(--foreground)); }
.breadcrumb [aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar-label { margin-left: auto; font-size: 11px; color: hsl(var(--muted-foreground)); }
.workspace-tabs { display: flex; height: 41px; flex-shrink: 0; padding: 0 20px; gap: 22px; border-bottom: 1px solid hsl(var(--border)); }
.workspace-tab { display: flex; align-items: center; font-size: 12px; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.workspace-tab:hover { color: hsl(var(--foreground)); }
.workspace-tab[aria-current] { color: hsl(var(--foreground)); border-color: hsl(var(--brand)); }
.page-content { overflow: auto; min-height: 0; flex: 1; }
.page-view { padding: 36px 40px 64px; width: 100%; max-width: 1400px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading p { margin-top: 7px; max-width: 70ch; color: hsl(var(--muted-foreground)); font-size: 13px; }
.count-label { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.workspace-list { border-top: 1px solid hsl(var(--border)); }
.workspace-row { display: flex; align-items: center; gap: 16px; padding: 22px 12px; border-bottom: 1px solid hsl(var(--border)); }
.workspace-row:hover { background: hsl(var(--accent) / .25); }
.workspace-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--sidebar-background)); }
.workspace-symbol .icon { height: 21px; width: 21px; }
.workspace-copy { display: flex; flex-direction: column; gap: 4px; }
.workspace-copy strong { font-size: 15px; font-weight: 550; }
.workspace-copy > span { color: hsl(var(--muted-foreground)); }
.row-action { margin-left: auto; display: flex; align-items: center; gap: 12px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.workspace-row:hover .row-action { color: hsl(var(--foreground)); }
.account-guide { margin-top: 52px; max-width: 60ch; }
.account-guide h2 { font-size: 14px; }
.account-guide p { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 8px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 34px; padding: 6px 12px; border: 1px solid hsl(var(--border)); border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.primary { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.primary:hover { background: hsl(var(--foreground) / .85); }
.secondary { background: transparent; color: hsl(var(--foreground)); }
.secondary:hover { background: hsl(var(--accent)); }
.text-button { padding: 4px 0; border: 0; background: none; color: hsl(var(--foreground)); font-size: 12px; text-decoration: underline; text-decoration-color: hsl(var(--muted-foreground)); text-underline-offset: 4px; }
.text-button:hover { text-decoration-color: hsl(var(--foreground)); }
input, select { height: 34px; padding: 0 10px; border: 1px solid hsl(var(--input)); border-radius: 5px; background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 12px; min-width: 0; }
input::placeholder { color: hsl(var(--muted-foreground)); opacity: 1; }
.inventory-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.search-field { position: relative; width: min(290px, 100%); }
.search-field .icon { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: hsl(var(--muted-foreground)); }
.search-field input { width: 100%; padding-left: 34px; }
.scope-field select { min-width: 140px; }
.result-count { font-size: 12px; color: hsl(var(--muted-foreground)); margin-left: auto; white-space: nowrap; }
.inventory-body { display: flex; align-items: flex-start; min-width: 0; }
.inventory-table-wrap { position: relative; min-width: 0; flex: 1; overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.inventory-table th { height: 34px; padding: 0 12px; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); font-size: 11px; color: hsl(var(--muted-foreground)); font-weight: 500; background: hsl(var(--sidebar-background) / .5); }
.inventory-table th:first-child { padding-left: 14px; }
.inventory-table td { padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
.inventory-table th:last-child, .inventory-table td:last-child { width: 40px; padding-right: 4px; }
.inventory-table tbody tr:hover, .inventory-table tbody tr.selected { background: hsl(var(--accent) / .35); }
.object-name { display: inline-flex; align-items: center; gap: 12px; padding: 2px; text-align: left; color: inherit; background: transparent; border: 0; }
.object-name > .icon { color: hsl(var(--muted-foreground)); }
.object-name span { display: flex; flex-direction: column; gap: 3px; }
.object-name strong { font-size: 13px; font-weight: 500; }
.object-name small { color: hsl(var(--muted-foreground)); font-size: 11px; }
.scope-label { font-size: 11px; color: hsl(var(--muted-foreground)); }
a.scope-label:hover { text-decoration: underline; color: hsl(var(--foreground)); }
.object-detail { flex: 0 0 292px; min-width: 0; padding: 0 0 16px 24px; margin-left: 24px; border-left: 1px solid hsl(var(--border)); }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.detail-heading h2 { overflow-wrap: anywhere; font-size: 15px; padding-top: 4px; }
.object-detail dl { margin: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px 12px; font-size: 12px; }
.object-detail dt { color: hsl(var(--muted-foreground)); }
.object-detail dd { margin: 0; overflow-wrap: anywhere; }
.record-path { margin: 24px 0; }
.record-path span { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); margin-bottom: 6px; }
.record-path code { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; }
.object-detail > .text-button { display: block; margin-top: 12px; }
.inventory-empty, .empty-state { padding: 48px 24px; text-align: center; }
.empty-state { margin: auto; max-width: 620px; }
.empty-state h1 { font-size: 20px; }
.inventory-empty h2, .empty-state h2 { font-size: 16px; }
.inventory-empty p, .empty-state p { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 10px auto 20px; max-width: 54ch; }
.empty-symbol { margin: 0 auto 18px; color: hsl(var(--muted-foreground)); }
.empty-symbol .icon { width: 26px; height: 26px; }
.empty-state .text-button { display: block; margin-top: 14px; }
.dashboard-content { min-height: 0; flex: 1; display: flex; }
.dashboard-view { position: relative; min-height: 0; min-width: 0; flex: 1; display: flex; }
.dashboard-frame { width: 100%; height: 100%; border: 0; background: hsl(var(--background)); }
.frame-loading { position: absolute; z-index: 1; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; font-size: 12px; color: hsl(var(--muted-foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 5px; }
.frame-error { margin: auto; }
.loading { padding: 32px; color: hsl(var(--muted-foreground)); }
.loading-state { padding: 24px 0; max-width: 760px; width: 100%; }
.dashboard-view > .loading-state { margin: 20px 32px; }
.loading-state p { color: hsl(var(--muted-foreground)); font-size: 13px; margin-bottom: 20px; }
.skeleton { height: 38px; margin: 10px 0; border-radius: 4px; background: hsl(var(--muted) / .6); }
.skeleton.short { width: 65%; }
.notice { font-size: 13px; color: hsl(var(--muted-foreground)); margin: 16px 0; }
.notice.error { color: #fca5a5; }
.section-heading, .editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading p { color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 5px; }
section + section { margin-top: 40px; }
.machine-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px; border-top: 1px solid hsl(var(--border)); }
.machine-row strong, .machine-row span { display: block; }
.machine-row strong { font-size: 13px; font-weight: 550; }
.machine-row span { color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 3px; }
.machine-editor { padding: 24px 0; margin-top: 12px; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; }
.fields label { font-size: 12px; font-weight: 500; }
.fields input, .fields select { display: block; width: 100%; margin-top: 7px; }
.fields small { display: block; margin-top: 6px; color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 400; }
.form-status { color: hsl(var(--muted-foreground)); font-size: 12px; margin: 10px 0; }
.table-head, .service-row { display: grid; grid-template-columns: 1fr 2fr 100px; align-items: center; gap: 18px; }
.table-head { color: hsl(var(--muted-foreground)); font-size: 11px; padding: 0 0 10px; }
.service-row { border-top: 1px solid hsl(var(--border)); padding: 11px 0; }
.service-row input, .service-row select { width: 100%; }
.service-name { font-size: 13px; }
.form-footer { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.empty { color: hsl(var(--muted-foreground)); font-size: 13px; padding: 16px 0; border-top: 1px solid hsl(var(--border)); }
.signin { min-height: 100dvh; padding: 24px 32px; background: hsl(var(--background)); }
.signin-content { width: min(100%, 440px); margin: 20vh auto 0; }
.signin-content h1 { font-size: 32px; line-height: 1.3; }
.signin-content p { color: hsl(var(--muted-foreground)); font-size: 14px; margin: 20px 0 28px; max-width: 42ch; line-height: 1.7; }
.signin-content .button { min-height: 38px; }
.signin-content .button + .button { margin-inline-start: 8px; }
.failure { max-width: 600px; margin: 15vh auto; padding: 24px; }
.failure p { color: hsl(var(--muted-foreground)); margin: 16px 0 24px; }
.nav-collapsed .sidebar { display: none; }
.mobile-close, .sidebar-scrim { display: none; }
.member-search input { width: min(250px, 100%); }
.members-table-wrap { overflow-x: auto; }
.members-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 12px; }
.members-table th { padding: 10px 12px; border-block: 1px solid hsl(var(--border)); background: hsl(var(--sidebar-background) / .5); color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 500; }
.members-table td { padding: 15px 12px; vertical-align: top; border-bottom: 1px solid hsl(var(--border)); overflow-wrap: anywhere; }
.members-table th:first-child { width: 32%; }
.members-table th:nth-child(2) { width: 19%; }
.members-table th:last-child { width: 112px; }
.members-table .text-button { white-space: nowrap; }
.members-table tr.selected > td { background: hsl(var(--accent) / .25); }
.member-identity, .member-access-summary { display: flex; flex-direction: column; gap: 4px; }
.member-identity strong { font-size: 13px; font-weight: 550; }
.member-identity > span, .member-identity small, .member-access-summary small { color: hsl(var(--muted-foreground)); font-size: 11px; }
.member-access-summary > span { line-height: 1.6; }
.member-editor-row > td { padding: 0 12px 22px; }
.member-editor { padding: 20px 12px 4px; max-width: 840px; }
.member-editor h3 { overflow-wrap: anywhere; }
.member-editor fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.member-admin { display: flex; align-items: flex-start; gap: 10px; }
.member-admin input { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: hsl(var(--brand)); }
.member-admin strong, .member-resource-access strong { display: block; font-weight: 550; }
.member-admin small, .member-resource-access small { display: block; max-width: 57ch; color: hsl(var(--muted-foreground)); font-size: 11px; margin-top: 5px; line-height: 1.6; }
.member-resource-access { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: start; gap: 20px; margin-top: 22px; }
.member-workspaces { margin-top: 28px !important; }
.member-workspaces legend { font-size: 13px; font-weight: 550; }
.member-workspaces > p { margin: 7px 0 13px; font-size: 11px; color: hsl(var(--muted-foreground)); }
.member-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: center; gap: 20px; padding: 10px 0; border-top: 1px solid hsl(var(--border)); }
.member-workspace .mono { overflow-wrap: anywhere; }
.member-save-hint { font-size: 11px; color: hsl(var(--muted-foreground)); }
.member-invite { padding: 18px 0 24px; border-block: 1px solid hsl(var(--border)); margin-bottom: 30px; }
.member-invite > label { display: block; font-size: 12px; margin-bottom: 8px; font-weight: 500; }
.member-invite-controls { display: flex; align-items: center; gap: 12px; max-width: 670px; }
.member-invite-controls input { flex: 1; width: 100%; }
.member-invite > p { margin-top: 11px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.member-invite > .button { margin-top: 12px; }
.member-invitations { border-top: 1px solid hsl(var(--border)); }
.member-invitation { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 12px; border-bottom: 1px solid hsl(var(--border)); }
.member-invitation > div { min-width: 0; }
.member-invitation strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
.member-invitation span { display: block; color: hsl(var(--muted-foreground)); font-size: 11px; margin-top: 4px; }
.member-empty { padding: 24px 12px; color: hsl(var(--muted-foreground)); font-size: 12px; }
@media (max-width: 760px) {
  .members-table, .members-table tbody { display: block; }
  .members-table thead { display: none; }
  .members-table tr:not(.member-editor-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; padding: 18px 0; border-top: 1px solid hsl(var(--border)); }
  .members-table tr:not(.member-editor-row) > td { display: block; padding: 0; border: 0; }
  .members-table tr:not(.member-editor-row) > td:first-child { grid-column: 1; grid-row: 1; }
  .members-table tr:not(.member-editor-row) > td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 11px; color: hsl(var(--muted-foreground)); }
  .members-table tr:not(.member-editor-row) > td:nth-child(3) { grid-column: 1; grid-row: 3; margin-top: 5px; }
  .members-table tr:not(.member-editor-row) > td:last-child { grid-column: 2; grid-row: 1 / span 3; }
  .member-editor-row, .member-editor-row > td { display: block; padding: 0; border: 0; }
  .member-editor { padding-inline: 0; }
  .member-resource-access, .member-workspace { grid-template-columns: minmax(0, 1fr) 115px; gap: 12px; }
  .member-editor .form-footer { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .member-save-hint { flex-basis: 100%; }
  .member-invite-controls { flex-wrap: wrap; }
  .member-invite-controls input { flex-basis: 100%; }
  .member-search { max-width: 55%; }
}
@media (max-width: 1100px) { .page-view { padding: 28px 24px 48px; } .inventory-body { flex-direction: column; } .inventory-table-wrap { width: 100%; } .object-detail { flex-basis: auto; width: 100%; border-left: 0; border-top: 1px solid hsl(var(--border)); padding: 24px 0 0; margin: 24px 0 0; } .object-detail dl { grid-template-columns: 120px minmax(0, 1fr); } }
@media (max-width: 760px) { .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(290px, 85vw); } .mobile-nav-open .sidebar { display: flex; } .mobile-nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 20; border: 0; background: rgb(0 0 0 / .6); } .mobile-close { display: inline-flex; } .topbar { padding: 0 12px; gap: 9px; } .toolbar-label { display: none; } .page-view { padding: 24px 18px 40px; } h1 { font-size: 22px; } .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; } .page-heading .count-label { display: none; } .workspace-row { gap: 12px; padding: 20px 0; } .row-action { font-size: 0; gap: 0; } .inventory-toolbar { flex-wrap: wrap; } .search-field { width: 100%; } .scope-field { flex: 1; } .scope-field select { width: 100%; } .inventory-table { min-width: 0; } .inventory-table th:nth-child(2), .inventory-table td:nth-child(2), .inventory-table th:nth-child(3), .inventory-table td:nth-child(3) { display: none; } .inventory-table td, .inventory-table th { padding-left: 7px; padding-right: 7px; } .object-name { gap: 8px; } .object-name strong { font-size: 12px; } .fields { grid-template-columns: 1fr; } .table-head { display: none; } .service-row { grid-template-columns: 1fr 100px; gap: 8px; } .service-name { grid-column: 1 / -1; margin-bottom: 4px; } .section-heading { align-items: flex-start; } .section-heading p { max-width: 28ch; } .signin { padding: 20px; } .signin-content { margin-top: 16vh; } .dashboard-frame { min-width: 0; } }
