@font-face {
  font-family: "Tiny5";
  src: url("/assets/tiny5.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: light-dark(#edf0e8, #0b1114);
  --panel: light-dark(#ffffff, #121b20);
  --panel2: light-dark(#e7eee7, #18252a);
  --line: light-dark(#a1afa3, #30434a);
  --muted: light-dark(#455d4e, #a2b2aa);
  --text: light-dark(#172c21, #e5efdd);
  --accent: light-dark(#365e27, #b9ed75);
  --green: light-dark(#1d6748, #79ddb2);
  --red: light-dark(#963739, #ff9b9b);
  --field: light-dark(#ffffff, #11171e);
  --divider: light-dark(#dae4d9, #1d2b31);
  --badge-border: light-dark(#879d90, #46605e);
  --badge-text: light-dark(#385548, #bacbc0);
  --button-text: light-dark(#ffffff, #102018);
  --success-bg: light-dark(#e3f1e6, #193329);
  --success-line: light-dark(#7da88a, #32624d);
  --info-bg: light-dark(#e2f0f4, #162e35);
  --info-line: light-dark(#7fa8b1, #2e5d68);
  --warning-bg: light-dark(#f5ebd1, #332f20);
  --warning-line: light-dark(#ab965d, #75633a);
  --danger-bg: light-dark(#fae7e6, #38232a);
  --danger-line: light-dark(#bd949b, #744149);
  --radius: 0px;
  --cyan: light-dark(#156470, #91dbe3);
  --amber: light-dark(#73500a, #f4d593);
  --pixel-shadow: 4px 4px 0 light-dark(#b8c3b8, #060c0e);
  --font-ui:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font-ui);
  font-size: 14px;
}
html[data-appearance="light"] {
  color-scheme: light;
}
html[data-appearance="dark"],
.login-art {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: var(--button-text);
}
.primary:hover {
  background: light-dark(#2d5020, #d2ff91);
}
.secondary {
  background: light-dark(#e7eee7, #1b2b2e);
  color: var(--text);
  border-color: var(--line);
}
.secondary:hover {
  background: light-dark(#dbe7dc, #293e3d);
}
.danger {
  color: var(--red);
  background: light-dark(#fae6e4, #39252b);
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  font-size: 20px;
}
.icon-button:hover {
  color: var(--text);
}
.hidden {
  display: none !important;
}
.full {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono,
code,
pre {
  font-family: var(--font-code);
}
code {
  font-size: 12px;
  color: light-dark(#16606c, #9edce1);
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-size: 13px;
  color: light-dark(#445a4e, #b5c0cb);
  margin-bottom: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 8px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 800;
  border-radius: 0;
  font-size: 26px;
  line-height: 1;
}
.tag {
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 230px;
  border-right: 1px solid var(--line);
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  background: light-dark(#edf2e9, #0e181c);
}
.sidebar > .brand {
  padding-left: 12px;
}
.workspace-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 12px 28px;
}
.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 0;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  color: light-dark(#42574a, #b0beb7);
  border-radius: 0;
  font-size: 13px;
}
nav a > span {
  font-size: 19px;
  width: 21px;
  text-align: center;
}
nav a:hover {
  background: var(--panel2);
  color: white;
}
nav a.active {
  background: light-dark(#deebd7, #263a2c);
  color: light-dark(#2e5126, #d4f5ad);
}
.nav-label {
  font-size: 12px;
  letter-spacing: 1.3px;
  color: light-dark(#455d4e, #a0b0a6);
  margin: 24px 13px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.connection {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 10px;
}
.user-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: light-dark(#e4edf7, #2d3e53);
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: light-dark(#29496b, #bad3f2);
}
.user-row strong {
  font-size: 12px;
}
.user-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.user-row button {
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}
.breadcrumb span {
  color: light-dark(#596e60, #738a83);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-actions select {
  margin: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 8px;
  max-width: 210px;
}
.environment {
  font-size: 12px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 0;
  color: var(--muted);
}
main {
  padding: 37px 38px;
  max-width: 1800px;
  margin: auto;
  min-height: calc(100vh - 127px);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 15px 0 9px;
  font-weight: 600;
}
.stat-foot {
  font-size: 12px;
  color: var(--muted);
}
.stat-foot b {
  color: var(--green);
  font-weight: 500;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 23px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 23px;
}
.panel-head {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 14px;
}
.panel-head a {
  color: var(--muted);
  font-size: 12px;
}
.panel-body {
  padding: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: light-dark(#edf2eb, #101b20);
}
td {
  font-size: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid light-dark(#c5d4c8, #26393f);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: light-dark(#e7efe7, #1c3034);
}
.name-cell {
  font-weight: 550;
  color: light-dark(#1e3528, #dfeada);
}
.name-cell small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  border: 1px solid var(--badge-border);
  border-radius: 0;
  padding: 4px 7px;
  color: var(--badge-text);
  white-space: nowrap;
}
.badge.succeeded,
.badge.verified,
.badge.ready {
  color: var(--green);
  background: var(--success-bg);
  border-color: var(--success-line);
}
.badge.running,
.badge.proxy {
  color: var(--cyan);
  background: var(--info-bg);
  border-color: var(--info-line);
}
.badge.failed,
.badge.cancelled {
  color: var(--red);
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
.badge.queued,
.badge.unverified,
.badge.moderate {
  color: var(--amber);
  background: var(--warning-bg);
  border-color: var(--warning-line);
}
.badge.critical {
  color: var(--red);
  background: light-dark(#f7dfdf, #452229);
  border-color: light-dark(#b78792, #6b3541);
}
.badge.high {
  color: light-dark(#8a421d, #ffb08c);
  background: light-dark(#fae8d9, #3d2a21);
  border-color: light-dark(#b89076, #60402d);
}
.badge.low {
  color: var(--cyan);
  background: var(--info-bg);
  border-color: var(--info-line);
}
.badge.clean {
  color: var(--green);
  background: var(--success-bg);
  border-color: var(--success-line);
}
/* a CVSS vector is long, dense and meant to be read literally */
.vector {
  font-size: 12px;
  word-break: break-all;
  margin-top: 4px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 400px;
  margin: 0;
}
.toolbar .muted {
  margin-left: auto;
  font-size: 12px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  font-size: 30px;
  margin-bottom: 15px;
  color: light-dark(#415e4f, #8caf9f);
}
.empty h3 {
  color: var(--text);
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 370px;
  margin: 0 auto 17px;
}
.activity-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.activity-item:last-child {
  border: 0;
}
.activity-icon {
  height: 28px;
  width: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.activity-item p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.activity-item small {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  background: light-dark(#e5f1f2, #182d32);
  border: 1px solid light-dark(#82a7a9, #3a6468);
  padding: 15px 18px;
  border-radius: 0;
  color: light-dark(#235a61, #b9dfe1);
  font-size: 12px;
  margin-bottom: 23px;
  line-height: 1.6;
}
.error {
  color: var(--red);
  font-size: 12px;
  white-space: pre-wrap;
}
.success {
  color: var(--green);
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.detail-value {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.architecture-diagram {
  display: block;
  width: 100%;
  max-width: 870px;
  height: auto;
  border: 1px solid var(--line);
}

.architecture-value-flow {
  margin-block-start: 0.6em;
  overflow-wrap: anywhere;
}
.architecture-value-flow summary {
  cursor: pointer;
}
.architecture-value-flow ol {
  margin: 0.5em 0 0;
  padding-inline-start: 1.4em;
}
.architecture-value-flow li + li {
  margin-block-start: 0.25em;
}
.architecture-value-flow button {
  padding: 4px 8px;
}

.architecture-type-bindings {
  margin: 0;
  padding-inline-start: 1.2em;
  overflow-wrap: anywhere;
}
.architecture-type-bindings li + li {
  margin-top: 0.5em;
}
.architecture-type-bindings small {
  display: block;
  margin-top: 0.2em;
}

.document {
  white-space: pre-wrap;
  line-height: 1.7;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
}
.log {
  background: light-dark(#f0f4ec, #091014);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  padding: 20px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.file-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
}
.file-list {
  border-right: 1px solid var(--line);
  padding: 15px;
  max-height: 600px;
  overflow: auto;
}
.file-list button {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
}
.file-list button:hover {
  background: light-dark(#dcebe6, #213a3e);
  color: white;
}
.editor {
  min-height: 400px;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: light-dark(#f1f5ed, #0c161a);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.artifact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.artifact-row input,
.artifact-row select {
  font-size: 12px;
}
.section-label {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 10px;
}
footer {
  height: 50px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: light-dark(#455e50, #93aaa0);
  padding: 18px 38px;
  display: flex;
  justify-content: space-between;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid light-dark(#889b99, #3b4758);
  border-radius: 0;
  width: min(700px, calc(100vw - 32px));
  padding: 0;
  max-height: 90vh;
}
dialog::backdrop {
  background: #050a13b8;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 19px 24px;
}
.dialog-head h2 {
  margin: 0;
}
#dialog-body {
  padding: 24px;
  max-height: calc(90vh - 75px);
  overflow: auto;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: light-dark(#e0efe7, #223b37);
  border: 1px solid light-dark(#759e87, #578577);
  border-radius: 0;
  padding: 14px 20px;
  z-index: 100;
  box-shadow: 0 10px 50px #0005;
  max-width: 450px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-card {
  align-self: center;
  width: 350px;
  max-width: calc(100% - 48px);
  margin: 60px auto;
}
.login-card > .brand {
  margin-bottom: 55px;
}
.login-card h1 {
  font-size: 35px;
  line-height: 1.25;
}
.login-card > .muted {
  font-size: 12px;
  margin: 18px 0 30px;
}
.login-card details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.login-card details form {
  margin-top: 20px;
}
.login-card summary {
  cursor: pointer;
}
.login-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#101f21e0, #0c171be0),
    repeating-linear-gradient(0deg, transparent 0 30px, #3e655825 30px 32px);
  display: grid;
  align-items: center;
  padding: 48px;
  border-left: 1px solid var(--line);
}
.pixel-console {
  width: min(100%, 520px);
  margin: auto;
  font-family: var(--font-code);
}
.console-caption {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}
.console-wordmark {
  font-family: "Tiny5", monospace;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 5px 5px 0 #263d2f;
  margin: 24px 0;
}
.console-path {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.console-lines {
  margin: 36px 0;
  display: grid;
  gap: 14px;
  color: light-dark(#415e4f, #a6c1b0);
  font-size: 12px;
}
.console-lines span::first-letter {
  color: var(--accent);
}
.pixel-signal {
  height: 46px;
  display: flex;
  align-items: end;
  gap: 6px;
  margin-bottom: 26px;
}
.pixel-signal i {
  display: block;
  width: 12px;
  height: 22px;
  background: var(--accent);
  animation: pixel-signal 2.4s steps(4, end) infinite alternate;
  transform-origin: bottom;
}
.pixel-signal i:nth-child(2n) {
  height: 34px;
  animation-delay: -0.6s;
  background: var(--cyan);
}
.pixel-signal i:nth-child(3n) {
  height: 44px;
  animation-delay: -1.2s;
}
.pixel-signal i:nth-child(5n) {
  height: 16px;
  animation-delay: -1.8s;
  background: var(--amber);
}
.pixel-cursor {
  animation: pixel-cursor 2.4s steps(2, end) infinite;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.back {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: inline-block;
}
.token-output {
  font-size: 12px;
  word-break: break-all;
  white-space: pre-wrap;
  background: light-dark(#ecf2ec, #0c181b);
  border-radius: 0;
  padding: 15px;
}
.loading {
  color: var(--muted);
  padding: 60px;
  text-align: center;
}
.split-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
button.link-button {
  color: var(--accent);
  background: transparent;
  padding: 0;
  font-size: 12px;
}
@media (min-width: 1600px) {
  main {
    padding: 40px 55px;
  }
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 28px 24px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    padding: 0;
  }
  .workspace-label,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  nav {
    margin-top: 15px;
    flex-direction: row;
    overflow: auto;
    gap: 5px;
  }
  nav a {
    padding: 9px;
    white-space: nowrap;
    font-size: 12px;
  }
  nav a > span {
    display: none;
  }
  .main {
    grid-column: 1;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .top-actions {
    gap: 4px;
  }
  .environment {
    display: none;
  }
  main {
    padding: 24px 17px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 26px;
  }
  .field-row,
  .details-grid {
    grid-template-columns: 1fr;
  }
  .file-layout {
    grid-template-columns: 1fr;
  }
  .file-list {
    max-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  footer {
    padding: 17px;
  }
  footer span {
    display: none;
  }
  .heading-actions button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .artifact-row {
    grid-template-columns: 1fr;
  }
  .page-heading {
    gap: 15px;
  }
  .panel-head {
    padding: 15px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.check-field input {
  width: auto;
  margin: 0;
}

/* Pixel geometry and quiet motion; reading text uses the native UI font.
   Tiny5 is reserved for the decorative wordmark, logo glyph and prompt. */
body {
  background-image:
    linear-gradient(#2b41451a 1px, transparent 1px),
    linear-gradient(90deg, #2b41451a 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.6;
}
h1,
h2,
h3,
.brand,
.stat-value,
.eyebrow,
.nav-label,
nav a,
.scope-label {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: normal;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brand-mark,
.pixel-prompt {
  font-family: "Tiny5", monospace;
  font-variation-settings:
    "BLED" 0,
    "JITT" 0,
    "ROND" 0;
  font-weight: 400;
}
.brand-mark {
  font-size: 32px;
  box-shadow: 3px 3px 0 light-dark(#a3b77d, #426039);
}
nav a {
  font-size: 14px;
  font-weight: 500;
}
nav a.active {
  box-shadow: inset 3px 0 var(--accent);
}
nav a > span {
  color: var(--accent);
  font-family: monospace;
  font-size: 18px;
}
.nav-label,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.page-heading {
  animation: pixel-arrive 0.16s steps(3, end) both;
}
.panel,
.stat {
  box-shadow: var(--pixel-shadow);
}
.panel-head {
  background: light-dark(#f1f5ee, #132127);
}
.panel-head h2 {
  font-size: 17px;
}
.stat-value {
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-label,
.stat-foot {
  font-size: 12px;
}
.primary,
.secondary,
.danger {
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 light-dark(#b8c3b8, #060c0e);
}
.primary {
  border-color: light-dark(#2d5020, #d3ffa0);
}
.primary:active,
.secondary:active,
.danger:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 light-dark(#b8c3b8, #060c0e);
}
button:disabled {
  cursor: not-allowed;
}
.status-dot {
  border-radius: 0;
}
.badge {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}
.badge.running::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  animation: pixel-cursor 2.4s steps(2, end) infinite;
}
.name-cell {
  font-weight: 500;
}
input,
select,
textarea {
  min-height: 40px;
}
th {
  font-size: 11px;
}
td {
  font-size: 13px;
}
code,
.log {
  font-size: 13px;
}
.log {
  line-height: 1.7;
}
.login-card h1 {
  font-size: 38px;
  letter-spacing: -0.03em;
}
.login-card > .muted {
  font-size: 14px;
}
.login-card details {
  font-size: 13px;
}
.login-card > .brand {
  margin-bottom: 40px;
}
.environment {
  color: var(--accent);
}
.motion-toggle {
  padding: 7px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.motion-toggle[aria-pressed="false"] {
  color: var(--amber);
}
.scope-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 7px 12px;
}
.logs-form {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.6fr) minmax(120px, 0.7fr) minmax(180px, 1fr)
    auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}
.logs-form label {
  margin: 0;
}
.logs-form > button {
  min-height: 42px;
}
.logs-time {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}
.logs-time summary {
  cursor: pointer;
  width: fit-content;
}
.logs-time .field-row {
  margin-top: 14px;
  max-width: 620px;
}
.logs-panel .panel-head {
  flex-wrap: wrap;
}
.logs-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logs-controls button {
  padding: 7px 11px;
  font-size: 12px;
}
.logs-controls .check-field {
  margin: 0;
}
.logs-controls .check-field input {
  min-height: auto;
  accent-color: var(--accent);
}
.terminal-light {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 3px 3px 0 #3e5c32;
}
.logs-panel[data-follow="on"] .terminal-light {
  animation: pixel-cursor 2.4s steps(2, end) infinite;
}
.logs-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 11px 20px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.logs-summary span:first-child {
  color: var(--cyan);
}
.logs-error {
  margin: 0;
  padding: 0 20px;
}
.logs-error:not(:empty) {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.logs-console {
  background: light-dark(#f5f8f2, #080f12);
  min-height: 290px;
  height: min(58vh, 650px);
  overflow: auto;
  scrollbar-color: light-dark(#93ac9d, #44635c) light-dark(#f5f8f2, #080f12);
}
.log-entry {
  padding: 13px 20px;
  border-bottom: 1px solid var(--divider);
}
.log-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.log-entry-meta a {
  color: light-dark(#3c5b4c, #a7c6b9);
  overflow-wrap: anywhere;
  min-width: 0;
}
.log-entry-meta a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.log-entry pre {
  margin: 7px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.65;
  color: light-dark(#243b2e, #d8e7dc);
}
.log-entry mark {
  background: #e6c876;
  color: #101814;
  padding: 1px 0;
}
.log-channel {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.log-channel.stdout {
  color: var(--green);
}
.log-channel.stderr {
  color: var(--red);
}
.log-channel.system {
  color: var(--amber);
}
.log-sequence {
  margin-left: auto;
  color: light-dark(#52675a, #8da098);
  font-variant-numeric: tabular-nums;
}
.logs-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logs-footer span {
  font-size: 12px;
  color: var(--muted);
  max-width: 540px;
}
.logs-footer button {
  padding: 7px 11px;
  font-size: 12px;
}
.logs-empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.logs-empty .pixel-prompt {
  font-size: 44px;
  color: var(--accent);
}
.logs-empty h3 {
  margin: 10px 0;
  color: var(--text);
}
.logs-empty p {
  font-size: 12px;
  max-width: 450px;
  margin: auto;
}
@keyframes pixel-arrive {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes pixel-signal {
  from {
    transform: scaleY(0.6);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes pixel-cursor {
  0%,
  70%,
  100% {
    opacity: 1;
  }
  80%,
  90% {
    opacity: 0.25;
  }
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::before,
  html:not([data-motion="on"]) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1100px) {
  .logs-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .logs-form > button {
    align-self: end;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding: 12px 17px;
    gap: 10px;
  }
  .top-actions {
    flex-wrap: wrap;
    min-width: 0;
  }
  .top-actions select {
    max-width: 160px;
  }
  nav a {
    font-size: 14px;
  }
  h1 {
    font-size: 28px;
  }
  .stat-value {
    font-size: 32px;
  }
  .logs-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .logs-form > button {
    justify-self: start;
  }
  .logs-console {
    height: 55vh;
    min-height: 260px;
  }
  .log-entry {
    padding: 12px 14px;
  }
  .logs-summary,
  .logs-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .log-entry-meta {
    gap: 6px 9px;
  }
  .logs-controls {
    gap: 10px;
  }
  .login-card h1 {
    font-size: 32px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .toast {
    left: 17px;
    right: 17px;
    max-width: none;
  }
}

/* Workspace workbench: stable navigation, resource explorer and a docked output. */
.shell {
  --status-height: 30px;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  grid-template-columns: 52px 260px minmax(0, 1fr);
  grid-template-rows: 46px minmax(0, 1fr) var(--status-height);
  background: var(--bg);
}
.workbench-titlebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: light-dark(#f4f6ee, #111b20);
  min-width: 0;
}
.workbench-titlebar .brand {
  font-size: 17px;
  gap: 10px;
  letter-spacing: -0.02em;
}
.workbench-titlebar .brand-mark {
  width: 24px;
  height: 24px;
  font-size: 27px;
  box-shadow: 2px 2px 0 light-dark(#a3b77d, #426039);
}
.titlebar-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.quick-open {
  width: min(460px, 45vw);
  min-width: 0;
  margin: 0 auto;
  padding: 5px 10px;
  border-color: var(--line);
  color: var(--muted);
  background: light-dark(#ecf2e9, #0b1418);
  justify-content: space-between;
  font-weight: 400;
  font-size: 12px;
}
.quick-open span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-open kbd {
  color: light-dark(#425c4f, #b4c8be);
  font-family: var(--font-ui);
  font-size: 10px;
  white-space: nowrap;
}
.workbench-titlebar > .icon-button {
  font-size: 20px;
  padding: 4px 7px;
}
.activity-bar {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 8px 0;
  background: light-dark(#f4f6ee, #111b20);
  border-right: 1px solid var(--line);
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-direction: column;
}
.activity-bar a {
  padding: 8px 0;
  min-height: 42px;
  justify-content: center;
  border-left: 2px solid transparent;
  box-shadow: none;
}
.activity-bar a > span:first-child {
  display: block;
  font-size: 23px;
  width: auto;
  color: var(--muted);
}
.activity-bar a.active {
  background: light-dark(#dfe9df, #1b2b2b);
  border-left-color: var(--accent);
}
.activity-bar a.active > span:first-child {
  color: var(--accent);
}
.activity-bar .activity-label {
  display: none;
}
.resource-explorer {
  grid-column: 2;
  grid-row: 2;
  background: light-dark(#edf2eb, #101b20);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.explorer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.explorer-heading h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.explorer-heading button {
  font-size: 17px;
  padding: 2px;
}
.workspace-picker {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.workspace-picker select {
  font-size: 13px;
  margin-top: 4px;
  padding: 6px 8px;
  min-height: 34px;
}
#resource-filter {
  margin: 12px;
  width: calc(100% - 24px);
  font-size: 12px;
  padding: 6px 8px;
  min-height: 32px;
}
.resource-tree {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 16px;
  scrollbar-color: var(--line) transparent;
}
.resource-tree details {
  border: 0;
  margin: 0;
}
.resource-tree summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: light-dark(#2c493b, #c8d9cd);
  cursor: pointer;
  font-size: 12px;
  background: light-dark(#e7eee5, #162329);
  border-top: 1px solid light-dark(#d2dfd2, #213138);
  list-style: none;
}
.resource-tree summary::-webkit-details-marker {
  display: none;
}
.resource-tree summary::before {
  content: "›";
  font-size: 16px;
  line-height: 1;
  width: 8px;
}
.resource-tree details[open] > summary::before {
  content: "⌄";
}
.tree-count {
  margin-left: auto;
  color: light-dark(#466455, #93aea0);
  font-size: 11px;
}
.tree-resource {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 20px;
  border-left: 2px solid transparent;
  min-width: 0;
}
.tree-resource:hover {
  background: light-dark(#e1ebe2, #1b2b30);
}
.tree-resource[aria-current] {
  background: light-dark(#d9e9d8, #25392f);
  border-left-color: var(--accent);
}
.resource-glyph {
  font-size: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}
.resource-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.resource-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--muted);
}
.resource-state {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: light-dark(#677d71, #6c8078);
}
.resource-state.online,
.resource-state.succeeded {
  background: var(--green);
}
.resource-state.running,
.resource-state.queued {
  background: var(--amber);
  border-radius: 50%;
}
.resource-state.failed,
.resource-state.offline {
  background: var(--red);
  transform: rotate(45deg);
}
.resource-state.cancelled {
  background: transparent;
  border: 1px solid light-dark(#677d71, #6c8078);
}
.tree-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 20px;
  margin: 0;
}
.tree-more,
.tree-guide {
  display: block;
  font-size: 11px;
  color: var(--cyan);
  padding: 12px 20px;
}
.tree-guide {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.explorer-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.explorer-account strong,
.explorer-account small {
  display: block;
  font-size: 11px;
}
.explorer-account small {
  color: var(--muted);
}
.explorer-account .avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.explorer-account button {
  margin-left: auto;
}
.shell.explorer-closed {
  grid-template-columns: 52px 0 minmax(0, 1fr);
}
.explorer-closed .resource-explorer {
  visibility: hidden;
}
.shell .main {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: light-dark(#edf0e8, #0d171c);
}
.editor-tabs {
  display: flex;
  flex-shrink: 0;
  min-height: 36px;
  max-width: 100%;
  overflow-x: auto;
  background: light-dark(#f4f6ee, #111b20);
  border-bottom: 1px solid var(--line);
}
.editor-tab {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 125px;
  max-width: 250px;
  border-right: 1px solid var(--line);
  border-top: 2px solid transparent;
  background: light-dark(#ecf1e9, #142127);
  font-size: 12px;
  color: var(--muted);
}
.editor-tab.active {
  border-top-color: var(--accent);
  background: light-dark(#edf0e8, #0d171c);
  color: var(--text);
}
.editor-tab a {
  padding: 7px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.editor-tab button {
  padding: 3px 8px;
  color: var(--muted);
  background: none;
  font-size: 14px;
}
.shell .topbar {
  height: 36px;
  flex-shrink: 0;
  padding: 0 22px;
  gap: 12px;
  min-height: 36px;
  flex-wrap: nowrap;
}
.breadcrumb {
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 11px;
}
.breadcrumb > :first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-logs {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.shell #content {
  flex: 1;
  width: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 24px;
  overflow: auto;
  scrollbar-color: var(--line) transparent;
}
.shell h1 {
  font-size: 26px;
}
.shell .page-heading {
  margin-bottom: 22px;
}
.shell .page-heading p {
  font-size: 13px;
}
.shell .stats {
  gap: 12px;
}
.shell .stat {
  padding: 16px;
}
.shell .stat-value {
  font-size: 29px;
}
.shell .panel,
.shell .stat {
  box-shadow: 2px 2px 0 light-dark(#b8c3b8, #060c0e);
}
.shell .panel-head {
  padding: 14px 18px;
}
.shell .panel-head h2 {
  font-size: 15px;
}
.shell .logs-console {
  min-height: 180px;
  height: 42vh;
}
.workbench-panel {
  flex-shrink: 0;
  height: 215px;
  min-height: 120px;
  max-height: 45vh;
  border-top: 1px solid var(--line);
  background: light-dark(#ecf2e9, #0b1418);
  display: flex;
  flex-direction: column;
}
.dock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid light-dark(#c7d6ca, #24363c);
  min-height: 36px;
  padding: 0 12px;
}
.dock-tabs,
.dock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dock-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 2px 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.dock-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}
#dock-active-count {
  color: var(--cyan);
  background: light-dark(#e1efee, #203439);
  padding: 0 5px;
  font-size: 10px;
}
.dock-actions a {
  font-size: 11px;
  color: var(--muted);
}
.dock-actions button {
  font-size: 18px;
  padding: 0 4px;
}
.dock-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.dock-empty {
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.dock-build-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 100px 80px 120px 85px;
  gap: 14px;
  align-items: center;
  padding: 6px 18px;
  border-bottom: 1px solid light-dark(#d2dfd2, #1a2a30);
  font-size: 12px;
}
.dock-build-row > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock-build-row .badge {
  justify-self: start;
}
.dock-build-row time {
  color: var(--muted);
  font-size: 11px;
}
.dock-build-row button {
  background: transparent;
  color: var(--cyan);
  font-size: 11px;
  padding: 2px;
}
#dock-output {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.dock-output-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 16px;
  min-width: 0;
  border-bottom: 1px solid light-dark(#d2dfd2, #1a2a30);
}
.dock-output-controls select {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 11px;
  margin: 0;
  max-width: 300px;
}
.dock-output-controls label {
  margin: 0;
  padding: 0;
  font-size: 11px;
  white-space: nowrap;
}
.dock-output-controls input {
  min-height: 0;
}
#dock-output-status {
  font-size: 11px;
  color: var(--muted);
}
.dock-console {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.dock-log-row {
  display: grid;
  grid-template-columns: 50px minmax(70px, 120px) minmax(0, 1fr);
  gap: 10px;
  padding: 3px 16px;
  border-bottom: 1px solid light-dark(#d9e4da, #14242a);
}
.dock-log-row a {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock-log-row .log-channel {
  font-size: 10px;
}
.dock-log-row pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workbench-status {
  grid-column: 1 / -1;
  grid-row: 3;
  height: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
  border-top: 1px solid light-dark(#a3baaa, #3b5348);
  background: light-dark(#dde9de, #1c3028);
  color: light-dark(#304b3a, #cce0d0);
  font-size: 10px;
  min-width: 0;
}
.workbench-status > span,
.workbench-status .status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.workbench-status .status-actions {
  margin-left: auto;
}
.workbench-status #workspace-status {
  display: inline;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workbench-status .motion-toggle {
  border: 0;
  font-size: 10px;
  padding: 0;
  color: light-dark(#304b3a, #cce0d0);
}
.quick-results {
  max-height: 50vh;
  overflow: auto;
}
.quick-results button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  text-align: left;
  gap: 12px;
  padding: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 400;
  border-bottom: 1px solid light-dark(#cbd9cf, #26373e);
}
.quick-results button:hover,
.quick-results button:focus {
  background: light-dark(#e0ebdf, #22362d);
}
.quick-results button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-results small {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1200px) {
  .shell .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .dock-build-row {
    grid-template-columns: minmax(110px, 1fr) 90px 70px 70px;
    gap: 8px;
  }
  .dock-build-row time {
    display: none;
  }
  .dock-output-controls {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .titlebar-label {
    display: none;
  }
  .shell {
    grid-template-columns: 44px 230px minmax(0, 1fr);
  }
  .shell.explorer-closed {
    grid-template-columns: 44px 0 minmax(0, 1fr);
  }
  .resource-explorer {
    position: absolute;
    z-index: 10;
    left: 44px;
    top: 46px;
    bottom: var(--status-height);
    width: 230px;
    box-shadow: 6px 0 16px #0008;
  }
  .shell .main {
    grid-column: 2 / -1;
  }
  .shell #content {
    padding: 20px;
  }
  .activity-bar a {
    min-height: 40px;
  }
}
@media (max-width: 600px) {
  .workbench-titlebar {
    gap: 8px;
    padding: 0 8px;
  }
  .workbench-titlebar .brand > span:last-child {
    display: none;
  }
  .quick-open {
    width: auto;
    flex: 1;
  }
  .quick-open kbd,
  .topbar-logs {
    display: none;
  }
  .shell .topbar {
    padding: 0 12px;
  }
  .shell #content {
    padding: 18px 12px;
  }
  .shell h1 {
    font-size: 24px;
  }
  .shell .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .workbench-panel {
    height: 195px;
  }
  .dock-build-row {
    grid-template-columns: minmax(75px, 1fr) 85px 65px;
    padding: 7px 10px;
  }
  .dock-build-row code {
    display: none;
  }
  .dock-output-controls {
    padding: 5px 10px;
    gap: 6px 12px;
  }
  .dock-output-controls select {
    max-width: 180px;
    flex: 1;
    min-width: 100px;
  }
  #dock-output-status {
    flex-basis: 100%;
    font-size: 10px;
  }
  .dock-log-row {
    padding: 4px 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 8px;
  }
  .dock-log-row a {
    display: none;
  }
  .workbench-status {
    gap: 10px;
    padding: 0 8px;
  }
  #resource-status,
  .status-actions > span {
    display: none;
  }
  .workbench-status #workspace-status {
    max-width: 140px;
  }
  .quick-results button {
    grid-template-columns: minmax(0, 1fr) 16px;
  }
  .quick-results small {
    display: none;
  }
}
.journal-range {
  margin: 0;
  min-width: 120px;
}
.journal-range select {
  margin: 4px 0 0;
  padding: 6px 10px;
  min-height: 34px;
}
.resource-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.resource-filters label {
  flex: 1 1 120px;
  margin: 0;
}
.resource-filters label:first-child {
  flex-basis: 210px;
}
.resource-filters input,
.resource-filters select {
  width: 100%;
  margin: 4px 0 0;
}
.resource-filters button,
.resource-filters a {
  flex: 0 0 auto;
}
.metric-plot {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}
.metric-plot h2 {
  font-size: 15px;
  margin: 0 0 5px;
}
.metric-plot p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.metric-plot svg {
  display: block;
  width: 100%;
  height: 155px;
  overflow: visible;
}
.metric-plot rect {
  fill: light-dark(#547e48, #91b96c);
}
.metric-plot rect:hover {
  fill: var(--accent);
}
.plot-grid {
  stroke: var(--line);
}
.plot-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.plot-scale,
.plot-dates {
  font-family: var(--font-code);
  font-size: 10px;
  color: var(--muted);
}
.plot-scale {
  margin-top: 12px;
}
.plot-dates {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
}
.journal-basis {
  padding: 16px 0;
}
.journal-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.journal-daily {
  margin: 16px 0;
}
.journal-daily summary {
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 12px;
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 170px;
}
.source-actions button {
  padding: 5px 8px;
  font-size: 11px;
}
.source-config {
  max-height: 45vh;
  overflow: auto;
}
#source-secret {
  font-family: var(--font-code);
  font-size: 12px;
}
.logs-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .logs-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .logs-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .journal-pager {
    flex-wrap: wrap;
  }
}
.shell .journal-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.journal-plots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .shell .journal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journal-plots {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .shell .journal-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Full VS Code surface inside the platform's workspace. */
.code-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.shell.code-active #content {
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.code-host {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 420px;
}
.code-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.code-toolbar a {
  color: var(--text);
}
#ciaicd-code-frame {
  flex: 1;
  min-height: 360px;
  width: 100%;
  border: 1px solid var(--line);
  background: #181818;
}
.shell.code-active #workbench-panel {
  display: none;
}
#account-settings:hover {
  color: var(--accent);
}
@media (max-width: 600px) {
  .shell.code-active #content {
    padding: 0;
  }
  .code-toolbar span {
    display: none;
  }
}

.code-toolbar h1 {
  font-size: 13px;
  margin: 0;
  color: var(--text);
}

.account-area {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.account-toggle {
  padding: 4px 8px;
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
  gap: 8px;
}
.account-toggle .avatar {
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.account-identity {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 145px;
}
.account-identity strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity small {
  font-size: 10px;
  color: var(--muted);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  z-index: 100;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--pixel-shadow);
  padding: 6px;
}
.account-menu a,
.account-menu button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px;
  color: var(--text);
  font-weight: 400;
  background: transparent;
}
.account-menu a:hover,
.account-menu button:hover {
  background: var(--panel2);
}
.account-appearance {
  display: block;
  margin: 4px 10px 10px;
}
.account-appearance select {
  padding: 6px 8px;
}
.account-menu #logout {
  border-top: 1px solid var(--line);
  color: var(--red);
}
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.settings-tabs a {
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.settings-tabs a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--line);
  background: var(--panel);
}
.settings-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 12px 0;
}
.settings-details dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.settings-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.capability-card {
  display: block;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.capability-card h2,
.capability-card h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.capability-card p {
  color: var(--muted);
  line-height: 1.6;
}
.capability-card span {
  color: var(--green);
}
.settings-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.row-actions button {
  padding: 6px 8px;
  font-size: 12px;
}
#preferences-form {
  max-width: 700px;
}
@media (max-width: 600px) {
  .account-identity {
    display: none;
  }
  .account-menu {
    min-width: 220px;
  }
  .workbench-titlebar {
    gap: 8px;
  }
  .settings-tabs a {
    padding: 8px;
    font-size: 12px;
  }
}

/* Explicit job/step inspection, with motion confined to execution signals. */
#pipeline-run [hidden] {
  display: none !important;
}
.pipeline-run-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
  color: var(--muted);
}
.pipeline-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pipeline-tabs [aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--panel2);
}
.pipeline-workarea {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pipeline-workarea[data-view="graph"],
.pipeline-workarea[data-view="pipeline"],
.pipeline-workarea[data-view="config"],
.pipeline-workarea[data-view="results"] {
  grid-template-columns: minmax(0, 1fr);
}
.pipeline-catalog h2 {
  margin: 0;
  font-size: 15px;
}
.pipeline-catalog > .muted {
  margin: 8px 0 16px;
  font-size: 12px;
}
.pipeline-inspector {
  min-width: 0;
  max-height: calc(100vh - 270px);
  min-height: 360px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.pipeline-workarea[data-view="pipeline"] .pipeline-inspector {
  max-height: none;
}
.pipeline-job {
  position: relative;
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 2px 2px 0 light-dark(#b8c3b8, #060c0e);
}
.pipeline-job-row {
  margin: 0 0 12px;
}
.pipeline-job:hover {
  background: var(--panel2);
}
.pipeline-job[data-selected="true"] {
  border-left: 3px solid var(--cyan);
}
.pipeline-job-select {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}
.pipeline-job-select strong {
  overflow-wrap: anywhere;
}
.pipeline-job-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  max-width: 100px;
}
.pipeline-job-image {
  font: 12px var(--font-code);
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.pipeline-job-progress,
.pipeline-job-reason {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pipeline-job-reason:empty {
  display: none;
}
.pipeline-step-meter {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--line);
}
.pipeline-step-meter i {
  display: block;
  height: 100%;
  background: var(--green);
}
.pipeline-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pipeline-card-actions button {
  padding: 6px 11px;
  font-size: 12px;
}
.pipeline-job-duration {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.pipeline-job-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 0;
}
.pipeline-job-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pipeline-job-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.pipeline-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 0;
}
.pipeline-steps li {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pipeline-step-select {
  display: flex;
  width: 100%;
  padding: 6px 0;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: var(--text);
  text-align: left;
  border: 0;
}
.pipeline-step-select strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.pipeline-step-select > span:last-child {
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
}
.pipeline-step-select .badge {
  font-size: 10px;
}
.pipeline-step-select[aria-pressed="true"] {
  color: var(--accent);
}
.pipeline-steps small {
  display: block;
  color: var(--muted);
  margin: 4px 0 0 18px;
  font-size: 11px;
}
.pipeline-step-command {
  margin: 8px 0 0 18px;
  font-size: 12px;
}
.pipeline-step-command summary {
  color: var(--muted);
  cursor: pointer;
}
.pipeline-step-command pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.6 var(--font-code);
  background: var(--bg);
  padding: 10px;
}
.pipeline-signal {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--muted);
}
[data-status="running"] > .pipeline-job-select > .pipeline-signal,
[data-status="running"] > .pipeline-step-select > .pipeline-signal {
  background: var(--cyan);
  animation: pipeline-tick 1.2s steps(2, end) infinite;
}
[data-status="waiting_manual"] > .pipeline-job-select > .pipeline-signal {
  background: var(--amber);
  box-shadow: 3px 3px 0 #745a27;
}
[data-status="succeeded"] > .pipeline-job-select > .pipeline-signal,
[data-status="succeeded"] > .pipeline-step-select > .pipeline-signal {
  background: var(--green);
}
[data-status="failed"] > .pipeline-job-select > .pipeline-signal,
[data-status="failed"] > .pipeline-step-select > .pipeline-signal {
  background: var(--red);
}
.pipeline-job[data-status="running"] {
  border-color: var(--cyan);
}
.pipeline-job[data-status="waiting_manual"] {
  border-color: var(--amber);
}
.pipeline-job[data-status="failed"] {
  border-color: var(--red);
}
.pipeline-graph {
  position: relative;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 22px;
  max-height: 620px;
}
.pipeline-columns {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: max-content;
  min-width: 100%;
}
.pipeline-column {
  width: 256px;
  flex: 0 0 256px;
  display: grid;
  gap: 18px;
}
.pipeline-column h2 {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pipeline-edges {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.pipeline-edges path {
  stroke: var(--line);
  stroke-width: 2;
  fill: none;
}
.pipeline-edges path[data-status="succeeded"] {
  stroke: var(--green);
}
.pipeline-edges path[data-status="running"] {
  stroke: var(--cyan);
  stroke-dasharray: 6 4;
  animation: pipeline-flow 1s steps(5, end) infinite;
}
.pipeline-edges path[data-status="waiting_manual"] {
  stroke: var(--amber);
}
.pipeline-log-filters {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.pipeline-log-filters label {
  flex: 1 1 130px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.pipeline-log-filters input,
.pipeline-log-filters select {
  min-width: 0;
  width: 100%;
  padding: 8px;
}
.pipeline-log-filters .pipeline-log-search {
  flex: 2 1 200px;
}
.pipeline-log-filters button {
  padding: 8px 12px;
  font-size: 12px;
}
.pipeline-log-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg);
}
.pipeline-log-toolbar button {
  font-size: 11px;
  padding: 6px 10px;
}
#pipeline-log-state {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
#pipeline-job-log {
  height: 340px;
  min-height: 180px;
  max-height: 55vh;
  overflow: auto;
  padding: 12px;
  font: 12px/1.6 var(--font-code);
}
.pipeline-log-entry {
  margin: 0 0 12px;
}
.pipeline-log-origin {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font: 10px/1.6 var(--font-ui);
  border-bottom: 1px dotted var(--line);
  overflow-wrap: anywhere;
}
.pipeline-log-origin > span:nth-child(2) {
  flex: 1;
}
.pipeline-log-entry pre {
  color: var(--text);
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 4px 0;
  margin: 0;
  font: inherit;
}
.pipeline-log-entry[data-stream="stderr"] pre {
  border-left: 2px solid var(--red);
  padding-left: 8px;
}
#pipeline-poll-state {
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
}
.badge.waiting_manual,
.badge.cancelling {
  color: var(--amber);
  background: light-dark(#f5ebd1, #332c20);
}
@keyframes pipeline-tick {
  50% {
    opacity: 0.35;
  }
}
@keyframes pipeline-flow {
  to {
    stroke-dashoffset: -10;
  }
}
[data-motion="off"] .pipeline-signal,
[data-motion="off"] .pipeline-edges path {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-signal,
  .pipeline-edges path {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .pipeline-workarea {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
  }
  .pipeline-catalog > h2,
  .pipeline-catalog > .muted {
    grid-column: 1/-1;
  }
  .pipeline-inspector {
    max-height: none;
  }
  .pipeline-job-row {
    margin: 0;
  }
}
@media (max-width: 550px) {
  .pipeline-log-filters {
    grid-template-columns: 1fr 1fr;
  }
  .pipeline-log-filters .pipeline-log-job-filter {
    grid-column: 1/-1;
  }
  .pipeline-step-select {
    flex-wrap: wrap;
  }
  .pipeline-step-select strong {
    min-width: 130px;
  }
  .pipeline-tabs button {
    font-size: 12px;
    padding: 9px;
  }
  .pipeline-graph {
    padding: 16px;
  }
  .pipeline-columns {
    gap: 32px;
  }
  .pipeline-column {
    width: 230px;
    flex-basis: 230px;
  }
}

#pipeline-run > .back {
  margin-bottom: 12px;
}
#pipeline-run > .page-heading {
  margin-bottom: 8px;
}
#pipeline-run > .page-heading .eyebrow {
  display: none;
}
#pipeline-run > .page-heading h1 {
  font-size: 24px;
  margin-bottom: 6px;
}
#pipeline-run > #pipeline-poll-state {
  margin: 6px 0;
}
#pipeline-run > .pipeline-run-summary {
  margin: 8px 0;
}
#pipeline-run > .pipeline-tabs {
  margin: 10px 0 14px;
}
.pipeline-inspector {
  max-height: none;
  overflow: visible;
  min-height: 0;
}
#pipeline-output .panel-head {
  flex-wrap: wrap;
  gap: 8px;
}
#pipeline-output .panel-head h2 {
  flex: 1;
  min-width: 180px;
}
#pipeline-output .panel-head button,
#pipeline-log-link {
  font-size: 11px;
  padding: 7px 10px;
}
.pipeline-log-filters button {
  flex: 0 0 auto;
}
@media (max-width: 550px) {
  .pipeline-log-filters label {
    flex-basis: 110px;
  }
  .pipeline-log-filters .pipeline-log-search {
    flex-basis: 100%;
  }
  #pipeline-output .panel-head h2 {
    flex-basis: 100%;
  }
}

@media (min-width: 901px) {
  .pipeline-catalog,
  .pipeline-inspector {
    max-height: calc(100vh - 180px);
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .pipeline-workarea[data-view="pipeline"] .pipeline-inspector {
    max-height: none;
  }
  #pipeline-output {
    margin-bottom: 0;
  }
}

.pipeline-digest {
  display: block;
  max-width: 24ch;
  overflow-wrap: anywhere;
}
.pipeline-job-artifacts {
  margin-top: 20px;
}
.pipeline-artifact-summary:not(:empty) {
  display: block;
  font-size: 0.9em;
  margin-block: 0.35rem;
}
.profile-flame {
  display: block;
  width: 100%;
  margin-block: 0.75rem;
}
.profile-flame-0 {
  fill: var(--accent);
}
.profile-flame-1 {
  fill: color-mix(in srgb, var(--accent) 78%, var(--panel2));
}
.profile-flame rect {
  stroke: var(--line);
  stroke-width: 2px;
}
.profile-flame text {
  fill: var(--bg);
  font: 13px var(--font-code);
  pointer-events: none;
}
.pipeline-attempt-note {
  color: var(--accent);
}
.pipeline-service-note {
  color: var(--muted);
  font-family: var(--font-code);
  overflow-wrap: anywhere;
}
.pipeline-attempts {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pipeline-attempts h3 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pipeline-attempts ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pipeline-attempts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.pipeline-attempts li:first-child {
  border-top: 0;
}
.pipeline-attempt-name {
  font-weight: 600;
}
.pipeline-attempts li .badge {
  font-size: 10px;
}
.pipeline-attempt-duration {
  margin-left: auto;
  color: var(--muted);
}
.pipeline-attempts li small {
  width: 100%;
  color: var(--muted);
  line-height: 1.5;
}
.pipeline-attempt-compare {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pipeline-attempt-compare h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pipeline-attempt-compare table {
  font-size: 12px;
}
.pipeline-attempt-compare th[scope="row"] {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.pipeline-attempt-compare td {
  vertical-align: top;
}
.pipeline-attempt-compare td .badge {
  font-size: 10px;
}
/* Saved outputs across retries. Columns are producing builds, so the table can
   be as wide as the retry chain; it scrolls instead of squeezing the digests. */
.pipeline-output-compare {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pipeline-output-compare h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pipeline-output-compare table {
  font-size: 12px;
}
.pipeline-output-compare th[scope="row"] {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.pipeline-output-compare th[data-producer-build] {
  min-width: 132px;
}
.pipeline-output-compare td,
.pipeline-output-compare th {
  vertical-align: top;
}
.pipeline-output-compare td .badge {
  font-size: 10px;
}
.pipeline-output-compare small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pipeline-comparison-state {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.pipeline-templates {
  margin: 18px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pipeline-templates > summary {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
}
.pipeline-templates td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.pipeline-template-path {
  font-family: var(--font-code);
  overflow-wrap: anywhere;
}
.pipeline-template-jobs code {
  margin-right: 4px;
}
.pipeline-results td small {
  display: block;
  margin-top: 5px;
}

/* Keep Git delivery metadata distinct from the reference and actor. */
.pipeline-source-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.badge.waiting_approval {
  color: var(--amber);
  border-color: var(--amber);
}
.vault-workspace table {
  min-width: 560px;
}
.deployment-review {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 16px 0;
}
.deployment-facts {
  display: grid;
  gap: 8px;
}
.deployment-facts dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

/* Managed retention: windows and keeps are read as pairs on a wide screen and
   stack on a narrow one. The workspace picker only appears while the global
   scope is "All projects", because a policy belongs to exactly one workspace. */
.retention-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.retention-workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.retention-workspace select {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 5px 9px;
}
#retention-status {
  min-height: 18px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
#retention-status:empty {
  display: none;
}
.badge.previewed {
  color: var(--cyan);
  border-color: var(--info-line);
}
.badge.completed {
  color: var(--green);
  background: var(--success-bg);
  border-color: var(--success-line);
}
#pipeline-pinned {
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
  color: var(--amber);
  padding: 4px 7px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .retention-form {
    grid-template-columns: 1fr;
  }
  .retention-workspace {
    width: 100%;
  }
  .retention-workspace select {
    flex: 1;
  }
}

/* Work items: an agent's claim, the objects the platform could check and the
   trail that records who said what. The badge keeps the raw state word used by
   REST and MCP, so the three never drift; the sentence next to it says what that
   word is allowed to mean. Nothing here animates: a trail is read, not watched. */
.workitem-filters {
  margin-bottom: 18px;
}
.workitem-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 22px;
}
.workitem-facts dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.workitem-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.workitem-summary,
.workitem-note {
  border-left: 2px solid var(--line);
  margin: 12px 0 0;
  padding: 2px 0 2px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: light-dark(#243b2e, #d8e7dc);
}
.workitem-note {
  margin-top: 8px;
}
.workitem-trail {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workitem-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
  border-bottom: 1px solid var(--divider);
  padding: 11px 20px;
}
.workitem-event:last-child {
  border-bottom: 0;
}
.workitem-actor {
  color: var(--text);
  font-size: 13px;
}
.workitem-event time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.workitem-event .pipeline-source-detail {
  grid-column: 1 / -1;
  margin: 0;
}
/* While you were away: the summary a person needs when they come back. The
   counters are the point, so they are read first and the lists under them stay
   quiet; the marker that produced them is this person's own, and the panel says
   so instead of implying that a teammate has read anything. Static: a count is
   not worth animating, and the trail below it is read, not watched. */
.workitem-overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 18px 20px 0;
}
.workitem-overview-chips li {
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 6px 10px;
}
.workitem-overview-chips strong {
  color: var(--text);
  font-size: 15px;
  margin-right: 5px;
}
.workitem-overview-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  padding: 16px 20px 6px;
}
.workitem-overview-group h3 {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.workitem-overview-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workitem-overview-group p {
  margin: 0 0 12px;
}
.workitem-overview-row {
  border-bottom: 1px solid var(--divider);
  padding: 9px 0;
}
.workitem-overview-row a {
  display: block;
  overflow-wrap: anywhere;
}
.workitem-overview-row .pipeline-source-detail {
  display: block;
  margin: 3px 0 5px;
}
.workitem-trail-live {
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding: 11px 20px;
}
.workitem-trail-live:empty {
  display: none;
}
/* One line per event a retention pass took out of this trail. The row key is an id
   the operator has to be able to compare with a capture file, so it stays in the
   readable monospace, and the notes around it stay in the interface font. */
.workitem-trail-removed {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}
.workitem-trail-removed li {
  border-bottom: 1px solid var(--divider);
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.workitem-trail-removed li:last-child {
  border-bottom: 0;
}
.badge.awaiting_decision {
  color: var(--amber);
  background: var(--warning-bg);
  border-color: var(--warning-line);
}
.badge.ready_for_review {
  color: var(--cyan);
  background: var(--info-bg);
  border-color: var(--info-line);
}
.badge.accepted {
  color: var(--green);
  background: var(--success-bg);
  border-color: var(--success-line);
}
/* The result card: what the agent wrote and what the platform recorded, on one
   screen. Two columns of equal weight are the point — a claim and the fact that
   answers it have to be read together, and each side keeps its own heading so a
   screenshot cannot merge them into one story. The patch, the steps' exit codes,
   the digests and the commands are set in the readable monospace, the prose stays
   in the UI font, and nothing here animates: a diff is read, not watched, and the
   card arrives once because it costs a real read of the repository. */
.workitem-result {
  display: grid;
  gap: 26px;
  padding: 22px;
}
.workitem-result h3 {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.workitem-result .notice {
  margin-bottom: 0;
}
.workitem-result th,
.workitem-result td {
  padding: 10px 12px;
}
.workitem-verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.workitem-side {
  border: 1px solid var(--line);
  min-width: 0;
  padding: 16px 18px;
}
.workitem-side h3 {
  color: var(--text);
}
.workitem-side .workitem-facts {
  gap: 14px;
  padding: 0;
}
.workitem-verdict {
  border-left: 3px solid var(--amber);
  color: var(--amber);
  margin: 0;
  padding: 2px 0 2px 12px;
}
.workitem-verdict.ok {
  border-left-color: var(--green);
  color: var(--green);
}
/* The sentence that says which column is whose. It is set apart from both, so a
   reader cannot mistake it for one of the two accounts above it. */
.workitem-policy {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding: 11px 0;
}
.workitem-patch {
  background: light-dark(#f4f7ef, #0a1013);
  border: 1px solid var(--line);
  color: light-dark(#304b3a, #cfe3d4);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-height: 460px;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  white-space: pre-wrap;
}
.workitem-files {
  margin-top: 12px;
}
.workitem-files summary {
  color: var(--muted);
  font-size: 12px;
}
.workitem-files ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.workitem-files li {
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  padding: 5px 0;
}
.workitem-files li:last-child {
  border-bottom: 0;
}
.workitem-run {
  border-top: 1px solid var(--divider);
  margin-top: 14px;
  padding-top: 14px;
}
.workitem-run-head {
  margin: 0 0 10px;
}
.workitem-steps {
  list-style: none;
  border-top: 1px solid var(--divider);
  margin: 8px 0 0;
  padding: 0;
}
.workitem-steps li {
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  padding: 6px 0;
}
.workitem-steps li:last-child {
  border-bottom: 0;
}
.workitem-gaps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workitem-gaps li {
  border-left: 3px solid var(--amber);
  color: light-dark(#304c3c, #d9e6d8);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding: 2px 0 2px 12px;
}
.workitem-commands {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workitem-commands li {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
}
.workitem-commands code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.workitem-evidence-kind {
  font-size: 13px;
  margin: 6px 0;
}
/* An attached object whose row is gone is not an error in the record: the link and
   its time stay, and only the words saying it is gone change how it reads. */
.workitem-gone {
  color: var(--amber);
}
.workitem-limits {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding-top: 11px;
}
/* Three pipeline states that were only ever shown as raw text: a job nobody has
   played, a step that never ran and a job waiting on another are ordinary facts,
  so they read quietly and never look like a failure or a success. */
.badge.blocked,
.badge.skipped,
.badge.pending {
  color: var(--muted);
  background: light-dark(#eaf0eb, #1a262b);
  border-color: light-dark(#8daba2, #3a4c52);
}
@media (max-width: 900px) {
  .workitem-facts {
    grid-template-columns: 1fr;
  }
  .workitem-verdict-grid {
    grid-template-columns: 1fr;
  }
  .workitem-result {
    gap: 20px;
    padding: 16px;
  }
  .workitem-patch {
    max-height: 320px;
  }
  .workitem-commands li {
    align-items: flex-start;
    flex-direction: column;
  }
  .workitem-event {
    grid-template-columns: 1fr;
  }
  .workitem-overview-groups {
    grid-template-columns: 1fr;
  }
}
/* Knowledge is read, not scanned from a table, so the reader keeps the workbench
   geometry — hard edges, the same lines and colours — while the text itself gets the
   measure and rhythm a person can actually follow. The contents column is the server's
   outline, so its indentation follows the stored heading levels rather than guesswork.
   Nothing here animates: a citation must not move while it is being copied. */
.knowledge-reader {
  align-items: start;
  border: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: 300px 1fr;
  background: var(--panel);
}
.knowledge-reader > .knowledge-flow {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding: 28px 34px 40px;
}
.knowledge-title-link:hover,
.knowledge-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.knowledge-outline {
  max-height: 78vh;
  overflow: auto;
  padding: 18px 16px 22px;
  position: sticky;
  top: 12px;
}
.knowledge-outline-head,
.knowledge-outline-foot {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.knowledge-outline-foot {
  border-top: 1px solid var(--line);
  letter-spacing: 0.4px;
  margin-top: 14px;
  padding-top: 12px;
  text-transform: none;
}
.knowledge-outline-foot a {
  color: var(--cyan);
}
.knowledge-node {
  border-left: 3px solid transparent;
  display: block;
  padding: 7px 9px;
}
.knowledge-node span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}
.knowledge-node small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.knowledge-node small code {
  font-size: 10px;
}
.knowledge-node.level-0 span {
  color: var(--muted);
  font-style: italic;
}
.knowledge-node.level-1 {
  border-left-color: light-dark(#c5d4c8, #26393f);
}
.knowledge-node.level-2 {
  padding-left: 20px;
}
.knowledge-node.level-3 {
  padding-left: 31px;
}
.knowledge-node.level-4 {
  padding-left: 42px;
}
.knowledge-node.level-5 {
  padding-left: 53px;
}
.knowledge-node.level-6 {
  padding-left: 64px;
}
.knowledge-node:hover {
  background: var(--panel2);
}
.knowledge-node.active {
  background: light-dark(#e4eeee, #1a2b30);
  border-left-color: var(--accent);
}
.knowledge-node.active span {
  color: var(--accent);
}
.knowledge-flow > .knowledge-cite {
  border: 1px solid light-dark(#82a7a9, #3a6468);
  background: light-dark(#ecf3ef, #14262b);
  margin-bottom: 26px;
  padding: 16px 18px;
}
.knowledge-cite code {
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.knowledge-cite p {
  margin: 9px 0;
}
.knowledge-path {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.6;
}
.knowledge-cite-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.knowledge-cite-actions a.secondary {
  font-size: 12px;
  padding: 7px 12px;
}
.knowledge-copy-note {
  color: var(--amber);
  min-height: 1em;
}
/* A search answer quotes the paragraph it found, so the list shows that paragraph with
   the words that matched marked. The mark is an address rather than an alarm: a low fill
   and a rule under it, so the quoted words stay readable inside a quiet fragment. The
   heading path above the fragment uses the same cyan the citation panel uses, because it
   is the same kind of fact — where in the revision these bytes live. */
mark {
  background: light-dark(#e1ece4, #2a4a49);
  border-bottom: 2px solid var(--cyan);
  border-radius: 0;
  color: light-dark(#1a2e22, #eef6ee);
  padding: 0 2px;
}
.name-cell .knowledge-hit {
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.name-cell .knowledge-hit-path {
  color: var(--cyan);
}
.name-cell .knowledge-hit-note {
  color: var(--amber);
}
/* One column of prose at reading width; the sizes step with the heading level instead
   of jumping, so an article keeps its structure without shouting. */
.knowledge-article {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 68ch;
}
.knowledge-article > *:first-child {
  margin-top: 0;
}
.knowledge-article h1,
.knowledge-article h2,
.knowledge-article h3,
.knowledge-article h4,
.knowledge-article h5,
.knowledge-article h6 {
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 2em 0 0.6em;
  position: relative;
  scroll-margin-top: 18px;
}
.knowledge-article h1 {
  border-bottom: 1px solid var(--line);
  font-size: 1.55em;
  padding-bottom: 10px;
}
.knowledge-article h2 {
  font-size: 1.3em;
}
.knowledge-article h3 {
  font-size: 1.14em;
}
.knowledge-article h4,
.knowledge-article h5,
.knowledge-article h6 {
  font-size: 1.02em;
}
.knowledge-article p {
  margin: 0 0 1.15em;
}
.knowledge-article ul,
.knowledge-article ol {
  margin: 0 0 1.15em;
  padding-left: 1.6em;
}
.knowledge-article li {
  margin-bottom: 0.5em;
}
.knowledge-article li > ul,
.knowledge-article li > ol {
  margin-top: 0.5em;
}
.knowledge-article blockquote {
  border-left: 4px solid light-dark(#82a7a9, #3a6468);
  color: light-dark(#365347, #c7dbd4);
  margin: 0 0 1.15em;
  padding: 2px 0 2px 18px;
}
.knowledge-article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}
.knowledge-article table {
  font-size: 0.85em;
  margin-bottom: 1.4em;
}
.knowledge-article th,
.knowledge-article td {
  padding: 10px 14px;
  text-transform: none;
  letter-spacing: 0;
}
.knowledge-article code {
  font-family: var(--font-code);
  font-size: 0.86em;
  padding: 2px 5px;
  background: light-dark(#eef3ec, #0f1a1e);
  border: 1px solid light-dark(#c5d4c8, #26393f);
}
.knowledge-article a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.knowledge-anchor {
  color: var(--muted);
  font-size: 0.7em;
  margin-left: 8px;
  opacity: 0;
  text-decoration: none;
  vertical-align: super;
}
.knowledge-article h1:hover .knowledge-anchor,
.knowledge-article h2:hover .knowledge-anchor,
.knowledge-article h3:hover .knowledge-anchor,
.knowledge-article h4:hover .knowledge-anchor,
.knowledge-article h5:hover .knowledge-anchor,
.knowledge-article h6:hover .knowledge-anchor,
.knowledge-anchor:focus {
  opacity: 1;
}
.knowledge-code {
  background: light-dark(#f0f4ec, #091014);
  border: 1px solid var(--line);
  margin: 0 0 1.4em;
}
.knowledge-code figcaption {
  align-items: center;
  background: light-dark(#edf2eb, #101b20);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  letter-spacing: 0.8px;
  padding: 7px 12px;
  text-transform: uppercase;
}
.knowledge-code pre {
  margin: 0;
  max-height: 460px;
  overflow: auto;
}
.knowledge-code code {
  background: none;
  border: 0;
  display: block;
  font-size: 12.5px;
  line-height: 1.65;
  padding: 14px 16px;
  white-space: pre;
}
@media (max-width: 1100px) {
  .knowledge-reader {
    grid-template-columns: 250px 1fr;
  }
  .knowledge-reader > .knowledge-flow {
    padding: 24px 22px 34px;
  }
}
@media (max-width: 900px) {
  /* The contents stay above the text rather than behind a control, because on a small
     screen they are how a reader jumps into a long article at all. */
  .knowledge-reader {
    grid-template-columns: 1fr;
  }
  .knowledge-outline {
    border-bottom: 1px solid var(--line);
    max-height: 46vh;
    position: static;
  }
  .knowledge-reader > .knowledge-flow {
    border-left: 0;
  }
  .knowledge-article {
    font-size: 1.05rem;
  }
}
/* Tasks: the board a workspace keeps for the work its people chose. The geometry
   stays square and the readable text stays system sans-serif; monospace is left for
   the task key, which is an identifier rather than a sentence. Nothing animates
   here — a board is read, and after a move the card should simply already be where
   it moved to when the next reading arrives. */
.task-filters {
  margin-bottom: 16px;
}
.task-board {
  border-top: 1px solid var(--line);
  padding: 18px 20px 20px;
}
.task-board:first-of-type {
  border-top: 0;
}
.task-board-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.task-board-head h2 {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}
.task-board-head p {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}
.task-columns {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(240px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 4px;
}
.task-column {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  min-width: 0;
}
.task-column[data-status="todo"] {
  border-top-color: var(--badge-border);
}
.task-column[data-status="doing"] {
  border-top-color: var(--info-line);
}
.task-column[data-status="blocked"] {
  border-top-color: var(--warning-line);
}
.task-column[data-status="review"] {
  border-top-color: light-dark(#9bac7b, #5c7a3c);
}
.task-column[data-status="done"] {
  border-top-color: var(--success-line);
}
.task-column-head {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px 12px;
}
.task-column-head h3 {
  font-size: 13px;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}
.task-column-meaning,
.task-column-count {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}
.task-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.task-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 11px 12px 12px;
}
.task-card-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.task-key {
  color: light-dark(#16606c, #9edce1);
  font-family: var(--font-code);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.task-title {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.task-title a {
  color: var(--text);
}
.task-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
}
.task-label {
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 11px;
  padding: 2px 6px;
}
.task-card .pipeline-source-detail {
  display: block;
  margin-top: 8px;
}
.task-move {
  display: flex;
  gap: 5px;
  margin-top: 11px;
}
.task-move-button {
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1;
  min-width: 30px;
  padding: 6px 4px;
  text-align: center;
}
.task-move-button[disabled] {
  opacity: 0.4;
}
.task-column-empty {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  padding: 4px 0;
}
.task-more {
  display: block;
  font-size: 12px;
  margin: 0 12px 12px;
  width: calc(100% - 24px);
}
.task-cancelled,
.task-board-empty {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 16px 0 0;
}
.task-status-todo,
.task-priority-none,
.task-priority-low {
  color: var(--badge-text);
}
.task-status-doing {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--cyan);
}
.task-status-blocked {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  color: var(--amber);
}
.task-status-review {
  background: light-dark(#e8eedc, #253418);
  border-color: light-dark(#9bac7b, #5c7a3c);
  color: var(--accent);
}
.task-status-done {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--green);
}
.task-status-cancelled {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--red);
}
.task-priority-medium {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--cyan);
}
.task-priority-high {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  color: var(--amber);
}
.task-priority-urgent {
  background: light-dark(#fae8d9, #3d2a21);
  border-color: light-dark(#b89076, #60402d);
  color: light-dark(#8a421d, #ffb08c);
}
.task-policy-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 12px 0 0;
}
/* Whether this screen is following the trail as it grows is a fact about the reading,
   so it is said under the rows it describes, in the same quiet voice, and it never
   animates: rows already moving on their own is the only movement here. */
.task-trail-live,
.task-board-live {
  border-top: 1px solid var(--divider);
  margin: 14px 20px 18px;
  padding-top: 11px;
}
.task-trail-live:empty,
.task-board-live:empty {
  display: none;
}
.task-facts {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 22px;
}
.task-facts dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.task-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.task-facts .pipeline-source-detail {
  display: block;
  margin-top: 4px;
}
.task-text {
  color: light-dark(#243b2e, #d8e7dc);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 18px 20px;
  white-space: pre-wrap;
}
.task-comments,
.task-trail {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-comment {
  border-bottom: 1px solid var(--divider);
  padding: 13px 20px 15px;
}
.task-comment .task-text {
  padding: 8px 0 0;
}
.task-comment strong,
.task-trail-row strong {
  font-size: 13px;
}
.task-comment time,
.task-trail-row time {
  color: var(--muted);
  float: right;
  font-size: 12px;
}
.task-trail-row {
  border-bottom: 1px solid var(--divider);
  color: light-dark(#2e493b, #cfe0d4);
  font-size: 13px;
  padding: 11px 20px;
}
.task-trail-row .pipeline-source-detail {
  display: block;
  margin-top: 3px;
}
.task-link-gone .task-link-label,
.task-link-gone .task-link-kind {
  color: var(--muted);
}
/* What a card names outside itself. The rows follow the trail rows next door — the same
   border and the same measure — because a connection is history of the same card. The kind
   chip is monospace because it names a kind of platform object, not a sentence, and a gone
   object is dimmed rather than removed: the connection is still the record. */
.task-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-link-row {
  align-items: start;
  border-bottom: 1px solid var(--divider);
  color: light-dark(#2e493b, #cfe0d4);
  display: grid;
  font-size: 13px;
  gap: 10px 12px;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  padding: 11px 20px;
}
.task-link-kind {
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-align: center;
}
.task-link-body {
  min-width: 0;
}
.task-link-label {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
a.task-link-label:hover {
  color: var(--cyan);
}
.task-link-statement {
  color: light-dark(#243b2e, #d8e7dc);
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.task-link-body .pipeline-source-detail,
.task-link-statement .pipeline-source-detail {
  display: block;
  margin-top: 3px;
}
.task-link-fields {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* `label` sets display:block, which would beat the hidden attribute, so a half that this
   kind does not have has to be switched off by name rather than trusted to the browser. */
.task-link-fields label[hidden] {
  display: none;
}
.task-link-row button,
.task-card-list + form,
.task-comments + form,
.task-links + form {
  margin-top: 4px;
}
#task-comment-form,
#task-link-form {
  padding: 0 20px 20px;
}
#task-comment-form .task-policy-note,
#task-link-form .task-policy-note {
  padding: 0;
}
/* The files a card holds. The rows keep the measure of the trail and connection rows next
   door, because a file is more history of the same card, written by the same card. The chip
   says only how the bytes travelled — a person's own bytes or bytes an agent carried — and
   stays monospace like the other object chips. The digest is printed in full, not shortened:
   it is the one fact that says which stored object the row points at, and two cards holding
   the same digest hold one object. Nothing here animates; a file list is read, not watched. */
.task-files {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-file-row {
  align-items: start;
  border-bottom: 1px solid var(--divider);
  color: light-dark(#2e493b, #cfe0d4);
  display: grid;
  font-size: 13px;
  gap: 10px 12px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  padding: 11px 20px;
}
.task-file-kind {
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-align: center;
}
.task-file-body {
  min-width: 0;
}
.task-file-name {
  color: var(--text);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.task-file-digest code {
  color: light-dark(#466254, #a8bdb2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.task-file-actions {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-file-row button {
  margin-top: 4px;
  white-space: nowrap;
}
#task-file-form {
  padding: 0 20px 20px;
}
#task-file-form .task-policy-note {
  padding: 0;
}
.task-file-fields {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* The browser's own file picker is the one control this form cannot restyle word for word,
   so its button is pulled back to the flat border and colour the rest of the screen uses
   instead of a system gradient sitting inside retro frames. The chosen name is monospace
   because it is a path the operating system handed over, not a sentence. */
#task-file-input {
  font-family: var(--font-code);
  font-size: 12px;
  padding: 8px 10px;
}
#task-file-input::file-selector-button {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  margin-right: 12px;
  padding: 8px 10px;
}
#task-file-input::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--cyan);
}
/* The review gate. A request is a question about two branch names, so both halves stay
   monospace and whole: a reader has to be able to tell refs/heads/fix-main from
   refs/heads/main at a glance, and shortening either one would make the row a guess. The
   commit ids are shortened because they are one fact in a line and the whole id stays in the
   stored row and in the answer. The verdict chip carries the server's own word, and `stale`
   is the one state that must not read as a green approval: an answer recorded for a commit
   the branch has left behind is history, not consent to what arrived after it. Nothing here
   animates — a person reads the state of a request, they do not watch it. */
.task-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-review-row {
  align-items: start;
  border-bottom: 1px solid var(--divider);
  color: light-dark(#2e493b, #cfe0d4);
  display: grid;
  font-size: 13px;
  gap: 10px 12px;
  grid-template-columns: 74px minmax(0, 1fr) minmax(0, auto);
  padding: 11px 20px;
}
.task-review-kind {
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-align: center;
}
.task-review-body {
  min-width: 0;
}
.task-review-title {
  color: var(--text);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.task-review-ref,
.task-review-commit {
  color: light-dark(#466254, #a8bdb2);
  font-family: var(--font-code);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.task-review-progress {
  color: light-dark(#2e493b, #cfe0d4);
  display: block;
  margin-top: 4px;
}
.task-review-gate,
.task-review-warning,
.task-review-decided {
  display: block;
  margin-top: 4px;
}
.task-review-gate {
  color: light-dark(#4b6356, #8ba29a);
}
.task-review-decided {
  color: light-dark(#4b6356, #8ba29a);
}
.task-review-warning {
  color: light-dark(#785613, #d9a441);
}
.task-review-side {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}
.task-review-row button {
  white-space: nowrap;
}
.task-review-verdict-awaiting {
  background: var(--field);
  border-color: var(--badge-border);
  color: var(--badge-text);
}
.task-review-verdict-approved {
  background: light-dark(#e8f2e7, #14261c);
  border-color: light-dark(#8bab91, #3f7d55);
  color: light-dark(#276444, #9fdba9);
}
.task-review-verdict-changes_requested {
  background: light-dark(#f5ead4, #26200f);
  border-color: light-dark(#aa986b, #8a6d2f);
  color: light-dark(#76530d, #e3c07a);
}
.task-review-verdict-merged {
  background: light-dark(#e5eff2, #10222b);
  border-color: light-dark(#7b9da7, #356674);
  color: light-dark(#285e6d, #93cfe0);
}
.task-review-verdict-closed {
  background: light-dark(#eceeea, #16191d);
  border-color: light-dark(#9ca8a2, #3b4650);
  color: light-dark(#4b5e59, #97a4ae);
}
.task-review-fields {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* A branch name is the answer the server will store, so the pickers print it the way Git
   spells it. The request offers no commit box on purpose: the platform reads which commit
   these two names mean right now, and a name typed by hand could be an expression that
   means something else the next time somebody pushes. */
.task-review-fields select {
  font-family: var(--font-code);
  font-size: 12px;
  overflow-wrap: anywhere;
}
#task-review-words,
#task-review-merge-ref,
#task-review-reason {
  font-family: inherit;
}
#task-review-merge-ref {
  font-family: var(--font-code);
  font-size: 12px;
}
.task-review-fields ~ label #task-review-title {
  font-family: inherit;
}
@media (width <= 900px) {
  .task-review-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .task-review-side {
    align-items: start;
    grid-column: 2;
  }
  .task-review-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.task-panel-note {
  margin-top: 12px;
}
.task-pager {
  display: flex;
  gap: 8px;
  margin: 14px 20px 0;
}
.task-column-empty[role] {
  padding: 0;
}
.task-policy {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 22px;
}
.task-policy dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.task-policy dd {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .task-facts,
  .task-policy {
    grid-template-columns: 1fr;
  }
  .task-link-fields {
    grid-template-columns: 1fr;
  }
  .task-link-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .task-link-row button {
    grid-column: 2;
  }
  /* A file row keeps its chip and its name readable and pushes the two controls under the
     name, where a thumb reaches them; the three upload boxes stack in the order they are
     filled — bytes, then the name the card keeps, then what it is called. */
  .task-file-fields {
    grid-template-columns: 1fr;
  }
  .task-file-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .task-file-actions {
    grid-column: 2;
  }
}
@media (max-width: 900px) {
  /* The columns become a stack instead of a strip behind a control: on a small
     screen the whole point is to read every column without dragging sideways. */
  .task-columns {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    overflow-x: visible;
  }
  .task-board {
    padding: 16px 14px 18px;
  }
  .task-columns .task-column {
    border-top-width: 2px;
  }
}

/* Architecture admission: what a person agreed to, and how each run was judged. */
.architecture-enforcement {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.architecture-enforcement.monitor {
  background: light-dark(#e6edf2, #26303f);
  color: light-dark(#435a6f, #9fb0c8);
}
.architecture-enforcement.enforce {
  background: light-dark(#e4f1e6, #1f3a2d);
  color: light-dark(#236447, #7fd6a2);
}
.architecture-rule {
  display: flex;
  gap: 8px;
  align-items: center;
}
.architecture-mode.enforce {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}
.architecture-verdict {
  display: block;
  margin-top: 4px;
  padding-left: 8px;
  border-left: 3px solid light-dark(#8b9eb3, #3a465a);
}
.architecture-verdict.blocked {
  border-left-color: #c2554d;
  color: light-dark(#8e393c, #f0a8a2);
}
.architecture-verdict.allowed {
  border-left-color: #2f7d55;
}
.architecture-verdict.changed,
.architecture-verdict.absent,
.architecture-verdict.invalid,
.architecture-verdict.incomplete {
  border-left-color: #b3823a;
}
.architecture-next {
  display: block;
  color: light-dark(#435a6f, #9fb0c8);
  font-size: 12px;
}
