:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #12202a;
  --muted: #667784;
  --line: #d9e3e8;
  --panel: #ffffff;
  --soft: #f5f8fa;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e8f7f4;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(18, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f6f8;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 18px;
  background: linear-gradient(180deg, #0d2233, #122d3a);
  color: #f8fafc;
}

.sidebar h1,
.topbar h2,
.demo-header h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.sidebar h1 {
  font-size: 25px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6b7d83;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #8ec5be;
}

.nav-tabs {
  display: grid;
  gap: 7px;
}

.nav-tabs button,
.button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
}

.nav-tabs button {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: #c9d8dc;
  text-align: left;
}

.nav-tabs button.active,
.nav-tabs button:hover {
  background: rgba(15, 143, 135, 0.18);
  color: #ffffff;
}

.plan-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(185, 200, 212, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.plan-card span,
.plan-card strong {
  display: block;
}

main {
  min-width: 0;
  padding: 26px;
}

.topbar,
.toolbar,
.widget-config,
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 32, 42, 0.04);
}

.toolbar-caption {
  margin: 4px 0 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
}

.button.ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
  box-shadow: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric,
.panel,
.item-card,
.editor-panel,
.list-panel,
.preview-frame,
.code-sample {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.metric {
  padding: 18px;
  box-shadow: 0 10px 28px rgba(18, 32, 42, 0.04);
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 8px 0;
  font-size: 32px;
}

.panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #b9ded9;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #ecfaf7);
  box-shadow: var(--shadow);
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-heading h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 34px;
}

.dashboard-heading h3 span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 13px;
}

.dashboard-heading p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 24px;
}

.setup-timeline,
.dashboard-rail {
  display: grid;
  gap: 14px;
}

.setup-timeline {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-strip h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.hero-strip p:not(.eyebrow) {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.setup-score {
  display: grid;
  place-items: center;
  min-height: 128px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d7ebe8;
}

.setup-score span {
  color: var(--accent-strong);
  font-size: 36px;
  font-weight: 850;
}

.setup-score small {
  color: var(--muted);
}

.two-col,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 18px;
}

.setup-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 16px;
}

.setup-steps {
  display: grid;
  gap: 10px;
}

.setup-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  position: relative;
  min-height: 112px;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.setup-step.complete {
  border-color: var(--line);
  background: #ffffff;
}

.setup-step:last-child {
  border-bottom: 0;
}

.setup-step .step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9f98, #08756f);
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
}

.setup-step strong {
  display: block;
  font-size: 20px;
}

.setup-step p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.setup-step button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.progress-card,
.next-card,
.sync-health-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--progress), #e8eef2 0);
}

.progress-ring span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.progress-card strong,
.next-card strong,
.sync-health-card strong {
  display: block;
  font-size: 18px;
}

.progress-card p,
.next-card p,
.sync-health-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.sync-health-card {
  grid-template-columns: 1fr;
}

.sync-health-grid,
.schedule-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sync-health-grid span,
.schedule-status span {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: #f3f7f9;
  color: var(--muted);
  font-size: 12px;
}

.sync-health-grid strong,
.schedule-status strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.toggle-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 650;
}

.social-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-account-grid label:last-of-type,
.social-account-grid button {
  align-self: end;
}

.social-account-picker {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.social-account-picker button {
  max-width: 360px;
}

.social-account-option {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-weight: 800;
}

.social-account-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--teal);
}

.social-account-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.social-account-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.managed-events {
  display: grid;
  gap: 8px;
}

.managed-events ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.managed-events code {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eef3f7;
  color: var(--ink);
}

.registered-webhook {
  color: var(--ink) !important;
}

.next-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9f98, #08756f);
  color: #ffffff;
  font-size: 28px;
  font-weight: 850;
}

.link-button {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 850;
}

.placeholder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.placeholder-panel h3 {
  margin: 0;
  font-size: 30px;
}

.placeholder-panel p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder-list {
  display: grid;
  gap: 10px;
}

.placeholder-list span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 750;
}

.widget-library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.widget-library-item strong {
  display: block;
  margin-bottom: 6px;
}

.widget-library-item .button,
.widget-library-item .icon-button {
  white-space: nowrap;
}

.logs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.logs-heading h3 {
  margin: 0;
  font-size: 32px;
}

.logs-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.logs-list {
  display: grid;
  gap: 16px;
}

.logs-subheading {
  margin-top: 18px;
}

.logs-subheading h3 {
  margin: 0;
}

.logs-subheading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.sync-log-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sync-log-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sync-log-header h4 {
  margin: 10px 0 4px;
  font-size: 22px;
}

.sync-log-header p {
  margin: 0;
  color: var(--muted);
}

.log-items {
  display: grid;
}

.log-items div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(140px, 240px);
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.log-items div:last-child {
  border-bottom: 0;
}

.webhook-event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.webhook-event-card.empty {
  background: #f8fafc;
}

.webhook-event-card strong,
.webhook-event-card small {
  display: block;
  margin-top: 5px;
}

.webhook-event-card small,
.webhook-event-card time {
  color: var(--muted);
}

.log-items small {
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.settings-card,
.payload-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.settings-card h3,
.payload-panel h3 {
  margin: 0;
  font-size: 24px;
}

.settings-card p:not(.eyebrow),
.payload-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payload-panel pre {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #0d2233;
  color: #d9f7f2;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.import-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.import-summary.empty {
  background: #f8fafc;
}

.import-summary.empty p {
  margin: 6px 0 0;
  color: var(--muted);
}

.import-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.import-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 8px;
  width: 100%;
}

.import-counts span {
  display: grid;
  min-width: 82px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f3f7f8;
  color: var(--muted);
  font-size: 12px;
}

.import-counts span:nth-child(1),
.import-counts span:nth-child(2),
.import-counts span:nth-child(3) {
  background: #edf9f6;
}

.import-counts span:nth-child(4) {
  background: #f8fafc;
}

.import-counts span:nth-child(5) {
  background: #fff1f1;
}

.import-counts strong {
  color: var(--ink);
  font-size: 20px;
}

.import-items {
  display: grid;
  gap: 8px;
}

.import-items div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(120px, 220px);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.import-items small {
  color: var(--muted);
}

.activity-list,
.list-panel {
  display: grid;
  gap: 10px;
}

.activity-item,
.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item small,
.item-card p,
label small {
  display: block;
  color: var(--muted);
}

.list-panel {
  padding: 12px;
}

.item-card {
  padding: 16px;
}

.item-card h4,
.toolbar h3,
.editor-panel h3 {
  margin: 0 0 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9f0f3;
  color: #33545c;
  font-size: 12px;
  font-weight: 800;
}

.badge.published {
  background: #dff7ed;
  color: #067647;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  padding: 0 10px;
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

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

.editor-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cdd7dd;
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #9bd8cf;
  border-radius: var(--radius);
  background: #e7f8f5;
  color: #0f5f59;
  font-weight: 750;
}

.widget-config {
  justify-content: flex-start;
  margin: 16px 0;
}

.widget-config label {
  min-width: 220px;
}

.code-sample {
  margin-bottom: 16px;
  padding: 14px;
  color: #24444c;
  white-space: pre-wrap;
}

.preview-frame {
  overflow: hidden;
  padding: 14px;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid #9bd8cf;
  border-radius: 10px;
  background: #ecfaf7;
}

.properties-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.properties-heading h3 {
  margin: 0;
  font-size: 32px;
}

.properties-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e6f1f1;
  color: var(--accent-strong);
  font-weight: 850;
}

.search-box {
  position: relative;
  min-width: 280px;
  font-weight: 500;
}

.search-box span {
  position: absolute;
  left: 14px;
  top: 10px;
  color: #91a0ab;
  pointer-events: none;
}

.search-box input {
  padding-left: 68px;
}

.review-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-filters label {
  min-width: 170px;
  color: #526474;
  font-size: 12px;
}

.review-filters select {
  min-height: 40px;
  background: #ffffff;
  color: var(--ink);
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.property-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin: 26px 0 16px;
}

.property-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4b5d6b;
  cursor: pointer;
  font-weight: 700;
}

.property-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.property-tabs .filter-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.properties-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.properties-table th,
.properties-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  text-align: left;
  vertical-align: middle;
}

.properties-table th {
  color: #6a7a88;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.properties-table tbody tr:hover td {
  background: #fbfdfd;
}

.properties-table td strong,
.properties-table td a {
  display: block;
}

.property-title-link {
  color: var(--ink) !important;
  font-weight: 850;
}

.properties-table td a {
  margin-top: 6px;
  color: var(--accent-strong);
  text-decoration: none;
}

.property-thumb {
  width: 88px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
  background: #dce5e8;
}

.detail-page {
  background: #f3f6f8;
}

.detail-page-root {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.detail-hero,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #dce5e8;
}

.detail-hero h1 {
  margin: 0;
  font-size: 38px;
}

.detail-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  margin: 0 0 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill.published {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.draft {
  background: #eef3f7;
  color: #667784;
}

.status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  color: #667784;
  cursor: pointer;
  user-select: none;
}

.status-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-toggle span {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e8eef3;
  transition: background 160ms ease, border-color 160ms ease;
}

.status-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  transition: transform 160ms ease;
}

.status-toggle strong {
  font-size: 14px;
  font-weight: 850;
}

.status-toggle.is-published {
  color: #15803d;
}

.status-toggle input:checked + span {
  border-color: #11a393;
  background: #11a393;
}

.status-toggle input:checked + span::after {
  transform: translateX(20px);
}

.status-toggle input:focus-visible + span {
  outline: 3px solid rgba(17, 163, 147, 0.25);
  outline-offset: 2px;
}

.status-toggle input:disabled + span,
.status-toggle input:disabled ~ strong {
  opacity: 0.65;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: var(--muted);
}

.table-footer div {
  display: flex;
  gap: 10px;
}

.sync-banner strong,
.sync-banner span {
  display: block;
}

.sync-banner span {
  margin-top: 4px;
  color: var(--muted);
}

.items-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.items-table th,
.items-table td {
  min-width: 170px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.items-table th:first-child,
.items-table td:first-child {
  min-width: 220px;
}

.items-table th:nth-child(2),
.items-table td:nth-child(2) {
  min-width: 140px;
}

.items-table th:last-child,
.items-table td:last-child {
  min-width: 150px;
  border-right: 0;
}

.items-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafb;
  color: #36515a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  text-align: left;
}

.items-table tbody tr:hover td {
  background: #fbfdfd;
}

.items-table tr:last-child td {
  border-bottom: 0;
}

.items-table input,
.items-table select,
.items-table textarea {
  min-height: 36px;
  border-color: #e2e8ee;
  background: #f8fafc;
}

.items-table textarea {
  min-height: 62px;
}

.items-table input:focus,
.items-table select:focus,
.items-table textarea:focus {
  outline: 2px solid #9bd8cf;
  background: #ffffff;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.demo-page {
  background: #ffffff;
}

.demo-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.dsb-widget-root {
  display: block;
  margin: 20px 0;
}

.dsb-section {
  --dsb-accent: #0f766e;
  --dsb-bg-image: none;
  color: #111827;
}

.dsb-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.dsb-width-narrow .dsb-inner {
  width: min(760px, calc(100% - 40px));
}

.dsb-width-wide .dsb-inner {
  width: min(1180px, calc(100% - 40px));
}

.dsb-space-compact .dsb-inner {
  padding-block: 34px;
}

.dsb-space-spacious .dsb-inner {
  padding-block: 78px;
}

.dsb-align-center {
  text-align: center;
}

.dsb-bg-soft {
  background: #f3f7f8;
}

.dsb-bg-contrast {
  position: relative;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(10, 25, 30, 0.82), rgba(10, 25, 30, 0.42)), var(--dsb-bg-image) center/cover;
}

.dsb-section h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.dsb-section p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.dsb-align-center p,
.dsb-align-center h2 {
  margin-left: auto;
  margin-right: auto;
}

.dsb-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--dsb-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.dsb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--dsb-accent);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

.dsb-card-grid {
  display: grid;
  grid-template-columns: repeat(var(--dsb-columns), minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.dsb-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.dsb-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.dsb-card-mark {
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--dsb-accent);
}

.dsb-card h3 {
  margin: 0 0 8px;
}

.dsb-card p {
  margin: 0;
  font-size: 15px;
}

.dsb-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.dsb-details-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.dsb-details-grid dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #dce5e8;
}

.dsb-details-grid dt {
  color: #63727a;
  font-weight: 850;
}

.dsb-details-grid dd {
  margin: 0;
}

.dsb-quote-box {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.dsb-quote-box img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.dsb-quote-box blockquote {
  max-width: 780px;
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.dsb-quote-box cite {
  font-style: normal;
  font-weight: 850;
}

.dsb-quote-box cite span {
  display: block;
  color: #63727a;
  font-weight: 650;
}

.dsb-fallback .dsb-inner {
  padding: 24px;
  border: 1px dashed #bac6cc;
  border-radius: 8px;
  background: #f8fafc;
}

.property-page {
  background: #ffffff;
}

.property-hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(12, 27, 32, 0.84), rgba(12, 27, 32, 0.36)), var(--property-image) center/cover;
}

.property-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.property-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.property-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.property-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.55;
}

.property-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.property-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 42px;
}

.property-policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -22px 0 42px;
}

.property-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.property-stat span,
.amenity-list span {
  display: block;
  color: var(--muted);
}

.property-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.property-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
}

.property-main-grid h2 {
  margin: 0;
  font-size: 38px;
}

.property-main-grid article p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.65;
}

.amenity-list {
  display: grid;
  gap: 12px;
}

.amenity-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .app-shell,
  .hero-strip,
  .dashboard-grid,
  .settings-grid,
  .placeholder-panel,
  .two-col,
  .content-grid,
  .setup-step,
  .dsb-details-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .metric-grid,
  .dsb-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sync-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-heading,
  .heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-step,
  .progress-card,
  .next-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .properties-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .logs-heading,
  .sync-log-header {
    align-items: stretch;
    flex-direction: column;
  }

  .property-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .toolbar,
  .toolbar-actions,
  .review-filters,
  .sync-banner,
  .properties-heading,
  .title-row,
  .import-summary-header,
  .widget-config,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .dsb-card-grid,
  .hero-strip,
  .dashboard-grid,
  .property-stat-grid,
  .property-policy-strip,
  .detail-grid,
  .import-items div,
  .log-items div,
  .dsb-details-grid dl div {
    grid-template-columns: 1fr;
  }

  .hero-strip h3 {
    font-size: 22px;
  }

  .property-main-grid {
    grid-template-columns: 1fr;
  }

  .dsb-section h2 {
    font-size: 34px;
  }
}
