:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5c6675;
  --line: #d8e0ea;
  --accent: #be4a2f;
  --accent-strong: #913821;
  --success: #16794c;
  --warning: #9a5b13;
  --soft: #fff0eb;
  --info: #e8f1ff;
  --shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 44px;
}

.nav,
.card,
.stat,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 16px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.links,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: white;
  color: var(--ink);
}

button.button {
  cursor: pointer;
  font: inherit;
}

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

.hero,
.grid,
.two-col {
  display: grid;
  gap: 14px;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 14px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
}

.card,
.stat,
.panel {
  padding: 20px;
}

.stack {
  display: grid;
  gap: 10px;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

p,
li,
small {
  color: var(--muted);
  line-height: 1.5;
}

.auth-status {
  margin: 0;
  text-align: right;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font: inherit;
}

.upload-box {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.app-preview-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

label span {
  color: var(--ink);
  font-weight: 700;
}

.session-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.checklist {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 20px, 460px);
  }

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

  .nav-meta {
    justify-items: start;
  }

  .auth-status {
    text-align: left;
  }

  .links a,
  .button {
    flex: 1 1 auto;
  }
}
