:root {
  color-scheme: light;
  --bg: #f8f8f6;
  --panel: #ffffff;
  --panel-soft: #f1f1ee;
  --ink: #181a1b;
  --muted: #666b70;
  --subtle: #8a8f94;
  --line: #deded8;
  --line-strong: #c9cac3;
  --accent: #1f5f46;
  --accent-dark: #174934;
  --accent-soft: #edf6f1;
  --secondary: #52677d;
  --secondary-soft: #eef3f7;
  --ok: #1f6f4a;
  --ok-soft: #edf7f1;
  --wait: #b7791f;
  --wait-soft: #fff7e6;
  --late: #c66a1a;
  --late-soft: #fff1e8;
  --danger: #a33a2f;
  --danger-soft: #fff0ef;
  --shadow: 0 1px 2px rgba(24, 26, 27, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(#ffffff 0, #f8f8f6 220px),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 650;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.container {
  margin: 0 auto;
  max-width: 1120px;
  padding: 34px 24px 64px;
}

.dashboard-header,
.setup-header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.setup-header {
  align-items: start;
  display: block;
  max-width: 780px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 2.75rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 4px;
}

.kicker,
.section-label {
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 620px;
}

[data-live-time].is-stale {
  color: var(--late);
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  margin: 24px 0 42px;
}

.landing-hero h1 {
  max-width: 760px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-snapshot,
.landing-steps article,
.pricing-grid article,
.beta-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.landing-snapshot {
  display: grid;
  gap: 0;
  padding: 8px 16px;
}

.snapshot-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 16px 0;
}

.snapshot-row:first-child {
  border-top: 0;
}

.snapshot-row strong {
  display: block;
  font-size: 0.95rem;
}

.snapshot-row p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 2px 0 0;
}

.danger-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.landing-section {
  margin-top: 34px;
}

.landing-section > p:not(.section-label),
.landing-section li,
.landing-split p,
.beta-panel p,
.pricing-grid p {
  color: var(--muted);
}

.landing-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-steps article,
.pricing-grid article {
  padding: 16px;
}

.landing-steps span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  margin-bottom: 14px;
  width: 24px;
}

.landing-steps p,
.pricing-grid p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.landing-split {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beta-panel {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px;
}

.beta-panel p {
  margin-bottom: 0;
  max-width: 640px;
}

.price {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.status-note {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 720px;
}

.section {
  margin-top: 30px;
}

.section-split {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.section-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.overview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 26px;
}

.overview-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 70px;
  padding: 12px;
}

.overview-label {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.overview-item strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1;
}

.monitor-list {
  display: grid;
  gap: 10px;
}

.monitor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 13px;
  padding: 14px 16px;
}

.monitor-card:hover {
  border-color: var(--line-strong);
}

.monitor-main,
.monitor-footer,
.monitor-name-row,
.monitor-meta,
.actions,
.command-panel-header,
.url-panel {
  align-items: center;
  display: flex;
}

.monitor-main {
  gap: 11px;
  min-width: 0;
}

.status-dot {
  background: var(--subtle);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--panel-soft);
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.monitor-title {
  min-width: 0;
  width: 100%;
}

.monitor-name-row {
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.monitor-name-row h3 {
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-name-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.monitor-name-row h3 a:hover {
  color: var(--accent);
}

.monitor-meta {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 7px 12px;
  margin-top: 5px;
}

.monitor-meta span {
  min-width: 0;
}

.status-badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  padding: 5px 8px;
}

.monitor-command,
.url-panel {
  background: #fbfbfa;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.ping-label {
  color: #2d3338;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  overflow: hidden;
  padding: 6px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.url-panel code {
  color: #2d3338;
  display: block;
  font-size: 0.82rem;
  overflow: hidden;
  padding: 6px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-footer {
  color: var(--muted);
  font-size: 0.82rem;
  justify-content: space-between;
}

.actions {
  gap: 4px;
}

.tone-healthy.monitor-card {
  border-left-color: var(--ok);
}

.tone-healthy .status-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.tone-healthy .status-badge {
  color: var(--ok);
}

.tone-waiting.monitor-card {
  border-left-color: var(--wait);
}

.tone-waiting .status-dot {
  background: var(--wait);
  box-shadow: 0 0 0 4px var(--wait-soft);
}

.tone-waiting .status-badge {
  color: var(--wait);
}

.tone-late.monitor-card {
  border-left-color: var(--late);
}

.tone-late .status-dot {
  background: var(--late);
  box-shadow: 0 0 0 4px var(--late-soft);
}

.tone-late .status-badge {
  color: var(--late);
}

.tone-failed.monitor-card {
  border-left-color: var(--danger);
}

.tone-failed .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.tone-failed .status-badge {
  color: var(--danger);
}

.tone-text-healthy {
  color: var(--ok);
}

.tone-text-waiting {
  color: var(--wait);
}

.tone-text-late {
  color: var(--late);
}

.tone-text-failed {
  color: var(--danger);
}

.tone-text-paused {
  color: var(--muted);
}

.tone-paused.monitor-card {
  border-left-color: var(--subtle);
  opacity: 0.78;
}

form {
  margin: 0;
}

button,
.button {
  appearance: none;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.button,
.copy-button,
.quiet-button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary,
.quiet-button,
.copy-button {
  background: white;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.secondary:hover,
.quiet-button:hover,
.copy-button:hover {
  background: var(--panel-soft);
}

.button.danger {
  background: white;
  border-color: #d9aaa4;
  color: var(--danger);
}

.button.danger:hover {
  background: var(--danger-soft);
}

.copy-button {
  min-width: 68px;
}

.copy-button.large {
  min-height: 38px;
  min-width: 124px;
}

.copy-button.is-copied {
  background: var(--ok-soft);
  border-color: #b9e2ca;
  color: var(--ok);
}

.quiet-button {
  color: var(--muted);
  min-height: 30px;
  padding: 5px 9px;
}

.quiet-button.danger:hover {
  background: var(--danger-soft);
  border-color: #f2b7b2;
  color: var(--danger);
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0;
}

.link-button:hover {
  color: var(--ink);
}

.create-panel,
.education-panel,
.example-card,
.form-panel,
.command-panel,
.url-panel,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.create-panel {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  margin-top: 34px;
  padding: 18px;
}

.education-panel {
  margin: 20px 0 12px;
  padding: 18px;
}

.education-panel h2 {
  max-width: 680px;
}

.education-panel p:not(.section-label) {
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 760px;
}

.create-copy p:last-child {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 340px;
}

.monitor-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
}

.field {
  color: #383c40;
  display: grid;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 6px;
}

.field-wide {
  grid-column: span 3;
}

.field small {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 500;
}

.field-action {
  grid-column: 1 / -1;
  justify-self: start;
}

input {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: 0;
}

.flash {
  background: var(--wait-soft);
  border: 1px solid #f4d28f;
  border-radius: 8px;
  color: #7c5415;
  margin: 0 0 18px;
  padding: 11px 13px;
}

.flash.error {
  background: var(--danger-soft);
  border-color: #f2b7b2;
  color: var(--danger);
}

.empty-state {
  padding: 28px;
}

.empty-state p:not(.kicker) {
  color: var(--muted);
  max-width: 460px;
}

.auth-shell {
  margin: 80px auto 0;
  max-width: 420px;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.command-panel {
  margin-top: 24px;
  padding: 16px;
}

.command-panel-header,
.url-panel {
  justify-content: space-between;
}

.command-block {
  background: #111416;
  border-radius: 7px;
  color: #f7f7f2;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  padding: 16px;
  white-space: pre-wrap;
}

.command-block.compact {
  font-size: 0.82rem;
  margin-top: 10px;
  padding: 12px;
}

.examples-section {
  margin-top: 18px;
}

.examples-heading {
  margin-bottom: 10px;
}

.examples-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-card {
  padding: 14px;
}

.example-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.example-card-header h3 {
  margin-bottom: 0;
}

.example-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.setup-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.setup-steps article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.setup-steps span {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  margin-bottom: 14px;
  width: 24px;
}

.setup-steps p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.url-panel {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
}

.url-panel div {
  min-width: 0;
}

.url-panel .section-label {
  margin-bottom: 2px;
}

.page-actions {
  margin-top: 18px;
}

.detail-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.inline-status {
  margin-left: 4px;
  vertical-align: middle;
}

.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 10px 0;
}

.detail-list div:first-child {
  border-top: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-actions {
  align-items: stretch;
  flex-direction: column;
}

.detail-actions .button,
.detail-actions form {
  width: 100%;
}

@media (max-width: 860px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-header,
  .detail-header,
  .section-split,
  .command-panel-header,
  .monitor-footer,
  .url-panel {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 2.2rem;
  }

  .overview-grid,
  .setup-steps,
  .landing-steps {
    grid-template-columns: 1fr 1fr;
  }

  .create-panel,
  .detail-grid,
  .examples-grid,
  .landing-hero,
  .landing-split,
  .monitor-form {
    grid-template-columns: 1fr;
  }

  .beta-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .field-wide,
  .field-action {
    grid-column: auto;
  }

  .field-action {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .overview-grid,
  .setup-steps,
  .landing-steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .monitor-command {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }
}
