/* edit.byjonty.com — the byjonty palette, so the tool reads as the same
   product as the site. Tokens copied from public/styles.css; if they ever
   disagree, the site's stylesheet wins. */

:root {
  --mist: #E7EAEA;
  --mist-top: #DDE4E6;
  --paper: #FFFFFF;

  --ink: #17242C;
  --muted: #5E727B;
  --faint: #8CA0A8;

  --red: #C6432A;
  --red-lt: #E0603F;
  --olive: #8F8654;
  --slate: #6F93A0;

  --line: rgba(23, 36, 44, 0.12);
  --line-strong: rgba(23, 36, 44, 0.2);

  --r: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: "Titillium Web", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mist-top) 0%, var(--mist) 46%, #EDEEEE 100%);
  background-attachment: fixed;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

/* ---------- head ---------- */

.head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.head__name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.head__note { font-size: 14px; color: var(--muted); }

/* ---------- controls ---------- */

.bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(40, 60, 72, 0.08);
}

.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.field--narrow { flex: 0 1 190px; }

.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field select {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  width: 100%;
}

.field input[type="file"] { font-size: 13px; color: var(--muted); min-height: 44px; width: 100%; }
.field input[type="range"] { width: 100%; accent-color: var(--red); min-height: 44px; }

.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.status {
  margin: 0;
  font-size: 14px;
  color: #3F4A50;
  background: rgba(143, 134, 84, 0.14);
  border-left: 3px solid var(--olive);
  padding: 10px 14px;
  border-radius: 0 var(--r) var(--r) 0;
}

.status--bad { background: rgba(198, 67, 42, 0.12); border-left-color: var(--red); }

/* ---------- the preset grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 22px;
}

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.card canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  background: #101010;
  box-shadow: 0 18px 44px rgba(40, 60, 72, 0.28);
}

.card__name { font-size: 17px; font-weight: 700; }
.card__note { font-size: 13px; color: var(--muted); line-height: 1.45; }

@media (max-width: 560px) {
  .wrap { padding: 18px 16px 36px; gap: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.card__flag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.card__flag--bad { color: var(--red); }
