/* MC-5889 — Lean status notice (views/partials/status-notice.ejs). Linked AFTER pp-lean.css, whose
   --pp-* tokens and .pp-copyright* footer it reuses. Every selector is prefixed pp-status so it
   cannot reach anything the shared stylesheet owns. The footer follows the content in a
   min-height:100vh column (not position:fixed), so long text pushes it down instead of covering it. */

.pp-status,
.pp-status * {
  box-sizing: border-box;
}

body:has(> .pp-status) {
  margin: 0;
  background: var(--pp-surface);
}

.pp-status {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px 16px;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  color: var(--pp-ink);
  background: var(--pp-surface);
}

.pp-status-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.pp-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.pp-status-icon.pp-status-tone-info {
  color: var(--pp-brand-ink);
  background: var(--pp-brand-soft);
}

.pp-status-icon.pp-status-tone-success {
  color: #0f8a55;
  background: #e8f9f1;
}

.pp-status-icon.pp-status-tone-error,
.pp-status-icon.pp-status-tone-detail {
  color: var(--pp-danger-ink);
  background: #fdecee;
}

.pp-status-title,
.pp-status-subtitle {
  width: 100%;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.pp-status-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.pp-status-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pp-muted);
}

.pp-status-details {
  width: 100%;
  margin: 16px 0 0;
  padding: 12px;
  border-radius: var(--pp-radius-sm);
  background: var(--pp-surface-sunken);
  font-size: 12px;
  text-align: left;
}

.pp-status-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pp-status-detail-row + .pp-status-detail-row {
  margin-top: 4px;
}

.pp-status-detail-row dt {
  flex-shrink: 0;
  color: var(--pp-muted);
}

.pp-status-detail-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.pp-status-close-hint {
  margin-top: 16px;
  padding: 4px 12px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--pp-muted);
}

.pp-status-footer {
  padding-top: 24px;
}
