/* Hero: the copy, the network a sealed file travels through, and the console's approval page below it */
.hero { padding-top: 64px; padding-bottom: 0; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.hero-copy { display: grid; justify-items: start; gap: 20px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Network. Agents are circles, systems are squares, Padhoc is the checkpoint in the middle. */
.net { display: block; width: 100%; height: auto; overflow: visible; }
.net .grid-dot { fill: var(--ink-3); opacity: 0.35; }
.net .mesh { fill: none; stroke: var(--ink); stroke-opacity: 0.14; stroke-width: 1.25; }
.net .mesh-node { fill: var(--bg); stroke: var(--ink); stroke-opacity: 0.32; stroke-width: 1.25; }
.net .route { fill: none; stroke: var(--ink); stroke-opacity: 0.3; stroke-width: 1.5; }
.net .trail { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.net .node { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.net .fill { fill: var(--ink); }
.net .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.net .ring-dashed { stroke-dasharray: 4 4; }
.net .check { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.net .label { fill: var(--ink-3); font: 500 12px var(--font-sans); letter-spacing: 0.01em; }

/* Console preview */
.app { margin: 64px 0 0; }
.app-window {
  border-radius: 16px;
  border: 1px solid var(--app-line);
  background: var(--app-canvas);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  color: var(--app-fg);
  font-size: 14px;
  line-height: 20px;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-bg);
}
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--app-line); }
.app-body { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.app-side {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--app-line);
  background: var(--app-bg);
}
.ws {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  font-weight: 500;
}
.ws-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--app-fg);
  color: var(--app-bg);
  font-size: 11px;
  font-weight: 600;
}
.ws .icon { margin-left: auto; color: var(--app-fg-2); }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-inline: 8px;
  border-radius: 8px;
  color: var(--app-fg-2);
}
.side-item.is-active { background: var(--app-muted); color: var(--app-fg); box-shadow: inset 0 0 0 1px var(--app-line); }
.side-item .count { margin-left: auto; font: 12px var(--font-mono); }
.side-label { margin: 16px 8px 4px; font-size: 12px; color: var(--app-fg-2); }
.app-main { padding: 24px 32px 32px; min-width: 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--app-fg-2); }
.app-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px dashed color-mix(in srgb, var(--app-fg) 35%, transparent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.badge-pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--app-fg); }
.badge-outline { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--app-line); color: var(--app-fg); font-size: 12px; }
.app-desc { margin-top: 8px; color: var(--app-fg-2); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 24px; align-items: start; }
.app-col { display: grid; gap: 16px; min-width: 0; }
.panel { border-radius: 12px; border: 1px solid var(--app-line); background: var(--app-bg); padding: 16px 20px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.kv dt { font-size: 12px; color: var(--app-fg-2); }
.kv dd { margin: 4px 0 0; }
.app .fp { border-color: var(--app-line); background: var(--app-muted); color: var(--app-fg); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.panel-head span { color: var(--app-fg-2); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 13px; }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--app-fg-2); }
.track { height: 6px; border-radius: 3px; background: var(--app-muted); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: inherit; background: var(--app-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips code { padding: 2px 8px; border-radius: 6px; background: var(--app-muted); font-size: 12px; }
.decision { border-color: color-mix(in srgb, var(--app-fg) 20%, transparent); box-shadow: var(--shadow-panel); padding: 20px; }
.decision-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.shield { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--app-fg); color: var(--app-bg); }
.shield .icon { width: 14px; height: 14px; }
.decision p { color: var(--app-fg-2); }
.decision p strong { color: var(--app-fg); font-weight: 500; }
.field-label { display: block; margin-top: 20px; font-size: 13px; font-weight: 500; }
.textarea {
  display: block;
  margin-top: 8px;
  height: 72px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  color: var(--app-fg-2);
  font-size: 13px;
}
.decision-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  font-weight: 500;
}
.abtn-ink { background: var(--app-fg); border-color: var(--app-fg); color: var(--app-bg); }
.app figcaption { margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; text-wrap: balance; }

/* One entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.5s var(--ease) both; }
  .rise-2 { animation-delay: 60ms; }
  .rise-3 { animation-delay: 120ms; }
  .rise-4 { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

@media (max-width: 1080px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .net .label { font-size: 18px; }
  .app { margin-top: 40px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .app-main { padding: 16px; }
  .app-title { font-size: 18px; line-height: 24px; }
  .app-col .ex-panel, .kv > div + div { display: none; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 72px minmax(0, 1fr) 40px; }
}
