@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/plex.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --text: #0f1d33;
  --muted: #516077;
  --border: #d3dae3;
  --line: #e4e8ee;
  --bg: #f4f6f9;
  --tint: #ecfaf8;
  --accent: #0c7d77;
  --nav: #0b1729;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body,
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #0f9a92;
  outline-offset: 3px;
}
.frame {
  max-width: 1180px;
  padding-inline: clamp(18px, 4vw, 48px);
  margin: auto;
}
.mast {
  background: var(--nav);
  color: white;
}
.bar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 19px;
  font-weight: bold;
}
.product {
  border-left: 1px solid #3c577d;
  padding-left: 18px;
  color: #cbd6e6;
  font-size: 14px;
}
.intro {
  padding: 48px 0 24px;
}
h1 {
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
}
.intro p,
.lead {
  margin-top: 8px;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.5;
}
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.case {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 15px;
  align-content: start;
  color: var(--text);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  text-decoration: none;
}
.case:hover {
  border-color: var(--accent);
  background: #fbfefd;
}
.case h2 {
  grid-column: 2;
}
.dept {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}
.desc {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
  font-size: 15px;
}
.icon {
  grid-area: 1 / 1 / 3 / 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--wash);
  color: var(--glyph);
  border-radius: 10px;
  font-size: 24px;
}
#work {
  padding-block: 26px 56px;
}
nav {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
.desk {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 24px;
}
.desk aside,
.conversation {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
.desk aside {
  padding: 17px;
}
.desk aside h2,
.client-head h2,
#answer h2 {
  font-size: 18px;
}
.desk dt {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 2px;
}
.desk dd {
  font-size: 15px;
}
.desk code {
  font:
    13px ui-monospace,
    monospace;
  background: var(--tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: #095d59;
}
.conversation {
  min-width: 0;
  box-shadow: 0 2px 5px #0f1d3306;
}
.client-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px 10px 0 0;
}
.client-head p {
  font-size: 13px;
  color: var(--muted);
}
.client-mark {
  width: 37px;
  height: 37px;
  background: #e7e2fb;
  color: #604ac5;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 23px;
}
#composer,
#sent,
#answer {
  padding: 19px 22px;
}
#composer label,
.speaker {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: white;
  line-height: 1.5;
  font-size: 16px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.primary,
.secondary,
#retry {
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: bold;
  font-size: 14px;
}
.primary {
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.primary:hover {
  background: #086a65;
}
.secondary,
#retry {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}
.secondary:hover {
  background: var(--bg);
}
#sent {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
#message,
#summary {
  line-height: 1.55;
}
#summary {
  margin-top: 7px;
}
#progress:not(:empty) {
  padding: 12px 22px 0;
  color: var(--accent);
  font-size: 13px;
}
#reset {
  margin: 12px 22px 18px;
}
.sheet {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.sheet-head,
.item {
  padding: 13px 16px;
}
.sheet-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #eef1f5;
}
.sheet-head h2 {
  font-size: 16px;
}
.chip {
  background: #d3f1ef;
  color: #075e59;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 12px;
}
.item + .item {
  border-top: 1px solid var(--line);
}
.item h3 {
  margin-bottom: 6px;
}
.item p {
  line-height: 1.5;
}
.item p + p {
  margin-top: 6px;
}
.label {
  font-weight: bold;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 6px 0;
}
.facts dt {
  margin: 0;
}
.facts dd {
  font-weight: bold;
}
.metric {
  height: 5px;
  background: #e4e8ee;
  max-width: 240px;
  margin: 7px 0;
}
.metric i {
  display: block;
  height: 100%;
  background: #0f9a92;
}
#supporting {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
#supporting > details {
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
#supporting > details[open] {
  padding-bottom: 16px;
}
#supporting > details > summary {
  padding: 16px 0;
}
#answer {
  margin: 12px 20px 4px;
  background: #f0faf8;
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
#answer h2 {
  color: #075c56;
}
#answer #summary {
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 76ch;
}
summary {
  font-size: 14px;
  font-weight: bold;
  padding-block: 12px;
}
#technical {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.tools {
  padding-left: 22px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #f4f6f9;
  border-radius: 6px;
}
#status:not(:empty) {
  margin: 12px 0;
}
.empty {
  padding: 14px;
}
@media (max-width: 720px) {
  .desk {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .desk aside {
    padding: 10px 14px;
  }
  .desk aside h2 {
    display: none;
  }
  .desk aside dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
  }
  .desk aside dt {
    margin: 0;
  }
  .cases {
    grid-template-columns: 1fr;
  }
  .client-head,
  #composer,
  #sent,
  #answer {
    padding: 14px;
  }
  .intro {
    padding-top: 30px;
  }
  .bar {
    height: 54px;
  }
  .sheet-head {
    flex-wrap: wrap;
  }
}

.journey {
  min-width: 0;
}
.sequence-legend {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.sequence-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sequence-legend span::before {
  content: "";
  width: 18px;
  border-top: 2px solid #5a4b83;
}
.sequence-legend span + span::before {
  border-top: 2px dashed #086e67;
}
#journey-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
#journey-chart text {
  font:
    12px Arial,
    sans-serif;
  paint-order: stroke;
  stroke: white;
  stroke-width: 4px;
  stroke-linejoin: round;
}
#journey-chart .sequence-actor {
  font-weight: 600;
  fill: #243646;
}
#journey-chart .sequence-request {
  fill: #4a3b73;
}
#journey-chart .sequence-returned {
  fill: #07695e;
}
.department > h2 {
  margin-bottom: 12px;
}
.department .cases {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.department .case {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.department .case h3 {
  grid-column: 2;
}

#answer-metrics .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 16px;
  max-width: 430px;
  margin-top: 16px;
  border-top: 1px solid #c6e5df;
  padding-top: 12px;
}
#answer-metrics dd {
  font-size: 24px;
  font-weight: bold;
  color: #075c56;
}
