.post-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 24px;
  align-items: start;
}

.post-intro p,
.post-help,
.post-caveat {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.post-intro p {
  margin-top: 8px;
  max-width: 760px;
  font-size: 14px;
}

.post-note {
  border: 1px solid #f0ce8c;
  background: #fff8e9;
  border-radius: 13px;
  padding: 14px 16px;
  color: #704b00;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 650;
}

.post-note strong {
  display: block;
  margin-bottom: 3px;
  color: #5c3e00;
  font-size: 14px;
}

.post-steps {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.post-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.post-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.post-field-wide {
  grid-column: 1 / -1;
}

.post-field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.post-field input,
.post-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.post-field textarea {
  min-height: 82px;
  resize: vertical;
}

.post-field input:focus,
.post-field textarea:focus,
.post-action:focus {
  outline: 3px solid rgba(0, 143, 69, .16);
  border-color: var(--brand-500);
}

.post-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.post-form-actions .post-help {
  max-width: 720px;
}

.post-status {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.post-status[data-kind="loading"] {
  border-color: #bdd6e9;
  background: #f1f8fc;
}

.post-status[data-kind="success"] {
  border-color: #b9ddc8;
  background: #effaf3;
}

.post-status[data-kind="error"],
.post-status[data-kind="auth"] {
  border-color: #efb5af;
  background: #fff3f1;
}

.post-status[data-kind="setup"] {
  border-color: #f0ce8c;
  background: #fff8e9;
}

.post-status strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.post-status p {
  color: var(--ink-3);
  font-size: 13px;
}

.post-upgrade-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.post-list-heading .sub {
  margin-top: 5px;
}

.post-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.post-table {
  min-width: 1120px;
}

.post-table th {
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.post-table td {
  vertical-align: middle;
}

.post-title {
  min-width: 250px;
  max-width: 390px;
}

.post-title strong {
  display: block;
  overflow-wrap: anywhere;
}

.post-title a {
  display: inline-block;
  margin-top: 5px;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-keywords {
  min-width: 220px;
  max-width: 340px;
  line-height: 1.75;
}

.post-chip {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12px;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  min-width: 84px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.post-observed-detail {
  display: block;
  margin-top: 6px;
  max-width: 150px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

.post-badge[data-state="sample_confirmed"] {
  background: #e8f8ef;
  color: #0b6d39;
}

.post-badge[data-state="sample_not_found"] {
  background: #f3f3f6;
  color: #555968;
}

.post-badge[data-state="needs_check"] {
  background: #fff3d7;
  color: #825400;
}

.post-badge[data-state="error"] {
  background: #fff0ee;
  color: #a52f25;
}

.post-actions {
  display: flex;
  gap: 7px;
  min-width: 190px;
}

.post-empty {
  padding: 38px 18px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: var(--bg-soft);
  text-align: center;
}

.post-empty h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.post-analysis {
  margin-top: 20px;
  scroll-margin-top: 20px;
}

.post-analysis-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.post-analysis-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.post-analysis-meta div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.post-analysis-meta dt {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 750;
}

.post-analysis-meta dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.post-results-table {
  min-width: 680px;
}

.post-position {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.post-analysis-empty {
  padding: 24px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 820px) {
  .post-intro {
    grid-template-columns: 1fr;
  }

  .post-analysis-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .post-form {
    grid-template-columns: 1fr;
  }

  .post-field-wide,
  .post-form-actions {
    grid-column: auto;
  }

  .post-form-actions,
  .post-list-heading,
  .post-analysis-head {
    align-items: stretch;
    flex-direction: column;
  }

  .post-form-actions .btn,
  .post-list-heading .btn {
    width: 100%;
  }
}
