:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface2: #f1eee9;
  --border: #d9d4cb;
  --text: #1f2937;
  --muted: #5f6b7a;
  --primary: #FB7C29;
  --primary2: #fff0e6;
  --success: #2f6f2f;
  --warn: #9a5b00;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .08);
  --cloudhost-orange: #FB7C29;
  --cloudhost-blue: #0094FF;
  --cloudhost-blue-muted: rgba(0, 148, 255, 0.09);
  --cloudhost-purple: #7030a0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Nunito, Arial, sans-serif;
}

a:not(.register-link) {
  color: var(--cloudhost-orange);
  text-decoration: none;
  transition: color 120ms ease;
}

a:not(.register-link):hover,
a:not(.register-link):active,
a:not(.register-link):focus-visible {
  color: var(--cloudhost-blue);
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem 0;
  gap: 0.8rem;
}

.brand-logo {
  height: 28px;
  width: 60px;
  margin-left: 10px;
}

.top strong {
  font-family: Paprika, serif;
  font-weight: 400;
}

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

.hero {
  padding: 1.4rem;
}

.pill {
  display: inline-flex;
  background: var(--cloudhost-blue-muted);
  color: var(--primary);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}

h1 {
  font-family: Paprika, serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: .2rem 0 0;
}

h2 {
  font-family: Paprika, serif;
  color: var(--primary);
  font-weight: 400;
  margin: 0;
}

p.lead {
  color: var(--muted);
}

.disclaimer {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--cloudhost-purple)!important;
}

/* Instruction label under domain field */
.field-label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  margin-top: 1.2rem;
}

input {
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--cloudhost-blue-muted);
  color: var(--text);
}

button.primary {
  border: none;
  border-radius: 14px;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  align-items: stretch;
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.head {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.head-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.head-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.head-note {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
  margin-top: .1rem;
  max-width: none;
}

.body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cloudhost-purple);
}

.muted {
  white-space: pre-line;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: flex-start;
}

.badge-high {
  background: rgba(251, 124, 41, 0.14);
  color: var(--cloudhost-orange);
}

.badge-medium {
  background: rgba(0, 148, 255, 0.16);
  color: var(--cloudhost-blue);
}

.badge-low {
  background: rgba(112, 48, 160, 0.14);
  color: var(--cloudhost-purple);
}

.meta {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

/* Both panels in this row (Summary / Need help?) need to be flex columns,
   same as .card, so their .body can stretch to fill the grid-stretched
   panel height - which is what lets .record-toggle's margin-top: auto
   (below) actually push the toggle down to the bottom of the card instead
   of sitting directly under whatever content happens to be above it. */
.meta.equal .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel {
  padding: 1rem;
}

.summary-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.summary-body pre {
  margin-bottom: 0.6rem;
}

.summary-copy {
  align-self: flex-start;
  border: none;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;

}

.summary-email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.9rem;
  width: 100%;
}

.summary-email-input {
  flex: 1 1 200px;
  min-width: 180px;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

.summary-email-btn {
  margin-top: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.summary-email-status {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.summary-email-status.success {
  color: var(--success, #1a7f37);
}

.summary-email-status.error {
  color: var(--danger);
}

details.panel summary {
  cursor: pointer;
  color: var(--cloudhost-blue);
  font-size: .95rem;
  font-weight: 700;
}

details.panel[open] summary {
  margin-bottom: 1rem;
}

details.panel pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

#support ul {
  margin: 0;
  padding: 0;
}

.error {
  display: none;
  background: rgba(180, 35, 24, .08);
  border: 1px solid rgba(180, 35, 24, .22);
  padding: 1rem;
  border-radius: 14px;
  color: var(--danger);
  margin-top: 1rem;
}

.loading {
  display: none;
  color: var(--muted);
  margin-top: .8rem;
}

.row {
  padding-bottom: 2rem;
}

.status-list {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--text);
}

.status-icon {
  font-weight: 800;
  line-height: 1.3;
}

.status-icon.ok {
  color: var(--success);
}

.status-icon.no {
  color: var(--danger);
}

.record-toggle {
  margin-top: auto;
  padding-top: 1rem;
}

.email-summary-toggle {
  margin-top: auto;
  padding-top: 0;
  width: 100%;
}

.email-summary-toggle .summary-email-row {
  margin-top: 0.7rem;
}

.help-contact-toggle {
  margin-top: auto;
  padding-top: 0;
  width: 100%;
}

.help-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.7rem;
  width: 100%;
}

.help-contact-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

.help-contact-textarea {
  min-height: 90px;
  resize: vertical;
  background: var(--cloudhost-blue-muted);
}

.record-toggle summary {
  cursor: pointer;
  color: var(--cloudhost-blue);
  font-weight: 700;
  font-size: .92rem;
}

.record-toggle pre {
  margin-top: .8rem;
  background: var(--surface2);
  padding: .85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  overflow: hidden;
}
.detail-value {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow: hidden !important;
  max-width: 100% !important;
}

.detail-value {
  color: var(--text);
}

.policy-line {
  margin-top: .9rem;
  color: var(--text);
  font-weight: 700;
}

.explain-line {
  margin: .2rem 0 0;
  color: var(--muted);
}

.records-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.records-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.records-table th,
.records-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box; 
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  text-align: left;
}

}

.records-table th {
  text-align: left;
  font-weight: 700;
  color: var(--text);
}

.records-table td {
  color: var(--text);
}

.records-note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 840px) {
  form,
  .grid,
  .meta,
  .meta.equal {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

.summary-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    align-items: baseline;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 700;
    color: var(--text);
    min-width: 80px;
    flex-shrink: 0;
}

.summary-value {
    color: var(--muted);
}

button.primary,
a.register-link,
.summary-copy,
.record-toggle summary {
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

button.primary:hover,
a.register-link:hover,
.summary-copy:hover {
  filter: brightness(0.96);
}

button.primary:active,
a.register-link:active,
.summary-copy:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.9);
}

button.primary:focus-visible,
a.register-link:focus-visible,
.summary-copy:focus-visible,
.record-toggle summary:focus-visible {
  outline: 2px solid var(--cloudhost-blue);
  outline-offset: 3px;
}

button.primary[disabled],
.summary-copy[disabled] {
  background: var(--cloudhost-blue);
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.8rem;
}

.register-link:hover,
.register-link:focus-visible {
  background: var(--cloudhost-blue);
  color: #fff;
}

.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.8rem;
}


.unregistered-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.unregistered-meta > .panel {
  min-width: 0;
  width: auto;
  margin: 0;
}

