/* Warden workspace. One stage,
one dock,
one drawer. Everything else is a quiet page. */
:root {
  color-scheme: dark;
  --bg: #0c0e10;
  --stage: #14171a;
  --raised: #1c2024;
  --raised-2: #252a2f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f1f4f5;
  --body: #d3d9de;
  --muted: #a8b0b8;
  --mint: #6fd0b0;
  --mint-ink: #06130f;
  --amber: #e5bc6c;
  --violet: #b9acdd;
  --blue: #96bde0;
  --red: #f0948a;
  --radius: 22px;
  --bar: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--mint);
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w-sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .w-working i {
    animation: pulse 1.2s infinite ease-in-out;
  }
  .w-working i:nth-child(2) {
    animation-delay: 0.15s;
  }
  .w-working i:nth-child(3) {
    animation-delay: 0.3s;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

/* Buttons and fields */
.button,
.x-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: background 0.15s;
}
.button:hover,
.x-button:hover {
  background: var(--raised-2);
}
.button.primary,
.x-button.primary {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--mint-ink);
}
.button.primary:hover,
.x-button.primary:hover {
  background: #86dcc0;
}
.button.primary:disabled {
  border-color: var(--line);
  background: var(--raised);
  color: var(--muted);
  opacity: 1;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
}
.button.wide {
  width: 100%;
  min-height: 46px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 0;
}
::placeholder {
  color: #8a939c;
}
.w-icon,
.w-me {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
}
.w-icon:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
.w-icon i {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--stage);
}
.w-me {
  width: 34px;
  height: 34px;
  background: var(--raised-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.w-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-weight: 600;
}
.w-linkbtn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* App frame and top bar */
.w-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* The room: stage,
dock,
drawer */
.w-room {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}
.w-stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage);
  overflow: hidden;
}
.w-stage-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.w-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}
.w-seg button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 600;
}
.w-seg button:hover {
  color: var(--ink);
}
.w-seg button.active {
  background: var(--raised-2);
  color: var(--ink);
}
.w-seg button i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.w-seg-small button {
  padding: 0 10px;
}
.w-stage-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w-stage-tools select {
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b0b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 16px;
  font-weight: 600;
  appearance: none;
}
.w-stage-tools option {
  background: var(--raised);
}
.w-stage-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.w-stage-body.is-app {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  overflow: hidden;
}
.w-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
  background: #f6f7f6;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.w-frame.mobile {
  max-width: 390px;
}
.w-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.w-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(111, 208, 176, 0.1);
  color: var(--body);
}
.w-notice i,
.w-working-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.w-notice.bad {
  background: rgba(240, 148, 138, 0.12);
}
.w-notice.bad i {
  background: var(--red);
}
.w-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
}
.w-send:hover {
  background: #86dcc0;
}

/* Material views */
.w-doc {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 40px 24px 220px;
}
.w-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.w-doc h1 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.w-doc section {
  margin-top: 36px;
}
.w-doc h2 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.w-doc section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.w-doc footer {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}
.w-flag {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(229, 188, 108, 0.3);
  border-radius: 16px;
  background: rgba(229, 188, 108, 0.07);
}
.w-flag > i {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.w-flag > i.ok {
  background: var(--mint);
}
.w-flag.quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.w-flag div {
  flex: 1;
}
.w-flag strong {
  display: block;
}
.w-flag p {
  margin-top: 2px;
  color: var(--muted);
}
.w-journey {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.w-journey button {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.w-journey button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--raised);
  font-weight: 600;
}
.w-journey button strong {
  font-size: 14px;
}
.w-journey button small {
  color: var(--muted);
  font-size: 15px;
}
.w-journey button .icon {
  grid-row: 1 / 3;
  grid-column: 3;
  color: var(--muted);
}
.w-journey button:hover strong {
  color: var(--mint);
}
.w-logo {
  display: grid;
  place-items: center;
  margin-top: 32px;
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101315;
}
.w-logo img {
  width: min(280px, 70%);
}
.w-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.w-swatches i {
  display: block;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.w-swatches strong,
.w-swatches span {
  display: block;
}
.w-swatches span {
  color: var(--muted);
  font-size: 14px;
}
.w-diff pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--mint);
  font:
    14px/1.7 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  white-space: pre-wrap;
}
.w-diff h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink);
}
.w-diff h2 code {
  font:
    600 15px ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
.w-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.w-quiet {
  margin-top: 28px;
  color: var(--muted);
}
.w-channels {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 22px 16px;
}
.w-channels button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 600;
}
.w-channels button:hover {
  color: var(--ink);
}
.w-channels button.active {
  border-color: rgba(111, 208, 176, 0.45);
  background: rgba(111, 208, 176, 0.14);
  color: var(--mint);
}
.w-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 22px 20px;
}
.w-thread {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.w-msg-text {
  color: var(--body);
  line-height: 1.6;
}
.w-msg-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.w-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 500;
}
.w-link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.w-link .icon {
  width: 16px;
  color: var(--muted);
}
.w-avatar,
.w-me {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--raised-2);
}
.w-avatar img {
  width: 17px;
}
.w-avatar .icon {
  width: 17px;
  height: 17px;
}
.w-avatar.small {
  width: 26px;
  height: 26px;
}
.w-avatar.small img,
.w-avatar.small .icon {
  width: 14px;
  height: 14px;
}
.w-avatar.mint {
  background: #1d3a31;
  color: var(--mint);
}
.w-avatar.violet {
  background: #2c2840;
  color: var(--violet);
}
.w-avatar.peach {
  background: #3a2c22;
  color: #e3b793;
}
.w-avatar.blue {
  background: #1f3142;
  color: var(--blue);
}

.w-working {
  display: flex;
  gap: 5px;
  padding: 6px 0;
}
.w-working i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.w-drawer-note {
  flex: none;
  padding: 10px 22px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.w-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--body);
  cursor: pointer;
}
.w-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--mint);
}
.w-working-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

/* Quiet pages: Health and its sub-pages */
.w-page {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.w-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.w-pagehead h1 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.w-pagehead p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.w-pagehead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.w-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.w-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.w-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.w-status.amber {
  color: var(--amber);
}
.w-status.violet {
  color: var(--violet);
}
.w-status.blue {
  color: var(--blue);
}
.w-status.neutral {
  color: var(--muted);
}

/* Other Health pages */
.x-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--stage);
}
.w-pagehead + .x-card,
.w-pagehead + .x-filter-tabs + .x-card {
  margin-top: 0;
}
.x-muted,
.x-card small {
  color: var(--muted);
}
.x-filter-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 20px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.x-filter-tabs .x-button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.x-filter-tabs .x-button.active {
  background: var(--raised-2);
  color: var(--ink);
}

.x-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  margin-top: 20px;
}
.x-bar-chart div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
  text-align: center;
}
.x-bar-chart span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: rgba(111, 208, 176, 0.55);
}
.x-bar-chart small {
  font-size: 13px;
}
.x-project-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
}

/* Dialogs */
dialog.dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--stage);
  color: var(--ink);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
}
dialog.dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog.dialog::backdrop {
  background: rgba(5, 7, 8, 0.66);
  backdrop-filter: blur(6px);
}
.dialog-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 6px 26px;
}
.dialog-head h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dialog-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 26px 24px;
}
.dialog-body > p,
.dialog-body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.dialog-body h3 {
  margin: 22px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
}
.dialog-body .x-preserve {
  white-space: pre-wrap;
  color: var(--body);
}
.dialog-actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 26px 22px;
}
.dialog-list button,
.x-inbox button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.dialog-list,
.x-inbox {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.dialog-list button:hover strong,
.x-inbox button:hover strong {
  color: var(--mint);
}
.dialog-list button > span,
.x-inbox button > span:not(.w-avatar):not(.x-project-logo) {
  flex: 1;
  min-width: 0;
}
.dialog-list strong,
.dialog-list small,
.x-inbox strong,
.x-inbox small {
  display: block;
}
.dialog-list small,
.x-inbox small {
  color: var(--muted);
  font-size: 14px;
}
.dialog-list .icon:last-child,
.x-inbox .icon:last-child {
  margin-left: auto;
  color: var(--muted);
}
.x-project-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--raised-2);
  font-weight: 600;
}

.w-checks {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.w-checks > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.w-checks > div > span:first-child {
  flex: 1;
}
.w-checks strong,
.w-checks small {
  display: block;
}
.w-checks small {
  color: var(--muted);
  font-size: 14px;
}
.x-setup-progress {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}
.x-setup-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.x-setup-progress span.active {
  color: var(--ink);
}
.x-setup-progress i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--raised-2);
  font-style: normal;
  font-size: 12px;
}
.x-setup-progress span.active i {
  background: var(--mint);
  color: var(--mint-ink);
}
.x-setup-choices {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.x-setup-choices button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.x-setup-choices button > span {
  flex: 1;
}
.x-setup-choices strong,
.x-setup-choices small {
  display: block;
}
.x-setup-choices small {
  color: var(--muted);
}
.x-setup-choices button.selected {
  border-color: var(--mint);
  background: rgba(111, 208, 176, 0.08);
}
.x-setup-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: var(--raised);
}
.x-setup-summary > div:not(.w-avatar) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.x-issue-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.x-issue-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.x-issue-detail-grid div {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--raised);
}
.x-issue-detail-grid small,
.x-issue-detail-grid strong {
  display: block;
}
.x-issue-detail-grid small {
  color: var(--muted);
}
/* Helpers used by shared dialog copy */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
}
.table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.coverage {
  font-size: 14px;
}
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--raised-2);
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}
.badge.green {
  color: var(--mint);
}
.badge.amber {
  color: var(--amber);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--raised-2);
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--raised-2);
  font-weight: 600;
}
.stack {
  display: grid;
  gap: 12px;
}
.wireframe-detail {
  margin: 16px 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.wireframe-blocks {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.wireframe-blocks i {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: var(--raised-2);
}
.dialog-body .wireframe-detail > div:first-child,
.dialog-body .wireframe-detail > span {
  display: block;
  height: 8px;
  width: 40%;
  border-radius: 4px;
  background: var(--raised-2);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: min(520px, 90vw);
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--raised-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 820px) {
  :root {
    --bar: 56px;
  }
  .w-room {
    padding: 0 8px 8px;
  }
  .w-stage-bar {
    padding: 10px;
  }
  .w-stage-body.is-app {
    padding: 0 10px;
  }
  .w-doc {
    padding: 28px 18px 220px;
  }
  .w-page {
    padding: 24px 18px 40px;
  }
  .w-pagehead {
    flex-direction: column;
    align-items: flex-start;
  }
  .w-swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .w-stage-tools select {
    padding-left: 10px;
  }
  .w-seg button {
    padding: 0 12px;
  }
  .w-stage-bar {
    gap: 8px;
  }
  .w-seg {
    min-width: 0;
  }
  .w-stage-tools [data-action="open-preview"] {
    display: none;
  }
}
@media (max-width: 480px) {
  .w-stage-tools .w-seg-small {
    display: none;
  }
}
.w-room {
  padding: 0;
}

.amber {
  color: var(--amber);
}
.w-seg button i {
  position: static;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--mint);
}
.w-seg[aria-label="Environment"] button {
  display: flex;
  align-items: center;
}

.w-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
}
.w-mark.watch {
  background: rgba(229, 188, 108, 0.18);
  color: var(--amber);
}
.w-mark.setup {
  border: 2px dashed #7d8791;
  box-sizing: border-box;
}
.w-mark.find {
  background: rgba(150, 189, 224, 0.16);
  color: var(--blue);
}
.w-mark.done {
  background: rgba(111, 208, 176, 0.16);
  color: var(--mint);
}
.w-mark.work {
  gap: 3px;
  grid-auto-flow: column;
}
.w-mark.work i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.w-mark.work i:nth-child(2) {
  opacity: 0.6;
}
.w-mark.work i:nth-child(3) {
  opacity: 0.3;
}

.x-button.go {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--mint-ink);
}
.x-button.amber {
  border-color: var(--amber);
  background: var(--amber);
  color: #2a1d00;
}
.w-stage-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.w-empty {
  margin: auto;
  max-width: 460px;
  padding: 40px;
  text-align: center;
}
.w-empty h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.w-empty p {
  margin-top: 10px;
  color: var(--muted);
}

/* Readiness checks */
.w-checks {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
}

.w-back {
  color: var(--muted);
  font-weight: 600;
}

.w-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
@media (max-width: 820px) {
  .w-checks {
    grid-template-columns: 1fr;
    flex-direction: column;
    overflow: auto;
  }
}
@media (max-width: 820px) {
  .w-checks {
    flex: none;
    overflow: visible;
  }
}

/* Review: summary + chat on the left,
the app on the right */
.w-room.has-review {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 12px;
}
.w-review-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage);
  overflow: hidden;
}
.w-back {
  align-self: flex-start;
  padding: 4px 6px;
  color: var(--muted);
  font-weight: 600;
}
.w-back:hover {
  color: var(--ink);
}
.w-summary {
  flex: none;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #1a1e22;
}
.w-summary-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.w-summary-top span {
  flex: 1;
}
.w-summary h1 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.w-summary > p {
  margin-top: 14px;
  color: var(--body);
}
.w-pill {
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(111, 208, 176, 0.14);
  color: var(--mint);
}
.w-pill.blue {
  background: rgba(150, 189, 224, 0.16);
  color: var(--blue);
}
.w-pill.red {
  background: rgba(240, 148, 138, 0.16);
  color: var(--red);
}

.w-touches {
  margin-top: 10px;
}
.w-touch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.w-touch i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.w-touch span {
  flex: 1;
  font-size: 14px;
}
.w-touch small {
  color: var(--muted);
  font-size: 14px;
}

.w-summary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.w-summary > .w-linkbtn {
  margin-top: 12px;
}
.w-review-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}
.w-thread-inline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 4px 8px;
}
.w-muted-line {
  color: var(--muted);
  font-size: 15px;
}

.w-compare {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f6f7f6;
}
.w-compare iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.w-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.w-lab {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(12, 14, 16, 0.82);
  font-size: 15px;
  font-weight: 600;
}
.w-lab.before {
  left: 16px;
  color: var(--body);
}
.w-lab.after {
  right: 16px;
  color: var(--mint);
}
.w-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 4;
  width: 48px;
  margin-left: -24px;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
  color: var(--mint);
  background: linear-gradient(var(--mint), var(--mint)) center / 3px 100% no-repeat;
}
.w-handle svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: var(--stage);
}

@media (max-width: 1100px) {
  .w-room.has-review {
    grid-template-columns: 400px minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .w-room.has-review {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .w-review-col {
    overflow: visible;
  }
  .w-room.has-review .w-stage {
    min-height: 560px;
  }
}

.w-team-chat,
.w-profile {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage);
  overflow: hidden;
}

.w-team-chat .w-thread {
  border-top: 0;
  padding: 24px 28px;
}
.w-profile {
  padding: 26px 28px;
  overflow: auto;
}

.w-profile h3 {
  margin: 26px 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.w-bar-track {
  height: 5px;
  margin: 10px 0 0 19px;
  border-radius: 3px;
  background: #2a3036;
  overflow: hidden;
}
.w-bar-track i {
  display: block;
  height: 100%;
  background: var(--mint);
}

.w-pill.amber {
  background: rgba(229, 188, 108, 0.16);
  color: var(--amber);
}
.w-impact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 56px;
}
.w-impact > .w-muted-line {
  text-align: center;
  font-weight: 600;
}
.w-impact-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  margin-top: 22px;
  text-align: center;
}
.w-impact-rings span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.w-impact-rings span.mint {
  color: var(--mint);
  font-weight: 600;
}
.w-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.w-factcard {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1a1e22;
}
.w-factcard span,
.w-factcard small {
  display: block;
  color: var(--muted);
  font-size: 15px;
}
.w-factcard strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
@media (max-width: 820px) {
  .w-facts {
    grid-template-columns: 1fr;
  }
  .w-impact {
    padding: 28px 20px;
  }
}

/* Releases: a kanban,
one build on staging,
and a build history */
.w-page.w-wide {
  width: min(1320px, 100%);
}

.w-pill.red {
  background: rgba(240, 148, 138, 0.16);
  color: var(--red);
}

/* Health pages */
.w-hgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.w-hgrid > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.w-hgrid.wide {
  grid-template-columns: 1.5fr 1fr;
}
.w-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.w-hcard {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1a1e22;
}
.w-hcard > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.w-hcard h2 {
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.w-hcard > header h2 {
  margin: 0;
}
.w-hrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.w-hrow i,
.w-issue i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}
.w-hrow i.amber,
.w-issue i.amber {
  background: var(--amber);
}
.w-hrow i.blue {
  background: var(--blue);
}
.w-hrow i.violet {
  background: var(--violet);
}
.w-hrow > span {
  flex: 1;
  min-width: 0;
}
.w-hrow strong,
.w-hrow small,
.w-issue strong,
.w-issue small {
  display: block;
}
.w-hrow strong,
.w-issue strong {
  font-size: 14px;
}
.w-hrow small,
.w-issue small {
  color: var(--muted);
  font-size: 15px;
}
.w-hrow b {
  font-size: 14px;
  color: var(--muted);
}
.w-hrow b.mint {
  color: var(--mint);
}
.w-hrow b.amber {
  color: var(--amber);
}
.w-hrow b.blue {
  color: var(--blue);
}
.w-hrow b.violet {
  color: var(--violet);
}
.w-bignum {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.w-bignum span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.w-bignum.big {
  font-size: 46px;
}
.w-bar-track.wide {
  height: 10px;
  margin: 14px 0 6px;
}
.w-bar-track.thick {
  height: 12px;
}
.w-sub {
  color: var(--muted);
  font-size: 15px;
}
.w-sub.amber {
  color: var(--amber);
  font-weight: 600;
}
.w-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w-split {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 16px;
  align-items: start;
}
.w-list-card {
  padding: 18px 14px;
}
.w-list-card .x-filter-tabs {
  margin: 0 8px 12px;
}
.w-issue {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
}
.w-issue i {
  margin-top: 7px;
}
.w-issue > span {
  flex: 1;
}
.w-issue em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}
.w-issue.on {
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.w-issue-detail h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.w-facts4 {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.w-facts4 div {
  flex: 1;
}
.w-facts4 small,
.w-facts4 strong {
  display: block;
}
.w-facts4 small {
  color: var(--muted);
  font-size: 14px;
}
.w-facts4 strong {
  font-size: 15px;
}
.w-issue-detail h3 {
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 15px;
}
.w-tl {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.w-tl span {
  flex: none;
  width: 56px;
  color: var(--muted);
}
.w-tl p {
  color: var(--body);
  font-size: 14px;
}
.w-cost {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.w-cost > span {
  flex: 0 0 240px;
}
.w-cost strong,
.w-cost small {
  display: block;
}
.w-cost strong {
  font-size: 15px;
}
.w-cost small {
  color: var(--muted);
  font-size: 15px;
}
.w-cost .w-bar-track {
  flex: 1;
  margin: 0;
}
.w-cost b {
  width: 70px;
  text-align: right;
  font-size: 15px;
}
.w-weeks {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  margin-top: 12px;
}
.w-weeks div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.w-weeks i {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
}
.w-weeks small {
  color: var(--muted);
  font-size: 13px;
}
.w-figures3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.w-figures3 .w-hcard small,
.w-figures3 .w-hcard strong {
  display: block;
}
.w-figures3 small {
  color: var(--muted);
  font-size: 15px;
}
.w-figures3 strong {
  margin: 4px 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.w-feed {
  margin-top: 16px;
  padding: 8px 30px 14px;
}
.w-feed h3 {
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 15px;
}
.w-act {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  color: var(--body);
}
.w-act:hover {
  color: var(--ink);
}
.w-act > span:nth-child(2) {
  flex: 1;
}
.w-act em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}
.w-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.w-pagehead-actions .w-seg button i {
  position: static;
  margin-right: 8px;
}
@media (max-width: 820px) {
  .w-hgrid,
  .w-hgrid.wide,
  .w-split,
  .w-figures3 {
    grid-template-columns: 1fr;
  }
  .w-facts4 {
    flex-wrap: wrap;
  }
  .w-cost {
    flex-wrap: wrap;
  }
}

/* Phone: review reads top to bottom — summary,
the app,
then the conversation */
@media (max-width: 820px) {
  .w-room.has-review {
    display: flex;
    flex-direction: column;
    flex: none;
    height: auto;
    gap: 12px;
  }
  .w-review-col,
  .w-review-scroll {
    display: contents;
  }
  .w-room.has-review .w-back {
    order: 0;
  }
  .w-room.has-review .w-summary {
    order: 1;
  }
  .w-room.has-review .w-stage {
    order: 2;
    flex: none;
    min-height: 560px;
  }
  .w-room.has-review .w-thread-inline {
    order: 3;
  }
}

/* Phone: team chat gets a real height,
the specialist profile sits below */
@media (max-width: 820px) {
  .w-team-chat {
    flex: none;
    height: calc(100dvh - 190px);
    min-height: 420px;
  }
  .w-profile {
    flex: none;
  }
}
.w-check-select {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}
.w-evidence {
  margin-top: 24px;
  color: var(--muted);
}
.w-evidence summary {
  cursor: pointer;
  color: var(--ink);
  padding: 12px 0;
}
.w-evidence > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.w-evidence p {
  margin: 6px 0;
}
.w-stage-assessment {
  padding: 28px;
}
.w-stage-assessment > p {
  color: var(--muted);
}

/* One chat bar,
no top bar: rail on the left,
team strip on top,
chat bar at the bottom */
.w-app {
  position: relative;
}

@media (max-width: 820px) {
  .x-filter-tabs {
    flex-wrap: wrap;
    max-width: 100%;
  }
}
