:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --soft: #f8faf9;
  --soft-2: #f5f7f6;
  --line: #e0e6e3;
  --line-strong: #d3dcd7;
  --ink: #151923;
  --muted: #65717b;
  --muted-2: #8a949d;
  --green: #006b43;
  --green-dark: #00482e;
  --green-soft: #d9f1e2;
  --red: #c92b26;
  --red-soft: #fde7e5;
  --orange: #e07a26;
  --orange-soft: #fff0df;
  --yellow: #c79418;
  --yellow-soft: #fff5cf;
  --blue: #2c74bd;
  --blue-soft: #e9f3ff;
  --shadow: 0 10px 28px rgba(18, 30, 26, 0.06);
  --radius: 8px;
  --radius-sm: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body.wre-dashboard {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 270px minmax(420px, 1fr) 320px;
  align-items: center;
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0 20px;
  color: var(--green-dark);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 242px;
  height: 50px;
  flex: 0 0 auto;
  overflow: visible;
  stroke: none;
}

.brand-logo .mark-dark {
  fill: var(--green-dark);
}

.brand-logo .mark-light {
  fill: #5f9b75;
}

.brand-logo .mark-cut {
  fill: #ffffff;
}

.brand-logo-text {
  fill: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 74px);
  min-width: 0;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e2530;
  font-size: 16px;
  font-weight: 560;
}

.nav-button svg {
  width: 22px;
  height: 22px;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.is-active {
  color: var(--green);
  outline: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  padding: 0 20px;
}

#importInput {
  display: none;
}

.export-button,
.primary-button,
.apply-button,
.ghost-button,
.utility-button,
.icon-control,
.chevron-button,
.avatar-button,
.plain-control,
.text-action,
.view-all-button,
.view-all-conflicts {
  border-radius: var(--radius);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.export-button,
.primary-button,
.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--green);
  background: linear-gradient(180deg, #00744a, #00663f);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 95, 59, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.export-button {
  min-width: 138px;
  height: 42px;
  font-size: 14px;
}

.export-button svg,
.primary-button svg,
.apply-button svg {
  width: 21px;
  height: 21px;
}

.export-button:hover,
.export-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.apply-button:hover,
.apply-button:focus-visible {
  background: linear-gradient(180deg, #006a40, #005734);
  outline: 0;
  transform: translateY(-1px);
}

.avatar-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #3d4651;
  font-size: 14px;
  font-weight: 650;
}

.chevron-button {
  display: grid;
  width: 24px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #4b5563;
}

.chevron-button svg {
  width: 16px;
  height: 16px;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(560px, 1fr) 300px 310px;
  grid-template-rows: minmax(0, 1fr) 156px;
  height: calc(100vh - 74px);
  min-height: 660px;
  background: #ffffff;
}

.workflow-panel,
.workspace-panel,
.conflict-panel,
.detail-panel,
.pipeline-panel {
  min-width: 0;
  min-height: 0;
  border-color: var(--line);
}

.workflow-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  padding: 24px 15px 16px;
}

.panel-block h2,
.session-card h2,
.queue-head h2,
.pipeline-title h2 {
  margin: 0;
  color: #65717b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stage-list {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.stage-list::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 29px;
  width: 1px;
  background: var(--line);
}

.stage-button {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr 22px;
  gap: 8px;
  width: 100%;
  min-height: 90px;
  padding: 14px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.stage-button:not(.is-active) {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.stage-button.is-active {
  background: linear-gradient(145deg, #003b27, #00633e);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 74, 47, 0.14);
}

.stage-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #fbfcfb;
  color: #1f2937;
}

.stage-button.is-active .stage-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.stage-icon svg {
  width: 23px;
  height: 23px;
}

.stage-copy {
  align-self: center;
  min-width: 0;
}

.stage-copy strong {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.stage-number {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stage-button.is-active .stage-number {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #d8f2e4;
}

.stage-copy span:last-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stage-button.is-active .stage-copy span:last-child {
  color: #d8ece2;
}

.stage-chevron {
  align-self: center;
  width: 20px;
  height: 20px;
  color: currentColor;
  opacity: 0;
}

.stage-button.is-active .stage-chevron {
  opacity: 1;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.session-card {
  margin-top: 10px;
  padding: 22px 14px 14px;
}

.session-card dl {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.session-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.session-card dt {
  color: #52606a;
  font-size: 12px;
}

.session-card dd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

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

.ghost-button,
.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #202936;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  white-space: nowrap;
}

.ghost-button svg,
.utility-button svg {
  width: 16px;
  height: 16px;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.utility-button:hover,
.utility-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: 0;
}

.full-width {
  width: 100%;
}

.workspace-panel {
  grid-column: 2;
  grid-row: 1;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 36px 20px 22px;
}

.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-heading h1 {
  margin: 0 0 8px;
  color: #171c27;
  font-size: clamp(25px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.12;
}

.workspace-heading p {
  margin: 0;
  color: #63707a;
  font-size: 12px;
}

.workspace-heading .utility-button {
  min-width: 118px;
}

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

.family-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
  padding: 16px 12px 14px;
}

.family-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.family-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.family-head h2 svg {
  width: 21px;
  height: 21px;
  color: var(--green);
}

.family-head p {
  margin: 0;
  color: #66717a;
  font-size: 11px;
  line-height: 1.45;
}

.text-action,
.view-all-button,
.view-all-conflicts {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.text-action:hover,
.text-action:focus-visible,
.view-all-button:hover,
.view-all-button:focus-visible,
.view-all-conflicts:hover,
.view-all-conflicts:focus-visible {
  color: var(--green-dark);
  outline: 0;
}

.belief-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.belief-item {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fbfcfb;
  padding: 10px 8px;
}

.belief-item:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.belief-item:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.belief-id,
.link-id {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.belief-item p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #28313c;
  font-size: 10px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.row-menu {
  display: grid;
  width: 18px;
  height: 24px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #7b858e;
}

.row-menu svg {
  width: 16px;
  height: 16px;
}

.view-all-button {
  margin-top: 13px;
  padding: 0;
}

.compose-card {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
  overflow: hidden;
}

.compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 14px 10px;
}

.compose-head h2 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.compose-head p {
  margin: 0;
  color: #63707a;
  font-size: 12px;
}

.compose-tools {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.utility-button.compact {
  min-height: 32px;
  padding: 0 10px;
}

.utility-button .caret,
.plain-control .caret {
  width: 13px;
  height: 13px;
}

.belief-form {
  display: grid;
}

.composer-label {
  display: block;
  padding: 0 14px;
}

.composer-label textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #18212c;
  padding: 18px 12px;
  font-size: 12px;
  line-height: 1.5;
  outline: 0;
}

.composer-label textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 111, 67, 0.1);
}

.composer-label textarea::placeholder {
  color: #8a949d;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 14px 14px;
}

.plain-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #26303b;
  font-size: 12px;
  font-weight: 720;
}

.plain-control svg,
.icon-control svg {
  width: 16px;
  height: 16px;
}

.composer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-meta span {
  color: #6c7780;
  font-size: 12px;
}

.icon-control {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #46515d;
}

.icon-control:hover,
.icon-control:focus-visible,
.plain-control:hover,
.plain-control:focus-visible {
  color: var(--green);
  outline: 0;
}

.primary-button {
  min-width: 84px;
  min-height: 38px;
  padding: 0 14px;
}

.tip-text {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  color: #75808a;
  font-size: 11px;
}

.conflict-panel {
  grid-column: 3;
  grid-row: 1;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 19px 13px 18px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.queue-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.queue-tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: #27303a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.queue-tab span {
  margin-left: 3px;
  color: currentColor;
}

.queue-tab.is-active {
  color: var(--green);
}

.queue-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
}

.conflict-list {
  display: grid;
  gap: 10px;
}

.conflict-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.015);
  padding: 14px 11px 12px;
  text-align: left;
}

.conflict-card.is-active {
  border-color: #e2b0ac;
  box-shadow: 0 12px 30px rgba(28, 37, 44, 0.05);
}

.conflict-card.is-active::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--red);
}

.conflict-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.conflict-card-id {
  color: #374151;
  font-size: 10px;
  font-weight: 760;
}

.conflict-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #222b36;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
}

.conflict-card p {
  margin: 12px 0 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.35;
}

.conflict-card time {
  display: block;
  margin-top: 8px;
  color: #374151;
  font-size: 12px;
}

.severity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.severity-pill.critical {
  background: var(--red-soft);
  color: var(--red);
}

.severity-pill.high {
  background: var(--orange-soft);
  color: var(--orange);
}

.severity-pill.medium {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.severity-pill.low {
  background: var(--blue-soft);
  color: var(--blue);
}

.conflict-card-chevron {
  position: absolute;
  right: 11px;
  bottom: 23px;
  width: 18px;
  height: 18px;
  color: #4b5563;
}

.view-all-conflicts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 0 4px;
}

.view-all-conflicts svg {
  width: 14px;
  height: 14px;
}

.detail-panel {
  grid-column: 4;
  grid-row: 1 / span 2;
  overflow: auto;
  background: #ffffff;
  padding: 24px 18px 20px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.detail-id {
  display: inline;
  margin: 0 10px 0 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.detail-head h2 {
  display: inline;
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
}

.close-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: #475569;
}

.close-button svg {
  width: 22px;
  height: 22px;
}

.detail-section {
  margin-top: 20px;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
}

.detail-section h3 svg {
  width: 14px;
  height: 14px;
}

.detail-claims {
  display: grid;
  gap: 6px;
}

.claim-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 10px 8px;
}

.claim-box h4 {
  margin: 0 0 8px;
  color: #27303a;
  font-size: 12px;
  font-weight: 760;
}

.claim-box-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
}

.claim-box p,
.detail-links p,
.why-section p {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.42;
}

.detail-links {
  display: grid;
  gap: 10px;
}

.linked-item strong {
  display: block;
  margin-bottom: 7px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 760;
}

.link-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.repair-options {
  display: grid;
  gap: 8px;
}

.repair-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 9px 9px 9px 10px;
  text-align: left;
}

.repair-card.is-selected {
  border-color: var(--red);
  background: linear-gradient(180deg, #fff8f7, #ffffff);
}

.repair-card.high {
  border-color: #f3c68d;
  background: linear-gradient(180deg, #fff8ef, #ffffff);
}

.repair-card.medium {
  border-color: #b5d8ff;
  background: linear-gradient(180deg, #f4f9ff, #ffffff);
}

.repair-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: start;
}

.repair-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--red);
}

.repair-icon svg {
  width: 18px;
  height: 18px;
}

.repair-card h4 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 11px;
  font-weight: 760;
}

.repair-card p {
  margin: 0 0 8px;
  color: #26313d;
  font-size: 11px;
  line-height: 1.35;
}

.repair-card small {
  display: block;
  color: #26313d;
  font-size: 11px;
}

.cost-pill {
  align-self: end;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 760;
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.apply-button {
  min-height: 40px;
  font-size: 14px;
}

.pipeline-panel {
  grid-column: 1 / 4;
  grid-row: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 17px 16px;
}

.pipeline-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.pipeline-title svg {
  width: 14px;
  height: 14px;
  color: #87929a;
}

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

.pipeline-step {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.015);
  padding: 13px 8px 10px;
  text-align: center;
}

.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 14px;
  height: 1px;
  background: #9aa4ad;
}

.pipeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -16px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #9aa4ad;
  border-right: 1px solid #9aa4ad;
  transform: rotate(45deg);
}

.pipeline-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #202936;
}

.pipeline-icon svg {
  width: 24px;
  height: 24px;
}

.pipeline-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
}

.pipeline-check svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.pipeline-step strong {
  margin-top: 4px;
  color: #111827;
  font-size: 11px;
  font-weight: 760;
}

.pipeline-step span {
  color: #50606b;
  font-size: 10px;
}

.pipeline-step em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-top: 6px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

@media (max-width: 1280px) {
  body.wre-dashboard {
    overflow: auto;
  }

  .topbar {
    grid-template-columns: 270px minmax(360px, 1fr) 300px;
  }

  .top-nav {
    gap: 24px;
  }

  .app-shell {
    grid-template-columns: 250px minmax(520px, 1fr) 300px;
    grid-template-rows: auto auto 150px;
    height: auto;
    min-height: calc(100vh - 74px);
  }

  .detail-panel {
    grid-column: 1 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr) minmax(320px, 1.2fr);
    gap: 16px;
    border-top: 1px solid var(--line);
  }

  .detail-head,
  .detail-section,
  .detail-actions {
    margin-top: 0;
  }

  .pipeline-panel {
    grid-column: 1 / 4;
    grid-row: 3;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 68px;
    padding: 12px 14px;
    row-gap: 10px;
  }

  .brand {
    padding: 0;
  }

  .top-nav {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: space-between;
    gap: 10px;
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .nav-button span {
    display: inline;
  }

  .top-actions {
    padding: 0;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 0;
  }

  .workflow-panel,
  .workspace-panel,
  .conflict-panel,
  .detail-panel,
  .pipeline-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-panel {
    padding: 18px 14px;
  }

  .stage-list {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
    gap: 10px;
    overflow-x: auto;
  }

  .stage-list::before {
    display: none;
  }

  .stage-button {
    grid-template-columns: 34px 1fr;
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .stage-chevron {
    display: none;
  }

  .session-card {
    max-width: 420px;
  }

  .workspace-panel {
    padding: 22px 14px;
  }

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

  .conflict-panel,
  .detail-panel {
    padding: 18px 14px;
  }

  .detail-panel {
    display: block;
  }

  .pipeline-list {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .pipeline-step::before,
  .pipeline-step::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 185px;
    height: 40px;
  }

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

  .top-actions {
    justify-content: space-between;
    width: 100%;
  }

  .top-nav {
    grid-column: 1;
  }

  .nav-button {
    gap: 6px;
    font-size: 12px;
  }

  .nav-button svg {
    width: 18px;
    height: 18px;
  }

  .workspace-heading,
  .compose-head,
  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .compose-tools,
  .composer-meta {
    flex-wrap: wrap;
  }

  .pipeline-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
