:root {
  --bg: #f5f3ef;
  --card: #fffdf9;
  --ink: #1f1b16;
  --muted: #6f6458;
  --accent: #0e8f6d;
  --warn: #b34022;
  --line: #e6ddd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #fff5dd 0, transparent 45%),
    radial-gradient(circle at 80% 0%, #d3f2e7 0, transparent 35%),
    var(--bg);
}

.shell {
  width: min(1200px, 92vw);
  margin: 20px auto;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tabs a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  margin-left: 8px;
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(24, 18, 9, 0.04);
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.metric:last-child {
  border-bottom: 0;
}

.hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #efe7dd;
}

.title {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.login {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input, button, select, textarea {
  border: 1px solid #cfc2b2;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

button {
  background: var(--accent);
  color: white;
  border: 0;
  cursor: pointer;
}

button.secondary {
  background: #f0ece7;
  color: var(--ink);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  font-size: 0.95rem;
  text-align: left;
}

.muted {
  color: var(--muted);
}

.warning {
  color: var(--warn);
}

.canvas-wrap {
  position: relative;
}

canvas.overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
