:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #656d76;
  --faint: #8c959f;
  --border: #d0d7de;
  --border-muted: #d8dee4;
  --header: #20252b;
  --header-muted: #afb8c1;
  --accent: #0969da;
  --taskset: #0969da;
  --taskset-soft: #ddf4ff;
  --environment: #1a7f37;
  --environment-soft: #dafbe1;
  --artifact: #9a6700;
  --artifact-soft: #fff8c5;
  --danger: #cf222e;
  --shadow: 0 1px 0 rgba(31, 35, 40, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.84rem; letter-spacing: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 600px) minmax(230px, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  color: #fff;
  background: var(--header);
  border-bottom: 1px solid #171a1e;
}

.login-topbar { position: static; grid-template-columns: 1fr; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 8px; color: #fff; font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.05rem; }
.brand-product { color: var(--header-muted); font-weight: 500; }
.brand-mark, .login-mark { display: inline-grid; grid-template-columns: repeat(3, 4px); align-items: end; gap: 3px; width: 20px; height: 21px; }
.brand-mark span, .login-mark span { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.brand-mark span:nth-child(1), .login-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2), .login-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3), .login-mark span:nth-child(3) { height: 14px; }

.global-search { position: relative; width: 100%; }
.global-search input { width: 100%; height: 36px; padding: 0 42px 0 36px; color: #fff; background: #1b1f24; border: 1px solid #57606a; border-radius: 6px; outline: none; }
.global-search input::placeholder { color: var(--header-muted); }
.global-search input:focus { border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.25); }
.global-search kbd { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; color: var(--header-muted); text-align: center; line-height: 18px; border: 1px solid #57606a; border-radius: 4px; background: transparent; }
.search-symbol { position: absolute; z-index: 1; top: 10px; left: 12px; width: 14px; height: 14px; border: 2px solid var(--header-muted); border-radius: 50%; }
.search-symbol::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -3px; background: var(--header-muted); transform: rotate(45deg); }

.account-area { display: flex; align-items: center; justify-self: end; gap: 8px; color: #fff; font-size: 0.82rem; }
.account-avatar, .owner-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; color: #fff; background: #57606a; border-radius: 5px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.account-area form { margin-left: 6px; }
.account-area button { padding: 4px 8px; color: var(--header-muted); background: transparent; border: 0; font-size: 0.78rem; }
.account-area button:hover { color: #fff; }
.trust-plane-link { margin-right: 7px; padding-right: 13px; color: #d2a8ff; border-right: 1px solid #57606a; font-weight: 600; white-space: nowrap; }
.trust-plane-link:hover { color: #fff; text-decoration: none; }
.account-link { padding: 4px 6px; color: var(--header-muted); font-weight: 550; white-space: nowrap; }
.account-link:hover { color: #fff; text-decoration: none; }
.composition-link span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; color: #fff; background: #57606a; border-radius: 10px; font-size: 0.68rem; }
.composition-toast { position: fixed; z-index: 30; top: 76px; right: 20px; max-width: min(420px, calc(100% - 40px)); padding: 10px 13px; color: #7d4e00; background: #fff8c5; border: 1px solid #d4a72c; border-radius: 6px; box-shadow: 0 5px 18px rgba(31, 35, 40, 0.14); font-size: 0.78rem; }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); width: min(1320px, 100%); min-height: calc(100vh - 112px); margin: 0 auto; }
.sidebar { padding: 26px 20px 40px; border-right: 1px solid var(--border-muted); }
.sidebar-section { margin-top: 30px; }
.sidebar-label { margin: 18px 10px 8px; color: var(--muted); font-size: 0.7rem; font-weight: 650; text-transform: uppercase; }
.sidebar-section .sidebar-label { margin-top: 0; }
.nav-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 37px; padding: 6px 10px; color: var(--text); font-size: 0.86rem; border-radius: 6px; }
.nav-item:hover { background: #eef1f4; text-decoration: none; }
.nav-item.active { color: var(--text); background: #eaeef2; font-weight: 600; }
.nav-primary { min-height: 43px; margin-bottom: 2px; font-weight: 620; }
.nav-primary.active { color: #0550ae; background: var(--taskset-soft); }
.nav-count { color: var(--muted); font-size: 0.72rem; }
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.namespace-avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #fff; background: #6e7781; border-radius: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.nav-symbol { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.72rem; }

.resource-glyph { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 38px; height: 38px; padding: 8px 7px; border: 1px solid; border-radius: 5px; }
.resource-glyph.small { width: 20px; height: 20px; padding: 4px; border-radius: 4px; }
.resource-glyph.large { width: 46px; height: 46px; padding: 10px 9px; }
.resource-glyph.taskset { color: var(--taskset); background: var(--taskset-soft); border-color: #b6d9f2; }
.resource-glyph.taskset span { display: block; height: 3px; background: currentColor; border-radius: 1px; }
.resource-glyph.taskset span:nth-child(2) { width: 72%; }
.resource-glyph.taskset.small { gap: 2px; padding: 4px 3px; }
.resource-glyph.taskset.small span { height: 2px; }
.resource-glyph.environment { color: var(--environment); background: var(--environment-soft); border-color: #aceebb; }
.resource-glyph.environment::before { content: ""; position: absolute; top: 7px; right: 6px; left: 6px; height: 3px; border-bottom: 1px solid currentColor; }
.resource-glyph.environment::after { content: ">_"; position: absolute; left: 7px; bottom: 6px; font-family: ui-monospace, monospace; font-size: 0.72rem; font-weight: 700; }
.resource-glyph.environment.small::before { top: 3px; right: 3px; left: 3px; height: 2px; }
.resource-glyph.environment.small::after { left: 3px; bottom: 2px; font-size: 0.42rem; }
.resource-glyph.artifact { color: var(--artifact); background: var(--artifact-soft); border-color: #eac54f; }
.resource-glyph.artifact::before { content: ""; position: absolute; top: 7px; right: 7px; left: 7px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.resource-glyph.artifact::after { content: ""; position: absolute; top: 11px; right: 7px; bottom: 7px; left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; border-radius: 0 0 50% 50%; }
.resource-glyph.artifact.small::before { top: 3px; right: 3px; left: 3px; height: 4px; border-width: 1px; }
.resource-glyph.artifact.small::after { top: 5px; right: 3px; bottom: 3px; left: 3px; border-width: 1px; }

.main-content { min-width: 0; padding: 42px 48px 64px; }
.page-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading { margin-bottom: 24px; padding-bottom: 15px; border-bottom: 1px solid var(--border-muted); }
.taskset-heading { border-bottom-color: #b6d9f2; }
.environment-heading { border-bottom-color: #aceebb; }
.artifact-heading { border-bottom-color: #eac54f; }
.eyebrow { margin-bottom: 3px; color: var(--muted); font-size: 0.72rem; font-weight: 650; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: 0; line-height: 1.25; }
h1 { font-size: 1.7rem; font-weight: 650; }
h2 { font-size: 1.08rem; font-weight: 650; }
.result-count { color: var(--muted); font-size: 0.83rem; }
.heading-actions { display: flex; align-items: center; gap: 14px; }
.primary-link, .primary-button { display: inline-flex; align-items: center; min-height: 35px; padding: 5px 12px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.76rem; font-weight: 650; }
.primary-link:hover, .primary-button:hover { color: #fff; background: #0550ae; text-decoration: none; }
.primary-button:disabled { cursor: not-allowed; opacity: 0.55; }

.registry-summary { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); margin: 0 0 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.registry-summary > div { padding: 14px 18px; border-right: 1px solid var(--border-muted); }
.registry-summary > div:last-child { border-right: 0; }
.registry-summary .primary-stat { box-shadow: inset 3px 0 var(--taskset); }
.registry-summary dt { color: var(--muted); font-size: 0.72rem; }
.registry-summary dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 650; }

.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 0.8rem; }
.filter-bar > a { margin-left: auto; }
.filter-chip, .visibility, .kind-label { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; color: #59636e; background: #eff3f6; border: 1px solid #d8dee4; border-radius: 12px; font-size: 0.72rem; line-height: 1.2; }
.kind-label { padding: 0; background: transparent; border-color: transparent; }
.visibility { background: #fff; }
.visibility.prominent { margin-left: auto; }

.root-list { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.root-row { display: grid; grid-template-columns: 40px minmax(220px, 1fr) auto 18px; align-items: center; gap: 14px; min-height: 88px; padding: 15px 18px; border-bottom: 1px solid var(--border-muted); }
.root-row:last-child { border-bottom: 0; }
.root-row:hover { background: #f8fafc; }
.root-main { min-width: 0; }
.root-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.root-name { color: var(--text); font-size: 0.98rem; font-weight: 650; }
.root-name span, .root-header h1 span { color: var(--muted); font-weight: 500; }
.root-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 0.77rem; }
.root-meta code { color: #424a53; }
.separator { width: 3px; height: 3px; background: var(--faint); border-radius: 50%; }
.row-arrow { color: var(--faint); font-size: 1.5rem; }
.label-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.label-strip span { padding: 2px 6px; color: #424a53; background: #f6f8fa; border: 1px solid var(--border-muted); border-radius: 4px; font-size: 0.68rem; }
.label-strip b { font-weight: 650; }

.search-group { margin-top: 30px; }
.search-group:first-of-type { margin-top: 0; }
.group-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }
.group-heading span { color: var(--muted); font-size: 0.78rem; }

.empty-state { display: grid; justify-items: center; padding: 72px 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.empty-state h2 { margin: 18px 0 8px; }
.empty-mark { display: flex; flex-direction: column; gap: 6px; width: 54px; }
.empty-mark span { display: block; height: 8px; background: #8c959f; border-radius: 2px; }
.empty-mark span:nth-child(2) { width: 76%; background: #afb8c1; }
.empty-mark span:nth-child(3) { width: 90%; background: #d0d7de; }

.root-detail { min-width: 0; max-width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 0.8rem; }
.breadcrumb strong { color: var(--text); font-weight: 550; }
.root-header { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.root-heading-text { min-width: 0; }
.root-header h1 { overflow-wrap: anywhere; }
.tab-bar { display: flex; gap: 24px; border-bottom: 1px solid var(--border); }
.tab-bar a { position: relative; padding: 10px 2px 12px; color: var(--muted); font-size: 0.85rem; font-weight: 550; }
.tab-bar a:hover { color: var(--text); text-decoration: none; }
.tab-bar a.active { color: var(--text); }
.tab-bar a.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #fd8c73; }
.tab-bar span { margin-left: 3px; padding: 1px 6px; background: #eaeef2; border-radius: 10px; font-size: 0.68rem; }
.detail-section { min-width: 0; max-width: 100%; padding: 30px 0 36px; border-bottom: 1px solid var(--border-muted); }
.detail-section:last-child { border-bottom: 0; }
.section-heading { margin-bottom: 16px; }
.section-intro { max-width: 720px; margin: -7px 0 17px; color: var(--muted); font-size: 0.8rem; }

.copy-button, .inline-copy, .version-freeze { min-height: 31px; padding: 5px 11px; color: var(--text); background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; font-size: 0.76rem; font-weight: 550; box-shadow: var(--shadow); }
.copy-button:hover, .inline-copy:hover, .version-freeze:hover { background: #eef1f4; }
.inline-copy, .version-freeze { min-height: 27px; padding: 3px 8px; font-size: 0.71rem; }

.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.identity-grid > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--border-muted); }
.identity-grid > div:nth-child(3) { border-right: 0; }
.identity-grid .digest-cell { grid-column: 1 / -1; border-top: 1px solid var(--border-muted); border-right: 0; }
.identity-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 0.72rem; }
.identity-grid dd { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 0.84rem; }
.identity-grid small { color: var(--muted); font-size: 0.72rem; }
.identity-grid code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-avatar { width: 24px; height: 24px; background: #57606a; }
.owner-avatar.user { background: var(--taskset); }

.version-list, .access-list { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.version-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 10px 13px; border-bottom: 1px solid var(--border-muted); }
.version-row:last-child { border-bottom: 0; }
.version-binding { display: grid; min-width: 0; gap: 5px; }
.version-binding-main { display: grid; grid-template-columns: minmax(72px, max-content) minmax(0, 1fr); align-items: baseline; gap: 14px; min-width: 0; }
.version-binding-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-binding-main code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-state { color: var(--muted); font-size: 0.72rem; }
.version-actions { display: flex; align-items: center; gap: 7px; }
.version-actions form { margin: 0; }
.version-mark { width: 10px; height: 10px; background: var(--taskset-soft); border: 2px solid var(--taskset); border-radius: 50%; }
.taskset-versions-section { padding-top: 34px; }
.taskset-version-row { min-height: 76px; }
.version-link { min-width: 72px; color: var(--text); font-size: 0.91rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-link:hover { color: var(--accent); }
.version-open { display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; color: var(--accent); font-size: 0.74rem; font-weight: 620; white-space: nowrap; }
.version-open:hover { text-decoration: none; }
.version-open span { font-size: 1.1rem; line-height: 1; }

/* Repository-scoped immutable version inventory and activity */
.section-heading-actions { display: flex; align-items: center; gap: 12px; }
.taskset-version-inventory { display: grid; gap: 12px; }
.taskset-version-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.taskset-version-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid var(--border-muted); }
.taskset-version-card-header > div:first-child { min-width: 0; }
.taskset-version-card .version-binding-main { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.taskset-version-card .version-link { min-width: 0; }
.taskset-version-card .version-link code { font-size: 0.82rem; }
.version-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.version-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; background: #f1f6fa; border: 1px solid #d4e0e9; border-radius: 12px; font-size: 0.72rem; }
.version-tag a { color: var(--text); font-weight: 650; }
.version-tag small { color: var(--muted); font-size: 0.61rem; }
.version-state.historical { padding: 2px 7px; background: #f6f8fa; border: 1px solid var(--border-muted); border-radius: 12px; }
.version-open.secondary { color: var(--muted); }
.version-inventory-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.version-inventory-stats > div { min-width: 0; padding: 11px 15px; border-right: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
.version-inventory-stats > div:nth-child(3n) { border-right: 0; }
.version-inventory-stats > div:nth-last-child(-n+3) { border-bottom: 0; }
.version-inventory-stats dt { color: var(--muted); font-size: 0.66rem; }
.version-inventory-stats dd { min-width: 0; margin: 4px 0 0; overflow-wrap: anywhere; font-size: 0.77rem; font-weight: 620; }
.version-inventory-stats code { font-size: 0.67rem; font-weight: 500; }
.version-validation { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.version-validation::before { width: 7px; height: 7px; background: #8c959f; border-radius: 50%; content: ""; }
.version-validation.valid { color: #176c3a; }
.version-validation.valid::before { background: #2da44e; }
.version-inventory-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 15px; color: var(--muted); background: #fbfcfd; font-size: 0.68rem; }
.version-freeze-form { display: inline-flex; margin: 0 0 10px 15px; }
.repository-activity-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.repository-activity-row { display: grid; grid-template-columns: 10px minmax(150px, 1fr) minmax(180px, auto) minmax(85px, auto); align-items: center; gap: 11px; min-width: 0; padding: 12px 15px; border-bottom: 1px solid var(--border-muted); }
.repository-activity-row:last-child { border-bottom: 0; }
.activity-mark { width: 8px; height: 8px; background: var(--taskset); border-radius: 50%; }
.activity-main { min-width: 0; }
.activity-main strong, .activity-main small { display: block; }
.activity-main strong { overflow-wrap: anywhere; font-size: 0.76rem; }
.activity-main small { margin-top: 3px; color: var(--muted); font-size: 0.66rem; }
.activity-transition { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); }
.activity-transition code { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.67rem; }
.activity-state-transition { color: var(--text); font-size: 0.67rem; font-weight: 650; white-space: nowrap; }
.activity-revision { text-align: right; }
.activity-revision span, .activity-revision small { display: block; font-size: 0.65rem; }
.activity-revision small { margin-top: 2px; color: #176c3a; }
.repository-activity-row details { grid-column: 2 / -1; color: var(--muted); font-size: 0.66rem; }
.repository-activity-row summary { cursor: pointer; }

.version-acquisition { padding-top: 30px; }
.version-acquisition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.version-acquisition-grid > article { min-width: 0; overflow: hidden; padding: 14px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.version-acquisition-grid h3 { margin: 0 0 10px; font-size: 0.78rem; }
.version-command-list { display: grid; gap: 7px; }
.version-command-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 7px 8px; background: #f6f8fa; border: 1px solid var(--border-muted); border-radius: 5px; }
.version-command-list code { min-width: 0; overflow-x: auto; font-size: 0.68rem; white-space: nowrap; }
.version-download-list { display: grid; gap: 7px; }
.version-download-list > a, .version-download-list > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px; color: var(--text); background: #f8fafc; border: 1px solid var(--border-muted); border-radius: 5px; }
.version-download-list > a:hover { border-color: #9fc5e4; text-decoration: none; }
.version-download-list strong, .version-download-list small { font-size: 0.7rem; }
.version-download-list small { color: var(--muted); text-align: right; }
.version-acquisition-facts { display: grid; grid-template-columns: 1fr; margin: 10px 0 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.version-acquisition-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-width: 0; border-bottom: 1px solid var(--border-muted); }
.version-acquisition-facts > div:last-child { border-bottom: 0; }
.version-acquisition-facts dt, .version-acquisition-facts dd { min-width: 0; margin: 0; padding: 9px 11px; font-size: 0.68rem; }
.version-acquisition-facts dt { color: var(--muted); background: #f8fafc; border-right: 1px solid var(--border-muted); }
.version-acquisition-facts dd { overflow-x: auto; }
.version-acquisition-facts code { white-space: nowrap; }

/* Fleet TaskSet and Task inspection */
.fleet-inspection-page { min-width: 0; }
.fleet-version-header { margin-bottom: 22px; }
.fleet-version-summary { display: grid; grid-template-columns: minmax(120px, 0.55fr) minmax(100px, 0.45fr) minmax(240px, 1fr); margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.fleet-version-summary > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--border-muted); }
.fleet-version-summary > div:last-child { border-right: 0; }
.fleet-version-summary dt { margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; }
.fleet-version-summary dd { min-width: 0; margin: 0; font-size: 0.9rem; font-weight: 620; }
.fleet-version-summary .fleet-summary-digest dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; }
.fleet-summary-digest code { min-width: 0; overflow: hidden; color: #424a53; text-overflow: ellipsis; white-space: nowrap; }
.task-index-section { min-width: 0; padding: 34px 0 20px; }
.task-selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 10px 12px; color: var(--muted); background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; font-size: 0.76rem; }
.task-selection-toolbar label { display: flex; align-items: center; gap: 8px; }
.task-selection-toolbar input, .task-select-control input { width: 16px; height: 16px; }
.task-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.task-row { border-bottom: 1px solid var(--border-muted); }
.task-row:last-child { border-bottom: 0; }
.selectable-task-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: stretch; }
.task-select-control { display: grid; place-items: center; border-right: 1px solid var(--border-muted); cursor: pointer; }
.task-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(100px, auto) 16px; align-items: center; gap: 13px; min-height: 72px; padding: 12px 15px; color: var(--text); }
.task-link:hover { background: #f8fafc; text-decoration: none; }
.task-mark { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 32px; height: 32px; padding: 7px 6px; color: var(--taskset); background: var(--taskset-soft); border: 1px solid #b6d9f2; border-radius: 5px; }
.task-mark span { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.task-mark span:nth-child(2) { width: 70%; }
.task-row-main { min-width: 0; }
.task-row-main strong, .task-row-main small { display: block; }
.task-row-main strong { overflow-wrap: anywhere; font-size: 0.9rem; }
.task-row-main small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.task-link > code { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-arrow { color: var(--faint); font-size: 1.4rem; }

.task-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.task-composition-toggle { flex: 0 0 auto; margin-left: auto; }
.task-header h1 { overflow-wrap: anywhere; }
.task-header-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; color: var(--muted); }
.task-header-meta span { padding: 1px 6px; background: #eff3f6; border: 1px solid var(--border-muted); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.65rem; }
.task-header-meta code { color: var(--muted); }
.task-hero-mark { display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; gap: 5px; width: 46px; height: 46px; padding: 10px 9px; color: var(--taskset); background: var(--taskset-soft); border: 1px solid #b6d9f2; border-radius: 6px; }
.task-hero-mark span { display: block; height: 3px; background: currentColor; border-radius: 1px; }
.task-hero-mark span:nth-child(2) { width: 72%; }
.task-detail-section { min-width: 0; padding: 34px 0 38px; border-bottom: 1px solid var(--border-muted); }
.task-detail-section:last-child { border-bottom: 0; }
.prompt-section { padding-top: 30px; }
.prompt-blocks { display: grid; gap: 10px; }
.prompt-block { position: relative; min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.prompt-block-kind { display: inline-flex; margin-bottom: 10px; padding: 2px 7px; color: #424a53; background: #eff3f6; border: 1px solid var(--border-muted); border-radius: 10px; font-size: 0.65rem; font-weight: 650; text-transform: uppercase; }
.prompt-text { color: #303942; font-size: 0.92rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-block pre { max-height: 420px; margin: 0; padding: 12px; overflow: auto; background: #f6f8fa; border: 1px solid var(--border-muted); border-radius: 5px; font-size: 0.74rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-artifact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--border-muted); border-radius: 5px; }
.prompt-artifact > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--border-muted); }
.prompt-artifact > div:last-child { border-right: 0; }
.prompt-artifact dt { color: var(--muted); font-size: 0.68rem; }
.prompt-artifact dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 0.76rem; }
.abstraction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.abstraction-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.abstraction-card > header { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 14px; border-bottom: 1px solid var(--border-muted); }
.abstraction-card > header > div { min-width: 0; }
.abstraction-card h3, .abstraction-card header span { display: block; }
.abstraction-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 0.86rem; }
.abstraction-card header div > span { margin-top: 2px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.69rem; }
.abstraction-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; color: #424a53; background: #eff3f6; border: 1px solid var(--border-muted); border-radius: 5px; font-size: 0.61rem; font-weight: 750; letter-spacing: 0.02em; }
.environment-card { border-color: #aceebb; }
.environment-card > header { background: #f4fbf6; }
.environment-card .abstraction-mark { color: var(--environment); background: var(--environment-soft); border-color: #aceebb; }
.artifact-card { border-color: #eac54f; }
.artifact-card > header { background: #fffdf1; }
.artifact-card .abstraction-mark { color: var(--artifact); background: var(--artifact-soft); border-color: #eac54f; }
.verifier-card { border-color: #c7b7ea; }
.verifier-card > header { background: #faf8ff; }
.verifier-card .abstraction-mark { color: #6639ba; background: #f0e7ff; border-color: #c7b7ea; }
.capture-card .abstraction-mark { color: #0f766e; background: #e6fffb; border-color: #99d5ce; }
.abstraction-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 9px 14px; color: var(--muted); border-bottom: 1px solid var(--border-muted); font-size: 0.67rem; }
.abstraction-identity code { min-width: 0; overflow: hidden; color: #424a53; text-overflow: ellipsis; white-space: nowrap; }
.detail-fact-list { margin: 0; }
.detail-fact-list > div { display: grid; grid-template-columns: minmax(105px, 0.38fr) minmax(0, 0.62fr); min-height: 39px; border-bottom: 1px solid var(--border-muted); }
.detail-fact-list dt, .detail-fact-list dd { min-width: 0; margin: 0; padding: 9px 12px; overflow-wrap: anywhere; font-size: 0.7rem; }
.detail-fact-list dt { color: var(--muted); background: #f8fafc; border-right: 1px solid var(--border-muted); }
.detail-fact-list dd { color: #303942; }
.nested-bindings { display: grid; gap: 4px; padding: 10px 13px; border-bottom: 1px solid var(--border-muted); font-size: 0.7rem; }
.nested-bindings strong { margin-bottom: 2px; font-size: 0.68rem; }
.nested-bindings span { color: var(--muted); overflow-wrap: anywhere; }
.card-raw { min-width: 0; background: #f8fafc; }
.card-raw summary { padding: 9px 13px; color: var(--muted); cursor: pointer; font-size: 0.68rem; font-weight: 600; }
.card-raw[open] summary { border-bottom: 1px solid var(--border-muted); }
.card-raw pre { min-width: 0; max-height: 260px; margin: 0; padding: 11px 13px; overflow: auto; color: #303942; background: #fff; font-size: 0.67rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.intent-list { display: grid; gap: 10px; }
.intent-list article { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.intent-list h3 { margin: 0; padding: 10px 13px; background: #f6f8fa; border-bottom: 1px solid var(--border-muted); font-size: 0.78rem; }
.intent-list pre { min-width: 0; max-height: 300px; margin: 0; padding: 12px 13px; overflow: auto; font-size: 0.7rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.raw-content-section { padding-bottom: 18px; }
.raw-document-list { display: grid; gap: 10px; }
.raw-document { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.raw-document > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 12px 14px; color: var(--text); background: #f6f8fa; cursor: pointer; font-size: 0.8rem; font-weight: 650; }
.raw-document > summary small { color: var(--muted); font-size: 0.68rem; font-weight: 500; text-align: right; }
.raw-document[open] > summary { border-bottom: 1px solid var(--border-muted); }
.raw-document pre { min-width: 0; max-height: 620px; margin: 0; padding: 15px; overflow: auto; color: #303942; background: #fff; font-size: 0.72rem; line-height: 1.5; white-space: pre; }
.raw-document code { font-size: inherit; }

/* TaskSet composition */
.composition-heading { align-items: flex-end; }
.composition-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-steps li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; color: var(--muted); border-right: 1px solid var(--border-muted); font-size: 0.76rem; font-weight: 600; }
.composition-steps li:last-child { border-right: 0; }
.composition-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--muted); background: #eff3f6; border: 1px solid var(--border); border-radius: 50%; font-size: 0.67rem; }
.composition-steps .active { color: #0550ae; }
.composition-steps .active span { color: #fff; background: var(--accent); border-color: #0550ae; }
.composition-error { margin: 0 0 14px; }
.composition-section { min-width: 0; padding: 28px 0 31px; border-bottom: 1px solid var(--border-muted); }
.composition-source-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-source-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.6fr) auto; align-items: center; gap: 14px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--border-muted); }
.composition-source-row:last-child { border-bottom: 0; }
.composition-source-row strong, .composition-source-row small { display: block; overflow-wrap: anywhere; }
.composition-source-row strong { font-size: 0.83rem; }
.composition-source-row small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.composition-source-row code { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.composition-source-row button { padding: 4px 8px; color: var(--danger); background: #fff; border: 1px solid var(--border); border-radius: 5px; font-size: 0.7rem; }
.composition-source-state { color: var(--muted); font-size: 0.7rem; }
.composition-clear { color: var(--danger); }
.composition-choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; padding: 12px 14px; background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; }
.composition-choice-row label, .composition-checkbox { display: flex; align-items: center; gap: 8px; color: #424a53; font-size: 0.76rem; font-weight: 600; }
.composition-choice-row input, .composition-checkbox input { width: 16px; height: 16px; }
.composition-fieldset { min-width: 0; margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-fieldset legend { padding: 0 6px; color: #424a53; font-size: 0.76rem; font-weight: 650; }
.composition-fieldset > small { display: block; margin-top: 11px; color: var(--muted); font-size: 0.7rem; }
.composition-field-grid, .composition-publication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.composition-publication-grid { align-items: end; margin-top: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-field-grid label, .composition-publication-grid > label:not(.composition-checkbox), .composition-conflict-card > label { display: grid; gap: 5px; color: var(--muted); font-size: 0.71rem; font-weight: 650; }
.composition-field-grid input, .composition-field-grid select, .composition-publication-grid input, .composition-conflict-card input, .composition-conflict-card select { width: 100%; min-width: 0; height: 37px; padding: 5px 8px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.composition-publication-grid small { color: var(--muted); font-size: 0.67rem; font-weight: 500; }
.conflict-choice-row { margin-bottom: 16px; }
.composition-conflict-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.composition-conflict-card { display: grid; gap: 11px; min-width: 0; padding: 14px; background: #fff; border: 1px solid #d4a72c; border-radius: 6px; }
.composition-conflict-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--border-muted); }
.composition-conflict-card header strong, .composition-conflict-card header small { display: block; overflow-wrap: anywhere; }
.composition-conflict-card header small { margin-top: 2px; color: var(--muted); font-size: 0.67rem; }
.composition-conflict-card header code { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.composition-conflict-card p { margin: 0; color: #424a53; font-size: 0.74rem; }
.composition-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 20px; }
.composition-form-actions form { margin: 0; }
.composition-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-summary > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--border-muted); }
.composition-summary > div:last-child { border-right: 0; }
.composition-summary dt { color: var(--muted); font-size: 0.68rem; }
.composition-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 0.78rem; font-weight: 620; }
.composition-task-map { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-task-map-row { display: grid; grid-template-columns: 78px minmax(140px, 0.75fr) minmax(130px, 0.75fr) minmax(160px, 1fr); align-items: center; gap: 12px; min-height: 54px; padding: 9px 13px; border-bottom: 1px solid var(--border-muted); }
.composition-task-map-row:last-child { border-bottom: 0; }
.composition-task-map-row strong { overflow-wrap: anywhere; font-size: 0.78rem; }
.composition-task-map-row code { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.composition-task-map-row small { color: var(--muted); overflow-wrap: anywhere; }
.composition-change { display: inline-flex; justify-content: center; padding: 2px 6px; color: #424a53; background: #eff3f6; border: 1px solid var(--border-muted); border-radius: 10px; font-size: 0.64rem; font-weight: 650; }
.composition-change.added, .composition-change.renamed { color: #116329; background: var(--environment-soft); border-color: #aceebb; }
.composition-change.replaced { color: #7d4e00; background: #fff8c5; border-color: #d4a72c; }
.composition-omitted { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.composition-omitted summary { padding: 10px 13px; color: var(--muted); cursor: pointer; font-size: 0.74rem; }
.composition-omitted > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; border-top: 1px solid var(--border-muted); font-size: 0.72rem; }
.composition-omitted small { color: var(--muted); }

/* Fleet resource inspection */
.linked-abstraction-card { position: relative; transition: border-color 120ms ease, box-shadow 120ms ease; }
.linked-abstraction-card:hover { border-color: var(--accent); box-shadow: 0 3px 12px rgba(31, 35, 40, 0.12); }
.abstraction-card-link { position: absolute; z-index: 1; inset: 0; }
.linked-abstraction-card > *:not(.abstraction-card-link) { position: relative; z-index: 2; pointer-events: none; }
.linked-abstraction-card .card-raw { pointer-events: auto; }
.prompt-artifact-link { display: block; color: inherit; text-decoration: none; }
.prompt-artifact-link:hover { color: inherit; text-decoration: none; }
.prompt-artifact-link:hover .prompt-artifact { border-color: var(--accent); }
.nested-bindings a { display: block; color: var(--accent); }
.declaration-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 20px 0 4px; padding: 12px 14px; color: #424a53; background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; font-size: 0.76rem; }
.declaration-notice strong { color: var(--text); }
.resource-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.resource-actions > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.resource-actions span { color: var(--muted); font-size: 0.7rem; }
.resource-actions code { min-width: 0; overflow-wrap: anywhere; font-size: 0.72rem; }
.resource-binding-list { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.resource-binding-row { display: grid; grid-template-columns: 12px minmax(150px, 0.65fr) minmax(160px, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--border-muted); }
.resource-binding-row:last-child { border-bottom: 0; }
.resource-binding-row strong, .resource-binding-row small { display: block; }
.resource-binding-row strong { font-size: 0.8rem; }
.resource-binding-row small { margin-top: 2px; color: var(--muted); font-size: 0.69rem; }
.resource-binding-row code { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.artifact-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.artifact-summary > div { padding: 11px 13px; border-right: 1px solid var(--border-muted); }
.artifact-summary > div:last-child { border-right: 0; }
.artifact-summary dt { color: var(--muted); font-size: 0.67rem; text-transform: uppercase; }
.artifact-summary dd { margin: 3px 0 0; font-size: 0.8rem; font-weight: 620; }
.artifact-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 12px 0; }
.artifact-search input { min-width: 0; height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 5px; }
.artifact-search button { padding: 5px 12px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.75rem; }
.artifact-location { display: flex; align-items: center; gap: 12px; min-height: 34px; color: var(--muted); font-size: 0.74rem; }
.artifact-location code { overflow-wrap: anywhere; }
.artifact-entry-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.artifact-entry { display: grid; grid-template-columns: 20px minmax(160px, 0.8fr) minmax(140px, 1fr) 12px; align-items: center; gap: 11px; min-height: 52px; padding: 8px 12px; color: inherit; border-bottom: 1px solid var(--border-muted); }
.artifact-entry:last-child { border-bottom: 0; }
.artifact-entry:hover { color: inherit; background: #f6f8fa; text-decoration: none; }
.artifact-entry strong, .artifact-entry small { display: block; overflow-wrap: anywhere; }
.artifact-entry strong { font-size: 0.77rem; }
.artifact-entry small { margin-top: 2px; color: var(--muted); font-size: 0.67rem; }
.artifact-entry code { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.artifact-entry-mark { position: relative; width: 15px; height: 18px; border: 1px solid var(--artifact); border-radius: 2px; }
.artifact-entry-mark.directory { height: 12px; margin-top: 4px; background: var(--artifact-soft); }
.artifact-entry-mark.directory::before { content: ""; position: absolute; width: 7px; height: 3px; left: -1px; top: -4px; background: var(--artifact-soft); border: 1px solid var(--artifact); border-bottom: 0; border-radius: 2px 2px 0 0; }
.artifact-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 0.72rem; }
.artifact-preview-section pre { max-height: 620px; margin: 0; padding: 15px; overflow: auto; color: #303942; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 0.72rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 9px; color: var(--muted); font-size: 0.7rem; }
.preview-meta strong { color: #9a6700; }
.inspection-diagnostic { display: grid; gap: 4px; padding: 14px; color: #633c01; background: var(--artifact-soft); border: 1px solid #eac54f; border-radius: 6px; font-size: 0.77rem; }
.visible-use-list { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.visible-use-list > a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; padding: 9px 13px; color: inherit; border-bottom: 1px solid var(--border-muted); }
.visible-use-list > a:last-child { border-bottom: 0; }
.visible-use-list > a:hover { background: #f6f8fa; text-decoration: none; }
.visible-use-list strong { font-size: 0.77rem; }
.visible-use-list span { color: var(--muted); font-size: 0.7rem; text-align: right; }
.compact-attestations { margin-top: 12px; }
.inspection-problem-page .standalone-panel { display: grid; justify-items: start; gap: 14px; }
.inspection-problem-page h1, .inspection-problem-page p { margin: 0; }
.inspection-problem-page p { color: var(--muted); line-height: 1.5; }
.access-list > div { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--border-muted); }
.access-list > div:last-child { border-bottom: 0; }
.access-list strong, .access-list small { display: block; }
.access-list strong { font-size: 0.84rem; }
.access-list small { margin-top: 1px; color: var(--muted); font-size: 0.74rem; }
.permission-badge { padding: 3px 8px; color: #0550ae; background: var(--taskset-soft); border: 1px solid #b6d9f2; border-radius: 4px; font-size: 0.72rem; font-weight: 650; }
.access-notice { margin-bottom: 12px; padding: 9px 11px; color: #116329; background: var(--environment-soft); border: 1px solid #aceebb; border-radius: 5px; font-size: 0.78rem; }
.access-list .share-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; }
.owner-avatar.collaborator { background: #6e7781; }
.share-row form { margin: 0; }
.share-row button { padding: 4px 8px; color: var(--danger); background: #fff; border: 1px solid var(--border); border-radius: 5px; font-size: 0.7rem; }
.share-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.6fr) auto; align-items: end; gap: 12px; margin-top: 12px; padding: 14px; background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; }
.share-form > div { display: grid; gap: 5px; }
.share-form label { color: var(--muted); font-size: 0.7rem; font-weight: 650; }
.share-form input, .share-form select { width: 100%; height: 36px; padding: 5px 8px; background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.share-form > button { height: 36px; padding: 5px 12px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.76rem; font-weight: 650; }
.attestation-card-list { display: grid; gap: 11px; }
.attestation-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.attestation-card-primary { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr); }
.attestation-subject, .attestation-predicate { min-width: 0; padding: 17px 18px; }
.attestation-subject { background: linear-gradient(145deg, #f6f8fa, #fff); border-right: 1px solid var(--border-muted); }
.attestation-field-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.attestation-subject-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.attestation-subject-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.82rem; }
.attestation-kind { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid; border-radius: 12px; font-size: 0.66rem; font-weight: 700; }
.attestation-kind.taskset { color: #0550ae; background: var(--taskset-soft); border-color: #b6d9f2; }
.attestation-kind.task { color: #6639ba; background: #f1e8ff; border-color: #d8b9ff; }
.attestation-kind.environment { color: #116329; background: var(--environment-soft); border-color: #aceebb; }
.attestation-kind.artifact { color: #7d4e00; background: var(--artifact-soft); border-color: #eac54f; }
.attestation-kind.repository { color: #0b5f59; background: #e6fffb; border-color: #8bd8d1; }
.attestation-kind.unknown { color: #57606a; background: #f6f8fa; border-color: var(--border); }
.attestation-subject > code { display: block; color: #424a53; overflow-wrap: anywhere; font-size: 0.69rem; line-height: 1.5; }
.attestation-predicate-type { display: block; color: #303942; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.76rem; }
.attestation-predicate > p { margin: 8px 0 0; color: #303942; font-size: 0.84rem; line-height: 1.5; }
.attestation-predicate-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 7px; margin: 13px 0 0; }
.attestation-predicate-facts > div { min-width: 0; padding: 8px 9px; background: #f6f8fa; border: 1px solid var(--border-muted); border-radius: 5px; }
.attestation-predicate-facts dt { margin: 0 0 3px; color: var(--muted); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.attestation-predicate-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 0.73rem; font-weight: 620; }
.attestation-predicate-facts > .positive { color: #116329; background: #f4fbf6; border-color: #aceebb; }
.attestation-predicate-facts > .negative { color: #a40e26; background: #fff5f5; border-color: #ffb7b7; }
.attestation-predicate-facts > .warning { color: #7d4e00; background: #fffdf1; border-color: #eac54f; }
.attestation-predicate-facts > .positive dt, .attestation-predicate-facts > .negative dt, .attestation-predicate-facts > .warning dt { color: inherit; opacity: 0.8; }
.attestation-card-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 10px 14px; background: #f6f8fa; border-top: 1px solid var(--border-muted); }
.attestation-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; min-width: 0; color: var(--muted); font-size: 0.66rem; }
.attestation-card-meta b { color: #424a53; font-weight: 650; }
.attestation-card-meta code { color: #424a53; }
.attestation-raw { justify-self: end; min-width: 0; }
.attestation-raw > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 9px; color: #424a53; background: #fff; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; font-size: 0.68rem; font-weight: 650; list-style: none; }
.attestation-raw > summary::-webkit-details-marker { display: none; }
.attestation-raw > summary::before { content: "{}"; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.65rem; }
.attestation-raw > summary:hover { color: var(--accent); border-color: #8c959f; }
.attestation-raw[open] { grid-column: 1 / -1; justify-self: stretch; width: 100%; padding-top: 2px; }
.attestation-raw[open] > summary { margin-left: auto; }
.attestation-raw pre { max-height: 420px; margin: 10px 0 2px; padding: 13px; overflow: auto; color: #303942; background: #fff; border: 1px solid var(--border-muted); border-radius: 5px; font-size: 0.69rem; line-height: 1.5; white-space: pre; }
.attestation-raw code { font-size: inherit; }
.label-list { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.label-list > div { display: grid; grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr); min-height: 48px; border-bottom: 1px solid var(--border-muted); }
.label-list > div:last-child { border-bottom: 0; }
.label-list dt, .label-list dd { min-width: 0; margin: 0; padding: 13px 16px; font-size: 0.8rem; overflow-wrap: anywhere; }
.label-list dt { color: #424a53; background: #f6f8fa; border-right: 1px solid var(--border-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.label-list dd span, .section-empty { color: var(--muted); }
.section-empty { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 0.82rem; text-align: center; }

.operation-notice { margin: 18px 0 -4px; }
.operation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.operation-form { display: grid; gap: 13px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.operation-form .form-heading { margin: 0; }
.operation-form .form-heading small { color: var(--muted); }
.compact-fields { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: 10px; }
.compact-fields label, .admin-form label, .standalone-form label { display: grid; gap: 5px; color: var(--muted); font-size: 0.71rem; font-weight: 650; }
.compact-fields input, .admin-form input, .admin-form select, .standalone-form input { width: 100%; min-width: 0; height: 36px; padding: 5px 8px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.operation-form > button, .admin-form > button, .standalone-form > button { justify-self: start; min-height: 35px; padding: 5px 12px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.76rem; font-weight: 650; }
.repository-create-panel { width: min(680px, 100%); padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.repository-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.repository-create-form .compact-fields, .repository-create-form > label:last-of-type, .repository-create-form > button { grid-column: 1 / -1; }
.repository-create-form label { display: grid; gap: 5px; color: var(--muted); font-size: 0.71rem; font-weight: 650; }
.repository-create-form input, .repository-create-form select { width: 100%; min-width: 0; height: 36px; padding: 5px 8px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.repository-create-form > button { justify-self: start; min-height: 35px; padding: 5px 12px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.76rem; font-weight: 650; }
.error-notice { margin-bottom: 14px; color: var(--danger); }
.muted-value { color: var(--muted); }
.danger-operation { border-color: #ffb3b8; }
.danger-operation > button { background: var(--danger); border-color: #a40e26; }

.access-subsection { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--border-muted); }
.invitation-list { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.invitation-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, auto) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--border-muted); }
.invitation-row:last-child { border-bottom: 0; }
.invitation-row strong, .invitation-row small { display: block; }
.invitation-row strong { font-size: 0.8rem; }
.invitation-row small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.invitation-row code { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.invitation-row form { margin: 0; }
.invitation-row button { padding: 4px 8px; color: var(--danger); background: #fff; border: 1px solid var(--border); border-radius: 5px; font-size: 0.7rem; }
.invitation-form { grid-template-columns: minmax(150px, 0.5fr) minmax(150px, 0.5fr) auto; }

.standalone-page { display: grid; place-items: start center; min-height: calc(100vh - 112px); padding: 64px 20px; }
.standalone-panel { width: min(560px, 100%); padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.standalone-panel h1 { margin-bottom: 22px; }
.standalone-form { display: grid; gap: 12px; }
.standalone-form > button { margin-top: 4px; }
.secret-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 18px 0; padding: 12px; background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; }
.secret-output code { min-width: 0; overflow-wrap: anywhere; }
.compact-summary { margin: 0 0 24px; }
.compact-summary div { display: grid; grid-template-columns: 90px minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid var(--border-muted); }
.compact-summary dt { color: var(--muted); font-size: 0.75rem; }
.compact-summary dd { margin: 0; font-size: 0.8rem; }

.admin-section { padding: 28px 0 34px; border-bottom: 1px solid var(--border-muted); }
.admin-section:last-child { border-bottom: 0; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.admin-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 9px 13px; color: var(--muted); background: #f6f8fa; border-bottom: 1px solid var(--border); font-size: 0.68rem; text-transform: uppercase; }
.admin-table td { padding: 11px 13px; border-bottom: 1px solid var(--border-muted); font-size: 0.78rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .permission-badge { margin-left: 8px; }
.admin-form { display: flex; align-items: end; flex-wrap: wrap; gap: 11px; margin-top: 12px; padding: 14px; background: #f6f8fa; border: 1px solid var(--border); border-radius: 6px; }
.admin-form label { min-width: 150px; flex: 1 1 150px; }
.admin-form .checkbox-label { display: flex; align-items: center; min-height: 36px; flex: 0 0 auto; color: var(--text); }
.admin-form .checkbox-label input { width: 16px; height: 16px; }
.admin-form > button { flex: 0 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-block { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.team-block h3 { margin: 0 0 10px; font-size: 0.88rem; }
.team-block > small { color: var(--muted); }
.membership-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; border-top: 1px solid var(--border-muted); font-size: 0.74rem; }
.membership-list form { margin: 0; }
.membership-list button { color: var(--danger); background: transparent; border: 0; font-size: 0.7rem; }
.admin-form-grid { display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); gap: 12px; }
.namespace-admin-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.namespace-admin-list > div { display: grid; padding: 12px 14px; border-right: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
.namespace-admin-list strong { font-size: 0.8rem; }
.namespace-admin-list span { color: var(--muted); font-size: 0.7rem; }

/* Trust plane */
.trust-body { --trust: #0f766e; --trust-soft: #ccfbf1; --trust-border: #99d5ce; background: #f4f6f7; }
.trust-topbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; padding: 0 30px; color: #fff; background: #18212a; border-bottom: 3px solid var(--trust); }
.trust-mark { position: relative; display: inline-grid; place-items: center; width: 21px; height: 21px; border: 2px solid #5eead4; border-radius: 50%; }
.trust-mark span { width: 7px; height: 4px; border-bottom: 2px solid #5eead4; border-left: 2px solid #5eead4; transform: translateY(-1px) rotate(-45deg); }
.plane-badge { justify-self: start; padding: 3px 8px; color: #b8c4cf; border: 1px solid #46515c; border-radius: 4px; font-size: 0.68rem; text-transform: uppercase; }
.trust-account { display: flex; align-items: center; justify-self: end; gap: 9px; color: #d8dee4; font-size: 0.8rem; }
.trust-account > a { margin-right: 8px; color: #7ee7da; font-weight: 600; }
.trust-account form { margin: 0 0 0 3px; }
.trust-account button { padding: 4px 7px; color: #b8c4cf; background: transparent; border: 0; font-size: 0.76rem; }
.trust-account button:hover { color: #fff; }
.trust-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); width: min(1440px, 100%); min-height: calc(100vh - 112px); margin: 0 auto; }
.trust-rail { padding: 30px 20px; background: #edf1f2; border-right: 1px solid #cbd2d8; }
.trust-access { display: flex; align-items: center; gap: 9px; margin: 0 4px 25px; }
.trust-access strong, .trust-access small { display: block; }
.trust-access strong { font-size: 0.8rem; }
.trust-access small { color: var(--muted); font-size: 0.68rem; }
.access-indicator { width: 10px; height: 10px; background: var(--trust); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--trust); }
.trust-rail nav { display: grid; gap: 3px; }
.trust-rail nav a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 9px; color: #303942; border-radius: 5px; font-size: 0.78rem; }
.trust-rail nav a:hover { background: #e2e7e9; text-decoration: none; }
.trust-rail nav span { color: var(--muted); }
.trust-content { min-width: 0; padding: 42px 48px 72px; }
.trust-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 17px; border-bottom: 1px solid #cbd2d8; }
.root-count { color: var(--muted); font-size: 0.8rem; }
.trust-notice, .trust-error { margin-top: 16px; padding: 10px 12px; border-radius: 5px; font-size: 0.8rem; }
.trust-notice { color: #075f57; background: var(--trust-soft); border: 1px solid var(--trust-border); }
.trust-error { color: var(--danger); background: #ffebe9; border: 1px solid #ff8182; }
.trust-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; background: #fff; border: 1px solid #cbd2d8; border-radius: 6px; }
.trust-summary > div { padding: 13px 16px; border-right: 1px solid #d8dee4; }
.trust-summary > div:last-child { border-right: 0; }
.trust-summary dt { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.trust-summary dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 650; }
.trust-section { min-width: 0; padding: 34px 0 8px; }
.trust-section + .trust-section { margin-top: 24px; border-top: 1px solid #d8dee4; }
.trust-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.trust-section-heading > span { color: var(--muted); font-size: 0.76rem; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 16px; align-items: start; }
.metadata-form { display: grid; min-width: 0; padding: 19px; background: #fff; border: 1px solid #bcc6ce; border-radius: 6px; box-shadow: var(--shadow); }
.metadata-form label { margin: 12px 0 5px; color: #424a53; font-size: 0.72rem; font-weight: 650; }
.metadata-form input, .metadata-form select, .metadata-form textarea { width: 100%; min-width: 0; padding: 7px 9px; color: var(--text); background: #fff; border: 1px solid #afb8c1; border-radius: 5px; outline: none; font-size: 0.8rem; }
.metadata-form input, .metadata-form select { height: 38px; }
.metadata-form textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.45; }
.metadata-form input:focus, .metadata-form select:focus, .metadata-form textarea:focus { border-color: var(--trust); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14); }
.metadata-form > button { justify-self: start; min-height: 36px; margin-top: 17px; padding: 6px 12px; color: #fff; background: var(--trust); border: 1px solid #0b5f59; border-radius: 5px; font-size: 0.78rem; font-weight: 650; }
.metadata-form > button:hover { background: #0b5f59; }
.form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-bottom: 13px; border-bottom: 1px solid #e1e5e8; }
.form-heading strong, .form-heading small { display: block; }
.form-heading strong { font-size: 0.85rem; }
.form-heading small { margin-top: 1px; color: var(--muted); font-size: 0.68rem; }
.form-symbol { position: relative; width: 28px; height: 28px; border-radius: 5px; }
.attestation-symbol { background: var(--trust-soft); border: 1px solid var(--trust-border); }
.attestation-symbol::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--trust); border-radius: 50%; }
.attestation-symbol::after { content: ""; position: absolute; width: 5px; height: 3px; left: 11px; top: 11px; border-bottom: 2px solid var(--trust); border-left: 2px solid var(--trust); transform: rotate(-45deg); }
.label-symbol { background: #fff8c5; border: 1px solid #eac54f; }
.label-symbol::before { content: ""; position: absolute; width: 13px; height: 9px; left: 7px; top: 8px; border: 2px solid #9a6700; transform: skew(-18deg); }
.trust-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid #cbd2d8; border-radius: 6px; }
.trust-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.trust-table th { padding: 9px 13px; color: var(--muted); background: #f2f4f5; border-bottom: 1px solid #cbd2d8; font-size: 0.67rem; text-transform: uppercase; }
.trust-table td { padding: 12px 13px; border-bottom: 1px solid #e1e5e8; color: #424a53; font-size: 0.77rem; }
.trust-table tr:last-child td { border-bottom: 0; }
.trust-table strong { color: var(--text); font-weight: 620; }
.trust-table code { white-space: nowrap; }
.kind-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; }
.kind-dot.taskset { background: var(--taskset); }
.kind-dot.environment { background: var(--environment); }
.kind-dot.artifact { background: var(--artifact); }
.trust-footer { display: flex; justify-content: space-between; gap: 20px; min-height: 48px; padding: 14px max(30px, calc((100% - 1380px) / 2)); color: var(--muted); background: #fff; border-top: 1px solid #cbd2d8; font-size: 0.72rem; }

.login-page { display: grid; place-items: center; min-height: calc(100vh - 112px); padding: 48px 20px; }
.login-panel { width: min(380px, 100%); padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 8px 28px rgba(31, 35, 40, 0.08); }
.login-mark { margin-bottom: 22px; color: var(--taskset); transform: scale(1.35); transform-origin: left bottom; }
.login-panel h1 { margin-bottom: 24px; }
.login-panel form { display: grid; }
.login-panel label { margin: 13px 0 6px; color: #424a53; font-size: 0.78rem; font-weight: 600; }
.login-panel input { width: 100%; height: 39px; padding: 7px 10px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 6px; outline: none; }
.login-panel input:focus { border-color: var(--taskset); box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15); }
.login-panel form > button, .login-provider { display: grid; place-items: center; height: 39px; margin-top: 20px; color: #fff; background: var(--taskset); border: 1px solid #0550ae; border-radius: 6px; font-weight: 620; text-decoration: none; }
.login-panel form > button:hover, .login-provider:hover { color: #fff; background: #0550ae; }
.login-error { margin-bottom: 8px; padding: 9px 11px; color: var(--danger); background: #ffebe9; border: 1px solid #ff8182; border-radius: 6px; font-size: 0.78rem; }

.footer { display: flex; justify-content: space-between; gap: 20px; min-height: 48px; padding: 14px max(28px, calc((100% - 1264px) / 2)); color: var(--muted); background: var(--surface); border-top: 1px solid var(--border-muted); font-size: 0.74rem; }
.not-found { display: grid; justify-items: center; align-content: center; min-height: calc(100vh - 112px); padding: 40px 24px; text-align: center; }
.not-found .empty-mark { margin-bottom: 24px; }
.not-found h1 { margin-bottom: 10px; }
.not-found code { margin-bottom: 24px; color: var(--muted); }

/* Immutable TaskSet version comparison */
.version-compare-page .root-heading-text p { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }
.version-compare-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 0 0 18px; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.version-compare-picker > div { display: grid; min-width: 0; gap: 5px; }
.version-compare-picker label { color: var(--muted); font-size: 0.7rem; font-weight: 650; }
.version-compare-picker select { width: 100%; height: 38px; padding: 5px 9px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 5px; }
.version-compare-picker button { height: 38px; padding: 5px 13px; color: #fff; background: var(--accent); border: 1px solid #0550ae; border-radius: 5px; font-size: 0.76rem; font-weight: 650; }
.version-compare-arrow { align-self: end; display: inline-grid; place-items: center; height: 38px; color: var(--muted); }
.version-compare-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) minmax(0, 1fr); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.version-compare-summary > article { display: grid; min-width: 0; gap: 5px; padding: 15px 17px; }
.version-compare-summary > article:last-child { text-align: right; }
.version-compare-summary h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 0.95rem; }
.version-compare-summary code { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-compare-summary article > span { color: var(--muted); font-size: 0.7rem; }
.version-compare-root-state { display: grid; align-content: center; justify-items: center; gap: 3px; padding: 14px; text-align: center; border-right: 1px solid var(--border-muted); border-left: 1px solid var(--border-muted); }
.version-compare-root-state strong { font-size: 0.76rem; }
.version-compare-root-state span { color: var(--muted); font-size: 0.68rem; }
.version-compare-root-state.identical { color: #116329; background: #f4fbf6; }
.version-compare-root-state.changed { color: #825500; background: #fffdf1; }
.version-compare-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 12px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.version-compare-counts > div { padding: 10px 13px; text-align: center; border-right: 1px solid var(--border-muted); }
.version-compare-counts > div:last-child { border-right: 0; }
.version-compare-counts dt { color: var(--muted); font-size: 0.67rem; }
.version-compare-counts dd { margin: 1px 0 0; font-size: 1rem; font-weight: 650; }
.version-compare-empty { margin-top: 22px; padding: 18px; color: #116329; background: #f4fbf6; border: 1px solid #aceebb; border-radius: 6px; text-align: center; }
.version-compare-empty p { margin: 4px 0 0; color: #3f684a; font-size: 0.78rem; }
.version-compare-section .section-intro { margin-bottom: 13px; }
.comparison-status { display: inline-flex; align-items: center; width: max-content; min-height: 21px; padding: 1px 7px; color: #59636e; background: #eff3f6; border: 1px solid var(--border-muted); border-radius: 10px; font-size: 0.63rem; font-weight: 700; white-space: nowrap; }
.comparison-status.added { color: #116329; background: var(--environment-soft); border-color: #aceebb; }
.comparison-status.removed { color: #a40e26; background: #ffebe9; border-color: #ffb8b5; }
.comparison-status.changed { color: #825500; background: var(--artifact-soft); border-color: #eac54f; }
.comparison-status.identity { color: #0969da; background: #ddf4ff; border-color: #80ccff; }
.comparison-status.possible { color: #6639ba; background: #f0e7ff; border-color: #c7b7ea; }
.comparison-status.unchanged { color: var(--muted); background: #f6f8fa; }
.version-compare-renames { display: grid; gap: 8px; }
.version-compare-renames article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid #c7b7ea; border-radius: 6px; }
.version-compare-renames strong { overflow-wrap: anywhere; font-size: 0.82rem; }
.version-compare-renames code { color: var(--muted); }
.version-compare-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.version-compare-index-grid > div { min-width: 0; }
.version-compare-index-grid h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 0.75rem; }
.version-compare-task-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.version-compare-task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 55px; padding: 9px 12px; border-bottom: 1px solid var(--border-muted); }
.version-compare-task-row:last-child { border-bottom: 0; }
.version-compare-task-row div { min-width: 0; }
.version-compare-task-row a, .version-compare-task-row strong { display: block; overflow-wrap: anywhere; font-size: 0.8rem; font-weight: 650; }
.version-compare-task-row small { display: block; margin-top: 1px; color: var(--muted); font-size: 0.65rem; }
.version-compare-task-row code { color: var(--muted); }
.version-compare-changed-list { display: grid; gap: 15px; }
.version-compare-changed-task { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.version-compare-changed-task > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; background: #fffdf1; border-bottom: 1px solid var(--border-muted); }
.version-compare-changed-task > header > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.version-compare-changed-task h3 { margin: 0; overflow-wrap: anywhere; font-size: 0.92rem; }
.version-compare-identity-note { display: flex; align-items: baseline; gap: 8px; margin: 12px 15px 0; padding: 9px 11px; color: #0550ae; background: #f0f8ff; border: 1px solid #b6dcfe; border-radius: 5px; font-size: 0.7rem; }
.version-compare-identity-note span { color: #3c5f7d; }
.version-compare-digest-transition { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); }
.version-compare-digest-transition code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-compare-area-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 13px; }
.version-compare-area { min-width: 0; overflow: hidden; background: #f8fafc; border: 1px solid var(--border-muted); border-radius: 5px; }
.version-compare-area.changed { grid-column: 1 / -1; background: #fff; border-color: #eac54f; }
.version-compare-area > summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 42px; padding: 8px 10px; cursor: pointer; }
.version-compare-area > summary strong { font-size: 0.72rem; }
.version-compare-area > p { margin: 0; padding: 0 10px 10px; color: var(--muted); font-size: 0.68rem; }
.version-compare-change-table { min-width: 0; overflow-x: auto; border-top: 1px solid var(--border-muted); }
.version-compare-change-head, .version-compare-change-row { display: grid; grid-template-columns: minmax(160px, 0.65fr) minmax(230px, 1fr) minmax(230px, 1fr); min-width: 650px; }
.version-compare-change-head { color: var(--muted); background: #f6f8fa; font-size: 0.65rem; font-weight: 650; }
.version-compare-change-head span, .version-compare-change-row > * { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--border-muted); }
.version-compare-change-head span:last-child, .version-compare-change-row > *:last-child { border-right: 0; }
.version-compare-change-row { border-top: 1px solid var(--border-muted); }
.version-compare-change-row code { color: #424a53; overflow-wrap: anywhere; font-size: 0.66rem; }
.version-compare-change-row pre { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 0.66rem; line-height: 1.45; }
.version-compare-raw-readout, .version-compare-canonical { border-top: 1px solid var(--border-muted); }
.version-compare-raw-readout > summary, .version-compare-canonical > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 14px; background: #f6f8fa; cursor: pointer; font-size: 0.76rem; font-weight: 650; }
.version-compare-raw-readout > summary small, .version-compare-canonical > summary small { color: var(--muted); font-size: 0.66rem; font-weight: 500; text-align: right; }
.version-compare-json-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.version-compare-json-grid > div { min-width: 0; border-right: 1px solid var(--border-muted); }
.version-compare-json-grid > div:last-child { border-right: 0; }
.version-compare-json-grid header { padding: 7px 11px; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--border-muted); font-size: 0.67rem; font-weight: 650; }
.version-compare-json-grid pre { max-height: 540px; margin: 0; padding: 12px; overflow: auto; font-size: 0.68rem; line-height: 1.5; white-space: pre; }
@media (max-width: 920px) {
  .topbar { grid-template-columns: auto minmax(230px, 1fr); gap: 22px; padding: 0 18px; }
  .account-area { display: none; }
  .login-topbar { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .main-content { padding: 34px 28px 54px; }
  .registry-summary { grid-template-columns: repeat(2, 1fr); }
  .registry-summary > div:nth-child(2) { border-right: 0; }
  .registry-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-muted); }
  .root-row { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .root-row > .visibility { display: none; }
  .trust-shell { grid-template-columns: 175px minmax(0, 1fr); }
  .trust-content { padding: 34px 28px 58px; }
  .composer-grid { grid-template-columns: 1fr; }
  .attestation-card-primary { grid-template-columns: 1fr; }
  .attestation-subject { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .operation-grid, .team-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .composition-conflict-list { grid-template-columns: 1fr; }
  .composition-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composition-summary > div:nth-child(2) { border-right: 0; }
  .composition-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-muted); }
  .abstraction-grid { grid-template-columns: 1fr; }
  .artifact-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artifact-summary > div:nth-child(2) { border-right: 0; }
  .artifact-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-muted); }
  .version-compare-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-compare-json-grid { grid-template-columns: 1fr; }
  .version-compare-json-grid > div { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .version-compare-json-grid > div:last-child { border-bottom: 0; }
  .namespace-admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { position: static; grid-template-columns: 1fr; gap: 11px; padding: 13px 16px 15px; }
  .brand { justify-self: center; }
  .global-search { grid-row: 2; }
  .login-topbar { min-height: 58px; padding: 0 16px; }
  .app-shell { display: block; width: 100%; }
  .sidebar { display: flex; gap: 14px; overflow-x: auto; padding: 11px 16px; background: var(--surface); border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .resource-nav, .sidebar-section nav { display: flex; gap: 6px; }
  .sidebar-section { display: flex; align-items: center; gap: 8px; margin: 0; }
  .sidebar-label { display: none; }
  .nav-item { grid-template-columns: 21px auto auto; min-height: 37px; white-space: nowrap; }
  .nav-primary { min-height: 37px; margin: 0; }
  .main-content { width: 100%; padding: 26px 16px 48px; overflow-x: hidden; }
  .page-heading { align-items: flex-start; }
  .heading-actions { align-items: flex-end; flex-direction: column; gap: 8px; }
  h1 { font-size: 1.42rem; }
  .registry-summary { margin-bottom: 20px; }
  .registry-summary > div { padding: 12px 13px; }
  .root-row { min-height: 82px; padding: 13px; gap: 10px; }
  .root-title-line { display: block; }
  .kind-label { margin-top: 3px; }
  .digest-separator, .row-digest { display: none; }
  .filter-bar > a { margin-left: 0; }
  .search-group { margin-top: 25px; }
  .breadcrumb { margin-bottom: 22px; overflow-x: auto; white-space: nowrap; }
  .root-header { align-items: flex-start; }
  .visibility.prominent { display: none; }
  .tab-bar { gap: 18px; overflow-x: auto; }
  .section-heading { align-items: flex-start; }
  .identity-grid { display: block; }
  .identity-grid > div, .identity-grid > div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .identity-grid > div:last-child { border-bottom: 0; }
  .identity-grid code { white-space: normal; overflow-wrap: anywhere; }
  .label-list > div { display: block; }
  .label-list dt { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .version-row { grid-template-columns: 14px minmax(0, 1fr); align-items: start; }
  .version-mark { margin-top: 3px; }
  .version-binding-main { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .version-binding-main strong { white-space: normal; overflow-wrap: anywhere; }
  .version-link { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .version-actions { grid-column: 2; flex-wrap: wrap; }
  .taskset-version-row .version-actions { align-items: flex-start; }
  .section-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .taskset-version-card-header { flex-direction: column; }
  .version-inventory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-inventory-stats > div, .version-inventory-stats > div:nth-child(3n), .version-inventory-stats > div:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .version-inventory-stats > div:nth-child(odd) { border-right: 1px solid var(--border-muted); }
  .version-inventory-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .repository-activity-row { grid-template-columns: 10px minmax(0, 1fr); align-items: start; }
  .activity-transition, .activity-revision, .repository-activity-row details { grid-column: 2; text-align: left; }
  .version-acquisition-grid { grid-template-columns: 1fr; }
  .version-acquisition-facts > div { grid-template-columns: 1fr; }
  .version-acquisition-facts dt { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .fleet-version-summary { display: block; }
  .fleet-version-summary > div { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .fleet-version-summary > div:last-child { border-bottom: 0; }
  .fleet-version-summary .fleet-summary-digest dd { align-items: flex-start; }
  .task-link { grid-template-columns: 32px minmax(0, 1fr) 14px; gap: 10px; min-height: 68px; padding: 11px 12px; }
  .task-link > code { display: none; }
  .task-selection-toolbar { align-items: flex-start; flex-direction: column; }
  .selectable-task-row { grid-template-columns: 37px minmax(0, 1fr); }
  .task-header { align-items: flex-start; flex-wrap: wrap; }
  .task-composition-toggle { margin-left: 60px; }
  .task-header-meta code { overflow-wrap: anywhere; }
  .task-detail-section { padding: 29px 0 32px; }
  .prompt-block { padding: 14px; }
  .prompt-artifact { display: block; }
  .prompt-artifact > div { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .prompt-artifact > div:last-child { border-bottom: 0; }
  .abstraction-identity { align-items: flex-start; flex-direction: column; gap: 4px; }
  .detail-fact-list > div { grid-template-columns: minmax(90px, 0.4fr) minmax(0, 0.6fr); }
  .raw-document > summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .raw-document > summary small { text-align: left; }
  .declaration-notice { grid-template-columns: 1fr; }
  .resource-actions { align-items: flex-start; flex-direction: column; }
  .resource-actions > div { grid-template-columns: 1fr auto; width: 100%; }
  .resource-actions > div > span { grid-column: 1 / -1; }
  .resource-binding-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .resource-binding-row > code { display: none; }
  .artifact-entry { grid-template-columns: 20px minmax(0, 1fr) 12px; }
  .artifact-entry > code { display: none; }
  .visible-use-list > a { align-items: flex-start; flex-direction: column; gap: 3px; }
  .visible-use-list span { text-align: left; }
  .version-compare-picker { grid-template-columns: 1fr; }
  .version-compare-arrow { display: none; }
  .version-compare-summary { grid-template-columns: 1fr; }
  .version-compare-summary > article:last-child { text-align: left; }
  .version-compare-root-state { border: 0; border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
  .version-compare-counts { grid-template-columns: repeat(2, 1fr); }
  .version-compare-counts > div { border-right: 0; border-bottom: 1px solid var(--border-muted); }
  .version-compare-counts > div:nth-child(odd) { border-right: 1px solid var(--border-muted); }
  .version-compare-counts > div:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .version-compare-renames article { grid-template-columns: 1fr; gap: 6px; }
  .version-compare-index-grid, .version-compare-area-list { grid-template-columns: 1fr; }
  .version-compare-changed-task > header { align-items: flex-start; flex-direction: column; }
  .version-compare-digest-transition { width: 100%; }
  .version-compare-raw-readout > summary, .version-compare-canonical > summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .version-compare-raw-readout > summary small, .version-compare-canonical > summary small { text-align: left; }
  .share-form { grid-template-columns: 1fr; }
  .compact-fields, .invitation-row, .namespace-admin-list, .repository-create-form { grid-template-columns: 1fr; }
  .composition-steps li { align-items: flex-start; flex-direction: column; gap: 4px; padding: 9px; }
  .composition-source-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .composition-source-row code { grid-column: 1; grid-row: 2; }
  .composition-source-row button, .composition-source-state { grid-column: 2; grid-row: 1 / span 2; }
  .composition-field-grid, .composition-publication-grid { grid-template-columns: 1fr; }
  .composition-task-map-row { grid-template-columns: 70px minmax(0, 1fr); gap: 6px 10px; }
  .composition-task-map-row code, .composition-task-map-row small { grid-column: 2; }
  .composition-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .composition-form-actions .primary-button { justify-content: center; width: 100%; }
  .invitation-row { align-items: start; }
  .standalone-page { min-height: calc(100vh - 106px); padding: 32px 16px; }
  .standalone-panel { padding: 21px 18px; box-shadow: none; }
  .footer { padding: 14px 16px; }
  .login-page { min-height: calc(100vh - 106px); padding: 28px 16px; }
  .login-panel { padding: 24px 20px; box-shadow: none; }
  .trust-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 11px 16px; }
  .trust-topbar .plane-badge { display: none; }
  .trust-account > span:not(.account-avatar), .trust-account form { display: none; }
  .trust-account > a { margin-right: 2px; }
  .trust-shell { display: block; }
  .trust-rail { display: flex; align-items: center; gap: 14px; overflow-x: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid #cbd2d8; }
  .trust-access { flex: 0 0 auto; margin: 0; }
  .trust-access small { display: none; }
  .trust-rail nav { display: flex; gap: 3px; }
  .trust-rail nav a { grid-template-columns: auto auto; white-space: nowrap; }
  .trust-content { width: 100%; padding: 26px 16px 48px; overflow-x: hidden; }
  .trust-heading { align-items: flex-start; }
  .trust-summary { grid-template-columns: repeat(2, 1fr); }
  .trust-summary > div:nth-child(2) { border-right: 0; }
  .trust-summary > div:nth-child(-n+2) { border-bottom: 1px solid #d8dee4; }
  .metadata-form { padding: 16px; }
  .trust-section { padding-top: 28px; }
  .attestation-subject, .attestation-predicate { padding: 14px; }
  .attestation-card-footer { grid-template-columns: 1fr; }
  .attestation-raw { justify-self: start; }
  .attestation-raw[open] > summary { margin-left: 0; }
  .trust-footer { padding: 14px 16px; }
}
