﻿:root {
  --bg-1: #0b1f2e;
  --bg-2: #12354c;
  --bg-3: #f0f4ef;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #0a1721;
  --text-soft: #335063;
  --accent: #2d7fff;
  --accent-2: #69b6ff;
  --danger: #b42318;
  --ok: #117a4a;
  --warn: #925400;
  --border: rgba(10, 23, 33, 0.14);
  --shadow: 0 12px 30px rgba(4, 21, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 45%, #1c5a78 100%);
  line-height: 1.6;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 127, 62, 0.35), transparent 32%),
    radial-gradient(circle at 92% 24%, rgba(15, 157, 141, 0.25), transparent 28%),
    radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.08), transparent 26%);
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(5, 25, 37, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: #f8fcff;
  font-weight: 700;
}

.brand-accent {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #4ed8cd);
  color: #03222b;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.main-nav a {
  color: #ecf7ff;
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.content-wrap {
  padding-block: 2rem 3rem;
}

.hero {
  background: linear-gradient(120deg, rgba(240, 244, 239, 0.96), rgba(255, 255, 255, 0.89));
  border-radius: 1.35rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}

.hero.compact {
  margin-bottom: 0.95rem;
}

.launchpad {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, rgba(237, 245, 255, 0.96), rgba(255, 255, 255, 0.88));
  border-radius: 1.35rem;
  padding: clamp(1.2rem, 2.6vw, 2.2rem);
  border: 1px solid rgba(45, 127, 255, 0.22);
  box-shadow: 0 14px 34px rgba(10, 48, 104, 0.2);
}

.launchpad::before {
  content: "";
  position: absolute;
  inset: -40% -8%;
  background:
    radial-gradient(circle at 78% 24%, rgba(45, 127, 255, 0.22), transparent 36%),
    radial-gradient(circle at 20% 78%, rgba(105, 182, 255, 0.24), transparent 33%),
    repeating-linear-gradient(
      125deg,
      rgba(45, 127, 255, 0.06) 0 11px,
      rgba(18, 53, 76, 0) 11px 22px
    );
  animation: floatPanel 16s linear infinite;
}

.launchpad > * {
  position: relative;
  z-index: 1;
}

.launchpad h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin-bottom: 0.5rem;
}

.launchpad .lead {
  font-size: 1.08rem;
  max-width: 68ch;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.teaser-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.teaser-list li {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 0.58rem;
  padding: 0.45rem 0.7rem;
}

.small-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0 0 0.35rem 0;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 700;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.meta-row,
.actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.meta-row {
  justify-content: space-between;
}

.field-grow-1 {
  flex: 1 1 140px;
}

.field-grow-2 {
  flex: 2 1 220px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: linear-gradient(130deg, var(--accent), #2ab9aa);
  color: #02252a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.58rem 0.92rem;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.96);
}

.button-small {
  padding: 0.4rem 0.68rem;
  font-size: 0.9rem;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-danger {
  background: linear-gradient(130deg, #e14c34, #b42318);
  color: #fff;
}

.ok {
  color: var(--ok);
}

.warn {
  color: var(--warn);
}

.dim {
  color: var(--text-soft);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.guide-search-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.guide-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.guide-search-row input[type="search"] {
  flex: 1 1 300px;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(18, 53, 76, 0.28);
  border-radius: 0.6rem;
  padding: 0.58rem 0.68rem;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(15, 157, 141, 0.28);
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  gap: 0.58rem;
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.admin-nav a {
  text-decoration: none;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.dude-top-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.phase-readiness-card {
  margin-bottom: 1rem;
}

.phase-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.phase-readiness-progress-wrap {
  min-width: min(100%, 270px);
  flex: 1 1 280px;
}

.phase-readiness-progress {
  width: 100%;
  height: 0.85rem;
}

.phase-check-list {
  margin-top: 0.8rem;
  margin-bottom: 0.9rem;
}

.phase-check-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.phase-check-ok {
  background: rgba(17, 122, 74, 0.08);
  border-color: rgba(17, 122, 74, 0.25);
}

.phase-check-open {
  background: rgba(146, 84, 0, 0.08);
  border-color: rgba(146, 84, 0, 0.3);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-public {
  background: rgba(17, 122, 74, 0.12);
  color: #0c5a38;
}

.pill-private {
  background: rgba(146, 84, 0, 0.14);
  color: #734200;
}

.flash-wrap {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.flash {
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: #eef5ff;
}

.flash-success {
  background: #ecfff3;
  border-color: rgba(17, 122, 74, 0.25);
}

.flash-error {
  background: #fff1ef;
  border-color: rgba(180, 35, 24, 0.25);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(18, 53, 76, 0.16);
  padding: 0.55rem;
  vertical-align: top;
}

code {
  background: rgba(18, 53, 76, 0.09);
  border-radius: 0.38rem;
  padding: 0.1rem 0.35rem;
}

.prose :is(h2, h3) {
  margin-top: 1.15rem;
}

.prose p {
  margin-block: 0.45rem;
}

.guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "sidebar";
  gap: 1rem;
  align-items: start;
}

.guide-main {
  min-width: 0;
  grid-area: main;
}

.guide-sidebar {
  grid-area: sidebar;
  align-self: start;
}

.guide-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.guide-sidebar-lead {
  margin: 0 0 0.7rem 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.guide-toc {
  display: grid;
  gap: 0.35rem;
}

.guide-toc a {
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid rgba(18, 53, 76, 0.22);
  padding: 0.18rem 0.48rem;
  border-radius: 0.45rem;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.guide-toc a:hover {
  background: rgba(18, 53, 76, 0.08);
  border-color: var(--accent);
}

.guide-toc a.toc-level-3 {
  margin-left: 0.9rem;
  font-size: 0.95rem;
}

.guide-hero-image,
.guide-article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  border: 1px solid rgba(18, 53, 76, 0.16);
  object-fit: contain;
}

.guide-title-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(220px, 42vh, 420px);
  border-radius: 0.8rem;
  border: 1px solid rgba(18, 53, 76, 0.16);
  object-fit: cover;
  object-position: center;
}

.research-summary {
  margin: 0;
  padding: 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(18, 53, 76, 0.14);
  background: rgba(18, 53, 76, 0.04);
  font-family: "Consolas", "Monaco", monospace;
  white-space: pre-wrap;
}

.article-image-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.article-image-grid figure {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.content-rich {
  width: min(100%, 82ch);
  margin-inline: auto;
}

.content-rich :is(h2, h3, h4) {
  scroll-margin-top: 110px;
}

.content-rich p,
.content-rich li,
.content-rich figcaption {
  overflow-wrap: anywhere;
}

.content-rich pre {
  margin: 0.95rem 0;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(18, 53, 76, 0.18);
  background: rgba(18, 53, 76, 0.06);
  overflow-x: auto;
  max-width: 100%;
}

.content-rich table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border-collapse: collapse;
}

.content-rich img,
.content-rich video,
.content-rich iframe {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0.95rem auto;
  border-radius: 0.8rem;
  border: 1px solid rgba(18, 53, 76, 0.16);
  box-shadow: 0 10px 24px rgba(10, 35, 57, 0.12);
}

.danger-zone {
  border-color: rgba(180, 35, 24, 0.35);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 25, 37, 0.72);
}

.site-footer a {
  color: #e8f3fa;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-inner {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: #e8f3fa;
}

.inline-form {
  margin: 0;
}

.history-filter-select {
  width: auto;
  min-width: 220px;
}

.linklike {
  border: 0;
  background: none;
  color: #e8f3fa;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
  padding: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 520ms ease forwards;
}

.reveal:nth-child(2n) {
  animation-delay: 70ms;
}

.reveal:nth-child(3n) {
  animation-delay: 120ms;
}

.autopilot-disclosure {
  display: block;
}

.autopilot-disclosure-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  cursor: pointer;
  list-style: none;
}

.autopilot-disclosure-summary::-webkit-details-marker {
  display: none;
}

.autopilot-disclosure-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.autopilot-disclosure-meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.autopilot-disclosure-content {
  margin-top: 0.9rem;
}

.dude-archive-toggle {
  margin-top: 0.55rem;
}

.dude-section {
  overflow: hidden;
}

.dude-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
}

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

.dude-body {
  margin-top: 0.95rem;
  display: grid;
  gap: 1rem;
}

.trend-help-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trend-help-card {
  border: 1px solid rgba(18, 53, 76, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.75rem 0.85rem;
}

.trend-help-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.trend-help-list {
  gap: 0.35rem;
}

.trend-form .field-help {
  margin: -0.28rem 0 0.36rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.trend-fieldset {
  border: 1px solid rgba(18, 53, 76, 0.18);
  border-radius: 0.85rem;
  padding: 0.72rem 0.8rem;
  display: grid;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.62);
}

.trend-fieldset legend {
  font-weight: 700;
  padding-inline: 0.28rem;
}

.trend-advanced {
  border: 1px dashed rgba(18, 53, 76, 0.28);
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.45);
}

.trend-advanced > summary {
  cursor: pointer;
  font-weight: 700;
}

.trend-advanced-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.archive-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0b4b7a;
  background: rgba(15, 103, 169, 0.13);
  border: 1px solid rgba(15, 103, 169, 0.25);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPanel {
  from {
    transform: translate3d(-1%, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(1%, -1%, 0) rotate(1deg);
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
  }

  .content-wrap {
    padding-top: 1.2rem;
  }

  table {
    min-width: 560px;
  }
}

@media (min-width: 1040px) {
  .guide-shell {
    grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
    grid-template-areas: "main sidebar";
    gap: 1.2rem;
  }

  .guide-main {
    grid-area: main;
  }

  .guide-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 98px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}


.post-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.post-preview-card {
  border: 1px solid var(--border, #d9e1ea);
  border-radius: 14px;
  background: var(--surface, #ffffff);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-preview-cover {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 71, 131, 0.12), rgba(255, 125, 0, 0.15));
}

.post-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0a4783;
}

.post-preview-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.post-preview-card p {
  margin: 0;
}

.modal-open {
  overflow: hidden;
}

.generation-info-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.generation-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, 0.55);
}

.generation-info-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 1.4rem));
  max-height: calc(100vh - 1.6rem);
  overflow: auto;
  border: 1px solid var(--border, #d9e1ea);
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 24px 52px rgba(4, 14, 24, 0.35);
}

.generation-info-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border, #d9e1ea);
  background: #fff;
}

.generation-info-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.generation-info-close {
  border: 1px solid var(--border, #d9e1ea);
  background: #fff;
  color: var(--text, #1f2e3b);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  font-size: 1.08rem;
  line-height: 1;
  cursor: pointer;
}

.generation-info-body {
  padding: 0.95rem 1rem 1rem;
  display: grid;
  gap: 0.85rem;
}

.generation-memory-block,
.generation-run-card {
  border: 1px solid var(--border, #d9e1ea);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}

.generation-memory-block h4,
.generation-run-list h4 {
  margin: 0 0 0.4rem 0;
}

.generation-run-list {
  display: grid;
  gap: 0.62rem;
}

.generation-run-head {
  margin: 0;
}

.generation-run-card details {
  margin-top: 0.45rem;
}

.generation-run-card ul {
  margin: 0.35rem 0 0 1rem;
  padding: 0;
}

.runtime-status-toggle {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf7ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  font-weight: 700;
}

.runtime-status-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.runtime-status-indicator {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(233, 241, 247, 0.72);
  box-shadow: 0 0 0 0 rgba(84, 198, 142, 0.7);
}

.runtime-status-toggle.is-running .runtime-status-indicator {
  background: #54c68e;
  animation: runtimePulse 1.2s ease-out infinite;
}

.runtime-status-toggle.has-errors .runtime-status-indicator {
  background: #de7a25;
}

.runtime-status-panel {
  position: fixed;
  top: 92px;
  right: 1.05rem;
  width: min(460px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 116px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(10, 23, 33, 0.16);
  background: rgba(252, 254, 255, 0.96);
  box-shadow: 0 20px 44px rgba(3, 22, 38, 0.28);
  padding: 0.95rem;
  z-index: 28;
}

.runtime-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.runtime-status-head h2 {
  margin: 0;
  font-size: 1.14rem;
}

.runtime-status-close {
  border: 1px solid rgba(10, 23, 33, 0.2);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.runtime-status-services,
.runtime-status-durations-wrap,
.runtime-status-events-wrap {
  margin-top: 0.8rem;
}

.runtime-status-services h3,
.runtime-status-durations-wrap h3,
.runtime-status-events-wrap h3 {
  margin: 0 0 0.45rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.runtime-status-kv {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 0.22rem 0.55rem;
}

.runtime-status-kv dt,
.runtime-status-kv dd {
  margin: 0;
  font-size: 0.88rem;
}

.runtime-status-kv dd {
  font-weight: 700;
}

.runtime-status-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.runtime-status-durations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.runtime-duration-item {
  border-left: 4px solid #2f5f82;
  border-radius: 8px;
  padding: 0.46rem 0.56rem;
  background: rgba(239, 247, 252, 0.7);
}

.runtime-duration-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}

.runtime-duration-label {
  font-weight: 700;
  color: var(--text);
}

.runtime-duration-runs {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.runtime-duration-detail {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  color: #24495d;
}

.runtime-status-event {
  border-left: 4px solid #4f6f82;
  border-radius: 8px;
  padding: 0.46rem 0.56rem;
  background: rgba(238, 246, 250, 0.64);
}

.runtime-status-event.running {
  border-left-color: #0f7e67;
}

.runtime-status-event.success {
  border-left-color: #1876d2;
}

.runtime-status-event.error {
  border-left-color: #c04e21;
}

.runtime-status-event-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}

.runtime-status-event-label {
  font-weight: 700;
  color: var(--text);
}

.runtime-status-event-state {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-soft);
}

.runtime-status-event-detail {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  color: #24495d;
}

.runtime-status-empty {
  border: 1px dashed rgba(10, 23, 33, 0.2);
  border-radius: 8px;
  padding: 0.7rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

@keyframes runtimePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 198, 142, 0.6);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(84, 198, 142, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 198, 142, 0);
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .runtime-status-panel {
    top: 84px;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100vh - 104px);
  }
}
