:root {
  color-scheme: light;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --surface-strong: #eef2f1;
  --sidebar: #1f2928;
  --sidebar-soft: #2c3937;
  --text: #17211f;
  --text-soft: #5d6966;
  --text-faint: #7c8985;
  --line: #dbe2e0;
  --line-strong: #c5cfcc;
  --accent: #126b61;
  --accent-strong: #0b544c;
  --accent-soft: #e5f3f0;
  --blue: #226a9b;
  --blue-soft: #e9f2f8;
  --amber: #9a650c;
  --amber-soft: #fff4d8;
  --red: #a43d3d;
  --red-soft: #fceaea;
  --green: #256b46;
  --green-soft: #e9f5ed;
  --purple: #6f4e82;
  --purple-soft: #f1eaf5;
  --shadow: 0 10px 28px rgba(22, 38, 34, 0.12);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input {
  min-width: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(18, 107, 97, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

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

.app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  overflow: hidden;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-panel {
  width: min(440px, 100%);
  padding: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-brand {
  height: 64px;
  background: var(--sidebar);
  color: #ecf1ef;
}

.auth-header,
.auth-form,
.auth-entry,
.auth-panel > .form-error,
.auth-panel > .form-intro,
.auth-panel > .boundary-note,
.auth-panel > .button,
.auth-panel > .empty-state {
  margin-left: 18px;
  margin-right: 18px;
}

.auth-header {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}

.auth-header h1 {
  font-size: 1.28rem;
  margin-bottom: 5px;
}

.auth-header p {
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.auth-form .button {
  margin-top: 4px;
}

.auth-entry {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-primary-action {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
}

.auth-provider-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.emergency-login {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.emergency-login summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.emergency-login .auth-form {
  margin: 8px 0 0;
}

.emergency-login > .boundary-note {
  margin: 9px 0 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #ecf1ef;
  border-right: 1px solid #14201e;
}

.brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: #e8f3f0;
  color: #164f48;
  font-weight: 800;
}

.brand div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 1rem;
  white-space: nowrap;
}

.brand span:last-child {
  color: #aebbb8;
  font-size: 0.75rem;
}

.pilot-label {
  margin: 14px 12px 8px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid #65b9aa;
  background: var(--sidebar-soft);
}

.pilot-label span,
.pilot-label small {
  color: #acb9b6;
  font-size: 0.74rem;
}

.pilot-label strong {
  font-size: 0.9rem;
}

.project-switcher-head {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-add-button {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: transparent;
  color: #e8f3f0;
}

.project-add-button:hover,
.project-add-button:focus-visible {
  border-color: #86cbbf;
  background: rgba(101, 185, 170, 0.14);
}

.project-switcher select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 25px 5px 7px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #22302e;
  color: #f3f7f6;
  font-size: 0.78rem;
  font-weight: 650;
}

.project-switcher select option {
  background: #fff;
  color: #1d2927;
}

.sidebar nav {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group + .nav-group {
  margin-top: 3px;
}

.nav-section-label {
  padding: 8px 11px 3px;
  color: #82918d;
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-workstreams {
  margin: 8px 0 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-workstreams .nav-section-label {
  padding-top: 5px;
  color: #a8b5b1;
}

.nav-item-sub {
  min-height: 38px;
  font-size: 0.8rem;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c8d2cf;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-item-active {
  background: #e7f2ef;
  color: #143f39;
  font-weight: 700;
}

.nav-item-active:hover {
  background: #e7f2ef;
  color: #143f39;
}

.nav-item b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
}

.sidebar-boundary {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 14px 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #9eaca8;
  font-size: 0.76rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-column {
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.topbar-left,
.topbar-right,
.breadcrumb,
.account-button {
  min-width: 0;
  display: flex;
  align-items: center;
}

.topbar-left,
.topbar-right {
  gap: 12px;
}

.breadcrumb {
  gap: 6px;
  color: var(--text-soft);
  white-space: nowrap;
}

.breadcrumb strong {
  color: var(--text);
}

.breadcrumb-context {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-notification {
  position: relative;
}

.topbar-notification i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.environment-pill {
  padding: 3px 8px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #ead394;
  border-radius: 3px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.account-button {
  height: 42px;
  gap: 8px;
  padding: 3px 6px 3px 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.account-button:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.account-button > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.account-button strong {
  font-size: 0.84rem;
}

.account-button small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe9e6;
  color: #164f48;
  font-size: 0.8rem;
  font-weight: 800;
}

.avatar-large {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.mobile-menu {
  display: none;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.account-menu {
  position: absolute;
  top: 51px;
  right: 17px;
  width: min(340px, calc(100vw - 28px));
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.account-summary > div {
  display: flex;
  flex-direction: column;
}

.account-summary span:last-child {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.hat-summary,
.account-actions {
  padding: 13px 15px;
}

.hat-summary > span,
.account-actions label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.hat-summary > div,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.account-actions {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.account-actions > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.account-actions select,
.field select,
.field input,
.filter-bar select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.field textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  line-height: 1.5;
}

.account-actions p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.main-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1540px;
  min-height: 0;
  min-width: 0;
  margin: 0 auto;
  padding: 22px 24px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.page-header {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-header > div:first-child {
  min-width: 0;
}

.page-header h1 {
  margin: 3px 0 5px;
}

.page-header p {
  color: var(--text-soft);
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-actions,
.heading-actions,
.drawer-footer,
.modal-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 650;
  cursor: pointer;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.button-danger {
  background: #fff;
  border-color: #d9aaaa;
  color: var(--red);
}

.button-danger:hover {
  background: var(--red-soft);
}

.button-small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.tag {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
}

.tag-neutral {
  color: #4f5d59;
  background: #f0f3f2;
  border-color: #dbe1df;
}

.tag-success {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c9e1d1;
}

.tag-danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #efc8c8;
}

.tag-warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #ead394;
}

.tag-info {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c7dceb;
}

.tag-restricted {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: #d9c9e1;
}

.count {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 13px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-section,
.table-section,
.equipment-section,
.activity-band,
.quick-band,
.sensitive-band,
.snapshot-band,
.milestone-focus,
.draft-section,
.notice-section {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.project-progress-board {
  min-width: 0;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.progress-command {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(340px, 1.15fr);
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.overall-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 8px;
}

.overall-progress > span,
.overall-progress > small {
  color: var(--text-soft);
}

.overall-progress > span {
  font-weight: 650;
}

.overall-progress > strong {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-strong);
}

.overall-progress > small {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.7rem;
}

.progress-bar-large,
.stream-progress > span {
  position: relative;
  overflow: hidden;
  background: #dfe6e4;
}

.progress-bar-large {
  height: 12px;
  border: 1px solid #cad4d1;
}

.progress-bar-large > i,
.stream-progress i,
.portfolio-segment i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.progress-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.progress-kpis > div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
}

.progress-kpis > div:last-child {
  border-right: 0;
}

.progress-kpis dt {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.progress-kpis dd {
  margin: 1px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.portfolio-strip {
  height: 10px;
  display: flex;
  gap: 3px;
  margin: 13px 0 10px;
}

.portfolio-segment {
  min-width: 8px;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.portfolio-segment-danger {
  border-color: #dcaeae;
  background: var(--red-soft);
}

.portfolio-segment-warning {
  border-color: #e4cf96;
  background: var(--amber-soft);
}

.portfolio-segment-info {
  border-color: #bfd4e2;
  background: var(--blue-soft);
}

.portfolio-segment-success {
  border-color: #bdd9c7;
  background: var(--green-soft);
}

.portfolio-segment-danger i {
  background: var(--red);
}

.portfolio-segment-warning i {
  background: var(--amber);
}

.portfolio-segment-info i {
  background: var(--blue);
}

.portfolio-segment-success i {
  background: var(--green);
}

.stream-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stream-card {
  width: 100%;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.stream-card:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
}

.stream-card-blocked {
  border-left: 4px solid var(--red);
}

.stream-card-head,
.stream-progress,
.stream-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stream-card > strong {
  overflow-wrap: anywhere;
}

.stream-meta,
.stream-foot {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.stream-progress {
  margin-top: auto;
}

.stream-progress > span {
  flex: 1 1 auto;
  height: 8px;
  border: 1px solid #cad4d1;
}

.stream-progress > b {
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.stream-foot {
  align-items: flex-start;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.stream-foot > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stream-foot > span:last-child {
  flex: 0 0 auto;
}

.progress-boundary {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.74rem;
}

.business-lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.business-lifecycle button {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-content: center;
  gap: 2px 8px;
  padding: 11px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.business-lifecycle button:last-child {
  border-right: 0;
}

.business-lifecycle button:hover {
  background: var(--surface-muted);
}

.business-lifecycle button > span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
}

.business-lifecycle strong {
  font-size: 0.82rem;
}

.business-lifecycle small {
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1.35;
}

.business-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.business-panel {
  min-width: 0;
  margin-bottom: 14px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.business-overview-grid .business-panel {
  margin-bottom: 0;
}

.business-object-list,
.business-stream-list,
.workstream-project-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.business-object-row,
.business-stream-row,
.workstream-project-row {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.business-object-row {
  grid-template-columns: minmax(190px, 1.5fr) minmax(130px, 0.9fr) minmax(110px, 0.7fr) 18px;
}

.business-stream-row {
  grid-template-columns: 32px minmax(220px, 1fr) 62px 110px 18px;
}

.workstream-project-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) 74px 18px;
}

.business-object-row:hover,
.business-stream-row:hover,
.workstream-project-row:hover {
  background: var(--surface-muted);
}

.business-stream-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.business-object-row > span,
.business-stream-row > span,
.workstream-project-row > span {
  min-width: 0;
}

.business-object-row span,
.workstream-project-row span {
  display: flex;
  flex-direction: column;
}

.business-object-row small,
.business-stream-row small,
.workstream-project-row small {
  color: var(--text-soft);
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}

.business-stream-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--accent-strong);
}

.engineering-connection {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(120px, 0.45fr) minmax(260px, 1.2fr) minmax(250px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #edf4f8;
  border: 1px solid #cbdce7;
  border-left: 3px solid var(--blue);
}

.engineering-connection-title,
.engineering-connection > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.engineering-connection > div:not(.engineering-connection-title) {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.engineering-connection span {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.engineering-connection strong {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.workstream-stage-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 1fr);
  margin-bottom: 12px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  scrollbar-width: thin;
}

.workstream-stage-strip span {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-right: 1px solid var(--line);
}

.workstream-stage-strip span:last-child {
  border-right: 0;
}

.workstream-stage-strip b {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--accent);
  font-size: 0.68rem;
}

.workstream-stage-strip strong {
  font-size: 0.78rem;
}

.workstream-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.workstream-summary div {
  padding: 10px 13px;
  border-right: 1px solid var(--line);
}

.workstream-summary div:last-child {
  border-right: 0;
}

.workstream-summary dt {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.workstream-summary dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
  font-weight: 750;
}

.workstream-integration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 11px 14px;
  background: var(--blue-soft);
  border: 1px solid #c7dce9;
}

.workstream-integration > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.workstream-integration span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.workstream-integration small {
  color: var(--text-soft);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.workstream-boundary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
  color: var(--text-soft);
  background: var(--surface-strong);
  border-left: 3px solid var(--line-strong);
  font-size: 0.74rem;
}

.master-data-panel {
  padding: 0;
}

.master-data-panel > .section-heading {
  padding: 15px 16px 0;
}

.master-data-rule {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 15px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.master-data-rule span {
  color: var(--text-soft);
}

.program-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.presales-flow,
.presales-list {
  min-width: 0;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.presales-stage-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.presales-stage {
  min-height: 70px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  gap: 2px 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-muted);
}

.presales-stage > span {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line-strong);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.presales-stage strong {
  align-self: end;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.presales-stage small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.presales-stage-active {
  border-color: #93c5bb;
  background: var(--accent-soft);
}

.presales-stage-active > span {
  background: var(--accent);
  color: #fff;
}

.presales-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.presales-kpis > div {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
}

.presales-kpis > div:last-child {
  border-right: 0;
}

.presales-kpis dt {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.presales-kpis dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.presales-list {
  padding: 0;
}

.presales-list > .section-heading {
  padding: 15px 16px 0;
}

.presales-table {
  min-width: 1180px;
}

.presales-table td:first-child {
  min-width: 180px;
}

.presales-table td:nth-child(3),
.presales-table td:nth-child(4),
.presales-table td:nth-child(7) {
  min-width: 150px;
  max-width: 230px;
}

.opportunity-document-section {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.opportunity-document-section > .section-heading {
  margin-bottom: 10px;
}

.opportunity-document-section h3 {
  margin: 0;
  font-size: 0.98rem;
}

.opportunity-document-upload {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.7fr 1.4fr;
  align-items: end;
  gap: 9px;
}

.opportunity-document-upload-button {
  min-height: 38px;
  margin-top: 10px;
}

.opportunity-document-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.opportunity-document-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.opportunity-document-list > div > span {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.opportunity-document-list small,
.opportunity-document-list p,
.opportunity-document-pending span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.opportunity-document-list p {
  margin: 0;
}

.opportunity-document-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.onsite-delivery-field {
  min-height: 38px;
  align-self: end;
}

.opportunity-actions {
  min-width: 116px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-master-body {
  display: grid;
  gap: 18px;
}

.customer-master-editor {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.customer-master-editor h3,
.customer-master-toolbar h3 {
  margin: 0;
  font-size: 0.98rem;
}

.customer-master-toolbar {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.customer-search {
  width: min(280px, 100%);
}

.customer-master-list {
  border: 1px solid var(--line);
}

.customer-master-head,
.customer-master-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.5fr 0.55fr minmax(120px, auto);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 11px;
}

.customer-master-head {
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.customer-master-row {
  min-height: 60px;
  border-top: 1px solid var(--line);
}

.customer-master-row > span {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  overflow-wrap: anywhere;
}

.customer-master-row small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.customer-master-actions {
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: wrap;
}

.customer-master-empty {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.conversion-inheritance {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 7px 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
}

.conversion-inheritance span {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.conversion-inheritance strong {
  overflow-wrap: anywhere;
}

.program-tab {
  flex: 0 0 auto;
  min-width: 170px;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.program-tab span {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.program-tab-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.program-command,
.program-projects,
.program-empty {
  min-width: 0;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.program-command .section-heading p {
  max-width: 780px;
  margin-top: 5px;
  color: var(--text-soft);
}

.program-command-grid {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) minmax(430px, 1.4fr);
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.program-command .progress-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 2px 0;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.program-meta strong {
  margin-left: 5px;
  color: var(--text);
}

.program-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.program-project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.program-project-card-risk {
  border-left: 4px solid var(--red);
}

.program-project-card > header,
.program-project-card > footer,
.program-project-card > header > div,
.program-project-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.program-project-card > header > div {
  justify-content: flex-start;
}

.program-project-card h3 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.program-project-card > p {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.program-project-progress > span {
  flex: 1 1 auto;
  height: 9px;
  overflow: hidden;
  border: 1px solid #cad4d1;
  background: #dfe6e4;
}

.program-project-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.program-project-progress strong {
  font-size: 0.8rem;
}

.program-project-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.program-project-card dl > div {
  min-width: 0;
  padding: 6px 7px;
  border-right: 1px solid var(--line);
}

.program-project-card dl > div:last-child {
  border-right: 0;
}

.program-project-card dt,
.program-project-note span,
.program-project-note small {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.program-project-card dd {
  margin: 1px 0 0;
  font-weight: 700;
}

.program-project-note {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  min-height: 24px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.program-project-note strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

.program-project-equipment {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.program-project-equipment > span,
.program-project-equipment small {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.program-project-equipment > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.program-project-card > footer {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 3px;
}

.program-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.program-alert-list {
  display: grid;
}

.program-alert-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.program-alert-list > button:last-child {
  border-bottom: 0;
}

.program-alert-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.program-unassigned {
  display: grid;
  gap: 7px;
}

.program-unassigned > span {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.program-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.program-empty > div {
  max-width: 430px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.program-empty p {
  color: var(--text-soft);
}

.review-waiting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.work-section,
.activity-band,
.quick-band,
.sensitive-band,
.snapshot-band,
.draft-section,
.notice-section {
  padding: 15px 16px;
}

.work-section-priority {
  border-top: 3px solid var(--red);
  padding-top: 13px;
}

.work-section-wide {
  grid-column: 1 / -1;
}

.section-heading,
.drawer-section-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading > div:first-child {
  min-width: 0;
}

.section-heading h2 {
  margin-top: 2px;
}

.event-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.event-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.event-row:hover {
  background: var(--surface-muted);
}

.event-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-main span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.event-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.project-task-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project-task-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 118px minmax(210px, 1fr) 132px 148px 128px 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.project-task-row:hover {
  background: var(--surface-muted);
}

.project-task-row-readonly {
  cursor: default;
}

.project-task-row-readonly:hover {
  background: transparent;
}

.project-task-row-overdue {
  box-shadow: inset 3px 0 0 var(--red);
}

.project-task-code,
.project-task-main,
.project-task-owner {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-task-code strong,
.project-task-code small,
.project-task-main strong,
.project-task-main small,
.project-task-owner strong,
.project-task-owner small {
  overflow-wrap: anywhere;
}

.project-task-code strong {
  color: var(--accent-strong);
}

.project-task-code small,
.project-task-main small,
.project-task-owner small,
.project-task-due {
  color: var(--text-soft);
  font-size: 0.73rem;
}

.project-task-status {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.text-danger {
  color: var(--red);
  font-weight: 700;
}

.task-list-more {
  padding: 9px 4px;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-align: right;
}

.empty-state {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
}

.plain-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.plain-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.plain-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plain-row strong,
.plain-row span {
  overflow-wrap: anywhere;
}

.plain-row > div > span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.sensitive-band,
.activity-band,
.quick-band {
  margin-top: 14px;
}

.sensitive-band {
  border-left: 4px solid var(--purple);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.status-grid > div {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.status-grid > div:last-child {
  border-right: 0;
}

.status-grid span {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.status-grid strong {
  overflow-wrap: anywhere;
}

.boundary-note {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 0;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.timeline-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-row span:last-child {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.milestone-focus {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  margin-bottom: 14px;
  border-left: 4px solid var(--accent);
}

.milestone-summary {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}

.milestone-summary h2 {
  margin: 6px 0;
  font-size: 1.2rem;
}

.milestone-summary p {
  color: var(--text-soft);
}

.condition-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.condition {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.condition:hover {
  border-color: var(--accent);
}

.condition-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.condition-done {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c9e1d1;
}

.condition-done .condition-check {
  border-color: var(--green);
  background: #fff;
}

.gap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gap-list > div {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--amber);
  background: var(--amber-soft);
  border-left: 3px solid #cf9a2b;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.snapshot-band {
  margin-bottom: 14px;
  border-top: 3px solid var(--accent);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
}

.snapshot-grid > div {
  min-width: 0;
  min-height: 78px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.snapshot-grid > div:nth-child(3n) {
  border-right: 0;
}

.snapshot-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.snapshot-grid dt,
.responsibility-grid dt {
  margin-bottom: 3px;
  color: var(--text-soft);
  font-size: 0.74rem;
}

.snapshot-grid dd,
.responsibility-grid dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.snapshot-grid small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.snapshot-blockers {
  margin-top: 12px;
}

.snapshot-blockers > strong {
  display: block;
  margin-bottom: 7px;
}

.snapshot-blockers > div:not(.empty-state) {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}

.snapshot-blockers > div > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  white-space: nowrap;
}

.table-section {
  margin-top: 14px;
  padding: 15px 16px 0;
}

.equipment-section {
  margin-bottom: 14px;
  padding: 15px 16px 0;
}

.equipment-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.equipment-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.equipment-summary strong {
  color: var(--text);
  font-size: 1rem;
}

.equipment-summary p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-align: right;
}

.equipment-table td:first-child {
  min-width: 220px;
}

.task-map-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.task-map-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.task-map-summary strong {
  color: var(--text);
  font-size: 1rem;
}

.task-map-summary p {
  flex: 1 1 360px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-align: right;
}

.task-filter-bar {
  margin-bottom: 4px;
}

.task-map-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-bottom: 14px;
}

.task-predecessors {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.task-predecessors span {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.equipment-table td:first-child,
.equipment-table td:nth-child(2),
.equipment-table td:nth-child(3),
.equipment-table td:nth-child(5) {
  display: table-cell;
}

.equipment-table td strong,
.equipment-table td small {
  display: block;
}

.equipment-table td small {
  margin-top: 3px;
  color: var(--text-soft);
}

.equipment-progress {
  width: 88px;
  height: 7px;
  display: block;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #cad4d1;
  background: #dfe6e4;
}

.equipment-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.table-section-flush {
  padding: 0;
}

.table-section-flush > .section-heading {
  padding: 15px 16px 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  contain: layout paint;
}

.identity-summary,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.identity-summary {
  margin-bottom: 12px;
}

.identity-subheading {
  margin-top: 18px;
}

.compact-select {
  width: min(260px, 100%);
  min-width: 190px;
  min-height: 34px;
  padding: 6px 30px 6px 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-soft);
  background: var(--surface-muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

td {
  max-width: 360px;
  overflow-wrap: anywhere;
}

td > strong,
td > small {
  display: block;
}

td > strong + small,
td > span + strong,
td > .tag + small {
  margin-top: 3px;
}

td small {
  color: var(--text-soft);
  line-height: 1.4;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.wrap {
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-list {
  border-top: 1px solid var(--line);
}

.member-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.member-row > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.member-row > div:nth-child(2) > span,
.member-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.boundary-banner,
.simulation-banner {
  min-height: 62px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.boundary-banner > div,
.simulation-banner > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.boundary-banner span,
.simulation-banner span {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.simulation-banner {
  border-left: 4px solid var(--blue);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.draft-section ol {
  margin: 0;
  padding-left: 20px;
}

.draft-section li {
  padding: 6px 0 8px 3px;
  border-bottom: 1px solid var(--line);
}

.notification-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.notification-rules > div {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.notification-rules > div:last-child {
  border-right: 0;
}

.notification-rules span {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.integration-rule .tag {
  margin-top: auto;
  align-self: flex-start;
}

.notice-section {
  margin-top: 14px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.notice-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notice-row:hover {
  background: var(--surface-muted);
}

.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.notice-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.notice-row span:last-child {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.notice-read {
  opacity: 0.62;
}

.notice-read .notice-dot {
  background: var(--line-strong);
}

.integration-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.integration-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.integration-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.integration-row span,
.integration-row small {
  color: var(--text-soft);
}

.integration-row small {
  font-size: 0.74rem;
}

.permission-code {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 15px;
  padding: 9px 11px;
  background: #202927;
  color: #dce7e4;
}

.permission-code code {
  color: #8ed3c6;
}

.filter-bar {
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.filter-bar label {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-bar label > span {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.filter-result {
  margin-left: auto;
  padding-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.modal-backdrop,
.drawer-scrim,
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(13, 23, 21, 0.44);
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-wide {
  width: min(880px, 100%);
}

.modal > form {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.modal-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  min-width: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 15px;
}

.modal-footer {
  min-height: 60px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.modal-footer > span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.context-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.76rem;
}

.context-strip strong {
  color: var(--text);
}

.report-template-picker {
  margin: 0 0 14px;
  padding: 10px;
  background: var(--surface-muted);
}

.report-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.report-template-grid button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.report-template-grid button:hover,
.report-template-grid .report-template-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.quick-report-more {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.quick-report-more summary {
  width: max-content;
  padding: 10px 0 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.quick-report-more[open] .form-grid {
  margin-top: 6px;
}

.project-create-boundary {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field > span,
fieldset legend {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-compact {
  width: 150px;
}

.field input::placeholder {
  color: #9ba6a3;
}

.customer-lookup-hint {
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1.4;
}

.customer-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
}

.customer-lookup-row input {
  width: 100%;
}

.customer-add-button {
  min-width: 104px;
  min-height: 38px;
  padding-inline: 10px;
  white-space: nowrap;
}

.customer-inline-create {
  display: grid;
  gap: 8px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.customer-inline-create[hidden] {
  display: none;
}

.customer-inline-create > strong {
  font-size: 0.82rem;
}

.customer-inline-create label {
  display: grid;
  gap: 4px;
}

.customer-inline-create label > span {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.customer-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

fieldset {
  min-width: 0;
  margin: 14px 0 0;
  padding: 11px;
  border: 1px solid var(--line);
}

fieldset legend {
  padding: 0 5px;
  color: var(--text);
}

.form-intro {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 13px;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.form-intro span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.blocker-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blocker-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 9px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.check-field {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.check-field input,
.evidence-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--accent);
}

.p0-warning,
.permission-denied,
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
}

.p0-warning {
  margin-bottom: 13px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #ead394;
}

.p0-warning > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.p0-warning span {
  color: #725519;
  font-size: 0.76rem;
}

.permission-denied {
  margin-top: 12px;
  color: var(--purple);
  background: var(--purple-soft);
  border-left: 3px solid var(--purple);
}

.form-error {
  margin: 11px 0;
  color: var(--red);
  background: var(--red-soft);
  border-left: 3px solid var(--red);
}

.evidence-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.evidence-check {
  min-height: 50px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  cursor: pointer;
}

.evidence-ready {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.evidence-check > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 1px 6px;
  align-items: center;
}

.evidence-check small {
  grid-column: 2;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.drawer-scrim {
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(520px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -10px 0 30px rgba(22, 38, 34, 0.15);
}

.drawer-header {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header > div {
  min-width: 0;
}

.drawer-header > div > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.drawer-header h2 {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.drawer-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.drawer-summary > div {
  min-width: 0;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.drawer-summary > div:last-child {
  border-right: 0;
}

.drawer-summary span:first-child {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.drawer-summary small {
  color: var(--text-soft);
}

.drawer-section {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-section h3 {
  margin-bottom: 8px;
}

.drawer-section p {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.drawer-section .tag-line {
  margin-top: 10px;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.responsibility-grid > div {
  min-width: 0;
  padding: 8px;
  background: var(--surface-muted);
}

.evidence-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-mini-list > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
}

.evidence-mini-list span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.evidence-mini-list small {
  color: var(--text-soft);
}

.approval-record {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.approval-record small {
  display: block;
  margin-top: 7px;
  color: var(--text-soft);
}

.drawer-footer {
  min-height: 64px;
  justify-content: flex-end;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(430px, calc(100vw - 36px));
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
}

.toast-success {
  border-left: 4px solid var(--green);
}

.toast-danger {
  border-left: 4px solid var(--red);
}

.nav-scrim {
  display: none;
  left: min(280px, 82vw);
  z-index: 29;
}

.role-focus-strip {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
}

.role-focus-strip span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-left: 2px solid var(--accent);
  color: var(--text-soft);
  font-size: 12px;
}

.role-work-grid {
  align-items: start;
}

.context-list,
.artifact-compact-list,
.artifact-ledger {
  display: grid;
  gap: 0;
}

.context-row,
.artifact-compact-list button {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.context-row > span,
.artifact-compact-list button > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.context-row strong,
.context-row small,
.artifact-compact-list strong,
.artifact-compact-list small {
  overflow-wrap: anywhere;
}

.plain-row-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hat-summary > strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
}

.hat-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.hat-switcher button {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.hat-switcher .hat-switch-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.opportunity-context-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.opportunity-context-head > div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.opportunity-context-head h3 {
  margin: 0;
  font-size: 16px;
}

.opportunity-transitions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

[data-end-customer-field][hidden] {
  display: none;
}

.opportunity-missing-facts {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.opportunity-missing-facts > .section-heading {
  margin-bottom: 8px;
}

.opportunity-missing-facts h3 {
  margin: 0;
  font-size: 0.98rem;
}

.opportunity-missing-fact-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(150px, 1fr) minmax(220px, 2fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.opportunity-missing-fact-row > span {
  display: flex;
  min-width: 0;
  gap: 4px;
  flex-direction: column;
  align-items: flex-start;
}

.opportunity-missing-fact-row > span:last-child {
  align-items: flex-end;
}

.opportunity-missing-fact-row small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.opportunity-artifact-section {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.compact-form {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.artifact-ledger {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.artifact-ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.artifact-ledger > div > span {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.artifact-ledger small {
  color: var(--text-soft);
}

.parse-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e7cf98;
  background: var(--amber-soft);
  color: var(--text-soft);
}

.quote-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.quote-process > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.quote-process > div:last-child {
  border-right: 0;
}

.quote-process > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.quote-process > div.is-done > span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.quote-process strong,
.quote-process small {
  overflow-wrap: anywhere;
}

.quote-process strong {
  font-size: 13px;
}

.quote-process small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.quote-empty-start {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quote-empty-start h2,
.quote-empty-start p {
  margin: 0;
}

.quote-empty-start h2 {
  font-size: 18px;
}

.quote-empty-start p {
  max-width: 680px;
  color: var(--text-soft);
}

.quote-version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.quote-version-bar [role="tablist"] {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}

.quote-version-bar [role="tab"] {
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.quote-version-bar [role="tab"].is-active {
  border-color: var(--line-strong);
  background: var(--surface);
}

.quote-version-bar [role="tab"] small {
  color: var(--text-soft);
  font-size: 10px;
}

.quote-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quote-boundary > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px 18px;
}

.quote-boundary > div + div {
  border-left: 1px solid var(--line);
}

.quote-boundary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quote-boundary small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.quote-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quote-section.table-section-flush {
  padding-inline: 0;
}

.quote-section.table-section-flush > .section-heading {
  padding-inline: 18px;
}

.quote-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.quote-upload-box,
.quote-existing-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.quote-existing-import {
  grid-template-columns: minmax(0, 1fr) auto;
}

.quote-import-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--text-soft);
  font-size: 12px;
}

.quote-import-summary details {
  flex-basis: 100%;
}

.quote-import-summary ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.quote-reconciliation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.quote-reconciliation-summary > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.quote-reconciliation-summary > div:nth-child(4) {
  border-right: 0;
}

.quote-reconciliation-summary span,
.quote-reconciliation-summary p {
  color: var(--text-soft);
  font-size: 11px;
}

.quote-reconciliation-summary strong {
  font-size: 17px;
}

.quote-reconciliation-summary p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.quote-reconciliation-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 18px 16px;
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.quote-reconciliation-empty strong,
.quote-reconciliation-empty p {
  margin: 0;
}

.quote-reconciliation-empty p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.quote-reconciliation-table {
  min-width: 1080px;
}

.quote-reconciliation-table td strong,
.quote-reconciliation-table td small {
  display: block;
}

.quote-source-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-source-compare > div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.quote-source-compare > div + div {
  border-left: 1px solid var(--line);
}

.quote-source-compare span {
  color: var(--text-soft);
  font-size: 11px;
}

.quote-source-compare strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.quote-equipment-table,
.quote-bom-table {
  min-width: 980px;
}

.quote-equipment-table td:first-child,
.quote-bom-table td:first-child {
  min-width: 170px;
}

.quote-equipment-table td strong,
.quote-bom-table td strong,
.quote-equipment-table td small,
.quote-bom-table td small {
  display: block;
}

.quote-equipment-node {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.quote-equipment-node:last-child {
  border-bottom: 1px solid var(--line);
}

.quote-equipment-node > header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 160px 36px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px;
}

.quote-equipment-node > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quote-equipment-node > header small {
  color: var(--text-soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.quote-equipment-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.quote-equipment-toggle > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quote-equipment-toggle strong,
.quote-equipment-toggle small {
  overflow-wrap: anywhere;
}

.quote-equipment-node.is-expanded > header {
  background: var(--surface-muted);
}

.quote-equipment-node-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.quote-equipment-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-equipment-context > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.quote-equipment-context > div:last-child {
  border-right: 0;
}

.quote-equipment-context span,
.quote-equipment-context small {
  color: var(--text-soft);
  font-size: 11px;
}

.quote-equipment-context strong,
.quote-equipment-context small {
  overflow-wrap: anywhere;
}

.quote-evidence-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.quote-evidence-inline span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quote-equipment-bom-table {
  min-width: 920px;
}

.quote-equipment-bom-table input,
.quote-equipment-bom-table select {
  width: 100%;
  min-width: 90px;
  height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.quote-equipment-bom-table input:disabled,
.quote-equipment-bom-table select:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.quote-equipment-bom-table td strong,
.quote-equipment-bom-table td small {
  display: block;
}

.quote-all-bom {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quote-all-bom > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
}

.quote-all-bom > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.quote-all-bom > summary small {
  color: var(--text-soft);
  font-size: 11px;
}

.quote-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quote-cost-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.quote-cost-summary > div {
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.quote-cost-summary > div:last-child {
  border-right: 0;
}

.quote-cost-summary span {
  color: var(--text-soft);
  font-size: 11px;
}

.quote-cost-summary strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.quote-cost-summary small {
  color: var(--text-soft);
  font-size: 10px;
}

.quote-cost-actions .button {
  justify-self: start;
  margin-top: 4px;
}

.quote-cost-hidden {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 12px;
}

.quote-approval-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quote-approval-band h2,
.quote-approval-band p {
  margin: 0;
}

.quote-approval-band h2 {
  margin-top: 2px;
  font-size: 16px;
}

.quote-approval-band p {
  max-width: 760px;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
}

.quote-review-blockers {
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.quote-review-blockers ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

.product-prototype-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #6d500f;
  background: var(--amber-soft);
  border: 1px solid #e5c875;
}

.product-prototype-boundary > span {
  flex: 1 1 auto;
  min-width: 0;
}

.product-prototype-tabs {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(138px, 1fr));
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(22, 38, 34, 0.05);
}

.product-prototype-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.product-prototype-tabs button:last-child {
  border-right: 0;
}

.product-prototype-tabs button:hover {
  background: var(--surface-muted);
}

.product-prototype-tabs button.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.prototype-dashboard,
.prototype-quick-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.prototype-fast-entry,
.prototype-quick-result,
.prototype-panel,
.prototype-command-band,
.prototype-project-command,
.prototype-personal-head,
.prototype-status-unavailable {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.prototype-fast-entry,
.prototype-quick-result,
.prototype-panel {
  padding: 16px;
}

.prototype-fast-entry > .section-heading,
.prototype-quick-result > .section-heading,
.prototype-panel > .section-heading {
  margin-bottom: 14px;
}

.prototype-fast-entry form {
  display: grid;
  gap: 14px;
}

.prototype-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  color: var(--text-soft);
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  cursor: pointer;
}

.prototype-dropzone:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.prototype-dropzone > span {
  display: grid;
  gap: 3px;
}

.prototype-dropzone strong {
  color: var(--text);
}

.prototype-dropzone input {
  margin-left: auto;
  width: min(360px, 45%);
}

.prototype-minimal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prototype-minimal-fields > details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.prototype-minimal-fields summary {
  padding: 11px 0;
  color: var(--accent-strong);
  font-weight: 650;
  cursor: pointer;
}

.prototype-fast-entry form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.prototype-fast-entry form > footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.prototype-preview-empty,
.prototype-status-unavailable {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: 20px;
  color: var(--text-soft);
  border-style: dashed;
}

.prototype-preview-empty > div,
.prototype-status-unavailable > div {
  display: grid;
  gap: 4px;
}

.prototype-preview-empty strong,
.prototype-status-unavailable strong {
  color: var(--text);
}

.prototype-prefill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.prototype-prefill-grid > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 82px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prototype-prefill-grid span,
.prototype-prefill-grid small,
.prototype-gate-strip span,
.prototype-gate-strip small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.prototype-prefill-grid strong {
  overflow-wrap: anywhere;
}

.prototype-gate-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.prototype-gate-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 10px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.prototype-gate-strip > div:last-child {
  border-right: 0;
}

.prototype-gate-strip small {
  grid-column: 1 / -1;
}

.prototype-result-columns,
.prototype-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  margin-top: 14px;
}

.prototype-result-columns > section {
  min-width: 0;
}

.prototype-command-band,
.prototype-project-command,
.prototype-personal-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  gap: 18px;
  padding: 17px;
}

.prototype-command-band > div:first-child,
.prototype-project-command > div:first-child,
.prototype-personal-head > div:first-child {
  display: grid;
  align-content: center;
  gap: 5px;
}

.prototype-command-band p,
.prototype-project-command p,
.prototype-personal-head p {
  color: var(--text-soft);
}

.prototype-command-band > dl,
.prototype-personal-head > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
}

.prototype-command-band > dl > div,
.prototype-command-band > dl > button,
.prototype-personal-head > dl > div {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 9px 11px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.prototype-command-band > dl > button {
  cursor: pointer;
}

.prototype-command-band > dl > button:hover {
  background: var(--surface-muted);
}

.prototype-command-band > dl > :last-child,
.prototype-personal-head > dl > :last-child {
  border-right: 0;
}

.prototype-command-band dt,
.prototype-personal-head dt {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.prototype-command-band dd,
.prototype-personal-head dd {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
}

.prototype-command-band small,
.prototype-personal-head small {
  color: var(--text-faint);
  font-size: 0.74rem;
}

.prototype-stage-bars {
  display: grid;
  gap: 2px;
}

.prototype-stage-bars button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 8px;
  overflow: hidden;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.prototype-stage-bars button:hover {
  background: var(--surface-muted);
}

.prototype-stage-bars i {
  position: absolute;
  z-index: 0;
  inset: auto auto 0 0;
  height: 2px;
  background: var(--accent);
}

.prototype-stage-bars span,
.prototype-stage-bars strong {
  z-index: 1;
}

.prototype-project-health,
.prototype-work-package-list,
.prototype-personal-list,
.prototype-lane-tasks {
  display: grid;
}

.prototype-project-health-row,
.prototype-work-package-row,
.prototype-personal-task,
.prototype-lane-tasks > button {
  display: grid;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 6px;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.prototype-project-health-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(90px, 0.55fr) minmax(110px, 0.7fr) minmax(115px, 0.7fr) 18px;
}

.prototype-work-package-row {
  grid-template-columns: minmax(180px, 1fr) minmax(105px, 0.45fr) minmax(110px, 0.5fr) 18px;
}

.prototype-personal-task {
  grid-template-columns: auto minmax(0, 1fr) minmax(100px, auto) 18px;
}

.prototype-lane-tasks > button {
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) 18px;
}

.prototype-project-health-row:first-child,
.prototype-work-package-row:first-child,
.prototype-personal-task:first-child,
.prototype-lane-tasks > button:first-child {
  border-top: 0;
}

.prototype-project-health-row:hover,
.prototype-work-package-row:hover,
.prototype-personal-task:hover,
.prototype-lane-tasks > button:hover {
  background: var(--surface-muted);
}

.prototype-project-health-row > span,
.prototype-work-package-row > span,
.prototype-personal-task > span,
.prototype-lane-tasks > button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.prototype-project-health-row small,
.prototype-work-package-row small,
.prototype-personal-task small,
.prototype-lane-tasks small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.prototype-source-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.prototype-program-command {
  grid-template-columns: minmax(250px, 1fr) minmax(0, 1.45fr);
}

.prototype-program-head,
.prototype-program-row > button {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(94px, 0.65fr)) minmax(190px, 1.1fr) 18px;
  align-items: center;
  gap: 10px;
}

.prototype-program-head {
  padding: 7px 9px;
  color: var(--text-soft);
  font-size: 0.78rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.prototype-program-row > button {
  width: 100%;
  min-height: 76px;
  padding: 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.prototype-program-row > button:hover {
  background: var(--surface-muted);
}

.prototype-program-row > button > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.prototype-program-row > button small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.prototype-status-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.prototype-status-foot strong {
  color: var(--text);
}

.prototype-project-command {
  grid-template-columns: minmax(230px, 1fr) minmax(180px, 0.6fr) minmax(320px, 1.2fr);
  align-items: stretch;
}

.prototype-derived-progress {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 14px;
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
}

.prototype-derived-progress > strong {
  font-size: 1.6rem;
}

.prototype-derived-progress small {
  color: var(--text-soft);
}

.prototype-project-command > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
}

.prototype-project-command > dl > div {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
}

.prototype-project-command > dl > div:last-child {
  border-right: 0;
}

.prototype-project-command dt {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.prototype-project-command dd {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
}

.prototype-condition-list {
  display: grid;
  gap: 7px;
}

.prototype-condition-list > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.prototype-condition-list > div > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--surface);
  background: var(--line-strong);
}

.prototype-condition-list > div.is-done > span {
  background: var(--green);
}

.prototype-condition-list > div.is-done strong {
  color: var(--text-soft);
  text-decoration: line-through;
}

.prototype-release-gate {
  border-left: 3px solid var(--amber);
}

.prototype-release-gate p {
  margin-bottom: 12px;
  color: var(--text-soft);
}

.prototype-release-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--amber-soft);
  border: 1px solid #e5c875;
}

.prototype-release-banner > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prototype-release-banner > div > span {
  display: grid;
  gap: 2px;
}

.prototype-release-banner small {
  color: #6d500f;
}

.prototype-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prototype-lane {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.prototype-lane > header,
.prototype-lane > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
}

.prototype-lane > header {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.prototype-lane > header > div {
  display: grid;
  gap: 2px;
}

.prototype-lane > header > div:last-child {
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  text-align: right;
}

.prototype-lane > header > div:last-child small {
  grid-column: 2;
  color: var(--text-soft);
}

.prototype-lane-tasks {
  padding: 0 9px;
}

.prototype-lane > footer {
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.prototype-personal-grid {
  align-items: start;
  margin-top: 0;
}

.prototype-personal-side {
  display: grid;
  gap: 14px;
}

.prototype-detail-body {
  min-width: 0;
}

.prototype-detail-stack {
  display: grid;
  gap: 16px;
}

.prototype-detail-stack > section {
  min-width: 0;
}

.prototype-detail-stack > section > h3 {
  margin-bottom: 8px;
}

.prototype-detail-stack > section > p {
  color: var(--text-soft);
}

.prototype-detail-dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.prototype-detail-dimensions > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 82px;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prototype-detail-dimensions small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.prototype-detail-list {
  display: grid;
}

.prototype-detail-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
}

.prototype-detail-list > div:first-child {
  border-top: 0;
}

.prototype-detail-list > div > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.prototype-detail-list small {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.prototype-ref-list {
  display: grid;
  gap: 6px;
}

.prototype-ref-list code {
  display: block;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--text-soft);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.prototype-release-detail {
  display: grid;
  gap: 7px;
}

.prototype-release-detail > p {
  margin-bottom: 5px;
}

.prototype-release-detail > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .product-prototype-tabs {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .product-prototype-tabs button:nth-child(3) {
    border-right: 0;
  }

  .product-prototype-tabs button:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .prototype-command-band,
  .prototype-program-command,
  .prototype-project-command,
  .prototype-personal-head {
    grid-template-columns: 1fr;
  }

  .prototype-program-head,
  .prototype-program-row > button {
    grid-template-columns: minmax(200px, 1.2fr) repeat(4, minmax(88px, 0.65fr)) 18px;
  }

  .prototype-program-head > span:nth-child(6),
  .prototype-program-row > button > span:nth-child(6) {
    display: none;
  }

  .business-lifecycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-lifecycle button {
    border-bottom: 1px solid var(--line);
  }

  .business-lifecycle button:nth-child(3n) {
    border-right: 0;
  }

  .business-lifecycle button:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .engineering-connection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engineering-connection .button {
    justify-self: start;
  }

  .progress-command,
  .program-command-grid {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .progress-kpis {
    grid-column: 1 / -1;
  }

  .stream-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-grid,
  .notification-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-grid > div:nth-child(2),
  .notification-rules > div:nth-child(2) {
    border-right: 0;
  }

  .status-grid > div:nth-child(-n + 2),
  .notification-rules > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .condition-list {
    grid-template-columns: 1fr;
  }

  .quote-import-layout {
    grid-template-columns: 1fr;
  }

  .quote-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-equipment-context {
    grid-template-columns: 1fr;
  }

  .quote-reconciliation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-reconciliation-summary > div:nth-child(2) {
    border-right: 0;
  }

  .quote-reconciliation-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quote-equipment-context > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quote-equipment-context > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .product-prototype-tabs {
    position: static;
  }

  .prototype-result-columns,
  .prototype-two-column,
  .prototype-lane-grid {
    grid-template-columns: 1fr;
  }

  .prototype-prefill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-program-head {
    display: none;
  }

  .prototype-program-row > button {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(92px, auto)) 18px;
  }

  .prototype-program-row > button > span:nth-child(4),
  .prototype-program-row > button > span:nth-child(5),
  .prototype-program-row > button > span:nth-child(6) {
    display: none;
  }

  .prototype-project-health-row {
    grid-template-columns: minmax(180px, 1fr) minmax(90px, auto) minmax(110px, auto) 18px;
  }

  .prototype-project-health-row > span:nth-child(4) {
    display: none;
  }

  .prototype-detail-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 82vw);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  .sidebar-open {
    transform: translateX(0);
  }

  .nav-scrim {
    display: block;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topbar {
    padding: 0 12px;
  }

  .breadcrumb span,
  .breadcrumb .icon {
    display: none;
  }

  .main-content {
    padding: 18px 14px 40px;
  }

  .business-overview-grid {
    grid-template-columns: 1fr;
  }

  .business-object-row {
    grid-template-columns: minmax(170px, 1.3fr) minmax(120px, 0.8fr) 18px;
  }

  .business-object-row > span:nth-child(3) {
    display: none;
  }

  .business-stream-row {
    grid-template-columns: 32px minmax(180px, 1fr) 54px 18px;
  }

  .business-stream-row > span:nth-child(4) {
    display: none;
  }

  .workstream-project-row {
    grid-template-columns: minmax(180px, 1fr) 74px 18px;
  }

  .workstream-project-row > span:nth-child(2) {
    display: none;
  }

  .workstream-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workstream-summary div:nth-child(3) {
    border-right: 0;
  }

  .workstream-summary div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .work-grid,
  .report-grid,
  .program-lower-grid {
    grid-template-columns: 1fr;
  }

  .work-section-wide {
    grid-column: auto;
  }

  .project-task-row {
    grid-template-columns: 100px minmax(0, 1fr) 118px 18px;
  }

  .project-task-code {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .project-task-main {
    grid-column: 2;
    grid-row: 1;
  }

  .project-task-owner {
    grid-column: 3;
    grid-row: 1;
  }

  .project-task-due {
    grid-column: 2;
    grid-row: 2;
  }

  .project-task-status {
    grid-column: 3;
    grid-row: 2;
    justify-content: flex-start;
  }

  .project-task-row > .icon:last-child {
    grid-column: 4;
    grid-row: 1 / span 2;
  }

  .milestone-focus {
    grid-template-columns: 1fr;
  }

  .milestone-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .condition-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-grid > div,
  .snapshot-grid > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .snapshot-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .snapshot-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-document-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-document-upload-button {
    width: 100%;
  }

  .quote-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-process > div:nth-child(2) {
    border-right: 0;
  }

  .quote-process > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quote-boundary {
    grid-template-columns: 1fr;
  }

  .quote-boundary > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quote-cost-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-cost-summary > div:nth-child(3) {
    border-right: 0;
  }

  .quote-cost-summary > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .auth-shell {
    place-items: start center;
    padding: 12px;
  }

  .auth-panel {
    width: 100%;
  }

  .auth-header,
  .auth-form,
  .auth-entry,
  .auth-panel > .form-error,
  .auth-panel > .form-intro,
  .auth-panel > .boundary-note,
  .auth-panel > .button,
  .auth-panel > .empty-state {
    margin-left: 14px;
    margin-right: 14px;
  }

  .product-prototype-boundary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .product-prototype-boundary > .tag {
    margin-left: 27px;
  }

  .product-prototype-tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .product-prototype-tabs button {
    flex: 0 0 154px;
    min-height: 42px;
    border-right: 1px solid var(--line);
    border-bottom: 0 !important;
  }

  .prototype-fast-entry,
  .prototype-quick-result,
  .prototype-panel {
    padding: 12px;
  }

  .prototype-dropzone {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
  }

  .prototype-dropzone input {
    margin-left: 0;
    width: 100%;
  }

  .prototype-minimal-fields,
  .prototype-prefill-grid,
  .prototype-gate-strip,
  .prototype-detail-dimensions {
    grid-template-columns: 1fr;
  }

  .prototype-gate-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prototype-gate-strip > div:last-child {
    border-bottom: 0;
  }

  .prototype-fast-entry form > footer,
  .prototype-release-banner,
  .prototype-lane > header,
  .prototype-lane > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .prototype-fast-entry form > footer .button,
  .prototype-release-banner .button {
    width: 100%;
    justify-content: center;
  }

  .prototype-command-band,
  .prototype-project-command,
  .prototype-personal-head {
    padding: 13px;
  }

  .prototype-command-band > dl,
  .prototype-personal-head > dl,
  .prototype-project-command > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-command-band > dl > :nth-child(2),
  .prototype-personal-head > dl > :nth-child(2),
  .prototype-project-command > dl > :nth-child(2) {
    border-right: 0;
  }

  .prototype-command-band > dl > :nth-child(-n + 2),
  .prototype-personal-head > dl > :nth-child(-n + 2),
  .prototype-project-command > dl > :nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .prototype-program-row > button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .prototype-program-row > button > span:first-child {
    grid-column: 1 / -1;
  }

  .prototype-program-row > button > span:nth-child(2),
  .prototype-program-row > button > span:nth-child(3) {
    display: grid;
  }

  .prototype-program-row > button > .icon {
    grid-column: 2;
    grid-row: 2;
  }

  .prototype-project-health-row,
  .prototype-work-package-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .prototype-project-health-row > span:nth-child(3),
  .prototype-work-package-row > span:nth-child(3) {
    display: none;
  }

  .prototype-personal-task,
  .prototype-lane-tasks > button {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .prototype-personal-task > span:first-child,
  .prototype-personal-task > span:nth-child(3),
  .prototype-lane-tasks > button > span:nth-child(2) {
    grid-column: 1;
  }

  .prototype-personal-task > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .prototype-personal-task > .icon,
  .prototype-lane-tasks > button > .icon {
    grid-column: 2;
    grid-row: 1;
  }

  .prototype-detail-list > div {
    grid-template-columns: 1fr auto;
  }

  .prototype-detail-list > div > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .prototype-release-detail > div {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .prototype-release-detail > div > .tag {
    grid-column: 2;
    justify-self: start;
  }

  .topbar {
    height: 54px;
    flex-basis: 54px;
    gap: 8px;
  }

  .topbar-left,
  .topbar-right {
    gap: 6px;
  }

  .breadcrumb {
    max-width: 92px;
    overflow: hidden;
  }

  .breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .environment-pill {
    display: none;
  }

  .account-button {
    width: 42px;
    justify-content: center;
    padding: 3px;
  }

  .account-button > span:nth-child(2),
  .account-button > .icon {
    display: none;
  }

  .account-menu {
    top: 49px;
    right: 8px;
  }

  .main-content {
    padding: 15px 10px 34px;
  }

  .topbar-notification {
    display: none;
  }

  .business-lifecycle {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .business-lifecycle button,
  .business-lifecycle button:nth-child(3n),
  .business-lifecycle button:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .business-lifecycle button:last-child {
    border-right: 0;
  }

  .business-panel {
    padding: 13px 11px;
  }

  .business-object-row {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .business-object-row > span:nth-child(2),
  .business-object-row > span:nth-child(3) {
    display: none;
  }

  .business-stream-row {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .business-stream-row > span:nth-child(3),
  .business-stream-row > span:nth-child(4) {
    display: none;
  }

  .engineering-connection {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .workstream-stage-strip {
    grid-auto-columns: 132px;
  }

  .workstream-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workstream-summary div,
  .workstream-summary div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .workstream-summary div:nth-child(2n) {
    border-right: 0;
  }

  .workstream-summary div:last-child {
    border-bottom: 0;
  }

  .workstream-integration {
    align-items: flex-start;
    flex-direction: column;
  }

  .workstream-project-row {
    grid-template-columns: minmax(0, 1fr) 54px 18px;
    gap: 8px;
  }

  .master-data-rule {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .page-header {
    min-height: 0;
    flex-direction: column;
    gap: 10px;
  }

  .page-header h1 {
    font-size: 1.32rem;
  }

  .page-actions,
  .page-actions .button {
    width: 100%;
  }

  .quote-process {
    grid-template-columns: 1fr;
  }

  .quote-process > div,
  .quote-process > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quote-process > div:last-child {
    border-bottom: 0;
  }

  .quote-version-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 9px 10px;
  }

  .quote-section {
    padding: 14px 10px;
  }

  .quote-section.table-section-flush > .section-heading {
    padding-inline: 10px;
  }

  .quote-upload-box,
  .quote-existing-import {
    grid-template-columns: 1fr;
  }

  .quote-upload-box .button,
  .quote-existing-import .button {
    width: 100%;
  }

  .quote-parameter-grid {
    grid-template-columns: 1fr;
  }

  .quote-equipment-node > header {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 7px 10px;
    padding: 8px 10px;
  }

  .quote-equipment-node > header > div {
    grid-row: 2;
  }

  .quote-equipment-node > header > div:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  .quote-equipment-node > header > .icon-button {
    grid-column: 2;
    grid-row: 1;
  }

  .quote-equipment-node-body {
    padding: 12px 10px 14px;
  }

  .quote-reconciliation-summary,
  .quote-reconciliation-empty {
    margin-inline: 10px;
  }

  .quote-source-compare {
    grid-template-columns: 1fr;
  }

  .quote-source-compare > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quote-equipment-context {
    margin-bottom: 10px;
  }

  .quote-all-bom > summary {
    align-items: flex-start;
    padding: 12px 10px;
  }

  .quote-cost-summary {
    grid-template-columns: 1fr;
  }

  .quote-cost-summary > div,
  .quote-cost-summary > div:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quote-cost-summary > div:last-child {
    border-bottom: 0;
  }

  .quote-approval-band {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 10px;
  }

  .quote-approval-band .heading-actions,
  .quote-approval-band .button {
    width: 100%;
  }

  .work-section,
  .activity-band,
  .quick-band,
  .sensitive-band,
  .project-progress-board,
  .equipment-section,
  .project-task-map,
  .snapshot-band,
  .draft-section,
  .notice-section,
  .program-command,
  .program-projects,
  .presales-flow {
    padding: 13px 12px;
  }

  .presales-stage-track {
    grid-auto-columns: 126px;
  }

  .presales-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presales-kpis > div:nth-child(2) {
    border-right: 0;
  }

  .presales-kpis > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .conversion-inheritance {
    grid-template-columns: 1fr;
  }

  .equipment-summary p {
    flex-basis: 100%;
    text-align: left;
  }

  .task-map-summary p {
    flex-basis: 100%;
    text-align: left;
  }

  .event-row {
    grid-template-columns: auto minmax(0, 1fr) 16px;
    gap: 8px;
  }

  .event-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .event-row > .icon:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .project-task-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 4px;
  }

  .project-task-code {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .project-task-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-task-owner {
    grid-column: 1;
    grid-row: 3;
  }

  .project-task-due {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }

  .project-task-status {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .project-task-row > .icon:last-child {
    display: none;
  }

  .status-grid,
  .notification-rules,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .status-grid > div,
  .status-grid > div:nth-child(2),
  .snapshot-grid > div,
  .snapshot-grid > div:nth-child(2n),
  .snapshot-grid > div:nth-child(3n),
  .notification-rules > div,
  .notification-rules > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-grid > div:last-child,
  .snapshot-grid > div:last-child,
  .notification-rules > div:last-child {
    border-bottom: 0;
  }

  .milestone-summary h2 {
    font-size: 1.08rem;
  }

  .condition-list,
  .quick-actions,
  .report-template-grid,
  .gap-list {
    grid-template-columns: 1fr;
  }

  .progress-command,
  .stream-board,
  .program-command-grid,
  .program-project-grid {
    grid-template-columns: 1fr;
  }

  .progress-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-command .progress-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-kpis > div:nth-child(2) {
    border-right: 0;
  }

  .progress-kpis > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .portfolio-strip {
    height: 14px;
  }

  .stream-foot {
    flex-direction: column;
  }

  .program-project-note {
    grid-template-columns: 1fr;
  }

  .program-project-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .program-project-card > footer .button,
  .program-project-card > footer .text-button {
    width: 100%;
    justify-content: center;
  }

  .program-unassigned > span {
    grid-template-columns: 1fr;
  }

  .plain-row,
  .snapshot-blockers > div:not(.empty-state) {
    align-items: flex-start;
    flex-direction: column;
  }

  .snapshot-blockers > div > span:last-child {
    white-space: normal;
  }

  .member-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .member-permissions {
    grid-column: 2;
  }

  .boundary-banner,
  .simulation-banner {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .boundary-banner > .tag,
  .simulation-banner > span:last-child {
    grid-column: 2;
    justify-self: start;
  }

  .filter-bar label {
    width: calc(50% - 5px);
  }

  .filter-result {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .modal,
  .modal-wide {
    width: 100%;
    max-height: 94vh;
    border-radius: 6px 6px 0 0;
  }

  .modal-body {
    padding: 12px;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-footer > div,
  .modal-footer .button {
    width: 100%;
  }

  .form-grid,
  .check-grid,
  .blocker-fields > div {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .field-compact {
    width: 100%;
  }

  .customer-lookup-row {
    grid-template-columns: 1fr;
  }

  .customer-add-button,
  .customer-inline-actions .button {
    width: 100%;
  }

  .customer-inline-actions {
    flex-direction: column-reverse;
  }

  .drawer {
    left: 0;
    right: auto;
    width: 100%;
  }

  .drawer-summary,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .drawer-summary > div {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drawer-summary > div:last-child {
    border-bottom: 0;
  }

  .drawer-footer {
    align-items: stretch;
  }

  .drawer-footer .button {
    flex: 1 1 130px;
  }

  .opportunity-document-upload {
    grid-template-columns: 1fr;
  }

  .opportunity-document-list > div,
  .opportunity-document-pending {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-master-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-search {
    width: 100%;
  }

  .customer-master-head {
    display: none;
  }

  .customer-master-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-master-row > span:nth-child(2),
  .customer-master-row > span:nth-child(3),
  .customer-master-actions {
    grid-column: 1 / -1;
  }

  .customer-master-actions {
    justify-content: flex-start;
  }

  .context-row,
  .artifact-compact-list button {
    grid-template-columns: 1fr auto;
  }

  .context-row > span:nth-child(2),
  .artifact-compact-list button > span:first-child {
    grid-column: 1 / -1;
  }

  .opportunity-context-head,
  .artifact-ledger > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .opportunity-context-head > div,
  .opportunity-transitions,
  .opportunity-transitions .button {
    width: 100%;
  }

  .opportunity-missing-facts {
    padding: 14px 12px;
  }

  .opportunity-missing-fact-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .opportunity-missing-fact-row > span:last-child {
    align-items: flex-start;
  }

  .parse-boundary {
    grid-template-columns: 1fr;
  }

  .hat-switcher {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}

.execution-chain-strip {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.execution-chain-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.execution-chain-title > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.execution-chain-title strong {
  font-size: 0.82rem;
}

.execution-chain-title small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.execution-chain-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 1fr);
  overflow-x: auto;
  scrollbar-width: thin;
}

.execution-chain-steps > span {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--text-soft);
  border-right: 1px solid var(--line);
}

.execution-chain-steps > span:last-child {
  border-right: 0;
}

.execution-chain-steps i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-style: normal;
}

.execution-chain-steps strong {
  font-size: 0.72rem;
  line-height: 1.35;
}

.execution-chain-steps .is-complete {
  color: var(--accent-strong);
  background: var(--green-soft);
}

.execution-chain-steps .is-complete i {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.execution-chain-steps .is-current {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.execution-chain-steps .is-current i {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.execution-chain-endpoint {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 12px;
  color: var(--text-soft);
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.45;
}

.execution-chain-endpoint svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.execution-panel {
  min-width: 0;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.execution-panel > .section-heading {
  padding: 13px 14px 10px;
}

.execution-panel h2 {
  font-size: 0.98rem;
}

.execution-rule {
  margin: 0;
  padding: 9px 14px;
  color: var(--text-soft);
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.55;
}

.execution-subsection {
  border-top: 1px solid var(--line);
}

.execution-subheading {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface-muted);
}

.execution-subheading strong {
  font-size: 0.79rem;
}

.execution-subheading span {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.68rem;
}

.execution-table {
  min-width: 820px;
}

.execution-table th,
.execution-table td {
  padding: 9px 10px;
  font-size: 0.75rem;
}

.execution-table td > strong,
.execution-table td > span:not(.tag) {
  display: block;
}

.execution-table td small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.execution-source-ref {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.execution-row-actions,
.execution-panel .heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quantity-positive {
  color: var(--green);
}

.quantity-negative {
  color: var(--blue);
}

.execution-form-blocker {
  margin: 0 0 8px;
  padding: 9px 11px;
  color: var(--red);
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  font-size: 0.74rem;
}

.execution-inherited-note {
  margin: 0;
  padding: 9px 11px;
  color: var(--text-soft);
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  font-size: 0.72rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .execution-chain-title {
    align-items: flex-start;
  }

  .execution-chain-steps {
    grid-auto-columns: minmax(112px, 1fr);
  }

  .execution-chain-steps > span {
    min-height: 52px;
    padding: 7px 8px;
  }

  .execution-panel > .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .execution-panel .heading-actions,
  .execution-panel .heading-actions .button,
  .execution-row-actions .button {
    width: 100%;
  }

  .execution-row-actions {
    min-width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
