:root {
  --bg: #f6f6f6;
  --card: #ffffff;
  --text: #151515;
  --muted: #666;
  --brand: #d71920;
  --brand-dark: #9f1016;
  --border: #e5e5e5;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 14px 34px;
}
.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px 10px;
}
.logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h1 { margin: 0; font-size: clamp(26px, 7vw, 38px); line-height: 1; }
p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}
.install-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
h2 { margin: 0 0 13px; font-size: 19px; }
.file-picker {
  display: block;
  border: 2px dashed #ccc;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  font-weight: 800;
}
.file-picker input { display: none; }
.file-picker span { color: var(--brand); }
.hint { font-size: 13px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
}
.option input { margin-top: 4px; transform: scale(1.15); }
.option strong { display: block; font-size: 15px; }
.option small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.custom-fields { display: grid; gap: 12px; margin-top: 14px; }
label { display: grid; gap: 7px; font-weight: 700; }
input[type="text"], textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.settings { display: grid; gap: 14px; }
input[type="range"] { width: 100%; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.btn.secondary { background: #111; }
.result-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin: 10px 0;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.result-top img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
}
.result-meta { min-width: 0; }
.result-meta strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.note p { font-size: 13px; }
