@font-face {
  font-family: Geist;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Dark palette shared with ../privgpt/apps/console/src/App.css. */
:root {
  color-scheme: dark;
  --page: #0a0a0a;
  --card: #141414;
  --sidebar: #202020;
  --soft: #262626;
  --hover: #303030;
  --line: #333333;
  --line-strong: #525252;
  --ink-900: #f5f5f5;
  --ink-700: #d4d4d4;
  --ink-500: #a3a3a3;
  --ink-subtle: #858585;
  --button-bg: #e5e5e5;
  --button-text: #171717;
  --button-hover: #ffffff;
  --success-bg: #262626;
  --success-text: #7ee2b8;
  --success-border: #2a6450;
  --error-bg: #262626;
  --error-text: #fda4af;
  --error-border: #fb7185;
  --canvas: var(--page);
  --surface: var(--sidebar);
  --panel: var(--card);
  --surface-raised: var(--soft);
  --border: var(--line);
  --ink: var(--ink-900);
  --muted: var(--ink-500);
  --subtle: var(--ink-subtle);
  --sans: Geist, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 13px var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
img,
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
p {
  line-height: 1.7;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
h2 {
  letter-spacing: -0.035em;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
h4 {
  font-size: 13px;
}
::selection {
  background: var(--button-bg);
  color: var(--button-text);
}
:focus-visible {
  outline: 2px solid var(--button-bg);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.app-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 14px 20px;
}
.app-skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.app-eyebrow {
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.055em;
  color: var(--muted);
}
.app-eyebrow > span:not(.live-dot) {
  margin-inline: 7px;
  color: var(--subtle);
}
.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.app-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 660px;
  padding: 0 14px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 79px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1.3px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 25px 8px 27px;
  min-width: 0;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  border: 1px solid var(--line-strong);
  background: var(--hover);
  color: var(--ink-700);
  font: 12px var(--mono);
  border-radius: 4px;
  flex-shrink: 0;
}
.workspace-label > div {
  min-width: 0;
}
.workspace-label strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 126px;
}
.workspace-label > div > span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 9px;
}
.workspace-lock {
  margin-left: auto;
  color: var(--subtle);
}
.workspace-lock svg {
  width: 13px;
  height: 13px;
}
.sidebar-section-label {
  display: block;
  padding: 0 10px;
  margin-bottom: 12px;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink-500);
  font-size: 12px;
  border: 1px solid transparent;
}
.app-nav > a > svg {
  width: 16px;
  height: 16px;
}
.app-nav > a:hover {
  background: var(--hover);
  color: var(--ink);
}
.app-nav > a[aria-current] {
  background: var(--hover);
  border-color: var(--line);
  color: var(--button-bg);
}
.nav-count {
  margin-left: auto;
  color: var(--ink-700);
  font: 9px var(--mono);
  padding: 3px 6px;
  background: var(--line);
  border-radius: 3px;
}
.sidebar-projects {
  margin-top: 40px;
}
.sidebar-projects > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 10px;
  color: var(--ink-500);
  border-radius: 3px;
}
.sidebar-projects > a > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-projects > a:hover,
.sidebar-projects > a.selected-project {
  background: var(--soft);
  color: var(--ink);
}
.tiny-square {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 1px;
  background: var(--muted);
}
.tiny-square.green {
  background: var(--button-bg);
}
.tiny-square.amber {
  background: var(--ink-500);
}
.project-short-id {
  font: 8px var(--mono);
  margin-left: auto;
  color: var(--subtle);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.workspace-health {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  font-size: 10px;
}
.workspace-health > div > span {
  display: block;
  color: var(--subtle);
  font-size: 9px;
  margin-top: 6px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--button-bg);
  flex-shrink: 0;
}
.live-dot.inactive {
  background: var(--subtle);
}
.return-link {
  display: block;
  padding: 24px 10px;
  font-size: 10px;
  color: var(--muted);
}
.return-link:hover {
  color: var(--button-bg);
}
.sidebar-profile {
  border-top: 1px solid var(--border);
  padding: 18px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.profile-avatar {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-900);
  font-size: 10px;
  flex-shrink: 0;
}
.sidebar-profile > div > span {
  display: block;
  font-size: 8px;
  color: var(--subtle);
  margin-top: 5px;
}
.sidebar-profile > .app-eyebrow {
  margin-left: auto;
  font-size: 7px;
}
.app-main-shell {
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;

  background: var(--page);
}
.app-topbar {
  height: 79px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  min-width: 0;
  color: var(--ink-500);
}
.app-breadcrumb > a {
  color: var(--subtle);
}
.app-breadcrumb > a:hover {
  color: var(--button-bg);
}
.app-breadcrumb > span {
  color: var(--line-strong);
}
.app-breadcrumb strong {
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 7px 9px;
  border-radius: 3px;
  color: var(--ink-700);
  font: 8px var(--mono);
  letter-spacing: 0.03em;
}
.demo-badge > .live-dot {
  width: 4px;
  height: 4px;
}
.icon-link {
  display: grid;
  place-items: center;
  color: var(--muted);
  width: 24px;
  height: 30px;
}
.icon-link:hover {
  color: var(--button-bg);
}
.app-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 39px;
  padding: 11px 15px;
  border: 1px solid var(--button-bg);
  border-radius: 3px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.app-button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}
.app-button svg {
  width: 14px;
  height: 14px;
}
.app-button-small {
  min-height: 31px;
  padding: 8px 11px;
  gap: 8px;
  font-size: 10px;
}
.app-button-secondary {
  color: var(--button-text);

  background: var(--button-bg);

  border-color: var(--button-bg);
}
.app-button-secondary:hover {
  background: var(--button-hover);
}
.app-content {
  padding: 33px 35px 50px;
  max-width: 1510px;
  width: 100%;
  margin-inline: auto;
  flex: 1;
  min-width: 0;
}
.app-flash {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;

  border: 1px solid var(--success-border);

  background: var(--success-bg);

  color: var(--success-text);
  margin-bottom: 25px;
  border-radius: 4px;
  font-size: 11px;
}
.app-flash > svg {
  width: 16px;
  height: 16px;
}
.app-flash.error {
  background: var(--error-bg);

  border-color: var(--error-border);

  color: var(--error-text);
}
.app-flash p {
  line-height: 1.55;
}
.flash-dismiss {
  border: 0;
  padding: 0 5px;
  background: none;
  color: inherit;
  font-size: 20px;
  margin-left: auto;
}
.app-footer {
  padding: 18px 35px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--border);
  font: 8px/1.6 var(--mono);
  color: var(--ink-subtle);
  letter-spacing: 0.015em;
}
.app-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.app-footer > span:last-child {
  font: 9px/1.6 var(--sans);
  color: var(--subtle);
}
.footer-divider {
  margin-inline: 8px;
  color: var(--line-strong);
}
.project-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 31px;
}
.dot-separator {
  margin-inline: 8px;
  color: var(--line-strong);
}
.project-name-row {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 11px;
}
.project-name-row > h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 8px/1.3 var(--mono);
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.app-status.green {
  background: var(--success-bg);

  border-color: var(--success-border);

  color: var(--success-text);
}
.app-status.amber {
  background: var(--soft);

  border-color: var(--line);

  color: var(--ink-700);
}
.app-status.neutral {
  background: var(--soft);

  border-color: var(--line);

  color: var(--ink-500);
}
.app-status > span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.project-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--subtle);
}
.stage-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 23px;
  border-top: 1px solid var(--border);
  margin-bottom: 38px;
}
.stage-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;

  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 15px;

  color: var(--ink-700);

  background: var(--soft);
  font-size: 11px;
}
.stage-tab > svg {
  width: 11px;
  height: 11px;
  margin-left: auto;
}
.stage-tab:hover {
  border-color: var(--line-strong);

  background: var(--hover);
}
.stage-index {
  font: 9px var(--mono);
}
.stage-tab.completed {
  color: var(--ink-700);
}
.stage-tab[aria-current] {
  background: var(--button-bg);

  border-color: var(--button-bg);

  color: var(--button-text);
}
.stage-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.stage-heading h1 {
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.stage-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 11px;
}
.stage-heading-label {
  font-size: 7px;
  margin-bottom: 4px;
  white-space: nowrap;
  color: var(--subtle);
}
.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(255px, 1fr);
  gap: 23px;
  align-items: start;
}
.project-columns > * {
  min-width: 0;
}
.app-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 5px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-heading > .app-eyebrow {
  font-size: 8px;
}
.panel-heading > a {
  font-size: 10px;
  color: var(--ink-700);
}
.panel-heading > a:hover {
  color: var(--button-bg);
}
.project-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.task-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.task-list-heading .app-eyebrow {
  font-size: 8px;
}
.plan-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-task {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
}
.plan-task summary {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 20px 18px;
  list-style: none;
  min-height: 77px;
}
.plan-task summary::-webkit-details-marker {
  display: none;
}
.task-number {
  font: 10px var(--mono);
  color: var(--ink-500);
}
.plan-task summary > div {
  min-width: 0;
}
.plan-task summary strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.plan-task summary > div > span {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font: 9px var(--mono);
  overflow-wrap: anywhere;
}
.task-check {
  margin-left: auto;
  color: var(--ink-500);
}
.task-check.done {
  color: var(--button-bg);
}
.task-check > svg {
  width: 15px;
  height: 15px;
}
.plan-task[open] {
  border-color: var(--line-strong);
}
.plan-task[open] .task-check:not(.done) > svg {
  transform: rotate(45deg);
}
.task-detail {
  padding: 0 22px 22px 52px;
}
.task-detail p {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.8;
  margin-bottom: 13px;
  max-width: 540px;
}
.task-detail > .app-eyebrow {
  font-size: 7px;
}
.plan-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 23px 1px;
  color: var(--subtle);
}
.plan-context > svg {
  width: 15px;
  height: 15px;
}
.plan-context p {
  font-size: 10px;
  max-width: 400px;
  line-height: 1.6;
}
.plan-context a {
  margin-left: auto;
  font-size: 9px;
  white-space: nowrap;
  color: var(--ink-500);
}
.controls-panel {
  padding: 24px 22px;
  background: var(--soft);
}
.controls-panel > .app-eyebrow,
.success-panel > .app-eyebrow {
  font-size: 8px;
  display: block;
  margin-bottom: 26px;
}
.controls-panel h3 {
  font-size: 23px;
  margin-bottom: 23px;
  color: var(--ink-900);
  line-height: 1.2;
}
.control-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.control-list li,
.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.4;
}
.control-list svg {
  width: 14px;
  height: 14px;
  color: var(--ink-500);
}
.check-list svg {
  width: 14px;
  height: 14px;
  color: var(--button-bg);
}
.panel-divider {
  height: 1px;
  background: var(--border);
  margin-block: 24px;
}
.compact-specs {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 0;
}
.compact-specs > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  line-height: 1.5;
}
.compact-specs dt {
  color: var(--subtle);
}
.compact-specs dd {
  margin: 0;
  text-align: right;
  color: var(--ink-700);
  max-width: 155px;
}
.quiet-note {
  display: flex;
  gap: 10px;
  padding: 0 5px;
  color: var(--subtle);
}
.quiet-note > svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.quiet-note p {
  font-size: 10px;
  line-height: 1.7;
}
.approval-panel {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 23px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;

  background: var(--soft);
}
.approval-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  border-radius: 50%;
  color: var(--button-bg);
  flex-shrink: 0;
}
.approval-symbol svg {
  width: 15px;
  height: 15px;
}
.approval-panel > div:nth-child(2) {
  flex: 1;
}
.approval-panel h3 {
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.approval-panel p {
  font-size: 10px;
  color: var(--ink-500);
  max-width: 310px;
  line-height: 1.6;
}
.approval-panel .app-button {
  font-size: 10px;
  gap: 11px;
  padding-inline: 12px;
}
.app-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-700);
  line-height: 1.5;
}
.app-form input,
.app-form textarea,
.app-form select,
.project-search input,
.project-search select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-900);
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.5;
}
.app-form input::placeholder,
.app-form textarea::placeholder,
.project-search input::placeholder {
  color: var(--ink-subtle);
}
.app-form textarea {
  resize: vertical;
  min-height: 100px;
}
.app-form input:focus,
.app-form textarea:focus,
.app-form select:focus {
  border-color: var(--ink-500);
  outline: none;
  box-shadow: 0 0 0 2px rgb(229 229 229 / 8%);
}
.brief-form {
  padding: 25px;
}
.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 5px;
}
.form-bottom > span {
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.6;
  max-width: 230px;
}
.success-panel {
  padding: 24px 22px;
}
.success-panel h3 {
  margin-bottom: 28px;
  font-size: 23px;
}
.context-panel {
  padding: 22px;
}
.context-panel > .app-eyebrow {
  display: block;
  font-size: 8px;
  margin-bottom: 21px;
}
.context-panel > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 13px;
}
.context-panel > a + a {
  border-top: 1px solid var(--border);
}
.source-icon {
  width: 30px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  font: 11px var(--mono);
  background: var(--hover);
  flex-shrink: 0;
}
.context-panel > a > div {
  min-width: 0;
}
.context-panel strong {
  display: block;
  font-size: 10px;
  font-weight: 400;
}
.context-panel a > div > span {
  display: block;
  font-size: 9px;
  color: var(--subtle);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.context-panel > a > svg {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--subtle);
}
.run-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
}
.run-toolbar > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.run-toolbar .app-eyebrow {
  font-size: 8px;
}
.code-panel > .panel-heading {
  background: var(--hover);
}
.code-panel > .panel-heading > span:first-child {
  font: 9px var(--mono);
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.code-panel > .panel-heading svg {
  width: 14px;
  height: 14px;
}
.code-change-count {
  font: 7px var(--mono);
  white-space: nowrap;
  color: var(--ink-700);
}
.code-scroll {
  overflow: auto;
  padding: 25px 0;
  background: var(--sidebar);
}
.code-scroll pre {
  font: 11px/2.35 var(--mono);
  margin: 0;
  min-width: 490px;
}
.code-line {
  display: block;
  white-space: pre;
  padding-inline: 16px;
  color: var(--ink-700);
}
.code-line.added {
  background: rgb(82 82 82 / 20%);
  color: var(--ink-900);
}
.code-line:first-child,
.code-line:last-child {
  color: var(--ink-500);
}
.line-number {
  display: inline-block;
  width: 27px;
  padding-right: 10px;
  font-size: 9px;
  color: var(--ink-subtle);
  user-select: none;
}
.code-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding: 17px 20px;
  align-items: center;
}
.code-panel-footer > .app-eyebrow {
  font-size: 7px;
}
.code-panel-footer > span:last-child {
  font-size: 9px;
  color: var(--subtle);
}
.execution-panel {
  align-self: stretch;
}
.execution-environment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 21px 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
}
.execution-environment > svg {
  width: 15px;
  height: 15px;
}
.execution-environment strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
}
.execution-environment div > span {
  display: block;
  font-size: 8px;
  color: var(--subtle);
  margin-top: 7px;
}
.execution-log {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 24px 18px 30px;
  padding: 0;
}
.execution-log li {
  display: flex;
  gap: 9px;
  align-items: start;
  font: 9px/1.7 var(--mono);
  color: var(--ink-700);
}
.execution-log svg {
  width: 11px;
  height: 11px;
  color: var(--button-bg);
  margin-top: 2px;
}
.log-time {
  color: var(--subtle);
  font-size: 8px;
}
.execution-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: var(--subtle);
}
.execution-summary strong {
  font-size: 9px;
  font-weight: 400;
  color: var(--ink-700);
}
.stage-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stage-next > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-500);
  font-size: 10px;
}
.stage-next svg {
  width: 14px;
  height: 14px;
  color: var(--button-bg);
}
.quiet-inline {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 22px;
}
.review-body {
  padding: 25px;
}
.review-body h3 {
  font-size: 21px;
  line-height: 1.4;
  max-width: 500px;
  margin-bottom: 12px;
}
.review-body > p {
  font-size: 11px;
  color: var(--muted);
}
.sample-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font: 8px var(--mono);
  color: var(--ink-500);
  margin-top: 25px;
}
.sample-review-meta span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sample-review-meta svg {
  width: 13px;
  height: 13px;
}
.review-body h4 {
  margin-bottom: 20px;
  font-size: 12px;
}
.evidence-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0;
  margin: 0;
}
.evidence-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.evidence-icon {
  display: grid;
  place-items: center;
  background: var(--hover);
  color: var(--ink-subtle);
  border: 1px solid var(--line);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  flex-shrink: 0;
}
.evidence-icon.done {
  background: var(--line);
  color: var(--button-bg);
}
.evidence-icon svg {
  width: 12px;
  height: 12px;
}
.evidence-list strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
}
.evidence-list li > div > span {
  display: block;
  font-size: 9px;
  color: var(--subtle);
  margin-top: 7px;
  line-height: 1.5;
}
.evidence-list li > .app-eyebrow {
  margin-left: auto;
  font-size: 7px;
}
.artifact-detail {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.artifact-detail summary,
.automation-details summary {
  list-style: none;
  padding-top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-700);
  font-size: 10px;
}
.artifact-detail pre {
  font: 10px/1.8 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-700);
  padding: 20px 15px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.controls-panel > p {
  font-size: 11px;
  color: var(--ink-500);
  margin-bottom: 25px;
}
.controls-panel form .app-button {
  font-size: 10px;
  width: 100%;
  gap: 10px;
  padding-inline: 12px;
}
.review-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 9px;
  margin-top: 20px;
}
.review-attribution .profile-avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}
.delivery-panel > .panel-heading {
  padding-inline: 26px;
}
.delivery-body {
  text-align: center;
  padding: 46px 38px 32px;
}
.delivery-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  width: 55px;
  height: 55px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--line);
  color: var(--button-bg);
}
.delivery-symbol svg {
  width: 23px;
  height: 23px;
}
.delivery-body > h3 {
  font-size: 33px;
  line-height: 1.18;
  letter-spacing: -0.045em;
  margin-bottom: 21px;
}
.delivery-body > p {
  font-size: 11px;
  color: var(--muted);
}
.delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 38px 0 30px;
  text-align: left;
}
.delivery-cards > article {
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}
.delivery-cards .app-eyebrow {
  font-size: 8px;
}
.delivery-cards h4 {
  font-size: 17px;
  margin-top: 18px;
  letter-spacing: -0.025em;
}
.delivery-cards article > span:last-child {
  display: block;
  font-size: 10px;
  margin-top: 12px;
  color: var(--ink-500);
  line-height: 1.6;
}
.delivery-cards .delivery-highlight {
  background: var(--line);
  border-color: var(--line-strong);
}
.delivery-highlight h4 {
  color: var(--button-bg);
}
.delivery-body .delivery-footnote {
  font-size: 9px;
  color: var(--subtle);
  margin-top: 23px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 5px 0 36px;
}
.page-heading .app-eyebrow {
  display: block;
  margin-bottom: 16px;
  font-size: 8px;
}
.page-heading > div > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.page-heading > .app-eyebrow {
  font-size: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.stat-card {
  padding: 20px 18px;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 5px;
  transition: border-color 0.15s;
}
.stat-card:hover {
  border-color: var(--ink-subtle);
}
.stat-card > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.stat-card .app-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.5;
}
.stat-card svg {
  color: var(--ink-500);
  width: 15px;
  height: 15px;
}
.stat-card > strong {
  display: block;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 22px 0 13px;
  color: var(--button-bg);
}
.stat-card p {
  font-size: 9px;
  color: var(--subtle);
  line-height: 1.7;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 23px;
}
.overview-projects > a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 22px 20px;
}
.overview-projects > a + a {
  border-top: 1px solid var(--border);
}
.overview-projects > a:hover {
  background: var(--hover);
}
.project-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink-700);
  flex-shrink: 0;
}
.project-tile svg {
  width: 15px;
  height: 15px;
}
.overview-projects > a > div {
  min-width: 0;
  flex: 1;
}
.overview-projects h2 {
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.overview-projects p {
  font-size: 10px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}
.overview-projects > a > svg {
  width: 13px;
  height: 13px;
  color: var(--ink-subtle);
}
.activity-panel > .panel-heading > svg {
  width: 14px;
  height: 14px;
  color: var(--subtle);
}
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 25px 20px;
  margin: 0;
}
.activity-list li {
  display: flex;
  align-items: start;
  gap: 12px;
}
.activity-marker {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: var(--ink-500);
  border: 1px solid var(--ink-700);
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-list p {
  font-size: 10px;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 8px;
}
.activity-list .app-eyebrow {
  font-size: 7px;
  color: var(--ink-subtle);
}
.workspace-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 37px 33px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;

  background: var(--sidebar);
}
.workspace-intro .app-eyebrow {
  font-size: 8px;
}
.workspace-intro h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin-top: 18px;
}
.workspace-intro p {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 24px;
  max-width: 420px;
}
.intro-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  padding-inline: 35px;
}
.intro-brand img {
  width: 100px;
  height: 100px;
}
.intro-brand > .app-eyebrow {
  font-size: 7px;
  white-space: nowrap;
}
.project-search {
  display: flex;
  gap: 10px;
  margin-bottom: 19px;
  align-items: stretch;
}
.search-input {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--sidebar);
  border: 1px solid var(--border);
  padding: 0 13px;
  border-radius: 3px;
  flex: 1;
  min-width: 0;
}
.search-input > svg {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}
.project-search .search-input input {
  background: none;
  border: none;
  padding: 11px 0;
  outline: none;
  box-shadow: none;
  font-size: 11px;
  min-width: 0;
}
.project-search select {
  font-size: 10px;
  padding: 11px 10px;
  max-width: 145px;
  height: 100%;
}
.project-search .app-button {
  font-size: 10px;
}
.project-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.project-card {
  padding: 23px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
  transition: border-color 0.15s;
}
.project-card:hover {
  border-color: var(--ink-subtle);
  background: var(--hover);
}
.project-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.project-card h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.project-card > p {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.7;
  min-height: 57px;
  overflow-wrap: anywhere;
}
.project-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 23px;
  padding-top: 18px;
}
.project-card-meta .app-eyebrow {
  font-size: 7px;
}
.project-card-meta > span:nth-child(2) {
  font-size: 8px;
  color: var(--subtle);
  margin-left: auto;
}
.project-card-meta > svg {
  width: 13px;
  height: 13px;
  color: var(--ink-500);
}
.new-project-panel {
  padding: 24px 21px;
  scroll-margin-top: 25px;
}
.new-project-panel > .app-eyebrow {
  font-size: 8px;
}
.new-project-panel h3 {
  font-size: 22px;
  margin-top: 22px;
  margin-bottom: 13px;
}
.new-project-panel > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 27px;
}
.new-project-panel .app-form {
  gap: 22px;
}
.new-project-panel .app-form label {
  font-size: 10px;
}
.new-project-panel .app-form input,
.new-project-panel .app-form textarea {
  font-size: 11px;
}
.new-project-panel .app-button {
  width: 100%;
  font-size: 10px;
}
.new-project-panel p.form-help,
.form-help {
  font-size: 9px;
  line-height: 1.7;
  color: var(--subtle);
  margin: 20px 0 0;
}
.empty-state {
  padding: 65px 30px;
  text-align: center;
  grid-column: 1/-1;
}
.empty-state > svg {
  width: 25px;
  height: 25px;
  color: var(--ink-500);
  margin-bottom: 22px;
}
.empty-state h2 {
  font-size: 23px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  margin-bottom: 25px;
}
.automation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.automation-card {
  padding: 24px 21px;
}
.automation-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.automation-card-heading > .app-eyebrow {
  margin-left: auto;
  font-size: 8px;
}
.automation-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 15px;
}
.automation-card > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 80px;
}
.automation-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 21px;
  color: var(--ink-500);
  font-size: 10px;
  border-bottom: 1px solid var(--border);
}
.automation-trigger svg {
  width: 13px;
  height: 13px;
}
.automation-details {
  margin-bottom: 25px;
}
.automation-details summary {
  font-size: 10px;
}
.automation-details .check-list {
  gap: 14px;
  margin-top: 24px;
}
.automation-details .check-list li {
  font-size: 10px;
}
.automation-card form > .app-button {
  font-size: 10px;
  width: 100%;
}
.page-note {
  margin-top: 27px;
  max-width: 650px;
}
.source-row {
  padding-inline: 21px;
}
.source-row + .source-row {
  border-top: 1px solid var(--border);
}
.source-row summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-block: 25px;
  list-style: none;
}
.source-row summary > div {
  min-width: 0;
  flex: 1;
}
.source-row strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.source-row summary > div > span {
  display: block;
  font-size: 9px;
  color: var(--subtle);
  margin-top: 8px;
}
.source-row summary > div > span > span {
  margin-inline: 5px;
}
.source-expand {
  color: var(--subtle);
  font-size: 18px;
}
.source-detail {
  padding: 0 0 25px 43px;
}
.source-detail p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
  max-width: 480px;
}
.source-detail .compact-specs {
  max-width: 390px;
}
.source-row[open] .source-expand {
  transform: rotate(45deg);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 23px;
  align-items: start;
}
.settings-form {
  padding: 25px;
}
.settings-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-form > .form-help {
  margin: 0;
}
.reset-panel {
  padding: 25px;
}
.reset-panel > .app-eyebrow {
  font-size: 8px;
}
.reset-panel h3 {
  font-size: 23px;
  margin-top: 25px;
  margin-bottom: 17px;
}
.reset-panel p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}
.reset-panel p.form-help {
  font-size: 9px;
  margin-top: 20px;
  margin-bottom: 0;
}
.reset-panel .app-button {
  font-size: 10px;
  width: 100%;
}
.run-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 40;
  background: rgb(10 10 10 / 85%);
  backdrop-filter: blur(5px);
}
.run-progress {
  width: min(460px, calc(100% - 40px));
  padding: 35px;
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.run-progress h2 {
  font-size: 23px;
  margin: 22px 0 14px;
}
.run-progress p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.run-progress-bar {
  height: 3px;
  background: var(--line);
  margin-top: 28px;
  overflow: hidden;
  border-radius: 2px;
}
.run-progress-bar:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--button-bg);
  transform-origin: left;
  animation: demo-run 1.5s ease-out both;
}
.run-step-label {
  margin-top: 18px;
  color: var(--ink-700);
  font: 9px var(--mono);
}
@keyframes demo-run {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (min-width: 1700px) {
  .app-content {
    padding-top: 45px;
  }
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .app-sidebar {
    padding-inline: 20px;
  }
  .stage-heading h1 {
    font-size: 31px;
  }
  .plan-task summary strong {
    font-size: 13px;
  }
  .plan-task summary {
    min-height: 84px;
  }
  .controls-panel {
    padding: 28px;
  }
  .approval-panel {
    padding: 28px;
  }
  .project-columns {
    gap: 28px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .app-topbar {
    padding-inline: 25px;
  }
  .app-content {
    padding-inline: 25px;
  }
  .app-topbar-actions {
    gap: 13px;
  }
  .app-breadcrumb {
    gap: 9px;
    font-size: 9px;
  }
  .project-columns,
  .overview-columns {
    grid-template-columns: minmax(0, 1.7fr) minmax(235px, 1fr);
    gap: 18px;
  }
  .stage-tabs {
    gap: 8px;
  }
  .stage-tab {
    padding-inline: 12px;
    gap: 9px;
    font-size: 10px;
  }
  .stage-heading-label {
    display: none;
  }
  .stage-heading h1 {
    font-size: 25px;
  }
  .controls-panel {
    padding: 22px 18px;
  }
  .controls-panel h3 {
    font-size: 22px;
  }
  .task-list-heading .app-eyebrow {
    font-size: 7px;
  }
  .plan-task summary {
    gap: 14px;
    padding-inline: 15px;
  }
  .plan-task summary strong {
    font-size: 11px;
  }
  .approval-panel {
    flex-wrap: wrap;
    padding: 20px 16px;
  }
  .approval-panel form,
  .approval-panel > a {
    margin-left: 50px;
  }
  .approval-panel > div:nth-child(2) {
    min-width: 180px;
  }
  .overview-stats {
    gap: 12px;
  }
  .stat-card {
    padding: 18px 14px;
  }
  .stat-card .app-eyebrow {
    font-size: 9px;
  }
  .stat-card p {
    font-size: 8px;
  }
  .overview-projects > a {
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 17px;
  }
  .overview-projects > a > .app-status {
    margin-left: 44px;
  }
  .overview-projects > a > svg {
    margin-left: auto;
  }
  .overview-projects > a > div {
    flex-basis: calc(100% - 50px);
  }
  .activity-list {
    padding-inline: 17px;
  }
  .project-card-list {
    grid-template-columns: 1fr;
  }
  .project-card > p {
    min-height: 0;
  }
  .project-card-meta {
    margin-top: 20px;
  }
  .automation-list {
    gap: 15px;
  }
  .automation-card {
    padding: 20px 17px;
  }
  .automation-card-heading > .app-eyebrow {
    margin-left: 0;
  }
  .automation-card-heading .project-tile {
    margin-right: auto;
  }
  .automation-card h2 {
    font-size: 18px;
  }
  .automation-card > p {
    min-height: 100px;
  }
  .source-row {
    padding-inline: 17px;
  }
  .source-row summary {
    gap: 10px;
    flex-wrap: wrap;
  }
  .source-row summary > .app-status {
    margin-left: 40px;
  }
  .source-row summary > div {
    flex-basis: calc(100% - 45px);
  }
  .source-expand {
    margin-left: auto;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
    gap: 18px;
  }
  .settings-field-row {
    grid-template-columns: 1fr;
  }
  .delivery-body {
    padding-inline: 25px;
  }
  .delivery-cards {
    gap: 12px;
  }
  .delivery-cards > article {
    padding: 18px 15px;
  }
  .delivery-cards h4 {
    font-size: 15px;
  }
  .app-footer {
    padding-inline: 25px;
  }
  .app-footer > span:first-child {
    font-size: 7px;
  }
  .app-footer > span:last-child {
    font-size: 8px;
  }
  .intro-brand {
    padding-inline: 5px;
  }
  .intro-brand .app-eyebrow {
    font-size: 6px;
  }
  .workspace-intro h2 {
    font-size: 23px;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .app-sidebar {
    padding-inline: 9px;
  }
  .app-brand {
    font-size: 24px;
  }
  .workspace-label {
    gap: 7px;
  }
  .workspace-lock {
    display: none;
  }
  .workspace-label strong {
    max-width: 112px;
    font-size: 9px;
  }
  .workspace-avatar {
    width: 23px;
    height: 26px;
    font-size: 10px;
  }
  .app-nav > a {
    font-size: 11px;
    gap: 9px;
  }
  .sidebar-projects > a {
    font-size: 9px;
  }
  .project-short-id {
    display: none;
  }
  .sidebar-profile > .app-eyebrow {
    display: none;
  }
  .project-columns,
  .overview-columns,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .project-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .project-aside .quiet-note {
    align-self: start;
    grid-column: 1/-1;
  }
  .project-aside:has(.controls-panel) {
    grid-template-columns: 1fr;
  }
  .project-aside .controls-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
  }
  .controls-panel > .app-eyebrow {
    grid-column: 1/-1;
    margin-bottom: 10px;
  }
  .controls-panel .control-list {
    gap: 15px;
  }
  .controls-panel .panel-divider {
    grid-column: 1/-1;
    margin-block: 15px;
  }
  .controls-panel .compact-specs {
    grid-column: 1/-1;
  }
  .controls-panel form {
    align-self: center;
  }
  .controls-panel .review-attribution {
    grid-column: 1/-1;
  }
  .controls-panel h3 {
    margin-bottom: 0;
  }
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card p {
    font-size: 9px;
  }
  .stat-card .app-eyebrow {
    font-size: 10px;
  }
  .overview-projects > a {
    flex-wrap: nowrap;
  }
  .overview-projects > a > div {
    flex-basis: auto;
  }
  .overview-projects > a > .app-status {
    margin-left: 0;
  }
  .project-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .automation-list {
    grid-template-columns: 1fr;
  }
  .automation-card > p {
    min-height: 0;
  }
  .automation-card form > .app-button {
    width: auto;
  }
  .automation-card-heading .project-tile {
    margin-right: 5px;
  }
  .automation-card-heading > .app-eyebrow {
    margin-left: auto;
  }
  .app-topbar .demo-badge {
    font-size: 7px;
    letter-spacing: 0;
    padding: 6px;
  }
  .app-topbar .icon-link {
    display: none;
  }
  .app-topbar-actions > .app-button span {
    display: none;
  }
  .app-topbar-actions > .app-button {
    width: 30px;
    padding: 8px;
  }
  .app-topbar-actions {
    gap: 10px;
  }
  .app-content {
    padding-inline: 22px;
  }
  .app-topbar {
    padding-inline: 22px;
  }
  .project-name-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stage-tabs {
    gap: 6px;
  }
  .stage-tab {
    padding-inline: 10px;
    gap: 8px;
  }
  .stage-tab > svg {
    display: none;
  }
  .stage-heading h1 {
    font-size: 24px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .project-search select {
    max-width: 140px;
  }
  .new-project-panel .app-button {
    width: auto;
  }
  .workspace-intro {
    padding: 28px 22px;
  }
  .intro-brand {
    display: none;
  }
  .run-toolbar > div {
    align-items: start;
    gap: 10px;
    flex-direction: column;
  }
  .settings-field-row {
    grid-template-columns: 1fr 1fr;
  }
  .source-row summary {
    flex-wrap: nowrap;
  }
  .source-row summary > div {
    flex-basis: auto;
  }
  .source-row summary > .app-status {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .app-brand {
    height: 66px;
    border-bottom: 0;
    padding: 0;
    font-size: 25px;
    gap: 8px;
  }
  .app-brand img {
    width: 28px;
    height: 28px;
  }
  .workspace-label {
    padding: 0;
    gap: 8px;
    max-width: 155px;
  }
  .workspace-label strong {
    font-size: 9px;
    max-width: 110px;
  }
  .workspace-label > div > span {
    font-size: 8px;
  }
  .workspace-avatar {
    width: 24px;
    height: 26px;
    font-size: 10px;
  }
  .workspace-lock {
    display: none;
  }
  .sidebar-section-label,
  .sidebar-projects,
  .sidebar-bottom {
    display: none;
  }
  .app-nav {
    grid-column: 1/-1;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    padding-bottom: 12px;
    overflow: auto;
  }
  .app-nav > a {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
    min-height: 58px;
    padding: 8px 9px;
    font-size: 9px;
    position: relative;
  }
  .app-nav > a > svg {
    width: 15px;
    height: 15px;
  }
  .nav-count {
    display: none;
  }
  .app-main-shell {
    min-height: calc(100dvh - 137px);
  }
  .app-topbar {
    height: 59px;
    padding-inline: 18px;
    gap: 10px;
  }
  .app-breadcrumb {
    gap: 7px;
    font-size: 8px;
  }
  .app-breadcrumb > a:first-child,
  .app-breadcrumb > a:first-child + span {
    display: none;
  }
  .app-topbar-actions {
    gap: 8px;
  }
  .app-topbar .demo-badge {
    font-size: 6px;
    padding: 6px;
    gap: 5px;
    letter-spacing: 0;
  }
  .app-topbar .demo-badge > .live-dot {
    width: 3px;
    height: 3px;
  }
  .app-topbar .icon-link {
    display: none;
  }
  .app-topbar .app-button {
    min-height: 29px;
    padding: 8px;
    font-size: 9px;
    gap: 7px;
  }
  .app-topbar .app-button > svg {
    width: 11px;
    height: 11px;
  }
  .app-topbar .app-button > span {
    display: none;
  }
  .app-content {
    padding: 25px 18px 40px;
  }
  .project-masthead {
    margin-bottom: 23px;
    align-items: start;
  }
  .project-masthead > .project-owner {
    display: none;
  }
  .project-masthead .app-eyebrow {
    font-size: 7px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .project-name-row {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .project-name-row > h2 {
    font-size: 23px;
  }
  .app-status {
    font-size: 7px;
    padding: 5px 7px;
  }
  .stage-tabs {
    gap: 6px;
    margin-bottom: 28px;
    padding-top: 19px;
  }
  .stage-tab {
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    min-height: 54px;
    padding: 9px 3px;
    font-size: 9px;
  }
  .stage-index {
    font-size: 8px;
  }
  .stage-tab > svg {
    display: none;
  }
  .stage-heading {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .stage-heading h1 {
    font-size: 25px;
    max-width: 330px;
    line-height: 1.25;
  }
  .stage-heading p {
    font-size: 11px;
    margin-top: 12px;
    max-width: 320px;
  }
  .stage-heading-label {
    display: none;
  }
  .project-columns,
  .overview-columns,
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-aside {
    gap: 19px;
  }
  .task-list-heading {
    gap: 10px;
  }
  .task-list-heading .app-eyebrow {
    font-size: 6px;
  }
  .task-list-heading .app-eyebrow > span {
    margin-inline: 4px;
  }
  .plan-tasks {
    gap: 10px;
  }
  .plan-task summary {
    padding: 18px 14px;
    gap: 12px;
    min-height: 78px;
  }
  .task-number {
    font-size: 9px;
  }
  .plan-task summary strong {
    font-size: 11px;
  }
  .plan-task summary > div > span {
    font-size: 8px;
    line-height: 1.7;
  }
  .task-check > svg {
    width: 13px;
    height: 13px;
  }
  .task-detail {
    padding: 0 18px 19px 39px;
  }
  .task-detail p {
    font-size: 11px;
  }
  .task-detail > .app-eyebrow {
    font-size: 6px;
    line-height: 1.8;
  }
  .plan-context {
    padding-block: 19px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .plan-context > p {
    font-size: 9px;
    flex: 1;
    min-width: 220px;
    max-width: 260px;
  }
  .plan-context > a {
    margin-left: 24px;
    font-size: 9px;
  }
  .approval-panel {
    padding: 20px 16px;
    gap: 13px;
    margin-top: 9px;
  }
  .approval-panel h3 {
    font-size: 14px;
  }
  .approval-panel p {
    font-size: 10px;
  }
  .approval-symbol {
    width: 31px;
    height: 31px;
  }
  .approval-panel > div:nth-child(2) {
    min-width: 190px;
    flex: 1;
  }
  .approval-panel form,
  .approval-panel > a {
    margin-left: 44px;
  }
  .approval-panel .app-button {
    font-size: 10px;
  }
  .controls-panel {
    padding: 24px 21px;
  }
  .controls-panel > .app-eyebrow {
    margin-bottom: 22px;
    font-size: 8px;
  }
  .controls-panel h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .control-list {
    gap: 19px;
  }
  .control-list li {
    font-size: 11px;
  }
  .compact-specs > div {
    font-size: 10px;
  }
  .compact-specs dd {
    max-width: 170px;
  }
  .quiet-note {
    padding-inline: 2px;
    max-width: 350px;
  }
  .quiet-note p {
    font-size: 10px;
  }
  .app-footer {
    padding: 19px 18px;
    display: block;
  }
  .app-footer > span:first-child {
    font-size: 6px;
    letter-spacing: 0.015em;
    line-height: 1.8;
    gap: 7px;
  }
  .app-footer > span:last-child {
    display: block;
    margin-top: 9px;
    font-size: 8px;
  }
  .app-flash {
    padding: 13px;
    gap: 9px;
    font-size: 10px;
    margin-bottom: 22px;
  }
  .app-flash > svg {
    width: 13px;
    height: 13px;
  }
  .brief-form {
    padding: 22px 17px;
  }
  .app-form {
    gap: 22px;
  }
  .app-form label {
    font-size: 11px;
  }
  .app-form input,
  .app-form textarea,
  .app-form select {
    font-size: 12px;
    padding: 11px 12px;
  }
  .form-bottom {
    flex-wrap: wrap;
    gap: 18px;
  }
  .form-bottom > span {
    font-size: 9px;
    max-width: 100%;
  }
  .form-bottom > .app-button {
    margin-left: auto;
  }
  .panel-heading {
    padding-inline: 17px;
  }
  .panel-heading > .app-eyebrow {
    font-size: 7px;
  }
  .success-panel {
    padding: 24px 21px;
  }
  .context-panel {
    padding: 22px 21px;
  }
  .run-toolbar {
    align-items: center;
    gap: 15px;
  }
  .run-toolbar > div {
    align-items: start;
    gap: 10px;
    flex-direction: column;
  }
  .run-toolbar .app-eyebrow {
    font-size: 6px;
  }
  .run-toolbar .app-button {
    font-size: 9px;
    gap: 8px;
    padding: 11px 12px;
  }
  .run-toolbar .app-button > svg {
    width: 12px;
    height: 12px;
  }
  .code-panel > .panel-heading {
    gap: 8px;
    padding-inline: 13px;
  }
  .code-panel > .panel-heading > span:first-child {
    font-size: 7px;
    gap: 7px;
  }
  .code-panel > .panel-heading > span:first-child svg {
    width: 12px;
    height: 12px;
  }
  .code-change-count {
    font-size: 6px;
  }
  .code-scroll {
    padding-block: 20px;
  }
  .code-scroll pre {
    font-size: 10px;
    min-width: 450px;
    line-height: 2.5;
  }
  .line-number {
    font-size: 8px;
    width: 24px;
  }
  .code-line {
    padding-inline: 12px;
  }
  .code-panel-footer {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding: 16px;
  }
  .code-panel-footer > span:last-child {
    font-size: 9px;
  }
  .execution-log {
    gap: 22px;
  }
  .execution-log li {
    font-size: 10px;
  }
  .execution-environment {
    margin-inline: 20px;
  }
  .execution-environment strong {
    font-size: 12px;
  }
  .execution-environment div > span {
    font-size: 9px;
  }
  .execution-summary {
    font-size: 10px;
    padding: 16px 20px;
  }
  .execution-summary strong {
    font-size: 10px;
  }
  .stage-next {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    padding-top: 22px;
  }
  .stage-next p {
    font-size: 10px;
    line-height: 1.8;
    align-items: start;
  }
  .stage-next p > svg {
    margin-top: 3px;
  }
  .stage-next > .app-button {
    align-self: end;
  }
  .review-body {
    padding: 23px 18px;
  }
  .review-body h3 {
    font-size: 21px;
  }
  .sample-review-meta {
    gap: 14px;
    font-size: 7px;
  }
  .evidence-list {
    gap: 23px;
  }
  .evidence-list li {
    gap: 10px;
    flex-wrap: wrap;
  }
  .evidence-list strong {
    font-size: 11px;
  }
  .evidence-list li > div > span {
    font-size: 9px;
  }
  .evidence-list li > .app-eyebrow {
    font-size: 6px;
  }
  .evidence-list li > div {
    flex: 1;
    min-width: 180px;
  }
  .artifact-detail pre {
    font-size: 9px;
    padding: 17px 12px;
  }
  .delivery-body {
    padding: 33px 18px 26px;
  }
  .delivery-body > h3 {
    font-size: 29px;
  }
  .delivery-body > p {
    font-size: 11px;
  }
  .delivery-body > p > br {
    display: none;
  }
  .delivery-cards {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 28px;
  }
  .delivery-cards > article {
    padding: 20px;
  }
  .delivery-cards h4 {
    font-size: 18px;
    margin-top: 13px;
  }
  .delivery-cards article > span:last-child {
    font-size: 10px;
    margin-top: 11px;
  }
  .delivery-body .delivery-footnote {
    font-size: 9px;
    margin-top: 23px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 28px;
  }
  .page-heading .app-eyebrow {
    font-size: 7px;
    margin-bottom: 15px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading > div > p {
    font-size: 12px;
    margin-top: 14px;
    max-width: 340px;
  }
  .page-heading > .app-eyebrow {
    margin: 0;
  }
  .page-heading > .app-button {
    align-self: start;
  }
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 23px;
  }
  .stat-card {
    padding: 17px 13px;
  }
  .stat-card .app-eyebrow {
    font-size: 9px;
    line-height: 1.5;
    max-width: 95px;
  }
  .stat-card svg {
    width: 12px;
    height: 12px;
  }
  .stat-card > strong {
    font-size: 37px;
    margin-top: 21px;
    margin-bottom: 13px;
  }
  .stat-card p {
    font-size: 8px;
    line-height: 1.7;
  }
  .overview-projects > a {
    padding: 21px 17px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .overview-projects > a > div {
    flex-basis: calc(100% - 45px);
  }
  .overview-projects h2 {
    font-size: 13px;
  }
  .overview-projects p {
    font-size: 9px;
    max-width: 230px;
  }
  .overview-projects > a > .app-status {
    margin-left: 44px;
  }
  .overview-projects > a > svg {
    margin-left: auto;
  }
  .activity-list {
    padding: 24px 20px;
    gap: 25px;
  }
  .activity-list p {
    font-size: 11px;
  }
  .activity-list .app-eyebrow {
    font-size: 7px;
  }
  .workspace-intro {
    padding: 28px 21px;
    margin-top: 25px;
    display: block;
  }
  .workspace-intro > .intro-brand {
    display: none;
  }
  .workspace-intro > .app-eyebrow {
    font-size: 7px;
  }
  .workspace-intro h2 {
    font-size: 23px;
    line-height: 1.25;
  }
  .workspace-intro p {
    font-size: 11px;
  }
  .project-search {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-input {
    flex-basis: 100%;
  }
  .project-search > label:nth-child(2) {
    flex: 1;
  }
  .project-search select {
    max-width: 100%;
    font-size: 11px;
  }
  .project-search .app-button {
    font-size: 10px;
    padding-inline: 17px;
  }
  .project-card-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .project-card {
    padding: 22px;
  }
  .project-card h2 {
    font-size: 21px;
  }
  .project-card > p {
    font-size: 12px;
    min-height: 0;
  }
  .project-card-meta > span:nth-child(2) {
    font-size: 9px;
  }
  .project-card-meta .app-eyebrow {
    font-size: 8px;
  }
  .new-project-panel {
    padding: 25px 21px;
  }
  .new-project-panel > p {
    font-size: 12px;
  }
  .new-project-panel .app-form label {
    font-size: 11px;
  }
  .new-project-panel .app-form input,
  .new-project-panel .app-form textarea {
    font-size: 12px;
  }
  .automation-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .automation-card {
    padding: 25px 21px;
  }
  .automation-card-heading {
    margin-bottom: 25px;
  }
  .automation-card-heading .project-tile {
    margin-right: 3px;
  }
  .automation-card-heading > .app-eyebrow {
    margin-left: auto;
  }
  .automation-card h2 {
    font-size: 23px;
  }
  .automation-card > p {
    min-height: 0;
    font-size: 12px;
  }
  .automation-card .automation-details summary {
    font-size: 11px;
  }
  .automation-trigger {
    font-size: 11px;
  }
  .automation-card form > .app-button {
    font-size: 11px;
  }
  .source-row {
    padding-inline: 17px;
  }
  .source-row summary {
    padding-block: 22px;
    gap: 10px;
  }
  .source-row strong {
    font-size: 12px;
  }
  .source-row summary > div > span {
    font-size: 9px;
  }
  .source-row summary > .app-status {
    margin-left: 40px;
  }
  .source-detail {
    padding-left: 0;
  }
  .source-detail p {
    font-size: 11px;
  }
  .settings-form {
    padding: 23px 18px;
  }
  .settings-field-row {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .settings-form > .form-help {
    font-size: 10px;
  }
  .reset-panel {
    padding: 25px 21px;
  }
  .reset-panel > p {
    font-size: 12px;
  }
  .empty-state {
    padding: 45px 23px;
  }
  .empty-state h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  .empty-state h2 {
    font-size: 24px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .empty-state .app-button {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .app-sidebar {
    padding-inline: 14px;
  }
  .workspace-label {
    max-width: 140px;
  }
  .workspace-label strong {
    max-width: 101px;
    font-size: 8px;
  }
  .workspace-label > div > span {
    font-size: 7px;
  }
  .workspace-avatar {
    display: none;
  }
  .app-nav > a {
    min-width: 47px;
    padding-inline: 7px;
    font-size: 8px;
  }
  .app-content {
    padding-inline: 14px;
  }
  .app-topbar {
    padding-inline: 14px;
  }
  .app-topbar .demo-badge {
    font-size: 5px;
    padding-inline: 5px;
  }
  .app-breadcrumb {
    font-size: 7px;
  }
  .stage-heading h1 {
    font-size: 23px;
  }
  .stage-tabs {
    gap: 5px;
  }
  .stage-tab {
    font-size: 8px;
  }
  .task-list-heading .app-eyebrow {
    font-size: 5.5px;
  }
  .task-list-heading .app-eyebrow > span {
    margin-inline: 3px;
  }
  .plan-task summary strong {
    font-size: 10px;
  }
  .plan-task summary > div > span {
    font-size: 7px;
  }
  .approval-panel > div:nth-child(2) {
    min-width: 170px;
  }
  .approval-panel h3 {
    font-size: 13px;
  }
  .approval-panel p {
    font-size: 9px;
  }
  .stage-next > .app-button {
    font-size: 10px;
  }
  .project-name-row > .app-status {
    font-size: 6px;
  }
  .source-row strong {
    font-size: 11px;
  }
  .stat-card .app-eyebrow {
    font-size: 8px;
  }
  .stat-card p {
    font-size: 7px;
  }
  .app-footer > span:first-child {
    font-size: 5.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .app-button:hover {
    transform: none;
  }
}

.stage-tab[aria-current]:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
}
