:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #15171c;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #00a6a6;
  --accent-strong: #007f7f;
  --danger: #e84a5f;
  --ok: #0f9f6e;
  --shadow: 0 18px 55px rgba(18, 25, 38, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

.topbar div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.topbar strong {
  font-size: 16px;
}

.topbar span,
.topbar a {
  color: var(--muted);
  font-size: 14px;
}

.topbar nav {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.sidebar,
.workspace {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sidebar {
  min-height: calc(100vh - 120px);
  padding: 28px;
}

.workspace {
  min-height: calc(100vh - 120px);
  padding: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 24px;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  transform: translateY(-50%);
}

.steps li.active {
  border-color: var(--accent);
  color: var(--ink);
  background: #effdfb;
}

.steps li.done {
  color: var(--ok);
}

.steps li.done::before {
  background: var(--ok);
  border-color: var(--ok);
}

.status-strip {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
  background: #fbfcfe;
}

.status-strip div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-strip span {
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
}

.dot.connected {
  background: var(--ok);
}

.view {
  display: none;
  padding: 8px 2px;
}

.view.active {
  display: block;
}

.view-copy {
  max-width: 780px;
  margin-bottom: 22px;
}

.account-card,
.upload-zone,
.review-grid,
.result,
.form-grid {
  border: 1px solid var(--line);
  background: #fff;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  max-width: 560px;
}

.account-card span,
.review-grid span,
.result span,
.upload-zone small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #111318;
  color: #fff;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 42px;
  border: 1px solid #111318;
  background: #111318;
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: #111318;
}

.button.publish {
  background: var(--accent);
  border-color: var(--accent);
}

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

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 210px;
  max-width: 620px;
  border-style: dashed;
  cursor: pointer;
}

.upload-zone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}

.upload-zone span {
  font-weight: 900;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
  max-width: 760px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 860px;
}

.review-grid div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.review-grid div:last-child {
  border-right: 0;
}

pre {
  max-width: 860px;
  min-height: 170px;
  margin: 18px 0 0;
  padding: 16px;
  overflow: auto;
  background: #111318;
  color: #d8fff8;
  font-size: 13px;
  line-height: 1.5;
}

.result {
  max-width: 520px;
  padding: 14px 16px;
  margin-top: 18px;
  border-color: rgba(15, 159, 110, 0.35);
  background: #eefbf6;
}

.page {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 20px;
  line-height: 1.55;
}

.hero,
.panel,
.links {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 18px;
}

.links {
  display: flex;
  gap: 14px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    height: auto;
    padding: 16px;
    flex-direction: column;
  }

  .topbar div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sidebar,
  .workspace {
    min-height: auto;
  }

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

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