:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1f2329;
  --muted: #646a73;
  --line: #dee0e3;
  --primary: #3370ff;
  --primary-strong: #245bdb;
  --green: #14b881;
  --yellow: #f5a623;
  --red: #f54a45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  height: 64px;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand img {
  height: 32px;
  width: 32px;
}

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

.nav a,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  padding: 0 14px;
}

.nav a:hover {
  background: #eff1f5;
}

.button {
  background: var(--primary);
  color: white;
}

.button:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 32px 40px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

h1 {
  font-size: 56px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 18px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 620px;
}

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

.workspace-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(31, 35, 41, 0.12);
  overflow: hidden;
}

.preview-head {
  align-items: center;
  background: #f2f3f5;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
}

.dot {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.dot.red {
  background: var(--red);
}

.dot.yellow {
  background: var(--yellow);
}

.dot.green {
  background: var(--green);
}

.preview-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}

.side {
  background: #fbfcff;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.side-item,
.task-row {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
}

.side-item.active {
  background: #e8efff;
  color: var(--primary);
  font-weight: 700;
}

.preview-main {
  padding: 18px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 22px;
}

.metric span,
.task-row span,
.form-note,
.message {
  color: var(--muted);
  font-size: 13px;
}

.task-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.task-row {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}

.task-row:last-child {
  border-bottom: 0;
}

.status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.status.ready {
  background: #e4f7ef;
  color: #0b7f5a;
}

.status.check {
  background: #fff3d6;
  color: #8f5b00;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.auth-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(31, 35, 41, 0.1);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 6px;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  height: 42px;
  padding: 0 12px;
  width: 100%;
}

input:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(51, 112, 255, 0.16);
}

form .button {
  border: 0;
  cursor: pointer;
  margin-top: 18px;
  width: 100%;
}

.message {
  margin-top: 14px;
  min-height: 20px;
}

.message.error {
  color: var(--red);
}

.message.success {
  color: var(--green);
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 18px;
  }

  .nav a:not(.button) {
    display: none;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .side {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

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