:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #eef3f0;
  --ink: #17201d;
  --muted: #5f6b66;
  --line: #d8dfdb;
  --green: #1f6f57;
  --green-dark: #144b3d;
  --amber: #bf7b24;
  --red: #b64e3c;
  --blue: #2f6f91;
  --violet: #695b8f;
  --shadow: 0 18px 40px rgba(24, 32, 29, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: block;
  overflow-x: clip;
}

.side {
  position: fixed;
  inset: 0 auto 0 0;
  top: 0;
  z-index: 40;
  height: 100vh;
  width: min(320px, calc(100vw - 36px));
  min-width: 0;
  padding: 28px 20px;
  background: #17201d;
  color: #f8fbf8;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 28px 0 70px rgba(23, 32, 29, 0.28);
  transform: translateX(0);
  transition: transform 180ms ease, visibility 180ms ease;
}

.shell.is-sidebar-collapsed .side {
  pointer-events: none;
  transform: translateX(-105%);
  visibility: hidden;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgba(23, 32, 29, 0.34);
  backdrop-filter: blur(3px);
  opacity: 1;
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.shell.is-sidebar-collapsed .sidebar-backdrop {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.side__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #2f6f91, #1f6f57 62%, #bf7b24);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__title {
  font-size: 18px;
  font-weight: 760;
}

.brand__caption {
  color: rgba(248, 251, 248, 0.72);
  font-size: 13px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: #aebbb5;
}

.icon-btn--dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbf8;
}

.icon-btn--dark:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon::before {
  top: 0;
}

.menu-icon span {
  top: 5px;
}

.menu-icon::after {
  bottom: 0;
}

.nav {
  display: grid;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 18px;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(248, 251, 248, 0.78);
}

.nav a:hover,
.nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.side-demo-link {
  flex: 0 0 auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 111, 145, 0.5), rgba(31, 111, 87, 0.72));
  color: #fff;
  text-decoration: none;
  font-weight: 820;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.side-demo-link:hover {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.author-lock {
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(191, 123, 36, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 123, 36, 0.12), rgba(31, 111, 87, 0.1)),
    rgba(255, 255, 255, 0.04);
  color: rgba(248, 251, 248, 0.88);
  font-size: 12px;
}

.author-lock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.author-lock__head span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(191, 123, 36, 0.2);
  color: #f5d6aa;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.author-lock__head strong {
  color: #fff;
}

.author-lock p {
  margin: 6px 0 0;
}

.author-lock a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.author-lock a:hover {
  text-decoration: underline;
}

.side__footer {
  flex: 0 0 auto;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(248, 251, 248, 0.76);
  font-size: 13px;
}

.main {
  min-width: 0;
  width: 100%;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 245, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
}

.topbar__meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 111, 87, 0.12);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: #aebbb5;
}

.btn--primary {
  border-color: var(--green-dark);
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.btn--danger {
  border-color: rgba(182, 78, 60, 0.5);
  color: var(--red);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.content {
  padding: 30px clamp(20px, 4vw, 48px) 54px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 87, 0.12), rgba(47, 111, 145, 0.08) 45%, rgba(191, 123, 36, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-top: 10px;
  font-size: clamp(34px, 4.6vw, 58px);
}

h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 870px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.metric {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric__value {
  font-size: 28px;
  line-height: 1;
  font-weight: 820;
}

.metric__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 34px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section__head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.04);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.har-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.har-snapshot {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(31, 111, 87, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(31, 111, 87, 0.12), rgba(255, 255, 255, 0) 58%),
    var(--surface);
  box-shadow: 0 14px 30px rgba(23, 32, 29, 0.05);
}

.har-snapshot strong {
  display: block;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.har-snapshot p {
  margin: 0;
  color: var(--muted);
}

.har-package {
  margin-bottom: 16px;
}

.har-table {
  margin-top: 16px;
}

.har-accordion {
  margin-top: 16px;
}

.document-center {
  scroll-margin-top: 96px;
  margin: 18px 0 16px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 145, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 111, 145, 0.1), rgba(31, 111, 87, 0.06) 52%, rgba(191, 123, 36, 0.1)),
    var(--surface);
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.06);
}

.document-center__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.document-center__hero h3 {
  margin-top: 6px;
}

.document-center__hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.document-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.document-card h4 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.tag--amber {
  color: #7c4c10;
  background: rgba(191, 123, 36, 0.13);
}

.tag--red {
  color: #873526;
  background: rgba(182, 78, 60, 0.12);
}

.tag--blue {
  color: #22516b;
  background: rgba(47, 111, 145, 0.12);
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green-dark);
}

details[open] summary::after {
  content: "-";
}

.details-body {
  padding: 0 18px 18px;
  color: var(--muted);
}

.details-body p {
  margin: 0 0 10px;
}

.details-body ul,
.details-body ol {
  margin: 8px 0 0 19px;
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f0;
  color: #33413c;
  font-size: 13px;
}

td {
  color: var(--muted);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline__phase {
  color: var(--green-dark);
  font-weight: 820;
}

.timeline__item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.glossary-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.search-field {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 13px;
}

.search-field:focus {
  outline: 3px solid rgba(31, 111, 87, 0.14);
  border-color: var(--green);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: rgba(31, 111, 87, 0.35);
  background: rgba(31, 111, 87, 0.1);
  color: var(--green-dark);
}

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

.glossary-card {
  border-color: #cfd8d4;
}

.glossary-card[hidden] {
  display: none;
}

.glossary-card summary {
  min-height: 64px;
  align-items: flex-start;
}

.glossary-title {
  display: grid;
  gap: 5px;
}

.glossary-title strong {
  color: var(--ink);
  font-size: 17px;
}

.glossary-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.glossary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #b9c5c0;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state[hidden] {
  display: none;
}

.prompt-box {
  border: 1px solid #bac6c1;
  border-radius: 8px;
  background: #111816;
  color: #e9f2ee;
  overflow: hidden;
}

.prompt-box__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prompt-box pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.copy-note {
  color: rgba(233, 242, 238, 0.72);
  font-size: 13px;
}

.demo-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

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

.work-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.work-item:hover,
.work-item.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 87, 0.09);
}

.work-item strong {
  font-size: 15px;
}

.work-item span {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.04);
}

.panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel__body {
  padding: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.step {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.step.is-done {
  border-color: rgba(31, 111, 87, 0.32);
  background: rgba(31, 111, 87, 0.08);
  color: var(--green-dark);
}

.score-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 111, 87, 0.08), rgba(191, 123, 36, 0.08));
}

.score-ring {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface) 56%, transparent 57%),
    conic-gradient(var(--green) 0 74%, rgba(31, 111, 87, 0.15) 74% 100%);
  font-size: 28px;
  font-weight: 820;
}

.fast-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fast-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fast-review-list {
  display: grid;
  gap: 12px;
}

.fast-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 150px 190px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fast-row.is-selected {
  border-color: rgba(31, 111, 87, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 111, 87, 0.08);
}

.work-thumb {
  min-height: 92px;
  border: 1px solid #c9d4cf;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 111, 87, 0.12) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(0deg, #fff 0 10px, #f0f3f1 10px 12px);
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 9px;
}

.work-thumb span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 111, 87, 0.36);
}

.work-thumb span:nth-child(2) {
  width: 78%;
}

.work-thumb span:nth-child(3) {
  width: 54%;
}

.fast-main {
  min-width: 0;
}

.fast-main strong {
  display: block;
  font-size: 16px;
}

.fast-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fast-score {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.fast-score strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.fast-score > span:not(.status-pill) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.fast-actions {
  display: grid;
  gap: 8px;
}

.fast-actions .btn {
  width: 100%;
}

.fast-detail {
  grid-column: 1 / -1;
  display: none;
  padding: 14px;
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
}

.fast-row.is-open .fast-detail {
  display: block;
}

.fast-detail p {
  margin: 8px 0 0;
}

.fast-detail strong {
  color: var(--ink);
}

.fast-detail .field strong {
  overflow-wrap: anywhere;
}

.fast-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: 100%;
  max-width: 142px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191, 123, 36, 0.13);
  color: #7c4c10;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.status-pill.is-done {
  background: rgba(31, 111, 87, 0.12);
  color: var(--green-dark);
}

.tech-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tech-node {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tech-node::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -13px;
  width: 13px;
  height: 2px;
  background: #b7c2bd;
}

.tech-node:last-child::after {
  display: none;
}

.tech-node span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 820;
}

.tech-node p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.field strong {
  display: block;
  margin-top: 3px;
}

.audit-log {
  display: grid;
  gap: 9px;
}

.audit-log__item {
  padding: 11px;
  border-left: 4px solid var(--line);
  background: #fbfcfb;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.audit-log__item.is-green {
  border-left-color: var(--green);
}

.audit-log__item.is-amber {
  border-left-color: var(--amber);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(31, 111, 87, 0.25);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--green-dark);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .demo-layout,
  .intro {
    grid-template-columns: 1fr;
  }

  .har-board {
    grid-template-columns: 1fr;
  }

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

  .fast-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .fast-score,
  .fast-actions {
    grid-column: 2;
  }

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

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

  .tech-node::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .side {
    width: min(300px, 86vw);
    max-width: min(300px, 86vw);
  }

  .shell.is-sidebar-collapsed .side {
    width: min(300px, 86vw);
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .document-center__hero {
    align-items: stretch;
    flex-direction: column;
  }

  .grid--2,
  .grid--3,
  .metric-grid,
  .field-grid,
  .steps,
  .glossary-grid,
  .glossary-tools,
  .fast-detail-grid,
  .tech-flow {
    grid-template-columns: 1fr;
  }

  .fast-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fast-row {
    grid-template-columns: 1fr;
  }

  .fast-score,
  .fast-actions {
    grid-column: auto;
  }

  h1 {
    font-size: 34px;
  }
}
