:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --ink: #17201b;
  --muted: #5c675f;
  --subtle: #7a857d;
  --line: #d9e0da;
  --line-strong: #bec8c1;
  --accent: #116149;
  --accent-hover: #0b4d3a;
  --accent-soft: #e2f3ed;
  --warning-soft: #fff4d8;
  --warning-line: #edd28c;
  --danger: #9b2c2c;
  --shadow: 0 18px 44px rgba(30, 45, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 220px),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

dd {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.18;
  margin-bottom: 8px;
}

h2 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card {
  margin: 0 0 16px;
}

.side-stack,
.content-stack,
.stack {
  display: grid;
  gap: 14px;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-label {
  color: var(--subtle);
  font-size: 12px;
}

.meta-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

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

.status-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.pill {
  align-items: center;
  background: #eef2ef;
  border: 1px solid #d7ded8;
  border-radius: 999px;
  color: #435047;
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 6px;
  line-height: 1;
  min-height: 26px;
  padding: 6px 10px;
  white-space: nowrap;
  width: fit-content;
}

.pill.ok {
  background: var(--accent-soft);
  border-color: #b9ddce;
  color: var(--accent);
}

.pill.pending {
  background: var(--warning-soft);
  border-color: var(--warning-line);
  color: #6b5414;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid #aed9c8;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.artifact-summary {
  color: var(--muted);
  margin-bottom: 12px;
}

.artifact-body,
pre {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #27332c;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.form-card {
  border-color: var(--line-strong);
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field-hint {
  color: var(--subtle);
  font-size: 13px;
  margin: 0;
}

textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 220px;
  outline: none;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 97, 73, 0.14);
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button,
.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.secondary-text {
  color: var(--subtle);
  font-size: 13px;
  margin: 0;
}

.empty-state {
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 18px;
}

.list {
  padding-left: 20px;
}

@media (max-width: 760px) {
  .page {
    padding: 20px 14px 32px;
  }

  .page-header,
  .layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 25px;
  }

  .panel,
  .card {
    padding: 15px;
  }

  .status-strip {
    align-items: flex-start;
    display: grid;
  }

  textarea {
    min-height: 200px;
  }
}
