:root {
  --cream: #f3eee4;
  --ink: #1c1915;
  --green: #1e4d3a;
  --terra: #c85b32;
  --card: #fffcf7;
  --line: #e3d7c6;
  --muted: #6f675e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Outfit, "Avenir Next", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; }
.kicker { letter-spacing: .14em; text-transform: uppercase; color: var(--terra); font-size: 12px; font-weight: 600; }
.login { width: min(420px, calc(100% - 32px)); margin: 10vh auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: grid; gap: 12px; }
.login h1 { margin: 0 0 8px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, select, textarea { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { min-height: 80px; resize: vertical; }
button { background: var(--green); color: #f4efe6; border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.warn { background: var(--terra); }
.error { color: #8d2d24; margin: 0; }
#shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
aside { background: var(--green); color: #f4efe6; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.brand { color: #f4efe6; text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 22px; }
aside nav { display: grid; gap: 4px; }
aside button { text-align: left; background: transparent; color: #f4efe6; }
aside button.on { background: #f4efe6; color: var(--green); }
main { padding: 28px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card, .table-wrap, .editor { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.card strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 32px; }
.card span { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.checks { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 4px; background: #fff; }
.checks label { display: flex; gap: 8px; align-items: center; }
.phone { background: #1c1915; border-radius: 32px; padding: 12px; }
.screen { background: var(--cream); border-radius: 22px; min-height: 440px; padding: 16px; }
.ad-card { background: #fffcf7; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.ad-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.tag { color: var(--terra); font-size: 12px; font-weight: 600; }
.muted { color: var(--muted); }
#toast { position: fixed; bottom: 16px; right: 16px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; }
#toast.bad { background: #8d2d24; }
@media (max-width: 980px) {
  #shell { grid-template-columns: 1fr; }
  aside nav { grid-auto-flow: column; overflow: auto; }
  .cards, .layout { grid-template-columns: 1fr; }
}
