.page-header.dashboard-toolbar, .page-header.builder-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.back-link { color: var(--wpt-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.empty-state { text-align: center; color: #9ca3af; padding: 60px 20px; }
.empty-state i { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.hidden { display: none !important; }
.muted { color: #888; font-size: 0.85rem; }

.website-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 24px; }
.website-card { padding: 0; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.website-card:hover { box-shadow: 0 4px 14px rgba(16,24,40,0.1); transform: translateY(-2px); }
.website-card-thumb { height: 140px; background-size: cover; background-position: center; background-color: #e5e7eb; position: relative; }
.status-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.7rem; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em; }
.status-badge.live { background: rgba(30,132,73,0.9); }
.status-badge.provisioning { background: rgba(185,119,14,0.9); }
.status-badge.generating { background: rgba(47,123,240,0.9); }
.website-card-body { padding: 16px 16px 8px; }
.website-card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.website-card-body p { margin: 2px 0; }
.website-card-actions { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; }
.website-card-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.83rem; white-space: nowrap; }
.website-card-actions .btn i { margin-right: 4px; }
.provisioning-note { margin: 0; padding: 0 16px 14px; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* --- New website / DNS forms (single-page flows, no modal) --- */
.info-form { max-width: 820px; margin: 0 auto; }
.info-form label { display: block; margin: 16px 0 4px; font-weight: 600; font-size: 0.9rem; }
.info-form label:first-of-type { margin-top: 0; }
.info-form h3 { margin: 24px 0 4px; }
.field-hint { margin: 4px 0 0; color: #888; font-size: 0.8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.section-divider { border: none; border-top: 1px solid #e5e7eb; margin: 28px 0; }

.fieldset-reset { border: none; margin: 0; padding: 0; min-width: 0; }
.fieldset-reset:disabled { opacity: 0.55; }
.fieldset-reset:disabled .input,
.fieldset-reset:disabled input,
.fieldset-reset:disabled select,
.fieldset-reset:disabled textarea { cursor: not-allowed; background: #f3f4f6; }

.seo-accordion {
  margin: 20px 0 24px; border-radius: var(--wpt-radius);
  border: 1px solid #cbd8e8; background: #f7faff;
}
.seo-accordion summary {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--wpt-navy);
  list-style: none; border-radius: var(--wpt-radius);
}
.seo-accordion summary::-webkit-details-marker { display: none; }
.seo-accordion summary::after { content: '\f107'; font-family: 'tabler-icons'; margin-left: auto; color: #888; }
.seo-accordion[open] summary::after { content: '\f106'; }
.seo-accordion summary:hover { background: rgba(47,123,240,0.06); }
.seo-accordion[open] summary { border-bottom: 1px solid #cbd8e8; }
.seo-accordion #seo-fields { padding: 6px 18px 20px; }
.seo-accordion #seo-fields label:first-of-type { margin-top: 16px; }

.share-image-preview { margin-top: 10px; max-width: 320px; border-radius: var(--wpt-radius); overflow: hidden; border: 1px solid #e5e7eb; }
.share-image-preview img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #f3f4f6; }

textarea.input { resize: vertical; font-family: inherit; }

/* --- Logo dropzone --- */
.logo-dropzone {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 16px; border: 2px dashed #cbd5e1; border-radius: var(--wpt-radius); background: #fafbfc;
  transition: border-color 0.15s, background 0.15s;
}
.logo-dropzone.dragover { border-color: var(--wpt-accent); background: rgba(47,123,240,0.06); }
.logo-dropzone-preview {
  width: 84px; height: 84px; flex: none; border-radius: var(--wpt-radius);
  background: #fff; border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.logo-dropzone-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-dropzone-placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9ca3af; text-align: center; font-size: 0.7rem; padding: 0 6px; }
.logo-dropzone-placeholder i { font-size: 1.4rem; }
.logo-dropzone-controls { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.logo-dropzone-controls .input { margin: 0; }
.logo-dropzone-controls .btn { align-self: flex-start; }

/* --- Brand color live preview --- */
.color-editor { margin-top: 8px; }
.color-row { display: flex; gap: 24px; }
.color-field { display: flex; flex-direction: column; gap: 4px; }
.color-field label { margin: 0; font-weight: 500; font-size: 0.85rem; }
.color-field input[type="color"] { width: 56px; height: 36px; padding: 2px; border: 1px solid #ccc; border-radius: var(--wpt-radius); cursor: pointer; }

.brand-preview {
  margin-top: 12px; border-radius: var(--wpt-radius); overflow: hidden;
  border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(16,24,40,0.06);
}
.brand-preview-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: #2563eb; transition: background-color 0.15s;
}
.brand-preview-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.brand-preview-links { color: rgba(255,255,255,0.85); font-size: 0.78rem; }
.brand-preview-body { padding: 28px 18px; text-align: center; background: #fff; }
.brand-preview-heading { margin: 0 0 14px; font-size: 1.1rem; font-weight: 600; color: #111827; transition: color 0.15s; }
.brand-preview-btn {
  border: none; border-radius: 999px; padding: 9px 22px; font-weight: 600; font-size: 0.85rem;
  background: #f59e0b; color: #fff; cursor: default; transition: background-color 0.15s;
}

/* --- SEO tags chip input --- */
.tag-input {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 10px; border: 1px solid #ccc; border-radius: var(--wpt-radius); background: #fff;
}
.tag-input:focus-within { border-color: var(--wpt-accent); }
.tag-list { display: contents; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: rgba(47,123,240,0.12); color: var(--wpt-navy); white-space: nowrap;
}
.tag-pill button {
  border: none; background: rgba(0,0,0,0.08); color: inherit; border-radius: 50%;
  width: 16px; height: 16px; font-size: 0.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.tag-pill button:hover { background: rgba(0,0,0,0.18); }
.tag-input-field { flex: 1; min-width: 140px; border: none; outline: none; padding: 4px 2px; font: inherit; }

.notice-banner {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
  padding: 12px 14px; border-radius: var(--wpt-radius);
  background: #fef9c3; color: #854d0e; font-size: 0.85rem; line-height: 1.4;
}
.notice-banner i { flex: none; margin-top: 1px; }
.notice-banner-error { background: #fee2e2; color: #991b1b; margin: 14px 0 0; }

.dns-section { margin-bottom: 16px; }
.dns-section h3 { margin-top: 0; }
.dns-value { font-family: monospace; font-size: 1rem; background: #f3f4f6; padding: 8px 12px; border-radius: var(--wpt-radius); display: inline-block; }
.dns-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.dns-table th, .dns-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; font-family: monospace; font-size: 0.9rem; }
/* Type/Host/Status hug their content on one line; Points to (the CDN
   hostname) takes whatever space is left and wraps if it needs to. */
.dns-table th:nth-child(1):not([colspan]), .dns-table td:nth-child(1):not([colspan]),
.dns-table th:nth-child(2):not([colspan]), .dns-table td:nth-child(2):not([colspan]),
.dns-table th:nth-child(4):not([colspan]), .dns-table td:nth-child(4):not([colspan]) {
  width: 1%;
  white-space: nowrap;
}
.dns-table th:nth-child(3), .dns-table td:nth-child(3):not([colspan]) { word-break: break-all; }
/* Extra breathing room between one DNS entry and the next (e.g. root vs
   "www" for an apex domain) - only above the start of a new entry, not
   between a record and its own note/disclaimer rows right below it. */
.dns-record-gap td { padding-top: 20px; }
.dns-record-note { font-family: inherit !important; font-style: italic; font-size: 0.78rem !important; padding-top: 0 !important; padding-bottom: 12px !important; }
.dns-disclaimer-cell { padding-top: 0 !important; padding-bottom: 12px !important; }
.dns-disclaimer {
  display: flex; align-items: flex-start; gap: 6px;
  font-family: inherit; font-weight: 600; font-size: 0.78rem;
  color: #a16207;
}
.dns-disclaimer i { flex: none; margin-top: 1px; }
.dns-verify-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.dns-status { font-weight: 600; }
.dns-status-ok { color: var(--wpt-success); }
.dns-status-fail { color: var(--wpt-error); }
.dns-status-resolving { color: #2563eb; }

/* --- Overview page --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card { padding: 16px; border: 1px solid #e5e7eb; border-radius: var(--wpt-radius); }
.stat-card-value { font-size: 1.75rem; font-weight: 700; }
.stat-card-label { font-size: 0.8rem; color: #888; }

.placeholder-card { text-align: center; padding: 60px 20px; color: #9ca3af; }
.placeholder-card i { font-size: 2.4rem; display: block; margin-bottom: 12px; }