/* Shared by the SmartSIG panel and standalone file feedback pages. */
body.state-document {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

.state-document * {
  box-sizing: border-box;
}

:where(.state-document) button {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

.state-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #eaf5f7;
}

.state-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(560px, 100%);
  border: 1px solid var(--line, #d7e0e5);
  border-top: 5px solid var(--brand, #2cb3cc);
  padding: 36px;
  background: var(--surface, #fff);
  box-shadow: 0 16px 42px rgba(33, 83, 96, 0.13);
  text-align: center;
}

.state-card.danger {
  border-top-color: var(--danger, #b42318);
}

.state-card.success {
  border-top-color: var(--success, #18805f);
}

.state-card p {
  margin: 0 0 4px;
  color: var(--brand-dark, #177d91);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.state-card h1 {
  margin: 0;
  color: var(--ink, #17222b);
  font-size: 1.7rem;
}

.state-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted, #6b7b88);
}

.state-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid #b9d7de;
  border-radius: 50%;
  color: var(--brand-dark, #177d91);
  background: #eef8fa;
}

.state-card.danger .state-icon {
  border-color: #efc7c7;
  color: var(--danger, #b42318);
  background: #fff4f2;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid #1389a5;
  border-radius: 0;
  padding: 0 16px;
  color: #fff;
  background: #219bb8;
  font-weight: 700;
  cursor: pointer;
}

.primary-button.danger-primary {
  border-color: #a81911;
  background: #c73228;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.primary-button.compact {
  min-width: 112px;
  min-height: 40px;
}

@media (max-width: 920px) {
  .state-page {
    min-height: 100vh;
    padding: 18px;
  }

  .state-card {
    padding: 28px 20px;
  }
}
